mihari 7.6.0 → 7.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +25 -5
- data/.shadowenv.d/000_unset_all.lisp +1 -0
- data/README.md +1 -0
- data/Rakefile +3 -1
- data/lefthook.yml +4 -4
- data/lib/mihari/analyzers/validin.rb +76 -0
- data/lib/mihari/clients/crtsh.rb +1 -1
- data/lib/mihari/clients/dnstwister.rb +1 -1
- data/lib/mihari/clients/google_public_dns.rb +1 -1
- data/lib/mihari/clients/mmdb.rb +1 -1
- data/lib/mihari/clients/shodan_internet_db.rb +1 -1
- data/lib/mihari/clients/validin.rb +47 -0
- data/lib/mihari/config.rb +4 -0
- data/lib/mihari/enrichers/base.rb +1 -1
- data/lib/mihari/schemas/analyzer.rb +1 -0
- data/lib/mihari/version.rb +1 -1
- data/lib/mihari/web/public/assets/index-CuFhw5g8.css +1 -0
- data/lib/mihari/web/public/assets/index-Dgz0wXc1.js +1764 -0
- data/lib/mihari/web/public/index.html +2 -2
- data/lib/mihari/web/public/redoc-static.html +389 -389
- data/lib/mihari.rb +1 -0
- data/mihari.gemspec +42 -40
- data/mkdocs.yml +1 -1
- data/requirements.txt +2 -2
- metadata +112 -82
- data/lib/mihari/web/public/assets/index-CNoViC5p.css +0 -1
- data/lib/mihari/web/public/assets/index-ruBsf_QV.js +0 -1783
@@ -1,1783 +0,0 @@
|
|
1
|
-
var hp=Object.defineProperty;var dp=(e,t,n)=>t in e?hp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Fe=(e,t,n)=>(dp(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 o of l)if(o.type==="childList")for(const d of o.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&r(d)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}})();function Ul(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 ye(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ul(Object(n),!0).forEach(function(r){ht(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ul(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gs(e){"@babel/helpers - typeof";return gs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gs(e)}function fp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function pp(e,t,n){return t&&Vl(e.prototype,t),n&&Vl(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ht(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pa(e,t){return mp(e)||yp(e,t)||ju(e,t)||wp()}function $i(e){return gp(e)||vp(e)||ju(e)||bp()}function gp(e){if(Array.isArray(e))return Go(e)}function mp(e){if(Array.isArray(e))return e}function vp(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function yp(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],l=!0,o=!1,d,g;try{for(n=n.call(e);!(l=(d=n.next()).done)&&(r.push(d.value),!(t&&r.length===t));l=!0);}catch(a){o=!0,g=a}finally{try{!l&&n.return!=null&&n.return()}finally{if(o)throw g}}return r}}function ju(e,t){if(e){if(typeof e=="string")return Go(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Go(e,t)}}function Go(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function bp(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wp(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
3
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Gl=function(){},Wa={},Uu={},Vu=null,Gu={mark:Gl,measure:Gl};try{typeof window<"u"&&(Wa=window),typeof document<"u"&&(Uu=document),typeof MutationObserver<"u"&&(Vu=MutationObserver),typeof performance<"u"&&(Gu=performance)}catch{}var _p=Wa.navigator||{},Kl=_p.userAgent,Yl=Kl===void 0?"":Kl,Ln=Wa,st=Uu,Zl=Vu,Di=Gu;Ln.document;var mn=!!st.documentElement&&!!st.head&&typeof st.addEventListener=="function"&&typeof st.createElement=="function",Ku=~Yl.indexOf("MSIE")||~Yl.indexOf("Trident/"),Pi,Wi,Bi,Hi,zi,dn="___FONT_AWESOME___",Ko=16,Yu="fa",Zu="svg-inline--fa",qn="data-fa-i2svg",Yo="data-fa-pseudo-element",$p="data-fa-pseudo-element-pending",Ba="data-prefix",Ha="data-icon",Xl="fontawesome-i2svg",Sp="async",xp=["HTML","HEAD","STYLE","SCRIPT"],Xu=function(){try{return!0}catch{return!1}}(),nt="classic",lt="sharp",za=[nt,lt];function Si(e){return new Proxy(e,{get:function(n,r){return r in n?n[r]:n[nt]}})}var Xr=Si((Pi={},ht(Pi,nt,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit",fakd:"kit","fa-kit":"kit","fa-kit-duotone":"kit"}),ht(Pi,lt,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"}),Pi)),qr=Si((Wi={},ht(Wi,nt,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),ht(Wi,lt,{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"}),Wi)),Qr=Si((Bi={},ht(Bi,nt,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),ht(Bi,lt,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"}),Bi)),Cp=Si((Hi={},ht(Hi,nt,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),ht(Hi,lt,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"}),Hi)),Ap=/fa(s|r|l|t|d|b|k|ss|sr|sl|st)?[\-\ ]/,qu="fa-layers-text",kp=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,Ep=Si((zi={},ht(zi,nt,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),ht(zi,lt,{900:"fass",400:"fasr",300:"fasl",100:"fast"}),zi)),Qu=[1,2,3,4,5,6,7,8,9,10],Rp=Qu.concat([11,12,13,14,15,16,17,18,19,20]),Tp=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Vn={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Jr=new Set;Object.keys(qr[nt]).map(Jr.add.bind(Jr));Object.keys(qr[lt]).map(Jr.add.bind(Jr));var Lp=[].concat(za,$i(Jr),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Vn.GROUP,Vn.SWAP_OPACITY,Vn.PRIMARY,Vn.SECONDARY]).concat(Qu.map(function(e){return"".concat(e,"x")})).concat(Rp.map(function(e){return"w-".concat(e)})),Br=Ln.FontAwesomeConfig||{};function Mp(e){var t=st.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function Op(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(st&&typeof st.querySelector=="function"){var Ip=[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];Ip.forEach(function(e){var t=Pa(e,2),n=t[0],r=t[1],l=Op(Mp(n));l!=null&&(Br[r]=l)})}var Ju={styleDefault:"solid",familyDefault:"classic",cssPrefix:Yu,replacementClass:Zu,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Br.familyPrefix&&(Br.cssPrefix=Br.familyPrefix);var yr=ye(ye({},Ju),Br);yr.autoReplaceSvg||(yr.observeMutations=!1);var $e={};Object.keys(Ju).forEach(function(e){Object.defineProperty($e,e,{enumerable:!0,set:function(n){yr[e]=n,Hr.forEach(function(r){return r($e)})},get:function(){return yr[e]}})});Object.defineProperty($e,"familyPrefix",{enumerable:!0,set:function(t){yr.cssPrefix=t,Hr.forEach(function(n){return n($e)})},get:function(){return yr.cssPrefix}});Ln.FontAwesomeConfig=$e;var Hr=[];function Np(e){return Hr.push(e),function(){Hr.splice(Hr.indexOf(e),1)}}var wn=Ko,Xt={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Fp(e){if(!(!e||!mn)){var t=st.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=st.head.childNodes,r=null,l=n.length-1;l>-1;l--){var o=n[l],d=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(d)>-1&&(r=o)}return st.head.insertBefore(t,r),e}}var Dp="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function ei(){for(var e=12,t="";e-- >0;)t+=Dp[Math.random()*62|0];return t}function kr(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function ja(e){return e.classList?kr(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function eh(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Pp(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(eh(e[n]),'" ')},"").trim()}function Ws(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function Ua(e){return e.size!==Xt.size||e.x!==Xt.x||e.y!==Xt.y||e.rotate!==Xt.rotate||e.flipX||e.flipY}function Wp(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,l={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(t.x*32,", ").concat(t.y*32,") "),d="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),g="rotate(".concat(t.rotate," 0 0)"),a={transform:"".concat(o," ").concat(d," ").concat(g)},p={transform:"translate(".concat(r/2*-1," -256)")};return{outer:l,inner:a,path:p}}function Bp(e){var t=e.transform,n=e.width,r=n===void 0?Ko:n,l=e.height,o=l===void 0?Ko:l,d=e.startCentered,g=d===void 0?!1:d,a="";return g&&Ku?a+="translate(".concat(t.x/wn-r/2,"em, ").concat(t.y/wn-o/2,"em) "):g?a+="translate(calc(-50% + ".concat(t.x/wn,"em), calc(-50% + ").concat(t.y/wn,"em)) "):a+="translate(".concat(t.x/wn,"em, ").concat(t.y/wn,"em) "),a+="scale(".concat(t.size/wn*(t.flipX?-1:1),", ").concat(t.size/wn*(t.flipY?-1:1),") "),a+="rotate(".concat(t.rotate,"deg) "),a}var Hp=`:root, :host {
|
4
|
-
--fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";
|
5
|
-
--fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";
|
6
|
-
--fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";
|
7
|
-
--fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";
|
8
|
-
--fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
|
9
|
-
--fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";
|
10
|
-
--fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";
|
11
|
-
--fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";
|
12
|
-
--fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";
|
13
|
-
--fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
|
14
|
-
}
|
15
|
-
|
16
|
-
svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
|
17
|
-
overflow: visible;
|
18
|
-
box-sizing: content-box;
|
19
|
-
}
|
20
|
-
|
21
|
-
.svg-inline--fa {
|
22
|
-
display: var(--fa-display, inline-block);
|
23
|
-
height: 1em;
|
24
|
-
overflow: visible;
|
25
|
-
vertical-align: -0.125em;
|
26
|
-
}
|
27
|
-
.svg-inline--fa.fa-2xs {
|
28
|
-
vertical-align: 0.1em;
|
29
|
-
}
|
30
|
-
.svg-inline--fa.fa-xs {
|
31
|
-
vertical-align: 0em;
|
32
|
-
}
|
33
|
-
.svg-inline--fa.fa-sm {
|
34
|
-
vertical-align: -0.0714285705em;
|
35
|
-
}
|
36
|
-
.svg-inline--fa.fa-lg {
|
37
|
-
vertical-align: -0.2em;
|
38
|
-
}
|
39
|
-
.svg-inline--fa.fa-xl {
|
40
|
-
vertical-align: -0.25em;
|
41
|
-
}
|
42
|
-
.svg-inline--fa.fa-2xl {
|
43
|
-
vertical-align: -0.3125em;
|
44
|
-
}
|
45
|
-
.svg-inline--fa.fa-pull-left {
|
46
|
-
margin-right: var(--fa-pull-margin, 0.3em);
|
47
|
-
width: auto;
|
48
|
-
}
|
49
|
-
.svg-inline--fa.fa-pull-right {
|
50
|
-
margin-left: var(--fa-pull-margin, 0.3em);
|
51
|
-
width: auto;
|
52
|
-
}
|
53
|
-
.svg-inline--fa.fa-li {
|
54
|
-
width: var(--fa-li-width, 2em);
|
55
|
-
top: 0.25em;
|
56
|
-
}
|
57
|
-
.svg-inline--fa.fa-fw {
|
58
|
-
width: var(--fa-fw-width, 1.25em);
|
59
|
-
}
|
60
|
-
|
61
|
-
.fa-layers svg.svg-inline--fa {
|
62
|
-
bottom: 0;
|
63
|
-
left: 0;
|
64
|
-
margin: auto;
|
65
|
-
position: absolute;
|
66
|
-
right: 0;
|
67
|
-
top: 0;
|
68
|
-
}
|
69
|
-
|
70
|
-
.fa-layers-counter, .fa-layers-text {
|
71
|
-
display: inline-block;
|
72
|
-
position: absolute;
|
73
|
-
text-align: center;
|
74
|
-
}
|
75
|
-
|
76
|
-
.fa-layers {
|
77
|
-
display: inline-block;
|
78
|
-
height: 1em;
|
79
|
-
position: relative;
|
80
|
-
text-align: center;
|
81
|
-
vertical-align: -0.125em;
|
82
|
-
width: 1em;
|
83
|
-
}
|
84
|
-
.fa-layers svg.svg-inline--fa {
|
85
|
-
-webkit-transform-origin: center center;
|
86
|
-
transform-origin: center center;
|
87
|
-
}
|
88
|
-
|
89
|
-
.fa-layers-text {
|
90
|
-
left: 50%;
|
91
|
-
top: 50%;
|
92
|
-
-webkit-transform: translate(-50%, -50%);
|
93
|
-
transform: translate(-50%, -50%);
|
94
|
-
-webkit-transform-origin: center center;
|
95
|
-
transform-origin: center center;
|
96
|
-
}
|
97
|
-
|
98
|
-
.fa-layers-counter {
|
99
|
-
background-color: var(--fa-counter-background-color, #ff253a);
|
100
|
-
border-radius: var(--fa-counter-border-radius, 1em);
|
101
|
-
box-sizing: border-box;
|
102
|
-
color: var(--fa-inverse, #fff);
|
103
|
-
line-height: var(--fa-counter-line-height, 1);
|
104
|
-
max-width: var(--fa-counter-max-width, 5em);
|
105
|
-
min-width: var(--fa-counter-min-width, 1.5em);
|
106
|
-
overflow: hidden;
|
107
|
-
padding: var(--fa-counter-padding, 0.25em 0.5em);
|
108
|
-
right: var(--fa-right, 0);
|
109
|
-
text-overflow: ellipsis;
|
110
|
-
top: var(--fa-top, 0);
|
111
|
-
-webkit-transform: scale(var(--fa-counter-scale, 0.25));
|
112
|
-
transform: scale(var(--fa-counter-scale, 0.25));
|
113
|
-
-webkit-transform-origin: top right;
|
114
|
-
transform-origin: top right;
|
115
|
-
}
|
116
|
-
|
117
|
-
.fa-layers-bottom-right {
|
118
|
-
bottom: var(--fa-bottom, 0);
|
119
|
-
right: var(--fa-right, 0);
|
120
|
-
top: auto;
|
121
|
-
-webkit-transform: scale(var(--fa-layers-scale, 0.25));
|
122
|
-
transform: scale(var(--fa-layers-scale, 0.25));
|
123
|
-
-webkit-transform-origin: bottom right;
|
124
|
-
transform-origin: bottom right;
|
125
|
-
}
|
126
|
-
|
127
|
-
.fa-layers-bottom-left {
|
128
|
-
bottom: var(--fa-bottom, 0);
|
129
|
-
left: var(--fa-left, 0);
|
130
|
-
right: auto;
|
131
|
-
top: auto;
|
132
|
-
-webkit-transform: scale(var(--fa-layers-scale, 0.25));
|
133
|
-
transform: scale(var(--fa-layers-scale, 0.25));
|
134
|
-
-webkit-transform-origin: bottom left;
|
135
|
-
transform-origin: bottom left;
|
136
|
-
}
|
137
|
-
|
138
|
-
.fa-layers-top-right {
|
139
|
-
top: var(--fa-top, 0);
|
140
|
-
right: var(--fa-right, 0);
|
141
|
-
-webkit-transform: scale(var(--fa-layers-scale, 0.25));
|
142
|
-
transform: scale(var(--fa-layers-scale, 0.25));
|
143
|
-
-webkit-transform-origin: top right;
|
144
|
-
transform-origin: top right;
|
145
|
-
}
|
146
|
-
|
147
|
-
.fa-layers-top-left {
|
148
|
-
left: var(--fa-left, 0);
|
149
|
-
right: auto;
|
150
|
-
top: var(--fa-top, 0);
|
151
|
-
-webkit-transform: scale(var(--fa-layers-scale, 0.25));
|
152
|
-
transform: scale(var(--fa-layers-scale, 0.25));
|
153
|
-
-webkit-transform-origin: top left;
|
154
|
-
transform-origin: top left;
|
155
|
-
}
|
156
|
-
|
157
|
-
.fa-1x {
|
158
|
-
font-size: 1em;
|
159
|
-
}
|
160
|
-
|
161
|
-
.fa-2x {
|
162
|
-
font-size: 2em;
|
163
|
-
}
|
164
|
-
|
165
|
-
.fa-3x {
|
166
|
-
font-size: 3em;
|
167
|
-
}
|
168
|
-
|
169
|
-
.fa-4x {
|
170
|
-
font-size: 4em;
|
171
|
-
}
|
172
|
-
|
173
|
-
.fa-5x {
|
174
|
-
font-size: 5em;
|
175
|
-
}
|
176
|
-
|
177
|
-
.fa-6x {
|
178
|
-
font-size: 6em;
|
179
|
-
}
|
180
|
-
|
181
|
-
.fa-7x {
|
182
|
-
font-size: 7em;
|
183
|
-
}
|
184
|
-
|
185
|
-
.fa-8x {
|
186
|
-
font-size: 8em;
|
187
|
-
}
|
188
|
-
|
189
|
-
.fa-9x {
|
190
|
-
font-size: 9em;
|
191
|
-
}
|
192
|
-
|
193
|
-
.fa-10x {
|
194
|
-
font-size: 10em;
|
195
|
-
}
|
196
|
-
|
197
|
-
.fa-2xs {
|
198
|
-
font-size: 0.625em;
|
199
|
-
line-height: 0.1em;
|
200
|
-
vertical-align: 0.225em;
|
201
|
-
}
|
202
|
-
|
203
|
-
.fa-xs {
|
204
|
-
font-size: 0.75em;
|
205
|
-
line-height: 0.0833333337em;
|
206
|
-
vertical-align: 0.125em;
|
207
|
-
}
|
208
|
-
|
209
|
-
.fa-sm {
|
210
|
-
font-size: 0.875em;
|
211
|
-
line-height: 0.0714285718em;
|
212
|
-
vertical-align: 0.0535714295em;
|
213
|
-
}
|
214
|
-
|
215
|
-
.fa-lg {
|
216
|
-
font-size: 1.25em;
|
217
|
-
line-height: 0.05em;
|
218
|
-
vertical-align: -0.075em;
|
219
|
-
}
|
220
|
-
|
221
|
-
.fa-xl {
|
222
|
-
font-size: 1.5em;
|
223
|
-
line-height: 0.0416666682em;
|
224
|
-
vertical-align: -0.125em;
|
225
|
-
}
|
226
|
-
|
227
|
-
.fa-2xl {
|
228
|
-
font-size: 2em;
|
229
|
-
line-height: 0.03125em;
|
230
|
-
vertical-align: -0.1875em;
|
231
|
-
}
|
232
|
-
|
233
|
-
.fa-fw {
|
234
|
-
text-align: center;
|
235
|
-
width: 1.25em;
|
236
|
-
}
|
237
|
-
|
238
|
-
.fa-ul {
|
239
|
-
list-style-type: none;
|
240
|
-
margin-left: var(--fa-li-margin, 2.5em);
|
241
|
-
padding-left: 0;
|
242
|
-
}
|
243
|
-
.fa-ul > li {
|
244
|
-
position: relative;
|
245
|
-
}
|
246
|
-
|
247
|
-
.fa-li {
|
248
|
-
left: calc(var(--fa-li-width, 2em) * -1);
|
249
|
-
position: absolute;
|
250
|
-
text-align: center;
|
251
|
-
width: var(--fa-li-width, 2em);
|
252
|
-
line-height: inherit;
|
253
|
-
}
|
254
|
-
|
255
|
-
.fa-border {
|
256
|
-
border-color: var(--fa-border-color, #eee);
|
257
|
-
border-radius: var(--fa-border-radius, 0.1em);
|
258
|
-
border-style: var(--fa-border-style, solid);
|
259
|
-
border-width: var(--fa-border-width, 0.08em);
|
260
|
-
padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);
|
261
|
-
}
|
262
|
-
|
263
|
-
.fa-pull-left {
|
264
|
-
float: left;
|
265
|
-
margin-right: var(--fa-pull-margin, 0.3em);
|
266
|
-
}
|
267
|
-
|
268
|
-
.fa-pull-right {
|
269
|
-
float: right;
|
270
|
-
margin-left: var(--fa-pull-margin, 0.3em);
|
271
|
-
}
|
272
|
-
|
273
|
-
.fa-beat {
|
274
|
-
-webkit-animation-name: fa-beat;
|
275
|
-
animation-name: fa-beat;
|
276
|
-
-webkit-animation-delay: var(--fa-animation-delay, 0s);
|
277
|
-
animation-delay: var(--fa-animation-delay, 0s);
|
278
|
-
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
279
|
-
animation-direction: var(--fa-animation-direction, normal);
|
280
|
-
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
281
|
-
animation-duration: var(--fa-animation-duration, 1s);
|
282
|
-
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
283
|
-
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
284
|
-
-webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
285
|
-
animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
286
|
-
}
|
287
|
-
|
288
|
-
.fa-bounce {
|
289
|
-
-webkit-animation-name: fa-bounce;
|
290
|
-
animation-name: fa-bounce;
|
291
|
-
-webkit-animation-delay: var(--fa-animation-delay, 0s);
|
292
|
-
animation-delay: var(--fa-animation-delay, 0s);
|
293
|
-
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
294
|
-
animation-direction: var(--fa-animation-direction, normal);
|
295
|
-
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
296
|
-
animation-duration: var(--fa-animation-duration, 1s);
|
297
|
-
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
298
|
-
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
299
|
-
-webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
|
300
|
-
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
|
301
|
-
}
|
302
|
-
|
303
|
-
.fa-fade {
|
304
|
-
-webkit-animation-name: fa-fade;
|
305
|
-
animation-name: fa-fade;
|
306
|
-
-webkit-animation-delay: var(--fa-animation-delay, 0s);
|
307
|
-
animation-delay: var(--fa-animation-delay, 0s);
|
308
|
-
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
309
|
-
animation-direction: var(--fa-animation-direction, normal);
|
310
|
-
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
311
|
-
animation-duration: var(--fa-animation-duration, 1s);
|
312
|
-
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
313
|
-
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
314
|
-
-webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
315
|
-
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
316
|
-
}
|
317
|
-
|
318
|
-
.fa-beat-fade {
|
319
|
-
-webkit-animation-name: fa-beat-fade;
|
320
|
-
animation-name: fa-beat-fade;
|
321
|
-
-webkit-animation-delay: var(--fa-animation-delay, 0s);
|
322
|
-
animation-delay: var(--fa-animation-delay, 0s);
|
323
|
-
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
324
|
-
animation-direction: var(--fa-animation-direction, normal);
|
325
|
-
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
326
|
-
animation-duration: var(--fa-animation-duration, 1s);
|
327
|
-
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
328
|
-
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
329
|
-
-webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
330
|
-
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
331
|
-
}
|
332
|
-
|
333
|
-
.fa-flip {
|
334
|
-
-webkit-animation-name: fa-flip;
|
335
|
-
animation-name: fa-flip;
|
336
|
-
-webkit-animation-delay: var(--fa-animation-delay, 0s);
|
337
|
-
animation-delay: var(--fa-animation-delay, 0s);
|
338
|
-
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
339
|
-
animation-direction: var(--fa-animation-direction, normal);
|
340
|
-
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
341
|
-
animation-duration: var(--fa-animation-duration, 1s);
|
342
|
-
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
343
|
-
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
344
|
-
-webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
345
|
-
animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
346
|
-
}
|
347
|
-
|
348
|
-
.fa-shake {
|
349
|
-
-webkit-animation-name: fa-shake;
|
350
|
-
animation-name: fa-shake;
|
351
|
-
-webkit-animation-delay: var(--fa-animation-delay, 0s);
|
352
|
-
animation-delay: var(--fa-animation-delay, 0s);
|
353
|
-
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
354
|
-
animation-direction: var(--fa-animation-direction, normal);
|
355
|
-
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
356
|
-
animation-duration: var(--fa-animation-duration, 1s);
|
357
|
-
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
358
|
-
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
359
|
-
-webkit-animation-timing-function: var(--fa-animation-timing, linear);
|
360
|
-
animation-timing-function: var(--fa-animation-timing, linear);
|
361
|
-
}
|
362
|
-
|
363
|
-
.fa-spin {
|
364
|
-
-webkit-animation-name: fa-spin;
|
365
|
-
animation-name: fa-spin;
|
366
|
-
-webkit-animation-delay: var(--fa-animation-delay, 0s);
|
367
|
-
animation-delay: var(--fa-animation-delay, 0s);
|
368
|
-
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
369
|
-
animation-direction: var(--fa-animation-direction, normal);
|
370
|
-
-webkit-animation-duration: var(--fa-animation-duration, 2s);
|
371
|
-
animation-duration: var(--fa-animation-duration, 2s);
|
372
|
-
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
373
|
-
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
374
|
-
-webkit-animation-timing-function: var(--fa-animation-timing, linear);
|
375
|
-
animation-timing-function: var(--fa-animation-timing, linear);
|
376
|
-
}
|
377
|
-
|
378
|
-
.fa-spin-reverse {
|
379
|
-
--fa-animation-direction: reverse;
|
380
|
-
}
|
381
|
-
|
382
|
-
.fa-pulse,
|
383
|
-
.fa-spin-pulse {
|
384
|
-
-webkit-animation-name: fa-spin;
|
385
|
-
animation-name: fa-spin;
|
386
|
-
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
387
|
-
animation-direction: var(--fa-animation-direction, normal);
|
388
|
-
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
389
|
-
animation-duration: var(--fa-animation-duration, 1s);
|
390
|
-
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
391
|
-
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
392
|
-
-webkit-animation-timing-function: var(--fa-animation-timing, steps(8));
|
393
|
-
animation-timing-function: var(--fa-animation-timing, steps(8));
|
394
|
-
}
|
395
|
-
|
396
|
-
@media (prefers-reduced-motion: reduce) {
|
397
|
-
.fa-beat,
|
398
|
-
.fa-bounce,
|
399
|
-
.fa-fade,
|
400
|
-
.fa-beat-fade,
|
401
|
-
.fa-flip,
|
402
|
-
.fa-pulse,
|
403
|
-
.fa-shake,
|
404
|
-
.fa-spin,
|
405
|
-
.fa-spin-pulse {
|
406
|
-
-webkit-animation-delay: -1ms;
|
407
|
-
animation-delay: -1ms;
|
408
|
-
-webkit-animation-duration: 1ms;
|
409
|
-
animation-duration: 1ms;
|
410
|
-
-webkit-animation-iteration-count: 1;
|
411
|
-
animation-iteration-count: 1;
|
412
|
-
-webkit-transition-delay: 0s;
|
413
|
-
transition-delay: 0s;
|
414
|
-
-webkit-transition-duration: 0s;
|
415
|
-
transition-duration: 0s;
|
416
|
-
}
|
417
|
-
}
|
418
|
-
@-webkit-keyframes fa-beat {
|
419
|
-
0%, 90% {
|
420
|
-
-webkit-transform: scale(1);
|
421
|
-
transform: scale(1);
|
422
|
-
}
|
423
|
-
45% {
|
424
|
-
-webkit-transform: scale(var(--fa-beat-scale, 1.25));
|
425
|
-
transform: scale(var(--fa-beat-scale, 1.25));
|
426
|
-
}
|
427
|
-
}
|
428
|
-
@keyframes fa-beat {
|
429
|
-
0%, 90% {
|
430
|
-
-webkit-transform: scale(1);
|
431
|
-
transform: scale(1);
|
432
|
-
}
|
433
|
-
45% {
|
434
|
-
-webkit-transform: scale(var(--fa-beat-scale, 1.25));
|
435
|
-
transform: scale(var(--fa-beat-scale, 1.25));
|
436
|
-
}
|
437
|
-
}
|
438
|
-
@-webkit-keyframes fa-bounce {
|
439
|
-
0% {
|
440
|
-
-webkit-transform: scale(1, 1) translateY(0);
|
441
|
-
transform: scale(1, 1) translateY(0);
|
442
|
-
}
|
443
|
-
10% {
|
444
|
-
-webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
|
445
|
-
transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
|
446
|
-
}
|
447
|
-
30% {
|
448
|
-
-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));
|
449
|
-
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));
|
450
|
-
}
|
451
|
-
50% {
|
452
|
-
-webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
|
453
|
-
transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
|
454
|
-
}
|
455
|
-
57% {
|
456
|
-
-webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
|
457
|
-
transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
|
458
|
-
}
|
459
|
-
64% {
|
460
|
-
-webkit-transform: scale(1, 1) translateY(0);
|
461
|
-
transform: scale(1, 1) translateY(0);
|
462
|
-
}
|
463
|
-
100% {
|
464
|
-
-webkit-transform: scale(1, 1) translateY(0);
|
465
|
-
transform: scale(1, 1) translateY(0);
|
466
|
-
}
|
467
|
-
}
|
468
|
-
@keyframes fa-bounce {
|
469
|
-
0% {
|
470
|
-
-webkit-transform: scale(1, 1) translateY(0);
|
471
|
-
transform: scale(1, 1) translateY(0);
|
472
|
-
}
|
473
|
-
10% {
|
474
|
-
-webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
|
475
|
-
transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
|
476
|
-
}
|
477
|
-
30% {
|
478
|
-
-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));
|
479
|
-
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));
|
480
|
-
}
|
481
|
-
50% {
|
482
|
-
-webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
|
483
|
-
transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
|
484
|
-
}
|
485
|
-
57% {
|
486
|
-
-webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
|
487
|
-
transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
|
488
|
-
}
|
489
|
-
64% {
|
490
|
-
-webkit-transform: scale(1, 1) translateY(0);
|
491
|
-
transform: scale(1, 1) translateY(0);
|
492
|
-
}
|
493
|
-
100% {
|
494
|
-
-webkit-transform: scale(1, 1) translateY(0);
|
495
|
-
transform: scale(1, 1) translateY(0);
|
496
|
-
}
|
497
|
-
}
|
498
|
-
@-webkit-keyframes fa-fade {
|
499
|
-
50% {
|
500
|
-
opacity: var(--fa-fade-opacity, 0.4);
|
501
|
-
}
|
502
|
-
}
|
503
|
-
@keyframes fa-fade {
|
504
|
-
50% {
|
505
|
-
opacity: var(--fa-fade-opacity, 0.4);
|
506
|
-
}
|
507
|
-
}
|
508
|
-
@-webkit-keyframes fa-beat-fade {
|
509
|
-
0%, 100% {
|
510
|
-
opacity: var(--fa-beat-fade-opacity, 0.4);
|
511
|
-
-webkit-transform: scale(1);
|
512
|
-
transform: scale(1);
|
513
|
-
}
|
514
|
-
50% {
|
515
|
-
opacity: 1;
|
516
|
-
-webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
|
517
|
-
transform: scale(var(--fa-beat-fade-scale, 1.125));
|
518
|
-
}
|
519
|
-
}
|
520
|
-
@keyframes fa-beat-fade {
|
521
|
-
0%, 100% {
|
522
|
-
opacity: var(--fa-beat-fade-opacity, 0.4);
|
523
|
-
-webkit-transform: scale(1);
|
524
|
-
transform: scale(1);
|
525
|
-
}
|
526
|
-
50% {
|
527
|
-
opacity: 1;
|
528
|
-
-webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
|
529
|
-
transform: scale(var(--fa-beat-fade-scale, 1.125));
|
530
|
-
}
|
531
|
-
}
|
532
|
-
@-webkit-keyframes fa-flip {
|
533
|
-
50% {
|
534
|
-
-webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
|
535
|
-
transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
|
536
|
-
}
|
537
|
-
}
|
538
|
-
@keyframes fa-flip {
|
539
|
-
50% {
|
540
|
-
-webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
|
541
|
-
transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
|
542
|
-
}
|
543
|
-
}
|
544
|
-
@-webkit-keyframes fa-shake {
|
545
|
-
0% {
|
546
|
-
-webkit-transform: rotate(-15deg);
|
547
|
-
transform: rotate(-15deg);
|
548
|
-
}
|
549
|
-
4% {
|
550
|
-
-webkit-transform: rotate(15deg);
|
551
|
-
transform: rotate(15deg);
|
552
|
-
}
|
553
|
-
8%, 24% {
|
554
|
-
-webkit-transform: rotate(-18deg);
|
555
|
-
transform: rotate(-18deg);
|
556
|
-
}
|
557
|
-
12%, 28% {
|
558
|
-
-webkit-transform: rotate(18deg);
|
559
|
-
transform: rotate(18deg);
|
560
|
-
}
|
561
|
-
16% {
|
562
|
-
-webkit-transform: rotate(-22deg);
|
563
|
-
transform: rotate(-22deg);
|
564
|
-
}
|
565
|
-
20% {
|
566
|
-
-webkit-transform: rotate(22deg);
|
567
|
-
transform: rotate(22deg);
|
568
|
-
}
|
569
|
-
32% {
|
570
|
-
-webkit-transform: rotate(-12deg);
|
571
|
-
transform: rotate(-12deg);
|
572
|
-
}
|
573
|
-
36% {
|
574
|
-
-webkit-transform: rotate(12deg);
|
575
|
-
transform: rotate(12deg);
|
576
|
-
}
|
577
|
-
40%, 100% {
|
578
|
-
-webkit-transform: rotate(0deg);
|
579
|
-
transform: rotate(0deg);
|
580
|
-
}
|
581
|
-
}
|
582
|
-
@keyframes fa-shake {
|
583
|
-
0% {
|
584
|
-
-webkit-transform: rotate(-15deg);
|
585
|
-
transform: rotate(-15deg);
|
586
|
-
}
|
587
|
-
4% {
|
588
|
-
-webkit-transform: rotate(15deg);
|
589
|
-
transform: rotate(15deg);
|
590
|
-
}
|
591
|
-
8%, 24% {
|
592
|
-
-webkit-transform: rotate(-18deg);
|
593
|
-
transform: rotate(-18deg);
|
594
|
-
}
|
595
|
-
12%, 28% {
|
596
|
-
-webkit-transform: rotate(18deg);
|
597
|
-
transform: rotate(18deg);
|
598
|
-
}
|
599
|
-
16% {
|
600
|
-
-webkit-transform: rotate(-22deg);
|
601
|
-
transform: rotate(-22deg);
|
602
|
-
}
|
603
|
-
20% {
|
604
|
-
-webkit-transform: rotate(22deg);
|
605
|
-
transform: rotate(22deg);
|
606
|
-
}
|
607
|
-
32% {
|
608
|
-
-webkit-transform: rotate(-12deg);
|
609
|
-
transform: rotate(-12deg);
|
610
|
-
}
|
611
|
-
36% {
|
612
|
-
-webkit-transform: rotate(12deg);
|
613
|
-
transform: rotate(12deg);
|
614
|
-
}
|
615
|
-
40%, 100% {
|
616
|
-
-webkit-transform: rotate(0deg);
|
617
|
-
transform: rotate(0deg);
|
618
|
-
}
|
619
|
-
}
|
620
|
-
@-webkit-keyframes fa-spin {
|
621
|
-
0% {
|
622
|
-
-webkit-transform: rotate(0deg);
|
623
|
-
transform: rotate(0deg);
|
624
|
-
}
|
625
|
-
100% {
|
626
|
-
-webkit-transform: rotate(360deg);
|
627
|
-
transform: rotate(360deg);
|
628
|
-
}
|
629
|
-
}
|
630
|
-
@keyframes fa-spin {
|
631
|
-
0% {
|
632
|
-
-webkit-transform: rotate(0deg);
|
633
|
-
transform: rotate(0deg);
|
634
|
-
}
|
635
|
-
100% {
|
636
|
-
-webkit-transform: rotate(360deg);
|
637
|
-
transform: rotate(360deg);
|
638
|
-
}
|
639
|
-
}
|
640
|
-
.fa-rotate-90 {
|
641
|
-
-webkit-transform: rotate(90deg);
|
642
|
-
transform: rotate(90deg);
|
643
|
-
}
|
644
|
-
|
645
|
-
.fa-rotate-180 {
|
646
|
-
-webkit-transform: rotate(180deg);
|
647
|
-
transform: rotate(180deg);
|
648
|
-
}
|
649
|
-
|
650
|
-
.fa-rotate-270 {
|
651
|
-
-webkit-transform: rotate(270deg);
|
652
|
-
transform: rotate(270deg);
|
653
|
-
}
|
654
|
-
|
655
|
-
.fa-flip-horizontal {
|
656
|
-
-webkit-transform: scale(-1, 1);
|
657
|
-
transform: scale(-1, 1);
|
658
|
-
}
|
659
|
-
|
660
|
-
.fa-flip-vertical {
|
661
|
-
-webkit-transform: scale(1, -1);
|
662
|
-
transform: scale(1, -1);
|
663
|
-
}
|
664
|
-
|
665
|
-
.fa-flip-both,
|
666
|
-
.fa-flip-horizontal.fa-flip-vertical {
|
667
|
-
-webkit-transform: scale(-1, -1);
|
668
|
-
transform: scale(-1, -1);
|
669
|
-
}
|
670
|
-
|
671
|
-
.fa-rotate-by {
|
672
|
-
-webkit-transform: rotate(var(--fa-rotate-angle, 0));
|
673
|
-
transform: rotate(var(--fa-rotate-angle, 0));
|
674
|
-
}
|
675
|
-
|
676
|
-
.fa-stack {
|
677
|
-
display: inline-block;
|
678
|
-
vertical-align: middle;
|
679
|
-
height: 2em;
|
680
|
-
position: relative;
|
681
|
-
width: 2.5em;
|
682
|
-
}
|
683
|
-
|
684
|
-
.fa-stack-1x,
|
685
|
-
.fa-stack-2x {
|
686
|
-
bottom: 0;
|
687
|
-
left: 0;
|
688
|
-
margin: auto;
|
689
|
-
position: absolute;
|
690
|
-
right: 0;
|
691
|
-
top: 0;
|
692
|
-
z-index: var(--fa-stack-z-index, auto);
|
693
|
-
}
|
694
|
-
|
695
|
-
.svg-inline--fa.fa-stack-1x {
|
696
|
-
height: 1em;
|
697
|
-
width: 1.25em;
|
698
|
-
}
|
699
|
-
.svg-inline--fa.fa-stack-2x {
|
700
|
-
height: 2em;
|
701
|
-
width: 2.5em;
|
702
|
-
}
|
703
|
-
|
704
|
-
.fa-inverse {
|
705
|
-
color: var(--fa-inverse, #fff);
|
706
|
-
}
|
707
|
-
|
708
|
-
.sr-only,
|
709
|
-
.fa-sr-only {
|
710
|
-
position: absolute;
|
711
|
-
width: 1px;
|
712
|
-
height: 1px;
|
713
|
-
padding: 0;
|
714
|
-
margin: -1px;
|
715
|
-
overflow: hidden;
|
716
|
-
clip: rect(0, 0, 0, 0);
|
717
|
-
white-space: nowrap;
|
718
|
-
border-width: 0;
|
719
|
-
}
|
720
|
-
|
721
|
-
.sr-only-focusable:not(:focus),
|
722
|
-
.fa-sr-only-focusable:not(:focus) {
|
723
|
-
position: absolute;
|
724
|
-
width: 1px;
|
725
|
-
height: 1px;
|
726
|
-
padding: 0;
|
727
|
-
margin: -1px;
|
728
|
-
overflow: hidden;
|
729
|
-
clip: rect(0, 0, 0, 0);
|
730
|
-
white-space: nowrap;
|
731
|
-
border-width: 0;
|
732
|
-
}
|
733
|
-
|
734
|
-
.svg-inline--fa .fa-primary {
|
735
|
-
fill: var(--fa-primary-color, currentColor);
|
736
|
-
opacity: var(--fa-primary-opacity, 1);
|
737
|
-
}
|
738
|
-
|
739
|
-
.svg-inline--fa .fa-secondary {
|
740
|
-
fill: var(--fa-secondary-color, currentColor);
|
741
|
-
opacity: var(--fa-secondary-opacity, 0.4);
|
742
|
-
}
|
743
|
-
|
744
|
-
.svg-inline--fa.fa-swap-opacity .fa-primary {
|
745
|
-
opacity: var(--fa-secondary-opacity, 0.4);
|
746
|
-
}
|
747
|
-
|
748
|
-
.svg-inline--fa.fa-swap-opacity .fa-secondary {
|
749
|
-
opacity: var(--fa-primary-opacity, 1);
|
750
|
-
}
|
751
|
-
|
752
|
-
.svg-inline--fa mask .fa-primary,
|
753
|
-
.svg-inline--fa mask .fa-secondary {
|
754
|
-
fill: black;
|
755
|
-
}
|
756
|
-
|
757
|
-
.fad.fa-inverse,
|
758
|
-
.fa-duotone.fa-inverse {
|
759
|
-
color: var(--fa-inverse, #fff);
|
760
|
-
}`;function th(){var e=Yu,t=Zu,n=$e.cssPrefix,r=$e.replacementClass,l=Hp;if(n!==e||r!==t){var o=new RegExp("\\.".concat(e,"\\-"),"g"),d=new RegExp("\\--".concat(e,"\\-"),"g"),g=new RegExp("\\.".concat(t),"g");l=l.replace(o,".".concat(n,"-")).replace(d,"--".concat(n,"-")).replace(g,".".concat(r))}return l}var ql=!1;function _o(){$e.autoAddCss&&!ql&&(Fp(th()),ql=!0)}var zp={mixout:function(){return{dom:{css:th,insertCss:_o}}},hooks:function(){return{beforeDOMElementCreation:function(){_o()},beforeI2svg:function(){_o()}}}},fn=Ln||{};fn[dn]||(fn[dn]={});fn[dn].styles||(fn[dn].styles={});fn[dn].hooks||(fn[dn].hooks={});fn[dn].shims||(fn[dn].shims=[]);var Pt=fn[dn],nh=[],jp=function e(){st.removeEventListener("DOMContentLoaded",e),ms=1,nh.map(function(t){return t()})},ms=!1;mn&&(ms=(st.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(st.readyState),ms||st.addEventListener("DOMContentLoaded",jp));function Up(e){mn&&(ms?setTimeout(e,0):nh.push(e))}function xi(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,l=e.children,o=l===void 0?[]:l;return typeof e=="string"?eh(e):"<".concat(t," ").concat(Pp(r),">").concat(o.map(xi).join(""),"</").concat(t,">")}function Ql(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Vp=function(t,n){return function(r,l,o,d){return t.call(n,r,l,o,d)}},$o=function(t,n,r,l){var o=Object.keys(t),d=o.length,g=l!==void 0?Vp(n,l):n,a,p,s;for(r===void 0?(a=1,s=t[o[0]]):(a=0,s=r);a<d;a++)p=o[a],s=g(s,t[p],p,t);return s};function Gp(e){for(var t=[],n=0,r=e.length;n<r;){var l=e.charCodeAt(n++);if(l>=55296&&l<=56319&&n<r){var o=e.charCodeAt(n++);(o&64512)==56320?t.push(((l&1023)<<10)+(o&1023)+65536):(t.push(l),n--)}else t.push(l)}return t}function Zo(e){var t=Gp(e);return t.length===1?t[0].toString(16):null}function Kp(e,t){var n=e.length,r=e.charCodeAt(t),l;return r>=55296&&r<=56319&&n>t+1&&(l=e.charCodeAt(t+1),l>=56320&&l<=57343)?(r-55296)*1024+l-56320+65536:r}function Jl(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 Xo(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,l=r===void 0?!1:r,o=Jl(t);typeof Pt.hooks.addPack=="function"&&!l?Pt.hooks.addPack(e,Jl(t)):Pt.styles[e]=ye(ye({},Pt.styles[e]||{}),o),e==="fas"&&Xo("fa",t)}var ji,Ui,Vi,ur=Pt.styles,Yp=Pt.shims,Zp=(ji={},ht(ji,nt,Object.values(Qr[nt])),ht(ji,lt,Object.values(Qr[lt])),ji),Va=null,rh={},ih={},sh={},oh={},ah={},Xp=(Ui={},ht(Ui,nt,Object.keys(Xr[nt])),ht(Ui,lt,Object.keys(Xr[lt])),Ui);function qp(e){return~Lp.indexOf(e)}function Qp(e,t){var n=t.split("-"),r=n[0],l=n.slice(1).join("-");return r===e&&l!==""&&!qp(l)?l:null}var lh=function(){var t=function(o){return $o(ur,function(d,g,a){return d[a]=$o(g,o,{}),d},{})};rh=t(function(l,o,d){if(o[3]&&(l[o[3]]=d),o[2]){var g=o[2].filter(function(a){return typeof a=="number"});g.forEach(function(a){l[a.toString(16)]=d})}return l}),ih=t(function(l,o,d){if(l[d]=d,o[2]){var g=o[2].filter(function(a){return typeof a=="string"});g.forEach(function(a){l[a]=d})}return l}),ah=t(function(l,o,d){var g=o[2];return l[d]=d,g.forEach(function(a){l[a]=d}),l});var n="far"in ur||$e.autoFetchSvg,r=$o(Yp,function(l,o){var d=o[0],g=o[1],a=o[2];return g==="far"&&!n&&(g="fas"),typeof d=="string"&&(l.names[d]={prefix:g,iconName:a}),typeof d=="number"&&(l.unicodes[d.toString(16)]={prefix:g,iconName:a}),l},{names:{},unicodes:{}});sh=r.names,oh=r.unicodes,Va=Bs($e.styleDefault,{family:$e.familyDefault})};Np(function(e){Va=Bs(e.styleDefault,{family:$e.familyDefault})});lh();function Ga(e,t){return(rh[e]||{})[t]}function Jp(e,t){return(ih[e]||{})[t]}function Gn(e,t){return(ah[e]||{})[t]}function ch(e){return sh[e]||{prefix:null,iconName:null}}function eg(e){var t=oh[e],n=Ga("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Mn(){return Va}var Ka=function(){return{prefix:null,iconName:null,rest:[]}};function Bs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?nt:n,l=Xr[r][e],o=qr[r][e]||qr[r][l],d=e in Pt.styles?e:null;return o||d||null}var ec=(Vi={},ht(Vi,nt,Object.keys(Qr[nt])),ht(Vi,lt,Object.keys(Qr[lt])),Vi);function Hs(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,l=r===void 0?!1:r,o=(t={},ht(t,nt,"".concat($e.cssPrefix,"-").concat(nt)),ht(t,lt,"".concat($e.cssPrefix,"-").concat(lt)),t),d=null,g=nt;(e.includes(o[nt])||e.some(function(p){return ec[nt].includes(p)}))&&(g=nt),(e.includes(o[lt])||e.some(function(p){return ec[lt].includes(p)}))&&(g=lt);var a=e.reduce(function(p,s){var i=Qp($e.cssPrefix,s);if(ur[s]?(s=Zp[g].includes(s)?Cp[g][s]:s,d=s,p.prefix=s):Xp[g].indexOf(s)>-1?(d=s,p.prefix=Bs(s,{family:g})):i?p.iconName=i:s!==$e.replacementClass&&s!==o[nt]&&s!==o[lt]&&p.rest.push(s),!l&&p.prefix&&p.iconName){var u=d==="fa"?ch(p.iconName):{},h=Gn(p.prefix,p.iconName);u.prefix&&(d=null),p.iconName=u.iconName||h||p.iconName,p.prefix=u.prefix||p.prefix,p.prefix==="far"&&!ur.far&&ur.fas&&!$e.autoFetchSvg&&(p.prefix="fas")}return p},Ka());return(e.includes("fa-brands")||e.includes("fab"))&&(a.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(a.prefix="fad"),!a.prefix&&g===lt&&(ur.fass||$e.autoFetchSvg)&&(a.prefix="fass",a.iconName=Gn(a.prefix,a.iconName)||a.iconName),(a.prefix==="fa"||d==="fa")&&(a.prefix=Mn()||"fas"),a}var tg=function(){function e(){fp(this,e),this.definitions={}}return pp(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,l=new Array(r),o=0;o<r;o++)l[o]=arguments[o];var d=l.reduce(this._pullDefinitions,{});Object.keys(d).forEach(function(g){n.definitions[g]=ye(ye({},n.definitions[g]||{}),d[g]),Xo(g,d[g]);var a=Qr[nt][g];a&&Xo(a,d[g]),lh()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(n,r){var l=r.prefix&&r.iconName&&r.icon?{0:r}:r;return Object.keys(l).map(function(o){var d=l[o],g=d.prefix,a=d.iconName,p=d.icon,s=p[2];n[g]||(n[g]={}),s.length>0&&s.forEach(function(i){typeof i=="string"&&(n[g][i]=p)}),n[g][a]=p}),n}}]),e}(),tc=[],hr={},fr={},ng=Object.keys(fr);function rg(e,t){var n=t.mixoutsTo;return tc=e,hr={},Object.keys(fr).forEach(function(r){ng.indexOf(r)===-1&&delete fr[r]}),tc.forEach(function(r){var l=r.mixout?r.mixout():{};if(Object.keys(l).forEach(function(d){typeof l[d]=="function"&&(n[d]=l[d]),gs(l[d])==="object"&&Object.keys(l[d]).forEach(function(g){n[d]||(n[d]={}),n[d][g]=l[d][g]})}),r.hooks){var o=r.hooks();Object.keys(o).forEach(function(d){hr[d]||(hr[d]=[]),hr[d].push(o[d])})}r.provides&&r.provides(fr)}),n}function qo(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),l=2;l<n;l++)r[l-2]=arguments[l];var o=hr[e]||[];return o.forEach(function(d){t=d.apply(null,[t].concat(r))}),t}function Qn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var l=hr[e]||[];l.forEach(function(o){o.apply(null,n)})}function pn(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return fr[e]?fr[e].apply(null,t):void 0}function Qo(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,n=e.prefix||Mn();if(t)return t=Gn(n,t)||t,Ql(uh.definitions,n,t)||Ql(Pt.styles,n,t)}var uh=new tg,ig=function(){$e.autoReplaceSvg=!1,$e.observeMutations=!1,Qn("noAuto")},sg={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return mn?(Qn("beforeI2svg",t),pn("pseudoElements2svg",t),pn("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;$e.autoReplaceSvg===!1&&($e.autoReplaceSvg=!0),$e.observeMutations=!0,Up(function(){ag({autoReplaceSvgRoot:n}),Qn("watch",t)})}},og={icon:function(t){if(t===null)return null;if(gs(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Gn(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=Bs(t[0]);return{prefix:r,iconName:Gn(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat($e.cssPrefix,"-"))>-1||t.match(Ap))){var l=Hs(t.split(" "),{skipLookups:!0});return{prefix:l.prefix||Mn(),iconName:Gn(l.prefix,l.iconName)||l.iconName}}if(typeof t=="string"){var o=Mn();return{prefix:o,iconName:Gn(o,t)||t}}}},It={noAuto:ig,config:$e,dom:sg,parse:og,library:uh,findIconDefinition:Qo,toHtml:xi},ag=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?st:n;(Object.keys(Pt.styles).length>0||$e.autoFetchSvg)&&mn&&$e.autoReplaceSvg&&It.dom.i2svg({node:r})};function zs(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return xi(r)})}}),Object.defineProperty(e,"node",{get:function(){if(mn){var r=st.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function lg(e){var t=e.children,n=e.main,r=e.mask,l=e.attributes,o=e.styles,d=e.transform;if(Ua(d)&&n.found&&!r.found){var g=n.width,a=n.height,p={x:g/a/2,y:.5};l.style=Ws(ye(ye({},o),{},{"transform-origin":"".concat(p.x+d.x/16,"em ").concat(p.y+d.y/16,"em")}))}return[{tag:"svg",attributes:l,children:t}]}function cg(e){var t=e.prefix,n=e.iconName,r=e.children,l=e.attributes,o=e.symbol,d=o===!0?"".concat(t,"-").concat($e.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:ye(ye({},l),{},{id:d}),children:r}]}]}function Ya(e){var t=e.icons,n=t.main,r=t.mask,l=e.prefix,o=e.iconName,d=e.transform,g=e.symbol,a=e.title,p=e.maskId,s=e.titleId,i=e.extra,u=e.watchable,h=u===void 0?!1:u,c=r.found?r:n,f=c.width,m=c.height,v=l==="fak",y=[$e.replacementClass,o?"".concat($e.cssPrefix,"-").concat(o):""].filter(function(k){return i.classes.indexOf(k)===-1}).filter(function(k){return k!==""||!!k}).concat(i.classes).join(" "),x={children:[],attributes:ye(ye({},i.attributes),{},{"data-prefix":l,"data-icon":o,class:y,role:i.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(f," ").concat(m)})},$=v&&!~i.classes.indexOf("fa-fw")?{width:"".concat(f/m*16*.0625,"em")}:{};h&&(x.attributes[qn]=""),a&&(x.children.push({tag:"title",attributes:{id:x.attributes["aria-labelledby"]||"title-".concat(s||ei())},children:[a]}),delete x.attributes.title);var _=ye(ye({},x),{},{prefix:l,iconName:o,main:n,mask:r,maskId:p,transform:d,symbol:g,styles:ye(ye({},$),i.styles)}),b=r.found&&n.found?pn("generateAbstractMask",_)||{children:[],attributes:{}}:pn("generateAbstractIcon",_)||{children:[],attributes:{}},A=b.children,L=b.attributes;return _.children=A,_.attributes=L,g?cg(_):lg(_)}function nc(e){var t=e.content,n=e.width,r=e.height,l=e.transform,o=e.title,d=e.extra,g=e.watchable,a=g===void 0?!1:g,p=ye(ye(ye({},d.attributes),o?{title:o}:{}),{},{class:d.classes.join(" ")});a&&(p[qn]="");var s=ye({},d.styles);Ua(l)&&(s.transform=Bp({transform:l,startCentered:!0,width:n,height:r}),s["-webkit-transform"]=s.transform);var i=Ws(s);i.length>0&&(p.style=i);var u=[];return u.push({tag:"span",attributes:p,children:[t]}),o&&u.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),u}function ug(e){var t=e.content,n=e.title,r=e.extra,l=ye(ye(ye({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),o=Ws(r.styles);o.length>0&&(l.style=o);var d=[];return d.push({tag:"span",attributes:l,children:[t]}),n&&d.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),d}var So=Pt.styles;function Jo(e){var t=e[0],n=e[1],r=e.slice(4),l=Pa(r,1),o=l[0],d=null;return Array.isArray(o)?d={tag:"g",attributes:{class:"".concat($e.cssPrefix,"-").concat(Vn.GROUP)},children:[{tag:"path",attributes:{class:"".concat($e.cssPrefix,"-").concat(Vn.SECONDARY),fill:"currentColor",d:o[0]}},{tag:"path",attributes:{class:"".concat($e.cssPrefix,"-").concat(Vn.PRIMARY),fill:"currentColor",d:o[1]}}]}:d={tag:"path",attributes:{fill:"currentColor",d:o}},{found:!0,width:t,height:n,icon:d}}var hg={found:!1,width:512,height:512};function dg(e,t){!Xu&&!$e.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function ea(e,t){var n=t;return t==="fa"&&$e.styleDefault!==null&&(t=Mn()),new Promise(function(r,l){if(pn("missingIconAbstract"),n==="fa"){var o=ch(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&So[t]&&So[t][e]){var d=So[t][e];return r(Jo(d))}dg(e,t),r(ye(ye({},hg),{},{icon:$e.showMissingIcons&&e?pn("missingIconAbstract")||{}:{}}))})}var rc=function(){},ta=$e.measurePerformance&&Di&&Di.mark&&Di.measure?Di:{mark:rc,measure:rc},Pr='FA "6.5.2"',fg=function(t){return ta.mark("".concat(Pr," ").concat(t," begins")),function(){return hh(t)}},hh=function(t){ta.mark("".concat(Pr," ").concat(t," ends")),ta.measure("".concat(Pr," ").concat(t),"".concat(Pr," ").concat(t," begins"),"".concat(Pr," ").concat(t," ends"))},Za={begin:fg,end:hh},ts=function(){};function ic(e){var t=e.getAttribute?e.getAttribute(qn):null;return typeof t=="string"}function pg(e){var t=e.getAttribute?e.getAttribute(Ba):null,n=e.getAttribute?e.getAttribute(Ha):null;return t&&n}function gg(e){return e&&e.classList&&e.classList.contains&&e.classList.contains($e.replacementClass)}function mg(){if($e.autoReplaceSvg===!0)return ns.replace;var e=ns[$e.autoReplaceSvg];return e||ns.replace}function vg(e){return st.createElementNS("http://www.w3.org/2000/svg",e)}function yg(e){return st.createElement(e)}function dh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?vg:yg:n;if(typeof e=="string")return st.createTextNode(e);var l=r(e.tag);Object.keys(e.attributes||[]).forEach(function(d){l.setAttribute(d,e.attributes[d])});var o=e.children||[];return o.forEach(function(d){l.appendChild(dh(d,{ceFn:r}))}),l}function bg(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var ns={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(l){n.parentNode.insertBefore(dh(l),n)}),n.getAttribute(qn)===null&&$e.keepOriginalSource){var r=st.createComment(bg(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~ja(n).indexOf($e.replacementClass))return ns.replace(t);var l=new RegExp("".concat($e.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var o=r[0].attributes.class.split(" ").reduce(function(g,a){return a===$e.replacementClass||a.match(l)?g.toSvg.push(a):g.toNode.push(a),g},{toNode:[],toSvg:[]});r[0].attributes.class=o.toSvg.join(" "),o.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",o.toNode.join(" "))}var d=r.map(function(g){return xi(g)}).join(`
|
761
|
-
`);n.setAttribute(qn,""),n.innerHTML=d}};function sc(e){e()}function fh(e,t){var n=typeof t=="function"?t:ts;if(e.length===0)n();else{var r=sc;$e.mutateApproach===Sp&&(r=Ln.requestAnimationFrame||sc),r(function(){var l=mg(),o=Za.begin("mutate");e.map(l),o(),n()})}}var Xa=!1;function ph(){Xa=!0}function na(){Xa=!1}var vs=null;function oc(e){if(Zl&&$e.observeMutations){var t=e.treeCallback,n=t===void 0?ts:t,r=e.nodeCallback,l=r===void 0?ts:r,o=e.pseudoElementsCallback,d=o===void 0?ts:o,g=e.observeMutationsRoot,a=g===void 0?st:g;vs=new Zl(function(p){if(!Xa){var s=Mn();kr(p).forEach(function(i){if(i.type==="childList"&&i.addedNodes.length>0&&!ic(i.addedNodes[0])&&($e.searchPseudoElements&&d(i.target),n(i.target)),i.type==="attributes"&&i.target.parentNode&&$e.searchPseudoElements&&d(i.target.parentNode),i.type==="attributes"&&ic(i.target)&&~Tp.indexOf(i.attributeName))if(i.attributeName==="class"&&pg(i.target)){var u=Hs(ja(i.target)),h=u.prefix,c=u.iconName;i.target.setAttribute(Ba,h||s),c&&i.target.setAttribute(Ha,c)}else gg(i.target)&&l(i.target)})}}),mn&&vs.observe(a,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function wg(){vs&&vs.disconnect()}function _g(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,l){var o=l.split(":"),d=o[0],g=o.slice(1);return d&&g.length>0&&(r[d]=g.join(":").trim()),r},{})),n}function $g(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",l=Hs(ja(e));return l.prefix||(l.prefix=Mn()),t&&n&&(l.prefix=t,l.iconName=n),l.iconName&&l.prefix||(l.prefix&&r.length>0&&(l.iconName=Jp(l.prefix,e.innerText)||Ga(l.prefix,Zo(e.innerText))),!l.iconName&&$e.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(l.iconName=e.firstChild.data)),l}function Sg(e){var t=kr(e.attributes).reduce(function(l,o){return l.name!=="class"&&l.name!=="style"&&(l[o.name]=o.value),l},{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return $e.autoA11y&&(n?t["aria-labelledby"]="".concat($e.replacementClass,"-title-").concat(r||ei()):(t["aria-hidden"]="true",t.focusable="false")),t}function xg(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Xt,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function ac(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=$g(e),r=n.iconName,l=n.prefix,o=n.rest,d=Sg(e),g=qo("parseNodeAttributes",{},e),a=t.styleParser?_g(e):[];return ye({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:l,transform:Xt,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:a,attributes:d}},g)}var Cg=Pt.styles;function gh(e){var t=$e.autoReplaceSvg==="nest"?ac(e,{styleParser:!1}):ac(e);return~t.extra.classes.indexOf(qu)?pn("generateLayersText",e,t):pn("generateSvgReplacementMutation",e,t)}var On=new Set;za.map(function(e){On.add("fa-".concat(e))});Object.keys(Xr[nt]).map(On.add.bind(On));Object.keys(Xr[lt]).map(On.add.bind(On));On=$i(On);function lc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!mn)return Promise.resolve();var n=st.documentElement.classList,r=function(i){return n.add("".concat(Xl,"-").concat(i))},l=function(i){return n.remove("".concat(Xl,"-").concat(i))},o=$e.autoFetchSvg?On:za.map(function(s){return"fa-".concat(s)}).concat(Object.keys(Cg));o.includes("fa")||o.push("fa");var d=[".".concat(qu,":not([").concat(qn,"])")].concat(o.map(function(s){return".".concat(s,":not([").concat(qn,"])")})).join(", ");if(d.length===0)return Promise.resolve();var g=[];try{g=kr(e.querySelectorAll(d))}catch{}if(g.length>0)r("pending"),l("complete");else return Promise.resolve();var a=Za.begin("onTree"),p=g.reduce(function(s,i){try{var u=gh(i);u&&s.push(u)}catch(h){Xu||h.name==="MissingIcon"&&console.error(h)}return s},[]);return new Promise(function(s,i){Promise.all(p).then(function(u){fh(u,function(){r("active"),r("complete"),l("pending"),typeof t=="function"&&t(),a(),s()})}).catch(function(u){a(),i(u)})})}function Ag(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;gh(e).then(function(n){n&&fh([n],t)})}function kg(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:Qo(t||{}),l=n.mask;return l&&(l=(l||{}).icon?l:Qo(l||{})),e(r,ye(ye({},n),{},{mask:l}))}}var Eg=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,l=r===void 0?Xt:r,o=n.symbol,d=o===void 0?!1:o,g=n.mask,a=g===void 0?null:g,p=n.maskId,s=p===void 0?null:p,i=n.title,u=i===void 0?null:i,h=n.titleId,c=h===void 0?null:h,f=n.classes,m=f===void 0?[]:f,v=n.attributes,y=v===void 0?{}:v,x=n.styles,$=x===void 0?{}:x;if(t){var _=t.prefix,b=t.iconName,A=t.icon;return zs(ye({type:"icon"},t),function(){return Qn("beforeDOMElementCreation",{iconDefinition:t,params:n}),$e.autoA11y&&(u?y["aria-labelledby"]="".concat($e.replacementClass,"-title-").concat(c||ei()):(y["aria-hidden"]="true",y.focusable="false")),Ya({icons:{main:Jo(A),mask:a?Jo(a.icon):{found:!1,width:null,height:null,icon:{}}},prefix:_,iconName:b,transform:ye(ye({},Xt),l),symbol:d,title:u,maskId:s,titleId:c,extra:{attributes:y,styles:$,classes:m}})})}},Rg={mixout:function(){return{icon:kg(Eg)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=lc,n.nodeCallback=Ag,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,l=r===void 0?st:r,o=n.callback,d=o===void 0?function(){}:o;return lc(l,d)},t.generateSvgReplacementMutation=function(n,r){var l=r.iconName,o=r.title,d=r.titleId,g=r.prefix,a=r.transform,p=r.symbol,s=r.mask,i=r.maskId,u=r.extra;return new Promise(function(h,c){Promise.all([ea(l,g),s.iconName?ea(s.iconName,s.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(f){var m=Pa(f,2),v=m[0],y=m[1];h([n,Ya({icons:{main:v,mask:y},prefix:g,iconName:l,transform:a,symbol:p,maskId:i,title:o,titleId:d,extra:u,watchable:!0})])}).catch(c)})},t.generateAbstractIcon=function(n){var r=n.children,l=n.attributes,o=n.main,d=n.transform,g=n.styles,a=Ws(g);a.length>0&&(l.style=a);var p;return Ua(d)&&(p=pn("generateAbstractTransformGrouping",{main:o,transform:d,containerWidth:o.width,iconWidth:o.width})),r.push(p||o.icon),{children:r,attributes:l}}}},Tg={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=r.classes,o=l===void 0?[]:l;return zs({type:"layer"},function(){Qn("beforeDOMElementCreation",{assembler:n,params:r});var d=[];return n(function(g){Array.isArray(g)?g.map(function(a){d=d.concat(a.abstract)}):d=d.concat(g.abstract)}),[{tag:"span",attributes:{class:["".concat($e.cssPrefix,"-layers")].concat($i(o)).join(" ")},children:d}]})}}}},Lg={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=r.title,o=l===void 0?null:l,d=r.classes,g=d===void 0?[]:d,a=r.attributes,p=a===void 0?{}:a,s=r.styles,i=s===void 0?{}:s;return zs({type:"counter",content:n},function(){return Qn("beforeDOMElementCreation",{content:n,params:r}),ug({content:n.toString(),title:o,extra:{attributes:p,styles:i,classes:["".concat($e.cssPrefix,"-layers-counter")].concat($i(g))}})})}}}},Mg={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=r.transform,o=l===void 0?Xt:l,d=r.title,g=d===void 0?null:d,a=r.classes,p=a===void 0?[]:a,s=r.attributes,i=s===void 0?{}:s,u=r.styles,h=u===void 0?{}:u;return zs({type:"text",content:n},function(){return Qn("beforeDOMElementCreation",{content:n,params:r}),nc({content:n,transform:ye(ye({},Xt),o),title:g,extra:{attributes:i,styles:h,classes:["".concat($e.cssPrefix,"-layers-text")].concat($i(p))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var l=r.title,o=r.transform,d=r.extra,g=null,a=null;if(Ku){var p=parseInt(getComputedStyle(n).fontSize,10),s=n.getBoundingClientRect();g=s.width/p,a=s.height/p}return $e.autoA11y&&!l&&(d.attributes["aria-hidden"]="true"),Promise.resolve([n,nc({content:n.innerHTML,width:g,height:a,transform:o,title:l,extra:d,watchable:!0})])}}},Og=new RegExp('"',"ug"),cc=[1105920,1112319];function Ig(e){var t=e.replace(Og,""),n=Kp(t,0),r=n>=cc[0]&&n<=cc[1],l=t.length===2?t[0]===t[1]:!1;return{value:Zo(l?t[0]:t),isSecondary:r||l}}function uc(e,t){var n="".concat($p).concat(t.replace(":","-"));return new Promise(function(r,l){if(e.getAttribute(n)!==null)return r();var o=kr(e.children),d=o.filter(function(A){return A.getAttribute(Yo)===t})[0],g=Ln.getComputedStyle(e,t),a=g.getPropertyValue("font-family").match(kp),p=g.getPropertyValue("font-weight"),s=g.getPropertyValue("content");if(d&&!a)return e.removeChild(d),r();if(a&&s!=="none"&&s!==""){var i=g.getPropertyValue("content"),u=~["Sharp"].indexOf(a[2])?lt:nt,h=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(a[2])?qr[u][a[2].toLowerCase()]:Ep[u][p],c=Ig(i),f=c.value,m=c.isSecondary,v=a[0].startsWith("FontAwesome"),y=Ga(h,f),x=y;if(v){var $=eg(f);$.iconName&&$.prefix&&(y=$.iconName,h=$.prefix)}if(y&&!m&&(!d||d.getAttribute(Ba)!==h||d.getAttribute(Ha)!==x)){e.setAttribute(n,x),d&&e.removeChild(d);var _=xg(),b=_.extra;b.attributes[Yo]=t,ea(y,h).then(function(A){var L=Ya(ye(ye({},_),{},{icons:{main:A,mask:Ka()},prefix:h,iconName:x,extra:b,watchable:!0})),k=st.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(k,e.firstChild):e.appendChild(k),k.outerHTML=L.map(function(M){return xi(M)}).join(`
|
762
|
-
`),e.removeAttribute(n),r()}).catch(l)}else r()}else r()})}function Ng(e){return Promise.all([uc(e,"::before"),uc(e,"::after")])}function Fg(e){return e.parentNode!==document.head&&!~xp.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Yo)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function hc(e){if(mn)return new Promise(function(t,n){var r=kr(e.querySelectorAll("*")).filter(Fg).map(Ng),l=Za.begin("searchPseudoElements");ph(),Promise.all(r).then(function(){l(),na(),t()}).catch(function(){l(),na(),n()})})}var Dg={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=hc,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,l=r===void 0?st:r;$e.searchPseudoElements&&hc(l)}}},dc=!1,Pg={mixout:function(){return{dom:{unwatch:function(){ph(),dc=!0}}}},hooks:function(){return{bootstrap:function(){oc(qo("mutationObserverCallbacks",{}))},noAuto:function(){wg()},watch:function(n){var r=n.observeMutationsRoot;dc?na():oc(qo("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},fc=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 o=l.toLowerCase().split("-"),d=o[0],g=o.slice(1).join("-");if(d&&g==="h")return r.flipX=!0,r;if(d&&g==="v")return r.flipY=!0,r;if(g=parseFloat(g),isNaN(g))return r;switch(d){case"grow":r.size=r.size+g;break;case"shrink":r.size=r.size-g;break;case"left":r.x=r.x-g;break;case"right":r.x=r.x+g;break;case"up":r.y=r.y-g;break;case"down":r.y=r.y+g;break;case"rotate":r.rotate=r.rotate+g;break}return r},n)},Wg={mixout:function(){return{parse:{transform:function(n){return fc(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var l=r.getAttribute("data-fa-transform");return l&&(n.transform=fc(l)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,l=n.transform,o=n.containerWidth,d=n.iconWidth,g={transform:"translate(".concat(o/2," 256)")},a="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),") "),s="rotate(".concat(l.rotate," 0 0)"),i={transform:"".concat(a," ").concat(p," ").concat(s)},u={transform:"translate(".concat(d/2*-1," -256)")},h={outer:g,inner:i,path:u};return{tag:"g",attributes:ye({},h.outer),children:[{tag:"g",attributes:ye({},h.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:ye(ye({},r.icon.attributes),h.path)}]}]}}}},xo={x:0,y:0,width:"100%",height:"100%"};function pc(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 Bg(e){return e.tag==="g"?e.children:[e]}var Hg={hooks:function(){return{parseNodeAttributes:function(n,r){var l=r.getAttribute("data-fa-mask"),o=l?Hs(l.split(" ").map(function(d){return d.trim()})):Ka();return o.prefix||(o.prefix=Mn()),n.mask=o,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,l=n.attributes,o=n.main,d=n.mask,g=n.maskId,a=n.transform,p=o.width,s=o.icon,i=d.width,u=d.icon,h=Wp({transform:a,containerWidth:i,iconWidth:p}),c={tag:"rect",attributes:ye(ye({},xo),{},{fill:"white"})},f=s.children?{children:s.children.map(pc)}:{},m={tag:"g",attributes:ye({},h.inner),children:[pc(ye({tag:s.tag,attributes:ye(ye({},s.attributes),h.path)},f))]},v={tag:"g",attributes:ye({},h.outer),children:[m]},y="mask-".concat(g||ei()),x="clip-".concat(g||ei()),$={tag:"mask",attributes:ye(ye({},xo),{},{id:y,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[c,v]},_={tag:"defs",children:[{tag:"clipPath",attributes:{id:x},children:Bg(u)},$]};return r.push(_,{tag:"rect",attributes:ye({fill:"currentColor","clip-path":"url(#".concat(x,")"),mask:"url(#".concat(y,")")},xo)}),{children:r,attributes:l}}}},zg={provides:function(t){var n=!1;Ln.matchMedia&&(n=Ln.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],l={fill:"currentColor"},o={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:ye(ye({},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 d=ye(ye({},o),{},{attributeName:"opacity"}),g={tag:"circle",attributes:ye(ye({},l),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||g.children.push({tag:"animate",attributes:ye(ye({},o),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:ye(ye({},d),{},{values:"1;0;1;1;0;1;"})}),r.push(g),r.push({tag:"path",attributes:ye(ye({},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:ye(ye({},d),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:ye(ye({},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:ye(ye({},d),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},jg={hooks:function(){return{parseNodeAttributes:function(n,r){var l=r.getAttribute("data-fa-symbol"),o=l===null?!1:l===""?!0:l;return n.symbol=o,n}}}},Ug=[zp,Rg,Tg,Lg,Mg,Dg,Pg,Wg,Hg,zg,jg];rg(Ug,{mixoutsTo:It});It.noAuto;It.config;var Vg=It.library;It.dom;var ra=It.parse;It.findIconDefinition;It.toHtml;var Gg=It.icon;It.layer;It.text;It.counter;var Kg={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"]},Yg={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"]},Zg=Yg,Xg={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"]},qg={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"]},Qg={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"]},Jg=Qg,em={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"]},tm={prefix:"fas",iconName:"sun",icon:[512,512,[9728],"f185","M361.5 1.2c5 2.1 8.6 6.6 9.6 11.9L391 121l107.9 19.8c5.3 1 9.8 4.6 11.9 9.6s1.5 10.7-1.6 15.2L446.9 256l62.3 90.3c3.1 4.5 3.7 10.2 1.6 15.2s-6.6 8.6-11.9 9.6L391 391 371.1 498.9c-1 5.3-4.6 9.8-9.6 11.9s-10.7 1.5-15.2-1.6L256 446.9l-90.3 62.3c-4.5 3.1-10.2 3.7-15.2 1.6s-8.6-6.6-9.6-11.9L121 391 13.1 371.1c-5.3-1-9.8-4.6-11.9-9.6s-1.5-10.7 1.6-15.2L65.1 256 2.8 165.7c-3.1-4.5-3.7-10.2-1.6-15.2s6.6-8.6 11.9-9.6L121 121 140.9 13.1c1-5.3 4.6-9.8 9.6-11.9s10.7-1.5 15.2 1.6L256 65.1 346.3 2.8c4.5-3.1 10.2-3.7 15.2-1.6zM160 256a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zm224 0a128 128 0 1 0 -256 0 128 128 0 1 0 256 0z"]},nm={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"]},rm={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"]},mh={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"]},im=mh,sm={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"]},om={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},am=om,lm={prefix:"fas",iconName:"spinner",icon:[512,512,[],"f110","M304 48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zm0 416a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM48 304a48 48 0 1 0 0-96 48 48 0 1 0 0 96zm464-48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM142.9 437A48 48 0 1 0 75 369.1 48 48 0 1 0 142.9 437zm0-294.2A48 48 0 1 0 75 75a48 48 0 1 0 67.9 67.9zM369.1 437A48 48 0 1 0 437 369.1 48 48 0 1 0 369.1 437z"]},cm={prefix:"fas",iconName:"moon",icon:[384,512,[127769,9214],"f186","M223.5 32C100 32 0 132.3 0 256S100 480 223.5 480c60.6 0 115.5-24.2 155.8-63.4c5-4.9 6.3-12.5 3.1-18.7s-10.1-9.7-17-8.5c-9.8 1.7-19.8 2.6-30.1 2.6c-96.9 0-175.5-78.8-175.5-176c0-65.8 36-123.1 89.3-153.3c6.1-3.5 9.2-10.5 7.7-17.3s-7.3-11.9-14.3-12.5c-6.3-.5-12.6-.8-19-.8z"]},um={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"]},hm={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"]},dm={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"]},fm={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"]};/**
|
763
|
-
* @vue/shared v3.4.23
|
764
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
765
|
-
* @license MIT
|
766
|
-
**//*! #__NO_SIDE_EFFECTS__ */function qa(e,t){const n=new Set(e.split(","));return t?r=>n.has(r.toLowerCase()):r=>n.has(r)}const tt={},pr=[],Ft=()=>{},pm=()=>!1,js=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Qa=e=>e.startsWith("onUpdate:"),vt=Object.assign,Ja=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},gm=Object.prototype.hasOwnProperty,ze=(e,t)=>gm.call(e,t),Oe=Array.isArray,gr=e=>Us(e)==="[object Map]",vh=e=>Us(e)==="[object Set]",Ne=e=>typeof e=="function",dt=e=>typeof e=="string",or=e=>typeof e=="symbol",ot=e=>e!==null&&typeof e=="object",yh=e=>(ot(e)||Ne(e))&&Ne(e.then)&&Ne(e.catch),bh=Object.prototype.toString,Us=e=>bh.call(e),mm=e=>Us(e).slice(8,-1),wh=e=>Us(e)==="[object Object]",el=e=>dt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,zr=qa(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Vs=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},vm=/-(\w)/g,Jt=Vs(e=>e.replace(vm,(t,n)=>n?n.toUpperCase():"")),ym=/\B([A-Z])/g,Er=Vs(e=>e.replace(ym,"-$1").toLowerCase()),Ci=Vs(e=>e.charAt(0).toUpperCase()+e.slice(1)),Co=Vs(e=>e?`on${Ci(e)}`:""),In=(e,t)=>!Object.is(e,t),rs=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},_h=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ia=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let gc;const $h=()=>gc||(gc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function tl(e){if(Oe(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],l=dt(r)?$m(r):tl(r);if(l)for(const o in l)t[o]=l[o]}return t}else if(dt(e)||ot(e))return e}const bm=/;(?![^(]*\))/g,wm=/:([^]+)/,_m=/\/\*[^]*?\*\//g;function $m(e){const t={};return e.replace(_m,"").split(bm).forEach(n=>{if(n){const r=n.split(wm);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Ai(e){let t="";if(dt(e))t=e;else if(Oe(e))for(let n=0;n<e.length;n++){const r=Ai(e[n]);r&&(t+=r+" ")}else if(ot(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Sm="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",xm=qa(Sm);function Sh(e){return!!e||e===""}const we=e=>dt(e)?e:e==null?"":Oe(e)||ot(e)&&(e.toString===bh||!Ne(e.toString))?JSON.stringify(e,xh,2):String(e),xh=(e,t)=>t&&t.__v_isRef?xh(e,t.value):gr(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,l],o)=>(n[Ao(r,o)+" =>"]=l,n),{})}:vh(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Ao(n))}:or(t)?Ao(t):ot(t)&&!Oe(t)&&!wh(t)?String(t):t,Ao=(e,t="")=>{var n;return or(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
767
|
-
* @vue/reactivity v3.4.23
|
768
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
769
|
-
* @license MIT
|
770
|
-
**/let Mt;class Ch{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Mt,!t&&Mt&&(this.index=(Mt.scopes||(Mt.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Mt;try{return Mt=this,t()}finally{Mt=n}}}on(){Mt=this}off(){Mt=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const l=this.parent.scopes.pop();l&&l!==this&&(this.parent.scopes[this.index]=l,l.index=this.index)}this.parent=void 0,this._active=!1}}}function Cm(e){return new Ch(e)}function Am(e,t=Mt){t&&t.active&&t.effects.push(e)}function Ah(){return Mt}function km(e){Mt&&Mt.cleanups.push(e)}let Yn;class nl{constructor(t,n,r,l){this.fn=t,this.trigger=n,this.scheduler=r,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,Am(this,l)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,Pn();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(Em(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Wn()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Rn,n=Yn;try{return Rn=!0,Yn=this,this._runnings++,mc(this),this.fn()}finally{vc(this),this._runnings--,Yn=n,Rn=t}}stop(){var t;this.active&&(mc(this),vc(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Em(e){return e.value}function mc(e){e._trackId++,e._depsLength=0}function vc(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)kh(e.deps[t],e);e.deps.length=e._depsLength}}function kh(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let Rn=!0,sa=0;const Eh=[];function Pn(){Eh.push(Rn),Rn=!1}function Wn(){const e=Eh.pop();Rn=e===void 0?!0:e}function rl(){sa++}function il(){for(sa--;!sa&&oa.length;)oa.shift()()}function Rh(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const r=e.deps[e._depsLength];r!==t?(r&&kh(r,e),e.deps[e._depsLength++]=t):e._depsLength++}}const oa=[];function Th(e,t,n){rl();for(const r of e.keys()){let l;r._dirtyLevel<t&&(l??(l=e.get(r)===r._trackId))&&(r._shouldSchedule||(r._shouldSchedule=r._dirtyLevel===0),r._dirtyLevel=t),r._shouldSchedule&&(l??(l=e.get(r)===r._trackId))&&(r.trigger(),(!r._runnings||r.allowRecurse)&&r._dirtyLevel!==2&&(r._shouldSchedule=!1,r.scheduler&&oa.push(r.scheduler)))}il()}const Lh=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},ys=new WeakMap,Zn=Symbol(""),aa=Symbol("");function Tt(e,t,n){if(Rn&&Yn){let r=ys.get(e);r||ys.set(e,r=new Map);let l=r.get(n);l||r.set(n,l=Lh(()=>r.delete(n))),Rh(Yn,l)}}function cn(e,t,n,r,l,o){const d=ys.get(e);if(!d)return;let g=[];if(t==="clear")g=[...d.values()];else if(n==="length"&&Oe(e)){const a=Number(r);d.forEach((p,s)=>{(s==="length"||!or(s)&&s>=a)&&g.push(p)})}else switch(n!==void 0&&g.push(d.get(n)),t){case"add":Oe(e)?el(n)&&g.push(d.get("length")):(g.push(d.get(Zn)),gr(e)&&g.push(d.get(aa)));break;case"delete":Oe(e)||(g.push(d.get(Zn)),gr(e)&&g.push(d.get(aa)));break;case"set":gr(e)&&g.push(d.get(Zn));break}rl();for(const a of g)a&&Th(a,4);il()}function Rm(e,t){var n;return(n=ys.get(e))==null?void 0:n.get(t)}const Tm=qa("__proto__,__v_isRef,__isVue"),Mh=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(or)),yc=Lm();function Lm(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=Ge(this);for(let o=0,d=this.length;o<d;o++)Tt(r,"get",o+"");const l=r[t](...n);return l===-1||l===!1?r[t](...n.map(Ge)):l}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Pn(),rl();const r=Ge(this)[t].apply(this,n);return il(),Wn(),r}}),e}function Mm(e){or(e)||(e=String(e));const t=Ge(this);return Tt(t,"has",e),t.hasOwnProperty(e)}class Oh{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){const l=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!l;if(n==="__v_isReadonly")return l;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(l?o?Vm:Dh:o?Fh:Nh).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const d=Oe(t);if(!l){if(d&&ze(yc,n))return Reflect.get(yc,n,r);if(n==="hasOwnProperty")return Mm}const g=Reflect.get(t,n,r);return(or(n)?Mh.has(n):Tm(n))||(l||Tt(t,"get",n),o)?g:ut(g)?d&&el(n)?g:g.value:ot(g)?l?Ks(g):Rr(g):g}}class Ih extends Oh{constructor(t=!1){super(!1,t)}set(t,n,r,l){let o=t[n];if(!this._isShallow){const a=ti(o);if(!bs(r)&&!ti(r)&&(o=Ge(o),r=Ge(r)),!Oe(t)&&ut(o)&&!ut(r))return a?!1:(o.value=r,!0)}const d=Oe(t)&&el(n)?Number(n)<t.length:ze(t,n),g=Reflect.set(t,n,r,l);return t===Ge(l)&&(d?In(r,o)&&cn(t,"set",n,r):cn(t,"add",n,r)),g}deleteProperty(t,n){const r=ze(t,n);t[n];const l=Reflect.deleteProperty(t,n);return l&&r&&cn(t,"delete",n,void 0),l}has(t,n){const r=Reflect.has(t,n);return(!or(n)||!Mh.has(n))&&Tt(t,"has",n),r}ownKeys(t){return Tt(t,"iterate",Oe(t)?"length":Zn),Reflect.ownKeys(t)}}class Om extends Oh{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Im=new Ih,Nm=new Om,Fm=new Ih(!0),sl=e=>e,Gs=e=>Reflect.getPrototypeOf(e);function Gi(e,t,n=!1,r=!1){e=e.__v_raw;const l=Ge(e),o=Ge(t);n||(In(t,o)&&Tt(l,"get",t),Tt(l,"get",o));const{has:d}=Gs(l),g=r?sl:n?ll:ni;if(d.call(l,t))return g(e.get(t));if(d.call(l,o))return g(e.get(o));e!==l&&e.get(t)}function Ki(e,t=!1){const n=this.__v_raw,r=Ge(n),l=Ge(e);return t||(In(e,l)&&Tt(r,"has",e),Tt(r,"has",l)),e===l?n.has(e):n.has(e)||n.has(l)}function Yi(e,t=!1){return e=e.__v_raw,!t&&Tt(Ge(e),"iterate",Zn),Reflect.get(e,"size",e)}function bc(e){e=Ge(e);const t=Ge(this);return Gs(t).has.call(t,e)||(t.add(e),cn(t,"add",e,e)),this}function wc(e,t){t=Ge(t);const n=Ge(this),{has:r,get:l}=Gs(n);let o=r.call(n,e);o||(e=Ge(e),o=r.call(n,e));const d=l.call(n,e);return n.set(e,t),o?In(t,d)&&cn(n,"set",e,t):cn(n,"add",e,t),this}function _c(e){const t=Ge(this),{has:n,get:r}=Gs(t);let l=n.call(t,e);l||(e=Ge(e),l=n.call(t,e)),r&&r.call(t,e);const o=t.delete(e);return l&&cn(t,"delete",e,void 0),o}function $c(){const e=Ge(this),t=e.size!==0,n=e.clear();return t&&cn(e,"clear",void 0,void 0),n}function Zi(e,t){return function(r,l){const o=this,d=o.__v_raw,g=Ge(d),a=t?sl:e?ll:ni;return!e&&Tt(g,"iterate",Zn),d.forEach((p,s)=>r.call(l,a(p),a(s),o))}}function Xi(e,t,n){return function(...r){const l=this.__v_raw,o=Ge(l),d=gr(o),g=e==="entries"||e===Symbol.iterator&&d,a=e==="keys"&&d,p=l[e](...r),s=n?sl:t?ll:ni;return!t&&Tt(o,"iterate",a?aa:Zn),{next(){const{value:i,done:u}=p.next();return u?{value:i,done:u}:{value:g?[s(i[0]),s(i[1])]:s(i),done:u}},[Symbol.iterator](){return this}}}}function _n(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Dm(){const e={get(o){return Gi(this,o)},get size(){return Yi(this)},has:Ki,add:bc,set:wc,delete:_c,clear:$c,forEach:Zi(!1,!1)},t={get(o){return Gi(this,o,!1,!0)},get size(){return Yi(this)},has:Ki,add:bc,set:wc,delete:_c,clear:$c,forEach:Zi(!1,!0)},n={get(o){return Gi(this,o,!0)},get size(){return Yi(this,!0)},has(o){return Ki.call(this,o,!0)},add:_n("add"),set:_n("set"),delete:_n("delete"),clear:_n("clear"),forEach:Zi(!0,!1)},r={get(o){return Gi(this,o,!0,!0)},get size(){return Yi(this,!0)},has(o){return Ki.call(this,o,!0)},add:_n("add"),set:_n("set"),delete:_n("delete"),clear:_n("clear"),forEach:Zi(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Xi(o,!1,!1),n[o]=Xi(o,!0,!1),t[o]=Xi(o,!1,!0),r[o]=Xi(o,!0,!0)}),[e,n,t,r]}const[Pm,Wm,Bm,Hm]=Dm();function ol(e,t){const n=t?e?Hm:Bm:e?Wm:Pm;return(r,l,o)=>l==="__v_isReactive"?!e:l==="__v_isReadonly"?e:l==="__v_raw"?r:Reflect.get(ze(n,l)&&l in r?n:r,l,o)}const zm={get:ol(!1,!1)},jm={get:ol(!1,!0)},Um={get:ol(!0,!1)},Nh=new WeakMap,Fh=new WeakMap,Dh=new WeakMap,Vm=new WeakMap;function Gm(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Km(e){return e.__v_skip||!Object.isExtensible(e)?0:Gm(mm(e))}function Rr(e){return ti(e)?e:al(e,!1,Im,zm,Nh)}function Ph(e){return al(e,!1,Fm,jm,Fh)}function Ks(e){return al(e,!0,Nm,Um,Dh)}function al(e,t,n,r,l){if(!ot(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=l.get(e);if(o)return o;const d=Km(e);if(d===0)return e;const g=new Proxy(e,d===2?r:n);return l.set(e,g),g}function jr(e){return ti(e)?jr(e.__v_raw):!!(e&&e.__v_isReactive)}function ti(e){return!!(e&&e.__v_isReadonly)}function bs(e){return!!(e&&e.__v_isShallow)}function Wh(e){return e?!!e.__v_raw:!1}function Ge(e){const t=e&&e.__v_raw;return t?Ge(t):e}function Bh(e){return Object.isExtensible(e)&&_h(e,"__v_skip",!0),e}const ni=e=>ot(e)?Rr(e):e,ll=e=>ot(e)?Ks(e):e;class Hh{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 nl(()=>t(this._value),()=>Ur(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=Ge(this);return(!t._cacheable||t.effect.dirty)&&In(t._value,t._value=t.effect.run())&&Ur(t,4),cl(t),t.effect._dirtyLevel>=2&&Ur(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function Ym(e,t,n=!1){let r,l;const o=Ne(e);return o?(r=e,l=Ft):(r=e.get,l=e.set),new Hh(r,l,o||!l,n)}function cl(e){var t;Rn&&Yn&&(e=Ge(e),Rh(Yn,(t=e.dep)!=null?t:e.dep=Lh(()=>e.dep=void 0,e instanceof Hh?e:void 0)))}function Ur(e,t=4,n){e=Ge(e);const r=e.dep;r&&Th(r,t)}function ut(e){return!!(e&&e.__v_isRef===!0)}function je(e){return jh(e,!1)}function zh(e){return jh(e,!0)}function jh(e,t){return ut(e)?e:new Zm(e,t)}class Zm{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Ge(t),this._value=n?t:ni(t)}get value(){return cl(this),this._value}set value(t){const n=this.__v_isShallow||bs(t)||ti(t);t=n?t:Ge(t),In(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:ni(t),Ur(this,4))}}function ae(e){return ut(e)?e.value:e}const Xm={get:(e,t,n)=>ae(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const l=e[t];return ut(l)&&!ut(n)?(l.value=n,!0):Reflect.set(e,t,n,r)}};function Uh(e){return jr(e)?e:new Proxy(e,Xm)}class qm{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>cl(this),()=>Ur(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function Vh(e){return new qm(e)}class Qm{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 Rm(Ge(this._object),this._key)}}class Jm{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function ul(e,t,n){return ut(e)?e:Ne(e)?new Jm(e):ot(e)&&arguments.length>1?ev(e,t,n):je(e)}function ev(e,t,n){const r=e[t];return ut(r)?r:new Qm(e,t,n)}/**
|
771
|
-
* @vue/runtime-core v3.4.23
|
772
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
773
|
-
* @license MIT
|
774
|
-
**/function Tn(e,t,n,r){try{return r?e(...r):e()}catch(l){Ys(l,t,n)}}function Ht(e,t,n,r){if(Ne(e)){const l=Tn(e,t,n,r);return l&&yh(l)&&l.catch(o=>{Ys(o,t,n)}),l}if(Oe(e)){const l=[];for(let o=0;o<e.length;o++)l.push(Ht(e[o],t,n,r));return l}}function Ys(e,t,n,r=!0){const l=t?t.vnode:null;if(t){let o=t.parent;const d=t.proxy,g=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const p=o.ec;if(p){for(let s=0;s<p.length;s++)if(p[s](e,d,g)===!1)return}o=o.parent}const a=t.appContext.config.errorHandler;if(a){Pn(),Tn(a,null,10,[e,d,g]),Wn();return}}tv(e,n,l,r)}function tv(e,t,n,r=!0){console.error(e)}let ri=!1,la=!1;const wt=[];let Zt=0;const mr=[];let xn=null,Un=0;const Gh=Promise.resolve();let hl=null;function ki(e){const t=hl||Gh;return e?t.then(this?e.bind(this):e):t}function nv(e){let t=Zt+1,n=wt.length;for(;t<n;){const r=t+n>>>1,l=wt[r],o=ii(l);o<e||o===e&&l.pre?t=r+1:n=r}return t}function dl(e){(!wt.length||!wt.includes(e,ri&&e.allowRecurse?Zt+1:Zt))&&(e.id==null?wt.push(e):wt.splice(nv(e.id),0,e),Kh())}function Kh(){!ri&&!la&&(la=!0,hl=Gh.then(Zh))}function rv(e){const t=wt.indexOf(e);t>Zt&&wt.splice(t,1)}function iv(e){Oe(e)?mr.push(...e):(!xn||!xn.includes(e,e.allowRecurse?Un+1:Un))&&mr.push(e),Kh()}function Sc(e,t,n=ri?Zt+1:0){for(;n<wt.length;n++){const r=wt[n];if(r&&r.pre){if(e&&r.id!==e.uid)continue;wt.splice(n,1),n--,r()}}}function Yh(e){if(mr.length){const t=[...new Set(mr)].sort((n,r)=>ii(n)-ii(r));if(mr.length=0,xn){xn.push(...t);return}for(xn=t,Un=0;Un<xn.length;Un++)xn[Un]();xn=null,Un=0}}const ii=e=>e.id==null?1/0:e.id,sv=(e,t)=>{const n=ii(e)-ii(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Zh(e){la=!1,ri=!0,wt.sort(sv);try{for(Zt=0;Zt<wt.length;Zt++){const t=wt[Zt];t&&t.active!==!1&&Tn(t,null,14)}}finally{Zt=0,wt.length=0,Yh(),ri=!1,hl=null,(wt.length||mr.length)&&Zh()}}function ov(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||tt;let l=n;const o=t.startsWith("update:"),d=o&&t.slice(7);if(d&&d in r){const s=`${d==="modelValue"?"model":d}Modifiers`,{number:i,trim:u}=r[s]||tt;u&&(l=n.map(h=>dt(h)?h.trim():h)),i&&(l=n.map(ia))}let g,a=r[g=Co(t)]||r[g=Co(Jt(t))];!a&&o&&(a=r[g=Co(Er(t))]),a&&Ht(a,e,6,l);const p=r[g+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[g])return;e.emitted[g]=!0,Ht(p,e,6,l)}}function Xh(e,t,n=!1){const r=t.emitsCache,l=r.get(e);if(l!==void 0)return l;const o=e.emits;let d={},g=!1;if(!Ne(e)){const a=p=>{const s=Xh(p,t,!0);s&&(g=!0,vt(d,s))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!o&&!g?(ot(e)&&r.set(e,null),null):(Oe(o)?o.forEach(a=>d[a]=null):vt(d,o),ot(e)&&r.set(e,d),d)}function Zs(e,t){return!e||!js(t)?!1:(t=t.slice(2).replace(/Once$/,""),ze(e,t[0].toLowerCase()+t.slice(1))||ze(e,Er(t))||ze(e,t))}let Ct=null,Xs=null;function ws(e){const t=Ct;return Ct=e,Xs=e&&e.type.__scopeId||null,t}function fl(e){Xs=e}function pl(){Xs=null}function rt(e,t=Ct,n){if(!t||e._n)return e;const r=(...l)=>{r._d&&Ic(-1);const o=ws(t);let d;try{d=e(...l)}finally{ws(o),r._d&&Ic(1)}return d};return r._n=!0,r._c=!0,r._d=!0,r}function ko(e){const{type:t,vnode:n,proxy:r,withProxy:l,props:o,propsOptions:[d],slots:g,attrs:a,emit:p,render:s,renderCache:i,data:u,setupState:h,ctx:c,inheritAttrs:f}=e;let m,v;const y=ws(e);try{if(n.shapeFlag&4){const $=l||r,_=$;m=Yt(s.call(_,$,i,o,h,u,c)),v=a}else{const $=t;m=Yt($.length>1?$(o,{attrs:a,slots:g,emit:p}):$(o,null)),v=t.props?a:av(a)}}catch($){Kr.length=0,Ys($,e,1),m=se(Jn)}let x=m;if(v&&f!==!1){const $=Object.keys(v),{shapeFlag:_}=x;$.length&&_&7&&(d&&$.some(Qa)&&(v=lv(v,d)),x=br(x,v))}return n.dirs&&(x=br(x),x.dirs=x.dirs?x.dirs.concat(n.dirs):n.dirs),n.transition&&(x.transition=n.transition),m=x,ws(y),m}const av=e=>{let t;for(const n in e)(n==="class"||n==="style"||js(n))&&((t||(t={}))[n]=e[n]);return t},lv=(e,t)=>{const n={};for(const r in e)(!Qa(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function cv(e,t,n){const{props:r,children:l,component:o}=e,{props:d,children:g,patchFlag:a}=t,p=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return r?xc(r,d,p):!!d;if(a&8){const s=t.dynamicProps;for(let i=0;i<s.length;i++){const u=s[i];if(d[u]!==r[u]&&!Zs(p,u))return!0}}}else return(l||g)&&(!g||!g.$stable)?!0:r===d?!1:r?d?xc(r,d,p):!0:!!d;return!1}function xc(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let l=0;l<r.length;l++){const o=r[l];if(t[o]!==e[o]&&!Zs(n,o))return!0}return!1}function uv({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const qh="components";function Ze(e,t){return dv(qh,e,!0,t)||e}const hv=Symbol.for("v-ndc");function dv(e,t,n=!0,r=!1){const l=Ct||mt;if(l){const o=l.type;if(e===qh){const g=ry(o,!1);if(g&&(g===t||g===Jt(t)||g===Ci(Jt(t))))return o}const d=Cc(l[e]||o[e],t)||Cc(l.appContext[e],t);return!d&&r?o:d}}function Cc(e,t){return e&&(e[t]||e[Jt(t)]||e[Ci(Jt(t))])}const fv=e=>e.__isSuspense;function pv(e,t){t&&t.pendingBranch?Oe(e)?t.effects.push(...e):t.effects.push(e):iv(e)}const gv=Symbol.for("v-scx"),mv=()=>zt(gv);function gl(e,t){return ml(e,null,t)}const qi={};function Qe(e,t,n){return ml(e,t,n)}function ml(e,t,{immediate:n,deep:r,flush:l,once:o,onTrack:d,onTrigger:g}=tt){if(t&&o){const b=t;t=(...A)=>{b(...A),_()}}const a=mt,p=b=>r===!0?b:Kn(b,r===!1?1:void 0);let s,i=!1,u=!1;if(ut(e)?(s=()=>e.value,i=bs(e)):jr(e)?(s=()=>p(e),i=!0):Oe(e)?(u=!0,i=e.some(b=>jr(b)||bs(b)),s=()=>e.map(b=>{if(ut(b))return b.value;if(jr(b))return p(b);if(Ne(b))return Tn(b,a,2)})):Ne(e)?t?s=()=>Tn(e,a,2):s=()=>(h&&h(),Ht(e,a,3,[c])):s=Ft,t&&r){const b=s;s=()=>Kn(b())}let h,c=b=>{h=x.onStop=()=>{Tn(b,a,4),h=x.onStop=void 0}},f;if(Js)if(c=Ft,t?n&&Ht(t,a,3,[s(),u?[]:void 0,c]):s(),l==="sync"){const b=mv();f=b.__watcherHandles||(b.__watcherHandles=[])}else return Ft;let m=u?new Array(e.length).fill(qi):qi;const v=()=>{if(!(!x.active||!x.dirty))if(t){const b=x.run();(r||i||(u?b.some((A,L)=>In(A,m[L])):In(b,m)))&&(h&&h(),Ht(t,a,3,[b,m===qi?void 0:u&&m[0]===qi?[]:m,c]),m=b)}else x.run()};v.allowRecurse=!!t;let y;l==="sync"?y=v:l==="post"?y=()=>Rt(v,a&&a.suspense):(v.pre=!0,a&&(v.id=a.uid),y=()=>dl(v));const x=new nl(s,Ft,y),$=Ah(),_=()=>{x.stop(),$&&Ja($.effects,x)};return t?n?v():m=x.run():l==="post"?Rt(x.run.bind(x),a&&a.suspense):x.run(),f&&f.push(_),_}function vv(e,t,n){const r=this.proxy,l=dt(e)?e.includes(".")?Qh(r,e):()=>r[e]:e.bind(r,r);let o;Ne(t)?o=t:(o=t.handler,n=t);const d=Ei(this),g=ml(l,o.bind(r),n);return d(),g}function Qh(e,t){const n=t.split(".");return()=>{let r=e;for(let l=0;l<n.length&&r;l++)r=r[n[l]];return r}}function Kn(e,t,n=0,r){if(!ot(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if(r=r||new Set,r.has(e))return e;if(r.add(e),ut(e))Kn(e.value,t,n,r);else if(Oe(e))for(let l=0;l<e.length;l++)Kn(e[l],t,n,r);else if(vh(e)||gr(e))e.forEach(l=>{Kn(l,t,n,r)});else if(wh(e))for(const l in e)Kn(e[l],t,n,r);return e}function vl(e,t){if(Ct===null)return e;const n=eo(Ct)||Ct.proxy,r=e.dirs||(e.dirs=[]);for(let l=0;l<t.length;l++){let[o,d,g,a=tt]=t[l];o&&(Ne(o)&&(o={mounted:o,updated:o}),o.deep&&Kn(d),r.push({dir:o,instance:n,value:d,oldValue:void 0,arg:g,modifiers:a}))}return e}function Bn(e,t,n,r){const l=e.dirs,o=t&&t.dirs;for(let d=0;d<l.length;d++){const g=l[d];o&&(g.oldValue=o[d].value);let a=g.dir[r];a&&(Pn(),Ht(a,n,8,[e.el,g,e,t]),Wn())}}/*! #__NO_SIDE_EFFECTS__ */function xe(e,t){return Ne(e)?vt({name:e.name},t,{setup:e}):e}const is=e=>!!e.type.__asyncLoader,Jh=e=>e.type.__isKeepAlive;function yv(e,t){ed(e,"a",t)}function bv(e,t){ed(e,"da",t)}function ed(e,t,n=mt){const r=e.__wdc||(e.__wdc=()=>{let l=n;for(;l;){if(l.isDeactivated)return;l=l.parent}return e()});if(qs(t,r,n),n){let l=n.parent;for(;l&&l.parent;)Jh(l.parent.vnode)&&wv(r,t,n,l),l=l.parent}}function wv(e,t,n,r){const l=qs(t,e,r,!0);td(()=>{Ja(r[t],l)},n)}function qs(e,t,n=mt,r=!1){if(n){const l=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...d)=>{if(n.isUnmounted)return;Pn();const g=Ei(n),a=Ht(t,n,e,d);return g(),Wn(),a});return r?l.unshift(o):l.push(o),o}}const vn=e=>(t,n=mt)=>(!Js||e==="sp")&&qs(e,(...r)=>t(...r),n),_v=vn("bm"),ct=vn("m"),$v=vn("bu"),Sv=vn("u"),yl=vn("bum"),td=vn("um"),xv=vn("sp"),Cv=vn("rtg"),Av=vn("rtc");function kv(e,t=mt){qs("ec",e,t)}function Ot(e,t,n,r){let l;const o=n&&n[r];if(Oe(e)||dt(e)){l=new Array(e.length);for(let d=0,g=e.length;d<g;d++)l[d]=t(e[d],d,void 0,o&&o[d])}else if(typeof e=="number"){l=new Array(e);for(let d=0;d<e;d++)l[d]=t(d+1,d,void 0,o&&o[d])}else if(ot(e))if(e[Symbol.iterator])l=Array.from(e,(d,g)=>t(d,g,void 0,o&&o[g]));else{const d=Object.keys(e);l=new Array(d.length);for(let g=0,a=d.length;g<a;g++){const p=d[g];l[g]=t(e[p],p,g,o&&o[g])}}else l=[];return n&&(n[r]=l),l}const ca=e=>e?gd(e)?eo(e)||e.proxy:ca(e.parent):null,Vr=vt(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=>ca(e.parent),$root:e=>ca(e.root),$emit:e=>e.emit,$options:e=>bl(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,dl(e.update)}),$nextTick:e=>e.n||(e.n=ki.bind(e.proxy)),$watch:e=>vv.bind(e)}),Eo=(e,t)=>e!==tt&&!e.__isScriptSetup&&ze(e,t),Ev={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:l,props:o,accessCache:d,type:g,appContext:a}=e;let p;if(t[0]!=="$"){const h=d[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 o[t]}else{if(Eo(r,t))return d[t]=1,r[t];if(l!==tt&&ze(l,t))return d[t]=2,l[t];if((p=e.propsOptions[0])&&ze(p,t))return d[t]=3,o[t];if(n!==tt&&ze(n,t))return d[t]=4,n[t];ua&&(d[t]=0)}}const s=Vr[t];let i,u;if(s)return t==="$attrs"&&Tt(e.attrs,"get",""),s(e);if((i=g.__cssModules)&&(i=i[t]))return i;if(n!==tt&&ze(n,t))return d[t]=4,n[t];if(u=a.config.globalProperties,ze(u,t))return u[t]},set({_:e},t,n){const{data:r,setupState:l,ctx:o}=e;return Eo(l,t)?(l[t]=n,!0):r!==tt&&ze(r,t)?(r[t]=n,!0):ze(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:l,propsOptions:o}},d){let g;return!!n[d]||e!==tt&&ze(e,d)||Eo(t,d)||(g=o[0])&&ze(g,d)||ze(r,d)||ze(Vr,d)||ze(l.config.globalProperties,d)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ze(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ac(e){return Oe(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let ua=!0;function Rv(e){const t=bl(e),n=e.proxy,r=e.ctx;ua=!1,t.beforeCreate&&kc(t.beforeCreate,e,"bc");const{data:l,computed:o,methods:d,watch:g,provide:a,inject:p,created:s,beforeMount:i,mounted:u,beforeUpdate:h,updated:c,activated:f,deactivated:m,beforeDestroy:v,beforeUnmount:y,destroyed:x,unmounted:$,render:_,renderTracked:b,renderTriggered:A,errorCaptured:L,serverPrefetch:k,expose:M,inheritAttrs:C,components:R,directives:S,filters:w}=t;if(p&&Tv(p,r,null),d)for(const O in d){const I=d[O];Ne(I)&&(r[O]=I.bind(n))}if(l){const O=l.call(n,n);ot(O)&&(e.data=Rr(O))}if(ua=!0,o)for(const O in o){const I=o[O],N=Ne(I)?I.bind(n,n):Ne(I.get)?I.get.bind(n,n):Ft,P=!Ne(I)&&Ne(I.set)?I.set.bind(n):Ft,H=ke({get:N,set:P});Object.defineProperty(r,O,{enumerable:!0,configurable:!0,get:()=>H.value,set:V=>H.value=V})}if(g)for(const O in g)nd(g[O],r,n,O);if(a){const O=Ne(a)?a.call(n):a;Reflect.ownKeys(O).forEach(I=>{ss(I,O[I])})}s&&kc(s,e,"c");function T(O,I){Oe(I)?I.forEach(N=>O(N.bind(n))):I&&O(I.bind(n))}if(T(_v,i),T(ct,u),T($v,h),T(Sv,c),T(yv,f),T(bv,m),T(kv,L),T(Av,b),T(Cv,A),T(yl,y),T(td,$),T(xv,k),Oe(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={});_&&e.render===Ft&&(e.render=_),C!=null&&(e.inheritAttrs=C),R&&(e.components=R),S&&(e.directives=S)}function Tv(e,t,n=Ft){Oe(e)&&(e=ha(e));for(const r in e){const l=e[r];let o;ot(l)?"default"in l?o=zt(l.from||r,l.default,!0):o=zt(l.from||r):o=zt(l),ut(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:d=>o.value=d}):t[r]=o}}function kc(e,t,n){Ht(Oe(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function nd(e,t,n,r){const l=r.includes(".")?Qh(n,r):()=>n[r];if(dt(e)){const o=t[e];Ne(o)&&Qe(l,o)}else if(Ne(e))Qe(l,e.bind(n));else if(ot(e))if(Oe(e))e.forEach(o=>nd(o,t,n,r));else{const o=Ne(e.handler)?e.handler.bind(n):t[e.handler];Ne(o)&&Qe(l,o,e)}}function bl(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:l,optionsCache:o,config:{optionMergeStrategies:d}}=e.appContext,g=o.get(t);let a;return g?a=g:!l.length&&!n&&!r?a=t:(a={},l.length&&l.forEach(p=>_s(a,p,d,!0)),_s(a,t,d)),ot(t)&&o.set(t,a),a}function _s(e,t,n,r=!1){const{mixins:l,extends:o}=t;o&&_s(e,o,n,!0),l&&l.forEach(d=>_s(e,d,n,!0));for(const d in t)if(!(r&&d==="expose")){const g=Lv[d]||n&&n[d];e[d]=g?g(e[d],t[d]):t[d]}return e}const Lv={data:Ec,props:Rc,emits:Rc,methods:Wr,computed:Wr,beforeCreate:xt,created:xt,beforeMount:xt,mounted:xt,beforeUpdate:xt,updated:xt,beforeDestroy:xt,beforeUnmount:xt,destroyed:xt,unmounted:xt,activated:xt,deactivated:xt,errorCaptured:xt,serverPrefetch:xt,components:Wr,directives:Wr,watch:Ov,provide:Ec,inject:Mv};function Ec(e,t){return t?e?function(){return vt(Ne(e)?e.call(this,this):e,Ne(t)?t.call(this,this):t)}:t:e}function Mv(e,t){return Wr(ha(e),ha(t))}function ha(e){if(Oe(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function xt(e,t){return e?[...new Set([].concat(e,t))]:t}function Wr(e,t){return e?vt(Object.create(null),e,t):t}function Rc(e,t){return e?Oe(e)&&Oe(t)?[...new Set([...e,...t])]:vt(Object.create(null),Ac(e),Ac(t??{})):t}function Ov(e,t){if(!e)return t;if(!t)return e;const n=vt(Object.create(null),e);for(const r in t)n[r]=xt(e[r],t[r]);return n}function rd(){return{app:null,config:{isNativeTag:pm,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Iv=0;function Nv(e,t){return function(r,l=null){Ne(r)||(r=vt({},r)),l!=null&&!ot(l)&&(l=null);const o=rd(),d=new WeakSet;let g=!1;const a=o.app={_uid:Iv++,_component:r,_props:l,_container:null,_context:o,_instance:null,version:sy,get config(){return o.config},set config(p){},use(p,...s){return d.has(p)||(p&&Ne(p.install)?(d.add(p),p.install(a,...s)):Ne(p)&&(d.add(p),p(a,...s))),a},mixin(p){return o.mixins.includes(p)||o.mixins.push(p),a},component(p,s){return s?(o.components[p]=s,a):o.components[p]},directive(p,s){return s?(o.directives[p]=s,a):o.directives[p]},mount(p,s,i){if(!g){const u=se(r,l);return u.appContext=o,i===!0?i="svg":i===!1&&(i=void 0),s&&t?t(u,p):e(u,p,i),g=!0,a._container=p,p.__vue_app__=a,eo(u.component)||u.component.proxy}},unmount(){g&&(e(null,a._container),delete a._container.__vue_app__)},provide(p,s){return o.provides[p]=s,a},runWithContext(p){const s=Gr;Gr=a;try{return p()}finally{Gr=s}}};return a}}let Gr=null;function ss(e,t){if(mt){let n=mt.provides;const r=mt.parent&&mt.parent.provides;r===n&&(n=mt.provides=Object.create(r)),n[e]=t}}function zt(e,t,n=!1){const r=mt||Ct;if(r||Gr){const l=r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:Gr._context.provides;if(l&&e in l)return l[e];if(arguments.length>1)return n&&Ne(t)?t.call(r&&r.proxy):t}}const id=Object.create(null),da=()=>Object.create(id),sd=e=>Object.getPrototypeOf(e)===id;function Fv(e,t,n,r=!1){const l={},o=da();e.propsDefaults=Object.create(null),od(e,t,l,o);for(const d in e.propsOptions[0])d in l||(l[d]=void 0);n?e.props=r?l:Ph(l):e.type.props?e.props=l:e.props=o,e.attrs=o}function Dv(e,t,n,r){const{props:l,attrs:o,vnode:{patchFlag:d}}=e,g=Ge(l),[a]=e.propsOptions;let p=!1;if((r||d>0)&&!(d&16)){if(d&8){const s=e.vnode.dynamicProps;for(let i=0;i<s.length;i++){let u=s[i];if(Zs(e.emitsOptions,u))continue;const h=t[u];if(a)if(ze(o,u))h!==o[u]&&(o[u]=h,p=!0);else{const c=Jt(u);l[c]=fa(a,g,c,h,e,!1)}else h!==o[u]&&(o[u]=h,p=!0)}}}else{od(e,t,l,o)&&(p=!0);let s;for(const i in g)(!t||!ze(t,i)&&((s=Er(i))===i||!ze(t,s)))&&(a?n&&(n[i]!==void 0||n[s]!==void 0)&&(l[i]=fa(a,g,i,void 0,e,!0)):delete l[i]);if(o!==g)for(const i in o)(!t||!ze(t,i))&&(delete o[i],p=!0)}p&&cn(e.attrs,"set","")}function od(e,t,n,r){const[l,o]=e.propsOptions;let d=!1,g;if(t)for(let a in t){if(zr(a))continue;const p=t[a];let s;l&&ze(l,s=Jt(a))?!o||!o.includes(s)?n[s]=p:(g||(g={}))[s]=p:Zs(e.emitsOptions,a)||(!(a in r)||p!==r[a])&&(r[a]=p,d=!0)}if(o){const a=Ge(n),p=g||tt;for(let s=0;s<o.length;s++){const i=o[s];n[i]=fa(l,a,i,p[i],e,!ze(p,i))}}return d}function fa(e,t,n,r,l,o){const d=e[n];if(d!=null){const g=ze(d,"default");if(g&&r===void 0){const a=d.default;if(d.type!==Function&&!d.skipFactory&&Ne(a)){const{propsDefaults:p}=l;if(n in p)r=p[n];else{const s=Ei(l);r=p[n]=a.call(null,t),s()}}else r=a}d[0]&&(o&&!g?r=!1:d[1]&&(r===""||r===Er(n))&&(r=!0))}return r}function ad(e,t,n=!1){const r=t.propsCache,l=r.get(e);if(l)return l;const o=e.props,d={},g=[];let a=!1;if(!Ne(e)){const s=i=>{a=!0;const[u,h]=ad(i,t,!0);vt(d,u),h&&g.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}if(!o&&!a)return ot(e)&&r.set(e,pr),pr;if(Oe(o))for(let s=0;s<o.length;s++){const i=Jt(o[s]);Tc(i)&&(d[i]=tt)}else if(o)for(const s in o){const i=Jt(s);if(Tc(i)){const u=o[s],h=d[i]=Oe(u)||Ne(u)?{type:u}:vt({},u);if(h){const c=Oc(Boolean,h.type),f=Oc(String,h.type);h[0]=c>-1,h[1]=f<0||c<f,(c>-1||ze(h,"default"))&&g.push(i)}}}const p=[d,g];return ot(e)&&r.set(e,p),p}function Tc(e){return e[0]!=="$"&&!zr(e)}function Lc(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Mc(e,t){return Lc(e)===Lc(t)}function Oc(e,t){return Oe(t)?t.findIndex(n=>Mc(n,e)):Ne(t)&&Mc(t,e)?0:-1}const ld=e=>e[0]==="_"||e==="$stable",wl=e=>Oe(e)?e.map(Yt):[Yt(e)],Pv=(e,t,n)=>{if(t._n)return t;const r=rt((...l)=>wl(t(...l)),n);return r._c=!1,r},cd=(e,t,n)=>{const r=e._ctx;for(const l in e){if(ld(l))continue;const o=e[l];if(Ne(o))t[l]=Pv(l,o,r);else if(o!=null){const d=wl(o);t[l]=()=>d}}},ud=(e,t)=>{const n=wl(t);e.slots.default=()=>n},Wv=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Ge(t),_h(e.slots,"_",n)):cd(t,e.slots=da())}else e.slots=da(),t&&ud(e,t)},Bv=(e,t,n)=>{const{vnode:r,slots:l}=e;let o=!0,d=tt;if(r.shapeFlag&32){const g=t._;g?n&&g===1?o=!1:(vt(l,t),!n&&g===1&&delete l._):(o=!t.$stable,cd(t,l)),d=t}else t&&(ud(e,t),d={default:1});if(o)for(const g in l)!ld(g)&&d[g]==null&&delete l[g]};function pa(e,t,n,r,l=!1){if(Oe(e)){e.forEach((u,h)=>pa(u,t&&(Oe(t)?t[h]:t),n,r,l));return}if(is(r)&&!l)return;const o=r.shapeFlag&4?eo(r.component)||r.component.proxy:r.el,d=l?null:o,{i:g,r:a}=e,p=t&&t.r,s=g.refs===tt?g.refs={}:g.refs,i=g.setupState;if(p!=null&&p!==a&&(dt(p)?(s[p]=null,ze(i,p)&&(i[p]=null)):ut(p)&&(p.value=null)),Ne(a))Tn(a,g,12,[d,s]);else{const u=dt(a),h=ut(a);if(u||h){const c=()=>{if(e.f){const f=u?ze(i,a)?i[a]:s[a]:a.value;l?Oe(f)&&Ja(f,o):Oe(f)?f.includes(o)||f.push(o):u?(s[a]=[o],ze(i,a)&&(i[a]=s[a])):(a.value=[o],e.k&&(s[e.k]=a.value))}else u?(s[a]=d,ze(i,a)&&(i[a]=d)):h&&(a.value=d,e.k&&(s[e.k]=d))};d?(c.id=-1,Rt(c,n)):c()}}}const Rt=pv;function Hv(e){return zv(e)}function zv(e,t){const n=$h();n.__VUE__=!0;const{insert:r,remove:l,patchProp:o,createElement:d,createText:g,createComment:a,setText:p,setElementText:s,parentNode:i,nextSibling:u,setScopeId:h=Ft,insertStaticContent:c}=e,f=(D,W,K,ee=null,J=null,le=null,pe=void 0,ce=null,fe=!!W.dynamicChildren)=>{if(D===W)return;D&&!Ir(D,W)&&(ee=z(D),V(D,J,le,!0),D=null),W.patchFlag===-2&&(fe=!1,W.dynamicChildren=null);const{type:ie,ref:me,shapeFlag:Ee}=W;switch(ie){case Qs:m(D,W,K,ee);break;case Jn:v(D,W,K,ee);break;case os:D==null&&y(W,K,ee,pe);break;case Pe:R(D,W,K,ee,J,le,pe,ce,fe);break;default:Ee&1?_(D,W,K,ee,J,le,pe,ce,fe):Ee&6?S(D,W,K,ee,J,le,pe,ce,fe):(Ee&64||Ee&128)&&ie.process(D,W,K,ee,J,le,pe,ce,fe,Q)}me!=null&&J&&pa(me,D&&D.ref,le,W||D,!W)},m=(D,W,K,ee)=>{if(D==null)r(W.el=g(W.children),K,ee);else{const J=W.el=D.el;W.children!==D.children&&p(J,W.children)}},v=(D,W,K,ee)=>{D==null?r(W.el=a(W.children||""),K,ee):W.el=D.el},y=(D,W,K,ee)=>{[D.el,D.anchor]=c(D.children,W,K,ee,D.el,D.anchor)},x=({el:D,anchor:W},K,ee)=>{let J;for(;D&&D!==W;)J=u(D),r(D,K,ee),D=J;r(W,K,ee)},$=({el:D,anchor:W})=>{let K;for(;D&&D!==W;)K=u(D),l(D),D=K;l(W)},_=(D,W,K,ee,J,le,pe,ce,fe)=>{W.type==="svg"?pe="svg":W.type==="math"&&(pe="mathml"),D==null?b(W,K,ee,J,le,pe,ce,fe):k(D,W,J,le,pe,ce,fe)},b=(D,W,K,ee,J,le,pe,ce)=>{let fe,ie;const{props:me,shapeFlag:Ee,transition:Ae,dirs:X}=D;if(fe=D.el=d(D.type,le,me&&me.is,me),Ee&8?s(fe,D.children):Ee&16&&L(D.children,fe,null,ee,J,Ro(D,le),pe,ce),X&&Bn(D,null,ee,"created"),A(fe,D,D.scopeId,pe,ee),me){for(const de in me)de!=="value"&&!zr(de)&&o(fe,de,null,me[de],le,D.children,ee,J,q);"value"in me&&o(fe,"value",null,me.value,le),(ie=me.onVnodeBeforeMount)&&Kt(ie,ee,D)}X&&Bn(D,null,ee,"beforeMount");const oe=jv(J,Ae);oe&&Ae.beforeEnter(fe),r(fe,W,K),((ie=me&&me.onVnodeMounted)||oe||X)&&Rt(()=>{ie&&Kt(ie,ee,D),oe&&Ae.enter(fe),X&&Bn(D,null,ee,"mounted")},J)},A=(D,W,K,ee,J)=>{if(K&&h(D,K),ee)for(let le=0;le<ee.length;le++)h(D,ee[le]);if(J){let le=J.subTree;if(W===le){const pe=J.vnode;A(D,pe,pe.scopeId,pe.slotScopeIds,J.parent)}}},L=(D,W,K,ee,J,le,pe,ce,fe=0)=>{for(let ie=fe;ie<D.length;ie++){const me=D[ie]=ce?Cn(D[ie]):Yt(D[ie]);f(null,me,W,K,ee,J,le,pe,ce)}},k=(D,W,K,ee,J,le,pe)=>{const ce=W.el=D.el;let{patchFlag:fe,dynamicChildren:ie,dirs:me}=W;fe|=D.patchFlag&16;const Ee=D.props||tt,Ae=W.props||tt;let X;if(K&&Hn(K,!1),(X=Ae.onVnodeBeforeUpdate)&&Kt(X,K,W,D),me&&Bn(W,D,K,"beforeUpdate"),K&&Hn(K,!0),ie?M(D.dynamicChildren,ie,ce,K,ee,Ro(W,J),le):pe||I(D,W,ce,null,K,ee,Ro(W,J),le,!1),fe>0){if(fe&16)C(ce,W,Ee,Ae,K,ee,J);else if(fe&2&&Ee.class!==Ae.class&&o(ce,"class",null,Ae.class,J),fe&4&&o(ce,"style",Ee.style,Ae.style,J),fe&8){const oe=W.dynamicProps;for(let de=0;de<oe.length;de++){const _e=oe[de],Me=Ee[_e],Be=Ae[_e];(Be!==Me||_e==="value")&&o(ce,_e,Me,Be,J,D.children,K,ee,q)}}fe&1&&D.children!==W.children&&s(ce,W.children)}else!pe&&ie==null&&C(ce,W,Ee,Ae,K,ee,J);((X=Ae.onVnodeUpdated)||me)&&Rt(()=>{X&&Kt(X,K,W,D),me&&Bn(W,D,K,"updated")},ee)},M=(D,W,K,ee,J,le,pe)=>{for(let ce=0;ce<W.length;ce++){const fe=D[ce],ie=W[ce],me=fe.el&&(fe.type===Pe||!Ir(fe,ie)||fe.shapeFlag&70)?i(fe.el):K;f(fe,ie,me,null,ee,J,le,pe,!0)}},C=(D,W,K,ee,J,le,pe)=>{if(K!==ee){if(K!==tt)for(const ce in K)!zr(ce)&&!(ce in ee)&&o(D,ce,K[ce],null,pe,W.children,J,le,q);for(const ce in ee){if(zr(ce))continue;const fe=ee[ce],ie=K[ce];fe!==ie&&ce!=="value"&&o(D,ce,ie,fe,pe,W.children,J,le,q)}"value"in ee&&o(D,"value",K.value,ee.value,pe)}},R=(D,W,K,ee,J,le,pe,ce,fe)=>{const ie=W.el=D?D.el:g(""),me=W.anchor=D?D.anchor:g("");let{patchFlag:Ee,dynamicChildren:Ae,slotScopeIds:X}=W;X&&(ce=ce?ce.concat(X):X),D==null?(r(ie,K,ee),r(me,K,ee),L(W.children||[],K,me,J,le,pe,ce,fe)):Ee>0&&Ee&64&&Ae&&D.dynamicChildren?(M(D.dynamicChildren,Ae,K,J,le,pe,ce),(W.key!=null||J&&W===J.subTree)&&hd(D,W,!0)):I(D,W,K,me,J,le,pe,ce,fe)},S=(D,W,K,ee,J,le,pe,ce,fe)=>{W.slotScopeIds=ce,D==null?W.shapeFlag&512?J.ctx.activate(W,K,ee,pe,fe):w(W,K,ee,J,le,pe,fe):E(D,W,fe)},w=(D,W,K,ee,J,le,pe)=>{const ce=D.component=Qv(D,ee,J);if(Jh(D)&&(ce.ctx.renderer=Q),Jv(ce),ce.asyncDep){if(J&&J.registerDep(ce,T),!D.el){const fe=ce.subTree=se(Jn);v(null,fe,W,K)}}else T(ce,D,W,K,J,le,pe)},E=(D,W,K)=>{const ee=W.component=D.component;if(cv(D,W,K))if(ee.asyncDep&&!ee.asyncResolved){O(ee,W,K);return}else ee.next=W,rv(ee.update),ee.effect.dirty=!0,ee.update();else W.el=D.el,ee.vnode=W},T=(D,W,K,ee,J,le,pe)=>{const ce=()=>{if(D.isMounted){let{next:me,bu:Ee,u:Ae,parent:X,vnode:oe}=D;{const qe=dd(D);if(qe){me&&(me.el=oe.el,O(D,me,pe)),qe.asyncDep.then(()=>{D.isUnmounted||ce()});return}}let de=me,_e;Hn(D,!1),me?(me.el=oe.el,O(D,me,pe)):me=oe,Ee&&rs(Ee),(_e=me.props&&me.props.onVnodeBeforeUpdate)&&Kt(_e,X,me,oe),Hn(D,!0);const Me=ko(D),Be=D.subTree;D.subTree=Me,f(Be,Me,i(Be.el),z(Be),D,J,le),me.el=Me.el,de===null&&uv(D,Me.el),Ae&&Rt(Ae,J),(_e=me.props&&me.props.onVnodeUpdated)&&Rt(()=>Kt(_e,X,me,oe),J)}else{let me;const{el:Ee,props:Ae}=W,{bm:X,m:oe,parent:de}=D,_e=is(W);if(Hn(D,!1),X&&rs(X),!_e&&(me=Ae&&Ae.onVnodeBeforeMount)&&Kt(me,de,W),Hn(D,!0),Ee&&Ce){const Me=()=>{D.subTree=ko(D),Ce(Ee,D.subTree,D,J,null)};_e?W.type.__asyncLoader().then(()=>!D.isUnmounted&&Me()):Me()}else{const Me=D.subTree=ko(D);f(null,Me,K,ee,D,J,le),W.el=Me.el}if(oe&&Rt(oe,J),!_e&&(me=Ae&&Ae.onVnodeMounted)){const Me=W;Rt(()=>Kt(me,de,Me),J)}(W.shapeFlag&256||de&&is(de.vnode)&&de.vnode.shapeFlag&256)&&D.a&&Rt(D.a,J),D.isMounted=!0,W=K=ee=null}},fe=D.effect=new nl(ce,Ft,()=>dl(ie),D.scope),ie=D.update=()=>{fe.dirty&&fe.run()};ie.id=D.uid,Hn(D,!0),ie()},O=(D,W,K)=>{W.component=D;const ee=D.vnode.props;D.vnode=W,D.next=null,Dv(D,W.props,ee,K),Bv(D,W.children,K),Pn(),Sc(D),Wn()},I=(D,W,K,ee,J,le,pe,ce,fe=!1)=>{const ie=D&&D.children,me=D?D.shapeFlag:0,Ee=W.children,{patchFlag:Ae,shapeFlag:X}=W;if(Ae>0){if(Ae&128){P(ie,Ee,K,ee,J,le,pe,ce,fe);return}else if(Ae&256){N(ie,Ee,K,ee,J,le,pe,ce,fe);return}}X&8?(me&16&&q(ie,J,le),Ee!==ie&&s(K,Ee)):me&16?X&16?P(ie,Ee,K,ee,J,le,pe,ce,fe):q(ie,J,le,!0):(me&8&&s(K,""),X&16&&L(Ee,K,ee,J,le,pe,ce,fe))},N=(D,W,K,ee,J,le,pe,ce,fe)=>{D=D||pr,W=W||pr;const ie=D.length,me=W.length,Ee=Math.min(ie,me);let Ae;for(Ae=0;Ae<Ee;Ae++){const X=W[Ae]=fe?Cn(W[Ae]):Yt(W[Ae]);f(D[Ae],X,K,null,J,le,pe,ce,fe)}ie>me?q(D,J,le,!0,!1,Ee):L(W,K,ee,J,le,pe,ce,fe,Ee)},P=(D,W,K,ee,J,le,pe,ce,fe)=>{let ie=0;const me=W.length;let Ee=D.length-1,Ae=me-1;for(;ie<=Ee&&ie<=Ae;){const X=D[ie],oe=W[ie]=fe?Cn(W[ie]):Yt(W[ie]);if(Ir(X,oe))f(X,oe,K,null,J,le,pe,ce,fe);else break;ie++}for(;ie<=Ee&&ie<=Ae;){const X=D[Ee],oe=W[Ae]=fe?Cn(W[Ae]):Yt(W[Ae]);if(Ir(X,oe))f(X,oe,K,null,J,le,pe,ce,fe);else break;Ee--,Ae--}if(ie>Ee){if(ie<=Ae){const X=Ae+1,oe=X<me?W[X].el:ee;for(;ie<=Ae;)f(null,W[ie]=fe?Cn(W[ie]):Yt(W[ie]),K,oe,J,le,pe,ce,fe),ie++}}else if(ie>Ae)for(;ie<=Ee;)V(D[ie],J,le,!0),ie++;else{const X=ie,oe=ie,de=new Map;for(ie=oe;ie<=Ae;ie++){const Xe=W[ie]=fe?Cn(W[ie]):Yt(W[ie]);Xe.key!=null&&de.set(Xe.key,ie)}let _e,Me=0;const Be=Ae-oe+1;let qe=!1,et=0;const Ke=new Array(Be);for(ie=0;ie<Be;ie++)Ke[ie]=0;for(ie=X;ie<=Ee;ie++){const Xe=D[ie];if(Me>=Be){V(Xe,J,le,!0);continue}let bt;if(Xe.key!=null)bt=de.get(Xe.key);else for(_e=oe;_e<=Ae;_e++)if(Ke[_e-oe]===0&&Ir(Xe,W[_e])){bt=_e;break}bt===void 0?V(Xe,J,le,!0):(Ke[bt-oe]=ie+1,bt>=et?et=bt:qe=!0,f(Xe,W[bt],K,null,J,le,pe,ce,fe),Me++)}const Ue=qe?Uv(Ke):pr;for(_e=Ue.length-1,ie=Be-1;ie>=0;ie--){const Xe=oe+ie,bt=W[Xe],Or=Xe+1<me?W[Xe+1].el:ee;Ke[ie]===0?f(null,bt,K,Or,J,le,pe,ce,fe):qe&&(_e<0||ie!==Ue[_e]?H(bt,K,Or,2):_e--)}}},H=(D,W,K,ee,J=null)=>{const{el:le,type:pe,transition:ce,children:fe,shapeFlag:ie}=D;if(ie&6){H(D.component.subTree,W,K,ee);return}if(ie&128){D.suspense.move(W,K,ee);return}if(ie&64){pe.move(D,W,K,Q);return}if(pe===Pe){r(le,W,K);for(let Ee=0;Ee<fe.length;Ee++)H(fe[Ee],W,K,ee);r(D.anchor,W,K);return}if(pe===os){x(D,W,K);return}if(ee!==2&&ie&1&&ce)if(ee===0)ce.beforeEnter(le),r(le,W,K),Rt(()=>ce.enter(le),J);else{const{leave:Ee,delayLeave:Ae,afterLeave:X}=ce,oe=()=>r(le,W,K),de=()=>{Ee(le,()=>{oe(),X&&X()})};Ae?Ae(le,oe,de):de()}else r(le,W,K)},V=(D,W,K,ee=!1,J=!1)=>{const{type:le,props:pe,ref:ce,children:fe,dynamicChildren:ie,shapeFlag:me,patchFlag:Ee,dirs:Ae}=D;if(ce!=null&&pa(ce,null,K,D,!0),me&256){W.ctx.deactivate(D);return}const X=me&1&&Ae,oe=!is(D);let de;if(oe&&(de=pe&&pe.onVnodeBeforeUnmount)&&Kt(de,W,D),me&6)U(D.component,K,ee);else{if(me&128){D.suspense.unmount(K,ee);return}X&&Bn(D,null,W,"beforeUnmount"),me&64?D.type.remove(D,W,K,J,Q,ee):ie&&(le!==Pe||Ee>0&&Ee&64)?q(ie,W,K,!1,!0):(le===Pe&&Ee&384||!J&&me&16)&&q(fe,W,K),ee&&j(D)}(oe&&(de=pe&&pe.onVnodeUnmounted)||X)&&Rt(()=>{de&&Kt(de,W,D),X&&Bn(D,null,W,"unmounted")},K)},j=D=>{const{type:W,el:K,anchor:ee,transition:J}=D;if(W===Pe){B(K,ee);return}if(W===os){$(D);return}const le=()=>{l(K),J&&!J.persisted&&J.afterLeave&&J.afterLeave()};if(D.shapeFlag&1&&J&&!J.persisted){const{leave:pe,delayLeave:ce}=J,fe=()=>pe(K,le);ce?ce(D.el,le,fe):fe()}else le()},B=(D,W)=>{let K;for(;D!==W;)K=u(D),l(D),D=K;l(W)},U=(D,W,K)=>{const{bum:ee,scope:J,update:le,subTree:pe,um:ce}=D;ee&&rs(ee),J.stop(),le&&(le.active=!1,V(pe,D,W,K)),ce&&Rt(ce,W),Rt(()=>{D.isUnmounted=!0},W),W&&W.pendingBranch&&!W.isUnmounted&&D.asyncDep&&!D.asyncResolved&&D.suspenseId===W.pendingId&&(W.deps--,W.deps===0&&W.resolve())},q=(D,W,K,ee=!1,J=!1,le=0)=>{for(let pe=le;pe<D.length;pe++)V(D[pe],W,K,ee,J)},z=D=>D.shapeFlag&6?z(D.component.subTree):D.shapeFlag&128?D.suspense.next():u(D.anchor||D.el);let Z=!1;const Y=(D,W,K)=>{D==null?W._vnode&&V(W._vnode,null,null,!0):f(W._vnode||null,D,W,null,null,null,K),Z||(Z=!0,Sc(),Yh(),Z=!1),W._vnode=D},Q={p:f,um:V,m:H,r:j,mt:w,mc:L,pc:I,pbc:M,n:z,o:e};let he,Ce;return t&&([he,Ce]=t(Q)),{render:Y,hydrate:he,createApp:Nv(Y,he)}}function Ro({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 Hn({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function jv(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function hd(e,t,n=!1){const r=e.children,l=t.children;if(Oe(r)&&Oe(l))for(let o=0;o<r.length;o++){const d=r[o];let g=l[o];g.shapeFlag&1&&!g.dynamicChildren&&((g.patchFlag<=0||g.patchFlag===32)&&(g=l[o]=Cn(l[o]),g.el=d.el),n||hd(d,g)),g.type===Qs&&(g.el=d.el)}}function Uv(e){const t=e.slice(),n=[0];let r,l,o,d,g;const a=e.length;for(r=0;r<a;r++){const p=e[r];if(p!==0){if(l=n[n.length-1],e[l]<p){t[r]=l,n.push(r);continue}for(o=0,d=n.length-1;o<d;)g=o+d>>1,e[n[g]]<p?o=g+1:d=g;p<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,d=n[o-1];o-- >0;)n[o]=d,d=t[d];return n}function dd(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:dd(t)}const Vv=e=>e.__isTeleport,Pe=Symbol.for("v-fgt"),Qs=Symbol.for("v-txt"),Jn=Symbol.for("v-cmt"),os=Symbol.for("v-stc"),Kr=[];let Wt=null;function G(e=!1){Kr.push(Wt=e?null:[])}function Gv(){Kr.pop(),Wt=Kr[Kr.length-1]||null}let si=1;function Ic(e){si+=e}function fd(e){return e.dynamicChildren=si>0?Wt||pr:null,Gv(),si>0&&Wt&&Wt.push(e),e}function re(e,t,n,r,l,o){return fd(F(e,t,n,r,l,o,!0))}function Se(e,t,n,r,l){return fd(se(e,t,n,r,l,!0))}function ga(e){return e?e.__v_isVNode===!0:!1}function Ir(e,t){return e.type===t.type&&e.key===t.key}const pd=({key:e})=>e??null,as=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?dt(e)||ut(e)||Ne(e)?{i:Ct,r:e,k:t,f:!!n}:e:null);function F(e,t=null,n=null,r=0,l=null,o=e===Pe?0:1,d=!1,g=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&pd(t),ref:t&&as(t),scopeId:Xs,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:o,patchFlag:r,dynamicProps:l,dynamicChildren:null,appContext:null,ctx:Ct};return g?($l(a,n),o&128&&e.normalize(a)):n&&(a.shapeFlag|=dt(n)?8:16),si>0&&!d&&Wt&&(a.patchFlag>0||o&6)&&a.patchFlag!==32&&Wt.push(a),a}const se=Kv;function Kv(e,t=null,n=null,r=0,l=null,o=!1){if((!e||e===hv)&&(e=Jn),ga(e)){const g=br(e,t,!0);return n&&$l(g,n),si>0&&!o&&Wt&&(g.shapeFlag&6?Wt[Wt.indexOf(e)]=g:Wt.push(g)),g.patchFlag|=-2,g}if(iy(e)&&(e=e.__vccOpts),t){t=Yv(t);let{class:g,style:a}=t;g&&!dt(g)&&(t.class=Ai(g)),ot(a)&&(Wh(a)&&!Oe(a)&&(a=vt({},a)),t.style=tl(a))}const d=dt(e)?1:fv(e)?128:Vv(e)?64:ot(e)?4:Ne(e)?2:0;return F(e,t,n,r,l,d,o,!0)}function Yv(e){return e?Wh(e)||sd(e)?vt({},e):e:null}function br(e,t,n=!1){const{props:r,ref:l,patchFlag:o,children:d}=e,g=t?Zv(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:g,key:g&&pd(g),ref:t&&t.ref?n&&l?Oe(l)?l.concat(as(t)):[l,as(t)]:as(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:d,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Pe?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&br(e.ssContent),ssFallback:e.ssFallback&&br(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function it(e=" ",t=0){return se(Qs,null,e,t)}function _l(e,t){const n=se(os,null,e);return n.staticCount=t,n}function ge(e="",t=!1){return t?(G(),Se(Jn,null,e)):se(Jn,null,e)}function Yt(e){return e==null||typeof e=="boolean"?se(Jn):Oe(e)?se(Pe,null,e.slice()):typeof e=="object"?Cn(e):se(Qs,null,String(e))}function Cn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:br(e)}function $l(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Oe(t))n=16;else if(typeof t=="object")if(r&65){const l=t.default;l&&(l._c&&(l._d=!1),$l(e,l()),l._c&&(l._d=!0));return}else{n=32;const l=t._;!l&&!sd(t)?t._ctx=Ct:l===3&&Ct&&(Ct.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ne(t)?(t={default:t,_ctx:Ct},n=32):(t=String(t),r&64?(n=16,t=[it(t)]):n=8);e.children=t,e.shapeFlag|=n}function Zv(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const l in r)if(l==="class")t.class!==r.class&&(t.class=Ai([t.class,r.class]));else if(l==="style")t.style=tl([t.style,r.style]);else if(js(l)){const o=t[l],d=r[l];d&&o!==d&&!(Oe(o)&&o.includes(d))&&(t[l]=o?[].concat(o,d):d)}else l!==""&&(t[l]=r[l])}return t}function Kt(e,t,n,r=null){Ht(e,t,7,[n,r])}const Xv=rd();let qv=0;function Qv(e,t,n){const r=e.type,l=(t?t.appContext:e.appContext)||Xv,o={uid:qv++,vnode:e,type:r,parent:t,appContext:l,root:null,next:null,subTree:null,effect:null,update:null,scope:new Ch(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(l.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ad(r,l),emitsOptions:Xh(r,l),emit:null,emitted:null,propsDefaults:tt,inheritAttrs:r.inheritAttrs,ctx:tt,data:tt,props:tt,attrs:tt,slots:tt,refs:tt,setupState:tt,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=ov.bind(null,o),e.ce&&e.ce(o),o}let mt=null;const Sl=()=>mt||Ct;let $s,ma;{const e=$h(),t=(n,r)=>{let l;return(l=e[n])||(l=e[n]=[]),l.push(r),o=>{l.length>1?l.forEach(d=>d(o)):l[0](o)}};$s=t("__VUE_INSTANCE_SETTERS__",n=>mt=n),ma=t("__VUE_SSR_SETTERS__",n=>Js=n)}const Ei=e=>{const t=mt;return $s(e),e.scope.on(),()=>{e.scope.off(),$s(t)}},Nc=()=>{mt&&mt.scope.off(),$s(null)};function gd(e){return e.vnode.shapeFlag&4}let Js=!1;function Jv(e,t=!1){t&&ma(t);const{props:n,children:r}=e.vnode,l=gd(e);Fv(e,n,l,t),Wv(e,r);const o=l?ey(e,t):void 0;return t&&ma(!1),o}function ey(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ev);const{setup:r}=n;if(r){const l=e.setupContext=r.length>1?ny(e):null,o=Ei(e);Pn();const d=Tn(r,e,0,[e.props,l]);if(Wn(),o(),yh(d)){if(d.then(Nc,Nc),t)return d.then(g=>{Fc(e,g,t)}).catch(g=>{Ys(g,e,0)});e.asyncDep=d}else Fc(e,d,t)}else md(e,t)}function Fc(e,t,n){Ne(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ot(t)&&(e.setupState=Uh(t)),md(e,n)}let Dc;function md(e,t,n){const r=e.type;if(!e.render){if(!t&&Dc&&!r.render){const l=r.template||bl(e).template;if(l){const{isCustomElement:o,compilerOptions:d}=e.appContext.config,{delimiters:g,compilerOptions:a}=r,p=vt(vt({isCustomElement:o,delimiters:g},d),a);r.render=Dc(l,p)}}e.render=r.render||Ft}{const l=Ei(e);Pn();try{Rv(e)}finally{Wn(),l()}}}const ty={get(e,t){return Tt(e,"get",""),e[t]}};function ny(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,ty),slots:e.slots,emit:e.emit,expose:t}}function eo(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Uh(Bh(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Vr)return Vr[n](e)},has(t,n){return n in t||n in Vr}}))}function ry(e,t=!0){return Ne(e)?e.displayName||e.name:e.name||t&&e.__name}function iy(e){return Ne(e)&&"__vccOpts"in e}const ke=(e,t)=>Ym(e,t,Js);function to(e,t,n){const r=arguments.length;return r===2?ot(t)&&!Oe(t)?ga(t)?se(e,null,[t]):se(e,t):se(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ga(n)&&(n=[n]),se(e,t,n))}const sy="3.4.23";/**
|
775
|
-
* @vue/runtime-dom v3.4.23
|
776
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
777
|
-
* @license MIT
|
778
|
-
**/const oy="http://www.w3.org/2000/svg",ay="http://www.w3.org/1998/Math/MathML",An=typeof document<"u"?document:null,Pc=An&&An.createElement("template"),ly={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"?An.createElementNS(oy,e):t==="mathml"?An.createElementNS(ay,e):An.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&l.setAttribute("multiple",r.multiple),l},createText:e=>An.createTextNode(e),createComment:e=>An.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>An.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,l,o){const d=n?n.previousSibling:t.lastChild;if(l&&(l===o||l.nextSibling))for(;t.insertBefore(l.cloneNode(!0),n),!(l===o||!(l=l.nextSibling)););else{Pc.innerHTML=r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e;const g=Pc.content;if(r==="svg"||r==="mathml"){const a=g.firstChild;for(;a.firstChild;)g.appendChild(a.firstChild);g.removeChild(a)}t.insertBefore(g,n)}return[d?d.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},cy=Symbol("_vtc");function uy(e,t,n){const r=e[cy];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Wc=Symbol("_vod"),hy=Symbol("_vsh"),dy=Symbol(""),fy=/(^|;)\s*display\s*:/;function py(e,t,n){const r=e.style,l=dt(n);let o=!1;if(n&&!l){if(t)if(dt(t))for(const d of t.split(";")){const g=d.slice(0,d.indexOf(":")).trim();n[g]==null&&ls(r,g,"")}else for(const d in t)n[d]==null&&ls(r,d,"");for(const d in n)d==="display"&&(o=!0),ls(r,d,n[d])}else if(l){if(t!==n){const d=r[dy];d&&(n+=";"+d),r.cssText=n,o=fy.test(n)}}else t&&e.removeAttribute("style");Wc in e&&(e[Wc]=o?r.display:"",e[hy]&&(r.display="none"))}const Bc=/\s*!important$/;function ls(e,t,n){if(Oe(n))n.forEach(r=>ls(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=gy(e,t);Bc.test(n)?e.setProperty(Er(r),n.replace(Bc,""),"important"):e[r]=n}}const Hc=["Webkit","Moz","ms"],To={};function gy(e,t){const n=To[t];if(n)return n;let r=Jt(t);if(r!=="filter"&&r in e)return To[t]=r;r=Ci(r);for(let l=0;l<Hc.length;l++){const o=Hc[l]+r;if(o in e)return To[t]=o}return t}const zc="http://www.w3.org/1999/xlink";function my(e,t,n,r,l){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(zc,t.slice(6,t.length)):e.setAttributeNS(zc,t,n);else{const o=xm(t);n==null||o&&!Sh(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}function vy(e,t,n,r,l,o,d){if(t==="innerHTML"||t==="textContent"){r&&d(r,l,o),e[t]=n??"";return}const g=e.tagName;if(t==="value"&&g!=="PROGRESS"&&!g.includes("-")){const p=g==="OPTION"?e.getAttribute("value")||"":e.value,s=n??"";(p!==s||!("_value"in e))&&(e.value=s),n==null&&e.removeAttribute(t),e._value=n;return}let a=!1;if(n===""||n==null){const p=typeof e[t];p==="boolean"?n=Sh(n):n==null&&p==="string"?(n="",a=!0):p==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function ar(e,t,n,r){e.addEventListener(t,n,r)}function yy(e,t,n,r){e.removeEventListener(t,n,r)}const jc=Symbol("_vei");function by(e,t,n,r,l=null){const o=e[jc]||(e[jc]={}),d=o[t];if(r&&d)d.value=r;else{const[g,a]=wy(t);if(r){const p=o[t]=Sy(r,l);ar(e,g,p,a)}else d&&(yy(e,g,d,a),o[t]=void 0)}}const Uc=/(?:Once|Passive|Capture)$/;function wy(e){let t;if(Uc.test(e)){t={};let r;for(;r=e.match(Uc);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Er(e.slice(2)),t]}let Lo=0;const _y=Promise.resolve(),$y=()=>Lo||(_y.then(()=>Lo=0),Lo=Date.now());function Sy(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Ht(xy(r,n.value),t,5,[r])};return n.value=e,n.attached=$y(),n}function xy(e,t){if(Oe(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 Vc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Cy=(e,t,n,r,l,o,d,g,a)=>{const p=l==="svg";t==="class"?uy(e,r,p):t==="style"?py(e,n,r):js(t)?Qa(t)||by(e,t,n,r,d):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ay(e,t,r,p))?vy(e,t,r,o,d,g,a):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),my(e,t,r,p))};function Ay(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Vc(t)&&Ne(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 Vc(t)&&dt(n)?!1:t in e}const Gc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Oe(t)?n=>rs(t,n):t};function ky(e){e.target.composing=!0}function Kc(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Mo=Symbol("_assign"),xl={created(e,{modifiers:{lazy:t,trim:n,number:r}},l){e[Mo]=Gc(l);const o=r||l.props&&l.props.type==="number";ar(e,t?"change":"input",d=>{if(d.target.composing)return;let g=e.value;n&&(g=g.trim()),o&&(g=ia(g)),e[Mo](g)}),n&&ar(e,"change",()=>{e.value=e.value.trim()}),t||(ar(e,"compositionstart",ky),ar(e,"compositionend",Kc),ar(e,"change",Kc))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:l}},o){if(e[Mo]=Gc(o),e.composing)return;const d=(l||e.type==="number")&&!/^0\d/.test(e.value)?ia(e.value):e.value,g=t??"";d!==g&&(document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===g)||(e.value=g))}},Ey=vt({patchProp:Cy},ly);let Yc;function Ry(){return Yc||(Yc=Hv(Ey))}const Ty=(...e)=>{const t=Ry().createApp(...e),{mount:n}=t;return t.mount=r=>{const l=My(r);if(!l)return;const o=t._component;!Ne(o)&&!o.render&&!o.template&&(o.template=l.innerHTML),l.innerHTML="";const d=n(l,!1,Ly(l));return l instanceof Element&&(l.removeAttribute("v-cloak"),l.setAttribute("data-v-app","")),d},t};function Ly(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function My(e){return dt(e)?document.querySelector(e):e}function Zc(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 an(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Zc(Object(n),!0).forEach(function(r){Et(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zc(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ss(e){"@babel/helpers - typeof";return Ss=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ss(e)}function Et(e,t,n){return t=Fy(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oy(e,t){if(e==null)return{};var n={},r=Object.keys(e),l,o;for(o=0;o<r.length;o++)l=r[o],!(t.indexOf(l)>=0)&&(n[l]=e[l]);return n}function Iy(e,t){if(e==null)return{};var n=Oy(e,t),r,l;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(l=0;l<o.length;l++)r=o[l],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ny(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 Fy(e){var t=Ny(e,"string");return typeof t=="symbol"?t:String(t)}var Dy=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},vd={exports:{}};(function(e){(function(t){var n=function(v,y,x){if(!p(y)||i(y)||u(y)||h(y)||a(y))return y;var $,_=0,b=0;if(s(y))for($=[],b=y.length;_<b;_++)$.push(n(v,y[_],x));else{$={};for(var A in y)Object.prototype.hasOwnProperty.call(y,A)&&($[v(A,x)]=n(v,y[A],x))}return $},r=function(v,y){y=y||{};var x=y.separator||"_",$=y.split||/(?=[A-Z])/;return v.split($).join(x)},l=function(v){return c(v)?v:(v=v.replace(/[\-_\s]+(.)?/g,function(y,x){return x?x.toUpperCase():""}),v.substr(0,1).toLowerCase()+v.substr(1))},o=function(v){var y=l(v);return y.substr(0,1).toUpperCase()+y.substr(1)},d=function(v,y){return r(v,y).toLowerCase()},g=Object.prototype.toString,a=function(v){return typeof v=="function"},p=function(v){return v===Object(v)},s=function(v){return g.call(v)=="[object Array]"},i=function(v){return g.call(v)=="[object Date]"},u=function(v){return g.call(v)=="[object RegExp]"},h=function(v){return g.call(v)=="[object Boolean]"},c=function(v){return v=v-0,v===v},f=function(v,y){var x=y&&"process"in y?y.process:y;return typeof x!="function"?v:function($,_){return x($,v,_)}},m={camelize:l,decamelize:d,pascalize:o,depascalize:d,camelizeKeys:function(v,y){return n(f(l,y),v)},decamelizeKeys:function(v,y){return n(f(d,y),v,y)},pascalizeKeys:function(v,y){return n(f(o,y),v)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=m:t.humps=m})(Dy)})(vd);var Py=vd.exports,Wy=["class","style"];function By(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),l=Py.camelize(n.slice(0,r)),o=n.slice(r+1).trim();return t[l]=o,t},{})}function Hy(e){return e.split(/\s+/).reduce(function(t,n){return t[n]=!0,t},{})}function yd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof e=="string")return e;var r=(e.children||[]).map(function(a){return yd(a)}),l=Object.keys(e.attributes||{}).reduce(function(a,p){var s=e.attributes[p];switch(p){case"class":a.class=Hy(s);break;case"style":a.style=By(s);break;default:a.attrs[p]=s}return a},{attrs:{},class:{},style:{}});n.class;var o=n.style,d=o===void 0?{}:o,g=Iy(n,Wy);return to(e.tag,an(an(an({},t),{},{class:l.class,style:an(an({},l.style),d)},l.attrs),g),r)}var bd=!1;try{bd=!0}catch{}function zy(){if(!bd&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Oo(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Et({},e,t):{}}function jy(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"},Et(t,"fa-".concat(e.size),e.size!==null),Et(t,"fa-rotate-".concat(e.rotation),e.rotation!==null),Et(t,"fa-pull-".concat(e.pull),e.pull!==null),Et(t,"fa-swap-opacity",e.swapOpacity),Et(t,"fa-bounce",e.bounce),Et(t,"fa-shake",e.shake),Et(t,"fa-beat",e.beat),Et(t,"fa-fade",e.fade),Et(t,"fa-beat-fade",e.beatFade),Et(t,"fa-flash",e.flash),Et(t,"fa-spin-pulse",e.spinPulse),Et(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 Xc(e){if(e&&Ss(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(ra.icon)return ra.icon(e);if(e===null)return null;if(Ss(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 Uy=xe({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=ke(function(){return Xc(t.icon)}),o=ke(function(){return Oo("classes",jy(t))}),d=ke(function(){return Oo("transform",typeof t.transform=="string"?ra.transform(t.transform):t.transform)}),g=ke(function(){return Oo("mask",Xc(t.mask))}),a=ke(function(){return Gg(l.value,an(an(an(an({},o.value),d.value),g.value),{},{symbol:t.symbol,title:t.title,titleId:t.titleId,maskId:t.maskId}))});Qe(a,function(s){if(!s)return zy("Could not find one or more icon(s)",l.value,g.value)},{immediate:!0});var p=ke(function(){return a.value?yd(a.value.abstract[0],{},r):null});return function(){return p.value}}});function no(e){return Ah()?(km(e),!0):!1}function en(e){return typeof e=="function"?e():ae(e)}const wd=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Vy=e=>e!=null,Gy=Object.prototype.toString,Ky=e=>Gy.call(e)==="[object Object]",_d=()=>{};function Yy(e,t){function n(...r){return new Promise((l,o)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(l).catch(o)})}return n}const $d=e=>e();function Zy(e=$d){const t=je(!0);function n(){t.value=!1}function r(){t.value=!0}const l=(...o)=>{t.value&&e(...o)};return{isActive:Ks(t),pause:n,resume:r,eventFilter:l}}function Sd(e){return e||Sl()}function xd(...e){if(e.length!==1)return ul(...e);const t=e[0];return typeof t=="function"?Ks(Vh(()=>({get:t,set:_d}))):je(t)}function Xy(e,t,n={}){const{eventFilter:r=$d,...l}=n;return Qe(e,Yy(r,t),l)}function qy(e,t,n={}){const{eventFilter:r,...l}=n,{eventFilter:o,pause:d,resume:g,isActive:a}=Zy(r);return{stop:Xy(e,t,{...l,eventFilter:o}),pause:d,resume:g,isActive:a}}function Qy(e,t){Sd(t)&&yl(e,t)}function Cd(e,t=!0,n){Sd()?ct(e,n):t?e():ki(e)}function Ri(e=!1,t={}){const{truthyValue:n=!0,falsyValue:r=!1}=t,l=ut(e),o=je(e);function d(g){if(arguments.length)return o.value=g,o.value;{const a=en(n);return o.value=o.value===a?en(r):a,o.value}}return l?d:[o,d]}function Cl(e){var t;const n=en(e);return(t=n==null?void 0:n.$el)!=null?t:n}const er=wd?window:void 0,Jy=wd?window.document:void 0;function qc(...e){let t,n,r,l;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,l]=e,t=er):[t,n,r,l]=e,!t)return _d;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],d=()=>{o.forEach(s=>s()),o.length=0},g=(s,i,u,h)=>(s.addEventListener(i,u,h),()=>s.removeEventListener(i,u,h)),a=Qe(()=>[Cl(t),en(l)],([s,i])=>{if(d(),!s)return;const u=Ky(i)?{...i}:i;o.push(...n.flatMap(h=>r.map(c=>g(s,h,c,u))))},{immediate:!0,flush:"post"}),p=()=>{a(),d()};return no(p),p}function e0(){const e=je(!1),t=Sl();return t&&ct(()=>{e.value=!0},t),e}function Ad(e){const t=e0();return ke(()=>(t.value,!!e()))}function t0(e,t={}){const{window:n=er}=t,r=Ad(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let l;const o=je(!1),d=p=>{o.value=p.matches},g=()=>{l&&("removeEventListener"in l?l.removeEventListener("change",d):l.removeListener(d))},a=gl(()=>{r.value&&(g(),l=n.matchMedia(en(e)),"addEventListener"in l?l.addEventListener("change",d):l.addListener(d),o.value=l.matches)});return no(()=>{a(),g(),l=void 0}),o}const Qi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ji="__vueuse_ssr_handlers__",n0=r0();function r0(){return Ji in Qi||(Qi[Ji]=Qi[Ji]||{}),Qi[Ji]}function kd(e,t){return n0[e]||t}function i0(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const s0={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Qc="vueuse-storage";function o0(e,t,n,r={}){var l;const{flush:o="pre",deep:d=!0,listenToStorageChanges:g=!0,writeDefaults:a=!0,mergeDefaults:p=!1,shallow:s,window:i=er,eventFilter:u,onError:h=M=>{console.error(M)},initOnMounted:c}=r,f=(s?zh:je)(typeof t=="function"?t():t);if(!n)try{n=kd("getDefaultStorage",()=>{var M;return(M=er)==null?void 0:M.localStorage})()}catch(M){h(M)}if(!n)return f;const m=en(t),v=i0(m),y=(l=r.serializer)!=null?l:s0[v],{pause:x,resume:$}=qy(f,()=>b(f.value),{flush:o,deep:d,eventFilter:u});i&&g&&Cd(()=>{qc(i,"storage",L),qc(i,Qc,k),c&&L()}),c||L();function _(M,C){i&&i.dispatchEvent(new CustomEvent(Qc,{detail:{key:e,oldValue:M,newValue:C,storageArea:n}}))}function b(M){try{const C=n.getItem(e);if(M==null)_(C,null),n.removeItem(e);else{const R=y.write(M);C!==R&&(n.setItem(e,R),_(C,R))}}catch(C){h(C)}}function A(M){const C=M?M.newValue:n.getItem(e);if(C==null)return a&&m!=null&&n.setItem(e,y.write(m)),m;if(!M&&p){const R=y.read(C);return typeof p=="function"?p(R,m):v==="object"&&!Array.isArray(R)?{...m,...R}:R}else return typeof C!="string"?C:y.read(C)}function L(M){if(!(M&&M.storageArea!==n)){if(M&&M.key==null){f.value=m;return}if(!(M&&M.key!==e)){x();try{(M==null?void 0:M.newValue)!==y.write(f.value)&&(f.value=A(M))}catch(C){h(C)}finally{M?ki($):$()}}}}function k(M){L(M.detail)}return f}function Ed(e){return t0("(prefers-color-scheme: dark)",e)}function a0(e={}){const{selector:t="html",attribute:n="class",initialValue:r="auto",window:l=er,storage:o,storageKey:d="vueuse-color-scheme",listenToStorageChanges:g=!0,storageRef:a,emitAuto:p,disableTransition:s=!0}=e,i={auto:"",light:"light",dark:"dark",...e.modes||{}},u=Ed({window:l}),h=ke(()=>u.value?"dark":"light"),c=a||(d==null?xd(r):o0(d,r,o,{window:l,listenToStorageChanges:g})),f=ke(()=>c.value==="auto"?h.value:c.value),m=kd("updateHTMLAttrs",($,_,b)=>{const A=typeof $=="string"?l==null?void 0:l.document.querySelector($):Cl($);if(!A)return;let L;if(s&&(L=l.document.createElement("style"),L.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),l.document.head.appendChild(L)),_==="class"){const k=b.split(/\s/g);Object.values(i).flatMap(M=>(M||"").split(/\s/g)).filter(Boolean).forEach(M=>{k.includes(M)?A.classList.add(M):A.classList.remove(M)})}else A.setAttribute(_,b);s&&(l.getComputedStyle(L).opacity,document.head.removeChild(L))});function v($){var _;m(t,n,(_=i[$])!=null?_:$)}function y($){e.onChanged?e.onChanged($,v):v($)}Qe(f,y,{flush:"post",immediate:!0}),Cd(()=>y(f.value));const x=ke({get(){return p?c.value:f.value},set($){c.value=$}});try{return Object.assign(x,{store:c,system:h,state:f})}catch{return x}}function l0(e,t,n={}){const{window:r=er,...l}=n;let o;const d=Ad(()=>r&&"MutationObserver"in r),g=()=>{o&&(o.disconnect(),o=void 0)},a=ke(()=>{const u=en(e),h=(Array.isArray(u)?u:[u]).map(Cl).filter(Vy);return new Set(h)}),p=Qe(()=>a.value,u=>{g(),d.value&&r&&u.size&&(o=new MutationObserver(t),u.forEach(h=>o.observe(h,l)))},{immediate:!0,flush:"post"}),s=()=>o==null?void 0:o.takeRecords(),i=()=>{g(),p()};return no(i),{isSupported:d,stop:i,takeRecords:s}}function Rd(e={}){const{valueDark:t="dark",valueLight:n="",window:r=er}=e,l=a0({...e,onChanged:(g,a)=>{var p;e.onChanged?(p=e.onChanged)==null||p.call(e,g==="dark",a,g):a(g)},modes:{dark:t,light:n}}),o=ke(()=>l.system?l.system.value:Ed({window:r}).value?"dark":"light");return ke({get(){return l.value==="dark"},set(g){const a=g?"dark":"light";o.value===a?l.value="auto":l.value=a}})}function yn(e=null,t={}){var n,r,l;const{document:o=Jy,restoreOnUnmount:d=i=>i}=t,g=(n=o==null?void 0:o.title)!=null?n:"",a=xd((r=e??(o==null?void 0:o.title))!=null?r:null),p=e&&typeof e=="function";function s(i){if(!("titleTemplate"in t))return i;const u=t.titleTemplate||"%s";return typeof u=="function"?u(i):en(u).replace(/%s/g,i)}return Qe(a,(i,u)=>{i!==u&&o&&(o.title=s(typeof i=="string"?i:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&o&&!p&&l0((l=o.head)==null?void 0:l.querySelector("title"),()=>{o&&o.title!==a.value&&(a.value=s(o.title))},{childList:!0}),Qy(()=>{if(d){const i=d(g,a.value||"");i!=null&&o&&(o.title=i)}}),a}const Al=e=>(fl("data-v-a9b95eb0"),e=e(),pl(),e),c0={role:"navigation","aria-label":"main navigation",class:"navbar is-fixed-top"},u0=Al(()=>F("div",{class:"navbar-brand"},[F("a",{class:"navbar-item"},[F("h1",{class:"title"},"Mihari")])],-1)),h0={class:"navbar-menu"},d0={class:"navbar-start"},f0=Al(()=>F("a",{class:"navbar-item"},[F("a",{href:"/redoc-static.html",target:"_blank",class:"navbar-item"},"API")],-1)),p0=Al(()=>F("a",{class:"navbar-item"},[F("a",{href:"https://github.com/ninoseki/mihari",target:"_blank",class:"navbar-item"},"GitHub")],-1)),g0={class:"navbar-end"},m0={class:"navbar-item"},v0=xe({__name:"NavbarItem",setup(e){const t=Rd({selector:"html",valueDark:"theme-dark",valueLight:"theme-light"}),n=Ri(t);return(r,l)=>{const o=Ze("router-link"),d=Ze("font-awesome-icon");return G(),re("nav",c0,[u0,F("div",h0,[F("div",d0,[se(o,{class:"navbar-item",to:{name:"Alerts"}},{default:rt(()=>[it("Alerts")]),_:1}),se(o,{class:"navbar-item",to:{name:"Artifacts"}},{default:rt(()=>[it("Artifacts")]),_:1}),se(o,{class:"navbar-item",to:{name:"Rules"}},{default:rt(()=>[it("Rules")]),_:1}),se(o,{class:"navbar-item",to:{name:"NewRule"}},{default:rt(()=>[it("New Rule")]),_:1}),se(o,{class:"navbar-item",to:{name:"Config"}},{default:rt(()=>[it("Config")]),_:1}),f0,p0]),F("div",g0,[F("div",m0,[F("span",{class:"icon",onClick:l[0]||(l[0]=g=>ae(n)())},[se(d,{icon:ae(t)?"moon":"sun"},null,8,["icon"])])])])])])}}}),Ti=(e,t)=>{const n=e.__vccOpts||e;for(const[r,l]of t)n[r]=l;return n},y0=Ti(v0,[["__scopeId","data-v-a9b95eb0"]]),b0={class:"section is-medium"},w0={class:"container"},_0=xe({__name:"App",setup(e){return(t,n)=>{const r=Ze("router-view");return G(),re(Pe,null,[se(y0),F("section",b0,[F("div",w0,[se(r)])])],64)}}});/*!
|
779
|
-
* vue-router v4.3.2
|
780
|
-
* (c) 2024 Eduardo San Martin Morote
|
781
|
-
* @license MIT
|
782
|
-
*/const lr=typeof document<"u";function $0(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Ye=Object.assign;function Io(e,t){const n={};for(const r in t){const l=t[r];n[r]=Vt(l)?l.map(e):e(l)}return n}const Yr=()=>{},Vt=Array.isArray,Td=/#/g,S0=/&/g,x0=/\//g,C0=/=/g,A0=/\?/g,Ld=/\+/g,k0=/%5B/g,E0=/%5D/g,Md=/%5E/g,R0=/%60/g,Od=/%7B/g,T0=/%7C/g,Id=/%7D/g,L0=/%20/g;function kl(e){return encodeURI(""+e).replace(T0,"|").replace(k0,"[").replace(E0,"]")}function M0(e){return kl(e).replace(Od,"{").replace(Id,"}").replace(Md,"^")}function va(e){return kl(e).replace(Ld,"%2B").replace(L0,"+").replace(Td,"%23").replace(S0,"%26").replace(R0,"`").replace(Od,"{").replace(Id,"}").replace(Md,"^")}function O0(e){return va(e).replace(C0,"%3D")}function I0(e){return kl(e).replace(Td,"%23").replace(A0,"%3F")}function N0(e){return e==null?"":I0(e).replace(x0,"%2F")}function oi(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const F0=/\/$/,D0=e=>e.replace(F0,"");function No(e,t,n="/"){let r,l={},o="",d="";const g=t.indexOf("#");let a=t.indexOf("?");return g<a&&g>=0&&(a=-1),a>-1&&(r=t.slice(0,a),o=t.slice(a+1,g>-1?g:t.length),l=e(o)),g>-1&&(r=r||t.slice(0,g),d=t.slice(g,t.length)),r=H0(r??t,n),{fullPath:r+(o&&"?")+o+d,path:r,query:l,hash:oi(d)}}function P0(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Jc(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function W0(e,t,n){const r=t.matched.length-1,l=n.matched.length-1;return r>-1&&r===l&&wr(t.matched[r],n.matched[l])&&Nd(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function wr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Nd(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!B0(e[n],t[n]))return!1;return!0}function B0(e,t){return Vt(e)?eu(e,t):Vt(t)?eu(t,e):e===t}function eu(e,t){return Vt(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function H0(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 o=n.length-1,d,g;for(d=0;d<r.length;d++)if(g=r[d],g!==".")if(g==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(d).join("/")}var ai;(function(e){e.pop="pop",e.push="push"})(ai||(ai={}));var Zr;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Zr||(Zr={}));function z0(e){if(!e)if(lr){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),D0(e)}const j0=/^[^#]+#/;function U0(e,t){return e.replace(j0,"#")+t}function V0(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 ro=()=>({left:window.scrollX,top:window.scrollY});function G0(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=V0(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 tu(e,t){return(history.state?history.state.position-t:-1)+e}const ya=new Map;function K0(e,t){ya.set(e,t)}function Y0(e){const t=ya.get(e);return ya.delete(e),t}let Z0=()=>location.protocol+"//"+location.host;function Fd(e,t){const{pathname:n,search:r,hash:l}=t,o=e.indexOf("#");if(o>-1){let g=l.includes(e.slice(o))?e.slice(o).length:1,a=l.slice(g);return a[0]!=="/"&&(a="/"+a),Jc(a,"")}return Jc(n,e)+r+l}function X0(e,t,n,r){let l=[],o=[],d=null;const g=({state:u})=>{const h=Fd(e,location),c=n.value,f=t.value;let m=0;if(u){if(n.value=h,t.value=u,d&&d===c){d=null;return}m=f?u.position-f.position:0}else r(h);l.forEach(v=>{v(n.value,c,{delta:m,type:ai.pop,direction:m?m>0?Zr.forward:Zr.back:Zr.unknown})})};function a(){d=n.value}function p(u){l.push(u);const h=()=>{const c=l.indexOf(u);c>-1&&l.splice(c,1)};return o.push(h),h}function s(){const{history:u}=window;u.state&&u.replaceState(Ye({},u.state,{scroll:ro()}),"")}function i(){for(const u of o)u();o=[],window.removeEventListener("popstate",g),window.removeEventListener("beforeunload",s)}return window.addEventListener("popstate",g),window.addEventListener("beforeunload",s,{passive:!0}),{pauseListeners:a,listen:p,destroy:i}}function nu(e,t,n,r=!1,l=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:l?ro():null}}function q0(e){const{history:t,location:n}=window,r={value:Fd(e,n)},l={value:t.state};l.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(a,p,s){const i=e.indexOf("#"),u=i>-1?(n.host&&document.querySelector("base")?e:e.slice(i))+a:Z0()+e+a;try{t[s?"replaceState":"pushState"](p,"",u),l.value=p}catch(h){console.error(h),n[s?"replace":"assign"](u)}}function d(a,p){const s=Ye({},t.state,nu(l.value.back,a,l.value.forward,!0),p,{position:l.value.position});o(a,s,!0),r.value=a}function g(a,p){const s=Ye({},l.value,t.state,{forward:a,scroll:ro()});o(s.current,s,!0);const i=Ye({},nu(r.value,a,null),{position:s.position+1},p);o(a,i,!1),r.value=a}return{location:r,state:l,push:g,replace:d}}function Q0(e){e=z0(e);const t=q0(e),n=X0(e,t.state,t.location,t.replace);function r(o,d=!0){d||n.pauseListeners(),history.go(o)}const l=Ye({location:"",base:e,go:r,createHref:U0.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 J0(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Q0(e)}function eb(e){return typeof e=="string"||e&&typeof e=="object"}function Dd(e){return typeof e=="string"||typeof e=="symbol"}const $n={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Pd=Symbol("");var ru;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(ru||(ru={}));function _r(e,t){return Ye(new Error,{type:e,[Pd]:!0},t)}function on(e,t){return e instanceof Error&&Pd in e&&(t==null||!!(e.type&t))}const iu="[^/]+?",tb={sensitive:!1,strict:!1,start:!0,end:!0},nb=/[.+*?^${}()[\]/\\]/g;function rb(e,t){const n=Ye({},tb,t),r=[];let l=n.start?"^":"";const o=[];for(const p of e){const s=p.length?[]:[90];n.strict&&!p.length&&(l+="/");for(let i=0;i<p.length;i++){const u=p[i];let h=40+(n.sensitive?.25:0);if(u.type===0)i||(l+="/"),l+=u.value.replace(nb,"\\$&"),h+=40;else if(u.type===1){const{value:c,repeatable:f,optional:m,regexp:v}=u;o.push({name:c,repeatable:f,optional:m});const y=v||iu;if(y!==iu){h+=10;try{new RegExp(`(${y})`)}catch($){throw new Error(`Invalid custom RegExp for param "${c}" (${y}): `+$.message)}}let x=f?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;i||(x=m&&p.length<2?`(?:/${x})`:"/"+x),m&&(x+="?"),l+=x,h+=20,m&&(h+=-8),f&&(h+=-20),y===".*"&&(h+=-50)}s.push(h)}r.push(s)}if(n.strict&&n.end){const p=r.length-1;r[p][r[p].length-1]+=.7000000000000001}n.strict||(l+="/?"),n.end?l+="$":n.strict&&(l+="(?:/|$)");const d=new RegExp(l,n.sensitive?"":"i");function g(p){const s=p.match(d),i={};if(!s)return null;for(let u=1;u<s.length;u++){const h=s[u]||"",c=o[u-1];i[c.name]=h&&c.repeatable?h.split("/"):h}return i}function a(p){let s="",i=!1;for(const u of e){(!i||!s.endsWith("/"))&&(s+="/"),i=!1;for(const h of u)if(h.type===0)s+=h.value;else if(h.type===1){const{value:c,repeatable:f,optional:m}=h,v=c in p?p[c]:"";if(Vt(v)&&!f)throw new Error(`Provided param "${c}" is an array but it is not repeatable (* or + modifiers)`);const y=Vt(v)?v.join("/"):v;if(!y)if(m)u.length<2&&(s.endsWith("/")?s=s.slice(0,-1):i=!0);else throw new Error(`Missing required param "${c}"`);s+=y}}return s||"/"}return{re:d,score:r,keys:o,parse:g,stringify:a}}function ib(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function sb(e,t){let n=0;const r=e.score,l=t.score;for(;n<r.length&&n<l.length;){const o=ib(r[n],l[n]);if(o)return o;n++}if(Math.abs(l.length-r.length)===1){if(su(r))return 1;if(su(l))return-1}return l.length-r.length}function su(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const ob={type:0,value:""},ab=/[a-zA-Z0-9_]/;function lb(e){if(!e)return[[]];if(e==="/")return[[ob]];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 o;function d(){o&&l.push(o),o=[]}let g=0,a,p="",s="";function i(){p&&(n===0?o.push({type:0,value:p}):n===1||n===2||n===3?(o.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:p,regexp:s,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),p="")}function u(){p+=a}for(;g<e.length;){if(a=e[g++],a==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:a==="/"?(p&&i(),d()):a===":"?(i(),n=1):u();break;case 4:u(),n=r;break;case 1:a==="("?n=2:ab.test(a)?u():(i(),n=0,a!=="*"&&a!=="?"&&a!=="+"&&g--);break;case 2:a===")"?s[s.length-1]=="\\"?s=s.slice(0,-1)+a:n=3:s+=a;break;case 3:i(),n=0,a!=="*"&&a!=="?"&&a!=="+"&&g--,s="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${p}"`),i(),d(),l}function cb(e,t,n){const r=rb(lb(e.path),n),l=Ye(r,{record:e,parent:t,children:[],alias:[]});return t&&!l.record.aliasOf==!t.record.aliasOf&&t.children.push(l),l}function ub(e,t){const n=[],r=new Map;t=lu({strict:!1,end:!0,sensitive:!1},t);function l(s){return r.get(s)}function o(s,i,u){const h=!u,c=hb(s);c.aliasOf=u&&u.record;const f=lu(t,s),m=[c];if("alias"in s){const x=typeof s.alias=="string"?[s.alias]:s.alias;for(const $ of x)m.push(Ye({},c,{components:u?u.record.components:c.components,path:$,aliasOf:u?u.record:c}))}let v,y;for(const x of m){const{path:$}=x;if(i&&$[0]!=="/"){const _=i.record.path,b=_[_.length-1]==="/"?"":"/";x.path=i.record.path+($&&b+$)}if(v=cb(x,i,f),u?u.alias.push(v):(y=y||v,y!==v&&y.alias.push(v),h&&s.name&&!au(v)&&d(s.name)),c.children){const _=c.children;for(let b=0;b<_.length;b++)o(_[b],v,u&&u.children[b])}u=u||v,(v.record.components&&Object.keys(v.record.components).length||v.record.name||v.record.redirect)&&a(v)}return y?()=>{d(y)}:Yr}function d(s){if(Dd(s)){const i=r.get(s);i&&(r.delete(s),n.splice(n.indexOf(i),1),i.children.forEach(d),i.alias.forEach(d))}else{const i=n.indexOf(s);i>-1&&(n.splice(i,1),s.record.name&&r.delete(s.record.name),s.children.forEach(d),s.alias.forEach(d))}}function g(){return n}function a(s){let i=0;for(;i<n.length&&sb(s,n[i])>=0&&(s.record.path!==n[i].record.path||!Wd(s,n[i]));)i++;n.splice(i,0,s),s.record.name&&!au(s)&&r.set(s.record.name,s)}function p(s,i){let u,h={},c,f;if("name"in s&&s.name){if(u=r.get(s.name),!u)throw _r(1,{location:s});f=u.record.name,h=Ye(ou(i.params,u.keys.filter(y=>!y.optional).concat(u.parent?u.parent.keys.filter(y=>y.optional):[]).map(y=>y.name)),s.params&&ou(s.params,u.keys.map(y=>y.name))),c=u.stringify(h)}else if(s.path!=null)c=s.path,u=n.find(y=>y.re.test(c)),u&&(h=u.parse(c),f=u.record.name);else{if(u=i.name?r.get(i.name):n.find(y=>y.re.test(i.path)),!u)throw _r(1,{location:s,currentLocation:i});f=u.record.name,h=Ye({},i.params,s.params),c=u.stringify(h)}const m=[];let v=u;for(;v;)m.unshift(v.record),v=v.parent;return{name:f,path:c,params:h,matched:m,meta:fb(m)}}return e.forEach(s=>o(s)),{addRoute:o,resolve:p,removeRoute:d,getRoutes:g,getRecordMatcher:l}}function ou(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function hb(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:db(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 db(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 au(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function fb(e){return e.reduce((t,n)=>Ye(t,n.meta),{})}function lu(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Wd(e,t){return t.children.some(n=>n===e||Wd(e,n))}function pb(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let l=0;l<r.length;++l){const o=r[l].replace(Ld," "),d=o.indexOf("="),g=oi(d<0?o:o.slice(0,d)),a=d<0?null:oi(o.slice(d+1));if(g in t){let p=t[g];Vt(p)||(p=t[g]=[p]),p.push(a)}else t[g]=a}return t}function cu(e){let t="";for(let n in e){const r=e[n];if(n=O0(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(Vt(r)?r.map(o=>o&&va(o)):[r&&va(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function gb(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Vt(r)?r.map(l=>l==null?null:""+l):r==null?r:""+r)}return t}const mb=Symbol(""),uu=Symbol(""),io=Symbol(""),El=Symbol(""),ba=Symbol("");function Nr(){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 kn(e,t,n,r,l,o=d=>d()){const d=r&&(r.enterCallbacks[l]=r.enterCallbacks[l]||[]);return()=>new Promise((g,a)=>{const p=u=>{u===!1?a(_r(4,{from:n,to:t})):u instanceof Error?a(u):eb(u)?a(_r(2,{from:t,to:u})):(d&&r.enterCallbacks[l]===d&&typeof u=="function"&&d.push(u),g())},s=o(()=>e.call(r&&r.instances[l],t,n,p));let i=Promise.resolve(s);e.length<3&&(i=i.then(p)),i.catch(u=>a(u))})}function Fo(e,t,n,r,l=o=>o()){const o=[];for(const d of e)for(const g in d.components){let a=d.components[g];if(!(t!=="beforeRouteEnter"&&!d.instances[g]))if(vb(a)){const s=(a.__vccOpts||a)[t];s&&o.push(kn(s,n,r,d,g,l))}else{let p=a();o.push(()=>p.then(s=>{if(!s)return Promise.reject(new Error(`Couldn't resolve component "${g}" at "${d.path}"`));const i=$0(s)?s.default:s;d.components[g]=i;const h=(i.__vccOpts||i)[t];return h&&kn(h,n,r,d,g,l)()}))}}return o}function vb(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function hu(e){const t=zt(io),n=zt(El),r=ke(()=>{const a=ae(e.to);return t.resolve(a)}),l=ke(()=>{const{matched:a}=r.value,{length:p}=a,s=a[p-1],i=n.matched;if(!s||!i.length)return-1;const u=i.findIndex(wr.bind(null,s));if(u>-1)return u;const h=du(a[p-2]);return p>1&&du(s)===h&&i[i.length-1].path!==h?i.findIndex(wr.bind(null,a[p-2])):u}),o=ke(()=>l.value>-1&&_b(n.params,r.value.params)),d=ke(()=>l.value>-1&&l.value===n.matched.length-1&&Nd(n.params,r.value.params));function g(a={}){return wb(a)?t[ae(e.replace)?"replace":"push"](ae(e.to)).catch(Yr):Promise.resolve()}return{route:r,href:ke(()=>r.value.href),isActive:o,isExactActive:d,navigate:g}}const yb=xe({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:hu,setup(e,{slots:t}){const n=Rr(hu(e)),{options:r}=zt(io),l=ke(()=>({[fu(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[fu(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:to("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:l.value},o)}}}),bb=yb;function wb(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 _b(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(!Vt(l)||l.length!==r.length||r.some((o,d)=>o!==l[d]))return!1}return!0}function du(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const fu=(e,t,n)=>e??t??n,$b=xe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=zt(ba),l=ke(()=>e.route||r.value),o=zt(uu,0),d=ke(()=>{let p=ae(o);const{matched:s}=l.value;let i;for(;(i=s[p])&&!i.components;)p++;return p}),g=ke(()=>l.value.matched[d.value]);ss(uu,ke(()=>d.value+1)),ss(mb,g),ss(ba,l);const a=je();return Qe(()=>[a.value,g.value,e.name],([p,s,i],[u,h,c])=>{s&&(s.instances[i]=p,h&&h!==s&&p&&p===u&&(s.leaveGuards.size||(s.leaveGuards=h.leaveGuards),s.updateGuards.size||(s.updateGuards=h.updateGuards))),p&&s&&(!h||!wr(s,h)||!u)&&(s.enterCallbacks[i]||[]).forEach(f=>f(p))},{flush:"post"}),()=>{const p=l.value,s=e.name,i=g.value,u=i&&i.components[s];if(!u)return pu(n.default,{Component:u,route:p});const h=i.props[s],c=h?h===!0?p.params:typeof h=="function"?h(p):h:null,m=to(u,Ye({},c,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(i.instances[s]=null)},ref:a}));return pu(n.default,{Component:m,route:p})||m}}});function pu(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Sb=$b;function xb(e){const t=ub(e.routes,e),n=e.parseQuery||pb,r=e.stringifyQuery||cu,l=e.history,o=Nr(),d=Nr(),g=Nr(),a=zh($n);let p=$n;lr&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const s=Io.bind(null,z=>""+z),i=Io.bind(null,N0),u=Io.bind(null,oi);function h(z,Z){let Y,Q;return Dd(z)?(Y=t.getRecordMatcher(z),Q=Z):Q=z,t.addRoute(Q,Y)}function c(z){const Z=t.getRecordMatcher(z);Z&&t.removeRoute(Z)}function f(){return t.getRoutes().map(z=>z.record)}function m(z){return!!t.getRecordMatcher(z)}function v(z,Z){if(Z=Ye({},Z||a.value),typeof z=="string"){const W=No(n,z,Z.path),K=t.resolve({path:W.path},Z),ee=l.createHref(W.fullPath);return Ye(W,K,{params:u(K.params),hash:oi(W.hash),redirectedFrom:void 0,href:ee})}let Y;if(z.path!=null)Y=Ye({},z,{path:No(n,z.path,Z.path).path});else{const W=Ye({},z.params);for(const K in W)W[K]==null&&delete W[K];Y=Ye({},z,{params:i(W)}),Z.params=i(Z.params)}const Q=t.resolve(Y,Z),he=z.hash||"";Q.params=s(u(Q.params));const Ce=P0(r,Ye({},z,{hash:M0(he),path:Q.path})),D=l.createHref(Ce);return Ye({fullPath:Ce,hash:he,query:r===cu?gb(z.query):z.query||{}},Q,{redirectedFrom:void 0,href:D})}function y(z){return typeof z=="string"?No(n,z,a.value.path):Ye({},z)}function x(z,Z){if(p!==z)return _r(8,{from:Z,to:z})}function $(z){return A(z)}function _(z){return $(Ye(y(z),{replace:!0}))}function b(z){const Z=z.matched[z.matched.length-1];if(Z&&Z.redirect){const{redirect:Y}=Z;let Q=typeof Y=="function"?Y(z):Y;return typeof Q=="string"&&(Q=Q.includes("?")||Q.includes("#")?Q=y(Q):{path:Q},Q.params={}),Ye({query:z.query,hash:z.hash,params:Q.path!=null?{}:z.params},Q)}}function A(z,Z){const Y=p=v(z),Q=a.value,he=z.state,Ce=z.force,D=z.replace===!0,W=b(Y);if(W)return A(Ye(y(W),{state:typeof W=="object"?Ye({},he,W.state):he,force:Ce,replace:D}),Z||Y);const K=Y;K.redirectedFrom=Z;let ee;return!Ce&&W0(r,Q,Y)&&(ee=_r(16,{to:K,from:Q}),H(Q,Q,!0,!1)),(ee?Promise.resolve(ee):M(K,Q)).catch(J=>on(J)?on(J,2)?J:P(J):I(J,K,Q)).then(J=>{if(J){if(on(J,2))return A(Ye({replace:D},y(J.to),{state:typeof J.to=="object"?Ye({},he,J.to.state):he,force:Ce}),Z||K)}else J=R(K,Q,!0,D,he);return C(K,Q,J),J})}function L(z,Z){const Y=x(z,Z);return Y?Promise.reject(Y):Promise.resolve()}function k(z){const Z=B.values().next().value;return Z&&typeof Z.runWithContext=="function"?Z.runWithContext(z):z()}function M(z,Z){let Y;const[Q,he,Ce]=Cb(z,Z);Y=Fo(Q.reverse(),"beforeRouteLeave",z,Z);for(const W of Q)W.leaveGuards.forEach(K=>{Y.push(kn(K,z,Z))});const D=L.bind(null,z,Z);return Y.push(D),q(Y).then(()=>{Y=[];for(const W of o.list())Y.push(kn(W,z,Z));return Y.push(D),q(Y)}).then(()=>{Y=Fo(he,"beforeRouteUpdate",z,Z);for(const W of he)W.updateGuards.forEach(K=>{Y.push(kn(K,z,Z))});return Y.push(D),q(Y)}).then(()=>{Y=[];for(const W of Ce)if(W.beforeEnter)if(Vt(W.beforeEnter))for(const K of W.beforeEnter)Y.push(kn(K,z,Z));else Y.push(kn(W.beforeEnter,z,Z));return Y.push(D),q(Y)}).then(()=>(z.matched.forEach(W=>W.enterCallbacks={}),Y=Fo(Ce,"beforeRouteEnter",z,Z,k),Y.push(D),q(Y))).then(()=>{Y=[];for(const W of d.list())Y.push(kn(W,z,Z));return Y.push(D),q(Y)}).catch(W=>on(W,8)?W:Promise.reject(W))}function C(z,Z,Y){g.list().forEach(Q=>k(()=>Q(z,Z,Y)))}function R(z,Z,Y,Q,he){const Ce=x(z,Z);if(Ce)return Ce;const D=Z===$n,W=lr?history.state:{};Y&&(Q||D?l.replace(z.fullPath,Ye({scroll:D&&W&&W.scroll},he)):l.push(z.fullPath,he)),a.value=z,H(z,Z,Y,D),P()}let S;function w(){S||(S=l.listen((z,Z,Y)=>{if(!U.listening)return;const Q=v(z),he=b(Q);if(he){A(Ye(he,{replace:!0}),Q).catch(Yr);return}p=Q;const Ce=a.value;lr&&K0(tu(Ce.fullPath,Y.delta),ro()),M(Q,Ce).catch(D=>on(D,12)?D:on(D,2)?(A(D.to,Q).then(W=>{on(W,20)&&!Y.delta&&Y.type===ai.pop&&l.go(-1,!1)}).catch(Yr),Promise.reject()):(Y.delta&&l.go(-Y.delta,!1),I(D,Q,Ce))).then(D=>{D=D||R(Q,Ce,!1),D&&(Y.delta&&!on(D,8)?l.go(-Y.delta,!1):Y.type===ai.pop&&on(D,20)&&l.go(-1,!1)),C(Q,Ce,D)}).catch(Yr)}))}let E=Nr(),T=Nr(),O;function I(z,Z,Y){P(z);const Q=T.list();return Q.length?Q.forEach(he=>he(z,Z,Y)):console.error(z),Promise.reject(z)}function N(){return O&&a.value!==$n?Promise.resolve():new Promise((z,Z)=>{E.add([z,Z])})}function P(z){return O||(O=!z,w(),E.list().forEach(([Z,Y])=>z?Y(z):Z()),E.reset()),z}function H(z,Z,Y,Q){const{scrollBehavior:he}=e;if(!lr||!he)return Promise.resolve();const Ce=!Y&&Y0(tu(z.fullPath,0))||(Q||!Y)&&history.state&&history.state.scroll||null;return ki().then(()=>he(z,Z,Ce)).then(D=>D&&G0(D)).catch(D=>I(D,z,Z))}const V=z=>l.go(z);let j;const B=new Set,U={currentRoute:a,listening:!0,addRoute:h,removeRoute:c,hasRoute:m,getRoutes:f,resolve:v,options:e,push:$,replace:_,go:V,back:()=>V(-1),forward:()=>V(1),beforeEach:o.add,beforeResolve:d.add,afterEach:g.add,onError:T.add,isReady:N,install(z){const Z=this;z.component("RouterLink",bb),z.component("RouterView",Sb),z.config.globalProperties.$router=Z,Object.defineProperty(z.config.globalProperties,"$route",{enumerable:!0,get:()=>ae(a)}),lr&&!j&&a.value===$n&&(j=!0,$(l.location).catch(he=>{}));const Y={};for(const he in $n)Object.defineProperty(Y,he,{get:()=>a.value[he],enumerable:!0});z.provide(io,Z),z.provide(El,Ph(Y)),z.provide(ba,a);const Q=z.unmount;B.add(z),z.unmount=function(){B.delete(z),B.size<1&&(p=$n,S&&S(),S=null,a.value=$n,j=!1,O=!1),Q()}}};function q(z){return z.reduce((Z,Y)=>Z.then(()=>k(Y)),Promise.resolve())}return U}function Cb(e,t){const n=[],r=[],l=[],o=Math.max(t.matched.length,e.matched.length);for(let d=0;d<o;d++){const g=t.matched[d];g&&(e.matched.find(p=>wr(p,g))?r.push(g):n.push(g));const a=e.matched[d];a&&(t.matched.find(p=>wr(p,a))||l.push(a))}return[n,r,l]}function Tr(){return zt(io)}function Ab(){return zt(El)}const Do=new WeakMap;function $r(e,t,n={}){const{mode:r="replace",route:l=Ab(),router:o=Tr(),transform:d=i=>i}=n;Do.has(o)||Do.set(o,new Map);const g=Do.get(o);let a=l.query[e];no(()=>{a=void 0});let p;const s=Vh((i,u)=>(p=u,{get(){return i(),d(a!==void 0?a:en(t))},set(h){a!==h&&(a=h===t||h===null?void 0:h,g.set(e,h===t||h===null?void 0:h),u(),ki(()=>{if(g.size===0)return;const c=Object.fromEntries(g.entries());g.clear();const{params:f,query:m,hash:v}=l;o[en(r)]({params:f,query:{...m,...c},hash:v})}))}}));return Qe(()=>l.query[e],i=>{a=i,p()},{flush:"sync"}),s}/*! CAF: shared.mjs
|
783
|
-
v15.0.1 (c) 2022 Kyle Simpson
|
784
|
-
MIT License: http://getify.mit-license.org
|
785
|
-
*/const ln=Symbol("Cleanup Function"),Rl=Symbol("Timeout Token"),dr=Symbol("Signal Reason"),gt=Symbol("Unset"),[cs,kb]=function(){var t=new AbortController,n=!!Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t.signal),"reason");try{t.abort()}catch{}return[n,Ll(t.signal.reason)]}();class tr{constructor(t=new AbortController){var n;this.controller=t,this.signal=t.signal,this.signal[dr]=gt;var r=(l,o)=>{var d=()=>{if(o&&this.signal){let g=Li(this.signal);this._trackSignalReason(g),o(g!==gt?g:void 0)}o=null};this.signal.addEventListener("abort",d,!1),n=()=>{this.signal&&(this.signal.removeEventListener("abort",d,!1),this.signal.pr&&(this.signal.pr[ln]=null)),d=null}};this.signal.pr=new Promise(r),this.signal.pr[ln]=n,this.signal.pr.catch(n),r=n=null}abort(...t){var n=t.length>0?t[0]:gt;this._trackSignalReason(n),this.controller&&(cs&&n!==gt?this.controller.abort(n):this.controller.abort())}discard(){this.signal&&(this.signal.pr&&(this.signal.pr[ln]&&this.signal.pr[ln](),this.signal.pr=null),delete this.signal[dr],cs||(this.signal.reason=null),this.signal=null),this.controller=null}_trackSignalReason(t){this.signal&&t!==gt&&(cs||"reason"in this.signal||(this.signal.reason=t),this.signal[dr]===gt&&(this.signal[dr]=t))}}function Li(e){return e&&e.aborted?cs&&kb?Ll(e.reason)?gt:e.reason:dr in e?e[dr]:gt:gt}function Bd(e){if(e.pr)return e.pr;var t,n=new Promise(function(l,o){t=()=>{if(o&&e){let d=Li(e);o(d!==gt?d:void 0)}o=null},e.addEventListener("abort",t,!1)});return n[ln]=function(){e&&(e.removeEventListener("abort",t,!1),e=null),n&&(n=n[ln]=t=null)},n.catch(n[ln]),n}function Tl(e){e instanceof AbortController&&(e=new tr(e));var t=e&&e instanceof tr?e.signal:e;return{tokenOrSignal:e,signal:t,signalPr:Bd(t)}}function wa(){var e;return{pr:new Promise(t=>e=t),resolve:e}}function zn(e){return typeof e=="function"}function Eb(e){return e&&typeof e=="object"&&typeof e.then=="function"}function Ll(e){return typeof e=="object"&&e instanceof Error&&e.name=="AbortError"}function so(e,t){Ll(t)||t===gt?e.abort():e.abort(t)}/*! CAF: caf.mjs
|
786
|
-
v15.0.1 (c) 2022 Kyle Simpson
|
787
|
-
MIT License: http://getify.mit-license.org
|
788
|
-
*/const _a=Object.assign(Rb,{cancelToken:tr,delay:Hd,timeout:Tb,signalRace:Lb,signalAll:Mb,tokenCycle:Ob});function Rb(e){return function(n,...r){var l,o;if({tokenOrSignal:n,signal:l,signalPr:o}=Tl(n),l.aborted)return o;var d=o.catch(function(i){var u=Li(l);u=u!==gt?u:i;try{var h=g.return();throw h.value!==void 0?h.value:u!==gt?u:void 0}finally{g=a=d=p=null}}),{it:g,result:a}=Ib.call(this,e,l,...r),p=Promise.race([a,d]);if(n!==l&&n[Rl]){let s=function(u){so(n,u),zn(n.discard)&&n.discard(),n=s=null};p.then(s,s)}else p.catch(()=>{}),n=null;return r=null,p}}function Hd(e,t){var n,r;return typeof e=="number"&&typeof t!="number"&&([t,e]=[e,t]),e&&({tokenOrSignal:e,signal:n,signalPr:r}=Tl(e)),n&&n.aborted?r:new Promise(function(o,d){n&&(r.catch(function(){if(d&&n&&g){let p=Li(n);clearTimeout(g),d(p!==gt?p:`delay (${t}) interrupted`),o=d=g=n=null}}),r=null);var g=setTimeout(function(){o(`delayed: ${t}`),o=d=g=n=null},t)})}function Tb(e,t="Timeout"){e=Number(e)||0;var n=new tr;return Hd(n.signal,e).then(()=>r(t),r),Object.defineProperty(n,Rl,{value:!0,writable:!1,enumerable:!1,configurable:!1}),n;function r(...l){so(n,l.length>0?l[0]:gt),n.discard(),n=null}}function zd(e){return e.reduce(function(n,r){var l=Bd(r);return n[0].push(l),r.pr||n[1].push(l),n},[[],[]])}function jd(e,t,n){e.then(function(l){so(t,l),t.discard(),t=null}).then(function(){for(let l of n)l[ln]&&l[ln]();n=null})}function Ud(e){return e.catch(t=>t)}function Lb(e){var t=new tr,[n,r]=zd(e);return jd(Ud(Promise.race(n)),t,r),t.signal}function Mb(e){var t=new tr,[n,r]=zd(e);return jd(Promise.all(n.map(Ud)),t,r),t.signal}function Ob(){var e;return function(...n){return e&&(so(e,n.length>0?n[0]:gt),e.discard()),e=new tr}}function Ib(e,...t){var n=e.apply(this,t);return e=t=null,{it:n,result:function r(l){try{var o=n.next(l);l=null}catch(d){return Promise.reject(d)}return function d(g){var a=Promise.resolve(g.value);return g.done?n=null:(a=a.then(r,function(s){return Promise.resolve(n.throw(s)).then(d)})).catch(function(){n=null}),g=null,a}(o)}()}}/*! CAF: cag.mjs
|
789
|
-
v15.0.1 (c) 2022 Kyle Simpson
|
790
|
-
MIT License: http://getify.mit-license.org
|
791
|
-
*/Sa=_a(Sa);Object.assign(Gd,{onEvent:Kd,onceEvent:Sa});var $a=new WeakSet;const Po=Symbol("unset"),Vd=Symbol("returned"),gu=Symbol("canceled");function Gd(e){return function(n,...r){var l,o;if({tokenOrSignal:n,signal:l,signalPr:o}=Tl(n),l.aborted){let i=Li(l);throw i=i!==gt?i:"Aborted",i}var d=wa(),{it:g,ait:a}=Fb(e,d.pr,s,l,...r),p=a.return;return a.return=function(u){try{return d.pr.resolved=!0,d.resolve(Vd),Promise.resolve(g.return(u))}finally{p.call(a),s()}},a;function s(){n&&n!==l&&n[Rl]&&n.abort(),a&&(a.return=p,n=d=g=a=p=null)}}}function Kd(e,t,n,r=!1){var l,o,d=!1,g=Gd(function*({pwait:i}){d||a();try{for(;;){if(l.length==0){let{pr:u,resolve:h}=wa();l.push(u),o.push(h)}yield yield i(l.shift())}}finally{zn(t.removeEventListener)?t.removeEventListener(n,p,r):zn(t.removeListener)?t.removeListener(n,p):zn(t.off)&&t.off(n,p),l.length=o.length=0}})(e,t,n,r);return g.start=a,g;function a(){d||(d=!0,l=[],o=[],zn(t.addEventListener)?t.addEventListener(n,p,r):zn(t.addListener)?t.addListener(n,p):zn(t.on)&&t.on(n,p))}function p(s){if(o.length>0)o.shift()(s);else{let{pr:i,resolve:u}=wa();l.push(i),u(s)}}}function*Sa(e,t,n,r=!1){try{var l=Kd(e,t,n,r);return(yield l.next()).value}finally{l.return()}}function Nb(e){var t=Promise.resolve(e);return $a.add(t),t}function Fb(e,t,n,r,...l){var o=e.call(this,{signal:r,pwait:Nb},...l);e=l=null;var d=r.pr.catch(g=>{throw{[gu]:!0,reason:g}});return d.catch(()=>{}),{it:o,ait:async function*(){var a,p=Po;try{for(;!t.resolved;)if(p!==Po?(a=p,p=Po,a=o.throw(a)):a=o.next(a),Eb(a.value))if($a.has(a.value)){$a.delete(a.value);try{if((a=await Promise.race([t,d,a.value]))===Vd)return}catch(s){if(s[gu]){let i=o.return();throw i.value!==void 0?i.value:s.reason}p=s}}else a=yield a.value;else{if(a.done)return a.value;a=yield a.value}}finally{o=t=null,n()}}()}}const Db=e=>e._runningInstances.length>=e._maxConcurrency,Pb=e=>{const t=e._activeInstances[0];t&&t.cancel()},Wb=e=>{e._enqueuedInstances.forEach(t=>{t.isEnqueued=!1,t.isDropped=!0})};function Fr(e,t){return t?Bb(()=>e()._instances,t):ke(()=>[])}function Bb(e,t,n){return ke(()=>e().filter(r=>{const l=r[t];return n?l===n:l}))}function Hb(e){return ke(()=>e().length)}function mu(e){return ke(()=>{const t=e();return t[t.length-1]})}function zb(e){return ke(()=>e()[0])}const Yd=e=>e;function Zd(e){return Rr(e)}function jb(){const e={},t=new Promise((n,r)=>{e.resolve=n,e.reject=r});return e.promise=t,e}function $t(e){return Gb(function*(t,...n){return e(t,...n)})}function Ub(e,t,n){const r=Yd({id:n.id,isDropped:!1,isEnqueued:!1,hasStarted:!1,isRunning:!1,isFinished:!1,isCanceling:!1,isCanceled:ke(()=>l.isCanceling&&l.isFinished),isActive:ke(()=>l.isRunning&&!l.isCanceling),isSuccessful:!1,isNotDropped:ke(()=>!l.isDropped),isError:ke(()=>!!l.error),status:ke(()=>{const d=l,g=[[d.isRunning,"running"],[d.isEnqueued,"enqueued"],[d.isCanceled,"canceled"],[d.isCanceling,"canceling"],[d.isDropped,"dropped"],[d.isError,"error"],[d.isSuccessful,"success"]].find(([a])=>a);return g&&g[1]}),error:null,value:null,cancel({force:d}={force:!1}){if(d||(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(d){return d.pr.catch(()=>{l.cancel()}),l},_run(){Vb(l,e,t,n)},_handled:!0,_deferredObject:jb(),_shouldThrow:!1,_canAbort:!0,then(d,g){return l._shouldThrow=!0,l._deferredObject.promise.then(d,g)},catch(d,g=!0){return l._shouldThrow=g,l._deferredObject.promise.catch(d)},finally(d){return l._shouldThrow=!0,l._deferredObject.promise.finally(d)}}),l=Zd(r),{modifiers:o}=n;return o.drop?l.isDropped=!0:o.enqueue?l.isEnqueued=!0:l._run(),l}function Vb(e,t,n,r){const l=new _a.cancelToken,o=_a(t,l);e.token=l,e.hasStarted=!0,e.isRunning=!0,e.isEnqueued=!1;function d(){e.isRunning=!1,e.isFinished=!0}o.call(e,l,...n).then(g=>{e.value=g,e.isSuccessful=!0,d(),e._deferredObject.resolve(g),e._canAbort=!1,r.onFinish(e)}).catch(g=>{g!=="cancel"&&(e.error=g),d(),e._shouldThrow&&e._deferredObject.reject(g),r.onFinish(e)})}function Gb(e,t={cancelOnUnmount:!0}){const n=Sl(),r=Cm(),l=Yd({_isRestartable:!1,_isDropping:!1,_isEnqueuing:!1,_isKeepingLatest:!1,_maxConcurrency:1,_hasConcurrency:ke(()=>o._isRestartable||o._isDropping||o._isEnqueuing||o._isKeepingLatest),isIdle:ke(()=>!o.isRunning),isRunning:ke(()=>!!o._instances.find(d=>d.isRunning)),isError:ke(()=>!!(o.last&&o.last.isError)),_instances:[],_successfulInstances:Fr(()=>o,"isSuccessful"),_runningInstances:Fr(()=>o,"isRunning"),_enqueuedInstances:Fr(()=>o,"isEnqueued"),_notDroppedInstances:Fr(()=>o,"isNotDropped"),_activeInstances:Fr(()=>o,"isActive"),performCount:Hb(()=>o._instances),last:mu(()=>o._notDroppedInstances),lastSuccessful:mu(()=>o._successfulInstances),firstEnqueued:zb(()=>o._enqueuedInstances),cancelAll({force:d}={force:!1}){o._instances.forEach(g=>{try{(d||!g.isDropped&&!g.isFinished)&&g.cancel({force:d})}catch(a){if(a!=="cancel")throw a}})},perform(...d){const g={enqueue:!1,drop:!1};o._hasConcurrency&&Db(o)&&(o._isDropping&&(g.drop=!0),o._isRestartable&&Pb(o),o._isKeepingLatest&&Wb(o),(o._isEnqueuing||o._isKeepingLatest)&&(g.enqueue=!0));const a=()=>Kb(o),p=()=>Ub(e,d,{modifiers:g,onFinish:a,scope:r,id:o._instances.length+1}),s=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?"),o._instances=[...o._instances,s],s},clear(){this.cancelAll({force:!0}),this._instances=[]},destroy(){r.stop(),this.clear()},restartable(){return o._resetModifierFlags(),o._isRestartable=!0,o},drop(){return o._resetModifierFlags(),o._isDropping=!0,o},enqueue(){return o._resetModifierFlags(),o._isEnqueuing=!0,o},keepLatest(){return o._resetModifierFlags(),o._isKeepingLatest=!0,o},_resetModifierFlags(){o._isKeepingLatest=!1,o._isRestartable=!1,o._isEnqueuing=!1,o._isDropping=!1},maxConcurrency(d){return o._maxConcurrency=d,o}}),o=Zd(l);return n&&t.cancelOnUnmount&&yl(()=>{o._instances&&o.destroy()}),o}function Kb(e){if(e._isEnqueuing||e._isKeepingLatest){const{firstEnqueued:t}=e;t&&t._run()}}function Xd(e,t){return function(){return e.apply(t,arguments)}}const{toString:Yb}=Object.prototype,{getPrototypeOf:Ml}=Object,oo=(e=>t=>{const n=Yb.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),sn=e=>(e=e.toLowerCase(),t=>oo(t)===e),ao=e=>t=>typeof t===e,{isArray:Lr}=Array,li=ao("undefined");function Zb(e){return e!==null&&!li(e)&&e.constructor!==null&&!li(e.constructor)&&Dt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const qd=sn("ArrayBuffer");function Xb(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&qd(e.buffer),t}const qb=ao("string"),Dt=ao("function"),Qd=ao("number"),lo=e=>e!==null&&typeof e=="object",Qb=e=>e===!0||e===!1,us=e=>{if(oo(e)!=="object")return!1;const t=Ml(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Jb=sn("Date"),e1=sn("File"),t1=sn("Blob"),n1=sn("FileList"),r1=e=>lo(e)&&Dt(e.pipe),i1=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Dt(e.append)&&((t=oo(e))==="formdata"||t==="object"&&Dt(e.toString)&&e.toString()==="[object FormData]"))},s1=sn("URLSearchParams"),o1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Mi(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,l;if(typeof e!="object"&&(e=[e]),Lr(e))for(r=0,l=e.length;r<l;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),d=o.length;let g;for(r=0;r<d;r++)g=o[r],t.call(null,e[g],g,e)}}function Jd(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,l;for(;r-- >0;)if(l=n[r],t===l.toLowerCase())return l;return null}const ef=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,tf=e=>!li(e)&&e!==ef;function xa(){const{caseless:e}=tf(this)&&this||{},t={},n=(r,l)=>{const o=e&&Jd(t,l)||l;us(t[o])&&us(r)?t[o]=xa(t[o],r):us(r)?t[o]=xa({},r):Lr(r)?t[o]=r.slice():t[o]=r};for(let r=0,l=arguments.length;r<l;r++)arguments[r]&&Mi(arguments[r],n);return t}const a1=(e,t,n,{allOwnKeys:r}={})=>(Mi(t,(l,o)=>{n&&Dt(l)?e[o]=Xd(l,n):e[o]=l},{allOwnKeys:r}),e),l1=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),c1=(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)},u1=(e,t,n,r)=>{let l,o,d;const g={};if(t=t||{},e==null)return t;do{for(l=Object.getOwnPropertyNames(e),o=l.length;o-- >0;)d=l[o],(!r||r(d,e,t))&&!g[d]&&(t[d]=e[d],g[d]=!0);e=n!==!1&&Ml(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},h1=(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},d1=e=>{if(!e)return null;if(Lr(e))return e;let t=e.length;if(!Qd(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},f1=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ml(Uint8Array)),p1=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let l;for(;(l=r.next())&&!l.done;){const o=l.value;t.call(e,o[0],o[1])}},g1=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},m1=sn("HTMLFormElement"),v1=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,l){return r.toUpperCase()+l}),vu=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),y1=sn("RegExp"),nf=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Mi(n,(l,o)=>{let d;(d=t(l,o,e))!==!1&&(r[o]=d||l)}),Object.defineProperties(e,r)},b1=e=>{nf(e,(t,n)=>{if(Dt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Dt(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+"'")})}})},w1=(e,t)=>{const n={},r=l=>{l.forEach(o=>{n[o]=!0})};return Lr(e)?r(e):r(String(e).split(t)),n},_1=()=>{},$1=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Wo="abcdefghijklmnopqrstuvwxyz",yu="0123456789",rf={DIGIT:yu,ALPHA:Wo,ALPHA_DIGIT:Wo+Wo.toUpperCase()+yu},S1=(e=16,t=rf.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function x1(e){return!!(e&&Dt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const C1=e=>{const t=new Array(10),n=(r,l)=>{if(lo(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[l]=r;const o=Lr(r)?[]:{};return Mi(r,(d,g)=>{const a=n(d,l+1);!li(a)&&(o[g]=a)}),t[l]=void 0,o}}return r};return n(e,0)},A1=sn("AsyncFunction"),k1=e=>e&&(lo(e)||Dt(e))&&Dt(e.then)&&Dt(e.catch),ne={isArray:Lr,isArrayBuffer:qd,isBuffer:Zb,isFormData:i1,isArrayBufferView:Xb,isString:qb,isNumber:Qd,isBoolean:Qb,isObject:lo,isPlainObject:us,isUndefined:li,isDate:Jb,isFile:e1,isBlob:t1,isRegExp:y1,isFunction:Dt,isStream:r1,isURLSearchParams:s1,isTypedArray:f1,isFileList:n1,forEach:Mi,merge:xa,extend:a1,trim:o1,stripBOM:l1,inherits:c1,toFlatObject:u1,kindOf:oo,kindOfTest:sn,endsWith:h1,toArray:d1,forEachEntry:p1,matchAll:g1,isHTMLForm:m1,hasOwnProperty:vu,hasOwnProp:vu,reduceDescriptors:nf,freezeMethods:b1,toObjectSet:w1,toCamelCase:v1,noop:_1,toFiniteNumber:$1,findKey:Jd,global:ef,isContextDefined:tf,ALPHABET:rf,generateString:S1,isSpecCompliantForm:x1,toJSONObject:C1,isAsyncFn:A1,isThenable:k1};function He(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)}ne.inherits(He,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ne.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const sf=He.prototype,of={};["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=>{of[e]={value:e}});Object.defineProperties(He,of);Object.defineProperty(sf,"isAxiosError",{value:!0});He.from=(e,t,n,r,l,o)=>{const d=Object.create(sf);return ne.toFlatObject(e,d,function(a){return a!==Error.prototype},g=>g!=="isAxiosError"),He.call(d,e.message,t,n,r,l),d.cause=e,d.name=e.name,o&&Object.assign(d,o),d};const E1=null;function Ca(e){return ne.isPlainObject(e)||ne.isArray(e)}function af(e){return ne.endsWith(e,"[]")?e.slice(0,-2):e}function bu(e,t,n){return e?e.concat(t).map(function(l,o){return l=af(l),!n&&o?"["+l+"]":l}).join(n?".":""):t}function R1(e){return ne.isArray(e)&&!e.some(Ca)}const T1=ne.toFlatObject(ne,{},null,function(t){return/^is[A-Z]/.test(t)});function co(e,t,n){if(!ne.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ne.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,m){return!ne.isUndefined(m[f])});const r=n.metaTokens,l=n.visitor||s,o=n.dots,d=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&ne.isSpecCompliantForm(t);if(!ne.isFunction(l))throw new TypeError("visitor must be a function");function p(c){if(c===null)return"";if(ne.isDate(c))return c.toISOString();if(!a&&ne.isBlob(c))throw new He("Blob is not supported. Use a Buffer instead.");return ne.isArrayBuffer(c)||ne.isTypedArray(c)?a&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function s(c,f,m){let v=c;if(c&&!m&&typeof c=="object"){if(ne.endsWith(f,"{}"))f=r?f:f.slice(0,-2),c=JSON.stringify(c);else if(ne.isArray(c)&&R1(c)||(ne.isFileList(c)||ne.endsWith(f,"[]"))&&(v=ne.toArray(c)))return f=af(f),v.forEach(function(x,$){!(ne.isUndefined(x)||x===null)&&t.append(d===!0?bu([f],$,o):d===null?f:f+"[]",p(x))}),!1}return Ca(c)?!0:(t.append(bu(m,f,o),p(c)),!1)}const i=[],u=Object.assign(T1,{defaultVisitor:s,convertValue:p,isVisitable:Ca});function h(c,f){if(!ne.isUndefined(c)){if(i.indexOf(c)!==-1)throw Error("Circular reference detected in "+f.join("."));i.push(c),ne.forEach(c,function(v,y){(!(ne.isUndefined(v)||v===null)&&l.call(t,v,ne.isString(y)?y.trim():y,f,u))===!0&&h(v,f?f.concat(y):[y])}),i.pop()}}if(!ne.isObject(e))throw new TypeError("data must be an object");return h(e),t}function wu(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ol(e,t){this._pairs=[],e&&co(e,this,t)}const lf=Ol.prototype;lf.append=function(t,n){this._pairs.push([t,n])};lf.toString=function(t){const n=t?function(r){return t.call(this,r,wu)}:wu;return this._pairs.map(function(l){return n(l[0])+"="+n(l[1])},"").join("&")};function L1(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function cf(e,t,n){if(!t)return e;const r=n&&n.encode||L1,l=n&&n.serialize;let o;if(l?o=l(t,n):o=ne.isURLSearchParams(t)?t.toString():new Ol(t,n).toString(r),o){const d=e.indexOf("#");d!==-1&&(e=e.slice(0,d)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class _u{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){ne.forEach(this.handlers,function(r){r!==null&&t(r)})}}const uf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},M1=typeof URLSearchParams<"u"?URLSearchParams:Ol,O1=typeof FormData<"u"?FormData:null,I1=typeof Blob<"u"?Blob:null,N1={isBrowser:!0,classes:{URLSearchParams:M1,FormData:O1,Blob:I1},protocols:["http","https","file","blob","url","data"]},hf=typeof window<"u"&&typeof document<"u",F1=(e=>hf&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),D1=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",P1=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:hf,hasStandardBrowserEnv:F1,hasStandardBrowserWebWorkerEnv:D1},Symbol.toStringTag,{value:"Module"})),qt={...P1,...N1};function W1(e,t){return co(e,new qt.classes.URLSearchParams,Object.assign({visitor:function(n,r,l,o){return qt.isNode&&ne.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function B1(e){return ne.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function H1(e){const t={},n=Object.keys(e);let r;const l=n.length;let o;for(r=0;r<l;r++)o=n[r],t[o]=e[o];return t}function df(e){function t(n,r,l,o){let d=n[o++];if(d==="__proto__")return!0;const g=Number.isFinite(+d),a=o>=n.length;return d=!d&&ne.isArray(l)?l.length:d,a?(ne.hasOwnProp(l,d)?l[d]=[l[d],r]:l[d]=r,!g):((!l[d]||!ne.isObject(l[d]))&&(l[d]=[]),t(n,r,l[d],o)&&ne.isArray(l[d])&&(l[d]=H1(l[d])),!g)}if(ne.isFormData(e)&&ne.isFunction(e.entries)){const n={};return ne.forEachEntry(e,(r,l)=>{t(B1(r),l,n,0)}),n}return null}function z1(e,t,n){if(ne.isString(e))try{return(t||JSON.parse)(e),ne.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Il={transitional:uf,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",l=r.indexOf("application/json")>-1,o=ne.isObject(t);if(o&&ne.isHTMLForm(t)&&(t=new FormData(t)),ne.isFormData(t))return l?JSON.stringify(df(t)):t;if(ne.isArrayBuffer(t)||ne.isBuffer(t)||ne.isStream(t)||ne.isFile(t)||ne.isBlob(t))return t;if(ne.isArrayBufferView(t))return t.buffer;if(ne.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let g;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return W1(t,this.formSerializer).toString();if((g=ne.isFileList(t))||r.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return co(g?{"files[]":t}:t,a&&new a,this.formSerializer)}}return o||l?(n.setContentType("application/json",!1),z1(t)):t}],transformResponse:[function(t){const n=this.transitional||Il.transitional,r=n&&n.forcedJSONParsing,l=this.responseType==="json";if(t&&ne.isString(t)&&(r&&!this.responseType||l)){const d=!(n&&n.silentJSONParsing)&&l;try{return JSON.parse(t)}catch(g){if(d)throw g.name==="SyntaxError"?He.from(g,He.ERR_BAD_RESPONSE,this,null,this.response):g}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:qt.classes.FormData,Blob:qt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ne.forEach(["delete","get","head","post","put","patch"],e=>{Il.headers[e]={}});const Nl=Il,j1=ne.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),U1=e=>{const t={};let n,r,l;return e&&e.split(`
|
792
|
-
`).forEach(function(d){l=d.indexOf(":"),n=d.substring(0,l).trim().toLowerCase(),r=d.substring(l+1).trim(),!(!n||t[n]&&j1[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},$u=Symbol("internals");function Dr(e){return e&&String(e).trim().toLowerCase()}function hs(e){return e===!1||e==null?e:ne.isArray(e)?e.map(hs):String(e)}function V1(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 G1=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Bo(e,t,n,r,l){if(ne.isFunction(r))return r.call(this,t,n);if(l&&(t=n),!!ne.isString(t)){if(ne.isString(r))return t.indexOf(r)!==-1;if(ne.isRegExp(r))return r.test(t)}}function K1(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Y1(e,t){const n=ne.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(l,o,d){return this[r].call(this,t,l,o,d)},configurable:!0})})}let uo=class{constructor(t){t&&this.set(t)}set(t,n,r){const l=this;function o(g,a,p){const s=Dr(a);if(!s)throw new Error("header name must be a non-empty string");const i=ne.findKey(l,s);(!i||l[i]===void 0||p===!0||p===void 0&&l[i]!==!1)&&(l[i||a]=hs(g))}const d=(g,a)=>ne.forEach(g,(p,s)=>o(p,s,a));return ne.isPlainObject(t)||t instanceof this.constructor?d(t,n):ne.isString(t)&&(t=t.trim())&&!G1(t)?d(U1(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=Dr(t),t){const r=ne.findKey(this,t);if(r){const l=this[r];if(!n)return l;if(n===!0)return V1(l);if(ne.isFunction(n))return n.call(this,l,r);if(ne.isRegExp(n))return n.exec(l);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Dr(t),t){const r=ne.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Bo(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let l=!1;function o(d){if(d=Dr(d),d){const g=ne.findKey(r,d);g&&(!n||Bo(r,r[g],g,n))&&(delete r[g],l=!0)}}return ne.isArray(t)?t.forEach(o):o(t),l}clear(t){const n=Object.keys(this);let r=n.length,l=!1;for(;r--;){const o=n[r];(!t||Bo(this,this[o],o,t,!0))&&(delete this[o],l=!0)}return l}normalize(t){const n=this,r={};return ne.forEach(this,(l,o)=>{const d=ne.findKey(r,o);if(d){n[d]=hs(l),delete n[o];return}const g=t?K1(o):String(o).trim();g!==o&&delete n[o],n[g]=hs(l),r[g]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ne.forEach(this,(r,l)=>{r!=null&&r!==!1&&(n[l]=t&&ne.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(`
|
793
|
-
`)}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[$u]=this[$u]={accessors:{}}).accessors,l=this.prototype;function o(d){const g=Dr(d);r[g]||(Y1(l,d),r[g]=!0)}return ne.isArray(t)?t.forEach(o):o(t),this}};uo.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ne.reduceDescriptors(uo.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ne.freezeMethods(uo);const un=uo;function Ho(e,t){const n=this||Nl,r=t||n,l=un.from(r.headers);let o=r.data;return ne.forEach(e,function(g){o=g.call(n,o,l.normalize(),t?t.status:void 0)}),l.normalize(),o}function ff(e){return!!(e&&e.__CANCEL__)}function Oi(e,t,n){He.call(this,e??"canceled",He.ERR_CANCELED,t,n),this.name="CanceledError"}ne.inherits(Oi,He,{__CANCEL__:!0});function Z1(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new He("Request failed with status code "+n.status,[He.ERR_BAD_REQUEST,He.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const X1=qt.hasStandardBrowserEnv?{write(e,t,n,r,l,o){const d=[e+"="+encodeURIComponent(t)];ne.isNumber(n)&&d.push("expires="+new Date(n).toGMTString()),ne.isString(r)&&d.push("path="+r),ne.isString(l)&&d.push("domain="+l),o===!0&&d.push("secure"),document.cookie=d.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function q1(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Q1(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function pf(e,t){return e&&!q1(t)?Q1(e,t):t}const J1=qt.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function l(o){let d=o;return t&&(n.setAttribute("href",d),d=n.href),n.setAttribute("href",d),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=l(window.location.href),function(d){const g=ne.isString(d)?l(d):d;return g.protocol===r.protocol&&g.host===r.host}}():function(){return function(){return!0}}();function ew(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function tw(e,t){e=e||10;const n=new Array(e),r=new Array(e);let l=0,o=0,d;return t=t!==void 0?t:1e3,function(a){const p=Date.now(),s=r[o];d||(d=p),n[l]=a,r[l]=p;let i=o,u=0;for(;i!==l;)u+=n[i++],i=i%e;if(l=(l+1)%e,l===o&&(o=(o+1)%e),p-d<t)return;const h=s&&p-s;return h?Math.round(u*1e3/h):void 0}}function Su(e,t){let n=0;const r=tw(50,250);return l=>{const o=l.loaded,d=l.lengthComputable?l.total:void 0,g=o-n,a=r(g),p=o<=d;n=o;const s={loaded:o,total:d,progress:d?o/d:void 0,bytes:g,rate:a||void 0,estimated:a&&d&&p?(d-o)/a:void 0,event:l};s[t?"download":"upload"]=!0,e(s)}}const nw=typeof XMLHttpRequest<"u",rw=nw&&function(e){return new Promise(function(n,r){let l=e.data;const o=un.from(e.headers).normalize();let{responseType:d,withXSRFToken:g}=e,a;function p(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}let s;if(ne.isFormData(l)){if(qt.hasStandardBrowserEnv||qt.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((s=o.getContentType())!==!1){const[f,...m]=s?s.split(";").map(v=>v.trim()).filter(Boolean):[];o.setContentType([f||"multipart/form-data",...m].join("; "))}}let i=new XMLHttpRequest;if(e.auth){const f=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(f+":"+m))}const u=pf(e.baseURL,e.url);i.open(e.method.toUpperCase(),cf(u,e.params,e.paramsSerializer),!0),i.timeout=e.timeout;function h(){if(!i)return;const f=un.from("getAllResponseHeaders"in i&&i.getAllResponseHeaders()),v={data:!d||d==="text"||d==="json"?i.responseText:i.response,status:i.status,statusText:i.statusText,headers:f,config:e,request:i};Z1(function(x){n(x),p()},function(x){r(x),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 He("Request aborted",He.ECONNABORTED,e,i)),i=null)},i.onerror=function(){r(new He("Network Error",He.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||uf;e.timeoutErrorMessage&&(m=e.timeoutErrorMessage),r(new He(m,v.clarifyTimeoutError?He.ETIMEDOUT:He.ECONNABORTED,e,i)),i=null},qt.hasStandardBrowserEnv&&(g&&ne.isFunction(g)&&(g=g(e)),g||g!==!1&&J1(u))){const f=e.xsrfHeaderName&&e.xsrfCookieName&&X1.read(e.xsrfCookieName);f&&o.set(e.xsrfHeaderName,f)}l===void 0&&o.setContentType(null),"setRequestHeader"in i&&ne.forEach(o.toJSON(),function(m,v){i.setRequestHeader(v,m)}),ne.isUndefined(e.withCredentials)||(i.withCredentials=!!e.withCredentials),d&&d!=="json"&&(i.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&i.addEventListener("progress",Su(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&i.upload&&i.upload.addEventListener("progress",Su(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=f=>{i&&(r(!f||f.type?new Oi(null,e,i):f),i.abort(),i=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const c=ew(u);if(c&&qt.protocols.indexOf(c)===-1){r(new He("Unsupported protocol "+c+":",He.ERR_BAD_REQUEST,e));return}i.send(l||null)})},Aa={http:E1,xhr:rw};ne.forEach(Aa,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const xu=e=>`- ${e}`,iw=e=>ne.isFunction(e)||e===null||e===!1,gf={getAdapter:e=>{e=ne.isArray(e)?e:[e];const{length:t}=e;let n,r;const l={};for(let o=0;o<t;o++){n=e[o];let d;if(r=n,!iw(n)&&(r=Aa[(d=String(n)).toLowerCase()],r===void 0))throw new He(`Unknown adapter '${d}'`);if(r)break;l[d||"#"+o]=r}if(!r){const o=Object.entries(l).map(([g,a])=>`adapter ${g} `+(a===!1?"is not supported by the environment":"is not available in the build"));let d=t?o.length>1?`since :
|
794
|
-
`+o.map(xu).join(`
|
795
|
-
`):" "+xu(o[0]):"as no adapter specified";throw new He("There is no suitable adapter to dispatch the request "+d,"ERR_NOT_SUPPORT")}return r},adapters:Aa};function zo(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Oi(null,e)}function Cu(e){return zo(e),e.headers=un.from(e.headers),e.data=Ho.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),gf.getAdapter(e.adapter||Nl.adapter)(e).then(function(r){return zo(e),r.data=Ho.call(e,e.transformResponse,r),r.headers=un.from(r.headers),r},function(r){return ff(r)||(zo(e),r&&r.response&&(r.response.data=Ho.call(e,e.transformResponse,r.response),r.response.headers=un.from(r.response.headers))),Promise.reject(r)})}const Au=e=>e instanceof un?{...e}:e;function Sr(e,t){t=t||{};const n={};function r(p,s,i){return ne.isPlainObject(p)&&ne.isPlainObject(s)?ne.merge.call({caseless:i},p,s):ne.isPlainObject(s)?ne.merge({},s):ne.isArray(s)?s.slice():s}function l(p,s,i){if(ne.isUndefined(s)){if(!ne.isUndefined(p))return r(void 0,p,i)}else return r(p,s,i)}function o(p,s){if(!ne.isUndefined(s))return r(void 0,s)}function d(p,s){if(ne.isUndefined(s)){if(!ne.isUndefined(p))return r(void 0,p)}else return r(void 0,s)}function g(p,s,i){if(i in t)return r(p,s);if(i in e)return r(void 0,p)}const a={url:o,method:o,data:o,baseURL:d,transformRequest:d,transformResponse:d,paramsSerializer:d,timeout:d,timeoutMessage:d,withCredentials:d,withXSRFToken:d,adapter:d,responseType:d,xsrfCookieName:d,xsrfHeaderName:d,onUploadProgress:d,onDownloadProgress:d,decompress:d,maxContentLength:d,maxBodyLength:d,beforeRedirect:d,transport:d,httpAgent:d,httpsAgent:d,cancelToken:d,socketPath:d,responseEncoding:d,validateStatus:g,headers:(p,s)=>l(Au(p),Au(s),!0)};return ne.forEach(Object.keys(Object.assign({},e,t)),function(s){const i=a[s]||l,u=i(e[s],t[s],s);ne.isUndefined(u)&&i!==g||(n[s]=u)}),n}const mf="1.6.8",Fl={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Fl[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ku={};Fl.transitional=function(t,n,r){function l(o,d){return"[Axios v"+mf+"] Transitional option '"+o+"'"+d+(r?". "+r:"")}return(o,d,g)=>{if(t===!1)throw new He(l(d," has been removed"+(n?" in "+n:"")),He.ERR_DEPRECATED);return n&&!ku[d]&&(ku[d]=!0,console.warn(l(d," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,d,g):!0}};function sw(e,t,n){if(typeof e!="object")throw new He("options must be an object",He.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let l=r.length;for(;l-- >0;){const o=r[l],d=t[o];if(d){const g=e[o],a=g===void 0||d(g,o,e);if(a!==!0)throw new He("option "+o+" must be "+a,He.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new He("Unknown option "+o,He.ERR_BAD_OPTION)}}const ka={assertOptions:sw,validators:Fl},Sn=ka.validators;let xs=class{constructor(t){this.defaults=t,this.interceptors={request:new _u,response:new _u}}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 o=l.stack?l.stack.replace(/^.+\n/,""):"";r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
796
|
-
`+o):r.stack=o}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Sr(this.defaults,n);const{transitional:r,paramsSerializer:l,headers:o}=n;r!==void 0&&ka.assertOptions(r,{silentJSONParsing:Sn.transitional(Sn.boolean),forcedJSONParsing:Sn.transitional(Sn.boolean),clarifyTimeoutError:Sn.transitional(Sn.boolean)},!1),l!=null&&(ne.isFunction(l)?n.paramsSerializer={serialize:l}:ka.assertOptions(l,{encode:Sn.function,serialize:Sn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let d=o&&ne.merge(o.common,o[n.method]);o&&ne.forEach(["delete","get","head","post","put","patch","common"],c=>{delete o[c]}),n.headers=un.concat(d,o);const g=[];let a=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(n)===!1||(a=a&&f.synchronous,g.unshift(f.fulfilled,f.rejected))});const p=[];this.interceptors.response.forEach(function(f){p.push(f.fulfilled,f.rejected)});let s,i=0,u;if(!a){const c=[Cu.bind(this),void 0];for(c.unshift.apply(c,g),c.push.apply(c,p),u=c.length,s=Promise.resolve(n);i<u;)s=s.then(c[i++],c[i++]);return s}u=g.length;let h=n;for(i=0;i<u;){const c=g[i++],f=g[i++];try{h=c(h)}catch(m){f.call(this,m);break}}try{s=Cu.call(this,h)}catch(c){return Promise.reject(c)}for(i=0,u=p.length;i<u;)s=s.then(p[i++],p[i++]);return s}getUri(t){t=Sr(this.defaults,t);const n=pf(t.baseURL,t.url);return cf(n,t.params,t.paramsSerializer)}};ne.forEach(["delete","get","head","options"],function(t){xs.prototype[t]=function(n,r){return this.request(Sr(r||{},{method:t,url:n,data:(r||{}).data}))}});ne.forEach(["post","put","patch"],function(t){function n(r){return function(o,d,g){return this.request(Sr(g||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:d}))}}xs.prototype[t]=n(),xs.prototype[t+"Form"]=n(!0)});const ds=xs;let ow=class vf{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(l=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](l);r._listeners=null}),this.promise.then=l=>{let o;const d=new Promise(g=>{r.subscribe(g),o=g}).then(l);return d.cancel=function(){r.unsubscribe(o)},d},t(function(o,d,g){r.reason||(r.reason=new Oi(o,d,g),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 vf(function(l){t=l}),cancel:t}}};const aw=ow;function lw(e){return function(n){return e.apply(null,n)}}function cw(e){return ne.isObject(e)&&e.isAxiosError===!0}const Ea={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(Ea).forEach(([e,t])=>{Ea[t]=e});const uw=Ea;function yf(e){const t=new ds(e),n=Xd(ds.prototype.request,t);return ne.extend(n,ds.prototype,t,{allOwnKeys:!0}),ne.extend(n,t,null,{allOwnKeys:!0}),n.create=function(l){return yf(Sr(e,l))},n}const Je=yf(Nl);Je.Axios=ds;Je.CanceledError=Oi;Je.CancelToken=aw;Je.isCancel=ff;Je.VERSION=mf;Je.toFormData=co;Je.AxiosError=He;Je.Cancel=Je.CanceledError;Je.all=function(t){return Promise.all(t)};Je.spread=lw;Je.isAxiosError=cw;Je.mergeConfig=Sr;Je.AxiosHeaders=un;Je.formToJSON=e=>df(ne.isHTMLForm(e)?new FormData(e):e);Je.getAdapter=gf.getAdapter;Je.HttpStatusCode=uw;Je.default=Je;const{Axios:xE,AxiosError:hw,CanceledError:CE,isCancel:AE,CancelToken:kE,VERSION:EE,all:RE,Cancel:TE,isAxiosError:LE,spread:ME,toFormData:OE,AxiosHeaders:IE,HttpStatusCode:NE,formToJSON:FE,getAdapter:DE,mergeConfig:PE}=Je;var Ve;(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 o={};for(const d of l)o[d]=d;return o},e.getValidEnumValues=l=>{const o=e.objectKeys(l).filter(g=>typeof l[l[g]]!="number"),d={};for(const g of o)d[g]=l[g];return e.objectValues(d)},e.objectValues=l=>e.objectKeys(l).map(function(o){return l[o]}),e.objectKeys=typeof Object.keys=="function"?l=>Object.keys(l):l=>{const o=[];for(const d in l)Object.prototype.hasOwnProperty.call(l,d)&&o.push(d);return o},e.find=(l,o)=>{for(const d of l)if(o(d))return d},e.isInteger=typeof Number.isInteger=="function"?l=>Number.isInteger(l):l=>typeof l=="number"&&isFinite(l)&&Math.floor(l)===l;function r(l,o=" | "){return l.map(d=>typeof d=="string"?`'${d}'`:d).join(o)}e.joinValues=r,e.jsonStringifyReplacer=(l,o)=>typeof o=="bigint"?o.toString():o})(Ve||(Ve={}));var Ra;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Ra||(Ra={}));const ve=Ve.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),En=e=>{switch(typeof e){case"undefined":return ve.undefined;case"string":return ve.string;case"number":return isNaN(e)?ve.nan:ve.number;case"boolean":return ve.boolean;case"function":return ve.function;case"bigint":return ve.bigint;case"symbol":return ve.symbol;case"object":return Array.isArray(e)?ve.array:e===null?ve.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?ve.promise:typeof Map<"u"&&e instanceof Map?ve.map:typeof Set<"u"&&e instanceof Set?ve.set:typeof Date<"u"&&e instanceof Date?ve.date:ve.object;default:return ve.unknown}},ue=Ve.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"]),dw=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class jt 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(o){return o.message},r={_errors:[]},l=o=>{for(const d of o.issues)if(d.code==="invalid_union")d.unionErrors.map(l);else if(d.code==="invalid_return_type")l(d.returnTypeError);else if(d.code==="invalid_arguments")l(d.argumentsError);else if(d.path.length===0)r._errors.push(n(d));else{let g=r,a=0;for(;a<d.path.length;){const p=d.path[a];a===d.path.length-1?(g[p]=g[p]||{_errors:[]},g[p]._errors.push(n(d))):g[p]=g[p]||{_errors:[]},g=g[p],a++}}};return l(this),r}toString(){return this.message}get message(){return JSON.stringify(this.issues,Ve.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.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()}}jt.create=e=>new jt(e);const ci=(e,t)=>{let n;switch(e.code){case ue.invalid_type:e.received===ve.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case ue.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Ve.jsonStringifyReplacer)}`;break;case ue.unrecognized_keys:n=`Unrecognized key(s) in object: ${Ve.joinValues(e.keys,", ")}`;break;case ue.invalid_union:n="Invalid input";break;case ue.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Ve.joinValues(e.options)}`;break;case ue.invalid_enum_value:n=`Invalid enum value. Expected ${Ve.joinValues(e.options)}, received '${e.received}'`;break;case ue.invalid_arguments:n="Invalid function arguments";break;case ue.invalid_return_type:n="Invalid function return type";break;case ue.invalid_date:n="Invalid date";break;case ue.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}"`:Ve.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case ue.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 ue.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 ue.custom:n="Invalid input";break;case ue.invalid_intersection_types:n="Intersection results could not be merged";break;case ue.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case ue.not_finite:n="Number must be finite";break;default:n=t.defaultError,Ve.assertNever(e)}return{message:n}};let bf=ci;function fw(e){bf=e}function Cs(){return bf}const As=e=>{const{data:t,path:n,errorMaps:r,issueData:l}=e,o=[...n,...l.path||[]],d={...l,path:o};let g="";const a=r.filter(p=>!!p).slice().reverse();for(const p of a)g=p(d,{data:t,defaultError:g}).message;return{...l,path:o,message:l.message||g}},pw=[];function be(e,t){const n=As({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,Cs(),ci].filter(r=>!!r)});e.common.issues.push(n)}class _t{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 Ie;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 _t.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const l of n){const{key:o,value:d}=l;if(o.status==="aborted"||d.status==="aborted")return Ie;o.status==="dirty"&&t.dirty(),d.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof d.value<"u"||l.alwaysSet)&&(r[o.value]=d.value)}return{status:t.value,value:r}}}const Ie=Object.freeze({status:"aborted"}),wf=e=>({status:"dirty",value:e}),At=e=>({status:"valid",value:e}),Ta=e=>e.status==="aborted",La=e=>e.status==="dirty",ui=e=>e.status==="valid",ks=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 tn{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 Eu=(e,t)=>{if(ui(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 jt(e.common.issues);return this._error=n,this._error}}};function De(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:(d,g)=>d.code!=="invalid_type"?{message:g.defaultError}:typeof g.data>"u"?{message:r??g.defaultError}:{message:n??g.defaultError},description:l}}class We{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 En(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:En(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new _t,ctx:{common:t.parent.common,data:t.data,parsedType:En(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(ks(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:En(t)},o=this._parseSync({data:t,path:l.path,parent:l});return Eu(l,o)}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:En(t)},l=this._parse({data:t,path:r.path,parent:r}),o=await(ks(l)?l:Promise.resolve(l));return Eu(r,o)}refine(t,n){const r=l=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(l):n;return this._refinement((l,o)=>{const d=t(l),g=()=>o.addIssue({code:ue.custom,...r(l)});return typeof Promise<"u"&&d instanceof Promise?d.then(a=>a?!0:(g(),!1)):d?!0:(g(),!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 Gt({schema:this,typeName:Le.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return hn.create(this,this._def)}nullable(){return ir.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ut.create(this,this._def)}promise(){return Cr.create(this,this._def)}or(t){return pi.create([this,t],this._def)}and(t){return gi.create(this,t,this._def)}transform(t){return new Gt({...De(this._def),schema:this,typeName:Le.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new wi({...De(this._def),innerType:this,defaultValue:n,typeName:Le.ZodDefault})}brand(){return new $f({typeName:Le.ZodBranded,type:this,...De(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Ls({...De(this._def),innerType:this,catchValue:n,typeName:Le.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Ii.create(this,t)}readonly(){return Os.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const gw=/^c[^\s-]{8,}$/i,mw=/^[a-z][a-z0-9]*$/,vw=/^[0-9A-HJKMNP-TV-Z]{26}$/,yw=/^[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,bw=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,ww="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let jo;const _w=/^(((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}))$/,$w=/^(([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})))$/,Sw=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 xw(e,t){return!!((t==="v4"||!t)&&_w.test(e)||(t==="v6"||!t)&&$w.test(e))}class Bt extends We{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==ve.string){const o=this._getOrReturnCtx(t);return be(o,{code:ue.invalid_type,expected:ve.string,received:o.parsedType}),Ie}const r=new _t;let l;for(const o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(l=this._getOrReturnCtx(t,l),be(l,{code:ue.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="max")t.data.length>o.value&&(l=this._getOrReturnCtx(t,l),be(l,{code:ue.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="length"){const d=t.data.length>o.value,g=t.data.length<o.value;(d||g)&&(l=this._getOrReturnCtx(t,l),d?be(l,{code:ue.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):g&&be(l,{code:ue.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),r.dirty())}else if(o.kind==="email")bw.test(t.data)||(l=this._getOrReturnCtx(t,l),be(l,{validation:"email",code:ue.invalid_string,message:o.message}),r.dirty());else if(o.kind==="emoji")jo||(jo=new RegExp(ww,"u")),jo.test(t.data)||(l=this._getOrReturnCtx(t,l),be(l,{validation:"emoji",code:ue.invalid_string,message:o.message}),r.dirty());else if(o.kind==="uuid")yw.test(t.data)||(l=this._getOrReturnCtx(t,l),be(l,{validation:"uuid",code:ue.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid")gw.test(t.data)||(l=this._getOrReturnCtx(t,l),be(l,{validation:"cuid",code:ue.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid2")mw.test(t.data)||(l=this._getOrReturnCtx(t,l),be(l,{validation:"cuid2",code:ue.invalid_string,message:o.message}),r.dirty());else if(o.kind==="ulid")vw.test(t.data)||(l=this._getOrReturnCtx(t,l),be(l,{validation:"ulid",code:ue.invalid_string,message:o.message}),r.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{l=this._getOrReturnCtx(t,l),be(l,{validation:"url",code:ue.invalid_string,message:o.message}),r.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(l=this._getOrReturnCtx(t,l),be(l,{validation:"regex",code:ue.invalid_string,message:o.message}),r.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(l=this._getOrReturnCtx(t,l),be(l,{code:ue.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),r.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(l=this._getOrReturnCtx(t,l),be(l,{code:ue.invalid_string,validation:{startsWith:o.value},message:o.message}),r.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(l=this._getOrReturnCtx(t,l),be(l,{code:ue.invalid_string,validation:{endsWith:o.value},message:o.message}),r.dirty()):o.kind==="datetime"?Sw(o).test(t.data)||(l=this._getOrReturnCtx(t,l),be(l,{code:ue.invalid_string,validation:"datetime",message:o.message}),r.dirty()):o.kind==="ip"?xw(t.data,o.version)||(l=this._getOrReturnCtx(t,l),be(l,{validation:"ip",code:ue.invalid_string,message:o.message}),r.dirty()):Ve.assertNever(o);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(l=>t.test(l),{validation:n,code:ue.invalid_string,...Te.errToObj(r)})}_addCheck(t){return new Bt({...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 Bt({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Bt({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Bt({...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<t)&&(t=n.value);return t}}Bt.create=e=>{var t;return new Bt({checks:[],typeName:Le.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...De(e)})};function Cw(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,l=n>r?n:r,o=parseInt(e.toFixed(l).replace(".","")),d=parseInt(t.toFixed(l).replace(".",""));return o%d/Math.pow(10,l)}class Nn extends We{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)!==ve.number){const o=this._getOrReturnCtx(t);return be(o,{code:ue.invalid_type,expected:ve.number,received:o.parsedType}),Ie}let r;const l=new _t;for(const o of this._def.checks)o.kind==="int"?Ve.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),be(r,{code:ue.invalid_type,expected:"integer",received:"float",message:o.message}),l.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),be(r,{code:ue.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),l.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),be(r,{code:ue.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),l.dirty()):o.kind==="multipleOf"?Cw(t.data,o.value)!==0&&(r=this._getOrReturnCtx(t,r),be(r,{code:ue.not_multiple_of,multipleOf:o.value,message:o.message}),l.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),be(r,{code:ue.not_finite,message:o.message}),l.dirty()):Ve.assertNever(o);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 Nn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Te.toString(l)}]})}_addCheck(t){return new Nn({...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.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Ve.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.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}Nn.create=e=>new Nn({checks:[],typeName:Le.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...De(e)});class Fn extends We{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)!==ve.bigint){const o=this._getOrReturnCtx(t);return be(o,{code:ue.invalid_type,expected:ve.bigint,received:o.parsedType}),Ie}let r;const l=new _t;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),be(r,{code:ue.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),l.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),be(r,{code:ue.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),l.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),be(r,{code:ue.not_multiple_of,multipleOf:o.value,message:o.message}),l.dirty()):Ve.assertNever(o);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 Fn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Te.toString(l)}]})}_addCheck(t){return new Fn({...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<t)&&(t=n.value);return t}}Fn.create=e=>{var t;return new Fn({checks:[],typeName:Le.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...De(e)})};class hi extends We{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==ve.boolean){const r=this._getOrReturnCtx(t);return be(r,{code:ue.invalid_type,expected:ve.boolean,received:r.parsedType}),Ie}return At(t.data)}}hi.create=e=>new hi({typeName:Le.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...De(e)});class nr extends We{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==ve.date){const o=this._getOrReturnCtx(t);return be(o,{code:ue.invalid_type,expected:ve.date,received:o.parsedType}),Ie}if(isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return be(o,{code:ue.invalid_date}),Ie}const r=new _t;let l;for(const o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(l=this._getOrReturnCtx(t,l),be(l,{code:ue.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),r.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(l=this._getOrReturnCtx(t,l),be(l,{code:ue.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),r.dirty()):Ve.assertNever(o);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new nr({...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.value<t)&&(t=n.value);return t!=null?new Date(t):null}}nr.create=e=>new nr({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Le.ZodDate,...De(e)});class Es extends We{_parse(t){if(this._getType(t)!==ve.symbol){const r=this._getOrReturnCtx(t);return be(r,{code:ue.invalid_type,expected:ve.symbol,received:r.parsedType}),Ie}return At(t.data)}}Es.create=e=>new Es({typeName:Le.ZodSymbol,...De(e)});class di extends We{_parse(t){if(this._getType(t)!==ve.undefined){const r=this._getOrReturnCtx(t);return be(r,{code:ue.invalid_type,expected:ve.undefined,received:r.parsedType}),Ie}return At(t.data)}}di.create=e=>new di({typeName:Le.ZodUndefined,...De(e)});class fi extends We{_parse(t){if(this._getType(t)!==ve.null){const r=this._getOrReturnCtx(t);return be(r,{code:ue.invalid_type,expected:ve.null,received:r.parsedType}),Ie}return At(t.data)}}fi.create=e=>new fi({typeName:Le.ZodNull,...De(e)});class xr extends We{constructor(){super(...arguments),this._any=!0}_parse(t){return At(t.data)}}xr.create=e=>new xr({typeName:Le.ZodAny,...De(e)});class Xn extends We{constructor(){super(...arguments),this._unknown=!0}_parse(t){return At(t.data)}}Xn.create=e=>new Xn({typeName:Le.ZodUnknown,...De(e)});class gn extends We{_parse(t){const n=this._getOrReturnCtx(t);return be(n,{code:ue.invalid_type,expected:ve.never,received:n.parsedType}),Ie}}gn.create=e=>new gn({typeName:Le.ZodNever,...De(e)});class Rs extends We{_parse(t){if(this._getType(t)!==ve.undefined){const r=this._getOrReturnCtx(t);return be(r,{code:ue.invalid_type,expected:ve.void,received:r.parsedType}),Ie}return At(t.data)}}Rs.create=e=>new Rs({typeName:Le.ZodVoid,...De(e)});class Ut extends We{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),l=this._def;if(n.parsedType!==ve.array)return be(n,{code:ue.invalid_type,expected:ve.array,received:n.parsedType}),Ie;if(l.exactLength!==null){const d=n.data.length>l.exactLength.value,g=n.data.length<l.exactLength.value;(d||g)&&(be(n,{code:d?ue.too_big:ue.too_small,minimum:g?l.exactLength.value:void 0,maximum:d?l.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:l.exactLength.message}),r.dirty())}if(l.minLength!==null&&n.data.length<l.minLength.value&&(be(n,{code:ue.too_small,minimum:l.minLength.value,type:"array",inclusive:!0,exact:!1,message:l.minLength.message}),r.dirty()),l.maxLength!==null&&n.data.length>l.maxLength.value&&(be(n,{code:ue.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((d,g)=>l.type._parseAsync(new tn(n,d,n.path,g)))).then(d=>_t.mergeArray(r,d));const o=[...n.data].map((d,g)=>l.type._parseSync(new tn(n,d,n.path,g)));return _t.mergeArray(r,o)}get element(){return this._def.type}min(t,n){return new Ut({...this._def,minLength:{value:t,message:Te.toString(n)}})}max(t,n){return new Ut({...this._def,maxLength:{value:t,message:Te.toString(n)}})}length(t,n){return new Ut({...this._def,exactLength:{value:t,message:Te.toString(n)}})}nonempty(t){return this.min(1,t)}}Ut.create=(e,t)=>new Ut({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Le.ZodArray,...De(t)});function cr(e){if(e instanceof at){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=hn.create(cr(r))}return new at({...e._def,shape:()=>t})}else return e instanceof Ut?new Ut({...e._def,type:cr(e.element)}):e instanceof hn?hn.create(cr(e.unwrap())):e instanceof ir?ir.create(cr(e.unwrap())):e instanceof nn?nn.create(e.items.map(t=>cr(t))):e}class at extends We{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=Ve.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==ve.object){const p=this._getOrReturnCtx(t);return be(p,{code:ue.invalid_type,expected:ve.object,received:p.parsedType}),Ie}const{status:r,ctx:l}=this._processInputParams(t),{shape:o,keys:d}=this._getCached(),g=[];if(!(this._def.catchall instanceof gn&&this._def.unknownKeys==="strip"))for(const p in l.data)d.includes(p)||g.push(p);const a=[];for(const p of d){const s=o[p],i=l.data[p];a.push({key:{status:"valid",value:p},value:s._parse(new tn(l,i,l.path,p)),alwaysSet:p in l.data})}if(this._def.catchall instanceof gn){const p=this._def.unknownKeys;if(p==="passthrough")for(const s of g)a.push({key:{status:"valid",value:s},value:{status:"valid",value:l.data[s]}});else if(p==="strict")g.length>0&&(be(l,{code:ue.unrecognized_keys,keys:g}),r.dirty());else if(p!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const p=this._def.catchall;for(const s of g){const i=l.data[s];a.push({key:{status:"valid",value:s},value:p._parse(new tn(l,i,l.path,s)),alwaysSet:s in l.data})}}return l.common.async?Promise.resolve().then(async()=>{const p=[];for(const s of a){const i=await s.key;p.push({key:i,value:await s.value,alwaysSet:s.alwaysSet})}return p}).then(p=>_t.mergeObjectSync(r,p)):_t.mergeObjectSync(r,a)}get shape(){return this._def.shape()}strict(t){return Te.errToObj,new at({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var l,o,d,g;const a=(d=(o=(l=this._def).errorMap)===null||o===void 0?void 0:o.call(l,n,r).message)!==null&&d!==void 0?d:r.defaultError;return n.code==="unrecognized_keys"?{message:(g=Te.errToObj(t).message)!==null&&g!==void 0?g:a}:{message:a}}}:{}})}strip(){return new at({...this._def,unknownKeys:"strip"})}passthrough(){return new at({...this._def,unknownKeys:"passthrough"})}extend(t){return new at({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new at({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Le.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new at({...this._def,catchall:t})}pick(t){const n={};return Ve.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new at({...this._def,shape:()=>n})}omit(t){const n={};return Ve.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new at({...this._def,shape:()=>n})}deepPartial(){return cr(this)}partial(t){const n={};return Ve.objectKeys(this.shape).forEach(r=>{const l=this.shape[r];t&&!t[r]?n[r]=l:n[r]=l.optional()}),new at({...this._def,shape:()=>n})}required(t){const n={};return Ve.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let o=this.shape[r];for(;o instanceof hn;)o=o._def.innerType;n[r]=o}}),new at({...this._def,shape:()=>n})}keyof(){return _f(Ve.objectKeys(this.shape))}}at.create=(e,t)=>new at({shape:()=>e,unknownKeys:"strip",catchall:gn.create(),typeName:Le.ZodObject,...De(t)});at.strictCreate=(e,t)=>new at({shape:()=>e,unknownKeys:"strict",catchall:gn.create(),typeName:Le.ZodObject,...De(t)});at.lazycreate=(e,t)=>new at({shape:e,unknownKeys:"strip",catchall:gn.create(),typeName:Le.ZodObject,...De(t)});class pi extends We{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function l(o){for(const g of o)if(g.result.status==="valid")return g.result;for(const g of o)if(g.result.status==="dirty")return n.common.issues.push(...g.ctx.common.issues),g.result;const d=o.map(g=>new jt(g.ctx.common.issues));return be(n,{code:ue.invalid_union,unionErrors:d}),Ie}if(n.common.async)return Promise.all(r.map(async o=>{const d={...n,common:{...n.common,issues:[]},parent:null};return{result:await o._parseAsync({data:n.data,path:n.path,parent:d}),ctx:d}})).then(l);{let o;const d=[];for(const a of r){const p={...n,common:{...n.common,issues:[]},parent:null},s=a._parseSync({data:n.data,path:n.path,parent:p});if(s.status==="valid")return s;s.status==="dirty"&&!o&&(o={result:s,ctx:p}),p.common.issues.length&&d.push(p.common.issues)}if(o)return n.common.issues.push(...o.ctx.common.issues),o.result;const g=d.map(a=>new jt(a));return be(n,{code:ue.invalid_union,unionErrors:g}),Ie}}get options(){return this._def.options}}pi.create=(e,t)=>new pi({options:e,typeName:Le.ZodUnion,...De(t)});const fs=e=>e instanceof vi?fs(e.schema):e instanceof Gt?fs(e.innerType()):e instanceof yi?[e.value]:e instanceof Dn?e.options:e instanceof bi?Object.keys(e.enum):e instanceof wi?fs(e._def.innerType):e instanceof di?[void 0]:e instanceof fi?[null]:null;class ho extends We{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ve.object)return be(n,{code:ue.invalid_type,expected:ve.object,received:n.parsedType}),Ie;const r=this.discriminator,l=n.data[r],o=this.optionsMap.get(l);return o?n.common.async?o._parseAsync({data:n.data,path:n.path,parent:n}):o._parseSync({data:n.data,path:n.path,parent:n}):(be(n,{code:ue.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),Ie)}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 o of n){const d=fs(o.shape[t]);if(!d)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const g of d){if(l.has(g))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(g)}`);l.set(g,o)}}return new ho({typeName:Le.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:l,...De(r)})}}function Ma(e,t){const n=En(e),r=En(t);if(e===t)return{valid:!0,data:e};if(n===ve.object&&r===ve.object){const l=Ve.objectKeys(t),o=Ve.objectKeys(e).filter(g=>l.indexOf(g)!==-1),d={...e,...t};for(const g of o){const a=Ma(e[g],t[g]);if(!a.valid)return{valid:!1};d[g]=a.data}return{valid:!0,data:d}}else if(n===ve.array&&r===ve.array){if(e.length!==t.length)return{valid:!1};const l=[];for(let o=0;o<e.length;o++){const d=e[o],g=t[o],a=Ma(d,g);if(!a.valid)return{valid:!1};l.push(a.data)}return{valid:!0,data:l}}else return n===ve.date&&r===ve.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class gi extends We{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),l=(o,d)=>{if(Ta(o)||Ta(d))return Ie;const g=Ma(o.value,d.value);return g.valid?((La(o)||La(d))&&n.dirty(),{status:n.value,value:g.data}):(be(r,{code:ue.invalid_intersection_types}),Ie)};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(([o,d])=>l(o,d)):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}))}}gi.create=(e,t,n)=>new gi({left:e,right:t,typeName:Le.ZodIntersection,...De(n)});class nn extends We{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ve.array)return be(r,{code:ue.invalid_type,expected:ve.array,received:r.parsedType}),Ie;if(r.data.length<this._def.items.length)return be(r,{code:ue.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ie;!this._def.rest&&r.data.length>this._def.items.length&&(be(r,{code:ue.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const o=[...r.data].map((d,g)=>{const a=this._def.items[g]||this._def.rest;return a?a._parse(new tn(r,d,r.path,g)):null}).filter(d=>!!d);return r.common.async?Promise.all(o).then(d=>_t.mergeArray(n,d)):_t.mergeArray(n,o)}get items(){return this._def.items}rest(t){return new nn({...this._def,rest:t})}}nn.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new nn({items:e,typeName:Le.ZodTuple,rest:null,...De(t)})};class mi extends We{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!==ve.object)return be(r,{code:ue.invalid_type,expected:ve.object,received:r.parsedType}),Ie;const l=[],o=this._def.keyType,d=this._def.valueType;for(const g in r.data)l.push({key:o._parse(new tn(r,g,r.path,g)),value:d._parse(new tn(r,r.data[g],r.path,g))});return r.common.async?_t.mergeObjectAsync(n,l):_t.mergeObjectSync(n,l)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof We?new mi({keyType:t,valueType:n,typeName:Le.ZodRecord,...De(r)}):new mi({keyType:Bt.create(),valueType:t,typeName:Le.ZodRecord,...De(n)})}}class Ts extends We{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!==ve.map)return be(r,{code:ue.invalid_type,expected:ve.map,received:r.parsedType}),Ie;const l=this._def.keyType,o=this._def.valueType,d=[...r.data.entries()].map(([g,a],p)=>({key:l._parse(new tn(r,g,r.path,[p,"key"])),value:o._parse(new tn(r,a,r.path,[p,"value"]))}));if(r.common.async){const g=new Map;return Promise.resolve().then(async()=>{for(const a of d){const p=await a.key,s=await a.value;if(p.status==="aborted"||s.status==="aborted")return Ie;(p.status==="dirty"||s.status==="dirty")&&n.dirty(),g.set(p.value,s.value)}return{status:n.value,value:g}})}else{const g=new Map;for(const a of d){const p=a.key,s=a.value;if(p.status==="aborted"||s.status==="aborted")return Ie;(p.status==="dirty"||s.status==="dirty")&&n.dirty(),g.set(p.value,s.value)}return{status:n.value,value:g}}}}Ts.create=(e,t,n)=>new Ts({valueType:t,keyType:e,typeName:Le.ZodMap,...De(n)});class rr extends We{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ve.set)return be(r,{code:ue.invalid_type,expected:ve.set,received:r.parsedType}),Ie;const l=this._def;l.minSize!==null&&r.data.size<l.minSize.value&&(be(r,{code:ue.too_small,minimum:l.minSize.value,type:"set",inclusive:!0,exact:!1,message:l.minSize.message}),n.dirty()),l.maxSize!==null&&r.data.size>l.maxSize.value&&(be(r,{code:ue.too_big,maximum:l.maxSize.value,type:"set",inclusive:!0,exact:!1,message:l.maxSize.message}),n.dirty());const o=this._def.valueType;function d(a){const p=new Set;for(const s of a){if(s.status==="aborted")return Ie;s.status==="dirty"&&n.dirty(),p.add(s.value)}return{status:n.value,value:p}}const g=[...r.data.values()].map((a,p)=>o._parse(new tn(r,a,r.path,p)));return r.common.async?Promise.all(g).then(a=>d(a)):d(g)}min(t,n){return new rr({...this._def,minSize:{value:t,message:Te.toString(n)}})}max(t,n){return new rr({...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)}}rr.create=(e,t)=>new rr({valueType:e,minSize:null,maxSize:null,typeName:Le.ZodSet,...De(t)});class vr extends We{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ve.function)return be(n,{code:ue.invalid_type,expected:ve.function,received:n.parsedType}),Ie;function r(g,a){return As({data:g,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Cs(),ci].filter(p=>!!p),issueData:{code:ue.invalid_arguments,argumentsError:a}})}function l(g,a){return As({data:g,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Cs(),ci].filter(p=>!!p),issueData:{code:ue.invalid_return_type,returnTypeError:a}})}const o={errorMap:n.common.contextualErrorMap},d=n.data;if(this._def.returns instanceof Cr){const g=this;return At(async function(...a){const p=new jt([]),s=await g._def.args.parseAsync(a,o).catch(h=>{throw p.addIssue(r(a,h)),p}),i=await Reflect.apply(d,this,s);return await g._def.returns._def.type.parseAsync(i,o).catch(h=>{throw p.addIssue(l(i,h)),p})})}else{const g=this;return At(function(...a){const p=g._def.args.safeParse(a,o);if(!p.success)throw new jt([r(a,p.error)]);const s=Reflect.apply(d,this,p.data),i=g._def.returns.safeParse(s,o);if(!i.success)throw new jt([l(s,i.error)]);return i.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new vr({...this._def,args:nn.create(t).rest(Xn.create())})}returns(t){return new vr({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new vr({args:t||nn.create([]).rest(Xn.create()),returns:n||Xn.create(),typeName:Le.ZodFunction,...De(r)})}}class vi extends We{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})}}vi.create=(e,t)=>new vi({getter:e,typeName:Le.ZodLazy,...De(t)});class yi extends We{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return be(n,{received:n.data,code:ue.invalid_literal,expected:this._def.value}),Ie}return{status:"valid",value:t.data}}get value(){return this._def.value}}yi.create=(e,t)=>new yi({value:e,typeName:Le.ZodLiteral,...De(t)});function _f(e,t){return new Dn({values:e,typeName:Le.ZodEnum,...De(t)})}class Dn extends We{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return be(n,{expected:Ve.joinValues(r),received:n.parsedType,code:ue.invalid_type}),Ie}if(this._def.values.indexOf(t.data)===-1){const n=this._getOrReturnCtx(t),r=this._def.values;return be(n,{received:n.data,code:ue.invalid_enum_value,options:r}),Ie}return At(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 Dn.create(t)}exclude(t){return Dn.create(this.options.filter(n=>!t.includes(n)))}}Dn.create=_f;class bi extends We{_parse(t){const n=Ve.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==ve.string&&r.parsedType!==ve.number){const l=Ve.objectValues(n);return be(r,{expected:Ve.joinValues(l),received:r.parsedType,code:ue.invalid_type}),Ie}if(n.indexOf(t.data)===-1){const l=Ve.objectValues(n);return be(r,{received:r.data,code:ue.invalid_enum_value,options:l}),Ie}return At(t.data)}get enum(){return this._def.values}}bi.create=(e,t)=>new bi({values:e,typeName:Le.ZodNativeEnum,...De(t)});class Cr extends We{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ve.promise&&n.common.async===!1)return be(n,{code:ue.invalid_type,expected:ve.promise,received:n.parsedType}),Ie;const r=n.parsedType===ve.promise?n.data:Promise.resolve(n.data);return At(r.then(l=>this._def.type.parseAsync(l,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Cr.create=(e,t)=>new Cr({type:e,typeName:Le.ZodPromise,...De(t)});class Gt extends We{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Le.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),l=this._def.effect||null,o={addIssue:d=>{be(r,d),d.fatal?n.abort():n.dirty()},get path(){return r.path}};if(o.addIssue=o.addIssue.bind(o),l.type==="preprocess"){const d=l.transform(r.data,o);return r.common.issues.length?{status:"dirty",value:r.data}:r.common.async?Promise.resolve(d).then(g=>this._def.schema._parseAsync({data:g,path:r.path,parent:r})):this._def.schema._parseSync({data:d,path:r.path,parent:r})}if(l.type==="refinement"){const d=g=>{const a=l.refinement(g,o);if(r.common.async)return Promise.resolve(a);if(a instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return g};if(r.common.async===!1){const g=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return g.status==="aborted"?Ie:(g.status==="dirty"&&n.dirty(),d(g.value),{status:n.value,value:g.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(g=>g.status==="aborted"?Ie:(g.status==="dirty"&&n.dirty(),d(g.value).then(()=>({status:n.value,value:g.value}))))}if(l.type==="transform")if(r.common.async===!1){const d=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!ui(d))return d;const g=l.transform(d.value,o);if(g instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:g}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(d=>ui(d)?Promise.resolve(l.transform(d.value,o)).then(g=>({status:n.value,value:g})):d);Ve.assertNever(l)}}Gt.create=(e,t,n)=>new Gt({schema:e,typeName:Le.ZodEffects,effect:t,...De(n)});Gt.createWithPreprocess=(e,t,n)=>new Gt({schema:t,effect:{type:"preprocess",transform:e},typeName:Le.ZodEffects,...De(n)});class hn extends We{_parse(t){return this._getType(t)===ve.undefined?At(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}hn.create=(e,t)=>new hn({innerType:e,typeName:Le.ZodOptional,...De(t)});class ir extends We{_parse(t){return this._getType(t)===ve.null?At(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}ir.create=(e,t)=>new ir({innerType:e,typeName:Le.ZodNullable,...De(t)});class wi extends We{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===ve.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}wi.create=(e,t)=>new wi({innerType:e,typeName:Le.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...De(t)});class Ls extends We{_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 ks(l)?l.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new jt(r.common.issues)},input:r.data})})):{status:"valid",value:l.status==="valid"?l.value:this._def.catchValue({get error(){return new jt(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Ls.create=(e,t)=>new Ls({innerType:e,typeName:Le.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...De(t)});class Ms extends We{_parse(t){if(this._getType(t)!==ve.nan){const r=this._getOrReturnCtx(t);return be(r,{code:ue.invalid_type,expected:ve.nan,received:r.parsedType}),Ie}return{status:"valid",value:t.data}}}Ms.create=e=>new Ms({typeName:Le.ZodNaN,...De(e)});const Aw=Symbol("zod_brand");class $f extends We{_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 Ii extends We{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?Ie:o.status==="dirty"?(n.dirty(),wf(o.value)):this._def.out._parseAsync({data:o.value,path:r.path,parent:r})})();{const l=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return l.status==="aborted"?Ie: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 Ii({in:t,out:n,typeName:Le.ZodPipeline})}}class Os extends We{_parse(t){const n=this._def.innerType._parse(t);return ui(n)&&(n.value=Object.freeze(n.value)),n}}Os.create=(e,t)=>new Os({innerType:e,typeName:Le.ZodReadonly,...De(t)});const Sf=(e,t={},n)=>e?xr.create().superRefine((r,l)=>{var o,d;if(!e(r)){const g=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,a=(d=(o=g.fatal)!==null&&o!==void 0?o:n)!==null&&d!==void 0?d:!0,p=typeof g=="string"?{message:g}:g;l.addIssue({code:"custom",...p,fatal:a})}}):xr.create(),kw={object:at.lazycreate};var Le;(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"})(Le||(Le={}));const Ew=(e,t={message:`Input not instance of ${e.name}`})=>Sf(n=>n instanceof e,t),xf=Bt.create,Cf=Nn.create,Rw=Ms.create,Tw=Fn.create,Af=hi.create,Lw=nr.create,Mw=Es.create,Ow=di.create,Iw=fi.create,Nw=xr.create,Fw=Xn.create,Dw=gn.create,Pw=Rs.create,Ww=Ut.create,Bw=at.create,Hw=at.strictCreate,zw=pi.create,jw=ho.create,Uw=gi.create,Vw=nn.create,Gw=mi.create,Kw=Ts.create,Yw=rr.create,Zw=vr.create,Xw=vi.create,qw=yi.create,Qw=Dn.create,Jw=bi.create,e_=Cr.create,Ru=Gt.create,t_=hn.create,n_=ir.create,r_=Gt.createWithPreprocess,i_=Ii.create,s_=()=>xf().optional(),o_=()=>Cf().optional(),a_=()=>Af().optional(),l_={string:e=>Bt.create({...e,coerce:!0}),number:e=>Nn.create({...e,coerce:!0}),boolean:e=>hi.create({...e,coerce:!0}),bigint:e=>Fn.create({...e,coerce:!0}),date:e=>nr.create({...e,coerce:!0})},c_=Ie;var te=Object.freeze({__proto__:null,defaultErrorMap:ci,setErrorMap:fw,getErrorMap:Cs,makeIssue:As,EMPTY_PATH:pw,addIssueToContext:be,ParseStatus:_t,INVALID:Ie,DIRTY:wf,OK:At,isAborted:Ta,isDirty:La,isValid:ui,isAsync:ks,get util(){return Ve},get objectUtil(){return Ra},ZodParsedType:ve,getParsedType:En,ZodType:We,ZodString:Bt,ZodNumber:Nn,ZodBigInt:Fn,ZodBoolean:hi,ZodDate:nr,ZodSymbol:Es,ZodUndefined:di,ZodNull:fi,ZodAny:xr,ZodUnknown:Xn,ZodNever:gn,ZodVoid:Rs,ZodArray:Ut,ZodObject:at,ZodUnion:pi,ZodDiscriminatedUnion:ho,ZodIntersection:gi,ZodTuple:nn,ZodRecord:mi,ZodMap:Ts,ZodSet:rr,ZodFunction:vr,ZodLazy:vi,ZodLiteral:yi,ZodEnum:Dn,ZodNativeEnum:bi,ZodPromise:Cr,ZodEffects:Gt,ZodTransformer:Gt,ZodOptional:hn,ZodNullable:ir,ZodDefault:wi,ZodCatch:Ls,ZodNaN:Ms,BRAND:Aw,ZodBranded:$f,ZodPipeline:Ii,ZodReadonly:Os,custom:Sf,Schema:We,ZodSchema:We,late:kw,get ZodFirstPartyTypeKind(){return Le},coerce:l_,any:Nw,array:Ww,bigint:Tw,boolean:Af,date:Lw,discriminatedUnion:jw,effect:Ru,enum:Qw,function:Zw,instanceof:Ew,intersection:Uw,lazy:Xw,literal:qw,map:Kw,nan:Rw,nativeEnum:Jw,never:Dw,null:Iw,nullable:n_,number:Cf,object:Bw,oboolean:a_,onumber:o_,optional:t_,ostring:s_,pipeline:i_,preprocess:r_,promise:e_,record:Gw,set:Yw,strictObject:Hw,string:xf,symbol:Mw,transformer:Ru,tuple:Vw,undefined:Ow,union:zw,unknown:Fw,void:Pw,NEVER:c_,ZodIssueCode:ue,quotelessJson:dw,ZodError:jt});const fo=te.object({total:te.number(),currentPage:te.number(),pageSize:te.number()}),u_=te.object({key:te.string(),value:te.string().nullish()}),h_=te.object({name:te.string(),configured:te.boolean(),items:te.array(u_).nullish(),type:te.string()}),d_=te.object({results:te.array(h_)}),po=te.object({id:te.number(),name:te.string()}),f_=fo.extend({results:te.array(po)}),p_=te.object({resource:te.string(),value:te.string()}),Tu=te.object({name:te.string().nullish()}),g_=te.object({createdOn:te.string().nullish(),updatedOn:te.string().nullish(),expiresOn:te.string().nullish(),registrar:Tu.nullish(),contacts:te.array(Tu)}),m_=te.object({number:te.number()}),v_=te.object({country:te.string(),countryCode:te.string()}),y_=te.object({name:te.string()}),b_=te.object({name:te.string()}),w_=te.object({name:te.string()}),__=te.object({number:te.number()}),Dl=te.object({id:te.number(),data:te.string(),dataType:te.string(),source:te.string(),query:te.string().nullish(),metadata:te.any().nullish(),createdAt:te.string(),autonomousSystem:m_.nullish(),whoisRecord:g_.nullish(),geolocation:v_.nullish(),dnsRecords:te.array(p_).nullish(),reverseDnsNames:te.array(y_).nullish(),cpes:te.array(b_).nullish(),ports:te.array(__).nullish(),vulnerabilities:te.array(w_).nullish(),tags:te.array(po)}),kf=te.object({id:te.number(),ruleId:te.string(),createdAt:te.string(),tags:te.array(po),artifacts:te.array(Dl)}),$_=fo.extend({results:te.array(kf)});te.object({q:te.string(),page:te.number().nullish(),limit:te.number().nullish()});te.object({countryCode:te.string(),asn:te.string().nullish(),loc:te.string().nullish()});te.object({lat:te.number(),long:te.number()});te.object({name:te.string(),code:te.string(),lat:te.number(),long:te.number()});te.union([te.literal("ip"),te.literal("domain"),te.literal("url"),te.literal("hash"),te.literal("mail")]);te.object({name:te.string(),type:te.string(),baseURL:te.string(),favicon:te.function().returns(te.string()),href:te.function().args(te.string()).returns(te.string())});const ps=te.object({id:te.string(),title:te.string(),description:te.string(),yaml:te.string(),createdAt:te.string(),updatedAt:te.string(),tags:te.array(po)});te.object({yaml:te.string()});te.object({yaml:te.string()});te.object({analyzer:te.string(),query:te.string()});const S_=fo.extend({results:te.array(ps)}),x_=fo.extend({results:te.array(Dl)}),Ef=te.object({message:te.string()});Ef.extend({detail:te.any().nullish()});const Lu=Ef.extend({queued:te.boolean()});te.union([te.literal("Alerts"),te.literal("Rules"),te.literal("Artifacts")]);const ft=Je.create(),St={async getConfigs(){const e=await ft.get("/api/configs");return d_.parse(e.data)},async getAlerts(e){e.page=e.page||1;const t=await ft.get("/api/alerts",{params:e});return $_.parse(t.data)},async getAlert(e){const t=await ft.get(`/api/alerts/${e}`);return kf.parse(t.data)},async getTags(){const e=await ft.get("/api/tags");return f_.parse(e.data)},async deleteAlert(e){await ft.delete(`/api/alerts/${e}`)},async getArtifact(e){const t=await ft.get(`/api/artifacts/${e}`);return Dl.parse(t.data)},async getArtifacts(e){e.page=e.page||1;const t=await ft.get("/api/artifacts",{params:e});return x_.parse(t.data)},async enrichArtifact(e){const t=await ft.post(`/api/artifacts/${e}/enrich`);return Lu.parse(t.data)},async deleteArtifact(e){await ft.delete(`/api/artifacts/${e}`)},async getRules(e){e.page=e.page||1;const t=await ft.get("/api/rules",{params:e});return S_.parse(t.data)},async getRule(e){const t=await ft.get(`/api/rules/${e}`);return ps.parse(t.data)},async searchRule(e){const t=await ft.post(`/api/rules/${e}/search`);return Lu.parse(t.data)},async createRule(e){const t=await ft.post("/api/rules/",e);return ps.parse(t.data)},async updateRule(e){const t=await ft.put("/api/rules/",e);return ps.parse(t.data)},async deleteRule(e){await ft.delete(`/api/rules/${e}`)},async deleteTag(e){await ft.delete(`/api/tags/${e}`)},async getIpInfo(e){return(await ft.get(`/api/ip_addresses/${e}`)).data}};function go(){return $t(async(e,t)=>await St.getAlerts(t))}function C_(){return $t(async(e,t)=>await St.deleteAlert(t))}function A_(){return $t(async(e,t)=>await St.deleteTag(t))}function k_(){return $t(async(e,t)=>await St.getArtifact(t))}function Rf(){return $t(async(e,t)=>await St.deleteArtifact(t))}function E_(){return $t(async(e,t)=>await St.enrichArtifact(t))}function R_(){return $t(async()=>await St.getConfigs())}function T_(){return $t(async(e,t)=>await St.getIpInfo(t))}function Tf(){return $t(async(e,t)=>await St.getRules(t))}function Lf(){return $t(async(e,t)=>await St.getRule(t))}function L_(){return $t(async(e,t)=>await St.deleteRule(t))}function M_(){return $t(async(e,t)=>await St.searchRule(t))}function O_(){return $t(async(e,t)=>await St.createRule(t))}function I_(){return $t(async(e,t)=>await St.updateRule(t))}function Pl(){return $t(async(e,t)=>await St.getArtifacts(t))}function N_(){return $t(async(e,t)=>await St.getAlert(t))}const F_={class:"buttons is-pulled-right"},D_=["href"],P_=F("span",null,"JSON",-1),W_={class:"icon is-small"},B_=F("span",null,"Delete",-1),H_={class:"icon is-small"},Mf=xe({__name:"ActionButtons",props:{alert:{type:Object,required:!0}},emits:["delete","set-error"],setup(e,{emit:t}){const n=e,r=t,l=ke(()=>`/api/alerts/${n.alert.id}`),o=C_(),d=async()=>{if(window.confirm(`Are you sure you want to delete ${n.alert.id}?`))try{await o.perform(n.alert.id),r("delete")}catch(a){Je.isAxiosError(a)&&r("set-error",a)}};return(g,a)=>{const p=Ze("font-awesome-icon");return G(),re("span",F_,[F("a",{class:"button is-link is-light is-small",href:l.value,target:"_blank"},[P_,F("span",W_,[se(p,{icon:"barcode"})])],8,D_),F("button",{class:"button is-light is-small",onClick:d},[B_,F("span",H_,[se(p,{icon:"times"})])])])}}});var _i=z_;function z_(e,t,n){return t==null||t>=e.length?e:(n==null&&(n="..."),e.slice(0,Math.max(0,t-n.length))+n)}const j_={key:0,class:"control"},U_=xe({__name:"ArtifactTag",props:{artifact:{type:Object,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=e,r=t,l=je(!1),o=je(!1),d=Rf(),g=async()=>{window.confirm(`Are you sure you want to delete ${n.artifact.data}?`)&&(await d.perform(n.artifact.id),l.value=!0,r("delete"))},a=()=>{o.value=!0},p=()=>{o.value=!1};return(s,i)=>{const u=Ze("router-link");return l.value?ge("",!0):(G(),re("div",j_,[F("div",{class:"tags has-addons are-medium",onMouseover:a,onMouseleave:p},[se(u,{class:"tag is-link is-light",to:{name:"Artifact",params:{id:e.artifact.id}}},{default:rt(()=>[it(we(ae(_i)(e.artifact.data,32)),1)]),_:1},8,["to"]),o.value?(G(),re("span",{key:0,class:"tag is-delete",onClick:g})):ge("",!0)],32)]))}}}),V_={class:"field is-grouped is-grouped-multiline"},Of=xe({__name:"ArtifactTags",props:{artifacts:{type:Array,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=e,r=t,l=je(0),o=()=>{l.value+=1};return Qe(l,()=>{l.value>=n.artifacts.length&&r("delete")}),(d,g)=>(G(),re("div",V_,[(G(!0),re(Pe,null,Ot(e.artifacts,a=>(G(),Se(U_,{key:a.id,artifact:a,onDelete:o},null,8,["artifact"]))),128))]))}});var Is={d:(e,t)=>{for(var n in t)Is.o(t,n)&&!Is.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},If={};function Oa(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Nf(e,t){if(e){if(typeof e=="string")return Oa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Oa(e,t):void 0}}function Ns(e){return function(t){if(Array.isArray(t))return Oa(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||Nf(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
797
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Fs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Is.d(If,{Z:()=>X_});const Re=(Mu={computed:()=>ke,createTextVNode:()=>it,createVNode:()=>se,defineComponent:()=>xe,reactive:()=>Rr,ref:()=>je,watch:()=>Qe,watchEffect:()=>gl},Uo={},Is.d(Uo,Mu),Uo),G_=(0,Re.defineComponent)({props:{data:{required:!0,type:String},onClick:Function},render:function(){var e=this.data,t=this.onClick;return(0,Re.createVNode)("span",{class:"vjs-tree-brackets",onClick:t},[e])}}),K_=(0,Re.defineComponent)({emits:["change","update:modelValue"],props:{checked:{type:Boolean,default:!1},isMultiple:Boolean,onChange:Function},setup:function(e,t){var n=t.emit;return{uiType:(0,Re.computed)(function(){return e.isMultiple?"checkbox":"radio"}),model:(0,Re.computed)({get:function(){return e.checked},set:function(r){return n("update:modelValue",r)}})}},render:function(){var e=this.uiType,t=this.model,n=this.$emit;return(0,Re.createVNode)("label",{class:["vjs-check-controller",t?"is-checked":""],onClick:function(r){return r.stopPropagation()}},[(0,Re.createVNode)("span",{class:"vjs-check-controller-inner is-".concat(e)},null),(0,Re.createVNode)("input",{checked:t,class:"vjs-check-controller-original is-".concat(e),type:e,onChange:function(){return n("change",t)}},null)])}}),Y_=(0,Re.defineComponent)({props:{nodeType:{required:!0,type:String},onClick:Function},render:function(){var e=this.nodeType,t=this.onClick,n=e==="objectStart"||e==="arrayStart";return n||e==="objectCollapsed"||e==="arrayCollapsed"?(0,Re.createVNode)("span",{class:"vjs-carets vjs-carets-".concat(n?"open":"close"),onClick:t},[(0,Re.createVNode)("svg",{viewBox:"0 0 1024 1024",focusable:"false","data-icon":"caret-down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[(0,Re.createVNode)("path",{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"},null)])]):null}});var Mu,Uo;function Ia(e){return Ia=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ia(e)}function Ff(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function jn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"root",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0,l=r||{},o=l.key,d=l.index,g=l.type,a=g===void 0?"content":g,p=l.showComma,s=p!==void 0&&p,i=l.length,u=i===void 0?1:i,h=Ff(e);if(h==="array"){var c=Ou(e.map(function(v,y,x){return jn(v,"".concat(t,"[").concat(y,"]"),n+1,{index:y,showComma:y!==x.length-1,length:u,type:a})}));return[jn("[",t,n,{showComma:!1,key:o,length:e.length,type:"arrayStart"})[0]].concat(c,jn("]",t,n,{showComma:s,length:e.length,type:"arrayEnd"})[0])}if(h==="object"){var f=Object.keys(e),m=Ou(f.map(function(v,y,x){return jn(e[v],/^[a-zA-Z_]\w*$/.test(v)?"".concat(t,".").concat(v):"".concat(t,'["').concat(v,'"]'),n+1,{key:v,showComma:y!==x.length-1,length:u,type:a})}));return[jn("{",t,n,{showComma:!1,key:o,index:d,length:f.length,type:"objectStart"})[0]].concat(m,jn("}",t,n,{showComma:s,length:f.length,type:"objectEnd"})[0])}return[{content:e,level:n,key:o,index:d,path:t,showComma:s,length:u,type:a}]}function Ou(e){if(typeof Array.prototype.flat=="function")return e.flat();for(var t=Ns(e),n=[];t.length;){var r=t.shift();Array.isArray(r)?t.unshift.apply(t,Ns(r)):n.push(r)}return n}function Na(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new WeakMap;if(e==null)return e;if(e instanceof Date)return new Date(e);if(e instanceof RegExp)return new RegExp(e);if(Ia(e)!=="object")return e;if(t.get(e))return t.get(e);if(Array.isArray(e)){var n=e.map(function(o){return Na(o,t)});return t.set(e,n),n}var r={};for(var l in e)r[l]=Na(e[l],t);return t.set(e,r),r}function Iu(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 Nu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Iu(Object(n),!0).forEach(function(r){Fs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Iu(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Df={showLength:{type:Boolean,default:!1},showDoubleQuotes:{type:Boolean,default:!0},renderNodeKey:Function,renderNodeValue:Function,selectableType:String,showSelectController:{type:Boolean,default:!1},showLine:{type:Boolean,default:!0},showLineNumber:{type:Boolean,default:!1},selectOnClickNode:{type:Boolean,default:!0},nodeSelectable:{type:Function,default:function(){return!0}},highlightSelectedNode:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!1},theme:{type:String,default:"light"},showKeyValueSpace:{type:Boolean,default:!0},editable:{type:Boolean,default:!1},editableTrigger:{type:String,default:"click"},onNodeClick:{type:Function},onBracketsClick:{type:Function},onIconClick:{type:Function},onValueChange:{type:Function}};const Z_=(0,Re.defineComponent)({name:"TreeNode",props:Nu(Nu({},Df),{},{node:{type:Object,required:!0},collapsed:Boolean,checked:Boolean,style:Object,onSelectedChange:{type:Function}}),emits:["nodeClick","bracketsClick","iconClick","selectedChange","valueChange"],setup:function(e,t){var n=t.emit,r=(0,Re.computed)(function(){return Ff(e.node.content)}),l=(0,Re.computed)(function(){return"vjs-value vjs-value-".concat(r.value)}),o=(0,Re.computed)(function(){return e.showDoubleQuotes?'"'.concat(e.node.key,'"'):e.node.key}),d=(0,Re.computed)(function(){return e.selectableType==="multiple"}),g=(0,Re.computed)(function(){return e.selectableType==="single"}),a=(0,Re.computed)(function(){return e.nodeSelectable(e.node)&&(d.value||g.value)}),p=(0,Re.reactive)({editing:!1}),s=function(y){var x,$,_=($=(x=y.target)===null||x===void 0?void 0:x.value)==="null"?null:$==="undefined"?void 0:$==="true"||$!=="false"&&($[0]+$[$.length-1]==='""'||$[0]+$[$.length-1]==="''"?$.slice(1,-1):typeof Number($)=="number"&&!isNaN(Number($))||$==="NaN"?Number($):$);n("valueChange",_,e.node.path)},i=(0,Re.computed)(function(){var y,x=(y=e.node)===null||y===void 0?void 0:y.content;return x===null?x="null":x===void 0&&(x="undefined"),r.value==="string"?'"'.concat(x,'"'):x+""}),u=function(){var y=e.renderNodeValue;return y?y({node:e.node,defaultValue:i.value}):i.value},h=function(){n("bracketsClick",!e.collapsed,e.node)},c=function(){n("iconClick",!e.collapsed,e.node)},f=function(){n("selectedChange",e.node)},m=function(){n("nodeClick",e.node),a.value&&e.selectOnClickNode&&n("selectedChange",e.node)},v=function(y){if(e.editable&&!p.editing){p.editing=!0;var x=function $(_){var b;_.target!==y.target&&((b=_.target)===null||b===void 0?void 0:b.parentElement)!==y.target&&(p.editing=!1,document.removeEventListener("click",$))};document.removeEventListener("click",x),document.addEventListener("click",x)}};return function(){var y,x=e.node;return(0,Re.createVNode)("div",{class:{"vjs-tree-node":!0,"has-selector":e.showSelectController,"has-carets":e.showIcon,"is-highlight":e.highlightSelectedNode&&e.checked,dark:e.theme==="dark"},onClick:m,style:e.style},[e.showLineNumber&&(0,Re.createVNode)("span",{class:"vjs-node-index"},[x.id+1]),e.showSelectController&&a.value&&x.type!=="objectEnd"&&x.type!=="arrayEnd"&&(0,Re.createVNode)(K_,{isMultiple:d.value,checked:e.checked,onChange:f},null),(0,Re.createVNode)("div",{class:"vjs-indent"},[Array.from(Array(x.level)).map(function($,_){return(0,Re.createVNode)("div",{key:_,class:{"vjs-indent-unit":!0,"has-line":e.showLine}},null)}),e.showIcon&&(0,Re.createVNode)(Y_,{nodeType:x.type,onClick:c},null)]),x.key&&(0,Re.createVNode)("span",{class:"vjs-key"},[(y=e.renderNodeKey,y?y({node:e.node,defaultKey:o.value||""}):o.value),(0,Re.createVNode)("span",{class:"vjs-colon"},[":".concat(e.showKeyValueSpace?" ":"")])]),(0,Re.createVNode)("span",null,[x.type!=="content"&&x.content?(0,Re.createVNode)(G_,{data:x.content.toString(),onClick:h},null):(0,Re.createVNode)("span",{class:l.value,onClick:!e.editable||e.editableTrigger&&e.editableTrigger!=="click"?void 0:v,onDblclick:e.editable&&e.editableTrigger==="dblclick"?v:void 0},[e.editable&&p.editing?(0,Re.createVNode)("input",{value:i.value,onChange:s,style:{padding:"3px 8px",border:"1px solid #eee",boxShadow:"none",boxSizing:"border-box",borderRadius:5,fontFamily:"inherit"}},null):u()]),x.showComma&&(0,Re.createVNode)("span",null,[","]),e.showLength&&e.collapsed&&(0,Re.createVNode)("span",{class:"vjs-comment"},[(0,Re.createTextVNode)(" // "),x.length,(0,Re.createTextVNode)(" items ")])])])}}});function Fu(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 Lt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Fu(Object(n),!0).forEach(function(r){Fs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fu(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const X_=(0,Re.defineComponent)({name:"Tree",props:Lt(Lt({},Df),{},{data:{type:[String,Number,Boolean,Array,Object],default:null},collapsedNodeLength:{type:Number,default:1/0},deep:{type:Number,default:1/0},pathCollapsible:{type:Function,default:function(){return!1}},rootPath:{type:String,default:"root"},virtual:{type:Boolean,default:!1},height:{type:Number,default:400},itemHeight:{type:Number,default:20},selectedValue:{type:[String,Array],default:function(){return""}},collapsedOnClickBrackets:{type:Boolean,default:!0},style:Object,onSelectedChange:{type:Function},theme:{type:String,default:"light"}}),slots:["renderNodeKey","renderNodeValue"],emits:["nodeClick","bracketsClick","iconClick","selectedChange","update:selectedValue","update:data"],setup:function(e,t){var n=t.emit,r=t.slots,l=(0,Re.ref)(),o=(0,Re.computed)(function(){return jn(e.data,e.rootPath)}),d=function(x,$){return o.value.reduce(function(_,b){var A,L=b.level>=x||b.length>=$,k=(A=e.pathCollapsible)===null||A===void 0?void 0:A.call(e,b);return b.type!=="objectStart"&&b.type!=="arrayStart"||!L&&!k?_:Lt(Lt({},_),{},Fs({},b.path,1))},{})},g=(0,Re.reactive)({translateY:0,visibleData:null,hiddenPaths:d(e.deep,e.collapsedNodeLength)}),a=(0,Re.computed)(function(){for(var x=null,$=[],_=o.value.length,b=0;b<_;b++){var A=Lt(Lt({},o.value[b]),{},{id:b}),L=g.hiddenPaths[A.path];if(x&&x.path===A.path){var k=x.type==="objectStart",M=Lt(Lt(Lt({},A),x),{},{showComma:A.showComma,content:k?"{...}":"[...]",type:k?"objectCollapsed":"arrayCollapsed"});x=null,$.push(M)}else{if(L&&!x){x=A;continue}if(x)continue;$.push(A)}}return $}),p=(0,Re.computed)(function(){var x=e.selectedValue;return x&&e.selectableType==="multiple"&&Array.isArray(x)?x:[x]}),s=(0,Re.computed)(function(){return!e.selectableType||e.selectOnClickNode||e.showSelectController?"":"When selectableType is not null, selectOnClickNode and showSelectController cannot be false at the same time, because this will cause the selection to fail."}),i=function(){var x=a.value;if(e.virtual){var $,_=e.height/e.itemHeight,b=(($=l.value)===null||$===void 0?void 0:$.scrollTop)||0,A=Math.floor(b/e.itemHeight),L=A<0?0:A+_>x.length?x.length-_:A;L<0&&(L=0);var k=L+_;g.translateY=L*e.itemHeight,g.visibleData=x.filter(function(M,C){return C>=L&&C<k})}else g.visibleData=x},u=function(){i()},h=function(x){var $,_,b=x.path,A=e.selectableType;if(A==="multiple"){var L=p.value.findIndex(function(R){return R===b}),k=Ns(p.value);L!==-1?k.splice(L,1):k.push(b),n("update:selectedValue",k),n("selectedChange",k,Ns(p.value))}else if(A==="single"&&p.value[0]!==b){var M=($=p.value,_=1,function(R){if(Array.isArray(R))return R}($)||function(R,S){var w=R==null?null:typeof Symbol<"u"&&R[Symbol.iterator]||R["@@iterator"];if(w!=null){var E,T,O=[],I=!0,N=!1;try{for(w=w.call(R);!(I=(E=w.next()).done)&&(O.push(E.value),!S||O.length!==S);I=!0);}catch(P){N=!0,T=P}finally{try{I||w.return==null||w.return()}finally{if(N)throw T}}return O}}($,_)||Nf($,_)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
798
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}())[0],C=b;n("update:selectedValue",C),n("selectedChange",C,M)}},c=function(x){n("nodeClick",x)},f=function(x,$){if(x)g.hiddenPaths=Lt(Lt({},g.hiddenPaths),{},Fs({},$,1));else{var _=Lt({},g.hiddenPaths);delete _[$],g.hiddenPaths=_}},m=function(x,$){e.collapsedOnClickBrackets&&f(x,$.path),n("bracketsClick",x,$)},v=function(x,$){f(x,$.path),n("iconClick",x,$)},y=function(x,$){var _=Na(e.data),b=e.rootPath;new Function("data","val","data".concat($.slice(b.length),"=val"))(_,x),n("update:data",_)};return(0,Re.watchEffect)(function(){s.value&&function(x){throw new Error("[VueJSONPretty] ".concat(x))}(s.value)}),(0,Re.watchEffect)(function(){a.value&&i()}),(0,Re.watch)(function(){return e.deep},function(x){x&&(g.hiddenPaths=d(x,e.collapsedNodeLength))}),(0,Re.watch)(function(){return e.collapsedNodeLength},function(x){x&&(g.hiddenPaths=d(e.deep,x))}),function(){var x,$,_=(x=e.renderNodeKey)!==null&&x!==void 0?x:r.renderNodeKey,b=($=e.renderNodeValue)!==null&&$!==void 0?$:r.renderNodeValue,A=g.visibleData&&g.visibleData.map(function(L){return(0,Re.createVNode)(Z_,{key:L.id,node:L,collapsed:!!g.hiddenPaths[L.path],theme:e.theme,showDoubleQuotes:e.showDoubleQuotes,showLength:e.showLength,checked:p.value.includes(L.path),selectableType:e.selectableType,showLine:e.showLine,showLineNumber:e.showLineNumber,showSelectController:e.showSelectController,selectOnClickNode:e.selectOnClickNode,nodeSelectable:e.nodeSelectable,highlightSelectedNode:e.highlightSelectedNode,editable:e.editable,editableTrigger:e.editableTrigger,showIcon:e.showIcon,showKeyValueSpace:e.showKeyValueSpace,renderNodeKey:_,renderNodeValue:b,onNodeClick:c,onBracketsClick:m,onIconClick:v,onSelectedChange:h,onValueChange:y,style:e.itemHeight&&e.itemHeight!==20?{lineHeight:"".concat(e.itemHeight,"px")}:{}},null)});return(0,Re.createVNode)("div",{ref:l,class:{"vjs-tree":!0,"is-virtual":e.virtual,dark:e.theme==="dark"},onScroll:e.virtual?u:void 0,style:e.showLineNumber?Lt({paddingLeft:"".concat(12*Number(o.value.length.toString().length),"px")},e.style):e.style},[e.virtual?(0,Re.createVNode)("div",{class:"vjs-tree-list",style:{height:"".concat(e.height,"px")}},[(0,Re.createVNode)("div",{class:"vjs-tree-list-holder",style:{height:"".concat(a.value.length*e.itemHeight,"px")}},[(0,Re.createVNode)("div",{class:"vjs-tree-list-holder-inner",style:{transform:"translateY(".concat(g.translateY,"px)")}},[A])])]):A])}}});var Pf=If.Z;const q_={class:"notification is-danger is-light"},Q_={key:1},J_={key:2},e$={key:0,class:"message"},t$={class:"message-body"},yt=xe({__name:"ErrorMessage",props:{error:{type:hw,required:!0},disposable:{type:Boolean,default:!1}},emits:["dispose"],setup(e,{emit:t}){const n=e,r=t,l=ke(()=>{var d;if(n.error.response)return(d=n.error.response)==null?void 0:d.data}),o=()=>{r("dispose")};return(d,g)=>{var a;return G(),re(Pe,null,[F("div",q_,[e.disposable?(G(),re("button",{key:0,class:"delete",onClick:o})):ge("",!0),l.value?(G(),re("p",Q_,we(l.value.message),1)):(G(),re("p",J_,we(e.error),1))]),(a=l.value)!=null&&a.detail?(G(),re("article",e$,[F("div",t$,[se(ae(Pf),{data:l.value.detail},null,8,["data"])])])):ge("",!0)],64)}}}),n$={key:0,class:"control"},r$=xe({__name:"TagItem",props:{tag:{type:Object,required:!0},deletable:{type:Boolean,default:!1},navigateTo:{type:String,required:!0}},setup(e){const t=e,n=je(!1),r=je(!1),l=A_(),o=async()=>{window.confirm(`Are you sure you want to delete ${t.tag.name} (ID: ${t.tag.id})?`)&&(await l.perform(t.tag.id),n.value=!0)},d=()=>{r.value=!0},g=()=>{r.value=!1},a=p=>`tag:"${p}"`;return(p,s)=>{const i=Ze("router-link");return n.value?ge("",!0):(G(),re("div",n$,[F("div",{class:"tags has-addons are-medium",onMouseover:d,onMouseleave:g},[se(i,{class:"tag is-info is-light",to:{name:e.navigateTo,query:{q:a(e.tag.name)}}},{default:rt(()=>[it(we(e.tag.name),1)]),_:1},8,["to"]),r.value&&e.deletable?(G(),re("a",{key:0,class:"tag is-delete",onClick:o})):ge("",!0)],32)]))}}}),i$={class:"field is-grouped is-grouped-multiline"},Ni=xe({__name:"TagsItem",props:{tags:{type:Array,required:!0},deletable:{type:Boolean,default:!1},navigateTo:{type:String,required:!0}},setup(e){return(t,n)=>(G(),re("div",i$,[(G(!0),re(Pe,null,Ot(e.tags,r=>(G(),Se(r$,{tag:r,key:r.name,deletable:e.deletable,"navigate-to":e.navigateTo},null,8,["tag","deletable","navigate-to"]))),128))]))}}),s$={key:0,class:"box"},o$={class:"table is-fullwidth is-completely-borderless"},a$=F("th",null,"Rule",-1),l$=F("th",null,"Artifacts",-1),c$={key:0},u$=F("th",null,"Tags",-1),h$={class:"help"},d$=xe({__name:"AlertItem",props:{alert:{type:Object,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=t,r=je(!1),l=je(),o=p=>{l.value=p},d=()=>{l.value=void 0},g=()=>{n("delete")},a=()=>{r.value=!0};return(p,s)=>{const i=Ze("router-link");return r.value?ge("",!0):(G(),re("div",s$,[l.value?(G(),Se(yt,{key:0,class:"block",error:l.value,disposable:!0,onDispose:d},null,8,["error"])):ge("",!0),F("p",null,[se(Mf,{alert:e.alert,onDelete:g,onSetError:o},null,8,["alert"])]),se(i,{class:"is-size-4",to:{name:"Alert",params:{id:e.alert.id}}},{default:rt(()=>[it(we(e.alert.id),1)]),_:1},8,["to"]),F("table",o$,[F("tr",null,[a$,F("td",null,[se(i,{to:{name:"Rule",params:{id:e.alert.ruleId}}},{default:rt(()=>[it(we(e.alert.ruleId),1)]),_:1},8,["to"])])]),F("tr",null,[l$,F("td",null,[se(Of,{artifacts:e.alert.artifacts,onDelete:a},null,8,["artifacts"])])]),e.alert.tags.length>0?(G(),re("tr",c$,[u$,F("td",null,[se(Ni,{tags:e.alert.tags,"navigate-to":"Alerts"},null,8,["tags"])])])):ge("",!0)]),F("p",h$,"Created at: "+we(e.alert.createdAt),1)]))}}}),f$={key:0,class:"message is-warning"},p$=F("div",{class:"message-body"},"There is no result to show.",-1),g$=[p$],m$={key:1,class:"pagination",role:"navigation","aria-label":"pagination"},v$={key:0,class:"pagination-list"},y$={key:1,class:"pagination-list"},b$={key:0},w$={key:1},_$=F("span",{class:"pagination-ellipsis"},"…",-1),$$=[_$],S$={key:2},x$={key:3},C$={key:4},A$=F("span",{class:"pagination-ellipsis"},"…",-1),k$=[A$],E$={key:5},Wl=xe({__name:"PaginationItem",props:{currentPage:{type:Number,required:!0},pageSize:{type:Number,required:!0},total:{type:Number,required:!0}},emits:["update-page"],setup(e,{emit:t}){const n=e,r=t,l=u=>u===n.currentPage+1||u===n.currentPage-1,o=ke(()=>Math.ceil(n.total/n.pageSize)),d=ke(()=>o.value===1),g=ke(()=>n.currentPage>1),a=ke(()=>n.currentPage-1===1),p=ke(()=>n.currentPage<o.value),s=ke(()=>n.currentPage+1===o.value),i=u=>{r("update-page",u)};return(u,h)=>e.total===0?(G(),re("article",f$,g$)):(G(),re("nav",m$,[d.value?(G(),re("ul",v$,[F("li",null,[F("a",{class:"pagination-link mt-2 is-current",onClick:h[0]||(h[0]=c=>i(1))},"1")])])):(G(),re("ul",y$,[g.value&&!a.value?(G(),re("li",b$,[F("a",{class:"pagination-link mt-2",onClick:h[1]||(h[1]=c=>i(1))}," 1")])):ge("",!0),g.value&&!a.value&&!l(2)?(G(),re("li",w$,$$)):ge("",!0),g.value?(G(),re("li",S$,[F("a",{class:"pagination-link mt-2",onClick:h[2]||(h[2]=c=>i(e.currentPage-1))},we(e.currentPage-1),1)])):ge("",!0),F("li",null,[F("a",{class:"pagination-link mt-2 is-current",onClick:h[3]||(h[3]=c=>i(e.currentPage))},we(e.currentPage),1)]),p.value?(G(),re("li",x$,[F("a",{class:"pagination-link mt-2",onClick:h[4]||(h[4]=c=>i(e.currentPage+1))},we(e.currentPage+1),1)])):ge("",!0),p.value&&!s.value&&!l(o.value-1)?(G(),re("li",C$,k$)):ge("",!0),p.value&&!s.value?(G(),re("li",E$,[F("a",{class:"pagination-link mt-2",onClick:h[5]||(h[5]=c=>i(o.value))},we(o.value),1)])):ge("",!0)]))]))}}),R$={key:0},T$={class:"help"},L$={key:1},M$=F("div",{class:"notification is-warning is-light"},"There is no alert to show",-1),O$=[M$],Wf=xe({__name:"AlertsItem",props:{page:{type:String,required:!0},alerts:{type:Object,required:!0}},emits:["refresh","update-page"],setup(e,{emit:t}){const n=e,r=t,l=g=>{r("update-page",g)},o=()=>{r("refresh")},d=ke(()=>n.alerts.results.length>0);return(g,a)=>d.value?(G(),re("div",R$,[(G(!0),re(Pe,null,Ot(e.alerts.results,p=>(G(),Se(d$,{alert:p,key:p.id,onDelete:o},null,8,["alert"]))),128)),se(Wl,{total:e.alerts.total,currentPage:e.alerts.currentPage,pageSize:e.alerts.pageSize,onUpdatePage:l},null,8,["total","currentPage","pageSize"]),F("p",T$,"("+we(e.alerts.total)+" results in total, "+we(e.alerts.results.length)+" shown)",1)])):(G(),re("div",L$,O$))}}),I$=xe({name:"LoadingItem"}),N$={class:"has-text-centered"},F$={class:"fa-3x"};function D$(e,t,n,r,l,o){const d=Ze("font-awesome-icon");return G(),re("div",N$,[F("div",F$,[se(d,{icon:"spinner",spin:""})])])}const bn=Ti(I$,[["render",D$]]),P$={class:"block"},W$={class:"field has-addons"},B$={class:"control is-expanded"},H$={class:"control"},z$={class:"icon is-small"},j$=F("span",null,"Search",-1),U$={class:"control"},V$={class:"icon is-small"},G$=F("span",null,"Help",-1),K$={key:0,class:"content"},Y$=_l('<h4 class="is-size-4">Help</h4><ul><li> Search query supports <code>AND</code>, <code>OR</code>, <code>:</code>, <code>=</code>, <code>!=</code>, <code><</code>, <code><=</code>, <code>></code>, <code>>=</code>, <code>NOT</code> and <code>()</code>. </li><li> Searchable fields are <code>id</code>, <code>tag</code>, <code>created_at</code>, <code>rule.id</code>, <code>rule.title</code>, <code>rule.description</code>, <code>artifact.data</code>, <code>artifact.data_type</code>, <code>artifact.source</code> and <code>artifact.query</code>. </li></ul><h4 class="is-size-4">Examples</h4>',3),Z$={key:0,class:"block"},X$=xe({__name:"AlertsWrapper",setup(e){const t=$r("page","1"),n=$r("q",""),r=je(!1),l=go(),o=async()=>{const s={q:n.value,page:parseInt(t.value)};return await l.perform(s)},d=s=>{t.value=s.toString()},g=async()=>{t.value="1",await o()},a=g,p=Ri(r);return ct(async()=>{await o()}),Qe(t,async()=>{await o()}),Qe(n,async()=>{window.scrollTo({top:0,behavior:"smooth"})}),(s,i)=>{var c,f;const u=Ze("font-awesome-icon"),h=Ze("router-link");return G(),re(Pe,null,[F("div",P$,[F("div",W$,[F("p",B$,[vl(F("input",{class:"input",type:"text","onUpdate:modelValue":i[0]||(i[0]=m=>ut(n)?n.value=m:null)},null,512),[[xl,ae(n)]])]),F("p",H$,[F("a",{class:"button is-primary",onClick:g},[F("span",z$,[se(u,{icon:"search"})]),j$])]),F("p",U$,[F("a",{class:"button is-info",onClick:i[1]||(i[1]=m=>ae(p)())},[F("span",V$,[se(u,{icon:"question"})]),G$])])]),r.value?(G(),re("div",K$,[Y$,F("ul",null,[F("li",null,[se(h,{to:{name:"Alerts",query:{q:"rule.id:foo AND artifact.data:example.com"}}},{default:rt(()=>[it("rule.id:foo AND artifact.data:example.com")]),_:1},8,["to"])]),F("li",null,[se(h,{to:{name:"Alerts",query:{q:"tag:foo AND created_at >= 2020-01-01"}}},{default:rt(()=>[it("tag:foo AND created_at >= 2020-01-01")]),_:1})])])])):ge("",!0)]),ae(l).performCount>0?(G(),re("div",Z$,[ae(l).isRunning?(G(),Se(bn,{key:0})):ge("",!0),ae(l).isError?(G(),Se(yt,{key:1,error:(c=ae(l).last)==null?void 0:c.error},null,8,["error"])):ge("",!0),(f=ae(l).last)!=null&&f.value?(G(),Se(Wf,{key:2,alerts:ae(l).last.value,page:ae(t),onUpdatePage:d,onRefresh:ae(a)},null,8,["alerts","page","onRefresh"])):ge("",!0)])):ge("",!0)],64)}}}),q$={class:"columns"},Q$={class:"column is-one-third"},J$={class:"card"},eS={class:"card-content"},tS={class:"level is-mobile"},nS={class:"level-item"},rS=F("h3",{class:"subtitle is-spaced"},"Rules",-1),iS={class:"title"},sS={class:"level-item"},oS={class:"icon"},aS={class:"column is-one-third"},lS={class:"card"},cS={class:"card-content"},uS={class:"level is-mobile"},hS={class:"level-item"},dS=F("h3",{class:"subtitle is-spaced"},"Alerts",-1),fS={class:"title"},pS={class:"level-item"},gS={class:"icon"},mS={class:"column is-one-third"},vS={class:"card"},yS={class:"card-content"},bS={class:"level is-mobile"},wS={class:"level-item"},_S=F("h3",{class:"subtitle is-spaced"},"Artifacts",-1),$S={class:"title"},SS={class:"level-item"},xS={class:"icon"},CS=xe({__name:"OverviewCards",setup(e){const t=go(),n=Tf(),r=Pl();return ct(()=>{t.perform({q:"",page:1,limit:0}),n.perform({q:"",page:1,limit:0}),r.perform({q:"",page:1,limit:0})}),(l,o)=>{var g,a,p,s,i,u;const d=Ze("font-awesome-icon");return G(),re("div",q$,[F("div",Q$,[F("div",J$,[F("div",eS,[F("div",tS,[F("div",nS,[F("div",null,[rS,F("h1",iS,we(((a=(g=ae(n).last)==null?void 0:g.value)==null?void 0:a.total)??"N/A"),1)])]),F("div",sS,[F("span",oS,[se(d,{icon:"file",size:"2x"})])])])])])]),F("div",aS,[F("div",lS,[F("div",cS,[F("div",uS,[F("div",hS,[F("div",null,[dS,F("h1",fS,we(((s=(p=ae(t).last)==null?void 0:p.value)==null?void 0:s.total)??"N/A"),1)])]),F("div",pS,[F("span",gS,[se(d,{icon:"bell",size:"2x"})])])])])])]),F("div",mS,[F("div",vS,[F("div",yS,[F("div",bS,[F("div",wS,[F("div",null,[_S,F("h1",$S,we(((u=(i=ae(r).last)==null?void 0:i.value)==null?void 0:u.total)??"N/A"),1)])]),F("div",SS,[F("span",xS,[se(d,{icon:"ticket",size:"2x"})])])])])])])])}}}),AS=F("hr",null,null,-1),kS=xe({__name:"AlertsView",setup(e){return yn("Alerts - Mihari"),(t,n)=>(G(),re(Pe,null,[se(CS),AS,se(X$)],64))}}),Bf=xe({__name:"AlertsWithPagination",props:{ruleId:{type:String,required:!0},excludeAlertId:{type:Number,required:!1}},setup(e){const t=e,n=je(1),r=ke(()=>t.excludeAlertId?`rule.id:"${t.ruleId}" AND NOT id:${t.excludeAlertId}`:`rule.id:"${t.ruleId}"`),l=go(),o=async()=>{const g={q:r.value,page:n.value};return await l.perform(g)},d=g=>{n.value=g};return ct(async()=>{await o()}),Qe([t,n],async()=>{await o()}),(g,a)=>{var p,s;return G(),re(Pe,null,[ae(l).isRunning?(G(),Se(bn,{key:0})):ge("",!0),ae(l).isError?(G(),Se(yt,{key:1,error:(p=ae(l).last)==null?void 0:p.error},null,8,["error"])):ge("",!0),(s=ae(l).last)!=null&&s.value?(G(),Se(Wf,{key:2,page:n.value.toString(),alerts:ae(l).last.value,onUpdatePage:d},null,8,["page","alerts"])):ge("",!0)],64)}}}),ES={class:"block"},RS={class:"is-size-2"},TS={class:"is-clearfix"},LS={class:"table is-fullwidth is-completely-borderless"},MS=F("th",null,"Rule",-1),OS=F("th",null,"Artifacts",-1),IS={key:0},NS=F("th",null,"Tags",-1),FS={class:"help"},DS=F("hr",null,null,-1),PS={class:"block"},WS=F("h2",{class:"is-size-2 block"},"Related Alerts",-1),BS=xe({__name:"AlertDetail",props:{alert:{type:Object,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=t,r=je(),l=a=>{r.value=a},o=()=>{r.value=void 0},d=()=>{n("delete")},g=d;return(a,p)=>{const s=Ze("router-link");return G(),re(Pe,null,[r.value?(G(),Se(yt,{key:0,class:"block",error:r.value,disposable:!0,onDispose:o},null,8,["error"])):ge("",!0),F("div",ES,[F("h2",RS,we(e.alert.id),1),F("p",TS,[se(Mf,{alert:e.alert,onDelete:d,onSetError:l},null,8,["alert"])]),F("table",LS,[F("tr",null,[MS,F("td",null,[se(s,{to:{name:"Rule",params:{id:e.alert.ruleId}}},{default:rt(()=>[it(we(e.alert.ruleId),1)]),_:1},8,["to"])])]),F("tr",null,[OS,F("td",null,[se(Of,{artifacts:e.alert.artifacts,onDelete:ae(g)},null,8,["artifacts","onDelete"])])]),e.alert.tags.length>0?(G(),re("tr",IS,[NS,F("td",null,[se(Ni,{tags:e.alert.tags,"navigate-to":"Alerts"},null,8,["tags"])])])):ge("",!0)]),F("p",FS,"Created at: "+we(e.alert.createdAt),1)]),DS,F("div",PS,[WS,se(Bf,{"rule-id":e.alert.ruleId,"exclude-alert-id":e.alert.id},null,8,["rule-id","exclude-alert-id"])])],64)}}}),HS=xe({__name:"AlertDetailWrapper",props:{id:{type:Number,required:!0}},setup(e){const t=e,n=Tr(),r=N_(),l=()=>{n.push("/")};return ct(async()=>{await r.perform(t.id)}),(o,d)=>{var g,a;return G(),re(Pe,null,[ae(r).isRunning?(G(),Se(bn,{key:0})):ge("",!0),ae(r).isError?(G(),Se(yt,{key:1,error:(g=ae(r).last)==null?void 0:g.error},null,8,["error"])):ge("",!0),(a=ae(r).last)!=null&&a.value?(G(),Se(BS,{key:2,alert:ae(r).last.value,onDelete:l},null,8,["alert"])):ge("",!0)],64)}}}),zS=xe({__name:"AlertView",props:{id:{type:String,required:!0}},setup(e){const t=e,n=()=>{yn(`Alert:${t.id} - Mihari`)};return ct(()=>{n()}),Qe(()=>t.id,()=>{n()}),(r,l)=>(G(),Se(HS,{id:parseInt(e.id)},null,8,["id"]))}}),Fi=e=>(fl("data-v-538dc0d7"),e=e(),pl(),e),jS={class:"buttons is-pulled-right"},US=["href"],VS=Fi(()=>F("span",null,"JSON",-1)),GS={class:"icon is-small"},KS=Fi(()=>F("span",null,"Metadata",-1)),YS={class:"icon is-small"},ZS=Fi(()=>F("span",null,"Enrich",-1)),XS={class:"icon is-small"},qS=Fi(()=>F("span",null,"Delete",-1)),QS={class:"icon is-small"},JS={key:0},ex={class:"modal is-active"},tx={class:"modal-card"},nx={class:"modal-card-head"},rx=Fi(()=>F("p",{class:"modal-card-title"},"Metadata",-1)),ix={class:"modal-card-body"},sx=xe({__name:"ActionButtons",props:{artifact:{type:Object,required:!0}},emits:["delete","set-error","set-message"],setup(e,{emit:t}){const n=e,r=t,l=ke(()=>`/api/artifacts/${n.artifact.id}`),o=je(!1),d=Rf(),g=E_(),a=async()=>{if(window.confirm(`Are you sure you want to delete ${n.artifact.data}?`))try{console.log("baz?"),await d.perform(n.artifact.id),console.log("baz"),r("delete")}catch(u){Je.isAxiosError(u)&&r("set-error",u)}},p=async()=>{try{const i=await g.perform(n.artifact.id);r("set-message",i)}catch(i){Je.isAxiosError(i)&&r("set-error",i)}},s=Ri(o);return(i,u)=>{const h=Ze("font-awesome-icon");return G(),re(Pe,null,[F("span",jS,[F("a",{class:"button is-link is-light is-small",href:l.value,target:"_blank"},[VS,F("span",GS,[se(h,{icon:"barcode"})])],8,US),e.artifact.metadata?(G(),re("button",{key:0,class:"button is-info is-light is-small",onClick:u[0]||(u[0]=c=>ae(s)())},[KS,F("span",YS,[se(h,{icon:"info-circle"})])])):ge("",!0),F("button",{class:"button is-primary is-light is-small",onClick:p},[ZS,F("span",XS,[ae(g).isRunning?(G(),Se(h,{key:0,icon:"spinner",spin:""})):(G(),Se(h,{key:1,icon:"lightbulb"}))])]),F("button",{class:"button is-light is-small",onClick:a},[qS,F("span",QS,[se(h,{icon:"times"})])])]),e.artifact.metadata&&o.value?(G(),re("div",JS,[F("div",ex,[F("div",{class:"modal-background",onClick:u[1]||(u[1]=c=>ae(s)())}),F("div",tx,[F("header",nx,[rx,F("button",{class:"delete","aria-label":"close",onClick:u[2]||(u[2]=c=>ae(s)())})]),F("section",ix,[se(ae(Pf),{data:e.artifact.metadata},null,8,["data"])])])])])):ge("",!0)],64)}}}),Hf=Ti(sx,[["__scopeId","data-v-538dc0d7"]]),ox={class:"notification is-info is-light"},mo=xe({__name:"MessageItem",props:{message:{type:Object,required:!0},disposable:{type:Boolean,default:!1}},emits:["dispose"],setup(e,{emit:t}){const n=t,r=()=>{n("dispose")};return(l,o)=>(G(),re("div",ox,[e.disposable?(G(),re("button",{key:0,class:"delete",onClick:r})):ge("",!0),F("p",null,we(e.message.message),1)]))}}),ax={class:"box"},lx={class:"block"},cx={class:"table is-fullwidth is-completely-borderless"},ux=F("th",null,"Data",-1),hx=F("th",null,"Data Type",-1),dx=F("th",null,"Source",-1),fx=F("th",null,"Query",-1),px={key:0},gx=F("th",null,"Tags",-1),mx=F("p",{class:"block is-clearfix"},null,-1),vx={class:"help"},yx=xe({__name:"ArtifactItem",props:{artifact:{type:Object,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=t,r=je(),l=je(),o=s=>{r.value=s},d=()=>{r.value=void 0},g=()=>{n("delete"),console.log("foo")},a=s=>{s.queued&&(l.value=s)},p=()=>{l.value=void 0};return(s,i)=>{const u=Ze("router-link");return G(),re("div",ax,[r.value?(G(),Se(yt,{key:0,class:"block",error:r.value,disposable:!0,onDispose:d},null,8,["error"])):ge("",!0),l.value?(G(),Se(mo,{key:1,class:"block",message:l.value,disposable:!0,onDispose:p},null,8,["message"])):ge("",!0),F("div",lx,[F("p",null,[se(Hf,{artifact:e.artifact,onDelete:g,onSetError:o,onSetMessage:a},null,8,["artifact"])]),se(u,{class:"is-size-4",to:{name:"Artifact",params:{id:e.artifact.id}}},{default:rt(()=>[it(we(e.artifact.id),1)]),_:1},8,["to"])]),F("table",cx,[F("tr",null,[ux,F("td",null,we(e.artifact.data),1)]),F("tr",null,[hx,F("td",null,we(e.artifact.dataType),1)]),F("tr",null,[dx,F("td",null,we(e.artifact.source),1)]),F("tr",null,[fx,F("td",null,we(ae(_i)(e.artifact.query||"N/A",64)),1)]),e.artifact.tags.length>0?(G(),re("tr",px,[gx,F("td",null,[se(Ni,{tags:e.artifact.tags,"navigate-to":"Artifacts"},null,8,["tags"])])])):ge("",!0)]),mx,F("p",vx,"Created at: "+we(e.artifact.createdAt),1)])}}}),bx={key:0},wx={class:"help"},_x={key:1},$x=F("div",{class:"notification is-warning is-light"},"There is no artifact to show",-1),Sx=[$x],xx=xe({__name:"ArtifactsItem",props:{artifacts:{type:Object,required:!0}},emits:["refresh","update-page"],setup(e,{emit:t}){const n=e,r=t,l=ke(()=>n.artifacts.results.length>0),o=g=>{r("update-page",g)},d=()=>{console.log("bar"),r("refresh")};return(g,a)=>l.value?(G(),re("div",bx,[(G(!0),re(Pe,null,Ot(e.artifacts.results,p=>(G(),Se(yx,{artifact:p,key:p.id,onDelete:d},null,8,["artifact"]))),128)),se(Wl,{total:e.artifacts.total,currentPage:e.artifacts.currentPage,pageSize:e.artifacts.pageSize,onUpdatePage:o},null,8,["total","currentPage","pageSize"]),F("p",wx," ("+we(e.artifacts.total)+" results in total, "+we(e.artifacts.results.length)+" shown) ",1)])):(G(),re("div",_x,Sx))}}),Cx={class:"block"},Ax={class:"field has-addons"},kx={class:"control is-expanded"},Ex={class:"control"},Rx={class:"icon is-small"},Tx=F("span",null,"Search",-1),Lx={class:"control"},Mx={class:"icon is-small"},Ox=F("span",null,"Help",-1),Ix={key:0,class:"content mt-3"},Nx=_l('<h4 class="is-size-4">Help</h4><ul><li> Search query supports <code>AND</code>, <code>OR</code>, <code>:</code>, <code>=</code>, <code>!=</code>, <code><</code>, <code><=</code>, <code>></code>, <code>>=</code>, <code>NOT</code> and <code>()</code>. </li><li><code>id</code>, <code>data</code>, <code>data_type</code>, <code>source</code>, <code>query</code>, <code>tag</code>, <code>rule.id</code>, <code>rule.title</code>, <code>rule.description</code>, <code>tag</code>,<code>created_at</code>, <code>asn</code>, <code>country_code</code>, <code>dns_record.value</code>, <code>dns_record.resource</code>, <code>reverse_dns_name</code>, <code>cpe</code>, <code>vuln</code> and <code>port</code>. </li></ul>',2),Fx=[Nx],Dx={key:0,class:"block"},Px=xe({__name:"ArtifactsWrapper",setup(e){const t=$r("page","1"),n=$r("q",""),r=je(!1),l=Pl(),o=async()=>{const s={q:n.value,page:parseInt(t.value)};return await l.perform(s)},d=s=>{console.log(s),t.value=s.toString()},g=async()=>{t.value="1",await o()},a=g,p=Ri(r);return ct(async()=>{await o()}),Qe(t,async()=>{await o()}),Qe(n,async()=>{window.scrollTo({top:0,behavior:"smooth"})}),(s,i)=>{var h,c;const u=Ze("font-awesome-icon");return G(),re(Pe,null,[F("div",Cx,[F("div",Ax,[F("p",kx,[vl(F("input",{class:"input",type:"text","onUpdate:modelValue":i[0]||(i[0]=f=>ut(n)?n.value=f:null)},null,512),[[xl,ae(n)]])]),F("p",Ex,[F("a",{class:"button is-primary",onClick:g},[F("span",Rx,[se(u,{icon:"search"})]),Tx])]),F("p",Lx,[F("a",{class:"button is-info",onClick:i[1]||(i[1]=f=>ae(p)())},[F("span",Mx,[se(u,{icon:"question"})]),Ox])])]),r.value?(G(),re("div",Ix,Fx)):ge("",!0)]),ae(l).performCount>0?(G(),re("div",Dx,[ae(l).isRunning?(G(),Se(bn,{key:0})):ge("",!0),ae(l).isError?(G(),Se(yt,{key:1,error:(h=ae(l).last)==null?void 0:h.error},null,8,["error"])):ge("",!0),(c=ae(l).last)!=null&&c.value?(G(),Se(xx,{key:2,artifacts:ae(l).last.value,onUpdatePage:d,onRefresh:ae(a)},null,8,["artifacts","onRefresh"])):ge("",!0)])):ge("",!0)],64)}}}),Wx=xe({__name:"ArtifactsView",setup(e){const t=()=>{yn("Artifacts - Mihari")};return ct(()=>{t()}),(n,r)=>(G(),Se(Px))}}),Bx={class:"tags are-medium"},Hx=xe({__name:"AsItem",props:{autonomousSystem:{type:Object,required:!0}},setup(e){const t=n=>`asn:${n}`;return(n,r)=>{const l=Ze("router-link");return G(),re("div",Bx,[se(l,{class:"tag",to:{name:"Artifacts",query:{q:t(e.autonomousSystem.number)}}},{default:rt(()=>[it(we(e.autonomousSystem.number),1)]),_:1},8,["to"])])}}}),zx={class:"tags are-medium"},jx=xe({__name:"CpesItem",props:{cpes:{type:Array,required:!0}},setup(e){const t=n=>`cpe:"${n}"`;return(n,r)=>{const l=Ze("router-link");return G(),re("div",zx,[(G(!0),re(Pe,null,Ot(e.cpes,o=>(G(),Se(l,{class:"tag",key:o.name,to:{name:"Artifacts",query:{q:t(o.name)}}},{default:rt(()=>[it(we(o.name),1)]),_:2},1032,["to"]))),128))])}}}),Ux={class:"field is-grouped is-grouped-multiline"},Vx={class:"tags has-addons are-medium"},Gx={class:"tag is-dark"},Kx=xe({__name:"DnsRecordsItem",props:{dnsRecords:{type:Array,required:!0}},setup(e){const t=({resource:n,value:r})=>`dns_record.value:"${r}" AND dns_record.resource:"${n}"`;return(n,r)=>{const l=Ze("router-link");return G(),re("div",Ux,[(G(!0),re(Pe,null,Ot(e.dnsRecords,(o,d)=>(G(),re("div",{class:"control",key:d},[F("div",Vx,[F("span",Gx,we(o.resource),1),se(l,{class:"tag",to:{name:"Artifacts",query:{q:t({resource:o.resource,value:o.value})}}},{default:rt(()=>[it(we(ae(_i)(o.value,50)),1)]),_:2},1032,["to"])])]))),128))])}}}),Yx={class:"tags are-medium"},Zx=xe({__name:"PortsItem",props:{ports:{type:Array,required:!0}},setup(e){const t=n=>`port:${n}`;return(n,r)=>{const l=Ze("router-link");return G(),re("div",Yx,[(G(!0),re(Pe,null,Ot(e.ports,o=>(G(),Se(l,{class:"tag",key:o.number,to:{name:"Artifacts",query:{q:t(o.number)}}},{default:rt(()=>[it(we(o.number),1)]),_:2},1032,["to"]))),128))])}}}),Xx={class:"tags are-medium"},qx=xe({__name:"ReverseDnsNames",props:{reverseDnsNames:{type:Array,required:!0}},setup(e){const t=n=>`reverse_dns_name:"${n}"`;return(n,r)=>{const l=Ze("router-link");return G(),re("div",Xx,[(G(!0),re(Pe,null,Ot(e.reverseDnsNames,o=>(G(),Se(l,{class:"tag",key:o.name,to:{name:"Artifacts",query:{q:t(o.name)}}},{default:rt(()=>[it(we(o.name),1)]),_:2},1032,["to"]))),128))])}}}),Qx={class:"tags are-medium"},Jx=xe({__name:"VulnerabilitiesItem",props:{vulnerabilities:{type:Array,required:!0}},setup(e){const t=n=>`vuln:"${n}"`;return(n,r)=>{const l=Ze("router-link");return G(),re("div",Qx,[(G(!0),re(Pe,null,Ot(e.vulnerabilities,o=>(G(),Se(l,{class:"tag",key:o.name,to:{name:"Artifacts",query:{q:t(o.name)}}},{default:rt(()=>[it(we(o.name),1)]),_:2},1032,["to"]))),128))])}}}),eC={class:"field is-grouped is-grouped-multiline"},tC={class:"control"},nC={class:"tags has-addons are-medium"},rC=F("span",{class:"tag is-dark"},"Registrar",-1),iC={class:"tag"},sC={class:"control"},oC={class:"tags has-addons are-medium"},aC=F("span",{class:"tag is-dark"},"Created on",-1),lC={class:"tag"},cC={class:"control"},uC={class:"tags has-addons are-medium"},hC=F("span",{class:"tag is-dark"},"Updated on",-1),dC={class:"tag"},fC={class:"control"},pC={class:"tags has-addons are-medium"},gC=F("span",{class:"tag is-dark"},"Expires on",-1),mC={class:"tag"},vC=xe({__name:"WhoisRecord",props:{whoisRecord:{type:Object,required:!0}},setup(e){return(t,n)=>{var r;return G(),re("div",eC,[F("div",tC,[F("div",nC,[rC,F("span",iC,we(((r=e.whoisRecord.registrar)==null?void 0:r.name)||"N/A"),1)])]),F("div",sC,[F("div",oC,[aC,F("span",lC,we(e.whoisRecord.createdOn||"N/A"),1)])]),F("div",cC,[F("div",uC,[hC,F("span",dC,we(e.whoisRecord.updatedOn||"N/A"),1)])]),F("div",fC,[F("div",pC,[gC,F("span",mC,we(e.whoisRecord.expiresOn||"N/A"),1)])])])}}}),yC=["href"],bC=["src"],wC=xe({__name:"LinkItem",props:{data:{type:String,required:!0},link:{type:Object,required:!0}},setup(e){const t=Rd();return(n,r)=>(G(),re("a",{href:e.link.href(e.data),class:Ai(["tag",ae(t)?"":"is-white"]),target:"_blank"},[F("img",{src:e.link.favicon(),alt:"favicon"},null,8,bC),F("span",null,we(e.link.name),1)],10,yC))}}),_C=Ti(wC,[["__scopeId","data-v-d0b695fc"]]);class Nt{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 $C extends Nt{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 SC extends Nt{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 xC extends Nt{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 CC extends Nt{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 AC extends Nt{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 kC extends Nt{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 EC extends Nt{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 RC extends Nt{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 zf extends Nt{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 TC extends zf{constructor(){super();Fe(this,"type");this.type="domain"}href(n){return this.baseURL+`/indicator/domain/${n}`}}class jf extends Nt{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://securitytrails.com",this.name="SecurityTrails",this.type="domain"}}class LC extends jf{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/domain/${t}/dns`}}class MC extends jf{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/list/ip/${t}`}}class OC extends Nt{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 Bl extends Nt{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://urlscan.io",this.name="urlscan.io",this.type="domain"}}class IC extends Bl{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/domain/${t}`}}class NC extends Bl{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/ip/${t}`}}class FC extends Bl{constructor(){super(),this.type="url"}href(t){const n=encodeURIComponent(`page.url:"${t}" OR task.url:"${t}"`);return this.baseURL+`/search/#${n}`}}var sr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Mr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function DC(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 Uf={exports:{}};const PC={},WC=Object.freeze(Object.defineProperty({__proto__:null,default:PC},Symbol.toStringTag,{value:"Module"})),Du=DC(WC);/**
|
799
|
-
* [js-sha256]{@link https://github.com/emn178/js-sha256}
|
800
|
-
*
|
801
|
-
* @version 0.11.0
|
802
|
-
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
803
|
-
* @copyright Chen, Yi-Cyuan 2014-2024
|
804
|
-
* @license MIT
|
805
|
-
*/(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",o=!r.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;o?r=sr:l&&(r=self);var d=!r.JS_SHA256_NO_COMMON_JS&&!0&&e.exports,g=!r.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",a="0123456789abcdef".split(""),p=[-2147483648,8388608,32768,128],s=[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],u=["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]"}),g&&(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 c=function(b,A){return function(L){return new x(A,!0).update(L)[b]()}},f=function(b){var A=c("hex",b);o&&(A=m(A,b)),A.create=function(){return new x(b)},A.update=function(M){return A.create().update(M)};for(var L=0;L<u.length;++L){var k=u[L];A[k]=c(k,b)}return A},m=function(b,A){var L=Du,k=Du.Buffer,M=A?"sha224":"sha256",C;k.from&&!r.JS_SHA256_NO_BUFFER_FROM?C=k.from:C=function(S){return new k(S)};var R=function(S){if(typeof S=="string")return L.createHash(M).update(S,"utf8").digest("hex");if(S==null)throw new Error(t);return S.constructor===ArrayBuffer&&(S=new Uint8Array(S)),Array.isArray(S)||ArrayBuffer.isView(S)||S.constructor===k?L.createHash(M).update(C(S)).digest("hex"):b(S)};return R},v=function(b,A){return function(L,k){return new $(L,A,!0).update(k)[b]()}},y=function(b){var A=v("hex",b);A.create=function(M){return new $(M,b)},A.update=function(M,C){return A.create(M).update(C)};for(var L=0;L<u.length;++L){var k=u[L];A[k]=v(k,b)}return A};function x(b,A){A?(h[0]=h[16]=h[1]=h[2]=h[3]=h[4]=h[5]=h[6]=h[7]=h[8]=h[9]=h[10]=h[11]=h[12]=h[13]=h[14]=h[15]=0,this.blocks=h):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],b?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=b}x.prototype.update=function(b){if(!this.finalized){var A,L=typeof b;if(L!=="string"){if(L==="object"){if(b===null)throw new Error(t);if(g&&b.constructor===ArrayBuffer)b=new Uint8Array(b);else if(!Array.isArray(b)&&(!g||!ArrayBuffer.isView(b)))throw new Error(t)}else throw new Error(t);A=!0}for(var k,M=0,C,R=b.length,S=this.blocks;M<R;){if(this.hashed&&(this.hashed=!1,S[0]=this.block,this.block=S[16]=S[1]=S[2]=S[3]=S[4]=S[5]=S[6]=S[7]=S[8]=S[9]=S[10]=S[11]=S[12]=S[13]=S[14]=S[15]=0),A)for(C=this.start;M<R&&C<64;++M)S[C>>>2]|=b[M]<<s[C++&3];else for(C=this.start;M<R&&C<64;++M)k=b.charCodeAt(M),k<128?S[C>>>2]|=k<<s[C++&3]:k<2048?(S[C>>>2]|=(192|k>>>6)<<s[C++&3],S[C>>>2]|=(128|k&63)<<s[C++&3]):k<55296||k>=57344?(S[C>>>2]|=(224|k>>>12)<<s[C++&3],S[C>>>2]|=(128|k>>>6&63)<<s[C++&3],S[C>>>2]|=(128|k&63)<<s[C++&3]):(k=65536+((k&1023)<<10|b.charCodeAt(++M)&1023),S[C>>>2]|=(240|k>>>18)<<s[C++&3],S[C>>>2]|=(128|k>>>12&63)<<s[C++&3],S[C>>>2]|=(128|k>>>6&63)<<s[C++&3],S[C>>>2]|=(128|k&63)<<s[C++&3]);this.lastByteIndex=C,this.bytes+=C-this.start,C>=64?(this.block=S[16],this.start=C-64,this.hash(),this.hashed=!0):this.start=C}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},x.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var b=this.blocks,A=this.lastByteIndex;b[16]=this.block,b[A>>>2]|=p[A&3],this.block=b[16],A>=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()}},x.prototype.hash=function(){var b=this.h0,A=this.h1,L=this.h2,k=this.h3,M=this.h4,C=this.h5,R=this.h6,S=this.h7,w=this.blocks,E,T,O,I,N,P,H,V,j,B,U;for(E=16;E<64;++E)N=w[E-15],T=(N>>>7|N<<25)^(N>>>18|N<<14)^N>>>3,N=w[E-2],O=(N>>>17|N<<15)^(N>>>19|N<<13)^N>>>10,w[E]=w[E-16]+T+w[E-7]+O<<0;for(U=A&L,E=0;E<64;E+=4)this.first?(this.is224?(V=300032,N=w[0]-1413257819,S=N-150054599<<0,k=N+24177077<<0):(V=704751109,N=w[0]-210244248,S=N-1521486534<<0,k=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),V=b&A,I=V^b&L^U,H=M&C^~M&R,N=S+O+H+i[E]+w[E],P=T+I,S=k+N<<0,k=N+P<<0),T=(k>>>2|k<<30)^(k>>>13|k<<19)^(k>>>22|k<<10),O=(S>>>6|S<<26)^(S>>>11|S<<21)^(S>>>25|S<<7),j=k&b,I=j^k&A^V,H=S&M^~S&C,N=R+O+H+i[E+1]+w[E+1],P=T+I,R=L+N<<0,L=N+P<<0,T=(L>>>2|L<<30)^(L>>>13|L<<19)^(L>>>22|L<<10),O=(R>>>6|R<<26)^(R>>>11|R<<21)^(R>>>25|R<<7),B=L&k,I=B^L&b^j,H=R&S^~R&M,N=C+O+H+i[E+2]+w[E+2],P=T+I,C=A+N<<0,A=N+P<<0,T=(A>>>2|A<<30)^(A>>>13|A<<19)^(A>>>22|A<<10),O=(C>>>6|C<<26)^(C>>>11|C<<21)^(C>>>25|C<<7),U=A&L,I=U^A&k^B,H=C&R^~C&S,N=M+O+H+i[E+3]+w[E+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+A<<0,this.h2=this.h2+L<<0,this.h3=this.h3+k<<0,this.h4=this.h4+M<<0,this.h5=this.h5+C<<0,this.h6=this.h6+R<<0,this.h7=this.h7+S<<0},x.prototype.hex=function(){this.finalize();var b=this.h0,A=this.h1,L=this.h2,k=this.h3,M=this.h4,C=this.h5,R=this.h6,S=this.h7,w=a[b>>>28&15]+a[b>>>24&15]+a[b>>>20&15]+a[b>>>16&15]+a[b>>>12&15]+a[b>>>8&15]+a[b>>>4&15]+a[b&15]+a[A>>>28&15]+a[A>>>24&15]+a[A>>>20&15]+a[A>>>16&15]+a[A>>>12&15]+a[A>>>8&15]+a[A>>>4&15]+a[A&15]+a[L>>>28&15]+a[L>>>24&15]+a[L>>>20&15]+a[L>>>16&15]+a[L>>>12&15]+a[L>>>8&15]+a[L>>>4&15]+a[L&15]+a[k>>>28&15]+a[k>>>24&15]+a[k>>>20&15]+a[k>>>16&15]+a[k>>>12&15]+a[k>>>8&15]+a[k>>>4&15]+a[k&15]+a[M>>>28&15]+a[M>>>24&15]+a[M>>>20&15]+a[M>>>16&15]+a[M>>>12&15]+a[M>>>8&15]+a[M>>>4&15]+a[M&15]+a[C>>>28&15]+a[C>>>24&15]+a[C>>>20&15]+a[C>>>16&15]+a[C>>>12&15]+a[C>>>8&15]+a[C>>>4&15]+a[C&15]+a[R>>>28&15]+a[R>>>24&15]+a[R>>>20&15]+a[R>>>16&15]+a[R>>>12&15]+a[R>>>8&15]+a[R>>>4&15]+a[R&15];return this.is224||(w+=a[S>>>28&15]+a[S>>>24&15]+a[S>>>20&15]+a[S>>>16&15]+a[S>>>12&15]+a[S>>>8&15]+a[S>>>4&15]+a[S&15]),w},x.prototype.toString=x.prototype.hex,x.prototype.digest=function(){this.finalize();var b=this.h0,A=this.h1,L=this.h2,k=this.h3,M=this.h4,C=this.h5,R=this.h6,S=this.h7,w=[b>>>24&255,b>>>16&255,b>>>8&255,b&255,A>>>24&255,A>>>16&255,A>>>8&255,A&255,L>>>24&255,L>>>16&255,L>>>8&255,L&255,k>>>24&255,k>>>16&255,k>>>8&255,k&255,M>>>24&255,M>>>16&255,M>>>8&255,M&255,C>>>24&255,C>>>16&255,C>>>8&255,C&255,R>>>24&255,R>>>16&255,R>>>8&255,R&255];return this.is224||w.push(S>>>24&255,S>>>16&255,S>>>8&255,S&255),w},x.prototype.array=x.prototype.digest,x.prototype.arrayBuffer=function(){this.finalize();var b=new ArrayBuffer(this.is224?28:32),A=new DataView(b);return A.setUint32(0,this.h0),A.setUint32(4,this.h1),A.setUint32(8,this.h2),A.setUint32(12,this.h3),A.setUint32(16,this.h4),A.setUint32(20,this.h5),A.setUint32(24,this.h6),this.is224||A.setUint32(28,this.h7),b};function $(b,A,L){var k,M=typeof b;if(M==="string"){var C=[],R=b.length,S=0,w;for(k=0;k<R;++k)w=b.charCodeAt(k),w<128?C[S++]=w:w<2048?(C[S++]=192|w>>>6,C[S++]=128|w&63):w<55296||w>=57344?(C[S++]=224|w>>>12,C[S++]=128|w>>>6&63,C[S++]=128|w&63):(w=65536+((w&1023)<<10|b.charCodeAt(++k)&1023),C[S++]=240|w>>>18,C[S++]=128|w>>>12&63,C[S++]=128|w>>>6&63,C[S++]=128|w&63);b=C}else if(M==="object"){if(b===null)throw new Error(t);if(g&&b.constructor===ArrayBuffer)b=new Uint8Array(b);else if(!Array.isArray(b)&&(!g||!ArrayBuffer.isView(b)))throw new Error(t)}else throw new Error(t);b.length>64&&(b=new x(A,!0).update(b).array());var E=[],T=[];for(k=0;k<64;++k){var O=b[k]||0;E[k]=92^O,T[k]=54^O}x.call(this,A,L),this.update(T),this.oKeyPad=E,this.inner=!0,this.sharedMemory=L}$.prototype=new x,$.prototype.finalize=function(){if(x.prototype.finalize.call(this),this.inner){this.inner=!1;var b=this.array();x.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(b),x.prototype.finalize.call(this)}};var _=f();_.sha256=_,_.sha224=f(!0),_.sha256.hmac=y(),_.sha224.hmac=y(!0),d?e.exports=_:(r.sha256=_.sha256,r.sha224=_.sha224)})()})(Uf);var BC=Uf.exports,HC=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},Hl={},zC=Object.prototype.hasOwnProperty,jC;function Pu(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return null}}function Wu(e){try{return encodeURIComponent(e)}catch{return null}}function UC(e){for(var t=/([^=?#&]+)=?([^&]*)/g,n={},r;r=t.exec(e);){var l=Pu(r[1]),o=Pu(r[2]);l===null||o===null||l in n||(n[l]=o)}return n}function VC(e,t){t=t||"";var n=[],r,l;typeof t!="string"&&(t="?");for(l in e)if(zC.call(e,l)){if(r=e[l],!r&&(r===null||r===jC||isNaN(r))&&(r=""),l=Wu(l),r=Wu(r),l===null||r===null)continue;n.push(l+"="+r)}return n.length?t+n.join("&"):""}Hl.stringify=VC;Hl.parse=UC;var Vf=HC,vo=Hl,GC=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,Gf=/[\n\r\t]/g,KC=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,Kf=/:\d+$/,YC=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,ZC=/^[a-zA-Z]:/;function zl(e){return(e||"").toString().replace(GC,"")}var Fa=[["#","hash"],["?","query"],function(t,n){return Qt(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]],Bu={hash:1,query:1};function Yf(e){var t;typeof window<"u"?t=window:typeof sr<"u"?t=sr:typeof self<"u"?t=self:t={};var n=t.location||{};e=e||n;var r={},l=typeof e,o;if(e.protocol==="blob:")r=new rn(unescape(e.pathname),{});else if(l==="string"){r=new rn(e,{});for(o in Bu)delete r[o]}else if(l==="object"){for(o in e)o in Bu||(r[o]=e[o]);r.slashes===void 0&&(r.slashes=KC.test(e.href))}return r}function Qt(e){return e==="file:"||e==="ftp:"||e==="http:"||e==="https:"||e==="ws:"||e==="wss:"}function Zf(e,t){e=zl(e),e=e.replace(Gf,""),t=t||{};var n=YC.exec(e),r=n[1]?n[1].toLowerCase():"",l=!!n[2],o=!!n[3],d=0,g;return l?o?(g=n[2]+n[3]+n[4],d=n[2].length+n[3].length):(g=n[2]+n[4],d=n[2].length):o?(g=n[3]+n[4],d=n[3].length):g=n[4],r==="file:"?d>=2&&(g=g.slice(2)):Qt(r)?g=n[4]:r?l&&(g=g.slice(2)):d>=2&&Qt(t.protocol)&&(g=n[4]),{protocol:r,slashes:l||Qt(r),slashesCount:d,rest:g}}function XC(e,t){if(e==="")return t;for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),r=n.length,l=n[r-1],o=!1,d=0;r--;)n[r]==="."?n.splice(r,1):n[r]===".."?(n.splice(r,1),d++):d&&(r===0&&(o=!0),n.splice(r,1),d--);return o&&n.unshift(""),(l==="."||l==="..")&&n.push(""),n.join("/")}function rn(e,t,n){if(e=zl(e),e=e.replace(Gf,""),!(this instanceof rn))return new rn(e,t,n);var r,l,o,d,g,a,p=Fa.slice(),s=typeof t,i=this,u=0;for(s!=="object"&&s!=="string"&&(n=t,t=null),n&&typeof n!="function"&&(n=vo.parse),t=Yf(t),l=Zf(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||ZC.test(e))||!l.slashes&&(l.protocol||l.slashesCount<2||!Qt(i.protocol)))&&(p[3]=[/(.*)/,"pathname"]);u<p.length;u++){if(d=p[u],typeof d=="function"){e=d(e,i);continue}o=d[0],a=d[1],o!==o?i[a]=e:typeof o=="string"?(g=o==="@"?e.lastIndexOf(o):e.indexOf(o),~g&&(typeof d[2]=="number"?(i[a]=e.slice(0,g),e=e.slice(g+d[2])):(i[a]=e.slice(g),e=e.slice(0,g)))):(g=o.exec(e))&&(i[a]=g[1],e=e.slice(0,g.index)),i[a]=i[a]||r&&d[3]&&t[a]||"",d[4]&&(i[a]=i[a].toLowerCase())}n&&(i.query=n(i.query)),r&&t.slashes&&i.pathname.charAt(0)!=="/"&&(i.pathname!==""||t.pathname!=="")&&(i.pathname=XC(i.pathname,t.pathname)),i.pathname.charAt(0)!=="/"&&Qt(i.protocol)&&(i.pathname="/"+i.pathname),Vf(i.port,i.protocol)||(i.host=i.hostname,i.port=""),i.username=i.password="",i.auth&&(g=i.auth.indexOf(":"),~g?(i.username=i.auth.slice(0,g),i.username=encodeURIComponent(decodeURIComponent(i.username)),i.password=i.auth.slice(g+1),i.password=encodeURIComponent(decodeURIComponent(i.password))):i.username=encodeURIComponent(decodeURIComponent(i.auth)),i.auth=i.password?i.username+":"+i.password:i.username),i.origin=i.protocol!=="file:"&&Qt(i.protocol)&&i.host?i.protocol+"//"+i.host:"null",i.href=i.toString()}function qC(e,t,n){var r=this;switch(e){case"query":typeof t=="string"&&t.length&&(t=(n||vo.parse)(t)),r[e]=t;break;case"port":r[e]=t,Vf(t,r.protocol)?t&&(r.host=r.hostname+":"+t):(r.host=r.hostname,r[e]="");break;case"hostname":r[e]=t,r.port&&(t+=":"+r.port),r.host=t;break;case"host":r[e]=t,Kf.test(t)?(t=t.split(":"),r.port=t.pop(),r.hostname=t.join(":")):(r.hostname=t,r.port="");break;case"protocol":r.protocol=t.toLowerCase(),r.slashes=!n;break;case"pathname":case"hash":if(t){var l=e==="pathname"?"/":"#";r[e]=t.charAt(0)!==l?l+t:t}else r[e]=t;break;case"username":case"password":r[e]=encodeURIComponent(t);break;case"auth":var o=t.indexOf(":");~o?(r.username=t.slice(0,o),r.username=encodeURIComponent(decodeURIComponent(r.username)),r.password=t.slice(o+1),r.password=encodeURIComponent(decodeURIComponent(r.password))):r.username=encodeURIComponent(decodeURIComponent(t))}for(var d=0;d<Fa.length;d++){var g=Fa[d];g[4]&&(r[g[1]]=r[g[1]].toLowerCase())}return r.auth=r.password?r.username+":"+r.password:r.username,r.origin=r.protocol!=="file:"&&Qt(r.protocol)&&r.host?r.protocol+"//"+r.host:"null",r.href=r.toString(),r}function QC(e){(!e||typeof e!="function")&&(e=vo.stringify);var t,n=this,r=n.host,l=n.protocol;l&&l.charAt(l.length-1)!==":"&&(l+=":");var o=l+(n.protocol&&n.slashes||Qt(n.protocol)?"//":"");return n.username?(o+=n.username,n.password&&(o+=":"+n.password),o+="@"):n.password?(o+=":"+n.password,o+="@"):n.protocol!=="file:"&&Qt(n.protocol)&&!r&&n.pathname!=="/"&&(o+="@"),(r[r.length-1]===":"||Kf.test(n.hostname)&&!n.port)&&(r+=":"),o+=r+n.pathname,t=typeof n.query=="object"?e(n.query):n.query,t&&(o+=t.charAt(0)!=="?"?"?"+t:t),n.hash&&(o+=n.hash),o}rn.prototype={set:qC,toString:QC};rn.extractProtocol=Zf;rn.location=Yf;rn.trimLeft=zl;rn.qs=vo;var JC=rn;const e2=Mr(JC);class yo extends Nt{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.name="VirusTotal",this.baseURL="https://www.virustotal.com",this.type="domain"}}class t2 extends yo{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/gui/domain/${t}/detection`}}class n2 extends yo{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/gui/ip-address/${t}/details`}}class r2 extends yo{constructor(){super(),this.type="url"}href(t){const n=BC.sha256(this.normalizeURL(t));return this.baseURL+`/gui/url/${n}/details`}normalizeURL(t){return new e2(t).pathname==="/"&&!t.endsWith("/")?`${t}/`:t}}class i2 extends yo{constructor(){super(),this.type="hash"}href(t){return this.baseURL+`/gui/file/${t}/details`}}const s2=[new $C,new SC,new xC,new AC,new CC,new kC,new EC,new RC,new TC,new zf,new LC,new MC,new OC,new IC,new NC,new FC,new t2,new i2,new n2,new r2],o2={class:"tags are-medium"},a2=xe({__name:"LinksItem",props:{data:{type:String,required:!0},type:{type:String,required:!0}},setup(e){const t=e,n=ke(()=>s2.filter(r=>r.type===t.type));return(r,l)=>(G(),re("div",o2,[(G(!0),re(Pe,null,Ot(n.value,o=>(G(),Se(_C,{data:e.data,link:o,key:o.name},null,8,["data","link"]))),128))]))}});var Xf={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(sr,function(){var n=1e3,r=6e4,l=36e5,o="millisecond",d="second",g="minute",a="hour",p="day",s="week",i="month",u="quarter",h="year",c="date",f="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,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 E=["th","st","nd","rd"],T=w%100;return"["+w+(E[(T-20)%10]||E[T]||E[0])+"]"}},x=function(w,E,T){var O=String(w);return!O||O.length>=E?w:""+Array(E+1-O.length).join(T)+w},$={s:x,z:function(w){var E=-w.utcOffset(),T=Math.abs(E),O=Math.floor(T/60),I=T%60;return(E<=0?"+":"-")+x(O,2,"0")+":"+x(I,2,"0")},m:function w(E,T){if(E.date()<T.date())return-w(T,E);var O=12*(T.year()-E.year())+(T.month()-E.month()),I=E.clone().add(O,i),N=T-I<0,P=E.clone().add(O+(N?-1:1),i);return+(-(O+(T-I)/(N?I-P:P-I))||0)},a:function(w){return w<0?Math.ceil(w)||0:Math.floor(w)},p:function(w){return{M:i,y:h,w:s,d:p,D:c,h:a,m:g,s:d,ms:o,Q:u}[w]||String(w||"").toLowerCase().replace(/s$/,"")},u:function(w){return w===void 0}},_="en",b={};b[_]=y;var A="$isDayjsObject",L=function(w){return w instanceof R||!(!w||!w[A])},k=function w(E,T,O){var I;if(!E)return _;if(typeof E=="string"){var N=E.toLowerCase();b[N]&&(I=N),T&&(b[N]=T,I=N);var P=E.split("-");if(!I&&P.length>1)return w(P[0])}else{var H=E.name;b[H]=E,I=H}return!O&&I&&(_=I),I||!O&&_},M=function(w,E){if(L(w))return w.clone();var T=typeof E=="object"?E:{};return T.date=w,T.args=arguments,new R(T)},C=$;C.l=k,C.i=L,C.w=function(w,E){return M(w,{locale:E.$L,utc:E.$u,x:E.$x,$offset:E.$offset})};var R=function(){function w(T){this.$L=k(T.locale,null,!0),this.parse(T),this.$x=this.$x||T.x||{},this[A]=!0}var E=w.prototype;return E.parse=function(T){this.$d=function(O){var I=O.date,N=O.utc;if(I===null)return new Date(NaN);if(C.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 H=P[2]-1||0,V=(P[7]||"0").substring(0,3);return N?new Date(Date.UTC(P[1],H,P[3]||1,P[4]||0,P[5]||0,P[6]||0,V)):new Date(P[1],H,P[3]||1,P[4]||0,P[5]||0,P[6]||0,V)}}return new Date(I)}(T),this.init()},E.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},E.$utils=function(){return C},E.isValid=function(){return this.$d.toString()!==f},E.isSame=function(T,O){var I=M(T);return this.startOf(O)<=I&&I<=this.endOf(O)},E.isAfter=function(T,O){return M(T)<this.startOf(O)},E.isBefore=function(T,O){return this.endOf(O)<M(T)},E.$g=function(T,O,I){return C.u(T)?this[O]:this.set(I,T)},E.unix=function(){return Math.floor(this.valueOf()/1e3)},E.valueOf=function(){return this.$d.getTime()},E.startOf=function(T,O){var I=this,N=!!C.u(O)||O,P=C.p(T),H=function(Y,Q){var he=C.w(I.$u?Date.UTC(I.$y,Q,Y):new Date(I.$y,Q,Y),I);return N?he:he.endOf(p)},V=function(Y,Q){return C.w(I.toDate()[Y].apply(I.toDate("s"),(N?[0,0,0,0]:[23,59,59,999]).slice(Q)),I)},j=this.$W,B=this.$M,U=this.$D,q="set"+(this.$u?"UTC":"");switch(P){case h:return N?H(1,0):H(31,11);case i:return N?H(1,B):H(0,B+1);case s:var z=this.$locale().weekStart||0,Z=(j<z?j+7:j)-z;return H(N?U-Z:U+(6-Z),B);case p:case c:return V(q+"Hours",0);case a:return V(q+"Minutes",1);case g:return V(q+"Seconds",2);case d:return V(q+"Milliseconds",3);default:return this.clone()}},E.endOf=function(T){return this.startOf(T,!1)},E.$set=function(T,O){var I,N=C.p(T),P="set"+(this.$u?"UTC":""),H=(I={},I[p]=P+"Date",I[c]=P+"Date",I[i]=P+"Month",I[h]=P+"FullYear",I[a]=P+"Hours",I[g]=P+"Minutes",I[d]=P+"Seconds",I[o]=P+"Milliseconds",I)[N],V=N===p?this.$D+(O-this.$W):O;if(N===i||N===h){var j=this.clone().set(c,1);j.$d[H](V),j.init(),this.$d=j.set(c,Math.min(this.$D,j.daysInMonth())).$d}else H&&this.$d[H](V);return this.init(),this},E.set=function(T,O){return this.clone().$set(T,O)},E.get=function(T){return this[C.p(T)]()},E.add=function(T,O){var I,N=this;T=Number(T);var P=C.p(O),H=function(B){var U=M(N);return C.w(U.date(U.date()+Math.round(B*T)),N)};if(P===i)return this.set(i,this.$M+T);if(P===h)return this.set(h,this.$y+T);if(P===p)return H(1);if(P===s)return H(7);var V=(I={},I[g]=r,I[a]=l,I[d]=n,I)[P]||1,j=this.$d.getTime()+T*V;return C.w(j,this)},E.subtract=function(T,O){return this.add(-1*T,O)},E.format=function(T){var O=this,I=this.$locale();if(!this.isValid())return I.invalidDate||f;var N=T||"YYYY-MM-DDTHH:mm:ssZ",P=C.z(this),H=this.$H,V=this.$m,j=this.$M,B=I.weekdays,U=I.months,q=I.meridiem,z=function(Q,he,Ce,D){return Q&&(Q[he]||Q(O,N))||Ce[he].slice(0,D)},Z=function(Q){return C.s(H%12||12,Q,"0")},Y=q||function(Q,he,Ce){var D=Q<12?"AM":"PM";return Ce?D.toLowerCase():D};return N.replace(v,function(Q,he){return he||function(Ce){switch(Ce){case"YY":return String(O.$y).slice(-2);case"YYYY":return C.s(O.$y,4,"0");case"M":return j+1;case"MM":return C.s(j+1,2,"0");case"MMM":return z(I.monthsShort,j,U,3);case"MMMM":return z(U,j);case"D":return O.$D;case"DD":return C.s(O.$D,2,"0");case"d":return String(O.$W);case"dd":return z(I.weekdaysMin,O.$W,B,2);case"ddd":return z(I.weekdaysShort,O.$W,B,3);case"dddd":return B[O.$W];case"H":return String(H);case"HH":return C.s(H,2,"0");case"h":return Z(1);case"hh":return Z(2);case"a":return Y(H,V,!0);case"A":return Y(H,V,!1);case"m":return String(V);case"mm":return C.s(V,2,"0");case"s":return String(O.$s);case"ss":return C.s(O.$s,2,"0");case"SSS":return C.s(O.$ms,3,"0");case"Z":return P}return null}(Q)||P.replace(":","")})},E.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},E.diff=function(T,O,I){var N,P=this,H=C.p(O),V=M(T),j=(V.utcOffset()-this.utcOffset())*r,B=this-V,U=function(){return C.m(P,V)};switch(H){case h:N=U()/12;break;case i:N=U();break;case u:N=U()/3;break;case s:N=(B-j)/6048e5;break;case p:N=(B-j)/864e5;break;case a:N=B/l;break;case g:N=B/r;break;case d:N=B/n;break;default:N=B}return I?N:C.a(N)},E.daysInMonth=function(){return this.endOf(i).$D},E.$locale=function(){return b[this.$L]},E.locale=function(T,O){if(!T)return this.$L;var I=this.clone(),N=k(T,O,!0);return N&&(I.$L=N),I},E.clone=function(){return C.w(this.$d,this)},E.toDate=function(){return new Date(this.valueOf())},E.toJSON=function(){return this.isValid()?this.toISOString():null},E.toISOString=function(){return this.$d.toISOString()},E.toString=function(){return this.$d.toUTCString()},w}(),S=R.prototype;return M.prototype=S,[["$ms",o],["$s",d],["$m",g],["$H",a],["$W",p],["$M",i],["$y",h],["$D",c]].forEach(function(w){S[w[1]]=function(E){return this.$g(E,w[0],w[1])}}),M.extend=function(w,E){return w.$i||(w(E,R,M),w.$i=!0),M},M.locale=k,M.isDayjs=L,M.unix=function(w){return M(1e3*w)},M.en=b[_],M.Ls=b,M.p={},M})})(Xf);var l2=Xf.exports;const bo=Mr(l2);var qf={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(sr,function(){return function(n,r,l){n=n||{};var o=r.prototype,d={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function g(p,s,i,u){return o.fromToBase(p,s,i,u)}l.en.relativeTime=d,o.fromToBase=function(p,s,i,u,h){for(var c,f,m,v=i.$locale().relativeTime||d,y=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],x=y.length,$=0;$<x;$+=1){var _=y[$];_.d&&(c=u?l(p).diff(i,_.d,!0):i.diff(p,_.d,!0));var b=(n.rounding||Math.round)(Math.abs(c));if(m=c>0,b<=_.r||!_.r){b<=1&&$>0&&(_=y[$-1]);var A=v[_.l];h&&(b=h(""+b)),f=typeof A=="string"?A.replace("%d",b):A(b,s,_.l,m);break}}if(s)return f;var L=m?v.future:v.past;return typeof L=="function"?L(f):L.replace("%s",f)},o.to=function(p,s){return g(p,s,this,!0)},o.from=function(p,s){return g(p,s,this)};var a=function(p){return p.$u?l.utc():l()};o.toNow=function(p){return this.to(a(this),p)},o.fromNow=function(p){return this.from(a(this),p)}}})})(qf);var c2=qf.exports;const u2=Mr(c2);var Qf={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(sr,function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},r={};return function(l,o,d){var g,a=function(u,h,c){c===void 0&&(c={});var f=new Date(u),m=function(v,y){y===void 0&&(y={});var x=y.timeZoneName||"short",$=v+"|"+x,_=r[$];return _||(_=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:v,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:x}),r[$]=_),_}(h,c);return m.formatToParts(f)},p=function(u,h){for(var c=a(u,h),f=[],m=0;m<c.length;m+=1){var v=c[m],y=v.type,x=v.value,$=n[y];$>=0&&(f[$]=parseInt(x,10))}var _=f[3],b=_===24?0:_,A=f[0]+"-"+f[1]+"-"+f[2]+" "+b+":"+f[4]+":"+f[5]+":000",L=+u;return(d.utc(A).valueOf()-(L-=L%1e3))/6e4},s=o.prototype;s.tz=function(u,h){u===void 0&&(u=g);var c=this.utcOffset(),f=this.toDate(),m=f.toLocaleString("en-US",{timeZone:u}),v=Math.round((f-new Date(m))/1e3/60),y=d(m,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(f.getTimezoneOffset()/15)-v,!0);if(h){var x=y.utcOffset();y=y.add(c-x,"minute")}return y.$x.$timezone=u,y},s.offsetName=function(u){var h=this.$x.$timezone||d.tz.guess(),c=a(this.valueOf(),h,{timeZoneName:u}).find(function(f){return f.type.toLowerCase()==="timezonename"});return c&&c.value};var i=s.startOf;s.startOf=function(u,h){if(!this.$x||!this.$x.$timezone)return i.call(this,u,h);var c=d(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return i.call(c,u,h).tz(this.$x.$timezone,!0)},d.tz=function(u,h,c){var f=c&&h,m=c||h||g,v=p(+d(),m);if(typeof u!="string")return d(u).tz(m);var y=function(b,A,L){var k=b-60*A*1e3,M=p(k,L);if(A===M)return[k,A];var C=p(k-=60*(M-A)*1e3,L);return M===C?[k,M]:[b-60*Math.min(M,C)*1e3,Math.max(M,C)]}(d.utc(u,f).valueOf(),v,m),x=y[0],$=y[1],_=d(x).utcOffset($);return _.$x.$timezone=m,_},d.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},d.tz.setDefault=function(u){g=u}}})})(Qf);var h2=Qf.exports;const d2=Mr(h2);var Jf={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(sr,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,l=/([+-]|\d\d)/g;return function(o,d,g){var a=d.prototype;g.utc=function(f){var m={date:f,utc:!0,args:arguments};return new d(m)},a.utc=function(f){var m=g(this.toDate(),{locale:this.$L,utc:!0});return f?m.add(this.utcOffset(),n):m},a.local=function(){return g(this.toDate(),{locale:this.$L,utc:!1})};var p=a.parse;a.parse=function(f){f.utc&&(this.$u=!0),this.$utils().u(f.$offset)||(this.$offset=f.$offset),p.call(this,f)};var s=a.init;a.init=function(){if(this.$u){var f=this.$d;this.$y=f.getUTCFullYear(),this.$M=f.getUTCMonth(),this.$D=f.getUTCDate(),this.$W=f.getUTCDay(),this.$H=f.getUTCHours(),this.$m=f.getUTCMinutes(),this.$s=f.getUTCSeconds(),this.$ms=f.getUTCMilliseconds()}else s.call(this)};var i=a.utcOffset;a.utcOffset=function(f,m){var v=this.$utils().u;if(v(f))return this.$u?0:v(this.$offset)?i.call(this):this.$offset;if(typeof f=="string"&&(f=function(_){_===void 0&&(_="");var b=_.match(r);if(!b)return null;var A=(""+b[0]).match(l)||["-",0,0],L=A[0],k=60*+A[1]+ +A[2];return k===0?0:L==="+"?k:-k}(f),f===null))return this;var y=Math.abs(f)<=16?60*f:f,x=this;if(m)return x.$offset=y,x.$u=f===0,x;if(f!==0){var $=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(x=this.local().add(y+$,n)).$offset=y,x.$x.$localOffset=$}else x=this.utc();return x};var u=a.format;a.format=function(f){var m=f||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,m)},a.valueOf=function(){var f=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*f},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var h=a.toDate;a.toDate=function(f){return f==="s"&&this.$offset?g(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():h.call(this)};var c=a.diff;a.diff=function(f,m,v){if(f&&this.$u===f.$u)return c.call(this,f,m,v);var y=this.local(),x=g(f).local();return c.call(y,x,m,v)}}})})(Jf);var f2=Jf.exports;const p2=Mr(f2),g2=[{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 m2(e){return g2.find(n=>n.code===e)}bo.extend(u2);bo.extend(d2);bo.extend(p2);function ep(e){const t=m2(e);if(t)return{lat:t.lat,long:t.long}}function v2(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 ep(e.countryCode)}const kt=e=>(fl("data-v-aadb0460"),e=e(),pl(),e),y2={class:"block"},b2={class:"is-size-2"},w2={class:"is-clearfix"},_2={class:"columns"},$2={key:0,class:"column is-half"},S2={key:0},x2={class:"is-size-4"},C2={class:"has-text-grey"},A2=["src"],k2={key:1},E2=kt(()=>F("h4",{class:"is-size-4"},"Live screenshot",-1)),R2=kt(()=>F("p",{class:"help"},"Hover to expand",-1)),T2=["src"],L2={class:"column"},M2=kt(()=>F("h4",{class:"is-size-4"},"Information",-1)),O2={class:"table is-fullwidth is-completely-borderless"},I2=kt(()=>F("th",null,"Data",-1)),N2=kt(()=>F("th",null,"Data type",-1)),F2=kt(()=>F("th",null,"Source",-1)),D2=kt(()=>F("th",null,"Query",-1)),P2={key:0},W2=kt(()=>F("th",null,"Tags",-1)),B2={class:"help"},H2={class:"block"},z2={class:"block"},j2={key:0,class:"block"},U2=kt(()=>F("h4",{class:"is-size-4 mb-2"},"AS",-1)),V2={key:1,class:"block"},G2=kt(()=>F("h4",{class:"is-size-4 mb-2"},"Reverse DNS",-1)),K2={key:2,class:"block"},Y2=kt(()=>F("h4",{class:"is-size-4 mb-2"},"DNS records",-1)),Z2={key:3,class:"block"},X2=kt(()=>F("h4",{class:"is-size-4 mb-2"},"CPEs",-1)),q2={key:4,class:"block"},Q2=kt(()=>F("h4",{class:"is-size-4 mb-2"},"Vulnerabilities",-1)),J2={key:5,class:"block"},eA=kt(()=>F("h4",{class:"is-size-4 mb-2"},"Ports",-1)),tA={key:6,class:"block"},nA=kt(()=>F("h4",{class:"is-size-4 mb-2"},"Whois record",-1)),rA=xe({__name:"ArtifactDetail",props:{artifact:{type:Object,required:!0}},emits:["delete","refresh"],setup(e,{emit:t}){const n=e,r=t,l=je(),o=je(),d=je(),g=je(),a=m=>{d.value=m},p=()=>{d.value=void 0},s=()=>{r("delete")},i=m=>{m.queued?g.value=m:r("refresh")},u=()=>{g.value=void 0},h=ke(()=>{if(n.artifact.dataType==="domain")return`https://urlscan.io/liveshot/?url=${`http://${n.artifact.data}`}`;if(n.artifact.dataType==="url")return`https://urlscan.io/liveshot/?url=${n.artifact.data}`}),c=m=>{if(m)return`https://maps.google.co.jp/maps?output=embed&q=${m.lat},${m.long}&z=3`},f=T_();return ct(async()=>{if(n.artifact.dataType==="ip"){let m;if(n.artifact.geolocation)m=ep(n.artifact.geolocation.countryCode);else{const v=await f.perform(n.artifact.data);m=v2(v),o.value=v.countryCode}l.value=c(m)}}),(m,v)=>{var y;return G(),re(Pe,null,[d.value?(G(),Se(yt,{key:0,class:"block",error:d.value,disposable:!0,onDispose:p},null,8,["error"])):ge("",!0),g.value?(G(),Se(mo,{key:1,class:"block",message:g.value,disposable:!0,onDispose:u},null,8,["message"])):ge("",!0),F("div",y2,[F("h2",b2,we(e.artifact.id),1),F("p",w2,[se(Hf,{artifact:e.artifact,onDelete:s,onSetError:a,onSetMessage:i},null,8,["artifact"])])]),F("div",_2,[l.value||h.value?(G(),re("div",$2,[l.value?(G(),re("div",S2,[F("h4",x2,[it(" Geolocation "),F("span",C2,we(o.value||((y=e.artifact.geolocation)==null?void 0:y.countryCode)),1)]),F("iframe",{class:"mb-4",src:l.value,width:"100%",height:"240px"},null,8,A2)])):ge("",!0),h.value?(G(),re("div",k2,[E2,R2,F("img",{src:h.value,class:"liveshot",alt:"liveshot"},null,8,T2)])):ge("",!0)])):ge("",!0),F("div",L2,[M2,F("table",O2,[F("tr",null,[I2,F("td",null,we(ae(_i)(e.artifact.data,64)),1)]),F("tr",null,[N2,F("td",null,we(e.artifact.dataType),1)]),F("tr",null,[F2,F("td",null,we(e.artifact.source),1)]),F("tr",null,[D2,F("td",null,we(ae(_i)(e.artifact.query||"N/A",64)),1)]),e.artifact.tags.length>0?(G(),re("tr",P2,[W2,F("td",null,[se(Ni,{tags:e.artifact.tags,"navigate-to":"Artifacts"},null,8,["tags"]),it("/td>")])])):ge("",!0)]),F("p",B2,"Created at: "+we(e.artifact.createdAt),1)])]),F("div",H2,[se(a2,{data:e.artifact.data,type:e.artifact.dataType},null,8,["data","type"])]),F("div",z2,[e.artifact.autonomousSystem?(G(),re("div",j2,[U2,se(Hx,{autonomousSystem:e.artifact.autonomousSystem},null,8,["autonomousSystem"])])):ge("",!0),e.artifact.reverseDnsNames?(G(),re("div",V2,[G2,se(qx,{reverseDnsNames:e.artifact.reverseDnsNames},null,8,["reverseDnsNames"])])):ge("",!0),e.artifact.dnsRecords?(G(),re("div",K2,[Y2,se(Kx,{dnsRecords:e.artifact.dnsRecords},null,8,["dnsRecords"])])):ge("",!0),e.artifact.cpes?(G(),re("div",Z2,[X2,se(jx,{cpes:e.artifact.cpes},null,8,["cpes"])])):ge("",!0),e.artifact.vulnerabilities?(G(),re("div",q2,[Q2,se(Jx,{vulnerabilities:e.artifact.vulnerabilities},null,8,["vulnerabilities"])])):ge("",!0),e.artifact.ports?(G(),re("div",J2,[eA,se(Zx,{ports:e.artifact.ports},null,8,["ports"])])):ge("",!0),e.artifact.whoisRecord?(G(),re("div",tA,[nA,se(vC,{whoisRecord:e.artifact.whoisRecord},null,8,["whoisRecord"])])):ge("",!0)])],64)}}}),iA=Ti(rA,[["__scopeId","data-v-aadb0460"]]),sA=xe({__name:"ArtifactDetailWrapper",props:{id:{type:Number,required:!0}},setup(e){const t=e,n=k_(),r=Tr(),l=async()=>{await n.perform(t.id)},o=async()=>{await l()},d=async()=>{r.push("/")};return ct(async()=>{await l()}),Qe(t,async()=>{await l()}),(g,a)=>{var p,s;return G(),re(Pe,null,[ae(n).isRunning?(G(),Se(bn,{key:0})):ge("",!0),ae(n).isError?(G(),Se(yt,{key:1,error:(p=ae(n).last)==null?void 0:p.error},null,8,["error"])):ge("",!0),(s=ae(n).last)!=null&&s.value?(G(),Se(iA,{key:2,artifact:ae(n).last.value,onRefresh:o,onDelete:d},null,8,["artifact"])):ge("",!0)],64)}}}),oA=xe({__name:"ArtifactView",props:{id:{type:String,required:!0}},setup(e){const t=e,n=()=>{yn(`Artifact:${t.id} - Mihari`)};return ct(()=>{n()}),Qe(()=>t.id,()=>{n()}),(r,l)=>(G(),Se(sA,{id:parseInt(e.id)},null,8,["id"]))}}),aA={class:"box"},lA={class:"table-container"},cA={class:"table is-fullwidth"},uA=F("thead",null,[F("tr",null,[F("th",null,"Name"),F("th",null,"Type"),F("th",null,"Configured?"),F("th",null,"Items")])],-1),hA={key:0,class:"button is-success is-small ml-1"},dA={class:"icon is-small"},fA=F("span",null,"Yes",-1),pA={key:1,class:"button is-warning is-small ml-1"},gA={class:"icon is-small"},mA=F("span",null,"No",-1),vA={class:"field is-grouped is-grouped-multiline"},yA={class:"tags has-addons"},bA={class:"tag is-dark"},wA=xe({__name:"ConfigsItem",props:{configs:{type:Object,required:!0}},setup(e){return(t,n)=>{const r=Ze("font-awesome-icon");return G(),re("div",aA,[F("div",lA,[F("table",cA,[uA,F("tbody",null,[(G(!0),re(Pe,null,Ot(e.configs.results,l=>(G(),re("tr",{key:l.name},[F("td",null,we(l.name),1),F("td",null,we(l.type),1),F("td",null,[l.configured?(G(),re("button",hA,[F("span",dA,[se(r,{icon:"check"})]),fA])):(G(),re("button",pA,[F("span",gA,[se(r,{icon:"exclamation"})]),mA]))]),F("td",null,[F("div",vA,[(G(!0),re(Pe,null,Ot(l.items,(o,d)=>(G(),re("div",{class:"control",key:d},[F("div",yA,[F("span",bA,we(o.key),1),F("span",{class:Ai(["tag",{"is-success":o.value,"is-warning":!o.value}])},we(o.value||"N/A"),3)])]))),128))])])]))),128))])])])])}}}),_A=xe({__name:"ConfigsWrapper",setup(e){const t=R_();return ct(async()=>{await t.perform()}),(n,r)=>{var l,o;return G(),re(Pe,null,[ae(t).isRunning?(G(),Se(bn,{key:0})):ge("",!0),ae(t).isError?(G(),Se(yt,{key:1,error:(l=ae(t).last)==null?void 0:l.error},null,8,["error"])):ge("",!0),(o=ae(t).last)!=null&&o.value?(G(),Se(wA,{key:2,configs:ae(t).last.value},null,8,["configs"])):ge("",!0)],64)}}}),$A=xe({__name:"ConfigView",setup(e){return yn("Configuration - Mihari"),(t,n)=>(G(),Se(_A))}});var tp={exports:{}};(function(e,t){(function(){var n="ace",r=function(){return this}();!r&&typeof window<"u"&&(r=window);var l=function(s,i,u){if(typeof s!="string"){l.original?l.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(u=i),l.modules[s]||(l.payloads[s]=u,l.modules[s]=null)};l.modules={},l.payloads={};var o=function(s,i,u){if(typeof i=="string"){var h=a(s,i);if(h!=null)return u&&u(),h}else if(Object.prototype.toString.call(i)==="[object Array]"){for(var c=[],f=0,m=i.length;f<m;++f){var v=a(s,i[f]);if(v==null&&d.original)return;c.push(v)}return u&&u.apply(null,c)||!0}},d=function(s,i){var u=o("",s,i);return u==null&&d.original?d.original.apply(this,arguments):u},g=function(s,i){if(i.indexOf("!")!==-1){var u=i.split("!");return g(s,u[0])+"!"+g(s,u[1])}if(i.charAt(0)=="."){var h=s.split("/").slice(0,-1).join("/");for(i=h+"/"+i;i.indexOf(".")!==-1&&c!=i;){var c=i;i=i.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return i},a=function(s,i){i=g(s,i);var u=l.modules[i];if(!u){if(u=l.payloads[i],typeof u=="function"){var h={},c={id:i,uri:"",exports:h,packaged:!0},f=function(v,y){return o(i,v,y)},m=u(f,h,c);h=m||c.exports,l.modules[i]=h,delete l.payloads[i]}u=l.modules[i]=h||u}return u};function p(s){var i=r;s&&(r[s]||(r[s]={}),i=r[s]),(!i.define||!i.define.packaged)&&(l.original=i.define,i.define=l,i.define.packaged=!0),(!i.require||!i.require.packaged)&&(d.original=i.require,i.require=d,i.require.packaged=!0)}p(n)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(n,r,l){function o(d,g,a){Object.defineProperty(d,g,{value:a,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||o(String.prototype,"startsWith",function(d,g){return g=g||0,this.lastIndexOf(d,g)===g}),String.prototype.endsWith||o(String.prototype,"endsWith",function(d,g){var a=this;(g===void 0||g>a.length)&&(g=a.length),g-=d.length;var p=a.indexOf(d,g);return p!==-1&&p===g}),String.prototype.repeat||o(String.prototype,"repeat",function(d){for(var g="",a=this;d>0;)d&1&&(g+=a),(d>>=1)&&(a+=a);return g}),String.prototype.includes||o(String.prototype,"includes",function(d,g){return this.indexOf(d,g)!=-1}),Object.assign||(Object.assign=function(d){if(d==null)throw new TypeError("Cannot convert undefined or null to object");for(var g=Object(d),a=1;a<arguments.length;a++){var p=arguments[a];p!=null&&Object.keys(p).forEach(function(s){g[s]=p[s]})}return g}),Object.values||(Object.values=function(d){return Object.keys(d).map(function(g){return d[g]})}),Array.prototype.find||o(Array.prototype,"find",function(d){for(var g=this.length,a=arguments[1],p=0;p<g;p++){var s=this[p];if(d.call(a,s,p,this))return s}}),Array.prototype.findIndex||o(Array.prototype,"findIndex",function(d){for(var g=this.length,a=arguments[1],p=0;p<g;p++){var s=this[p];if(d.call(a,s,p,this))return p}}),Array.prototype.includes||o(Array.prototype,"includes",function(d,g){return this.indexOf(d,g)!=-1}),Array.prototype.fill||o(Array.prototype,"fill",function(d){for(var g=this,a=g.length>>>0,p=arguments[1],s=p>>0,i=s<0?Math.max(a+s,0):Math.min(s,a),u=arguments[2],h=u===void 0?a:u>>0,c=h<0?Math.max(a+h,0):Math.min(h,a);i<c;)g[i]=d,i++;return g}),Array.of||o(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(n,r,l){n("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(n,r,l){r.deepCopy=function o(d){if(typeof d!="object"||!d)return d;var g;if(Array.isArray(d)){g=[];for(var a=0;a<d.length;a++)g[a]=o(d[a]);return g}if(Object.prototype.toString.call(d)!=="[object Object]")return d;g={};for(var a in d)g[a]=o(d[a]);return g}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(n,r,l){r.last=function(g){return g[g.length-1]},r.stringReverse=function(g){return g.split("").reverse().join("")},r.stringRepeat=function(g,a){for(var p="";a>0;)a&1&&(p+=g),(a>>=1)&&(g+=g);return p};var o=/^\s\s*/,d=/\s\s*$/;r.stringTrimLeft=function(g){return g.replace(o,"")},r.stringTrimRight=function(g){return g.replace(d,"")},r.copyObject=function(g){var a={};for(var p in g)a[p]=g[p];return a},r.copyArray=function(g){for(var a=[],p=0,s=g.length;p<s;p++)g[p]&&typeof g[p]=="object"?a[p]=this.copyObject(g[p]):a[p]=g[p];return a},r.deepCopy=n("./deep_copy").deepCopy,r.arrayToMap=function(g){for(var a={},p=0;p<g.length;p++)a[g[p]]=1;return a},r.createMap=function(g){var a=Object.create(null);for(var p in g)a[p]=g[p];return a},r.arrayRemove=function(g,a){for(var p=0;p<=g.length;p++)a===g[p]&&g.splice(p,1)},r.escapeRegExp=function(g){return g.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},r.escapeHTML=function(g){return(""+g).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},r.getMatchOffsets=function(g,a){var p=[];return g.replace(a,function(s){p.push({offset:arguments[arguments.length-2],length:s.length})}),p},r.deferredCall=function(g){var a=null,p=function(){a=null,g()},s=function(i){return s.cancel(),a=setTimeout(p,i||0),s};return s.schedule=s,s.call=function(){return this.cancel(),g(),s},s.cancel=function(){return clearTimeout(a),a=null,s},s.isPending=function(){return a},s},r.delayedCall=function(g,a){var p=null,s=function(){p=null,g()},i=function(u){p==null&&(p=setTimeout(s,u||a))};return i.delay=function(u){p&&clearTimeout(p),p=setTimeout(s,u||a)},i.schedule=i,i.call=function(){this.cancel(),g()},i.cancel=function(){p&&clearTimeout(p),p=null},i.isPending=function(){return p},i},r.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},r.skipEmptyMatch=function(g,a,p){return p&&g.codePointAt(a)>65535?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 o=typeof navigator=="object"?navigator:{},d=(/mac|win|linux/i.exec(o.platform)||["other"])[0].toLowerCase(),g=o.userAgent||"",a=o.appName||"";r.isWin=d=="win",r.isMac=d=="mac",r.isLinux=d=="linux",r.isIE=a=="Microsoft Internet Explorer"||a.indexOf("MSAppHost")>=0?parseFloat((g.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((g.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),r.isOldIE=r.isIE&&r.isIE<9,r.isGecko=r.isMozilla=g.match(/ Gecko\/\d+/),r.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",r.isWebKit=parseFloat(g.split("WebKit/")[1])||void 0,r.isChrome=parseFloat(g.split(" Chrome/")[1])||void 0,r.isSafari=parseFloat(g.split(" Safari/")[1])&&!r.isChrome||void 0,r.isEdge=parseFloat(g.split(" Edge/")[1])||void 0,r.isAIR=g.indexOf("AdobeAIR")>=0,r.isAndroid=g.indexOf("Android")>=0,r.isChromeOS=g.indexOf(" CrOS ")>=0,r.isIOS=/iPad|iPhone|iPod/.test(g)&&!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 o=n("./useragent"),d="http://www.w3.org/1999/xhtml";r.buildDom=function u(h,c,f){if(typeof h=="string"&&h){var m=document.createTextNode(h);return c&&c.appendChild(m),m}if(!Array.isArray(h))return h&&h.appendChild&&c&&c.appendChild(h),h;if(typeof h[0]!="string"||!h[0]){for(var v=[],y=0;y<h.length;y++){var x=u(h[y],c,f);x&&v.push(x)}return v}var $=document.createElement(h[0]),_=h[1],b=1;_&&typeof _=="object"&&!Array.isArray(_)&&(b=2);for(var y=b;y<h.length;y++)u(h[y],$,f);return b==2&&Object.keys(_).forEach(function(A){var L=_[A];A==="class"?$.className=Array.isArray(L)?L.join(" "):L:typeof L=="function"||A=="value"||A[0]=="$"?$[A]=L:A==="ref"?f&&(f[L]=$):A==="style"?typeof L=="string"&&($.style.cssText=L):L!=null&&$.setAttribute(A,L)}),c&&c.appendChild($),$},r.getDocumentHead=function(u){return u||(u=document),u.head||u.getElementsByTagName("head")[0]||u.documentElement},r.createElement=function(u,h){return document.createElementNS?document.createElementNS(h||d,u):document.createElement(u)},r.removeChildren=function(u){u.innerHTML=""},r.createTextNode=function(u,h){var c=h?h.ownerDocument:document;return c.createTextNode(u)},r.createFragment=function(u){var h=u?u.ownerDocument:document;return h.createDocumentFragment()},r.hasCssClass=function(u,h){var c=(u.className+"").split(/\s+/g);return c.indexOf(h)!==-1},r.addCssClass=function(u,h){r.hasCssClass(u,h)||(u.className+=" "+h)},r.removeCssClass=function(u,h){for(var c=u.className.split(/\s+/g);;){var f=c.indexOf(h);if(f==-1)break;c.splice(f,1)}u.className=c.join(" ")},r.toggleCssClass=function(u,h){for(var c=u.className.split(/\s+/g),f=!0;;){var m=c.indexOf(h);if(m==-1)break;f=!1,c.splice(m,1)}return f&&c.push(h),u.className=c.join(" "),f},r.setCssClass=function(u,h,c){c?r.addCssClass(u,h):r.removeCssClass(u,h)},r.hasCssString=function(u,h){var c=0,f;if(h=h||document,f=h.querySelectorAll("style")){for(;c<f.length;)if(f[c++].id===u)return!0}},r.removeElementById=function(u,h){h=h||document,h.getElementById(u)&&h.getElementById(u).remove()};var g,a=[];r.useStrictCSP=function(u){g=u,u==!1?p():a||(a=[])};function p(){var u=a;a=null,u&&u.forEach(function(h){s(h[0],h[1])})}function s(u,h,c){if(!(typeof document>"u")){if(a){if(c)p();else if(c===!1)return a.push([u,h])}if(!g){var f=c;!c||!c.getRootNode?f=document:(f=c.getRootNode(),(!f||f==c)&&(f=document));var m=f.ownerDocument||f;if(h&&r.hasCssString(h,f))return null;h&&(u+=`
|
806
|
-
/*# sourceURL=ace/css/`+h+" */");var v=r.createElement("style");v.appendChild(m.createTextNode(u)),h&&(v.id=h),f==m&&(f=r.getDocumentHead(m)),f.insertBefore(v,f.firstChild)}}}if(r.importCssString=s,r.importCssStylsheet=function(u,h){r.buildDom(["link",{rel:"stylesheet",href:u}],r.getDocumentHead(h))},r.scrollbarWidth=function(u){var h=r.createElement("ace_inner");h.style.width="100%",h.style.minWidth="0px",h.style.height="200px",h.style.display="block";var c=r.createElement("ace_outer"),f=c.style;f.position="absolute",f.left="-10000px",f.overflow="hidden",f.width="200px",f.minWidth="0px",f.height="150px",f.display="block",c.appendChild(h);var m=u&&u.documentElement||document&&document.documentElement;if(!m)return 0;m.appendChild(c);var v=h.offsetWidth;f.overflow="scroll";var y=h.offsetWidth;return v===y&&(y=c.clientWidth),m.removeChild(c),v-y},r.computedStyle=function(u,h){return window.getComputedStyle(u,"")||{}},r.setStyle=function(u,h,c){u[h]!==c&&(u[h]=c)},r.HAS_CSS_ANIMATION=!1,r.HAS_CSS_TRANSFORMS=!1,r.HI_DPI=o.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,o.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),!o.isEdge&&typeof i.style.animationName<"u"&&(r.HAS_CSS_ANIMATION=!0),i=null}r.HAS_CSS_TRANSFORMS?r.translate=function(u,h,c){u.style.transform="translate("+Math.round(h)+"px, "+Math.round(c)+"px)"}:r.translate=function(u,h,c){u.style.top=Math.round(c)+"px",u.style.left=Math.round(h)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(n,r,l){/*
|
807
|
-
* based on code from:
|
808
|
-
*
|
809
|
-
* @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
|
810
|
-
* Available via the MIT or new BSD license.
|
811
|
-
* see: http://github.com/jrburke/requirejs for details
|
812
|
-
*/var o=n("./dom");r.get=function(d,g){var a=new XMLHttpRequest;a.open("GET",d,!0),a.onreadystatechange=function(){a.readyState===4&&g(a.responseText)},a.send(null)},r.loadScript=function(d,g){var a=o.getDocumentHead(),p=document.createElement("script");p.src=d,a.appendChild(p),p.onload=p.onreadystatechange=function(s,i){(i||!p.readyState||p.readyState=="loaded"||p.readyState=="complete")&&(p=p.onload=p.onreadystatechange=null,i||g())}},r.qualifyURL=function(d){var g=document.createElement("a");return g.href=d,g.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(n,r,l){r.inherits=function(o,d){o.super_=d,o.prototype=Object.create(d.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}})},r.mixin=function(o,d){for(var g in d)o[g]=d[g];return o},r.implement=function(o,d){r.mixin(o,d)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(n,r,l){var o={},d=function(){this.propagationStopped=!0},g=function(){this.defaultPrevented=!0};o._emit=o._dispatchEvent=function(a,p){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var s=this._eventRegistry[a]||[],i=this._defaultHandlers[a];if(!(!s.length&&!i)){(typeof p!="object"||!p)&&(p={}),p.type||(p.type=a),p.stopPropagation||(p.stopPropagation=d),p.preventDefault||(p.preventDefault=g),s=s.slice();for(var u=0;u<s.length&&(s[u](p,this),!p.propagationStopped);u++);if(i&&!p.defaultPrevented)return i(p,this)}},o._signal=function(a,p){var s=(this._eventRegistry||{})[a];if(s){s=s.slice();for(var i=0;i<s.length;i++)s[i](p,this)}},o.once=function(a,p){var s=this;if(this.on(a,function i(){s.off(a,i),p.apply(null,arguments)}),!p)return new Promise(function(i){p=i})},o.setDefaultHandler=function(a,p){var s=this._defaultHandlers;if(s||(s=this._defaultHandlers={_disabled_:{}}),s[a]){var i=s[a],u=s._disabled_[a];u||(s._disabled_[a]=u=[]),u.push(i);var h=u.indexOf(p);h!=-1&&u.splice(h,1)}s[a]=p},o.removeDefaultHandler=function(a,p){var s=this._defaultHandlers;if(s){var i=s._disabled_[a];if(s[a]==p)i&&this.setDefaultHandler(a,i.pop());else if(i){var u=i.indexOf(p);u!=-1&&i.splice(u,1)}}},o.on=o.addEventListener=function(a,p,s){this._eventRegistry=this._eventRegistry||{};var i=this._eventRegistry[a];return i||(i=this._eventRegistry[a]=[]),i.indexOf(p)==-1&&i[s?"unshift":"push"](p),p},o.off=o.removeListener=o.removeEventListener=function(a,p){this._eventRegistry=this._eventRegistry||{};var s=this._eventRegistry[a];if(s){var i=s.indexOf(p);i!==-1&&s.splice(i,1)}},o.removeAllListeners=function(a){a||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[a]=void 0),this._defaultHandlers&&(this._defaultHandlers[a]=void 0)},r.EventEmitter=o}),ace.define("ace/lib/report_error",["require","exports","module"],function(n,r,l){r.reportError=function(d,g){var a=new Error(d);a.data=g,typeof console=="object"&&console.error&&console.error(a),setTimeout(function(){throw a})}}),ace.define("ace/lib/default_english_messages",["require","exports","module"],function(n,r,l){var o={"autocomplete.popup.aria-roledescription":"Autocomplete suggestions","autocomplete.popup.aria-label":"Autocomplete suggestions","autocomplete.popup.item.aria-roledescription":"item","autocomplete.loading":"Loading...","editor.scroller.aria-roledescription":"editor","editor.scroller.aria-label":"Editor content, press Enter to start editing, press Escape to exit","editor.gutter.aria-roledescription":"editor","editor.gutter.aria-label":"Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit","error-marker.good-state":"Looks good!","prompt.recently-used":"Recently used","prompt.other-commands":"Other commands","prompt.no-matching-commands":"No matching commands","search-box.find.placeholder":"Search for","search-box.find-all.text":"All","search-box.replace.placeholder":"Replace with","search-box.replace-next.text":"Replace","search-box.replace-all.text":"All","search-box.toggle-replace.title":"Toggle Replace mode","search-box.toggle-regexp.title":"RegExp Search","search-box.toggle-case.title":"CaseSensitive Search","search-box.toggle-whole-word.title":"Whole Word Search","search-box.toggle-in-selection.title":"Search In Selection","search-box.search-counter":"$0 of $1","text-input.aria-roledescription":"editor","text-input.aria-label":"Cursor at row $0","gutter.code-folding.range.aria-label":"Toggle code folding, rows $0 through $1","gutter.code-folding.closed.aria-label":"Toggle code folding, rows $0 through $1","gutter.code-folding.open.aria-label":"Toggle code folding, row $0","gutter.code-folding.closed.title":"Unfold code","gutter.code-folding.open.title":"Fold code","gutter.annotation.aria-label.error":"Error, read annotations row $0","gutter.annotation.aria-label.warning":"Warning, read annotations row $0","gutter.annotation.aria-label.info":"Info, read annotations row $0","inline-fold.closed.title":"Unfold code","gutter-tooltip.aria-label.error.singular":"error","gutter-tooltip.aria-label.error.plural":"errors","gutter-tooltip.aria-label.warning.singular":"warning","gutter-tooltip.aria-label.warning.plural":"warnings","gutter-tooltip.aria-label.info.singular":"information message","gutter-tooltip.aria-label.info.plural":"information messages"};r.defaultEnglishMessages=o}),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/report_error","ace/lib/default_english_messages"],function(n,r,l){"no use strict";var o=n("./oop"),d=n("./event_emitter").EventEmitter,g=n("./report_error").reportError,a=n("./default_english_messages").defaultEnglishMessages,p={setOptions:function(h){Object.keys(h).forEach(function(c){this.setOption(c,h[c])},this)},getOptions:function(h){var c={};if(h)Array.isArray(h)||(c=h,h=Object.keys(c));else{var f=this.$options;h=Object.keys(f).filter(function(m){return!f[m].hidden})}return h.forEach(function(m){c[m]=this.getOption(m)},this),c},setOption:function(h,c){if(this["$"+h]!==c){var f=this.$options[h];if(!f)return s('misspelled option "'+h+'"');if(f.forwardTo)return this[f.forwardTo]&&this[f.forwardTo].setOption(h,c);f.handlesSet||(this["$"+h]=c),f&&f.set&&f.set.call(this,c)}},getOption:function(h){var c=this.$options[h];return c?c.forwardTo?this[c.forwardTo]&&this[c.forwardTo].getOption(h):c&&c.get?c.get.call(this):this["$"+h]:s('misspelled option "'+h+'"')}};function s(h){typeof console<"u"&&console.warn&&console.warn.apply(console,arguments)}var i,u=function(){function h(){this.$defaultOptions={},i=a}return h.prototype.defineOptions=function(c,f,m){return c.$options||(this.$defaultOptions[f]=c.$options={}),Object.keys(m).forEach(function(v){var y=m[v];typeof y=="string"&&(y={forwardTo:y}),y.name||(y.name=v),c.$options[y.name]=y,"initialValue"in y&&(c["$"+y.name]=y.initialValue)}),o.implement(c,p),this},h.prototype.resetOptions=function(c){Object.keys(c.$options).forEach(function(f){var m=c.$options[f];"value"in m&&c.setOption(f,m.value)})},h.prototype.setDefaultValue=function(c,f,m){if(!c){for(c in this.$defaultOptions)if(this.$defaultOptions[c][f])break;if(!this.$defaultOptions[c][f])return!1}var v=this.$defaultOptions[c]||(this.$defaultOptions[c]={});v[f]&&(v.forwardTo?this.setDefaultValue(v.forwardTo,f,m):v[f].value=m)},h.prototype.setDefaultValues=function(c,f){Object.keys(f).forEach(function(m){this.setDefaultValue(c,m,f[m])},this)},h.prototype.setMessages=function(c){i=c},h.prototype.nls=function(c,f,m){i[c]||(s("No message found for the key '"+c+"' in the provided messages, trying to find a translation for the default string '"+f+"'."),i[f]||s("No message found for the default string '"+f+"' in the provided messages. Falling back to the default English message."));var v=i[c]||i[f]||f;return m&&(v=v.replace(/\$(\$|[\d]+)/g,function(y,x){return x=="$"?"$":m[x]})),v},h}();u.prototype.warn=s,u.prototype.reportError=g,o.implement(u.prototype,d),r.AppConfig=u}),ace.define("ace/theme/textmate-css",["require","exports","module"],function(n,r,l){l.exports=`.ace-tm .ace_gutter {
|
813
|
-
background: #f0f0f0;
|
814
|
-
color: #333;
|
815
|
-
}
|
816
|
-
|
817
|
-
.ace-tm .ace_print-margin {
|
818
|
-
width: 1px;
|
819
|
-
background: #e8e8e8;
|
820
|
-
}
|
821
|
-
|
822
|
-
.ace-tm .ace_fold {
|
823
|
-
background-color: #6B72E6;
|
824
|
-
}
|
825
|
-
|
826
|
-
.ace-tm {
|
827
|
-
background-color: #FFFFFF;
|
828
|
-
color: black;
|
829
|
-
}
|
830
|
-
|
831
|
-
.ace-tm .ace_cursor {
|
832
|
-
color: black;
|
833
|
-
}
|
834
|
-
|
835
|
-
.ace-tm .ace_invisible {
|
836
|
-
color: rgb(191, 191, 191);
|
837
|
-
}
|
838
|
-
|
839
|
-
.ace-tm .ace_storage,
|
840
|
-
.ace-tm .ace_keyword {
|
841
|
-
color: blue;
|
842
|
-
}
|
843
|
-
|
844
|
-
.ace-tm .ace_constant {
|
845
|
-
color: rgb(197, 6, 11);
|
846
|
-
}
|
847
|
-
|
848
|
-
.ace-tm .ace_constant.ace_buildin {
|
849
|
-
color: rgb(88, 72, 246);
|
850
|
-
}
|
851
|
-
|
852
|
-
.ace-tm .ace_constant.ace_language {
|
853
|
-
color: rgb(88, 92, 246);
|
854
|
-
}
|
855
|
-
|
856
|
-
.ace-tm .ace_constant.ace_library {
|
857
|
-
color: rgb(6, 150, 14);
|
858
|
-
}
|
859
|
-
|
860
|
-
.ace-tm .ace_invalid {
|
861
|
-
background-color: rgba(255, 0, 0, 0.1);
|
862
|
-
color: red;
|
863
|
-
}
|
864
|
-
|
865
|
-
.ace-tm .ace_support.ace_function {
|
866
|
-
color: rgb(60, 76, 114);
|
867
|
-
}
|
868
|
-
|
869
|
-
.ace-tm .ace_support.ace_constant {
|
870
|
-
color: rgb(6, 150, 14);
|
871
|
-
}
|
872
|
-
|
873
|
-
.ace-tm .ace_support.ace_type,
|
874
|
-
.ace-tm .ace_support.ace_class {
|
875
|
-
color: rgb(109, 121, 222);
|
876
|
-
}
|
877
|
-
|
878
|
-
.ace-tm .ace_keyword.ace_operator {
|
879
|
-
color: rgb(104, 118, 135);
|
880
|
-
}
|
881
|
-
|
882
|
-
.ace-tm .ace_string {
|
883
|
-
color: rgb(3, 106, 7);
|
884
|
-
}
|
885
|
-
|
886
|
-
.ace-tm .ace_comment {
|
887
|
-
color: rgb(76, 136, 107);
|
888
|
-
}
|
889
|
-
|
890
|
-
.ace-tm .ace_comment.ace_doc {
|
891
|
-
color: rgb(0, 102, 255);
|
892
|
-
}
|
893
|
-
|
894
|
-
.ace-tm .ace_comment.ace_doc.ace_tag {
|
895
|
-
color: rgb(128, 159, 191);
|
896
|
-
}
|
897
|
-
|
898
|
-
.ace-tm .ace_constant.ace_numeric {
|
899
|
-
color: rgb(0, 0, 205);
|
900
|
-
}
|
901
|
-
|
902
|
-
.ace-tm .ace_variable {
|
903
|
-
color: rgb(49, 132, 149);
|
904
|
-
}
|
905
|
-
|
906
|
-
.ace-tm .ace_xml-pe {
|
907
|
-
color: rgb(104, 104, 91);
|
908
|
-
}
|
909
|
-
|
910
|
-
.ace-tm .ace_entity.ace_name.ace_function {
|
911
|
-
color: #0000A2;
|
912
|
-
}
|
913
|
-
|
914
|
-
|
915
|
-
.ace-tm .ace_heading {
|
916
|
-
color: rgb(12, 7, 255);
|
917
|
-
}
|
918
|
-
|
919
|
-
.ace-tm .ace_list {
|
920
|
-
color:rgb(185, 6, 144);
|
921
|
-
}
|
922
|
-
|
923
|
-
.ace-tm .ace_meta.ace_tag {
|
924
|
-
color:rgb(0, 22, 142);
|
925
|
-
}
|
926
|
-
|
927
|
-
.ace-tm .ace_string.ace_regex {
|
928
|
-
color: rgb(255, 0, 0)
|
929
|
-
}
|
930
|
-
|
931
|
-
.ace-tm .ace_marker-layer .ace_selection {
|
932
|
-
background: rgb(181, 213, 255);
|
933
|
-
}
|
934
|
-
.ace-tm.ace_multiselect .ace_selection.ace_start {
|
935
|
-
box-shadow: 0 0 3px 0px white;
|
936
|
-
}
|
937
|
-
.ace-tm .ace_marker-layer .ace_step {
|
938
|
-
background: rgb(252, 255, 0);
|
939
|
-
}
|
940
|
-
|
941
|
-
.ace-tm .ace_marker-layer .ace_stack {
|
942
|
-
background: rgb(164, 229, 101);
|
943
|
-
}
|
944
|
-
|
945
|
-
.ace-tm .ace_marker-layer .ace_bracket {
|
946
|
-
margin: -1px 0 0 -1px;
|
947
|
-
border: 1px solid rgb(192, 192, 192);
|
948
|
-
}
|
949
|
-
|
950
|
-
.ace-tm .ace_marker-layer .ace_active-line {
|
951
|
-
background: rgba(0, 0, 0, 0.07);
|
952
|
-
}
|
953
|
-
|
954
|
-
.ace-tm .ace_gutter-active-line {
|
955
|
-
background-color : #dcdcdc;
|
956
|
-
}
|
957
|
-
|
958
|
-
.ace-tm .ace_marker-layer .ace_selected-word {
|
959
|
-
background: rgb(250, 250, 255);
|
960
|
-
border: 1px solid rgb(200, 200, 250);
|
961
|
-
}
|
962
|
-
|
963
|
-
.ace-tm .ace_indent-guide {
|
964
|
-
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
|
965
|
-
}
|
966
|
-
|
967
|
-
.ace-tm .ace_indent-guide-active {
|
968
|
-
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
|
969
|
-
}
|
970
|
-
`}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(n,r,l){r.isDark=!1,r.cssClass="ace-tm",r.cssText=n("./textmate-css"),r.$id="ace/theme/textmate";var o=n("../lib/dom");o.importCssString(r.cssText,r.cssClass,!1)}),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/net","ace/lib/dom","ace/lib/app_config","ace/theme/textmate"],function(n,r,l){"no use strict";var o=n("./lib/lang"),d=n("./lib/net"),g=n("./lib/dom"),a=n("./lib/app_config").AppConfig;l.exports=r=new a;var p={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};r.get=function(h){if(!p.hasOwnProperty(h))throw new Error("Unknown config key: "+h);return p[h]},r.set=function(h,c){if(p.hasOwnProperty(h))p[h]=c;else if(this.setDefaultValue("",h,c)==!1)throw new Error("Unknown config key: "+h);h=="useStrictCSP"&&g.useStrictCSP(c)},r.all=function(){return o.copyObject(p)},r.$modes={},r.moduleUrl=function(h,c){if(p.$moduleUrls[h])return p.$moduleUrls[h];var f=h.split("/");c=c||f[f.length-2]||"";var m=c=="snippets"?"/":"-",v=f[f.length-1];if(c=="worker"&&m=="-"){var y=new RegExp("^"+c+"[\\-_]|[\\-_]"+c+"$","g");v=v.replace(y,"")}(!v||v==c)&&f.length>1&&(v=f[f.length-2]);var x=p[c+"Path"];return x==null?x=p.basePath:m=="/"&&(c=m=""),x&&x.slice(-1)!="/"&&(x+="/"),x+c+m+v+this.get("suffix")},r.setModuleUrl=function(h,c){return p.$moduleUrls[h]=c};var s=function(h,c){if(h==="ace/theme/textmate"||h==="./theme/textmate")return c(null,n("./theme/textmate"));if(i)return i(h,c);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,c){var f;if(Array.isArray(h))var m=h[0],v=h[1];else if(typeof h=="string")var v=h;var y=function(x){if(x&&!r.$loading[v])return c&&c(x);if(r.$loading[v]||(r.$loading[v]=[]),r.$loading[v].push(c),!(r.$loading[v].length>1)){var $=function(){s(v,function(_,b){b&&(r.$loaded[v]=b),r._emit("load.module",{name:v,module:b});var A=r.$loading[v];r.$loading[v]=null,A.forEach(function(L){L&&L(b)})})};if(!r.get("packaged"))return $();d.loadScript(r.moduleUrl(v,m),$),u()}};if(r.dynamicModules[v])r.dynamicModules[v]().then(function(x){x.default?y(x.default):y(x)});else{try{f=this.$require(v)}catch{}y(f||r.$loaded[v])}},r.$require=function(h){if(typeof l.require=="function"){var c="require";return l[c](h)}},r.setModuleLoader=function(h,c){r.dynamicModules[h]=c};var u=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"),u=function(){})};r.version="1.33.0"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(n,r,l){n("./lib/fixoldbrowsers");var o=n("./config");o.setLoader(function(p,s){n([p],function(i){s(null,i)})});var d=function(){return this||typeof window<"u"&&window}();l.exports=function(p){o.init=g,o.$require=n,p.require=n},g(!0);function g(p){if(!(!d||!d.document)){o.set("packaged",p||n.packaged||l.packaged||d.define&&(void 0).packaged);var s={},i="",u=document.currentScript||document._currentScript,h=u&&u.ownerDocument||document;u&&u.src&&(i=u.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var c=h.getElementsByTagName("script"),f=0;f<c.length;f++){var m=c[f],v=m.src||m.getAttribute("src");if(v){for(var y=m.attributes,x=0,$=y.length;x<$;x++){var _=y[x];_.name.indexOf("data-ace-")===0&&(s[a(_.name.replace(/^data-ace-/,""))]=_.value)}var b=v.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);b&&(i=b[1])}}i&&(s.base=s.base||i,s.packaged=!0),s.basePath=s.base,s.workerPath=s.workerPath||s.base,s.modePath=s.modePath||s.base,s.themePath=s.themePath||s.base,delete s.base;for(var A in s)typeof s[A]<"u"&&o.set(A,s[A])}}function a(p){return p.replace(/-(.)/g,function(s,i){return i.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(n,r,l){var o=function(){function d(g,a,p,s){this.start={row:g,column:a},this.end={row:p,column:s}}return d.prototype.isEqual=function(g){return this.start.row===g.start.row&&this.end.row===g.end.row&&this.start.column===g.start.column&&this.end.column===g.end.column},d.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},d.prototype.contains=function(g,a){return this.compare(g,a)==0},d.prototype.compareRange=function(g){var a,p=g.end,s=g.start;return a=this.compare(p.row,p.column),a==1?(a=this.compare(s.row,s.column),a==1?2:a==0?1:0):a==-1?-2:(a=this.compare(s.row,s.column),a==-1?-1:a==1?42:0)},d.prototype.comparePoint=function(g){return this.compare(g.row,g.column)},d.prototype.containsRange=function(g){return this.comparePoint(g.start)==0&&this.comparePoint(g.end)==0},d.prototype.intersects=function(g){var a=this.compareRange(g);return a==-1||a==0||a==1},d.prototype.isEnd=function(g,a){return this.end.row==g&&this.end.column==a},d.prototype.isStart=function(g,a){return this.start.row==g&&this.start.column==a},d.prototype.setStart=function(g,a){typeof g=="object"?(this.start.column=g.column,this.start.row=g.row):(this.start.row=g,this.start.column=a)},d.prototype.setEnd=function(g,a){typeof g=="object"?(this.end.column=g.column,this.end.row=g.row):(this.end.row=g,this.end.column=a)},d.prototype.inside=function(g,a){return this.compare(g,a)==0?!(this.isEnd(g,a)||this.isStart(g,a)):!1},d.prototype.insideStart=function(g,a){return this.compare(g,a)==0?!this.isEnd(g,a):!1},d.prototype.insideEnd=function(g,a){return this.compare(g,a)==0?!this.isStart(g,a):!1},d.prototype.compare=function(g,a){return!this.isMultiLine()&&g===this.start.row?a<this.start.column?-1:a>this.end.column?1:0:g<this.start.row?-1:g>this.end.row?1:this.start.row===g?a>=this.start.column?0:-1:this.end.row===g?a<=this.end.column?0:1:0},d.prototype.compareStart=function(g,a){return this.start.row==g&&this.start.column==a?-1:this.compare(g,a)},d.prototype.compareEnd=function(g,a){return this.end.row==g&&this.end.column==a?1:this.compare(g,a)},d.prototype.compareInside=function(g,a){return this.end.row==g&&this.end.column==a?1:this.start.row==g&&this.start.column==a?-1:this.compare(g,a)},d.prototype.clipRows=function(g,a){if(this.end.row>a)var p={row:a+1,column:0};else if(this.end.row<g)var p={row:g,column:0};if(this.start.row>a)var s={row:a+1,column:0};else if(this.start.row<g)var s={row:g,column:0};return d.fromPoints(s||this.start,p||this.end)},d.prototype.extend=function(g,a){var p=this.compare(g,a);if(p==0)return this;if(p==-1)var s={row:g,column:a};else var i={row:g,column:a};return d.fromPoints(s||this.start,i||this.end)},d.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},d.prototype.isMultiLine=function(){return this.start.row!==this.end.row},d.prototype.clone=function(){return d.fromPoints(this.start,this.end)},d.prototype.collapseRows=function(){return this.end.column==0?new d(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new d(this.start.row,0,this.end.row,0)},d.prototype.toScreenRange=function(g){var a=g.documentToScreenPosition(this.start),p=g.documentToScreenPosition(this.end);return new d(a.row,a.column,p.row,p.column)},d.prototype.moveBy=function(g,a){this.start.row+=g,this.start.column+=a,this.end.row+=g,this.end.column+=a},d}();o.fromPoints=function(d,g){return new o(d.row,d.column,g.row,g.column)},o.comparePoints=function(d,g){return d.row-g.row||d.column-g.column},r.Range=o}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(n,r,l){/*! @license
|
971
|
-
==========================================================================
|
972
|
-
SproutCore -- JavaScript Application Framework
|
973
|
-
copyright 2006-2009, Sprout Systems Inc., Apple Inc. and contributors.
|
974
|
-
|
975
|
-
Permission is hereby granted, free of charge, to any person obtaining a
|
976
|
-
copy of this software and associated documentation files (the "Software"),
|
977
|
-
to deal in the Software without restriction, including without limitation
|
978
|
-
the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
979
|
-
and/or sell copies of the Software, and to permit persons to whom the
|
980
|
-
Software is furnished to do so, subject to the following conditions:
|
981
|
-
|
982
|
-
The above copyright notice and this permission notice shall be included in
|
983
|
-
all copies or substantial portions of the Software.
|
984
|
-
|
985
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
986
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
987
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
988
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
989
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
990
|
-
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
991
|
-
DEALINGS IN THE SOFTWARE.
|
992
|
-
|
993
|
-
SproutCore and the SproutCore logo are trademarks of Sprout Systems, Inc.
|
994
|
-
|
995
|
-
For more information about SproutCore, visit http://www.sproutcore.com
|
996
|
-
|
997
|
-
|
998
|
-
==========================================================================
|
999
|
-
@license */var o=n("./oop"),d=function(){var g={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}};g.PRINTABLE_KEYS[173]="-";var a,p;for(p in g.FUNCTION_KEYS)a=g.FUNCTION_KEYS[p].toLowerCase(),g[a]=parseInt(p,10);for(p in g.PRINTABLE_KEYS)a=g.PRINTABLE_KEYS[p].toLowerCase(),g[a]=parseInt(p,10);return o.mixin(g,g.MODIFIER_KEYS),o.mixin(g,g.PRINTABLE_KEYS),o.mixin(g,g.FUNCTION_KEYS),g.enter=g.return,g.escape=g.esc,g.del=g.delete,function(){for(var s=["cmd","ctrl","alt","shift"],i=Math.pow(2,s.length);i--;)g.KEY_MODS[i]=s.filter(function(u){return i&g.KEY_MODS[u]}).join("-")+"-"}(),g.KEY_MODS[0]="",g.KEY_MODS[-1]="input-",g}();o.mixin(r,d),r.default=r,r.keyCodeToString=function(g){var a=d[g];return typeof a!="string"&&(a=String.fromCharCode(g)),a.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(n,r,l){var o=n("./keys"),d=n("./useragent"),g=null,a=0,p;function s(){p=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return p={passive:!1},!0}})}catch{}}function i(){return p==null&&s(),p}function u(x,$,_){this.elem=x,this.type=$,this.callback=_}u.prototype.destroy=function(){c(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var h=r.addListener=function(x,$,_,b){x.addEventListener($,_,i()),b&&b.$toDestroy.push(new u(x,$,_))},c=r.removeListener=function(x,$,_){x.removeEventListener($,_,i())};r.stopEvent=function(x){return r.stopPropagation(x),r.preventDefault(x),!1},r.stopPropagation=function(x){x.stopPropagation&&x.stopPropagation()},r.preventDefault=function(x){x.preventDefault&&x.preventDefault()},r.getButton=function(x){return x.type=="dblclick"?0:x.type=="contextmenu"||d.isMac&&x.ctrlKey&&!x.altKey&&!x.shiftKey?2:x.button},r.capture=function(x,$,_){var b=x&&x.ownerDocument||document;function A(L){$&&$(L),_&&_(L),c(b,"mousemove",$),c(b,"mouseup",A),c(b,"dragstart",A)}return h(b,"mousemove",$),h(b,"mouseup",A),h(b,"dragstart",A),A},r.addMouseWheelListener=function(x,$,_){h(x,"wheel",function(b){var A=.15,L=b.deltaX||0,k=b.deltaY||0;switch(b.deltaMode){case b.DOM_DELTA_PIXEL:b.wheelX=L*A,b.wheelY=k*A;break;case b.DOM_DELTA_LINE:var M=15;b.wheelX=L*M,b.wheelY=k*M;break;case b.DOM_DELTA_PAGE:var C=150;b.wheelX=L*C,b.wheelY=k*C;break}$(b)},_)},r.addMultiMouseDownListener=function(x,$,_,b,A){var L=0,k,M,C,R={2:"dblclick",3:"tripleclick",4:"quadclick"};function S(w){if(r.getButton(w)!==0?L=0:w.detail>1?(L++,L>4&&(L=1)):L=1,d.isIE){var E=Math.abs(w.clientX-k)>5||Math.abs(w.clientY-M)>5;(!C||E)&&(L=1),C&&clearTimeout(C),C=setTimeout(function(){C=null},$[L-1]||600),L==1&&(k=w.clientX,M=w.clientY)}if(w._clicks=L,_[b]("mousedown",w),L>4)L=0;else if(L>1)return _[b](R[L],w)}Array.isArray(x)||(x=[x]),x.forEach(function(w){h(w,"mousedown",S,A)})};function f(x){return 0|(x.ctrlKey?1:0)|(x.altKey?2:0)|(x.shiftKey?4:0)|(x.metaKey?8:0)}r.getModifierString=function(x){return o.KEY_MODS[f(x)]};function m(x,$,_){var b=f($);if(!d.isMac&&g){if($.getModifierState&&($.getModifierState("OS")||$.getModifierState("Win"))&&(b|=8),g.altGr)if((3&b)!=3)g.altGr=0;else return;if(_===18||_===17){var A=$.location;if(_===17&&A===1)g[_]==1&&(a=$.timeStamp);else if(_===18&&b===3&&A===2){var L=$.timeStamp-a;L<50&&(g.altGr=!0)}}}if(_ in o.MODIFIER_KEYS&&(_=-1),!(!b&&_===13&&$.location===3&&(x($,b,-_),$.defaultPrevented))){if(d.isChromeOS&&b&8){if(x($,b,_),$.defaultPrevented)return;b&=-9}return!b&&!(_ in o.FUNCTION_KEYS)&&!(_ in o.PRINTABLE_KEYS)?!1:x($,b,_)}}r.addCommandKeyListener=function(x,$,_){var b=null;h(x,"keydown",function(A){g[A.keyCode]=(g[A.keyCode]||0)+1;var L=m($,A,A.keyCode);return b=A.defaultPrevented,L},_),h(x,"keypress",function(A){b&&(A.ctrlKey||A.altKey||A.shiftKey||A.metaKey)&&(r.stopEvent(A),b=null)},_),h(x,"keyup",function(A){g[A.keyCode]=null},_),g||(v(),h(window,"focus",v))};function v(){g=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!d.isOldIE){var y=1;r.nextTick=function(x,$){$=$||window;var _="zero-timeout-message-"+y++,b=function(A){A.data==_&&(r.stopPropagation(A),c($,"message",b),x())};h($,"message",b),$.postMessage(_,"*")}}r.$idleBlocked=!1,r.onIdle=function(x,$){return setTimeout(function _(){r.$idleBlocked?setTimeout(_,100):x()},$)},r.$idleBlockId=null,r.blockIdle=function(x){r.$idleBlockId&&clearTimeout(r.$idleBlockId),r.$idleBlocked=!0,r.$idleBlockId=setTimeout(function(){r.$idleBlocked=!1},x||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(x){setTimeout(x,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(n,r,l){var o;l.exports={lineMode:!1,pasteCancelled:function(){return o&&o>Date.now()-50?!0:o=!1},cancel:function(){o=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 o=n("../lib/event"),d=n("../config").nls,g=n("../lib/useragent"),a=n("../lib/dom"),p=n("../lib/lang"),s=n("../clipboard"),i=g.isChrome<18,u=g.isIE,h=g.isChrome>63,c=400,f=n("../lib/keys"),m=f.KEY_MODS,v=g.isIOS,y=v?/\s/:/\n/,x=g.isMobile,$;$=function(_,b){var A=a.createElement("textarea");A.className="ace_text-input",A.setAttribute("wrap","off"),A.setAttribute("autocorrect","off"),A.setAttribute("autocapitalize","off"),A.setAttribute("spellcheck","false"),A.style.opacity="0",_.insertBefore(A,_.firstChild);var L=!1,k=!1,M=!1,C=!1,R="";x||(A.style.fontSize="1px");var S=!1,w=!1,E="",T=0,O=0,I=0,N=Number.MAX_SAFE_INTEGER,P=Number.MIN_SAFE_INTEGER,H=0;try{var V=document.activeElement===A}catch{}this.setNumberOfExtraLines=function(X){if(N=Number.MAX_SAFE_INTEGER,P=Number.MIN_SAFE_INTEGER,X<0){H=0;return}H=X},this.setAriaOptions=function(X){if(X.activeDescendant?(A.setAttribute("aria-haspopup","true"),A.setAttribute("aria-autocomplete",X.inline?"both":"list"),A.setAttribute("aria-activedescendant",X.activeDescendant)):(A.setAttribute("aria-haspopup","false"),A.setAttribute("aria-autocomplete","both"),A.removeAttribute("aria-activedescendant")),X.role&&A.setAttribute("role",X.role),X.setLabel&&(A.setAttribute("aria-roledescription",d("text-input.aria-roledescription","editor")),b.session)){var oe=b.session.selection.cursor.row;A.setAttribute("aria-label",d("text-input.aria-label","Cursor at row $0",[oe+1]))}},this.setAriaOptions({role:"textbox"}),o.addListener(A,"blur",function(X){w||(b.onBlur(X),V=!1)},b),o.addListener(A,"focus",function(X){if(!w){if(V=!0,g.isEdge)try{if(!document.hasFocus())return}catch{}b.onFocus(X),g.isEdge?setTimeout(B):B()}},b),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:b.renderer.enableKeyboardAccessibility}),R||h||this.$focusScroll=="browser")return A.focus({preventScroll:!0});var X=A.style.top;A.style.position="fixed",A.style.top="0px";try{var oe=A.getBoundingClientRect().top!=0}catch{return}var de=[];if(oe)for(var _e=A.parentElement;_e&&_e.nodeType==1;)de.push(_e),_e.setAttribute("ace_nocontext","true"),!_e.parentElement&&_e.getRootNode?_e=_e.getRootNode().host:_e=_e.parentElement;A.focus({preventScroll:!0}),oe&&de.forEach(function(Me){Me.removeAttribute("ace_nocontext")}),setTimeout(function(){A.style.position="",A.style.top=="0px"&&(A.style.top=X)},0)},this.blur=function(){A.blur()},this.isFocused=function(){return V},b.on("beforeEndOperation",function(){var X=b.curOp,oe=X&&X.command&&X.command.name;if(oe!="insertstring"){var de=oe&&(X.docChanged||X.selectionChanged);M&&de&&(E=A.value="",le()),B()}});var j=function(X,oe){for(var de=oe,_e=1;_e<=X-N&&_e<2*H+1;_e++)de+=b.session.getLine(X-_e).length+1;return de},B=v?function(X){if(!(!V||L&&!X||C)){X||(X="");var oe=`
|
1000
|
-
ab`+X+`cde fg
|
1001
|
-
`;oe!=A.value&&(A.value=E=oe);var de=4,_e=4+(X.length||(b.selection.isEmpty()?0:1));(T!=de||O!=_e)&&A.setSelectionRange(de,_e),T=de,O=_e}}:function(){if(!(M||C)&&!(!V&&!Z)){M=!0;var X=0,oe=0,de="";if(b.session){var _e=b.selection,Me=_e.getRange(),Be=_e.cursor.row;Be===P+1?(N=P+1,P=N+2*H):Be===N-1?(P=N-1,N=P-2*H):(Be<N-1||Be>P+1)&&(N=Be>H?Be-H:0,P=Be>H?Be+H:2*H);for(var qe=[],et=N;et<=P;et++)qe.push(b.session.getLine(et));if(de=qe.join(`
|
1002
|
-
`),X=j(Me.start.row,Me.start.column),oe=j(Me.end.row,Me.end.column),Me.start.row<N){var Ke=b.session.getLine(N-1);X=Me.start.row<N-1?0:X,oe+=Ke.length+1,de=Ke+`
|
1003
|
-
`+de}else if(Me.end.row>P){var Ue=b.session.getLine(P+1);oe=Me.end.row>P+1?Ue.length:Me.end.column,oe+=de.length+1,de=de+`
|
1004
|
-
`+Ue}else x&&Be>0&&(de=`
|
1005
|
-
`+de,oe+=1,X+=1);de.length>c&&(X<c&&oe<c?de=de.slice(0,c):(de=`
|
1006
|
-
`,X==oe?X=oe=0:(X=0,oe=1)));var Xe=de+`
|
1007
|
-
|
1008
|
-
`;Xe!=E&&(A.value=E=Xe,T=O=Xe.length)}if(Z&&(T=A.selectionStart,O=A.selectionEnd),O!=oe||T!=X||A.selectionEnd!=O)try{A.setSelectionRange(X,oe),T=X,O=oe}catch{}M=!1}};this.resetSelection=B,V&&b.onFocus();var U=function(X){return X.selectionStart===0&&X.selectionEnd>=E.length&&X.value===E&&E&&X.selectionEnd!==O},q=function(X){M||(L?L=!1:U(A)?(b.selectAll(),B()):x&&A.selectionStart!=T&&B())},z=null;this.setInputHandler=function(X){z=X},this.getInputHandler=function(){return z};var Z=!1,Y=function(X,oe){if(Z&&(Z=!1),k)return B(),X&&b.onPaste(X),k=!1,"";for(var de=A.selectionStart,_e=A.selectionEnd,Me=T,Be=E.length-O,qe=X,et=X.length-de,Ke=X.length-_e,Ue=0;Me>0&&E[Ue]==X[Ue];)Ue++,Me--;for(qe=qe.slice(Ue),Ue=1;Be>0&&E.length-Ue>T-1&&E[E.length-Ue]==X[X.length-Ue];)Ue++,Be--;et-=Ue-1,Ke-=Ue-1;var Xe=qe.length-Ue+1;if(Xe<0&&(Me=-Xe,Xe=0),qe=qe.slice(0,Xe),!oe&&!qe&&!et&&!Me&&!Be&&!Ke)return"";C=!0;var bt=!1;return g.isAndroid&&qe==". "&&(qe=" ",bt=!0),qe&&!Me&&!Be&&!et&&!Ke||S?b.onTextInput(qe):b.onTextInput(qe,{extendLeft:Me,extendRight:Be,restoreStart:et,restoreEnd:Ke}),C=!1,E=X,T=de,O=_e,I=Ke,bt?`
|
1009
|
-
`:qe},Q=function(X){if(M)return J();if(X&&X.inputType){if(X.inputType=="historyUndo")return b.execCommand("undo");if(X.inputType=="historyRedo")return b.execCommand("redo")}var oe=A.value,de=Y(oe,!0);(oe.length>c+100||y.test(de)||x&&T<1&&T==O)&&B()},he=function(X,oe,de){var _e=X.clipboardData||window.clipboardData;if(!(!_e||i)){var Me=u||de?"Text":"text/plain";try{return oe?_e.setData(Me,oe)!==!1:_e.getData(Me)}catch(Be){if(!de)return he(Be,oe,!0)}}},Ce=function(X,oe){var de=b.getCopyText();if(!de)return o.preventDefault(X);he(X,de)?(v&&(B(de),L=de,setTimeout(function(){L=!1},10)),oe?b.onCut():b.onCopy(),o.preventDefault(X)):(L=!0,A.value=de,A.select(),setTimeout(function(){L=!1,B(),oe?b.onCut():b.onCopy()}))},D=function(X){Ce(X,!0)},W=function(X){Ce(X,!1)},K=function(X){var oe=he(X);s.pasteCancelled()||(typeof oe=="string"?(oe&&b.onPaste(oe,X),g.isIE&&setTimeout(B),o.preventDefault(X)):(A.value="",k=!0))};o.addCommandKeyListener(A,function(X,oe,de){if(!M)return b.onCommandKey(X,oe,de)},b),o.addListener(A,"select",q,b),o.addListener(A,"input",Q,b),o.addListener(A,"cut",D,b),o.addListener(A,"copy",W,b),o.addListener(A,"paste",K,b),(!("oncut"in A)||!("oncopy"in A)||!("onpaste"in A))&&o.addListener(_,"keydown",function(X){if(!(g.isMac&&!X.metaKey||!X.ctrlKey))switch(X.keyCode){case 67:W(X);break;case 86:K(X);break;case 88:D(X);break}},b);var ee=function(X){if(!(M||!b.onCompositionStart||b.$readOnly)&&(M={},!S)){X.data&&(M.useTextareaForIME=!1),setTimeout(J,0),b._signal("compositionStart"),b.on("mousedown",pe);var oe=b.getSelectionRange();oe.end.row=oe.start.row,oe.end.column=oe.start.column,M.markerRange=oe,M.selectionStart=T,b.onCompositionStart(M),M.useTextareaForIME?(E=A.value="",T=0,O=0):(A.msGetInputContext&&(M.context=A.msGetInputContext()),A.getInputContext&&(M.context=A.getInputContext()))}},J=function(){if(!(!M||!b.onCompositionUpdate||b.$readOnly)){if(S)return pe();if(M.useTextareaForIME)b.onCompositionUpdate(A.value);else{var X=A.value;Y(X),M.markerRange&&(M.context&&(M.markerRange.start.column=M.selectionStart=M.context.compositionStartOffset),M.markerRange.end.column=M.markerRange.start.column+O-M.selectionStart+I)}}},le=function(X){!b.onCompositionEnd||b.$readOnly||(M=!1,b.onCompositionEnd(),b.off("mousedown",pe),X&&Q())};function pe(){w=!0,A.blur(),A.focus(),w=!1}var ce=p.delayedCall(J,50).schedule.bind(null,null);function fe(X){X.keyCode==27&&A.value.length<A.selectionStart&&(M||(E=A.value),T=O=-1,B()),ce()}o.addListener(A,"compositionstart",ee,b),o.addListener(A,"compositionupdate",J,b),o.addListener(A,"keyup",fe,b),o.addListener(A,"keydown",ce,b),o.addListener(A,"compositionend",le,b),this.getElement=function(){return A},this.setCommandMode=function(X){S=X,A.readOnly=!1},this.setReadOnly=function(X){S||(A.readOnly=X)},this.setCopyWithEmptySelection=function(X){},this.onContextMenu=function(X){Z=!0,B(),b._emit("nativecontextmenu",{target:b,domEvent:X}),this.moveToMouse(X,!0)},this.moveToMouse=function(X,oe){R||(R=A.style.cssText),A.style.cssText=(oe?"z-index:100000;":"")+(g.isIE?"opacity:0.1;":"")+"text-indent: -"+(T+O)*b.renderer.characterWidth*.5+"px;";var de=b.container.getBoundingClientRect(),_e=a.computedStyle(b.container),Me=de.top+(parseInt(_e.borderTopWidth)||0),Be=de.left+(parseInt(de.borderLeftWidth)||0),qe=de.bottom-Me-A.clientHeight-2,et=function(Ke){a.translate(A,Ke.clientX-Be-2,Math.min(Ke.clientY-Me-2,qe))};et(X),X.type=="mousedown"&&(b.renderer.$isMousePressed=!0,clearTimeout(ie),g.isWin&&o.capture(b.container,et,me))},this.onContextMenuClose=me;var ie;function me(){clearTimeout(ie),ie=setTimeout(function(){R&&(A.style.cssText=R,R=""),b.renderer.$isMousePressed=!1,b.renderer.$keepTextAreaAtCursor&&b.renderer.$moveTextAreaToCursor()},0)}var Ee=function(X){b.textInput.onContextMenu(X),me()};o.addListener(A,"mouseup",Ee,b),o.addListener(A,"mousedown",function(X){X.preventDefault(),me()},b),o.addListener(b.renderer.scroller,"contextmenu",Ee,b),o.addListener(A,"contextmenu",Ee,b),v&&Ae(_,b,A);function Ae(X,oe,de){var _e=null,Me=!1;de.addEventListener("keydown",function(qe){_e&&clearTimeout(_e),Me=!0},!0),de.addEventListener("keyup",function(qe){_e=setTimeout(function(){Me=!1},100)},!0);var Be=function(qe){if(document.activeElement===de&&!(Me||M||oe.$mouseHandler.isMousePressed)&&!L){var et=de.selectionStart,Ke=de.selectionEnd,Ue=null,Xe=0;if(et==0?Ue=f.up:et==1?Ue=f.home:Ke>O&&E[Ke]==`
|
1010
|
-
`?Ue=f.end:et<T&&E[et-1]==" "?(Ue=f.left,Xe=m.option):et<T||et==T&&O!=T&&et==Ke?Ue=f.left:Ke>O&&E.slice(0,Ke).split(`
|
1011
|
-
`).length>2?Ue=f.down:Ke>O&&E[Ke-1]==" "?(Ue=f.right,Xe=m.option):(Ke>O||Ke==O&&O!=T&&et==Ke)&&(Ue=f.right),et!==Ke&&(Xe|=m.shift),Ue){var bt=oe.onCommandKey({},Xe,Ue);if(!bt&&oe.commands){Ue=f.keyCodeToString(Ue);var Or=oe.commands.findKeyCommand(Xe,Ue);Or&&oe.execCommand(Or)}T=et,O=Ke,B("")}}};document.addEventListener("selectionchange",Be),oe.on("destroy",function(){document.removeEventListener("selectionchange",Be)})}this.destroy=function(){A.parentElement&&A.parentElement.removeChild(A)}},r.TextInput=$,r.$setUserAgentForTests=function(_,b){x=_,v=b}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(n,r,l){var o=n("../lib/useragent"),d=0,g=550,a=function(){function i(u){u.$clickSelection=null;var h=u.editor;h.setDefaultHandler("mousedown",this.onMouseDown.bind(u)),h.setDefaultHandler("dblclick",this.onDoubleClick.bind(u)),h.setDefaultHandler("tripleclick",this.onTripleClick.bind(u)),h.setDefaultHandler("quadclick",this.onQuadClick.bind(u)),h.setDefaultHandler("mousewheel",this.onMouseWheel.bind(u));var c=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];c.forEach(function(f){u[f]=this[f]},this),u.selectByLines=this.extendSelectionBy.bind(u,"getLineRange"),u.selectByWords=this.extendSelectionBy.bind(u,"getWordRange")}return i.prototype.onMouseDown=function(u){var h=u.inSelection(),c=u.getDocumentPosition();this.mousedownEvent=u;var f=this.editor,m=u.getButton();if(m!==0){var v=f.getSelectionRange(),y=v.isEmpty();(y||m==1)&&f.selection.moveToPosition(c),m==2&&(f.textInput.onContextMenu(u.domEvent),o.isMozilla||u.preventDefault());return}if(this.mousedownEvent.time=Date.now(),h&&!f.isFocused()&&(f.focus(),this.$focusTimeout&&!this.$clickSelection&&!f.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(u);return}return this.captureMouse(u),this.startSelect(c,u.domEvent._clicks>1),u.preventDefault()},i.prototype.startSelect=function(u,h){u=u||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var c=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?c.selection.selectToPosition(u):h||c.selection.moveToPosition(u),h||this.select(),c.setStyle("ace_selecting"),this.setState("select"))},i.prototype.select=function(){var u,h=this.editor,c=h.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var f=this.$clickSelection.comparePoint(c);if(f==-1)u=this.$clickSelection.end;else if(f==1)u=this.$clickSelection.start;else{var m=s(this.$clickSelection,c);c=m.cursor,u=m.anchor}h.selection.setSelectionAnchor(u.row,u.column)}h.selection.selectToPosition(c),h.renderer.scrollCursorIntoView()},i.prototype.extendSelectionBy=function(u){var h,c=this.editor,f=c.renderer.screenToTextCoordinates(this.x,this.y),m=c.selection[u](f.row,f.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!=f.row||m.end.column!=f.column)&&(f=m.start);else if(y==1&&v>=0)h=this.$clickSelection.start,(m.start.row!=f.row||m.start.column!=f.column)&&(f=m.end);else if(v==-1&&y==1)f=m.end,h=m.start;else{var x=s(this.$clickSelection,f);f=x.cursor,h=x.anchor}c.selection.setSelectionAnchor(h.row,h.column)}c.selection.selectToPosition(f),c.renderer.scrollCursorIntoView()},i.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},i.prototype.focusWait=function(){var u=p(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),h=Date.now();(u>d||h-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},i.prototype.onDoubleClick=function(u){var h=u.getDocumentPosition(),c=this.editor,f=c.session,m=f.getBracketRange(h);m?(m.isEmpty()&&(m.start.column--,m.end.column++),this.setState("select")):(m=c.selection.getWordRange(h.row,h.column),this.setState("selectByWords")),this.$clickSelection=m,this.select()},i.prototype.onTripleClick=function(u){var h=u.getDocumentPosition(),c=this.editor;this.setState("selectByLines");var f=c.getSelectionRange();f.isMultiLine()&&f.contains(h.row,h.column)?(this.$clickSelection=c.selection.getLineRange(f.start.row),this.$clickSelection.end=c.selection.getLineRange(f.end.row).end):this.$clickSelection=c.selection.getLineRange(h.row),this.select()},i.prototype.onQuadClick=function(u){var h=this.editor;h.selectAll(),this.$clickSelection=h.getSelectionRange(),this.setState("selectAll")},i.prototype.onMouseWheel=function(u){if(!u.getAccelKey()){u.getShiftKey()&&u.wheelY&&!u.wheelX&&(u.wheelX=u.wheelY,u.wheelY=0);var h=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var c=this.$lastScroll,f=u.domEvent.timeStamp,m=f-c.t,v=m?u.wheelX/m:c.vx,y=m?u.wheelY/m:c.vy;m<g&&(v=(v+c.vx)/2,y=(y+c.vy)/2);var x=Math.abs(v/y),$=!1;if(x>=1&&h.renderer.isScrollableBy(u.wheelX*u.speed,0)&&($=!0),x<=1&&h.renderer.isScrollableBy(0,u.wheelY*u.speed)&&($=!0),$)c.allowed=f;else if(f-c.allowed<g){var _=Math.abs(v)<=1.5*Math.abs(c.vx)&&Math.abs(y)<=1.5*Math.abs(c.vy);_?($=!0,c.allowed=f):c.allowed=0}if(c.t=f,c.vx=v,c.vy=y,$)return h.renderer.scrollBy(u.wheelX*u.speed,u.wheelY*u.speed),u.stop()}},i}();a.prototype.selectEnd=a.prototype.selectByLinesEnd,a.prototype.selectAllEnd=a.prototype.selectByLinesEnd,a.prototype.selectByWordsEnd=a.prototype.selectByLinesEnd,r.DefaultHandlers=a;function p(i,u,h,c){return Math.sqrt(Math.pow(h-i,2)+Math.pow(c-u,2))}function s(i,u){if(i.start.row==i.end.row)var h=2*u.column-i.start.column-i.end.column;else if(i.start.row==i.end.row-1&&!i.start.column&&!i.end.column)var h=u.column-4;else var h=2*u.row-i.start.row-i.end.row;return h<0?{cursor:i.start,anchor:i.end}:{cursor:i.end,anchor:i.start}}}),ace.define("ace/lib/scroll",["require","exports","module"],function(n,r,l){r.preventParentScroll=function(d){d.stopPropagation();var g=d.currentTarget,a=g.scrollHeight>g.clientHeight;a||d.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(n,r,l){var o=this&&this.__extends||function(){var f=function(m,v){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,x){y.__proto__=x}||function(y,x){for(var $ in x)Object.prototype.hasOwnProperty.call(x,$)&&(y[$]=x[$])},f(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");f(m,v);function y(){this.constructor=m}m.prototype=v===null?Object.create(v):(y.prototype=v.prototype,new y)}}(),d=this&&this.__values||function(f){var m=typeof Symbol=="function"&&Symbol.iterator,v=m&&f[m],y=0;if(v)return v.call(f);if(f&&typeof f.length=="number")return{next:function(){return f&&y>=f.length&&(f=void 0),{value:f&&f[y++],done:!f}}};throw new TypeError(m?"Object is not iterable.":"Symbol.iterator is not defined.")},g=n("./lib/dom");n("./lib/event");var a=n("./range").Range,p=n("./lib/scroll").preventParentScroll,s="ace_tooltip",i=function(){function f(m){this.isOpen=!1,this.$element=null,this.$parentNode=m}return f.prototype.$init=function(){return this.$element=g.createElement("div"),this.$element.className=s,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},f.prototype.getElement=function(){return this.$element||this.$init()},f.prototype.setText=function(m){this.getElement().textContent=m},f.prototype.setHtml=function(m){this.getElement().innerHTML=m},f.prototype.setPosition=function(m,v){this.getElement().style.left=m+"px",this.getElement().style.top=v+"px"},f.prototype.setClassName=function(m){g.addCssClass(this.getElement(),m)},f.prototype.setTheme=function(m){this.$element.className=s+" "+(m.isDark?"ace_dark ":"")+(m.cssClass||"")},f.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)},f.prototype.hide=function(m){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=s,this.isOpen=!1)},f.prototype.getHeight=function(){return this.getElement().offsetHeight},f.prototype.getWidth=function(){return this.getElement().offsetWidth},f.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},f}(),u=function(){function f(){this.popups=[]}return f.prototype.addPopup=function(m){this.popups.push(m),this.updatePopups()},f.prototype.removePopup=function(m){var v=this.popups.indexOf(m);v!==-1&&(this.popups.splice(v,1),this.updatePopups())},f.prototype.updatePopups=function(){var m,v,y,x;this.popups.sort(function(R,S){return S.priority-R.priority});var $=[];try{for(var _=d(this.popups),b=_.next();!b.done;b=_.next()){var A=b.value,L=!0;try{for(var k=(y=void 0,d($)),M=k.next();!M.done;M=k.next()){var C=M.value;if(this.doPopupsOverlap(C,A)){L=!1;break}}}catch(R){y={error:R}}finally{try{M&&!M.done&&(x=k.return)&&x.call(k)}finally{if(y)throw y.error}}L?$.push(A):A.hide()}}catch(R){m={error:R}}finally{try{b&&!b.done&&(v=_.return)&&v.call(_)}finally{if(m)throw m.error}}},f.prototype.doPopupsOverlap=function(m,v){var y=m.getElement().getBoundingClientRect(),x=v.getElement().getBoundingClientRect();return y.left<x.right&&y.right>x.left&&y.top<x.bottom&&y.bottom>x.top},f}(),h=new u;r.popupManager=h,r.Tooltip=i;var c=function(f){o(m,f);function m(v){v===void 0&&(v=document.body);var y=f.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 x=y.getElement();return x.style.whiteSpace="pre-wrap",x.style.pointerEvents="auto",x.addEventListener("mouseout",y.onMouseOut),x.tabIndex=-1,x.addEventListener("blur",(function(){x.contains(document.activeElement)||this.hide()}).bind(y)),x.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 x=y.$mouseHandler.isMousePressed;if(this.isOpen){var $=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains($.row,$.column)||x||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||x||(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,x=v.getDocumentPosition(),$=y.session.getLine(x.row);if(x.column==$.length){var _=y.renderer.pixelToScreenCoordinates(v.clientX,v.clientY),b=y.session.documentToScreenPosition(x.row,x.column);if(b.column!=_.column||b.row!=_.row)return!0}return!1},m.prototype.setDataProvider=function(v){this.$gatherData=v},m.prototype.showForRange=function(v,y,x,$){var _=10;if(!($&&$!=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=a.fromPoints(y.start,y.end);var A=b.textToScreenCoordinates(y.start.row,y.start.column),L=b.scroller.getBoundingClientRect();A.pageX<L.left&&(A.pageX=L.left);var k=this.getElement();k.innerHTML="",k.appendChild(x),k.style.maxHeight="",k.style.display="block";var M=k.clientHeight,C=k.clientWidth,R=window.innerHeight-A.pageY-b.lineHeight,S=!0;A.pageY-M<0&&A.pageY<R&&(S=!1),k.style.maxHeight=(S?A.pageY:R)-_+"px",k.style.top=S?"":A.pageY+b.lineHeight+"px",k.style.bottom=S?window.innerHeight-A.pageY+"px":"",k.style.left=Math.min(A.pageX,window.innerWidth-C-_)+"px"}},m.prototype.addMarker=function(v,y){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=y,this.marker=y&&y.addMarker(v,"ace_highlight-marker","text")},m.prototype.hide=function(v){!v&&document.activeElement==this.getElement()||v&&v.target&&(v.type!="keydown"||v.ctrlKey||v.metaKey)&&this.$element.contains(v.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,h.removePopup(this)))},m.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("wheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},m.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("wheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},m.prototype.onMouseOut=function(v){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!v.relatedTarget||this.getElement().contains(v.relatedTarget)||v&&v.currentTarget.contains(v.relatedTarget)||v.relatedTarget.classList.contains("ace_content")||this.hide())},m}(i);r.HoverTooltip=c}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config"],function(n,r,l){var o=this&&this.__extends||function(){var h=function(c,f){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(c,f)};return function(c,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");h(c,f);function m(){this.constructor=c}c.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}}(),d=this&&this.__values||function(h){var c=typeof Symbol=="function"&&Symbol.iterator,f=c&&h[c],m=0;if(f)return f.call(h);if(h&&typeof h.length=="number")return{next:function(){return h&&m>=h.length&&(h=void 0),{value:h&&h[m++],done:!h}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")},g=n("../lib/dom"),a=n("../lib/event"),p=n("../tooltip").Tooltip,s=n("../config").nls;function i(h){var c=h.editor,f=c.renderer.$gutterLayer,m=new u(c);h.editor.setDefaultHandler("guttermousedown",function(b){if(!(!c.isFocused()||b.getButton()!=0)){var A=f.getRegion(b);if(A!="foldWidgets"){var L=b.getDocumentPosition().row,k=c.session.selection;if(b.getShiftKey())k.selectTo(L,0);else{if(b.domEvent.detail==2)return c.selectAll(),b.preventDefault();h.$clickSelection=c.selection.getLineRange(L)}return h.setState("selectByLines"),h.captureMouse(b),b.preventDefault()}}});var v,y;function x(){var b=y.getDocumentPosition().row,A=c.session.getLength();if(b==A){var L=c.renderer.pixelToScreenCoordinates(0,y.y).row,k=y.$pos;if(L>c.session.documentToScreenRow(k.row,k.column))return $()}if(m.showTooltip(b),!!m.isOpen)if(c.on("mousewheel",$),h.$tooltipFollowsMouse)_(y);else{var M=y.getGutterRow(),C=f.$lines.get(M);if(C){var R=C.element.querySelector(".ace_gutter_annotation"),S=R.getBoundingClientRect(),w=m.getElement().style;w.left=S.right+"px",w.top=S.bottom+"px"}else _(y)}}function $(){v&&(v=clearTimeout(v)),m.isOpen&&(m.hideTooltip(),c.off("mousewheel",$))}function _(b){m.setPosition(b.x,b.y)}h.editor.setDefaultHandler("guttermousemove",function(b){var A=b.domEvent.target||b.domEvent.srcElement;if(g.hasCssClass(A,"ace_fold-widget"))return $();m.isOpen&&h.$tooltipFollowsMouse&&_(b),y=b,!v&&(v=setTimeout(function(){v=null,y&&!h.isMousePressed?x():$()},50))}),a.addListener(c.renderer.$gutter,"mouseout",function(b){y=null,!(!m.isOpen||v)&&(v=setTimeout(function(){v=null,$()},50))},c),c.on("changeSession",$),c.on("input",$)}r.GutterHandler=i;var u=function(h){o(c,h);function c(f){var m=h.call(this,f.container)||this;return m.editor=f,m}return c.prototype.setPosition=function(f,m){var v=window.innerWidth||document.documentElement.clientWidth,y=window.innerHeight||document.documentElement.clientHeight,x=this.getWidth(),$=this.getHeight();f+=15,m+=15,f+x>v&&(f-=f+x-v),m+$>y&&(m-=20+$),p.prototype.setPosition.call(this,f,m)},Object.defineProperty(c,"annotationLabels",{get:function(){return{error:{singular:s("gutter-tooltip.aria-label.error.singular","error"),plural:s("gutter-tooltip.aria-label.error.plural","errors")},warning:{singular:s("gutter-tooltip.aria-label.warning.singular","warning"),plural:s("gutter-tooltip.aria-label.warning.plural","warnings")},info:{singular:s("gutter-tooltip.aria-label.info.singular","information message"),plural:s("gutter-tooltip.aria-label.info.plural","information messages")}}},enumerable:!1,configurable:!0}),c.prototype.showTooltip=function(f){var m=this.editor.renderer.$gutterLayer,v=m.$annotations[f],y;v?y={text:Array.from(v.text),type:Array.from(v.type)}:y={text:[],type:[]};var x=m.session.getFoldLine(f);if(x&&m.$showFoldedAnnotations){for(var $={error:[],warning:[],info:[]},_,b=f+1;b<=x.end.row;b++)if(m.$annotations[b])for(var A=0;A<m.$annotations[b].text.length;A++){var L=m.$annotations[b].type[A];if($[L].push(m.$annotations[b].text[A]),L==="error"){_="error_fold";continue}if(L==="warning"){_="warning_fold";continue}}if(_==="error_fold"||_==="warning_fold"){var k="".concat(c.annotationsToSummaryString($)," in folded code.");y.text.push(k),y.type.push(_)}}if(y.text.length===0)return this.hide();for(var M={error:[],warning:[],info:[]},C=m.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",b=0;b<y.text.length;b++){var R="<span class='ace_".concat(y.type[b]," ").concat(C,"' aria-label='").concat(c.annotationLabels[y.type[b].replace("_fold","")].singular,"' role=img> </span> ").concat(y.text[b]);M[y.type[b].replace("_fold","")].push(R)}var S=[].concat(M.error,M.warning,M.info).join("<br>");this.setHtml(S),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)},c.prototype.hideTooltip=function(){this.$element.removeAttribute("aria-live"),this.hide(),this.editor._signal("hideGutterTooltip",this)},c.annotationsToSummaryString=function(f){var m,v,y=[],x=["error","warning","info"];try{for(var $=d(x),_=$.next();!_.done;_=$.next()){var b=_.value;if(f[b].length){var A=f[b].length===1?c.annotationLabels[b].singular:c.annotationLabels[b].plural;y.push("".concat(f[b].length," ").concat(A))}}}catch(L){m={error:L}}finally{try{_&&!_.done&&(v=$.return)&&v.call($)}finally{if(m)throw m.error}}return y.join(", ")},c}(p);r.GutterTooltip=u}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(n,r,l){var o=n("../lib/event"),d=n("../lib/useragent"),g=function(){function a(p,s){this.speed,this.wheelX,this.wheelY,this.domEvent=p,this.editor=s,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 a.prototype.stopPropagation=function(){o.stopPropagation(this.domEvent),this.propagationStopped=!0},a.prototype.preventDefault=function(){o.preventDefault(this.domEvent),this.defaultPrevented=!0},a.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},a.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},a.prototype.getGutterRow=function(){var p=this.getDocumentPosition().row,s=this.editor.session.documentToScreenRow(p,0),i=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return s-i},a.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var p=this.editor,s=p.getSelectionRange();if(s.isEmpty())this.$inSelection=!1;else{var i=this.getDocumentPosition();this.$inSelection=s.contains(i.row,i.column)}return this.$inSelection},a.prototype.getButton=function(){return o.getButton(this.domEvent)},a.prototype.getShiftKey=function(){return this.domEvent.shiftKey},a.prototype.getAccelKey=function(){return d.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},a}();r.MouseEvent=g}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(n,r,l){var o=n("../lib/dom"),d=n("../lib/event"),g=n("../lib/useragent"),a=200,p=200,s=5;function i(h){var c=h.editor,f=o.createElement("div");f.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",f.textContent=" ";var m=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];m.forEach(function(j){h[j]=this[j]},this),c.on("mousedown",this.onMouseDown.bind(h));var v=c.container,y,x,$,_,b,A,L=0,k,M,C,R,S;this.onDragStart=function(j){if(this.cancelDrag||!v.draggable){var B=this;return setTimeout(function(){B.startSelect(),B.captureMouse(j)},0),j.preventDefault()}b=c.getSelectionRange();var U=j.dataTransfer;U.effectAllowed=c.getReadOnly()?"copy":"copyMove",c.container.appendChild(f),U.setDragImage&&U.setDragImage(f,0,0),setTimeout(function(){c.container.removeChild(f)}),U.clearData(),U.setData("Text",c.session.getTextRange()),M=!0,this.setState("drag")},this.onDragEnd=function(j){if(v.draggable=!1,M=!1,this.setState(null),!c.getReadOnly()){var B=j.dataTransfer.dropEffect;!k&&B=="move"&&c.session.remove(c.getSelectionRange()),c.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(j){if(!(c.getReadOnly()||!H(j.dataTransfer)))return x=j.clientX,$=j.clientY,y||O(),L++,j.dataTransfer.dropEffect=k=V(j),d.preventDefault(j)},this.onDragOver=function(j){if(!(c.getReadOnly()||!H(j.dataTransfer)))return x=j.clientX,$=j.clientY,y||(O(),L++),N!==null&&(N=null),j.dataTransfer.dropEffect=k=V(j),d.preventDefault(j)},this.onDragLeave=function(j){if(L--,L<=0&&y)return I(),k=null,d.preventDefault(j)},this.onDrop=function(j){if(A){var B=j.dataTransfer;if(M)switch(k){case"move":b.contains(A.row,A.column)?b={start:A,end:A}:b=c.moveText(b,A);break;case"copy":b=c.moveText(b,A,!0);break}else{var U=B.getData("Text");b={start:A,end:c.session.insert(A,U)},c.focus(),k=null}return I(),d.preventDefault(j)}},d.addListener(v,"dragstart",this.onDragStart.bind(h),c),d.addListener(v,"dragend",this.onDragEnd.bind(h),c),d.addListener(v,"dragenter",this.onDragEnter.bind(h),c),d.addListener(v,"dragover",this.onDragOver.bind(h),c),d.addListener(v,"dragleave",this.onDragLeave.bind(h),c),d.addListener(v,"drop",this.onDrop.bind(h),c);function w(j,B){var U=Date.now(),q=!B||j.row!=B.row,z=!B||j.column!=B.column;if(!R||q||z)c.moveCursorToPosition(j),R=U,S={x,y:$};else{var Z=u(S.x,S.y,x,$);Z>s?R=null:U-R>=p&&(c.renderer.scrollCursorIntoView(),R=null)}}function E(j,B){var U=Date.now(),q=c.renderer.layerConfig.lineHeight,z=c.renderer.layerConfig.characterWidth,Z=c.renderer.scroller.getBoundingClientRect(),Y={x:{left:x-Z.left,right:Z.right-x},y:{top:$-Z.top,bottom:Z.bottom-$}},Q=Math.min(Y.x.left,Y.x.right),he=Math.min(Y.y.top,Y.y.bottom),Ce={row:j.row,column:j.column};Q/z<=2&&(Ce.column+=Y.x.left<Y.x.right?-3:2),he/q<=1&&(Ce.row+=Y.y.top<Y.y.bottom?-1:1);var D=j.row!=Ce.row,W=j.column!=Ce.column,K=!B||j.row!=B.row;D||W&&!K?C?U-C>=a&&c.renderer.scrollCursorIntoView(Ce):C=U:C=null}function T(){var j=A;A=c.renderer.screenToTextCoordinates(x,$),w(A,j),E(A,j)}function O(){b=c.selection.toOrientedRange(),y=c.session.addMarker(b,"ace_selection",c.getSelectionStyle()),c.clearSelection(),c.isFocused()&&c.renderer.$cursorLayer.setBlinking(!1),clearInterval(_),T(),_=setInterval(T,20),L=0,d.addListener(document,"mousemove",P)}function I(){clearInterval(_),c.session.removeMarker(y),y=null,c.selection.fromOrientedRange(b),c.isFocused()&&!M&&c.$resetCursorStyle(),b=null,A=null,L=0,C=null,R=null,d.removeListener(document,"mousemove",P)}var N=null;function P(){N==null&&(N=setTimeout(function(){N!=null&&y&&I()},20))}function H(j){var B=j.types;return!B||Array.prototype.some.call(B,function(U){return U=="text/plain"||U=="Text"})}function V(j){var B=["copy","copymove","all","uninitialized"],U=["move","copymove","linkmove","all","uninitialized"],q=g.isMac?j.altKey:j.ctrlKey,z="uninitialized";try{z=j.dataTransfer.effectAllowed.toLowerCase()}catch{}var Z="none";return q&&B.indexOf(z)>=0?Z="copy":U.indexOf(z)>=0?Z="move":B.indexOf(z)>=0&&(Z="copy"),Z}}(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,c=h.container;c.draggable=!0,h.renderer.$cursorLayer.setBlinking(!1),h.setStyle("ace_dragging");var f=g.isWin?"default":"move";h.renderer.setCursorStyle(f),this.setState("dragReady")},this.onMouseDrag=function(h){var c=this.editor.container;if(g.isIE&&this.state=="dragReady"){var f=u(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);f>3&&c.dragDrop()}if(this.state==="dragWait"){var f=u(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);f>0&&(c.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(h){if(this.$dragEnabled){this.mousedownEvent=h;var c=this.editor,f=h.inSelection(),m=h.getButton(),v=h.domEvent.detail||1;if(v===1&&m===0&&f){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"),c.getDragDelay()){if(g.isWebKit){this.cancelDrag=!0;var x=c.container;x.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(h,this.onMouseDrag.bind(this)),h.defaultPrevented=!0}}}}).call(i.prototype);function u(h,c,f,m){return Math.sqrt(Math.pow(f-h,2)+Math.pow(m-c,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 o=n("./mouse_event").MouseEvent,d=n("../lib/event"),g=n("../lib/dom");r.addTouchListeners=function(a,p){var s="scroll",i,u,h,c,f,m,v=0,y,x=0,$=0,_=0,b,A;function L(){var w=window.navigator&&window.navigator.clipboard,E=!1,T=function(){var I=p.getCopyText(),N=p.session.getUndoManager().hasUndo();A.replaceChild(g.buildDom(E?["span",!I&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],I&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],I&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],w&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],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"]),A.firstChild)},O=function(I){var N=I.target.getAttribute("action");if(N=="more"||!E)return E=!E,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)),A.firstChild.style.display="none",E=!1,N!="openCommandPalette"&&p.focus()};A=g.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(I){s="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 k(){A||L();var w=p.selection.cursor,E=p.renderer.textToScreenCoordinates(w.row,w.column),T=p.renderer.textToScreenCoordinates(0,0).pageX,O=p.renderer.scrollLeft,I=p.container.getBoundingClientRect();A.style.top=E.pageY-I.top-3+"px",E.pageX-I.left<I.width-70?(A.style.left="",A.style.right="10px"):(A.style.right="",A.style.left=T+O-I.left+"px"),A.style.display="",A.firstChild.style.display="none",p.on("input",M)}function M(w){A&&(A.style.display="none"),p.off("input",M)}function C(){f=null,clearTimeout(f);var w=p.selection.getRange(),E=w.contains(y.row,y.column);(w.isEmpty()||!E)&&(p.selection.moveToPosition(y),p.selection.selectWord()),s="wait",k()}function R(){f=null,clearTimeout(f),p.selection.moveToPosition(y);var w=x>=2?p.selection.getLineRange(y.row):p.session.getBracketRange(y);w&&!w.isEmpty()?p.selection.setRange(w):p.selection.selectWord(),s="wait"}d.addListener(a,"contextmenu",function(w){if(b){var E=p.textInput.getElement();E.focus()}},p),d.addListener(a,"touchstart",function(w){var E=w.touches;if(f||E.length>1){clearTimeout(f),f=null,h=-1,s="zoom";return}b=p.$mouseHandler.isMousePressed=!0;var T=p.renderer.layerConfig.lineHeight,O=p.renderer.layerConfig.lineHeight,I=w.timeStamp;c=I;var N=E[0],P=N.clientX,H=N.clientY;Math.abs(i-P)+Math.abs(u-H)>T&&(h=-1),i=w.clientX=P,u=w.clientY=H,$=_=0;var V=new o(w,p);if(y=V.getDocumentPosition(),I-h<500&&E.length==1&&!v)x++,w.preventDefault(),w.button=0,R();else{x=0;var j=p.selection.cursor,B=p.selection.isEmpty()?j:p.selection.anchor,U=p.renderer.$cursorLayer.getPixelPosition(j,!0),q=p.renderer.$cursorLayer.getPixelPosition(B,!0),z=p.renderer.scroller.getBoundingClientRect(),Z=p.renderer.layerConfig.offset,Y=p.renderer.scrollLeft,Q=function(D,W){return D=D/O,W=W/T-.75,D*D+W*W};if(w.clientX<z.left){s="zoom";return}var he=Q(w.clientX-z.left-U.left+Y,w.clientY-z.top-U.top+Z),Ce=Q(w.clientX-z.left-q.left+Y,w.clientY-z.top-q.top+Z);he<3.5&&Ce<3.5&&(s=he>Ce?"cursor":"anchor"),Ce<3.5?s="anchor":he<3.5?s="cursor":s="scroll",f=setTimeout(C,450)}h=I},p),d.addListener(a,"touchend",function(w){b=p.$mouseHandler.isMousePressed=!1,m&&clearInterval(m),s=="zoom"?(s="",v=0):f?(p.selection.moveToPosition(y),v=0,k()):s=="scroll"?(S(),M()):k(),clearTimeout(f),f=null},p),d.addListener(a,"touchmove",function(w){f&&(clearTimeout(f),f=null);var E=w.touches;if(!(E.length>1||s=="zoom")){var T=E[0],O=i-T.clientX,I=u-T.clientY;if(s=="wait")if(O*O+I*I>4)s="cursor";else return w.preventDefault();i=T.clientX,u=T.clientY,w.clientX=T.clientX,w.clientY=T.clientY;var N=w.timeStamp,P=N-c;if(c=N,s=="scroll"){var H=new o(w,p);H.speed=1,H.wheelX=O,H.wheelY=I,10*Math.abs(O)<Math.abs(I)&&(O=0),10*Math.abs(I)<Math.abs(O)&&(I=0),P!=0&&($=O/P,_=I/P),p._emit("mousewheel",H),H.propagationStopped||($=_=0)}else{var V=new o(w,p),j=V.getDocumentPosition();s=="cursor"?p.selection.moveCursorToPosition(j):s=="anchor"&&p.selection.setSelectionAnchor(j.row,j.column),p.renderer.scrollCursorIntoView(j),w.preventDefault()}}},p);function S(){v+=60,m=setInterval(function(){v--<=0&&(clearInterval(m),m=null),Math.abs($)<.01&&($=0),Math.abs(_)<.01&&(_=0),v<20&&($=.9*$),v<20&&(_=.9*_);var w=p.session.getScrollTop();p.renderer.scrollBy(10*$,10*_),w==p.session.getScrollTop()&&(v=0)},10)}}}),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],function(n,r,l){var o=n("../lib/event"),d=n("../lib/useragent"),g=n("./default_handlers").DefaultHandlers,a=n("./default_gutter_handler").GutterHandler,p=n("./mouse_event").MouseEvent,s=n("./dragdrop_handler").DragdropHandler,i=n("./touch_handler").addTouchListeners,u=n("../config"),h=function(){function c(f){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var m=this;this.editor=f,new g(this),new a(this),new s(this);var v=function($){var _=!document.hasFocus||!document.hasFocus()||!f.isFocused()&&document.activeElement==(f.textInput&&f.textInput.getElement());_&&window.focus(),f.focus(),setTimeout(function(){f.isFocused()||f.focus()})},y=f.renderer.getMouseEventTarget();o.addListener(y,"click",this.onMouseEvent.bind(this,"click"),f),o.addListener(y,"mousemove",this.onMouseMove.bind(this,"mousemove"),f),o.addMultiMouseDownListener([y,f.renderer.scrollBarV&&f.renderer.scrollBarV.inner,f.renderer.scrollBarH&&f.renderer.scrollBarH.inner,f.textInput&&f.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",f),o.addMouseWheelListener(f.container,this.onMouseWheel.bind(this,"mousewheel"),f),i(f.container,f);var x=f.renderer.$gutter;o.addListener(x,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),f),o.addListener(x,"click",this.onMouseEvent.bind(this,"gutterclick"),f),o.addListener(x,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),f),o.addListener(x,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),f),o.addListener(y,"mousedown",v,f),o.addListener(x,"mousedown",v,f),d.isIE&&f.renderer.scrollBarV&&(o.addListener(f.renderer.scrollBarV.element,"mousedown",v,f),o.addListener(f.renderer.scrollBarH.element,"mousedown",v,f)),f.on("mousemove",function($){if(!(m.state||m.$dragDelay||!m.$dragEnabled)){var _=f.renderer.screenToTextCoordinates($.x,$.y),b=f.session.selection.getRange(),A=f.renderer;!b.isEmpty()&&b.insideStart(_.row,_.column)?A.setCursorStyle("default"):A.setCursorStyle("")}},f)}return c.prototype.onMouseEvent=function(f,m){this.editor.session&&this.editor._emit(f,new p(m,this.editor))},c.prototype.onMouseMove=function(f,m){var v=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!v||!v.length||this.editor._emit(f,new p(m,this.editor))},c.prototype.onMouseWheel=function(f,m){var v=new p(m,this.editor);v.speed=this.$scrollSpeed*2,v.wheelX=m.wheelX,v.wheelY=m.wheelY,this.editor._emit(f,v)},c.prototype.setState=function(f){this.state=f},c.prototype.captureMouse=function(f,m){this.x=f.x,this.y=f.y,this.isMousePressed=!0;var v=this.editor,y=this.editor.renderer;y.$isMousePressed=!0;var x=this,$=function(k){if(k){if(d.isWebKit&&!k.which&&x.releaseMouse)return x.releaseMouse();x.x=k.clientX,x.y=k.clientY,m&&m(k),x.mouseEvent=new p(k,x.editor),x.$mouseMoved=!0}},_=function(k){v.off("beforeEndOperation",A),clearInterval(L),v.session&&b(),x[x.state+"End"]&&x[x.state+"End"](k),x.state="",x.isMousePressed=y.$isMousePressed=!1,y.$keepTextAreaAtCursor&&y.$moveTextAreaToCursor(),x.$onCaptureMouseMove=x.releaseMouse=null,k&&x.onMouseEvent("mouseup",k),v.endOperation()},b=function(){x[x.state]&&x[x.state](),x.$mouseMoved=!1};if(d.isOldIE&&f.domEvent.type=="dblclick")return setTimeout(function(){_(f)});var A=function(k){x.releaseMouse&&v.curOp.command.name&&v.curOp.selectionChanged&&(x[x.state+"End"]&&x[x.state+"End"](),x.state="",x.releaseMouse())};v.on("beforeEndOperation",A),v.startOperation({command:{name:"mouse"}}),x.$onCaptureMouseMove=$,x.releaseMouse=o.capture(this.editor.container,$,_);var L=setInterval(b,20)},c.prototype.cancelContextMenu=function(){var f=(function(m){m&&m.domEvent&&m.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",f),m&&m.domEvent&&o.stopEvent(m.domEvent))}).bind(this);setTimeout(f,10),this.editor.on("nativecontextmenu",f)},c.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},c}();h.prototype.releaseMouse=null,u.defineOptions(h.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:d.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),r.MouseHandler=h}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(n,r,l){var o=n("../lib/dom"),d=function(){function g(a){a.on("click",function(p){var s=p.getDocumentPosition(),i=a.session,u=i.getFoldAt(s.row,s.column,1);u&&(p.getAccelKey()?i.removeFold(u):i.expandFold(u),p.stop());var h=p.domEvent&&p.domEvent.target;h&&o.hasCssClass(h,"ace_inline_button")&&o.hasCssClass(h,"ace_toggle_wrap")&&(i.setOption("wrap",!i.getUseWrapMode()),a.renderer.scrollCursorIntoView())}),a.on("gutterclick",function(p){var s=a.renderer.$gutterLayer.getRegion(p);if(s=="foldWidgets"){var i=p.getDocumentPosition().row,u=a.session;u.foldWidgets&&u.foldWidgets[i]&&a.session.onFoldWidgetClick(i,p),a.isFocused()||a.focus(),p.stop()}}),a.on("gutterdblclick",function(p){var s=a.renderer.$gutterLayer.getRegion(p);if(s=="foldWidgets"){var i=p.getDocumentPosition().row,u=a.session,h=u.getParentFoldRangeData(i,!0),c=h.range||h.firstRange;if(c){i=c.start.row;var f=u.getFoldAt(i,u.getLine(i).length,1);f?u.removeFold(f):(u.addFold("...",c),a.renderer.scrollCursorIntoView({row:c.start.row,column:0}))}p.stop()}})}return g}();r.FoldHandler=d}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(n,r,l){var o=n("../lib/keys"),d=n("../lib/event"),g=function(){function a(p){this.$editor=p,this.$data={editor:p},this.$handlers=[],this.setDefaultHandler(p.commands)}return a.prototype.setDefaultHandler=function(p){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=p,this.addKeyboardHandler(p,0)},a.prototype.setKeyboardHandler=function(p){var s=this.$handlers;if(s[s.length-1]!=p){for(;s[s.length-1]&&s[s.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(s[s.length-1]);this.addKeyboardHandler(p,1)}},a.prototype.addKeyboardHandler=function(p,s){if(p){typeof p=="function"&&!p.handleKeyboard&&(p.handleKeyboard=p);var i=this.$handlers.indexOf(p);i!=-1&&this.$handlers.splice(i,1),s==null?this.$handlers.push(p):this.$handlers.splice(s,0,p),i==-1&&p.attach&&p.attach(this.$editor)}},a.prototype.removeKeyboardHandler=function(p){var s=this.$handlers.indexOf(p);return s==-1?!1:(this.$handlers.splice(s,1),p.detach&&p.detach(this.$editor),!0)},a.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},a.prototype.getStatusText=function(){var p=this.$data,s=p.editor;return this.$handlers.map(function(i){return i.getStatusText&&i.getStatusText(s,p)||""}).filter(Boolean).join(" ")},a.prototype.$callKeyboardHandlers=function(p,s,i,u){for(var h,c=!1,f=this.$editor.commands,m=this.$handlers.length;m--&&(h=this.$handlers[m].handleKeyboard(this.$data,p,s,i,u),!(!(!h||!h.command)&&(h.command=="null"?c=!0:c=f.exec(h.command,this.$editor,h.args,u),c&&u&&p!=-1&&h.passEvent!=!0&&h.command.passEvent!=!0&&d.stopEvent(u),c))););return!c&&p==-1&&(h={command:"insertstring"},c=f.exec("insertstring",this.$editor,s)),c&&this.$editor._signal&&this.$editor._signal("keyboardActivity",h),c},a.prototype.onCommandKey=function(p,s,i){var u=o.keyCodeToString(i);return this.$callKeyboardHandlers(s,u,i,p)},a.prototype.onTextInput=function(p){return this.$callKeyboardHandlers(-1,p)},a}();r.KeyBinding=g}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(n,r,l){var o=0,d=0,g=!1,a=!1,p=!1,s=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],i=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],u=0,h=1,c=0,f=1,m=2,v=3,y=4,x=5,$=6,_=7,b=8,A=9,L=10,k=11,M=12,C=13,R=14,S=15,w=16,E=17,T=18,O=[T,T,T,T,T,T,T,T,T,$,x,$,b,x,T,T,T,T,T,T,T,T,T,T,T,T,T,T,x,x,x,$,b,y,y,k,k,k,y,y,y,y,y,L,A,L,A,A,m,m,m,m,m,m,m,m,m,m,A,y,y,y,y,y,y,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,y,y,y,y,y,y,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,y,y,y,y,T,T,T,T,T,T,x,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,A,y,k,k,k,k,y,y,y,y,c,y,y,T,y,y,k,k,m,m,y,c,y,y,y,m,c,y,y,y,y,y],I=[b,b,b,b,b,b,b,b,b,b,b,T,T,T,c,f,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,b,x,C,R,S,w,E,A,k,k,k,k,k,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,A,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,b];function N(j,B,U,q){var z=o?i:s,Z=null,Y=null,Q=null,he=0,Ce=null,D=null,W=-1,K=null,ee=null,J=[];if(!q)for(K=0,q=[];K<U;K++)q[K]=V(j[K]);for(d=o,g=!1,a=!1,p=!1,ee=0;ee<U;ee++){if(Z=he,J[ee]=Y=H(j,q,J,ee),he=z[Z][Y],Ce=he&240,he&=15,B[ee]=Q=z[he][5],Ce>0)if(Ce==16){for(K=W;K<ee;K++)B[K]=1;W=-1}else W=-1;if(D=z[he][6],D)W==-1&&(W=ee);else if(W>-1){for(K=W;K<ee;K++)B[K]=Q;W=-1}q[ee]==x&&(B[ee]=0),d|=Q}if(p){for(K=0;K<U;K++)if(q[K]==$){B[K]=o;for(var le=K-1;le>=0&&q[le]==b;le--)B[le]=o}}}function P(j,B,U){if(!(d<j)){if(j==1&&o==h&&!a){U.reverse();return}for(var q=U.length,z=0,Z,Y,Q,he;z<q;){if(B[z]>=j){for(Z=z+1;Z<q&&B[Z]>=j;)Z++;for(Y=z,Q=Z-1;Y<Q;Y++,Q--)he=U[Y],U[Y]=U[Q],U[Q]=he;z=Z}z++}}}function H(j,B,U,q){var z=B[q],Z,Y,Q,he;switch(z){case c:case f:g=!1;case y:case v:return z;case m:return g?v:m;case _:return g=!0,f;case b:return y;case A:return q<1||q+1>=B.length||(Z=U[q-1])!=m&&Z!=v||(Y=B[q+1])!=m&&Y!=v?y:(g&&(Y=v),Y==Z?Y:y);case L:return Z=q>0?U[q-1]:x,Z==m&&q+1<B.length&&B[q+1]==m?m:y;case k:if(q>0&&U[q-1]==m)return m;if(g)return y;for(he=q+1,Q=B.length;he<Q&&B[he]==k;)he++;return he<Q&&B[he]==m?m:y;case M:for(Q=B.length,he=q+1;he<Q&&B[he]==M;)he++;if(he<Q){var Ce=j[q],D=Ce>=1425&&Ce<=2303||Ce==64286;if(Z=B[he],D&&(Z==f||Z==_))return f}return q<1||(Z=B[q-1])==x?y:U[q-1];case x:return g=!1,a=!0,o;case $:return p=!0,y;case C:case R:case w:case E:case S:g=!1;case T:return y}}function V(j){var B=j.charCodeAt(0),U=B>>8;return U==0?B>191?c:O[B]:U==5?/[\u0591-\u05f4]/.test(j)?f:c:U==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(j)?M:/[\u0660-\u0669\u066b-\u066c]/.test(j)?v:B==1642?k:/[\u06f0-\u06f9]/.test(j)?m:_:U==32&&B<=8287?I[B&255]:U==254&&B>=65136?_:y}r.L=c,r.R=f,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(j,B,U){if(j.length<2)return{};var q=j.split(""),z=new Array(q.length),Z=new Array(q.length),Y=[];o=U?h:u,N(q,Y,q.length,B);for(var Q=0;Q<z.length;z[Q]=Q,Q++);P(2,Y,z),P(1,Y,z);for(var Q=0;Q<z.length-1;Q++)B[Q]===v?Y[Q]=r.AN:Y[Q]===f&&(B[Q]>_&&B[Q]<C||B[Q]===y||B[Q]===T)?Y[Q]=r.ON_R:Q>0&&q[Q-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(q[Q])&&(Y[Q-1]=Y[Q]=r.R_H,Q++);q[q.length-1]===r.DOT&&(Y[q.length-1]=r.B),q[0]===""&&(Y[0]=r.RLE);for(var Q=0;Q<z.length;Q++)Z[Q]=Y[z[Q]];return{logicalFromVisual:z,bidiLevels:Z}},r.hasBidiCharacters=function(j,B){for(var U=!1,q=0;q<j.length;q++)B[q]=V(j.charAt(q)),!U&&(B[q]==f||B[q]==_||B[q]==v)&&(U=!0);return U},r.getVisualFromLogicalIdx=function(j,B){for(var U=0;U<B.logicalFromVisual.length;U++)if(B.logicalFromVisual[U]==j)return U;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(n,r,l){var o=n("./lib/bidiutil"),d=n("./lib/lang"),g=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,a=function(){function p(s){this.session=s,this.bidiMap={},this.currentRow=null,this.bidiUtil=o,this.charWidths=[],this.EOL="¬",this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line="",this.wrapIndent=0,this.EOF="¶",this.RLE="",this.contentWidth=0,this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=g.test(s.getValue())}return p.prototype.isBidiRow=function(s,i,u){return this.seenBidi?(s!==this.currentRow&&(this.currentRow=s,this.updateRowLine(i,u),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},p.prototype.onChange=function(s){this.seenBidi?this.currentRow=null:s.action=="insert"&&g.test(s.lines.join(`
|
1012
|
-
`))&&(this.seenBidi=!0,this.currentRow=null)},p.prototype.getDocumentRow=function(){var s=0,i=this.session.$screenRowCache;if(i.length){var u=this.session.$getRowCacheIndex(i,this.currentRow);u>=0&&(s=this.session.$docRowCache[u])}return s},p.prototype.getSplitIndex=function(){var s=0,i=this.session.$screenRowCache;if(i.length)for(var u,h=this.session.$getRowCacheIndex(i,this.currentRow);this.currentRow-s>0&&(u=this.session.$getRowCacheIndex(i,this.currentRow-s-1),u===h);)h=u,s++;else s=this.currentRow;return s},p.prototype.updateRowLine=function(s,i){s===void 0&&(s=this.getDocumentRow());var u=s===this.session.getLength()-1,h=u?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(s),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var c=this.session.$wrapData[s];c&&(i===void 0&&(i=this.getSplitIndex()),i>0&&c.length?(this.wrapIndent=c.indent,this.wrapOffset=this.wrapIndent*this.charWidths[o.L],this.line=i<c.length?this.line.substring(c[i-1],c[i]):this.line.substring(c[c.length-1])):this.line=this.line.substring(0,c[i]),i==c.length&&(this.line+=this.showInvisibles?h:o.DOT))}else this.line+=this.showInvisibles?h:o.DOT;var f=this.session,m=0,v;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(y,x){return y===" "||f.isFullWidth(y.charCodeAt(0))?(v=y===" "?f.getScreenTabSize(x+m):2,m+=v-1,d.stringRepeat(o.DOT,v)):y}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==o.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},p.prototype.updateBidiMap=function(){var s=[];o.hasBidiCharacters(this.line,s)||this.isRtlDir?this.bidiMap=o.doBidiReorder(this.line,s,this.isRtlDir):this.bidiMap={}},p.prototype.markAsDirty=function(){this.currentRow=null},p.prototype.updateCharacterWidths=function(s){if(this.characterWidth!==s.$characterSize.width){this.fontMetrics=s;var i=this.characterWidth=s.$characterSize.width,u=s.$measureCharWidth("ה");this.charWidths[o.L]=this.charWidths[o.EN]=this.charWidths[o.ON_R]=i,this.charWidths[o.R]=this.charWidths[o.AN]=u,this.charWidths[o.R_H]=u*.45,this.charWidths[o.B]=this.charWidths[o.RLE]=0,this.currentRow=null}},p.prototype.setShowInvisibles=function(s){this.showInvisibles=s,this.currentRow=null},p.prototype.setEolChar=function(s){this.EOL=s},p.prototype.setContentWidth=function(s){this.contentWidth=s},p.prototype.isRtlLine=function(s){return this.$isRtl?!0:s!=null?this.session.getLine(s).charAt(0)==this.RLE:this.isRtlDir},p.prototype.setRtlDirection=function(s,i){for(var u=s.getCursorPosition(),h=s.selection.getSelectionAnchor().row;h<=u.row;h++)!i&&s.session.getLine(h).charAt(0)===s.session.$bidiHandler.RLE?s.session.doc.removeInLine(h,0,1):i&&s.session.getLine(h).charAt(0)!==s.session.$bidiHandler.RLE&&s.session.doc.insert({column:0,row:h},s.session.$bidiHandler.RLE)},p.prototype.getPosLeft=function(s){s-=this.wrapIndent;var i=this.line.charAt(0)===this.RLE?1:0,u=s>i?this.session.getOverwrite()?s:s-1:i,h=o.getVisualFromLogicalIdx(u,this.bidiMap),c=this.bidiMap.bidiLevels,f=0;!this.session.getOverwrite()&&s<=i&&c[h]%2!==0&&h++;for(var m=0;m<h;m++)f+=this.charWidths[c[m]];return!this.session.getOverwrite()&&s>i&&c[h]%2===0&&(f+=this.charWidths[c[h]]),this.wrapIndent&&(f+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(f+=this.rtlLineOffset),f},p.prototype.getSelections=function(s,i){var u=this.bidiMap,h=u.bidiLevels,c,f=[],m=0,v=Math.min(s,i)-this.wrapIndent,y=Math.max(s,i)-this.wrapIndent,x=!1,$=!1,_=0;this.wrapIndent&&(m+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var b,A=0;A<h.length;A++)b=u.logicalFromVisual[A],c=h[A],x=b>=v&&b<y,x&&!$?_=m:!x&&$&&f.push({left:_,width:m-_}),m+=this.charWidths[c],$=x;if(x&&A===h.length&&f.push({left:_,width:m-_}),this.isRtlDir)for(var L=0;L<f.length;L++)f[L].left+=this.rtlLineOffset;return f},p.prototype.offsetToCol=function(u){this.isRtlDir&&(u-=this.rtlLineOffset);var i=0,u=Math.max(u,0),h=0,c=0,f=this.bidiMap.bidiLevels,m=this.charWidths[f[c]];for(this.wrapIndent&&(u-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);u>h+m/2;){if(h+=m,c===f.length-1){m=0;break}m=this.charWidths[f[++c]]}return c>0&&f[c-1]%2!==0&&f[c]%2===0?(u<h&&c--,i=this.bidiMap.logicalFromVisual[c]):c>0&&f[c-1]%2===0&&f[c]%2!==0?i=1+(u>h?this.bidiMap.logicalFromVisual[c]:this.bidiMap.logicalFromVisual[c-1]):this.isRtlDir&&c===f.length-1&&m===0&&f[c-1]%2===0||!this.isRtlDir&&c===0&&f[c]%2!==0?i=1+this.bidiMap.logicalFromVisual[c]:(c>0&&f[c-1]%2!==0&&m!==0&&c--,i=this.bidiMap.logicalFromVisual[c]),i===0&&this.isRtlDir&&i++,i+this.wrapIndent},p}();r.BidiHandler=a}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(n,r,l){var o=n("./lib/oop"),d=n("./lib/lang"),g=n("./lib/event_emitter").EventEmitter,a=n("./range").Range,p=function(){function s(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 u=this;this.cursor.on("change",function(h){u.$cursorChanged=!0,u.$silent||u._emit("changeCursor"),!u.$isEmpty&&!u.$silent&&u._emit("changeSelection"),!u.$keepDesiredColumnOnChange&&h.old.column!=h.value.column&&(u.$desiredColumn=null)}),this.anchor.on("change",function(){u.$anchorChanged=!0,!u.$isEmpty&&!u.$silent&&u._emit("changeSelection")})}return s.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},s.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},s.prototype.getCursor=function(){return this.lead.getPosition()},s.prototype.setAnchor=function(i,u){this.$isEmpty=!1,this.anchor.setPosition(i,u)},s.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},s.prototype.getSelectionLead=function(){return this.lead.getPosition()},s.prototype.isBackwards=function(){var i=this.anchor,u=this.lead;return i.row>u.row||i.row==u.row&&i.column>u.column},s.prototype.getRange=function(){var i=this.anchor,u=this.lead;return this.$isEmpty?a.fromPoints(u,u):this.isBackwards()?a.fromPoints(u,i):a.fromPoints(i,u)},s.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},s.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},s.prototype.setRange=function(i,u){var h=u?i.end:i.start,c=u?i.start:i.end;this.$setSelection(h.row,h.column,c.row,c.column)},s.prototype.$setSelection=function(i,u,h,c){if(!this.$silent){var f=this.$isEmpty,m=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(i,u),this.cursor.setPosition(h,c),this.$isEmpty=!a.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||f!=this.$isEmpty||m)&&this._emit("changeSelection")}},s.prototype.$moveSelection=function(i){var u=this.lead;this.$isEmpty&&this.setSelectionAnchor(u.row,u.column),i.call(this)},s.prototype.selectTo=function(i,u){this.$moveSelection(function(){this.moveCursorTo(i,u)})},s.prototype.selectToPosition=function(i){this.$moveSelection(function(){this.moveCursorToPosition(i)})},s.prototype.moveTo=function(i,u){this.clearSelection(),this.moveCursorTo(i,u)},s.prototype.moveToPosition=function(i){this.clearSelection(),this.moveCursorToPosition(i)},s.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},s.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},s.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},s.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},s.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},s.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},s.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},s.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},s.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},s.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},s.prototype.getWordRange=function(i,u){if(typeof u>"u"){var h=i||this.lead;i=h.row,u=h.column}return this.session.getWordRange(i,u)},s.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},s.prototype.selectAWord=function(){var i=this.getCursor(),u=this.session.getAWordRange(i.row,i.column);this.setSelectionRange(u)},s.prototype.getLineRange=function(i,u){var h=typeof i=="number"?i:this.lead.row,c,f=this.session.getFoldLine(h);return f?(h=f.start.row,c=f.end.row):c=h,u===!0?new a(h,0,c,this.session.getLine(c).length):new a(h,0,c+1,0)},s.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},s.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},s.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},s.prototype.wouldMoveIntoSoftTab=function(i,u,h){var c=i.column,f=i.column+u;return h<0&&(c=i.column-u,f=i.column),this.session.isTabStop(i)&&this.doc.getLine(i.row).slice(c,f).split(" ").length-1==u},s.prototype.moveCursorLeft=function(){var i=this.lead.getPosition(),u;if(u=this.session.getFoldAt(i.row,i.column,-1))this.moveCursorTo(u.start.row,u.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)}},s.prototype.moveCursorRight=function(){var i=this.lead.getPosition(),u;if(u=this.session.getFoldAt(i.row,i.column,1))this.moveCursorTo(u.end.row,u.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var h=this.session.getTabSize(),i=this.lead;this.wouldMoveIntoSoftTab(i,h,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,h):this.moveCursorBy(0,1)}},s.prototype.moveCursorLineStart=function(){var i=this.lead.row,u=this.lead.column,h=this.session.documentToScreenRow(i,u),c=this.session.screenToDocumentPosition(h,0),f=this.session.getDisplayLine(i,null,c.row,c.column),m=f.match(/^\s*/);m[0].length!=u&&!this.session.$useEmacsStyleLineStart&&(c.column+=m[0].length),this.moveCursorToPosition(c)},s.prototype.moveCursorLineEnd=function(){var i=this.lead,u=this.session.getDocumentLastRowColumnPosition(i.row,i.column);if(this.lead.column==u.column){var h=this.session.getLine(u.row);if(u.column==h.length){var c=h.search(/\s+$/);c>0&&(u.column=c)}}this.moveCursorTo(u.row,u.column)},s.prototype.moveCursorFileEnd=function(){var i=this.doc.getLength()-1,u=this.doc.getLine(i).length;this.moveCursorTo(i,u)},s.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},s.prototype.moveCursorLongWordRight=function(){var i=this.lead.row,u=this.lead.column,h=this.doc.getLine(i),c=h.substring(u);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var f=this.session.getFoldAt(i,u,1);if(f){this.moveCursorTo(f.end.row,f.end.column);return}if(this.session.nonTokenRe.exec(c)&&(u+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,c=h.substring(u)),u>=h.length){this.moveCursorTo(i,h.length),this.moveCursorRight(),i<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(c)&&(u+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(i,u)},s.prototype.moveCursorLongWordLeft=function(){var i=this.lead.row,u=this.lead.column,h;if(h=this.session.getFoldAt(i,u,-1)){this.moveCursorTo(h.start.row,h.start.column);return}var c=this.session.getFoldStringAt(i,u,-1);c==null&&(c=this.doc.getLine(i).substring(0,u));var f=d.stringReverse(c);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(f)&&(u-=this.session.nonTokenRe.lastIndex,f=f.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),u<=0){this.moveCursorTo(i,0),this.moveCursorLeft(),i>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(f)&&(u-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(i,u)},s.prototype.$shortWordEndIndex=function(i){var u=0,h,c=/\s/,f=this.session.tokenRe;if(f.lastIndex=0,this.session.tokenRe.exec(i))u=this.session.tokenRe.lastIndex;else{for(;(h=i[u])&&c.test(h);)u++;if(u<1){for(f.lastIndex=0;(h=i[u])&&!f.test(h);)if(f.lastIndex=0,u++,c.test(h))if(u>2){u--;break}else{for(;(h=i[u])&&c.test(h);)u++;if(u>2)break}}}return f.lastIndex=0,u},s.prototype.moveCursorShortWordRight=function(){var i=this.lead.row,u=this.lead.column,h=this.doc.getLine(i),c=h.substring(u),f=this.session.getFoldAt(i,u,1);if(f)return this.moveCursorTo(f.end.row,f.end.column);if(u==h.length){var m=this.doc.getLength();do i++,c=this.doc.getLine(i);while(i<m&&/^\s*$/.test(c));/^\s+/.test(c)||(c=""),u=0}var v=this.$shortWordEndIndex(c);this.moveCursorTo(i,u+v)},s.prototype.moveCursorShortWordLeft=function(){var i=this.lead.row,u=this.lead.column,h;if(h=this.session.getFoldAt(i,u,-1))return this.moveCursorTo(h.start.row,h.start.column);var c=this.session.getLine(i).substring(0,u);if(u===0){do i--,c=this.doc.getLine(i);while(i>0&&/^\s*$/.test(c));u=c.length,/\s+$/.test(c)||(c="")}var f=d.stringReverse(c),m=this.$shortWordEndIndex(f);return this.moveCursorTo(i,u-m)},s.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},s.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},s.prototype.moveCursorBy=function(i,u){var h=this.session.documentToScreenPosition(this.lead.row,this.lead.column),c;if(u===0&&(i!==0&&(this.session.$bidiHandler.isBidiRow(h.row,this.lead.row)?(c=this.session.$bidiHandler.getPosLeft(h.column),h.column=Math.round(c/this.session.$bidiHandler.charWidths[0])):c=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 f=this.session.lineWidgets[this.lead.row];i<0?i-=f.rowsAbove||0:i>0&&(i+=f.rowCount-(f.rowsAbove||0))}var m=this.session.screenToDocumentPosition(h.row+i,h.column,c);i!==0&&u===0&&m.row===this.lead.row&&(m.column,this.lead.column),this.moveCursorTo(m.row,m.column+u,u===0)},s.prototype.moveCursorToPosition=function(i){this.moveCursorTo(i.row,i.column)},s.prototype.moveCursorTo=function(i,u,h){var c=this.session.getFoldAt(i,u,1);c&&(i=c.start.row,u=c.start.column),this.$keepDesiredColumnOnChange=!0;var f=this.session.getLine(i);/[\uDC00-\uDFFF]/.test(f.charAt(u))&&f.charAt(u-1)&&(this.lead.row==i&&this.lead.column==u+1?u=u-1:u=u+1),this.lead.setPosition(i,u),this.$keepDesiredColumnOnChange=!1,h||(this.$desiredColumn=null)},s.prototype.moveCursorToScreen=function(i,u,h){var c=this.session.screenToDocumentPosition(i,u);this.moveCursorTo(c.row,c.column,h)},s.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},s.prototype.fromOrientedRange=function(i){this.setSelectionRange(i,i.cursor==i.start),this.$desiredColumn=i.desiredColumn||this.$desiredColumn},s.prototype.toOrientedRange=function(i){var u=this.getRange();return i?(i.start.column=u.start.column,i.start.row=u.start.row,i.end.column=u.end.column,i.end.row=u.end.row):i=u,i.cursor=this.isBackwards()?i.start:i.end,i.desiredColumn=this.$desiredColumn,i},s.prototype.getRangeOfMovements=function(i){var u=this.getCursor();try{i(this);var h=this.getCursor();return a.fromPoints(u,h)}catch{return a.fromPoints(u,u)}finally{this.moveCursorToPosition(u)}},s.prototype.toJSON=function(){if(this.rangeCount)var i=this.ranges.map(function(u){var h=u.clone();return h.isBackwards=u.cursor==u.start,h});else{var i=this.getRange();i.isBackwards=this.isBackwards()}return i},s.prototype.fromJSON=function(i){if(i.start==null)if(this.rangeList&&i.length>1){this.toSingleRange(i[0]);for(var u=i.length;u--;){var h=a.fromPoints(i[u].start,i[u].end);i[u].isBackwards&&(h.cursor=h.start),this.addRange(h,!0)}return}else i=i[0];this.rangeList&&this.toSingleRange(i),this.setSelectionRange(i,i.isBackwards)},s.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 u=this.ranges.length;u--;)if(!this.ranges[u].isEqual(i[u]))return!1;return!0},s}();p.prototype.setSelectionAnchor=p.prototype.setAnchor,p.prototype.getSelectionAnchor=p.prototype.getAnchor,p.prototype.setSelectionRange=p.prototype.setRange,o.implement(p.prototype,g),r.Selection=p}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(n,r,l){var o=n("./lib/report_error").reportError,d=2e3,g=function(){function a(p){this.splitRegex,this.states=p,this.regExps={},this.matchMappings={};for(var s in this.states){for(var i=this.states[s],u=[],h=0,c=this.matchMappings[s]={defaultToken:"text"},f="g",m=[],v=0;v<i.length;v++){var y=i[v];if(y.defaultToken&&(c.defaultToken=y.defaultToken),y.caseInsensitive&&f.indexOf("i")===-1&&(f+="i"),y.unicode&&f.indexOf("u")===-1&&(f+="u"),y.regex!=null){y.regex instanceof RegExp&&(y.regex=y.regex.toString().slice(1,-1));var x=y.regex,$=new RegExp("(?:("+x+")|(.))").exec("a").length-2;Array.isArray(y.token)?y.token.length==1||$==1?y.token=y.token[0]:$-1!=y.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:y,groupCount:$-1}),y.token=y.token[0]):(y.tokenArray=y.token,y.token=null,y.onMatch=this.$arrayTokens):typeof y.token=="function"&&!y.onMatch&&($>1?y.onMatch=this.$applyToken:y.onMatch=y.token),$>1&&(/\\\d/.test(y.regex)?x=y.regex.replace(/\\([0-9]+)/g,function(_,b){return"\\"+(parseInt(b,10)+h+1)}):($=1,x=this.removeCapturingGroups(y.regex)),!y.splitRegex&&typeof y.token!="string"&&m.push(y)),c[h]=v,h+=$,u.push(x),y.onMatch||(y.onMatch=null)}}u.length||(c[0]=0,u.push("$")),m.forEach(function(_){_.splitRegex=this.createSplitterRegexp(_.regex,f)},this),this.regExps[s]=new RegExp("("+u.join(")|(")+")|($)",f)}}return a.prototype.$setMaxTokenCount=function(p){d=p|0},a.prototype.$applyToken=function(p){var s=this.splitRegex.exec(p).slice(1),i=this.token.apply(this,s);if(typeof i=="string")return[{type:i,value:p}];for(var u=[],h=0,c=i.length;h<c;h++)s[h]&&(u[u.length]={type:i[h],value:s[h]});return u},a.prototype.$arrayTokens=function(p){if(!p)return[];var s=this.splitRegex.exec(p);if(!s)return"text";for(var i=[],u=this.tokenArray,h=0,c=u.length;h<c;h++)s[h+1]&&(i[i.length]={type:u[h],value:s[h+1]});return i},a.prototype.removeCapturingGroups=function(p){var s=p.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(i,u){return u?"(?:":i});return s},a.prototype.createSplitterRegexp=function(p,s){if(p.indexOf("(?=")!=-1){var i=0,u=!1,h={};p.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(c,f,m,v,y,x){return u?u=y!="]":y?u=!0:v?(i==h.stack&&(h.end=x+1,h.stack=-1),i--):m&&(i++,m.length!=1&&(h.stack=i,h.start=x)),c}),h.end!=null&&/^\)*$/.test(p.substr(h.end))&&(p=p.substring(0,h.start)+p.substr(h.end))}return p.charAt(0)!="^"&&(p="^"+p),p.charAt(p.length-1)!="$"&&(p+="$"),new RegExp(p,(s||"").replace("g",""))},a.prototype.getLineTokens=function(p,s){if(s&&typeof s!="string"){var i=s.slice(0);s=i[0],s==="#tmp"&&(i.shift(),s=i.shift())}else var i=[];var u=s||"start",h=this.states[u];h||(u="start",h=this.states[u]);var c=this.matchMappings[u],f=this.regExps[u];f.lastIndex=0;for(var m,v=[],y=0,x=0,$={type:null,value:""};m=f.exec(p);){var _=c.defaultToken,b=null,A=m[0],L=f.lastIndex;if(L-A.length>y){var k=p.substring(y,L-A.length);$.type==_?$.value+=k:($.type&&v.push($),$={type:_,value:k})}for(var M=0;M<m.length-2;M++)if(m[M+1]!==void 0){b=h[c[M]],b.onMatch?_=b.onMatch(A,u,i,p):_=b.token,b.next&&(typeof b.next=="string"?u=b.next:u=b.next(u,i),h=this.states[u],h||(this.reportError("state doesn't exist",u),u="start",h=this.states[u]),c=this.matchMappings[u],y=L,f=this.regExps[u],f.lastIndex=L),b.consumeLineEnd&&(y=L);break}if(A){if(typeof _=="string")(!b||b.merge!==!1)&&$.type===_?$.value+=A:($.type&&v.push($),$={type:_,value:A});else if(_){$.type&&v.push($),$={type:null,value:""};for(var M=0;M<_.length;M++)v.push(_[M])}}if(y==p.length)break;if(y=L,x++>d){for(x>2*p.length&&this.reportError("infinite loop with in ace tokenizer",{startState:s,line:p});y<p.length;)$.type&&v.push($),$={value:p.substring(y,y+=500),type:"overflow"};u="start",i=[];break}}return $.type&&v.push($),i.length>1&&i[0]!==u&&i.unshift("#tmp",u),{tokens:v,state:i.length?i:u}},a}();g.prototype.reportError=o,r.Tokenizer=g}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(n,r,l){var o=n("../lib/deep_copy").deepCopy,d;d=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},(function(){this.addRules=function(p,s){if(!s){for(var i in p)this.$rules[i]=p[i];return}for(var i in p){for(var u=p[i],h=0;h<u.length;h++){var c=u[h];(c.next||c.onMatch)&&(typeof c.next=="string"&&c.next.indexOf(s)!==0&&(c.next=s+c.next),c.nextState&&c.nextState.indexOf(s)!==0&&(c.nextState=s+c.nextState))}this.$rules[s+i]=u}},this.getRules=function(){return this.$rules},this.embedRules=function(p,s,i,u,h){var c=typeof p=="function"?new p().getRules():p;if(u)for(var f=0;f<u.length;f++)u[f]=s+u[f];else{u=[];for(var m in c)u.push(s+m)}if(this.addRules(c,s),i)for(var v=Array.prototype[h?"push":"unshift"],f=0;f<u.length;f++)v.apply(this.$rules[u[f]],o(i));this.$embeds||(this.$embeds=[]),this.$embeds.push(s)},this.getEmbeds=function(){return this.$embeds};var g=function(p,s){return(p!="start"||s.length)&&s.unshift(this.nextState,p),this.nextState},a=function(p,s){return s.shift(),s.shift()||"start"};this.normalizeRules=function(){var p=0,s=this.$rules;function i(u){var h=s[u];h.processed=!0;for(var c=0;c<h.length;c++){var f=h[c],m=null;Array.isArray(f)&&(m=f,f={}),!f.regex&&f.start&&(f.regex=f.start,f.next||(f.next=[]),f.next.push({defaultToken:f.token},{token:f.token+".end",regex:f.end||f.start,next:"pop"}),f.token=f.token+".start",f.push=!0);var v=f.next||f.push;if(v&&Array.isArray(v)){var y=f.stateName;y||(y=f.token,typeof y!="string"&&(y=y[0]||""),s[y]&&(y+=p++)),s[y]=v,f.next=y,i(y)}else v=="pop"&&(f.next=a);if(f.push&&(f.nextState=f.next||f.push,f.next=g,delete f.push),f.rules)for(var x in f.rules)s[x]?s[x].push&&s[x].push.apply(s[x],f.rules[x]):s[x]=f.rules[x];var $=typeof f=="string"?f:f.include;if($&&($==="$self"&&($="start"),Array.isArray($)?m=$.map(function(b){return s[b]}):m=s[$]),m){var _=[c,1].concat(m);f.noEscape&&(_=_.filter(function(b){return!b.next})),h.splice.apply(h,_),c--}f.keywordMap&&(f.token=this.createKeywordMapper(f.keywordMap,f.defaultToken||"text",f.caseInsensitive),delete f.defaultToken)}}Object.keys(s).forEach(i,this)},this.createKeywordMapper=function(p,s,i,u){var h=Object.create(null);return this.$keywordList=[],Object.keys(p).forEach(function(c){for(var f=p[c],m=f.split(u||"|"),v=m.length;v--;){var y=m[v];this.$keywordList.push(y),i&&(y=y.toLowerCase()),h[y]=c}},this),p=null,i?function(c){return h[c.toLowerCase()]||s}:function(c){return h[c]||s}},this.getKeywords=function(){return this.$keywords}}).call(d.prototype),r.TextHighlightRules=d}),ace.define("ace/mode/behaviour",["require","exports","module"],function(n,r,l){var o;o=function(){this.$behaviours={}},(function(){this.add=function(d,g,a){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[d]:this.$behaviours[d]={}}this.$behaviours[d][g]=a},this.addBehaviours=function(d){for(var g in d)for(var a in d[g])this.add(g,a,d[g][a])},this.remove=function(d){this.$behaviours&&this.$behaviours[d]&&delete this.$behaviours[d]},this.inherit=function(d,g){if(typeof d=="function")var a=new d().getBehaviours(g);else var a=d.getBehaviours(g);this.addBehaviours(a)},this.getBehaviours=function(d){if(d){for(var g={},a=0;a<d.length;a++)this.$behaviours[d[a]]&&(g[d[a]]=this.$behaviours[d[a]]);return g}else return this.$behaviours}}).call(o.prototype),r.Behaviour=o}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(n,r,l){var o=n("./range").Range,d=function(){function g(a,p,s){this.$session=a,this.$row=p,this.$rowTokens=a.getTokens(p);var i=a.getTokenAt(p,s);this.$tokenIndex=i?i.index:-1}return g.prototype.stepBackward=function(){for(this.$tokenIndex-=1;this.$tokenIndex<0;){if(this.$row-=1,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},g.prototype.stepForward=function(){this.$tokenIndex+=1;for(var a;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,a||(a=this.$session.getLength()),this.$row>=a)return this.$row=a-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},g.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},g.prototype.getCurrentTokenRow=function(){return this.$row},g.prototype.getCurrentTokenColumn=function(){var a=this.$rowTokens,p=this.$tokenIndex,s=a[p].start;if(s!==void 0)return s;for(s=0;p>0;)p-=1,s+=a[p].value.length;return s},g.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},g.prototype.getCurrentTokenRange=function(){var a=this.$rowTokens[this.$tokenIndex],p=this.getCurrentTokenColumn();return new o(this.$row,p,this.$row,p+a.value.length)},g}();r.TokenIterator=d}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(n,r,l){var o=n("../../lib/oop"),d=n("../behaviour").Behaviour,g=n("../../token_iterator").TokenIterator,a=n("../../lib/lang"),p=["text","paren.rparen","rparen","paren","punctuation.operator"],s=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],i,u={},h={'"':'"',"'":"'"},c=function(v){var y=-1;if(v.multiSelect&&(y=v.selection.index,u.rangeCount!=v.multiSelect.rangeCount&&(u={rangeCount:v.multiSelect.rangeCount})),u[y])return i=u[y];i=u[y]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},f=function(v,y,x,$){var _=v.end.row-v.start.row;return{text:x+y+$,selection:[0,v.start.column+1,_,v.end.column+(_?0:1)]}},m;m=function(v){v=v||{},this.add("braces","insertion",function(y,x,$,_,b){var A=$.getCursorPosition(),L=_.doc.getLine(A.row);if(b=="{"){c($);var k=$.getSelectionRange(),M=_.doc.getTextRange(k);if(M!==""&&M!=="{"&&$.getWrapBehavioursEnabled())return f(k,M,"{","}");if(m.isSaneInsertion($,_))return/[\]\}\)]/.test(L[A.column])||$.inMultiSelectMode||v.braces?(m.recordAutoInsert($,_,"}"),{text:"{}",selection:[1,1]}):(m.recordMaybeInsert($,_,"{"),{text:"{",selection:[1,1]})}else if(b=="}"){c($);var C=L.substring(A.column,A.column+1);if(C=="}"){var R=_.$findOpeningBracket("}",{column:A.column+1,row:A.row});if(R!==null&&m.isAutoInsertedClosing(A,L,b))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(b==`
|
1013
|
-
`||b==`\r
|
1014
|
-
`){c($);var S="";m.isMaybeInsertedClosing(A,L)&&(S=a.stringRepeat("}",i.maybeInsertedBrackets),m.clearMaybeInsertedClosing());var C=L.substring(A.column,A.column+1);if(C==="}"){var w=_.findMatchingBracket({row:A.row,column:A.column+1},"}");if(!w)return null;var E=this.$getIndent(_.getLine(w.row))}else if(S)var E=this.$getIndent(L);else{m.clearMaybeInsertedClosing();return}var T=E+_.getTabString();return{text:`
|
1015
|
-
`+T+`
|
1016
|
-
`+E+S,selection:[1,T.length,1,T.length]}}else m.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(y,x,$,_,b){var A=_.doc.getTextRange(b);if(!b.isMultiLine()&&A=="{"){c($);var L=_.doc.getLine(b.start.row),k=L.substring(b.end.column,b.end.column+1);if(k=="}")return b.end.column++,b;i.maybeInsertedBrackets--}}),this.add("parens","insertion",function(y,x,$,_,b){if(b=="("){c($);var A=$.getSelectionRange(),L=_.doc.getTextRange(A);if(L!==""&&$.getWrapBehavioursEnabled())return f(A,L,"(",")");if(m.isSaneInsertion($,_))return m.recordAutoInsert($,_,")"),{text:"()",selection:[1,1]}}else if(b==")"){c($);var k=$.getCursorPosition(),M=_.doc.getLine(k.row),C=M.substring(k.column,k.column+1);if(C==")"){var R=_.$findOpeningBracket(")",{column:k.column+1,row:k.row});if(R!==null&&m.isAutoInsertedClosing(k,M,b))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(y,x,$,_,b){var A=_.doc.getTextRange(b);if(!b.isMultiLine()&&A=="("){c($);var L=_.doc.getLine(b.start.row),k=L.substring(b.start.column+1,b.start.column+2);if(k==")")return b.end.column++,b}}),this.add("brackets","insertion",function(y,x,$,_,b){if(b=="["){c($);var A=$.getSelectionRange(),L=_.doc.getTextRange(A);if(L!==""&&$.getWrapBehavioursEnabled())return f(A,L,"[","]");if(m.isSaneInsertion($,_))return m.recordAutoInsert($,_,"]"),{text:"[]",selection:[1,1]}}else if(b=="]"){c($);var k=$.getCursorPosition(),M=_.doc.getLine(k.row),C=M.substring(k.column,k.column+1);if(C=="]"){var R=_.$findOpeningBracket("]",{column:k.column+1,row:k.row});if(R!==null&&m.isAutoInsertedClosing(k,M,b))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(y,x,$,_,b){var A=_.doc.getTextRange(b);if(!b.isMultiLine()&&A=="["){c($);var L=_.doc.getLine(b.start.row),k=L.substring(b.start.column+1,b.start.column+2);if(k=="]")return b.end.column++,b}}),this.add("string_dquotes","insertion",function(y,x,$,_,b){var A=_.$mode.$quotes||h;if(b.length==1&&A[b]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(b)!=-1)return;c($);var L=b,k=$.getSelectionRange(),M=_.doc.getTextRange(k);if(M!==""&&(M.length!=1||!A[M])&&$.getWrapBehavioursEnabled())return f(k,M,L,L);if(!M){var C=$.getCursorPosition(),R=_.doc.getLine(C.row),S=R.substring(C.column-1,C.column),w=R.substring(C.column,C.column+1),E=_.getTokenAt(C.row,C.column),T=_.getTokenAt(C.row,C.column+1);if(S=="\\"&&E&&/escape/.test(E.type))return null;var O=E&&/string|escape/.test(E.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=_.$mode.tokenRe;P.lastIndex=0;var H=P.test(S);P.lastIndex=0;var V=P.test(w),j=_.$mode.$pairQuotesAfter,B=j&&j[L]&&j[L].test(S);if(!B&&H||V||w&&!/[\s;,.})\]\\]/.test(w))return null;var U=R[C.column-2];if(S==L&&(U==L||P.test(U)))return null;N=!0}return{text:N?L+L:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(y,x,$,_,b){var A=_.$mode.$quotes||h,L=_.doc.getTextRange(b);if(!b.isMultiLine()&&A.hasOwnProperty(L)){c($);var k=_.doc.getLine(b.start.row),M=k.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,x,$,_,b){if(y==="doc-start"&&(b===`
|
1017
|
-
`||b===`\r
|
1018
|
-
`)&&$.selection.isEmpty()){var A=$.getCursorPosition(),L=_.doc.getLine(A.row),k=_.doc.getLine(A.row+1),M=this.$getIndent(L);if(/\s*\*/.test(k))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,A.column)))return{text:b+M+" * "+b+" "+M+"*/",selection:[1,4+M.length,1,4+M.length]}}})},m.isSaneInsertion=function(v,y){var x=v.getCursorPosition(),$=new g(y,x.row,x.column);if(!this.$matchTokenType($.getCurrentToken()||"text",p)){if(/[)}\]]/.test(v.session.getLine(x.row)[x.column]))return!0;var _=new g(y,x.row,x.column+1);if(!this.$matchTokenType(_.getCurrentToken()||"text",p))return!1}return $.stepForward(),$.getCurrentTokenRow()!==x.row||this.$matchTokenType($.getCurrentToken()||"text",s)},m.$matchTokenType=function(v,y){return y.indexOf(v.type||v)>-1},m.recordAutoInsert=function(v,y,x){var $=v.getCursorPosition(),_=y.doc.getLine($.row);this.isAutoInsertedClosing($,_,i.autoInsertedLineEnd[0])||(i.autoInsertedBrackets=0),i.autoInsertedRow=$.row,i.autoInsertedLineEnd=x+_.substr($.column),i.autoInsertedBrackets++},m.recordMaybeInsert=function(v,y,x){var $=v.getCursorPosition(),_=y.doc.getLine($.row);this.isMaybeInsertedClosing($,_)||(i.maybeInsertedBrackets=0),i.maybeInsertedRow=$.row,i.maybeInsertedLineStart=_.substr(0,$.column)+x,i.maybeInsertedLineEnd=_.substr($.column),i.maybeInsertedBrackets++},m.isAutoInsertedClosing=function(v,y,x){return i.autoInsertedBrackets>0&&v.row===i.autoInsertedRow&&x===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)},o.inherits(m,d),r.CstyleBehaviour=m}),ace.define("ace/unicode",["require","exports","module"],function(n,r,l){for(var o=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],d=0,g=[],a=0;a<o.length;a+=2)g.push(d+=o[a]),o[a+1]&&g.push(45,d+=o[a+1]);r.wordChars=String.fromCharCode.apply(null,g)}),ace.define("ace/mode/text",["require","exports","module","ace/config","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],function(n,r,l){var o=n("../config"),d=n("../tokenizer").Tokenizer,g=n("./text_highlight_rules").TextHighlightRules,a=n("./behaviour/cstyle").CstyleBehaviour,p=n("../unicode"),s=n("../lib/lang"),i=n("../token_iterator").TokenIterator,u=n("../range").Range,h;h=function(){this.HighlightRules=g},(function(){this.$defaultBehaviour=new a,this.tokenRe=new RegExp("^["+p.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+p.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new d(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(c,f,m,v){var y=f.doc,x=!0,$=!0,_=1/0,b=f.getTabSize(),A=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var M=this.lineCommentStart.map(s.escapeRegExp).join("|"),L=this.lineCommentStart[0];else var M=s.escapeRegExp(this.lineCommentStart),L=this.lineCommentStart;M=new RegExp("^(\\s*)(?:"+M+") ?"),A=f.getUseSoftTabs();var S=function(V,j){var B=V.match(M);if(B){var U=B[1].length,q=B[0].length;!T(V,U,q)&&B[0][q-1]==" "&&q--,y.removeInLine(j,U,q)}},E=L+" ",R=function(V,j){(!x||/\S/.test(V))&&(T(V,_,_)?y.insertInLine({row:j,column:_},E):y.insertInLine({row:j,column:_},L))},w=function(V,j){return M.test(V)},T=function(V,j,B){for(var U=0;j--&&V.charAt(j)==" ";)U++;if(U%b!=0)return!1;for(var U=0;V.charAt(B++)==" ";)U++;return b>2?U%b!=b-1:U%b==0}}else{if(!this.blockComment)return!1;var L=this.blockComment.start,k=this.blockComment.end,M=new RegExp("^(\\s*)(?:"+s.escapeRegExp(L)+")"),C=new RegExp("(?:"+s.escapeRegExp(k)+")\\s*$"),R=function(N,P){w(N,P)||(!x||/\S/.test(N))&&(y.insertInLine({row:P,column:N.length},k),y.insertInLine({row:P,column:_},L))},S=function(N,P){var H;(H=N.match(C))&&y.removeInLine(P,N.length-H[0].length,N.length),(H=N.match(M))&&y.removeInLine(P,H[1].length,H[0].length)},w=function(N,P){if(M.test(N))return!0;for(var H=f.getTokens(P),V=0;V<H.length;V++)if(H[V].type==="comment")return!0}}function O(N){for(var P=m;P<=v;P++)N(y.getLine(P),P)}var I=1/0;O(function(N,P){var H=N.search(/\S/);H!==-1?(H<_&&(_=H),$&&!w(N,P)&&($=!1)):I>N.length&&(I=N.length)}),_==1/0&&(_=I,x=!1,$=!1),A&&_%b!=0&&(_=Math.floor(_/b)*b),O($?S:R)},this.toggleBlockComment=function(c,f,m,v){var y=this.blockComment;if(y){!y.start&&y[0]&&(y=y[0]);var x=new i(f,v.row,v.column),$=x.getCurrentToken();f.selection;var _=f.selection.toOrientedRange(),b,A;if($&&/comment/.test($.type)){for(var L,k;$&&/comment/.test($.type);){var M=$.value.indexOf(y.start);if(M!=-1){var C=x.getCurrentTokenRow(),R=x.getCurrentTokenColumn()+M;L=new u(C,R,C,R+y.start.length);break}$=x.stepBackward()}for(var x=new i(f,v.row,v.column),$=x.getCurrentToken();$&&/comment/.test($.type);){var M=$.value.indexOf(y.end);if(M!=-1){var C=x.getCurrentTokenRow(),R=x.getCurrentTokenColumn()+M;k=new u(C,R,C,R+y.end.length);break}$=x.stepForward()}k&&f.remove(k),L&&(f.remove(L),b=L.start.row,A=-y.start.length)}else A=y.start.length,b=m.start.row,f.insert(m.end,y.end),f.insert(m.start,y.start);_.start.row==b&&(_.start.column+=A),_.end.row==b&&(_.end.column+=A),f.selection.fromOrientedRange(_)}},this.getNextLineIndent=function(c,f,m){return this.$getIndent(f)},this.checkOutdent=function(c,f,m){return!1},this.autoOutdent=function(c,f,m){},this.$getIndent=function(c){return c.match(/^\s*/)[0]},this.createWorker=function(c){return null},this.createModeDelegates=function(c){this.$embeds=[],this.$modes={};for(var f in c)if(c[f]){var m=c[f],v=m.prototype.$id,y=o.$modes[v];y||(o.$modes[v]=y=new m),o.$modes[f]||(o.$modes[f]=y),this.$embeds.push(f),this.$modes[f]=y}for(var x=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],$=function(b){(function(A){var L=x[b],k=A[L];A[x[b]]=function(){return this.$delegator(L,arguments,k)}})(_)},_=this,f=0;f<x.length;f++)$(f)},this.$delegator=function(c,f,m){var v=f[0]||"start";if(typeof v!="string"){if(Array.isArray(v[2])){var y=v[2][v[2].length-1],x=this.$modes[y];if(x)return x[c].apply(x,[v[1]].concat([].slice.call(f,1)))}v=v[0]||"start"}for(var $=0;$<this.$embeds.length;$++)if(this.$modes[this.$embeds[$]]){var _=v.split(this.$embeds[$]);if(!_[0]&&_[1]){f[0]=_[1];var x=this.$modes[this.$embeds[$]];return x[c].apply(x,f)}}var b=m.apply(this,f);return m?b:void 0},this.transformAction=function(c,f,m,v,y){if(this.$behaviour){var x=this.$behaviour.getBehaviours();for(var $ in x)if(x[$][f]){var _=x[$][f].apply(this,arguments);if(_)return _}}},this.getKeywords=function(c){if(!this.completionKeywords){var f=this.$tokenizer.rules,m=[];for(var v in f)for(var y=f[v],x=0,$=y.length;x<$;x++)if(typeof y[x].token=="string")/keyword|support|storage/.test(y[x].token)&&m.push(y[x].regex);else if(typeof y[x].token=="object"){for(var _=0,b=y[x].token.length;_<b;_++)if(/keyword|support|storage/.test(y[x].token[_])){var v=y[x].regex.match(/\(.+?\)/g)[_];m.push(v.substr(1,v.length-2))}}this.completionKeywords=m}return c?m.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(c,f,m,v){var y=this.$keywordList||this.$createKeywordList();return y.map(function(x){return{name:x,value:x,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call(h.prototype),r.Mode=h}),ace.define("ace/apply_delta",["require","exports","module"],function(n,r,l){r.applyDelta=function(o,d,g){var a=d.start.row,p=d.start.column,s=o[a]||"";switch(d.action){case"insert":var i=d.lines;if(i.length===1)o[a]=s.substring(0,p)+d.lines[0]+s.substring(p);else{var u=[a,1].concat(d.lines);o.splice.apply(o,u),o[a]=s.substring(0,p)+o[a],o[a+d.lines.length-1]+=s.substring(p)}break;case"remove":var h=d.end.column,c=d.end.row;a===c?o[a]=s.substring(0,p)+s.substring(h):o.splice(a,c-a+1,s.substring(0,p)+o[c].substring(h));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(n,r,l){var o=n("./lib/oop"),d=n("./lib/event_emitter").EventEmitter,g=function(){function s(i,u,h){this.$onChange=this.onChange.bind(this),this.attach(i),typeof u!="number"?this.setPosition(u.row,u.column):this.setPosition(u,h)}return s.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},s.prototype.getDocument=function(){return this.document},s.prototype.onChange=function(i){if(!(i.start.row==i.end.row&&i.start.row!=this.row)&&!(i.start.row>this.row)){var u=p(i,{row:this.row,column:this.column},this.$insertRight);this.setPosition(u.row,u.column,!0)}},s.prototype.setPosition=function(i,u,h){var c;if(h?c={row:i,column:u}:c=this.$clipPositionToDocument(i,u),!(this.row==c.row&&this.column==c.column)){var f={row:this.row,column:this.column};this.row=c.row,this.column=c.column,this._signal("change",{old:f,value:c})}},s.prototype.detach=function(){this.document.off("change",this.$onChange)},s.prototype.attach=function(i){this.document=i||this.document,this.document.on("change",this.$onChange)},s.prototype.$clipPositionToDocument=function(i,u){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,u))),u<0&&(h.column=0),h},s}();g.prototype.$insertRight=!1,o.implement(g.prototype,d);function a(s,i,u){var h=u?s.column<=i.column:s.column<i.column;return s.row<i.row||s.row==i.row&&h}function p(s,i,u){var h=s.action=="insert",c=(h?1:-1)*(s.end.row-s.start.row),f=(h?1:-1)*(s.end.column-s.start.column),m=s.start,v=h?m:s.end;return a(i,m,u)?{row:i.row,column:i.column}:a(v,i,!u)?{row:i.row+c,column:i.column+(i.row==v.row?f:0)}:{row:m.row,column:m.column}}r.Anchor=g}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(n,r,l){var o=n("./lib/oop"),d=n("./apply_delta").applyDelta,g=n("./lib/event_emitter").EventEmitter,a=n("./range").Range,p=n("./anchor").Anchor,s=function(){function i(u){this.$lines=[""],u.length===0?this.$lines=[""]:Array.isArray(u)?this.insertMergedLines({row:0,column:0},u):this.insert({row:0,column:0},u)}return i.prototype.setValue=function(u){var h=this.getLength()-1;this.remove(new a(0,0,h,this.getLine(h).length)),this.insert({row:0,column:0},u||"")},i.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},i.prototype.createAnchor=function(u,h){return new p(this,u,h)},i.prototype.$detectNewLine=function(u){var h=u.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=h?h[1]:`
|
1019
|
-
`,this._signal("changeNewLineMode")},i.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
|
1020
|
-
`;case"unix":return`
|
1021
|
-
`;default:return this.$autoNewLine||`
|
1022
|
-
`}},i.prototype.setNewLineMode=function(u){this.$newLineMode!==u&&(this.$newLineMode=u,this._signal("changeNewLineMode"))},i.prototype.getNewLineMode=function(){return this.$newLineMode},i.prototype.isNewLine=function(u){return u==`\r
|
1023
|
-
`||u=="\r"||u==`
|
1024
|
-
`},i.prototype.getLine=function(u){return this.$lines[u]||""},i.prototype.getLines=function(u,h){return this.$lines.slice(u,h+1)},i.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},i.prototype.getLength=function(){return this.$lines.length},i.prototype.getTextRange=function(u){return this.getLinesForRange(u).join(this.getNewLineCharacter())},i.prototype.getLinesForRange=function(u){var h;if(u.start.row===u.end.row)h=[this.getLine(u.start.row).substring(u.start.column,u.end.column)];else{h=this.getLines(u.start.row,u.end.row),h[0]=(h[0]||"").substring(u.start.column);var c=h.length-1;u.end.row-u.start.row==c&&(h[c]=h[c].substring(0,u.end.column))}return h},i.prototype.insertLines=function(u,h){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(u,h)},i.prototype.removeLines=function(u,h){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(u,h)},i.prototype.insertNewLine=function(u){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(u,["",""])},i.prototype.insert=function(u,h){return this.getLength()<=1&&this.$detectNewLine(h),this.insertMergedLines(u,this.$split(h))},i.prototype.insertInLine=function(u,h){var c=this.clippedPos(u.row,u.column),f=this.pos(u.row,u.column+h.length);return this.applyDelta({start:c,end:f,action:"insert",lines:[h]},!0),this.clonePos(f)},i.prototype.clippedPos=function(u,h){var c=this.getLength();u===void 0?u=c:u<0?u=0:u>=c&&(u=c-1,h=void 0);var f=this.getLine(u);return h==null&&(h=f.length),h=Math.min(Math.max(h,0),f.length),{row:u,column:h}},i.prototype.clonePos=function(u){return{row:u.row,column:u.column}},i.prototype.pos=function(u,h){return{row:u,column:h}},i.prototype.$clipPosition=function(u){var h=this.getLength();return u.row>=h?(u.row=Math.max(0,h-1),u.column=this.getLine(h-1).length):(u.row=Math.max(0,u.row),u.column=Math.min(Math.max(u.column,0),this.getLine(u.row).length)),u},i.prototype.insertFullLines=function(u,h){u=Math.min(Math.max(u,0),this.getLength());var c=0;u<this.getLength()?(h=h.concat([""]),c=0):(h=[""].concat(h),u--,c=this.$lines[u].length),this.insertMergedLines({row:u,column:c},h)},i.prototype.insertMergedLines=function(u,h){var c=this.clippedPos(u.row,u.column),f={row:c.row+h.length-1,column:(h.length==1?c.column:0)+h[h.length-1].length};return this.applyDelta({start:c,end:f,action:"insert",lines:h}),this.clonePos(f)},i.prototype.remove=function(u){var h=this.clippedPos(u.start.row,u.start.column),c=this.clippedPos(u.end.row,u.end.column);return this.applyDelta({start:h,end:c,action:"remove",lines:this.getLinesForRange({start:h,end:c})}),this.clonePos(h)},i.prototype.removeInLine=function(u,h,c){var f=this.clippedPos(u,h),m=this.clippedPos(u,c);return this.applyDelta({start:f,end:m,action:"remove",lines:this.getLinesForRange({start:f,end:m})},!0),this.clonePos(f)},i.prototype.removeFullLines=function(u,h){u=Math.min(Math.max(0,u),this.getLength()-1),h=Math.min(Math.max(0,h),this.getLength()-1);var c=h==this.getLength()-1&&u>0,f=h<this.getLength()-1,m=c?u-1:u,v=c?this.getLine(m).length:0,y=f?h+1:h,x=f?0:this.getLine(y).length,$=new a(m,v,y,x),_=this.$lines.slice(u,h+1);return this.applyDelta({start:$.start,end:$.end,action:"remove",lines:this.getLinesForRange($)}),_},i.prototype.removeNewLine=function(u){u<this.getLength()-1&&u>=0&&this.applyDelta({start:this.pos(u,this.getLine(u).length),end:this.pos(u+1,0),action:"remove",lines:["",""]})},i.prototype.replace=function(u,h){if(u instanceof a||(u=a.fromPoints(u.start,u.end)),h.length===0&&u.isEmpty())return u.start;if(h==this.getTextRange(u))return u.end;this.remove(u);var c;return h?c=this.insert(u.start,h):c=u.start,c},i.prototype.applyDeltas=function(u){for(var h=0;h<u.length;h++)this.applyDelta(u[h])},i.prototype.revertDeltas=function(u){for(var h=u.length-1;h>=0;h--)this.revertDelta(u[h])},i.prototype.applyDelta=function(u,h){var c=u.action=="insert";(c?u.lines.length<=1&&!u.lines[0]:!a.comparePoints(u.start,u.end))||(c&&u.lines.length>2e4?this.$splitAndapplyLargeDelta(u,2e4):(d(this.$lines,u,h),this._signal("change",u)))},i.prototype.$safeApplyDelta=function(u){var h=this.$lines.length;(u.action=="remove"&&u.start.row<h&&u.end.row<h||u.action=="insert"&&u.start.row<=h)&&this.applyDelta(u)},i.prototype.$splitAndapplyLargeDelta=function(u,h){for(var c=u.lines,f=c.length-h+1,m=u.start.row,v=u.start.column,y=0,x=0;y<f;y=x){x+=h-1;var $=c.slice(y,x);$.push(""),this.applyDelta({start:this.pos(m+y,v),end:this.pos(m+x,v=0),action:u.action,lines:$},!0)}u.lines=c.slice(y),u.start.row=m+y,u.start.column=v,this.applyDelta(u,!0)},i.prototype.revertDelta=function(u){this.$safeApplyDelta({start:this.clonePos(u.start),end:this.clonePos(u.end),action:u.action=="insert"?"remove":"insert",lines:u.lines.slice()})},i.prototype.indexToPosition=function(u,h){for(var c=this.$lines||this.getAllLines(),f=this.getNewLineCharacter().length,m=h||0,v=c.length;m<v;m++)if(u-=c[m].length+f,u<0)return{row:m,column:u+c[m].length+f};return{row:v-1,column:u+c[v-1].length+f}},i.prototype.positionToIndex=function(u,h){for(var c=this.$lines||this.getAllLines(),f=this.getNewLineCharacter().length,m=0,v=Math.min(u.row,c.length),y=h||0;y<v;++y)m+=c[y].length+f;return m+u.column},i.prototype.$split=function(u){return u.split(/\r\n|\r|\n/)},i}();s.prototype.$autoNewLine="",s.prototype.$newLineMode="auto",o.implement(s.prototype,g),r.Document=s}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(n,r,l){var o=n("./lib/oop"),d=n("./lib/event_emitter").EventEmitter,g=function(){function a(p,s){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=p;var i=this;this.$worker=function(){if(i.running){for(var u=new Date,h=i.currentLine,c=-1,f=i.doc,m=h;i.lines[h];)h++;var v=f.getLength(),y=0;for(i.running=!1;h<v;){i.$tokenizeRow(h),c=h;do h++;while(i.lines[h]);if(y++,y%5===0&&new Date-u>20){i.running=setTimeout(i.$worker,20);break}}i.currentLine=h,c==-1&&(c=h),m<=c&&i.fireUpdateEvent(m,c)}}}return a.prototype.setTokenizer=function(p){this.tokenizer=p,this.lines=[],this.states=[],this.start(0)},a.prototype.setDocument=function(p){this.doc=p,this.lines=[],this.states=[],this.stop()},a.prototype.fireUpdateEvent=function(p,s){var i={first:p,last:s};this._signal("update",{data:i})},a.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)},a.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},a.prototype.$updateOnChange=function(p){var s=p.start.row,i=p.end.row-s;if(i===0)this.lines[s]=null;else if(p.action=="remove")this.lines.splice(s,i+1,null),this.states.splice(s,i+1,null);else{var u=Array(i+1);u.unshift(s,1),this.lines.splice.apply(this.lines,u),this.states.splice.apply(this.states,u)}this.currentLine=Math.min(s,this.currentLine,this.doc.getLength()),this.stop()},a.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},a.prototype.getTokens=function(p){return this.lines[p]||this.$tokenizeRow(p)},a.prototype.getState=function(p){return this.currentLine==p&&this.$tokenizeRow(p),this.states[p]||"start"},a.prototype.$tokenizeRow=function(p){var s=this.doc.getLine(p),i=this.states[p-1],u=this.tokenizer.getLineTokens(s,i,p);return this.states[p]+""!=u.state+""?(this.states[p]=u.state,this.lines[p+1]=null,this.currentLine>p+1&&(this.currentLine=p+1)):this.currentLine==p&&(this.currentLine=p+1),this.lines[p]=u.tokens},a.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},a}();o.implement(g.prototype,d),r.BackgroundTokenizer=g}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(n,r,l){var o=n("./lib/lang"),d=n("./range").Range,g=function(){function a(p,s,i){i===void 0&&(i="text"),this.setRegexp(p),this.clazz=s,this.type=i}return a.prototype.setRegexp=function(p){this.regExp+""!=p+""&&(this.regExp=p,this.cache=[])},a.prototype.update=function(p,s,i,u){if(this.regExp)for(var h=u.firstRow,c=u.lastRow,f={},m=h;m<=c;m++){var v=this.cache[m];v==null&&(v=o.getMatchOffsets(i.getLine(m),this.regExp),v.length>this.MAX_RANGES&&(v=v.slice(0,this.MAX_RANGES)),v=v.map(function(_){return new d(m,_.offset,m,_.offset+_.length)}),this.cache[m]=v.length?v:"");for(var y=v.length;y--;){var x=v[y].toScreenRange(i),$=x.toString();f[$]||(f[$]=!0,s.drawSingleLineMarker(p,x,this.clazz,u))}}},a}();g.prototype.MAX_RANGES=500,r.SearchHighlight=g}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(n,r,l){var o=function(){function _(){this.$keepRedoStack,this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return _.prototype.addSession=function(b){this.$session=b},_.prototype.add=function(b,A,L){if(!this.$fromUndo&&b!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),A===!1||!this.lastDeltas){this.lastDeltas=[];var k=this.$undoStack.length;k>this.$undoDepth-1&&this.$undoStack.splice(0,k-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),b.id=this.$rev=++this.$maxRev}(b.action=="remove"||b.action=="insert")&&(this.$lastDelta=b),this.lastDeltas.push(b)}},_.prototype.addSelection=function(b,A){this.selections.push({value:b,rev:A||this.$rev})},_.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},_.prototype.markIgnored=function(b,A){A==null&&(A=this.$rev+1);for(var L=this.$undoStack,k=L.length;k--;){var M=L[k][0];if(M.id<=b)break;M.id<A&&(M.ignore=!0)}this.lastDeltas=null},_.prototype.getSelection=function(b,A){for(var L=this.selections,k=L.length;k--;){var M=L[k];if(M.rev<b)return A&&(M=L[k+1]),M}},_.prototype.getRevision=function(){return this.$rev},_.prototype.getDeltas=function(b,A){A==null&&(A=this.$rev+1);for(var L=this.$undoStack,k=null,M=0,C=L.length;C--;){var R=L[C][0];if(R.id<A&&!k&&(k=C+1),R.id<=b){M=C+1;break}}return L.slice(M,k)},_.prototype.getChangedRanges=function(b,A){A==null&&(A=this.$rev+1)},_.prototype.getChangedLines=function(b,A){A==null&&(A=this.$rev+1)},_.prototype.undo=function(b,A){this.lastDeltas=null;var L=this.$undoStack;if(d(L,L.length)){b||(b=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var k=L.pop(),M=null;return k&&(M=b.undoChanges(k,A),this.$redoStack.push(k),this.$syncRev()),this.$fromUndo=!1,M}},_.prototype.redo=function(b,A){if(this.lastDeltas=null,b||(b=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var L=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);$(this.$redoStack,L),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(C){C[0].id=++this.$maxRev},this)}var k=this.$redoStack.pop(),M=null;return k&&(M=b.redoChanges(k,A),this.$undoStack.push(k),this.$syncRev()),this.$fromUndo=!1,M},_.prototype.$syncRev=function(){var b=this.$undoStack,A=b[b.length-1],L=A&&A[0].id||0;this.$redoStackBaseRev=L,this.$rev=L},_.prototype.reset=function(){this.lastDeltas=null,this.$lastDelta=null,this.$undoStack=[],this.$redoStack=[],this.$rev=0,this.mark=0,this.$redoStackBaseRev=this.$rev,this.selections=[]},_.prototype.canUndo=function(){return this.$undoStack.length>0},_.prototype.canRedo=function(){return this.$redoStack.length>0},_.prototype.bookmark=function(b){b==null&&(b=this.$rev),this.mark=b},_.prototype.isAtBookmark=function(){return this.$rev===this.mark},_.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},_.prototype.fromJSON=function(b){this.reset(),this.$undoStack=b.$undoStack,this.$redoStack=b.$redoStack},_.prototype.$prettyPrint=function(b){return b?i(b):i(this.$undoStack)+`
|
1025
|
-
---
|
1026
|
-
`+i(this.$redoStack)},_}();o.prototype.hasUndo=o.prototype.canUndo,o.prototype.hasRedo=o.prototype.canRedo,o.prototype.isClean=o.prototype.isAtBookmark,o.prototype.markClean=o.prototype.bookmark;function d(_,b){for(var A=b;A--;){var L=_[A];if(L&&!L[0].ignore){for(;A<b-1;){var k=c(_[A],_[A+1]);_[A]=k[0],_[A+1]=k[1],A++}return!0}}}var g=n("./range").Range,a=g.comparePoints;g.comparePoints;function p(_){return{row:_.row,column:_.column}}function s(_){return{start:p(_.start),end:p(_.end),action:_.action,lines:_.lines.slice()}}function i(_){if(_=_||this,Array.isArray(_))return _.map(i).join(`
|
1027
|
-
`);var b="";return _.action?(b=_.action=="insert"?"+":"-",b+="["+_.lines+"]"):_.value&&(Array.isArray(_.value)?b=_.value.map(u).join(`
|
1028
|
-
`):b=u(_.value)),_.start&&(b+=u(_)),(_.id||_.rev)&&(b+=" ("+(_.id||_.rev)+")"),b}function u(_){return _.start.row+":"+_.start.column+"=>"+_.end.row+":"+_.end.column}function h(_,b){var A=_.action=="insert",L=b.action=="insert";if(A&&L)if(a(b.start,_.end)>=0)m(b,_,-1);else if(a(b.start,_.start)<=0)m(_,b,1);else return null;else if(A&&!L)if(a(b.start,_.end)>=0)m(b,_,-1);else if(a(b.end,_.start)<=0)m(_,b,-1);else return null;else if(!A&&L)if(a(b.start,_.start)>=0)m(b,_,1);else if(a(b.start,_.start)<=0)m(_,b,1);else return null;else if(!A&&!L)if(a(b.start,_.start)>=0)m(b,_,1);else if(a(b.end,_.start)<=0)m(_,b,-1);else return null;return[b,_]}function c(_,b){for(var A=_.length;A--;)for(var L=0;L<b.length;L++)if(!h(_[A],b[L])){for(;A<_.length;){for(;L--;)h(b[L],_[A]);L=b.length,A++}return[_,b]}return _.selectionBefore=b.selectionBefore=_.selectionAfter=b.selectionAfter=null,[b,_]}function f(_,b){var A=_.action=="insert",L=b.action=="insert";if(A&&L)a(_.start,b.start)<0?m(b,_,1):m(_,b,1);else if(A&&!L)a(_.start,b.end)>=0?m(_,b,-1):(a(_.start,b.start)<=0||m(_,g.fromPoints(b.start,_.start),-1),m(b,_,1));else if(!A&&L)a(b.start,_.end)>=0?m(b,_,-1):(a(b.start,_.start)<=0||m(b,g.fromPoints(_.start,b.start),-1),m(_,b,1));else if(!A&&!L)if(a(b.start,_.end)>=0)m(b,_,-1);else if(a(b.end,_.start)<=0)m(_,b,-1);else{var k,M;return a(_.start,b.start)<0&&(k=_,_=y(_,b.start)),a(_.end,b.end)>0&&(M=y(_,b.end)),v(b.end,_.start,_.end,-1),M&&!k&&(_.lines=M.lines,_.start=M.start,_.end=M.end,M=_),[b,k,M].filter(Boolean)}return[b,_]}function m(_,b,A){v(_.start,b.start,b.end,A),v(_.end,b.start,b.end,A)}function v(_,b,A,L){_.row==(L==1?b:A).row&&(_.column+=L*(A.column-b.column)),_.row+=L*(A.row-b.row)}function y(_,b){var A=_.lines,L=_.end;_.end=p(b);var k=_.end.row-_.start.row,M=A.splice(k,A.length),C=k?b.column:b.column-_.start.column;A.push(M[0].substring(0,C)),M[0]=M[0].substr(C);var R={start:p(b),end:L,lines:M,action:_.action};return R}function x(_,b){b=s(b);for(var A=_.length;A--;){for(var L=_[A],k=0;k<L.length;k++){var M=L[k],C=f(M,b);b=C[0],C.length!=2&&(C[2]?(L.splice(k+1,1,C[1],C[2]),k++):C[1]||(L.splice(k,1),k--))}L.length||_.splice(A,1)}return _}function $(_,b){for(var A=0;A<b.length;A++)for(var L=b[A],k=0;k<L.length;k++)x(_,L[k])}r.UndoManager=o}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(n,r,l){var o=n("../range").Range,d=function(){function g(a,p){this.foldData=a,Array.isArray(p)?this.folds=p:p=this.folds=[p];var s=p[p.length-1];this.range=new o(p[0].start.row,p[0].start.column,s.end.row,s.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(i){i.setFoldLine(this)},this)}return g.prototype.shiftRow=function(a){this.start.row+=a,this.end.row+=a,this.folds.forEach(function(p){p.start.row+=a,p.end.row+=a})},g.prototype.addFold=function(a){if(a.sameRow){if(a.start.row<this.startRow||a.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(a),this.folds.sort(function(p,s){return-p.range.compareEnd(s.start.row,s.start.column)}),this.range.compareEnd(a.start.row,a.start.column)>0?(this.end.row=a.end.row,this.end.column=a.end.column):this.range.compareStart(a.end.row,a.end.column)<0&&(this.start.row=a.start.row,this.start.column=a.start.column)}else if(a.start.row==this.end.row)this.folds.push(a),this.end.row=a.end.row,this.end.column=a.end.column;else if(a.end.row==this.start.row)this.folds.unshift(a),this.start.row=a.start.row,this.start.column=a.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");a.foldLine=this},g.prototype.containsRow=function(a){return a>=this.start.row&&a<=this.end.row},g.prototype.walk=function(a,p,s){var i=0,u=this.folds,h,c,f,m=!0;p==null&&(p=this.end.row,s=this.end.column);for(var v=0;v<u.length;v++){if(h=u[v],c=h.range.compareStart(p,s),c==-1){a(null,p,s,i,m);return}if(f=a(null,h.start.row,h.start.column,i,m),f=!f&&a(h.placeholder,h.start.row,h.start.column,i),f||c===0)return;m=!h.sameRow,i=h.end.column}a(null,p,s,i,m)},g.prototype.getNextFoldTo=function(a,p){for(var s,i,u=0;u<this.folds.length;u++){if(s=this.folds[u],i=s.range.compareEnd(a,p),i==-1)return{fold:s,kind:"after"};if(i===0)return{fold:s,kind:"inside"}}return null},g.prototype.addRemoveChars=function(a,p,s){var i=this.getNextFoldTo(a,p),u,h;if(i){if(u=i.fold,i.kind=="inside"&&u.start.column!=p&&u.start.row!=a)window.console&&window.console.log(a,p,u);else if(u.start.row==a){h=this.folds;var c=h.indexOf(u);for(c===0&&(this.start.column+=s),c;c<h.length;c++){if(u=h[c],u.start.column+=s,!u.sameRow)return;u.end.column+=s}this.end.column+=s}}},g.prototype.split=function(a,p){var s=this.getNextFoldTo(a,p);if(!s||s.kind=="inside")return null;var i=s.fold,u=this.folds,h=this.foldData,c=u.indexOf(i),f=u[c-1];this.end.row=f.end.row,this.end.column=f.end.column,u=u.splice(c,u.length-c);var m=new g(h,u);return h.splice(h.indexOf(this)+1,0,m),m},g.prototype.merge=function(a){for(var p=a.folds,s=0;s<p.length;s++)this.addFold(p[s]);var i=this.foldData;i.splice(i.indexOf(a),1)},g.prototype.toString=function(){var a=[this.range.toString()+": ["];return this.folds.forEach(function(p){a.push(" "+p.toString())}),a.push("]"),a.join(`
|
1029
|
-
`)},g.prototype.idxToPosition=function(a){for(var p=0,s=0;s<this.folds.length;s++){var i=this.folds[s];if(a-=i.start.column-p,a<0)return{row:i.start.row,column:i.start.column+a};if(a-=i.placeholder.length,a<0)return i.start;p=i.end.column}return{row:this.end.row,column:this.end.column+a}},g}();r.FoldLine=d}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(n,r,l){var o=n("./range").Range,d=o.comparePoints,g=function(){function a(){this.ranges=[],this.$bias=1}return a.prototype.pointIndex=function(p,s,i){for(var u=this.ranges,h=i||0;h<u.length;h++){var c=u[h],f=d(p,c.end);if(!(f>0)){var m=d(p,c.start);return f===0?s&&m!==0?-h-2:h:m>0||m===0&&!s?h:-h-1}}return-h-1},a.prototype.add=function(p){var s=!p.isEmpty(),i=this.pointIndex(p.start,s);i<0&&(i=-i-1);var u=this.pointIndex(p.end,s,i);return u<0?u=-u-1:u++,this.ranges.splice(i,u-i,p)},a.prototype.addList=function(p){for(var s=[],i=p.length;i--;)s.push.apply(s,this.add(p[i]));return s},a.prototype.substractPoint=function(p){var s=this.pointIndex(p);if(s>=0)return this.ranges.splice(s,1)},a.prototype.merge=function(){var p=[],s=this.ranges;s=s.sort(function(f,m){return d(f.start,m.start)});for(var i=s[0],u,h=1;h<s.length;h++){u=i,i=s[h];var c=d(u.end,i.start);c<0||c==0&&!u.isEmpty()&&!i.isEmpty()||(d(u.end,i.end)<0&&(u.end.row=i.end.row,u.end.column=i.end.column),s.splice(h,1),p.push(i),i=u,h--)}return this.ranges=s,p},a.prototype.contains=function(p,s){return this.pointIndex({row:p,column:s})>=0},a.prototype.containsPoint=function(p){return this.pointIndex(p)>=0},a.prototype.rangeAtPoint=function(p){var s=this.pointIndex(p);if(s>=0)return this.ranges[s]},a.prototype.clipRows=function(p,s){var i=this.ranges;if(i[0].start.row>s||i[i.length-1].start.row<p)return[];var u=this.pointIndex({row:p,column:0});u<0&&(u=-u-1);var h=this.pointIndex({row:s,column:0},u);h<0&&(h=-h-1);for(var c=[],f=u;f<h;f++)c.push(i[f]);return c},a.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},a.prototype.attach=function(p){this.session&&this.detach(),this.session=p,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},a.prototype.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},a.prototype.$onChange=function(p){for(var s=p.start,i=p.end,u=s.row,h=i.row,c=this.ranges,f=0,m=c.length;f<m;f++){var v=c[f];if(v.end.row>=u)break}if(p.action=="insert")for(var y=h-u,x=-s.column+i.column;f<m;f++){var v=c[f];if(v.start.row>u)break;if(v.start.row==u&&v.start.column>=s.column&&(v.start.column==s.column&&this.$bias<=0||(v.start.column+=x,v.start.row+=y)),v.end.row==u&&v.end.column>=s.column){if(v.end.column==s.column&&this.$bias<0)continue;v.end.column==s.column&&x>0&&f<m-1&&v.end.column>v.start.column&&v.end.column==c[f+1].start.column&&(v.end.column-=x),v.end.column+=x,v.end.row+=y}}else for(var y=u-h,x=s.column-i.column;f<m;f++){var v=c[f];if(v.start.row>h)break;v.end.row<h&&(u<v.end.row||u==v.end.row&&s.column<v.end.column)?(v.end.row=u,v.end.column=s.column):v.end.row==h?v.end.column<=i.column?(y||v.end.column>s.column)&&(v.end.column=s.column,v.end.row=s.row):(v.end.column+=x,v.end.row+=y):v.end.row>h&&(v.end.row+=y),v.start.row<h&&(u<v.start.row||u==v.start.row&&s.column<v.start.column)?(v.start.row=u,v.start.column=s.column):v.start.row==h?v.start.column<=i.column?(y||v.start.column>s.column)&&(v.start.column=s.column,v.start.row=s.row):(v.start.column+=x,v.start.row+=y):v.start.row>h&&(v.start.row+=y)}if(y!=0&&f<m)for(;f<m;f++){var v=c[f];v.start.row+=y,v.end.row+=y}},a}();g.prototype.comparePoints=d,r.RangeList=g}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(n,r,l){var o=this&&this.__extends||function(){var u=function(h,c){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var v in m)Object.prototype.hasOwnProperty.call(m,v)&&(f[v]=m[v])},u(h,c)};return function(h,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");u(h,c);function f(){this.constructor=h}h.prototype=c===null?Object.create(c):(f.prototype=c.prototype,new f)}}(),d=n("../range_list").RangeList,g=function(u){o(h,u);function h(c,f){var m=u.call(this)||this;return m.foldLine=null,m.placeholder=f,m.range=c,m.start=c.start,m.end=c.end,m.sameRow=c.start.row==c.end.row,m.subFolds=m.ranges=[],m}return h.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},h.prototype.setFoldLine=function(c){this.foldLine=c,this.subFolds.forEach(function(f){f.setFoldLine(c)})},h.prototype.clone=function(){var c=this.range.clone(),f=new h(c,this.placeholder);return this.subFolds.forEach(function(m){f.subFolds.push(m.clone())}),f.collapseChildren=this.collapseChildren,f},h.prototype.addSubFold=function(c){if(!this.range.isEqual(c)){p(c,this.start);for(var x=c.start.row,$=c.start.column,f=0,m=-1;f<this.subFolds.length&&(m=this.subFolds[f].range.compare(x,$),m==1);f++);var v=this.subFolds[f],y=0;if(m==0){if(v.range.containsRange(c))return v.addSubFold(c);y=1}for(var x=c.range.end.row,$=c.range.end.column,_=f,m=-1;_<this.subFolds.length&&(m=this.subFolds[_].range.compare(x,$),m==1);_++);m==0&&_++;for(var b=this.subFolds.splice(f,_-f,c),A=m==0?b.length-1:b.length,L=y;L<A;L++)c.addSubFold(b[L]);return c.setFoldLine(this.foldLine),c}},h.prototype.restoreRange=function(c){return i(c,this.start)},h}(d);function a(u,h){u.row-=h.row,u.row==0&&(u.column-=h.column)}function p(u,h){a(u.start,h),a(u.end,h)}function s(u,h){u.row==0&&(u.column+=h.column),u.row+=h.row}function i(u,h){s(u.start,h),s(u.end,h)}r.Fold=g}),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator","ace/mouse/mouse_event"],function(n,r,l){var o=n("../range").Range,d=n("./fold_line").FoldLine,g=n("./fold").Fold,a=n("../token_iterator").TokenIterator,p=n("../mouse/mouse_event").MouseEvent;function s(){this.getFoldAt=function(i,u,h){var c=this.getFoldLine(i);if(!c)return null;for(var f=c.folds,m=0;m<f.length;m++){var v=f[m].range;if(v.contains(i,u)){if(h==1&&v.isEnd(i,u)&&!v.isEmpty())continue;if(h==-1&&v.isStart(i,u)&&!v.isEmpty())continue;return f[m]}}},this.getFoldsInRange=function(i){var u=i.start,h=i.end,c=this.$foldData,f=[];u.column+=1,h.column-=1;for(var m=0;m<c.length;m++){var v=c[m].range.compareRange(i);if(v!=2){if(v==-2)break;for(var y=c[m].folds,x=0;x<y.length;x++){var $=y[x];if(v=$.range.compareRange(i),v==-2)break;if(v==2)continue;if(v==42)break;f.push($)}}}return u.column-=1,h.column+=1,f},this.getFoldsInRangeList=function(i){if(Array.isArray(i)){var u=[];i.forEach(function(h){u=u.concat(this.getFoldsInRange(h))},this)}else var u=this.getFoldsInRange(i);return u},this.getAllFolds=function(){for(var i=[],u=this.$foldData,h=0;h<u.length;h++)for(var c=0;c<u[h].folds.length;c++)i.push(u[h].folds[c]);return i},this.getFoldStringAt=function(i,u,h,c){if(c=c||this.getFoldLine(i),!c)return null;for(var f={end:{column:0}},m,v,y=0;y<c.folds.length;y++){v=c.folds[y];var x=v.range.compareEnd(i,u);if(x==-1){m=this.getLine(v.start.row).substring(f.end.column,v.start.column);break}else if(x===0)return null;f=v}return m||(m=this.getLine(v.start.row).substring(f.end.column)),h==-1?m.substring(0,u-f.end.column):h==1?m.substring(u-f.end.column):m},this.getFoldLine=function(i,u){var h=this.$foldData,c=0;for(u&&(c=h.indexOf(u)),c==-1&&(c=0),c;c<h.length;c++){var f=h[c];if(f.start.row<=i&&f.end.row>=i)return f;if(f.end.row>i)return null}return null},this.getNextFoldLine=function(i,u){var h=this.$foldData,c=0;for(u&&(c=h.indexOf(u)),c==-1&&(c=0),c;c<h.length;c++){var f=h[c];if(f.end.row>=i)return f}return null},this.getFoldedRowCount=function(i,u){for(var h=this.$foldData,c=u-i+1,f=0;f<h.length;f++){var m=h[f],v=m.end.row,y=m.start.row;if(v>=u){y<u&&(y>=i?c-=u-y:c=0);break}else v>=i&&(y>=i?c-=v-y:c-=v-i+1)}return c},this.$addFoldLine=function(i){return this.$foldData.push(i),this.$foldData.sort(function(u,h){return u.start.row-h.start.row}),i},this.addFold=function(i,u){var h=this.$foldData,c=!1,f;i instanceof g?f=i:(f=new g(u,i),f.collapseChildren=u.collapseChildren),this.$clipRangeToDocument(f.range);var m=f.start.row,v=f.start.column,y=f.end.row,x=f.end.column,$=this.getFoldAt(m,v,1),_=this.getFoldAt(y,x,-1);if($&&_==$)return $.addSubFold(f);$&&!$.range.isStart(m,v)&&this.removeFold($),_&&!_.range.isEnd(y,x)&&this.removeFold(_);var b=this.getFoldsInRange(f.range);b.length>0&&(this.removeFolds(b),f.collapseChildren||b.forEach(function(M){f.addSubFold(M)}));for(var A=0;A<h.length;A++){var L=h[A];if(y==L.start.row){L.addFold(f),c=!0;break}else if(m==L.end.row){if(L.addFold(f),c=!0,!f.sameRow){var k=h[A+1];if(k&&k.start.row==y){L.merge(k);break}}break}else if(y<=L.start.row)break}return c||(L=this.$addFoldLine(new d(this.$foldData,f))),this.$useWrapMode?this.$updateWrapData(L.start.row,L.start.row):this.$updateRowLengthCache(L.start.row,L.start.row),this.$modified=!0,this._signal("changeFold",{data:f,action:"add"}),f},this.addFolds=function(i){i.forEach(function(u){this.addFold(u)},this)},this.removeFold=function(i){var u=i.foldLine,h=u.start.row,c=u.end.row,f=this.$foldData,m=u.folds;if(m.length==1)f.splice(f.indexOf(u),1);else if(u.range.isEnd(i.end.row,i.end.column))m.pop(),u.end.row=m[m.length-1].end.row,u.end.column=m[m.length-1].end.column;else if(u.range.isStart(i.start.row,i.start.column))m.shift(),u.start.row=m[0].start.row,u.start.column=m[0].start.column;else if(i.sameRow)m.splice(m.indexOf(i),1);else{var v=u.split(i.start.row,i.start.column);m=v.folds,m.shift(),v.start.row=m[0].start.row,v.start.column=m[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(h,c):this.$updateRowLengthCache(h,c)),this.$modified=!0,this._signal("changeFold",{data:i,action:"remove"})},this.removeFolds=function(i){for(var u=[],h=0;h<i.length;h++)u.push(i[h]);u.forEach(function(c){this.removeFold(c)},this),this.$modified=!0},this.expandFold=function(i){this.removeFold(i),i.subFolds.forEach(function(u){i.restoreRange(u),this.addFold(u)},this),i.collapseChildren>0&&this.foldAll(i.start.row+1,i.end.row,i.collapseChildren-1),i.subFolds=[]},this.expandFolds=function(i){i.forEach(function(u){this.expandFold(u)},this)},this.unfold=function(i,u){var h,c;if(i==null)h=new o(0,0,this.getLength(),0),u==null&&(u=!0);else if(typeof i=="number")h=new o(i,0,i,this.getLine(i).length);else if("row"in i)h=o.fromPoints(i,i);else{if(Array.isArray(i))return c=[],i.forEach(function(m){c=c.concat(this.unfold(m))},this),c;h=i}c=this.getFoldsInRangeList(h);for(var f=c;c.length==1&&o.comparePoints(c[0].start,h.start)<0&&o.comparePoints(c[0].end,h.end)>0;)this.expandFolds(c),c=this.getFoldsInRangeList(h);if(u!=!1?this.removeFolds(c):this.expandFolds(c),f.length)return f},this.isRowFolded=function(i,u){return!!this.getFoldLine(i,u)},this.getRowFoldEnd=function(i,u){var h=this.getFoldLine(i,u);return h?h.end.row:i},this.getRowFoldStart=function(i,u){var h=this.getFoldLine(i,u);return h?h.start.row:i},this.getFoldDisplayLine=function(i,u,h,c,f){c==null&&(c=i.start.row),f==null&&(f=0),u==null&&(u=i.end.row),h==null&&(h=this.getLine(u).length);var m=this.doc,v="";return i.walk(function(y,x,$,_){if(!(x<c)){if(x==c){if($<f)return;_=Math.max(f,_)}y!=null?v+=y:v+=m.getLine(x).substring(_,$)}},u,h),v},this.getDisplayLine=function(i,u,h,c){var f=this.getFoldLine(i);if(f)return this.getFoldDisplayLine(f,i,u,h,c);var m;return m=this.doc.getLine(i),m.substring(c||0,u||m.length)},this.$cloneFoldData=function(){var i=[];return i=this.$foldData.map(function(u){var h=u.folds.map(function(c){return c.clone()});return new d(i,h)}),i},this.toggleFold=function(i){var u=this.selection,h=u.getRange(),c,f;if(h.isEmpty()){var m=h.start;if(c=this.getFoldAt(m.row,m.column),c){this.expandFold(c);return}else(f=this.findMatchingBracket(m))?h.comparePoint(f)==1?h.end=f:(h.start=f,h.start.column++,h.end.column--):(f=this.findMatchingBracket({row:m.row,column:m.column+1}))?(h.comparePoint(f)==1?h.end=f:h.start=f,h.start.column++):h=this.getCommentFoldRange(m.row,m.column)||h}else{var v=this.getFoldsInRange(h);if(i&&v.length){this.expandFolds(v);return}else v.length==1&&(c=v[0])}if(c||(c=this.getFoldAt(h.start.row,h.start.column)),c&&c.range.toString()==h.toString()){this.expandFold(c);return}var y="...";if(!h.isMultiLine()){if(y=this.getTextRange(h),y.length<4)return;y=y.trim().substring(0,2)+".."}this.addFold(y,h)},this.getCommentFoldRange=function(i,u,h){var c=new a(this,i,u),f=c.getCurrentToken(),m=f&&f.type;if(f&&/^comment|string/.test(m)){m=m.match(/comment|string/)[0],m=="comment"&&(m+="|doc-start|\\.doc");var v=new RegExp(m),y=new o;if(h!=1){do f=c.stepBackward();while(f&&v.test(f.type)&&!/^comment.end/.test(f.type));f=c.stepForward()}if(y.start.row=c.getCurrentTokenRow(),y.start.column=c.getCurrentTokenColumn()+(/^comment.start/.test(f.type)?f.value.length:2),c=new a(this,i,u),h!=-1){var x=-1;do if(f=c.stepForward(),x==-1){var $=this.getState(c.$row);v.test($)||(x=c.$row)}else if(c.$row>x)break;while(f&&v.test(f.type)&&!/^comment.start/.test(f.type));f=c.stepBackward()}else f=c.getCurrentToken();return y.end.row=c.getCurrentTokenRow(),y.end.column=c.getCurrentTokenColumn(),/^comment.end/.test(f.type)||(y.end.column+=f.value.length-2),y}},this.foldAll=function(i,u,h,c){h==null&&(h=1e5);var f=this.foldWidgets;if(f){u=u||this.getLength(),i=i||0;for(var m=i;m<u;m++)if(f[m]==null&&(f[m]=this.getFoldWidget(m)),f[m]=="start"&&!(c&&!c(m))){var v=this.getFoldWidgetRange(m);v&&v.isMultiLine()&&v.end.row<=u&&v.start.row>=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(u){for(var h=i.getTokens(u),c=0;c<h.length;c++){var f=h[c];if(!(f.type=="text"&&/^\s+$/.test(f.value)))return!!/comment/.test(f.type)}})},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(i){if(!this.$foldStyles[i])throw new Error("invalid fold style: "+i+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=i){this.$foldStyle=i,i=="manual"&&this.unfold();var u=this.$foldMode;this.$setFolding(null),this.$setFolding(u)}},this.$setFolding=function(i){if(this.$foldMode!=i){if(this.$foldMode=i,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),!i||this.$foldStyle=="manual"){this.foldWidgets=null;return}this.foldWidgets=[],this.getFoldWidget=i.getFoldWidget.bind(i,this,this.$foldStyle),this.getFoldWidgetRange=i.getFoldWidgetRange.bind(i,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)}},this.getParentFoldRangeData=function(i,u){var h=this.foldWidgets;if(!h||u&&h[i])return{};for(var c=i-1,f;c>=0;){var m=h[c];if(m==null&&(m=h[c]=this.getFoldWidget(c)),m=="start"){var v=this.getFoldWidgetRange(c);if(f||(f=v),v&&v.end.row>=i)break}c--}return{range:c!==-1&&v,firstRange:f}},this.onFoldWidgetClick=function(i,u){u instanceof p&&(u=u.domEvent);var h={children:u.shiftKey,all:u.ctrlKey||u.metaKey,siblings:u.altKey},c=this.$toggleFoldWidget(i,h);if(!c){var f=u.target||u.srcElement;f&&/ace_fold-widget/.test(f.className)&&(f.className+=" ace_invalid")}},this.$toggleFoldWidget=function(i,u){if(this.getFoldWidget){var h=this.getFoldWidget(i),c=this.getLine(i),f=h==="end"?-1:1,m=this.getFoldAt(i,f===-1?0:c.length,f);if(m)return u.children||u.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(u.siblings){var y=this.getParentFoldRangeData(i);if(y.range)var x=y.range.start.row+1,$=y.range.end.row;this.foldAll(x,$,u.all?1e4:0)}else u.children?($=v?v.end.row:this.getLength(),this.foldAll(i+1,$,u.all?1e4:0)):v&&(u.all&&(v.collapseChildren=1e4),this.addFold("...",v));return v}},this.toggleFoldWidget=function(i){var u=this.selection.getCursor().row;u=this.getRowFoldStart(u);var h=this.$toggleFoldWidget(u,{});if(!h){var c=this.getParentFoldRangeData(u,!0);if(h=c.range||c.firstRange,h){u=h.start.row;var f=this.getFoldAt(u,this.getLine(u).length,1);f?this.removeFold(f):this.addFold("...",h)}}},this.updateFoldWidgets=function(i){var u=i.start.row,h=i.end.row-u;if(h===0)this.foldWidgets[u]=null;else if(i.action=="remove")this.foldWidgets.splice(u,h+1,null);else{var c=Array(h+1);c.unshift(u,1),this.foldWidgets.splice.apply(this.foldWidgets,c)}},this.tokenizerUpdateFoldWidgets=function(i){var u=i.data;u.first!=u.last&&this.foldWidgets.length>u.first&&this.foldWidgets.splice(u.first,this.foldWidgets.length)}}r.Folding=s}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(n,r,l){var o=n("../token_iterator").TokenIterator,d=n("../range").Range;function g(){this.findMatchingBracket=function(a,p){if(a.column==0)return null;var s=p||this.getLine(a.row).charAt(a.column-1);if(s=="")return null;var i=s.match(/([\(\[\{])|([\)\]\}])/);return i?i[1]?this.$findClosingBracket(i[1],a):this.$findOpeningBracket(i[2],a):null},this.getBracketRange=function(a){var p=this.getLine(a.row),s=!0,i,u=p.charAt(a.column-1),h=u&&u.match(/([\(\[\{])|([\)\]\}])/);if(h||(u=p.charAt(a.column),a={row:a.row,column:a.column+1},h=u&&u.match(/([\(\[\{])|([\)\]\}])/),s=!1),!h)return null;if(h[1]){var c=this.$findClosingBracket(h[1],a);if(!c)return null;i=d.fromPoints(a,c),s||(i.end.column++,i.start.column--),i.cursor=i.end}else{var c=this.$findOpeningBracket(h[2],a);if(!c)return null;i=d.fromPoints(c,a),s||(i.start.column++,i.end.column--),i.cursor=i.start}return i},this.getMatchingBracketRanges=function(a,p){var s=this.getLine(a.row),i=/([\(\[\{])|([\)\]\}])/,u=!p&&s.charAt(a.column-1),h=u&&u.match(i);if(h||(u=(p===void 0||p)&&s.charAt(a.column),a={row:a.row,column:a.column+1},h=u&&u.match(i)),!h)return null;var c=new d(a.row,a.column-1,a.row,a.column),f=h[1]?this.$findClosingBracket(h[1],a):this.$findOpeningBracket(h[2],a);if(!f)return[c];var m=new d(f.row,f.column,f.row,f.column+1);return[c,m]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(a,p,s){var i=this.$brackets[a],u=1,h=new o(this,p.row,p.column),c=h.getCurrentToken();if(c||(c=h.stepForward()),!!c){s||(s=new RegExp("(\\.?"+c.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var f=p.column-h.getCurrentTokenColumn()-2,m=c.value;;){for(;f>=0;){var v=m.charAt(f);if(v==i){if(u-=1,u==0)return{row:h.getCurrentTokenRow(),column:f+h.getCurrentTokenColumn()}}else v==a&&(u+=1);f-=1}do c=h.stepBackward();while(c&&!s.test(c.type));if(c==null)break;m=c.value,f=m.length-1}return null}},this.$findClosingBracket=function(a,p,s){var i=this.$brackets[a],u=1,h=new o(this,p.row,p.column),c=h.getCurrentToken();if(c||(c=h.stepForward()),!!c){s||(s=new RegExp("(\\.?"+c.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var f=p.column-h.getCurrentTokenColumn();;){for(var m=c.value,v=m.length;f<v;){var y=m.charAt(f);if(y==i){if(u-=1,u==0)return{row:h.getCurrentTokenRow(),column:f+h.getCurrentTokenColumn()}}else y==a&&(u+=1);f+=1}do c=h.stepForward();while(c&&!s.test(c.type));if(c==null)break;f=0}return null}},this.getMatchingTags=function(a){var p=new o(this,a.row,a.column),s=this.$findTagName(p);if(s){var i=p.stepBackward();return i.value==="<"?this.$findClosingTag(p,s):this.$findOpeningTag(p,s)}},this.$findTagName=function(a){var p=a.getCurrentToken(),s=!1,i=!1;if(p&&p.type.indexOf("tag-name")===-1)do i?p=a.stepBackward():p=a.stepForward(),p&&(p.value==="/>"?i=!0:p.type.indexOf("tag-name")!==-1&&(s=!0));while(p&&!s);return p},this.$findClosingTag=function(a,p){var s,i=p.value,u=p.value,h=0,c=new d(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+1);p=a.stepForward();var f=new d(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+p.value.length),m=!1;do if(s=p,p=a.stepForward(),p){if(p.value===">"&&!m){var v=new d(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+1);m=!0}if(p.type.indexOf("tag-name")!==-1){if(i=p.value,u===i){if(s.value==="<")h++;else if(s.value==="</"&&(h--,h<0)){a.stepBackward();var y=new d(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+2);p=a.stepForward();var x=new d(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+p.value.length);if(p=a.stepForward(),p&&p.value===">")var $=new d(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+1);else return}}}else if(u===i&&p.value==="/>"&&(h--,h<0))var y=new d(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+2),x=y,$=x,v=new d(f.end.row,f.end.column,f.end.row,f.end.column+1)}while(p&&h>=0);if(c&&v&&y&&$&&f&&x)return{openTag:new d(c.start.row,c.start.column,v.end.row,v.end.column),closeTag:new d(y.start.row,y.start.column,$.end.row,$.end.column),openTagName:f,closeTagName:x}},this.$findOpeningTag=function(a,p){var s=a.getCurrentToken(),i=p.value,u=0,h=a.getCurrentTokenRow(),c=a.getCurrentTokenColumn(),f=c+2,m=new d(h,c,h,f);a.stepForward();var v=new d(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+p.value.length);if(p=a.stepForward(),!(!p||p.value!==">")){var y=new d(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+1);a.stepBackward(),a.stepBackward();do if(p=s,h=a.getCurrentTokenRow(),c=a.getCurrentTokenColumn(),f=c+p.value.length,s=a.stepBackward(),p){if(p.type.indexOf("tag-name")!==-1){if(i===p.value)if(s.value==="<"){if(u++,u>0){var x=new d(h,c,h,f),$=new d(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+1);do p=a.stepForward();while(p&&p.value!==">");var _=new d(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+1)}}else s.value==="</"&&u--}else if(p.value==="/>"){for(var b=0,A=s;A;){if(A.type.indexOf("tag-name")!==-1&&A.value===i){u--;break}else if(A.value==="<")break;A=a.stepBackward(),b++}for(var L=0;L<b;L++)a.stepForward()}}while(s&&u<=0);if($&&_&&m&&y&&x&&v)return{openTag:new d($.start.row,$.start.column,_.end.row,_.end.column),closeTag:new d(m.start.row,m.start.column,y.end.row,y.end.column),openTagName:x,closeTagName:v}}}}r.BracketMatch=g}),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/bidihandler","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/document","ace/background_tokenizer","ace/search_highlight","ace/undomanager","ace/edit_session/folding","ace/edit_session/bracket_match"],function(n,r,l){var o=n("./lib/oop"),d=n("./lib/lang"),g=n("./bidihandler").BidiHandler,a=n("./config"),p=n("./lib/event_emitter").EventEmitter,s=n("./selection").Selection,i=n("./mode/text").Mode,u=n("./range").Range,h=n("./document").Document,c=n("./background_tokenizer").BackgroundTokenizer,f=n("./search_highlight").SearchHighlight,m=n("./undomanager").UndoManager,v=function(){function C(R,S){this.doc,this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$foldData=[],this.id="session"+ ++C.$uid,this.$foldData.toString=function(){return this.join(`
|
1030
|
-
`)},this.bgTokenizer=new c(new i().getTokenizer(),this);var w=this;this.bgTokenizer.on("update",function(E){w._signal("tokenizerUpdate",E)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof R!="object"||!R.getLine)&&(R=new h(R)),this.setDocument(R),this.selection=new s(this),this.$bidiHandler=new g(this),a.resetOptions(this),this.setMode(S),a._signal("session",this),this.destroyed=!1}return C.prototype.setDocument=function(R){this.doc&&this.doc.off("change",this.$onChange),this.doc=R,R.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},C.prototype.getDocument=function(){return this.doc},C.prototype.$resetRowCache=function(R){if(!R){this.$docRowCache=[],this.$screenRowCache=[];return}var S=this.$docRowCache.length,w=this.$getRowCacheIndex(this.$docRowCache,R)+1;S>w&&(this.$docRowCache.splice(w,S),this.$screenRowCache.splice(w,S))},C.prototype.$getRowCacheIndex=function(R,S){for(var w=0,E=R.length-1;w<=E;){var T=w+E>>1,O=R[T];if(S>O)w=T+1;else if(S<O)E=T-1;else return T}return w-1},C.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},C.prototype.onChangeFold=function(R){var S=R.data;this.$resetRowCache(S.start.row)},C.prototype.onChange=function(R){this.$modified=!0,this.$bidiHandler.onChange(R),this.$resetRowCache(R.start.row);var S=this.$updateInternalDataOnChange(R);!this.$fromUndo&&this.$undoManager&&(S&&S.length&&(this.$undoManager.add({action:"removeFolds",folds:S},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(R,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(R),this._signal("change",R)},C.prototype.setValue=function(R){this.doc.setValue(R),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},C.fromJSON=function(R){typeof R=="string"&&(R=JSON.parse(R));var S=new m;S.$undoStack=R.history.undo,S.$redoStack=R.history.redo,S.mark=R.history.mark,S.$rev=R.history.rev;var w=new C(R.value);return R.folds.forEach(function(E){w.addFold("...",u.fromPoints(E.start,E.end))}),w.setAnnotations(R.annotations),w.setBreakpoints(R.breakpoints),w.setMode(R.mode),w.setScrollLeft(R.scrollLeft),w.setScrollTop(R.scrollTop),w.setUndoManager(S),w.selection.fromJSON(R.selection),w},C.prototype.toJSON=function(){return{annotations:this.$annotations,breakpoints:this.$breakpoints,folds:this.getAllFolds().map(function(R){return R.range}),history:this.getUndoManager(),mode:this.$mode.$id,scrollLeft:this.$scrollLeft,scrollTop:this.$scrollTop,selection:this.selection.toJSON(),value:this.doc.getValue()}},C.prototype.toString=function(){return this.doc.getValue()},C.prototype.getSelection=function(){return this.selection},C.prototype.getState=function(R){return this.bgTokenizer.getState(R)},C.prototype.getTokens=function(R){return this.bgTokenizer.getTokens(R)},C.prototype.getTokenAt=function(R,S){var w=this.bgTokenizer.getTokens(R),E,T=0;if(S==null){var O=w.length-1;T=this.getLine(R).length}else for(var O=0;O<w.length&&(T+=w[O].value.length,!(T>=S));O++);return E=w[O],E?(E.index=O,E.start=T-E.value.length,E):null},C.prototype.setUndoManager=function(R){if(this.$undoManager=R,this.$informUndoManager&&this.$informUndoManager.cancel(),R){var S=this;R.addSession(this),this.$syncInformUndoManager=function(){S.$informUndoManager.cancel(),S.mergeUndoDeltas=!1},this.$informUndoManager=d.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},C.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},C.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},C.prototype.getTabString=function(){return this.getUseSoftTabs()?d.stringRepeat(" ",this.getTabSize()):" "},C.prototype.setUseSoftTabs=function(R){this.setOption("useSoftTabs",R)},C.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},C.prototype.setTabSize=function(R){this.setOption("tabSize",R)},C.prototype.getTabSize=function(){return this.$tabSize},C.prototype.isTabStop=function(R){return this.$useSoftTabs&&R.column%this.$tabSize===0},C.prototype.setNavigateWithinSoftTabs=function(R){this.setOption("navigateWithinSoftTabs",R)},C.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},C.prototype.setOverwrite=function(R){this.setOption("overwrite",R)},C.prototype.getOverwrite=function(){return this.$overwrite},C.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},C.prototype.addGutterDecoration=function(R,S){this.$decorations[R]||(this.$decorations[R]=""),this.$decorations[R]+=" "+S,this._signal("changeBreakpoint",{})},C.prototype.removeGutterDecoration=function(R,S){this.$decorations[R]=(this.$decorations[R]||"").replace(" "+S,""),this._signal("changeBreakpoint",{})},C.prototype.getBreakpoints=function(){return this.$breakpoints},C.prototype.setBreakpoints=function(R){this.$breakpoints=[];for(var S=0;S<R.length;S++)this.$breakpoints[R[S]]="ace_breakpoint";this._signal("changeBreakpoint",{})},C.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},C.prototype.setBreakpoint=function(R,S){S===void 0&&(S="ace_breakpoint"),S?this.$breakpoints[R]=S:delete this.$breakpoints[R],this._signal("changeBreakpoint",{})},C.prototype.clearBreakpoint=function(R){delete this.$breakpoints[R],this._signal("changeBreakpoint",{})},C.prototype.addMarker=function(R,S,w,E){var T=this.$markerId++,O={range:R,type:w||"line",renderer:typeof w=="function"?w:null,clazz:S,inFront:!!E,id:T};return E?(this.$frontMarkers[T]=O,this._signal("changeFrontMarker")):(this.$backMarkers[T]=O,this._signal("changeBackMarker")),T},C.prototype.addDynamicMarker=function(R,S){if(R.update){var w=this.$markerId++;return R.id=w,R.inFront=!!S,S?(this.$frontMarkers[w]=R,this._signal("changeFrontMarker")):(this.$backMarkers[w]=R,this._signal("changeBackMarker")),R}},C.prototype.removeMarker=function(R){var S=this.$frontMarkers[R]||this.$backMarkers[R];if(S){var w=S.inFront?this.$frontMarkers:this.$backMarkers;delete w[R],this._signal(S.inFront?"changeFrontMarker":"changeBackMarker")}},C.prototype.getMarkers=function(R){return R?this.$frontMarkers:this.$backMarkers},C.prototype.highlight=function(R){if(!this.$searchHighlight){var S=new f(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(S)}this.$searchHighlight.setRegexp(R)},C.prototype.highlightLines=function(R,S,w,E){typeof S!="number"&&(w=S,S=R),w||(w="ace_step");var T=new u(R,0,S,1/0);return T.id=this.addMarker(T,w,"fullLine",E),T},C.prototype.setAnnotations=function(R){this.$annotations=R,this._signal("changeAnnotation",{})},C.prototype.getAnnotations=function(){return this.$annotations||[]},C.prototype.clearAnnotations=function(){this.setAnnotations([])},C.prototype.$detectNewLine=function(R){var S=R.match(/^.*?(\r?\n)/m);S?this.$autoNewLine=S[1]:this.$autoNewLine=`
|
1031
|
-
`},C.prototype.getWordRange=function(R,S){var w=this.getLine(R),E=!1;if(S>0&&(E=!!w.charAt(S-1).match(this.tokenRe)),E||(E=!!w.charAt(S).match(this.tokenRe)),E)var T=this.tokenRe;else if(/^\s+$/.test(w.slice(S-1,S+1)))var T=/\s/;else var T=this.nonTokenRe;var O=S;if(O>0){do O--;while(O>=0&&w.charAt(O).match(T));O++}for(var I=S;I<w.length&&w.charAt(I).match(T);)I++;return new u(R,O,R,I)},C.prototype.getAWordRange=function(R,S){for(var w=this.getWordRange(R,S),E=this.getLine(w.end.row);E.charAt(w.end.column).match(/[ \t]/);)w.end.column+=1;return w},C.prototype.setNewLineMode=function(R){this.doc.setNewLineMode(R)},C.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},C.prototype.setUseWorker=function(R){this.setOption("useWorker",R)},C.prototype.getUseWorker=function(){return this.$useWorker},C.prototype.onReloadTokenizer=function(R){var S=R.data;this.bgTokenizer.start(S.first),this._signal("tokenizerUpdate",R)},C.prototype.setMode=function(R,S){if(R&&typeof R=="object"){if(R.getTokenizer)return this.$onChangeMode(R);var w=R,E=w.path}else E=R||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new i),this.$modes[E]&&!w){this.$onChangeMode(this.$modes[E]),S&&S();return}this.$modeId=E,a.loadModule(["mode",E],(function(T){if(this.$modeId!==E)return S&&S();this.$modes[E]&&!w?this.$onChangeMode(this.$modes[E]):T&&T.Mode&&(T=new T.Mode(w),w||(this.$modes[E]=T,T.$id=E),this.$onChangeMode(T)),S&&S()}).bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},C.prototype.$onChangeMode=function(R,S){if(S||(this.$modeId=R.$id),this.$mode!==R){var w=this.$mode;this.$mode=R,this.$stopWorker(),this.$useWorker&&this.$startWorker();var E=R.getTokenizer();if(E.on!==void 0){var T=this.onReloadTokenizer.bind(this);E.on("update",T)}this.bgTokenizer.setTokenizer(E),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=R.tokenRe,this.nonTokenRe=R.nonTokenRe,S||(R.attachToSession&&R.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(R.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:w,mode:R}))}},C.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},C.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(R){a.warn("Could not load worker",R),this.$worker=null}},C.prototype.getMode=function(){return this.$mode},C.prototype.setScrollTop=function(R){this.$scrollTop===R||isNaN(R)||(this.$scrollTop=R,this._signal("changeScrollTop",R))},C.prototype.getScrollTop=function(){return this.$scrollTop},C.prototype.setScrollLeft=function(R){this.$scrollLeft===R||isNaN(R)||(this.$scrollLeft=R,this._signal("changeScrollLeft",R))},C.prototype.getScrollLeft=function(){return this.$scrollLeft},C.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},C.prototype.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var R=0;return this.lineWidgets.forEach(function(S){S&&S.screenWidth>R&&(R=S.screenWidth)}),this.lineWidgetWidth=R},C.prototype.$computeWidth=function(R){if(this.$modified||R){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var S=this.doc.getAllLines(),w=this.$rowLengthCache,E=0,T=0,O=this.$foldData[T],I=O?O.start.row:1/0,N=S.length,P=0;P<N;P++){if(P>I){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(S[P])[0]),w[P]>E&&(E=w[P])}this.screenWidth=E}},C.prototype.getLine=function(R){return this.doc.getLine(R)},C.prototype.getLines=function(R,S){return this.doc.getLines(R,S)},C.prototype.getLength=function(){return this.doc.getLength()},C.prototype.getTextRange=function(R){return this.doc.getTextRange(R||this.selection.getRange())},C.prototype.insert=function(R,S){return this.doc.insert(R,S)},C.prototype.remove=function(R){return this.doc.remove(R)},C.prototype.removeFullLines=function(R,S){return this.doc.removeFullLines(R,S)},C.prototype.undoChanges=function(R,S){if(R.length){this.$fromUndo=!0;for(var w=R.length-1;w!=-1;w--){var E=R[w];E.action=="insert"||E.action=="remove"?this.doc.revertDelta(E):E.folds&&this.addFolds(E.folds)}!S&&this.$undoSelect&&(R.selectionBefore?this.selection.fromJSON(R.selectionBefore):this.selection.setRange(this.$getUndoSelection(R,!0))),this.$fromUndo=!1}},C.prototype.redoChanges=function(R,S){if(R.length){this.$fromUndo=!0;for(var w=0;w<R.length;w++){var E=R[w];(E.action=="insert"||E.action=="remove")&&this.doc.$safeApplyDelta(E)}!S&&this.$undoSelect&&(R.selectionAfter?this.selection.fromJSON(R.selectionAfter):this.selection.setRange(this.$getUndoSelection(R,!1))),this.$fromUndo=!1}},C.prototype.setUndoSelect=function(R){this.$undoSelect=R},C.prototype.$getUndoSelection=function(R,S){function w(N){return S?N.action!=="insert":N.action==="insert"}for(var E,T,O=0;O<R.length;O++){var I=R[O];if(I.start){if(!E){w(I)?E=u.fromPoints(I.start,I.end):E=u.fromPoints(I.start,I.start);continue}w(I)?(T=I.start,E.compare(T.row,T.column)==-1&&E.setStart(T),T=I.end,E.compare(T.row,T.column)==1&&E.setEnd(T)):(T=I.start,E.compare(T.row,T.column)==-1&&(E=u.fromPoints(I.start,I.start)))}}return E},C.prototype.replace=function(R,S){return this.doc.replace(R,S)},C.prototype.moveText=function(R,S,w){var E=this.getTextRange(R),T=this.getFoldsInRange(R),O=u.fromPoints(S,S);if(!w){this.remove(R);var I=R.start.row-R.end.row,N=I?-R.end.column:R.start.column-R.end.column;N&&(O.start.row==R.end.row&&O.start.column>R.end.column&&(O.start.column+=N),O.end.row==R.end.row&&O.end.column>R.end.column&&(O.end.column+=N)),I&&O.start.row>=R.end.row&&(O.start.row+=I,O.end.row+=I)}if(O.end=this.insert(O.start,E),T.length){var P=R.start,H=O.start,I=H.row-P.row,N=H.column-P.column;this.addFolds(T.map(function(B){return B=B.clone(),B.start.row==P.row&&(B.start.column+=N),B.end.row==P.row&&(B.end.column+=N),B.start.row+=I,B.end.row+=I,B}))}return O},C.prototype.indentRows=function(R,S,w){w=w.replace(/\t/g,this.getTabString());for(var E=R;E<=S;E++)this.doc.insertInLine({row:E,column:0},w)},C.prototype.outdentRows=function(R){for(var S=R.collapseRows(),w=new u(0,0,0,0),E=this.getTabSize(),T=S.start.row;T<=S.end.row;++T){var O=this.getLine(T);w.start.row=T,w.end.row=T;for(var I=0;I<E&&O.charAt(I)==" ";++I);I<E&&O.charAt(I)==" "?(w.start.column=I,w.end.column=I+1):(w.start.column=0,w.end.column=I),this.remove(w)}},C.prototype.$moveLines=function(R,S,w){if(R=this.getRowFoldStart(R),S=this.getRowFoldEnd(S),w<0){var E=this.getRowFoldStart(R+w);if(E<0)return 0;var T=E-R}else if(w>0){var E=this.getRowFoldEnd(S+w);if(E>this.doc.getLength()-1)return 0;var T=E-S}else{R=this.$clipRowToDocument(R),S=this.$clipRowToDocument(S);var T=S-R+1}var O=new u(R,0,S,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(R,S):this.doc.removeFullLines(R,S);return this.doc.insertFullLines(R+T,N),I.length&&this.addFolds(I),T},C.prototype.moveLinesUp=function(R,S){return this.$moveLines(R,S,-1)},C.prototype.moveLinesDown=function(R,S){return this.$moveLines(R,S,1)},C.prototype.duplicateLines=function(R,S){return this.$moveLines(R,S,0)},C.prototype.$clipRowToDocument=function(R){return Math.max(0,Math.min(R,this.doc.getLength()-1))},C.prototype.$clipColumnToRow=function(R,S){return S<0?0:Math.min(this.doc.getLine(R).length,S)},C.prototype.$clipPositionToDocument=function(R,S){if(S=Math.max(0,S),R<0)R=0,S=0;else{var w=this.doc.getLength();R>=w?(R=w-1,S=this.doc.getLine(w-1).length):S=Math.min(this.doc.getLine(R).length,S)}return{row:R,column:S}},C.prototype.$clipRangeToDocument=function(R){R.start.row<0?(R.start.row=0,R.start.column=0):R.start.column=this.$clipColumnToRow(R.start.row,R.start.column);var S=this.doc.getLength()-1;return R.end.row>S?(R.end.row=S,R.end.column=this.doc.getLine(S).length):R.end.column=this.$clipColumnToRow(R.end.row,R.end.column),R},C.prototype.setUseWrapMode=function(R){if(R!=this.$useWrapMode){if(this.$useWrapMode=R,this.$modified=!0,this.$resetRowCache(0),R){var S=this.getLength();this.$wrapData=Array(S),this.$updateWrapData(0,S-1)}this._signal("changeWrapMode")}},C.prototype.getUseWrapMode=function(){return this.$useWrapMode},C.prototype.setWrapLimitRange=function(R,S){(this.$wrapLimitRange.min!==R||this.$wrapLimitRange.max!==S)&&(this.$wrapLimitRange={min:R,max:S},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},C.prototype.adjustWrapLimit=function(R,S){var w=this.$wrapLimitRange;w.max<0&&(w={min:S,max:S});var E=this.$constrainWrapLimit(R,w.min,w.max);return E!=this.$wrapLimit&&E>1?(this.$wrapLimit=E,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},C.prototype.$constrainWrapLimit=function(R,S,w){return S&&(R=Math.max(S,R)),w&&(R=Math.min(w,R)),R},C.prototype.getWrapLimit=function(){return this.$wrapLimit},C.prototype.setWrapLimit=function(R){this.setWrapLimitRange(R,R)},C.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},C.prototype.$updateInternalDataOnChange=function(R){var S=this.$useWrapMode,w=R.action,E=R.start,T=R.end,O=E.row,I=T.row,N=I-O,P=null;if(this.$updating=!0,N!=0)if(w==="remove"){this[S?"$wrapData":"$rowLengthCache"].splice(O,N);var H=this.$foldData;P=this.getFoldsInRange(R),this.removeFolds(P);var V=this.getFoldLine(T.row),j=0;if(V){V.addRemoveChars(T.row,T.column,E.column-T.column),V.shiftRow(-N);var B=this.getFoldLine(O);B&&B!==V&&(B.merge(V),V=B),j=H.indexOf(V)+1}for(j;j<H.length;j++){var V=H[j];V.start.row>=T.row&&V.shiftRow(-N)}I=O}else{var U=Array(N);U.unshift(O,0);var q=S?this.$wrapData:this.$rowLengthCache;q.splice.apply(q,U);var H=this.$foldData,V=this.getFoldLine(O),j=0;if(V){var z=V.range.compareInside(E.row,E.column);z==0?(V=V.split(E.row,E.column),V&&(V.shiftRow(N),V.addRemoveChars(I,0,T.column-E.column))):z==-1&&(V.addRemoveChars(O,0,T.column-E.column),V.shiftRow(N)),j=H.indexOf(V)+1}for(j;j<H.length;j++){var V=H[j];V.start.row>=O&&V.shiftRow(N)}}else{N=Math.abs(R.start.column-R.end.column),w==="remove"&&(P=this.getFoldsInRange(R),this.removeFolds(P),N=-N);var V=this.getFoldLine(O);V&&V.addRemoveChars(O,E.column,N)}return S&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,S?this.$updateWrapData(O,I):this.$updateRowLengthCache(O,I),P},C.prototype.$updateRowLengthCache=function(R,S){this.$rowLengthCache[R]=null,this.$rowLengthCache[S]=null},C.prototype.$updateWrapData=function(R,S){var w=this.doc.getAllLines(),E=this.getTabSize(),T=this.$wrapData,O=this.$wrapLimit,I,N,P=R;for(S=Math.min(S,w.length-1);P<=S;)N=this.getFoldLine(P,N),N?(I=[],N.walk((function(H,V,j,B){var U;if(H!=null){U=this.$getDisplayTokens(H,I.length),U[0]=$;for(var q=1;q<U.length;q++)U[q]=_}else U=this.$getDisplayTokens(w[V].substring(B,j),I.length);I=I.concat(U)}).bind(this),N.end.row,w[N.end.row].length+1),T[N.start.row]=this.$computeWrapSplits(I,O,E),P=N.end.row+1):(I=this.$getDisplayTokens(w[P]),T[P]=this.$computeWrapSplits(I,O,E),P++)},C.prototype.$computeWrapSplits=function(R,S,w){if(R.length==0)return[];var E=[],T=R.length,O=0,I=0,N=this.$wrapAsCode,P=this.$indentedSoftWrap,H=S<=Math.max(2*w,8)||P===!1?0:Math.floor(S/2);function V(){var z=0;if(H===0)return z;if(P)for(var Z=0;Z<R.length;Z++){var Y=R[Z];if(Y==A)z+=1;else if(Y==L)z+=w;else{if(Y==k)continue;break}}return N&&P!==!1&&(z+=w),Math.min(z,H)}function j(z){for(var Z=z-O,Y=O;Y<z;Y++){var Q=R[Y];(Q===12||Q===2)&&(Z-=1)}E.length||(B=V(),E.indent=B),I+=Z,E.push(I),O=z}for(var B=0;T-O>S-B;){var U=O+S-B;if(R[U-1]>=A&&R[U]>=A){j(U);continue}if(R[U]==$||R[U]==_){for(U;U!=O-1&&R[U]!=$;U--);if(U>O){j(U);continue}for(U=O+S,U;U<R.length&&R[U]==_;U++);if(U==R.length)break;j(U);continue}for(var q=Math.max(U-(S-(S>>2)),O-1);U>q&&R[U]<$;)U--;if(N){for(;U>q&&R[U]<$;)U--;for(;U>q&&R[U]==b;)U--}else for(;U>q&&R[U]<A;)U--;if(U>q){j(++U);continue}U=O+S,R[U]==x&&U--,j(U-B)}return E},C.prototype.$getDisplayTokens=function(R,S){var w=[],E;S=S||0;for(var T=0;T<R.length;T++){var O=R.charCodeAt(T);if(O==9){E=this.getScreenTabSize(w.length+S),w.push(L);for(var I=1;I<E;I++)w.push(k)}else O==32?w.push(A):O>39&&O<48||O>57&&O<64?w.push(b):O>=4352&&M(O)?w.push(y,x):w.push(y)}return w},C.prototype.$getStringScreenWidth=function(R,S,w){if(S==0)return[0,0];S==null&&(S=1/0),w=w||0;var E,T;for(T=0;T<R.length&&(E=R.charCodeAt(T),E==9?w+=this.getScreenTabSize(w):E>=4352&&M(E)?w+=2:w+=1,!(w>S));T++);return[w,T]},C.prototype.getRowLength=function(R){var S=1;return this.lineWidgets&&(S+=this.lineWidgets[R]&&this.lineWidgets[R].rowCount||0),!this.$useWrapMode||!this.$wrapData[R]?S:this.$wrapData[R].length+S},C.prototype.getRowLineCount=function(R){return!this.$useWrapMode||!this.$wrapData[R]?1:this.$wrapData[R].length+1},C.prototype.getRowWrapIndent=function(R){if(this.$useWrapMode){var S=this.screenToDocumentPosition(R,Number.MAX_VALUE),w=this.$wrapData[S.row];return w.length&&w[0]<S.column?w.indent:0}else return 0},C.prototype.getScreenLastRowColumn=function(R){var S=this.screenToDocumentPosition(R,Number.MAX_VALUE);return this.documentToScreenColumn(S.row,S.column)},C.prototype.getDocumentLastRowColumn=function(R,S){var w=this.documentToScreenRow(R,S);return this.getScreenLastRowColumn(w)},C.prototype.getDocumentLastRowColumnPosition=function(R,S){var w=this.documentToScreenRow(R,S);return this.screenToDocumentPosition(w,Number.MAX_VALUE/10)},C.prototype.getRowSplitData=function(R){if(this.$useWrapMode)return this.$wrapData[R]},C.prototype.getScreenTabSize=function(R){return this.$tabSize-(R%this.$tabSize|0)},C.prototype.screenToDocumentRow=function(R,S){return this.screenToDocumentPosition(R,S).row},C.prototype.screenToDocumentColumn=function(R,S){return this.screenToDocumentPosition(R,S).column},C.prototype.screenToDocumentPosition=function(R,S,w){if(R<0)return{row:0,column:0};var E,T=0,O=0,I,N=0,P=0,H=this.$screenRowCache,V=this.$getRowCacheIndex(H,R),j=H.length;if(j&&V>=0)var N=H[V],T=this.$docRowCache[V],B=R>H[j-1];else var B=!j;for(var U=this.getLength()-1,q=this.getNextFoldLine(T),z=q?q.start.row:1/0;N<=R&&(P=this.getRowLength(T),!(N+P>R||T>=U));)N+=P,T++,T>z&&(T=q.end.row+1,q=this.getNextFoldLine(T,q),z=q?q.start.row:1/0),B&&(this.$docRowCache.push(T),this.$screenRowCache.push(N));if(q&&q.start.row<=T)E=this.getFoldDisplayLine(q),T=q.start.row;else{if(N+P<=R||T>U)return{row:U,column:this.getLine(U).length};E=this.getLine(T),q=null}var Z=0,Y=Math.floor(R-N);if(this.$useWrapMode){var Q=this.$wrapData[T];Q&&(I=Q[Y],Y>0&&Q.length&&(Z=Q.indent,O=Q[Y-1]||Q[Q.length-1],E=E.substring(O)))}return w!==void 0&&this.$bidiHandler.isBidiRow(N+Y,T,Y)&&(S=this.$bidiHandler.offsetToCol(w)),O+=this.$getStringScreenWidth(E,S-Z)[1],this.$useWrapMode&&O>=I&&(O=I-1),q?q.idxToPosition(O):{row:T,column:O}},C.prototype.documentToScreenPosition=function(R,S){if(typeof S>"u")var w=this.$clipPositionToDocument(R.row,R.column);else w=this.$clipPositionToDocument(R,S);R=w.row,S=w.column;var E=0,T=null,O=null;O=this.getFoldAt(R,S,1),O&&(R=O.start.row,S=O.start.column);var I,N=0,P=this.$docRowCache,H=this.$getRowCacheIndex(P,R),V=P.length;if(V&&H>=0)var N=P[H],E=this.$screenRowCache[H],j=R>P[V-1];else var j=!V;for(var B=this.getNextFoldLine(N),U=B?B.start.row:1/0;N<R;){if(N>=U){if(I=B.end.row+1,I>R)break;B=this.getNextFoldLine(I,B),U=B?B.start.row:1/0}else I=N+1;E+=this.getRowLength(N),N=I,j&&(this.$docRowCache.push(N),this.$screenRowCache.push(E))}var q="";B&&N>=U?(q=this.getFoldDisplayLine(B,R,S),T=B.start.row):(q=this.getLine(R).substring(0,S),T=R);var z=0;if(this.$useWrapMode){var Z=this.$wrapData[T];if(Z){for(var Y=0;q.length>=Z[Y];)E++,Y++;q=q.substring(Z[Y-1]||0,q.length),z=Y>0?Z.indent:0}}return this.lineWidgets&&this.lineWidgets[N]&&this.lineWidgets[N].rowsAbove&&(E+=this.lineWidgets[N].rowsAbove),{row:E,column:z+this.$getStringScreenWidth(q)[0]}},C.prototype.documentToScreenColumn=function(R,S){return this.documentToScreenPosition(R,S).column},C.prototype.documentToScreenRow=function(R,S){return this.documentToScreenPosition(R,S).row},C.prototype.getScreenLength=function(){var R=0,S=null;if(this.$useWrapMode)for(var T=this.$wrapData.length,O=0,E=0,S=this.$foldData[E++],I=S?S.start.row:1/0;O<T;){var N=this.$wrapData[O];R+=N?N.length+1:1,O++,O>I&&(O=S.end.row+1,S=this.$foldData[E++],I=S?S.start.row:1/0)}else{R=this.getLength();for(var w=this.$foldData,E=0;E<w.length;E++)S=w[E],R-=S.end.row-S.start.row}return this.lineWidgets&&(R+=this.$getWidgetScreenLength()),R},C.prototype.$setFontMetrics=function(R){this.$enableVarChar&&(this.$getStringScreenWidth=function(S,w,E){if(w===0)return[0,0];w||(w=1/0),E=E||0;var T,O;for(O=0;O<S.length&&(T=S.charAt(O),T===" "?E+=this.getScreenTabSize(E):E+=R.getCharacterWidth(T),!(E>w));O++);return[E,O]})},C.prototype.getPrecedingCharacter=function(){var R=this.selection.getCursor();if(R.column===0)return R.row===0?"":this.doc.getNewLineCharacter();var S=this.getLine(R.row);return S[R.column-1]},C.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()},C}();v.$uid=0,v.prototype.$modes=a.$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,o.implement(v.prototype,p);var y=1,x=2,$=3,_=4,b=9,A=10,L=11,k=12;function M(C){return C<4352?!1:C>=4352&&C<=4447||C>=4515&&C<=4519||C>=4602&&C<=4607||C>=9001&&C<=9002||C>=11904&&C<=11929||C>=11931&&C<=12019||C>=12032&&C<=12245||C>=12272&&C<=12283||C>=12288&&C<=12350||C>=12353&&C<=12438||C>=12441&&C<=12543||C>=12549&&C<=12589||C>=12593&&C<=12686||C>=12688&&C<=12730||C>=12736&&C<=12771||C>=12784&&C<=12830||C>=12832&&C<=12871||C>=12880&&C<=13054||C>=13056&&C<=19903||C>=19968&&C<=42124||C>=42128&&C<=42182||C>=43360&&C<=43388||C>=44032&&C<=55203||C>=55216&&C<=55238||C>=55243&&C<=55291||C>=63744&&C<=64255||C>=65040&&C<=65049||C>=65072&&C<=65106||C>=65108&&C<=65126||C>=65128&&C<=65131||C>=65281&&C<=65376||C>=65504&&C<=65510}n("./edit_session/folding").Folding.call(v.prototype),n("./edit_session/bracket_match").BracketMatch.call(v.prototype),a.defineOptions(v.prototype,"session",{wrap:{set:function(C){if(!C||C=="off"?C=!1:C=="free"?C=!0:C=="printMargin"?C=-1:typeof C=="string"&&(C=parseInt(C,10)||!1),this.$wrap!=C)if(this.$wrap=C,!C)this.setUseWrapMode(!1);else{var R=typeof C=="number"?C:null;this.setWrapLimitRange(R,R),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(C){C=C=="auto"?this.$mode.type!="text":C!="text",C!=this.$wrapAsCode&&(this.$wrapAsCode=C,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(C){this.$useWorker=C,this.$stopWorker(),C&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(C){C=parseInt(C),C>0&&this.$tabSize!==C&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=C,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(C){this.setFoldStyle(C)},handlesSet:!0},overwrite:{set:function(C){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(C){this.doc.setNewLineMode(C)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(C){this.setMode(C)},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 o=n("./lib/lang"),d=n("./lib/oop"),g=n("./range").Range,a=function(){function s(){this.$options={}}return s.prototype.set=function(i){return d.mixin(this.$options,i),this},s.prototype.getOptions=function(){return o.copyObject(this.$options)},s.prototype.setOptions=function(i){this.$options=i},s.prototype.find=function(i){var u=this.$options,h=this.$matchIterator(i,u);if(!h)return!1;var c=null;return h.forEach(function(f,m,v,y){return c=new g(f,m,v,y),m==y&&u.start&&u.start.start&&u.skipCurrent!=!1&&c.isEqual(u.start)?(c=null,!1):!0}),c},s.prototype.findAll=function(i){var u=this.$options;if(!u.needle)return[];this.$assembleRegExp(u);var h=u.range,c=h?i.getLines(h.start.row,h.end.row):i.doc.getAllLines(),f=[],m=u.re;if(u.$isMultiLine){var v=m.length,y=c.length-v,x;e:for(var $=m.offset||0;$<=y;$++){for(var _=0;_<v;_++)if(c[$+_].search(m[_])==-1)continue e;var b=c[$],A=c[$+v-1],L=b.length-b.match(m[0])[0].length,k=A.match(m[v-1])[0].length;x&&x.end.row===$&&x.end.column>L||(f.push(x=new g($,L,$+v-1,k)),v>2&&($=$+v-2))}}else for(var M=0;M<c.length;M++)for(var C=o.getMatchOffsets(c[M],m),_=0;_<C.length;_++){var R=C[_];f.push(new g(M,R.offset,M,R.offset+R.length))}if(h){for(var S=h.start.column,w=h.end.column,M=0,_=f.length-1;M<_&&f[M].start.column<S&&f[M].start.row==0;)M++;for(var E=h.end.row-h.start.row;M<_&&f[_].end.column>w&&f[_].end.row==E;)_--;for(f=f.slice(M,_+1),M=0,_=f.length;M<_;M++)f[M].start.row+=h.start.row,f[M].end.row+=h.start.row}return f},s.prototype.replace=function(i,u){var h=this.$options,c=this.$assembleRegExp(h);if(h.$isMultiLine)return u;if(c){var f=c.exec(i);if(!f||f[0].length!=i.length)return null;if(h.regExp||(u=u.replace(/\$/g,"$$$$")),u=i.replace(c,u),h.preserveCase){u=u.split("");for(var m=Math.min(i.length,i.length);m--;){var v=i[m];v&&v.toLowerCase()!=v?u[m]=u[m].toUpperCase():u[m]=u[m].toLowerCase()}u=u.join("")}return u}},s.prototype.$assembleRegExp=function(i,u){if(i.needle instanceof RegExp)return i.re=i.needle;var h=i.needle;if(!i.needle)return i.re=!1;i.regExp||(h=o.escapeRegExp(h));var c=i.caseSensitive?"gm":"gmi";try{new RegExp(h,"u"),i.$supportsUnicodeFlag=!0,c+="u"}catch{i.$supportsUnicodeFlag=!1}if(i.wholeWord&&(h=p(h,i)),i.$isMultiLine=!u&&/[\n\r]/.test(h),i.$isMultiLine)return i.re=this.$assembleMultilineRegExp(h,c);try{var f=new RegExp(h,c)}catch{f=!1}return i.re=f},s.prototype.$assembleMultilineRegExp=function(i,u){for(var h=i.replace(/\r\n|\r|\n/g,`$
|
1032
|
-
^`).split(`
|
1033
|
-
`),c=[],f=0;f<h.length;f++)try{c.push(new RegExp(h[f],u))}catch{return!1}return c},s.prototype.$matchIterator=function(i,u){var h=this.$assembleRegExp(u);if(!h)return!1;var c=u.backwards==!0,f=u.skipCurrent!=!1,m=h.unicode,v=u.range,y=u.start;y||(y=v?v[c?"end":"start"]:i.selection.getRange()),y.start&&(y=y[f!=c?"end":"start"]);var x=v?v.start.row:0,$=v?v.end.row:i.getLength()-1;if(c)var _=function(L){var k=y.row;if(!A(k,y.column,L)){for(k--;k>=x;k--)if(A(k,Number.MAX_VALUE,L))return;if(u.wrap!=!1){for(k=$,x=y.row;k>=x;k--)if(A(k,Number.MAX_VALUE,L))return}}};else var _=function(k){var M=y.row;if(!A(M,y.column,k)){for(M=M+1;M<=$;M++)if(A(M,0,k))return;if(u.wrap!=!1){for(M=x,$=y.row;M<=$;M++)if(A(M,0,k))return}}};if(u.$isMultiLine)var b=h.length,A=function(L,k,M){var C=c?L-b+1:L;if(!(C<0||C+b>i.getLength())){var R=i.getLine(C),S=R.search(h[0]);if(!(!c&&S<k||S===-1)){for(var w=1;w<b;w++)if(R=i.getLine(C+w),R.search(h[w])==-1)return;var E=R.match(h[b-1])[0].length;if(!(c&&E>k)&&M(C,S,C+b-1,E))return!0}}};else if(c)var A=function(k,M,C){var R=i.getLine(k),S=[],w,E=0;for(h.lastIndex=0;w=h.exec(R);){var T=w[0].length;if(E=w.index,!T){if(E>=R.length)break;h.lastIndex=E+=o.skipEmptyMatch(R,E,m)}if(w.index+T>M)break;S.push(w.index,T)}for(var O=S.length-1;O>=0;O-=2){var I=S[O-1],T=S[O];if(C(k,I,k,I+T))return!0}};else var A=function(k,M,C){var R=i.getLine(k),S,w;for(h.lastIndex=M;w=h.exec(R);){var E=w[0].length;if(S=w.index,C(k,S,k,S+E))return!0;if(!E&&(h.lastIndex=S+=o.skipEmptyMatch(R,S,m),S>=R.length))return!1}};return{forEach:_}},s}();function p(s,i){var u=o.supportsLookbehind();function h(v,y){y===void 0&&(y=!0);var x=u&&i.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return x.test(v)||i.regExp?u&&i.$supportsUnicodeFlag?y?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var c=Array.from(s),f=c[0],m=c[c.length-1];return h(f)+s+h(m,!1)}r.Search=a}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(n,r,l){var o=this&&this.__extends||function(){var u=function(h,c){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var v in m)Object.prototype.hasOwnProperty.call(m,v)&&(f[v]=m[v])},u(h,c)};return function(h,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");u(h,c);function f(){this.constructor=h}h.prototype=c===null?Object.create(c):(f.prototype=c.prototype,new f)}}(),d=n("../lib/keys"),g=n("../lib/useragent"),a=d.KEY_MODS,p=function(){function u(h,c){this.$init(h,c,!1)}return u.prototype.$init=function(h,c,f){this.platform=c||(g.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(h),this.$singleCommand=f},u.prototype.addCommand=function(h){this.commands[h.name]&&this.removeCommand(h),this.commands[h.name]=h,h.bindKey&&this._buildKeyHash(h)},u.prototype.removeCommand=function(h,c){var f=h&&(typeof h=="string"?h:h.name);h=this.commands[f],c||delete this.commands[f];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 x=y.indexOf(h);x!=-1&&(y.splice(x,1),y.length==1&&(m[v]=y[0]))}}},u.prototype.bindKey=function(h,c,f){if(typeof h=="object"&&h&&(f==null&&(f=h.position),h=h[this.platform]),!!h){if(typeof c=="function")return this.addCommand({exec:c,bindKey:h,name:c.name||h});h.split("|").forEach(function(m){var v="";if(m.indexOf(" ")!=-1){var y=m.split(/\s+/);m=y.pop(),y.forEach(function(_){var b=this.parseKeys(_),A=a[b.hashId]+b.key;v+=(v?" ":"")+A,this._addCommandToBinding(v,"chainKeys")},this),v+=" "}var x=this.parseKeys(m),$=a[x.hashId]+x.key;this._addCommandToBinding(v+$,c,f)},this)}},u.prototype._addCommandToBinding=function(h,c,f){var m=this.commandKeyBinding,v;if(!c)delete m[h];else if(!m[h]||this.$singleCommand)m[h]=c;else{Array.isArray(m[h])?(v=m[h].indexOf(c))!=-1&&m[h].splice(v,1):m[h]=[m[h]],typeof f!="number"&&(f=s(c));var y=m[h];for(v=0;v<y.length;v++){var x=y[v],$=s(x);if($>f)break}y.splice(v,0,c)}},u.prototype.addCommands=function(h){h&&Object.keys(h).forEach(function(c){var f=h[c];if(f){if(typeof f=="string")return this.bindKey(f,c);typeof f=="function"&&(f={exec:f}),typeof f=="object"&&(f.name||(f.name=c),this.addCommand(f))}},this)},u.prototype.removeCommands=function(h){Object.keys(h).forEach(function(c){this.removeCommand(h[c])},this)},u.prototype.bindKeys=function(h){Object.keys(h).forEach(function(c){this.bindKey(c,h[c])},this)},u.prototype._buildKeyHash=function(h){this.bindKey(h.bindKey,h)},u.prototype.parseKeys=function(h){var c=h.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function($){return $}),f=c.pop(),m=d[f];if(d.FUNCTION_KEYS[m])f=d.FUNCTION_KEYS[m].toLowerCase();else if(c.length){if(c.length==1&&c[0]=="shift")return{key:f.toUpperCase(),hashId:-1}}else return{key:f,hashId:-1};for(var v=0,y=c.length;y--;){var x=d.KEY_MODS[c[y]];if(x==null)return typeof console<"u"&&console.error("invalid modifier "+c[y]+" in "+h),!1;v|=x}return{key:f,hashId:v}},u.prototype.findKeyCommand=function(h,c){var f=a[h]+c;return this.commandKeyBinding[f]},u.prototype.handleKeyboard=function(h,c,f,m){if(!(m<0)){var v=a[c]+f,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&&((!c||c==4)&&f.length==1?h.$keyChain=h.$keyChain.slice(0,-v.length-1):(c==-1||m>0)&&(h.$keyChain="")),{command:y})}},u.prototype.getStatusText=function(h,c){return c.$keyChain||""},u}();function s(u){return typeof u=="object"&&u.bindKey&&u.bindKey.position||(u.isDefault?-100:0)}var i=function(u){o(h,u);function h(c,f){var m=u.call(this,c,f)||this;return m.$singleCommand=!0,m}return h}(p);i.call=function(u,h,c){p.prototype.$init.call(u,h,c,!0)},p.call=function(u,h,c){p.prototype.$init.call(u,h,c,!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 o=this&&this.__extends||function(){var s=function(i,u){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,c){h.__proto__=c}||function(h,c){for(var f in c)Object.prototype.hasOwnProperty.call(c,f)&&(h[f]=c[f])},s(i,u)};return function(i,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");s(i,u);function h(){this.constructor=i}i.prototype=u===null?Object.create(u):(h.prototype=u.prototype,new h)}}(),d=n("../lib/oop"),g=n("../keyboard/hash_handler").MultiHashHandler,a=n("../lib/event_emitter").EventEmitter,p=function(s){o(i,s);function i(u,h){var c=s.call(this,h,u)||this;return c.byName=c.commands,c.setDefaultHandler("exec",function(f){return f.args?f.command.exec(f.editor,f.args,f.event,!1):f.command.exec(f.editor,{},f.event,!0)}),c}return i.prototype.exec=function(u,h,c){if(Array.isArray(u)){for(var f=u.length;f--;)if(this.exec(u[f],h,c))return!0;return!1}if(typeof u=="string"&&(u=this.commands[u]),!u||h&&h.$readOnly&&!u.readOnly||this.$checkCommandState!=!1&&u.isAvailable&&!u.isAvailable(h))return!1;var m={editor:h,command:u,args:c};return m.returnValue=this._emit("exec",m),this._signal("afterExec",m),m.returnValue!==!1},i.prototype.toggleRecording=function(u){if(!this.$inReplay)return u&&u._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(u){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(u);try{this.$inReplay=!0,this.macro.forEach(function(h){typeof h=="string"?this.exec(h,u):this.exec(h[0],u,h[1])},this)}finally{this.$inReplay=!1}}},i.prototype.trimMacro=function(u){return u.map(function(h){return typeof h[0]!="string"&&(h[0]=h[0].name),h[1]||(h=h[0]),h})},i}(g);d.implement(p.prototype,a),r.CommandManager=p}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(n,r,l){var o=n("../lib/lang"),d=n("../config"),g=n("../range").Range;function a(s,i){return{win:s,mac:i}}r.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:a("Ctrl-,","Command-,"),exec:function(s){d.loadModule("ace/ext/settings_menu",function(i){i.init(s),s.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:a("Alt-E","F4"),exec:function(s){d.loadModule("ace/ext/error_marker",function(i){i.showErrorMarker(s,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:a("Alt-Shift-E","Shift-F4"),exec:function(s){d.loadModule("ace/ext/error_marker",function(i){i.showErrorMarker(s,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:a("Ctrl-A","Command-A"),exec:function(s){s.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:a(null,"Ctrl-L"),exec:function(s){s.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:a("Ctrl-L","Command-L"),exec:function(s,i){typeof i=="number"&&!isNaN(i)&&s.gotoLine(i),s.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:a("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(s){s.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:a("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(s){s.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:a("F2","F2"),exec:function(s){s.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:a("Alt-F2","Alt-F2"),exec:function(s){s.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:a(null,"Ctrl-Command-Option-0"),exec:function(s){s.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:a(null,"Ctrl-Command-Option-0"),exec:function(s){s.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:a("Alt-0","Command-Option-0"),exec:function(s){s.session.foldAll(),s.session.unfold(s.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:a("Alt-Shift-0","Command-Option-Shift-0"),exec:function(s){s.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:a("Ctrl-K","Command-G"),exec:function(s){s.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:a("Ctrl-Shift-K","Command-Shift-G"),exec:function(s){s.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:a("Alt-K","Ctrl-G"),exec:function(s){s.selection.isEmpty()?s.selection.selectWord():s.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:a("Alt-Shift-K","Ctrl-Shift-G"),exec:function(s){s.selection.isEmpty()?s.selection.selectWord():s.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:a("Ctrl-F","Command-F"),exec:function(s){d.loadModule("ace/ext/searchbox",function(i){i.Search(s)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(s){s.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:a("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(s){s.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:a("Ctrl-Home","Command-Home|Command-Up"),exec:function(s){s.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:a("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(s){s.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:a("Up","Up|Ctrl-P"),exec:function(s,i){s.navigateUp(i.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:a("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(s){s.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:a("Ctrl-End","Command-End|Command-Down"),exec:function(s){s.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:a("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(s){s.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:a("Down","Down|Ctrl-N"),exec:function(s,i){s.navigateDown(i.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:a("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(s){s.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:a("Ctrl-Left","Option-Left"),exec:function(s){s.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:a("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(s){s.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:a("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(s){s.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:a("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(s){s.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:a("Left","Left|Ctrl-B"),exec:function(s,i){s.navigateLeft(i.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:a("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(s){s.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:a("Ctrl-Right","Option-Right"),exec:function(s){s.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:a("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(s){s.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:a("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(s){s.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:a("Shift-Right","Shift-Right"),exec:function(s){s.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:a("Right","Right|Ctrl-F"),exec:function(s,i){s.navigateRight(i.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(s){s.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:a(null,"Option-PageDown"),exec:function(s){s.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:a("PageDown","PageDown|Ctrl-V"),exec:function(s){s.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(s){s.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:a(null,"Option-PageUp"),exec:function(s){s.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(s){s.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:a("Ctrl-Up",null),exec:function(s){s.renderer.scrollBy(0,-2*s.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:a("Ctrl-Down",null),exec:function(s){s.renderer.scrollBy(0,2*s.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(s){s.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(s){s.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:a("Ctrl-Alt-E","Command-Option-E"),exec:function(s){s.commands.toggleRecording(s)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:a("Ctrl-Shift-E","Command-Shift-E"),exec:function(s){s.commands.replay(s)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:a("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(s){s.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:a("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(s){s.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:a("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(s){s.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:a(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(s){},readOnly:!0},{name:"cut",description:"Cut",exec:function(s){var i=s.$copyWithEmptySelection&&s.selection.isEmpty(),u=i?s.selection.getLineRange():s.selection.getRange();s._emit("cut",u),u.isEmpty()||s.session.remove(u),s.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(s,i){s.$handlePaste(i)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:a("Ctrl-D","Command-D"),exec:function(s){s.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:a("Ctrl-Shift-D","Command-Shift-D"),exec:function(s){s.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:a("Ctrl-Alt-S","Command-Alt-S"),exec:function(s){s.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:a("Ctrl-/","Command-/"),exec:function(s){s.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:a("Ctrl-Shift-/","Command-Shift-/"),exec:function(s){s.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:a("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(s){s.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:a("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(s){s.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:a("Ctrl-H","Command-Option-F"),exec:function(s){d.loadModule("ace/ext/searchbox",function(i){i.Search(s,!0)})}},{name:"undo",description:"Undo",bindKey:a("Ctrl-Z","Command-Z"),exec:function(s){s.undo()}},{name:"redo",description:"Redo",bindKey:a("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(s){s.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:a("Alt-Shift-Up","Command-Option-Up"),exec:function(s){s.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:a("Alt-Up","Option-Up"),exec:function(s){s.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:a("Alt-Shift-Down","Command-Option-Down"),exec:function(s){s.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:a("Alt-Down","Option-Down"),exec:function(s){s.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:a("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(s){s.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:a("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(s){s.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:a("Shift-Delete",null),exec:function(s){if(s.selection.isEmpty())s.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:a("Alt-Backspace","Command-Backspace"),exec:function(s){s.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:a("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(s){s.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:a("Ctrl-Shift-Backspace",null),exec:function(s){var i=s.selection.getRange();i.start.column=0,s.session.remove(i)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:a("Ctrl-Shift-Delete",null),exec:function(s){var i=s.selection.getRange();i.end.column=Number.MAX_VALUE,s.session.remove(i)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:a("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(s){s.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:a("Ctrl-Delete","Alt-Delete"),exec:function(s){s.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:a("Shift-Tab","Shift-Tab"),exec:function(s){s.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:a("Tab","Tab"),exec:function(s){s.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:a("Ctrl-[","Ctrl-["),exec:function(s){s.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:a("Ctrl-]","Ctrl-]"),exec:function(s){s.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(s,i){s.insert(i)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(s,i){s.insert(o.stringRepeat(i.text||"",i.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:a(null,"Ctrl-O"),exec:function(s){s.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:a("Alt-Shift-X","Ctrl-T"),exec:function(s){s.transposeLetters()},multiSelectAction:function(s){s.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:a("Ctrl-U","Ctrl-U"),exec:function(s){s.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:a("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(s){s.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:a(null,null),exec:function(s){s.autoIndent()},scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:a("Ctrl-Shift-L","Command-Shift-L"),exec:function(s){var i=s.selection.getRange();i.start.column=i.end.column=0,i.end.row++,s.selection.setRange(i,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:a("Ctrl+F3","F3"),exec:function(s){s.openLink()}},{name:"joinlines",description:"Join lines",bindKey:a(null,null),exec:function(s){for(var i=s.selection.isBackwards(),u=i?s.selection.getSelectionLead():s.selection.getSelectionAnchor(),h=i?s.selection.getSelectionAnchor():s.selection.getSelectionLead(),c=s.session.doc.getLine(u.row).length,f=s.session.doc.getTextRange(s.selection.getRange()),m=f.replace(/\n\s*/," ").length,v=s.session.doc.getLine(u.row),y=u.row+1;y<=h.row+1;y++){var x=o.stringTrimLeft(o.stringTrimRight(s.session.doc.getLine(y)));x.length!==0&&(x=" "+x),v+=x}h.row+1<s.session.doc.getLength()-1&&(v+=s.session.doc.getNewLineCharacter()),s.clearSelection(),s.session.doc.replace(new g(u.row,0,h.row+2,0),v),m>0?(s.selection.moveCursorTo(u.row,u.column),s.selection.selectTo(u.row,u.column+m)):(c=s.session.doc.getLine(u.row).length>c?c+1:c,s.selection.moveCursorTo(u.row,c))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:a(null,null),exec:function(s){var i=s.session.doc.getLength()-1,u=s.session.doc.getLine(i).length,h=s.selection.rangeList.ranges,c=[];h.length<1&&(h=[s.selection.getRange()]);for(var f=0;f<h.length;f++)f==h.length-1&&(h[f].end.row===i&&h[f].end.column===u||c.push(new g(h[f].end.row,h[f].end.column,i,u))),f===0?h[f].start.row===0&&h[f].start.column===0||c.push(new g(0,0,h[f].start.row,h[f].start.column)):c.push(new g(h[f-1].end.row,h[f-1].end.column,h[f].start.row,h[f].start.column));s.exitMultiSelectMode(),s.clearSelection();for(var f=0;f<c.length;f++)s.selection.addRange(c[f],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",description:"Add new line after the current line",exec:function(s){s.selection.clearSelection(),s.navigateLineEnd(),s.insert(`
|
1034
|
-
`)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(s){s.selection.clearSelection();var i=s.getCursorPosition();s.selection.moveTo(i.row-1,Number.MAX_VALUE),s.insert(`
|
1035
|
-
`),i.row===0&&s.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",exec:function(s){console.warn("This is an obsolete command. Please use `openCommandPalette` instead."),s.prompt({$type:"commands"})},readOnly:!0},{name:"openCommandPalette",description:"Open command palette",bindKey:a("F1","F1"),exec:function(s){s.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:a(null,null),exec:function(s){s.prompt({$type:"modes"})},readOnly:!0}];for(var p=1;p<9;p++)r.commands.push({name:"foldToLevel"+p,description:"Fold To Level "+p,level:p,exec:function(s){s.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(n,r,l){var o=n("./lib/dom"),d=function(){function g(a){this.session=a,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}return g.prototype.getRowLength=function(a){var p;return this.lineWidgets?p=this.lineWidgets[a]&&this.lineWidgets[a].rowCount||0:p=0,!this.$useWrapMode||!this.$wrapData[a]?1+p:this.$wrapData[a].length+1+p},g.prototype.$getWidgetScreenLength=function(){var a=0;return this.lineWidgets.forEach(function(p){p&&p.rowCount&&!p.hidden&&(a+=p.rowCount)}),a},g.prototype.$onChangeEditor=function(a){this.attach(a.editor)},g.prototype.attach=function(a){a&&a.widgetManager&&a.widgetManager!=this&&a.widgetManager.detach(),this.editor!=a&&(this.detach(),this.editor=a,a&&(a.widgetManager=this,a.renderer.on("beforeRender",this.measureWidgets),a.renderer.on("afterRender",this.renderWidgets)))},g.prototype.detach=function(a){var p=this.editor;if(p){this.editor=null,p.widgetManager=null,p.renderer.off("beforeRender",this.measureWidgets),p.renderer.off("afterRender",this.renderWidgets);var s=this.session.lineWidgets;s&&s.forEach(function(i){i&&i.el&&i.el.parentNode&&(i._inDocument=!1,i.el.parentNode.removeChild(i.el))})}},g.prototype.updateOnFold=function(a,p){var s=p.lineWidgets;if(!(!s||!a.action)){for(var i=a.data,u=i.start.row,h=i.end.row,c=a.action=="add",f=u+1;f<h;f++)s[f]&&(s[f].hidden=c);s[h]&&(c?s[u]?s[h].hidden=c:s[u]=s[h]:(s[u]==s[h]&&(s[u]=void 0),s[h].hidden=c))}},g.prototype.updateOnChange=function(a){var p=this.session.lineWidgets;if(p){var s=a.start.row,i=a.end.row-s;if(i!==0)if(a.action=="remove"){var u=p.splice(s+1,i);!p[s]&&u[u.length-1]&&(p[s]=u.pop()),u.forEach(function(c){c&&this.removeLineWidget(c)},this),this.$updateRows()}else{var h=new Array(i);p[s]&&p[s].column!=null&&a.start.column>p[s].column&&s++,h.unshift(s,0),p.splice.apply(p,h),this.$updateRows()}}},g.prototype.$updateRows=function(){var a=this.session.lineWidgets;if(a){var p=!0;a.forEach(function(s,i){if(s)for(p=!1,s.row=i;s.$oldWidget;)s.$oldWidget.row=i,s=s.$oldWidget}),p&&(this.session.lineWidgets=null)}},g.prototype.$registerLineWidget=function(a){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var p=this.session.lineWidgets[a.row];return p&&(a.$oldWidget=p,p.el&&p.el.parentNode&&(p.el.parentNode.removeChild(p.el),p._inDocument=!1)),this.session.lineWidgets[a.row]=a,a},g.prototype.addLineWidget=function(a){if(this.$registerLineWidget(a),a.session=this.session,!this.editor)return a;var p=this.editor.renderer;a.html&&!a.el&&(a.el=o.createElement("div"),a.el.innerHTML=a.html),a.text&&!a.el&&(a.el=o.createElement("div"),a.el.textContent=a.text),a.el&&(o.addCssClass(a.el,"ace_lineWidgetContainer"),a.className&&o.addCssClass(a.el,a.className),a.el.style.position="absolute",a.el.style.zIndex="5",p.container.appendChild(a.el),a._inDocument=!0,a.coverGutter||(a.el.style.zIndex="3"),a.pixelHeight==null&&(a.pixelHeight=a.el.offsetHeight)),a.rowCount==null&&(a.rowCount=a.pixelHeight/p.layerConfig.lineHeight);var s=this.session.getFoldAt(a.row,0);if(a.$fold=s,s){var i=this.session.lineWidgets;a.row==s.end.row&&!i[s.start.row]?i[s.start.row]=a:a.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:a.row}}}),this.$updateRows(),this.renderWidgets(null,p),this.onWidgetChanged(a),a},g.prototype.removeLineWidget=function(a){if(a._inDocument=!1,a.session=null,a.el&&a.el.parentNode&&a.el.parentNode.removeChild(a.el),a.editor&&a.editor.destroy)try{a.editor.destroy()}catch{}if(this.session.lineWidgets){var p=this.session.lineWidgets[a.row];if(p==a)this.session.lineWidgets[a.row]=a.$oldWidget,a.$oldWidget&&this.onWidgetChanged(a.$oldWidget);else for(;p;){if(p.$oldWidget==a){p.$oldWidget=a.$oldWidget;break}p=p.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:a.row}}}),this.$updateRows()},g.prototype.getWidgetsAtRow=function(a){for(var p=this.session.lineWidgets,s=p&&p[a],i=[];s;)i.push(s),s=s.$oldWidget;return i},g.prototype.onWidgetChanged=function(a){this.session._changedWidgets.push(a),this.editor&&this.editor.renderer.updateFull()},g.prototype.measureWidgets=function(a,p){var s=this.session._changedWidgets,i=p.layerConfig;if(!(!s||!s.length)){for(var u=1/0,h=0;h<s.length;h++){var c=s[h];if(!(!c||!c.el)&&c.session==this.session){if(!c._inDocument){if(this.session.lineWidgets[c.row]!=c)continue;c._inDocument=!0,p.container.appendChild(c.el)}c.h=c.el.offsetHeight,c.fixedWidth||(c.w=c.el.offsetWidth,c.screenWidth=Math.ceil(c.w/i.characterWidth));var f=c.h/i.lineHeight;c.coverLine&&(f-=this.session.getRowLineCount(c.row),f<0&&(f=0)),c.rowCount!=f&&(c.rowCount=f,c.row<u&&(u=c.row))}}u!=1/0&&(this.session._emit("changeFold",{data:{start:{row:u}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},g.prototype.renderWidgets=function(a,p){var s=p.layerConfig,i=this.session.lineWidgets;if(i){for(var u=Math.min(this.firstRow,s.firstRow),h=Math.max(this.lastRow,s.lastRow,i.length);u>0&&!i[u];)u--;this.firstRow=s.firstRow,this.lastRow=s.lastRow,p.$cursorLayer.config=s;for(var c=u;c<=h;c++){var f=i[c];if(!(!f||!f.el)){if(f.hidden){f.el.style.top=-100-(f.pixelHeight||0)+"px";continue}f._inDocument||(f._inDocument=!0,p.container.appendChild(f.el));var m=p.$cursorLayer.getPixelPosition({row:c,column:0},!0).top;f.coverLine||(m+=s.lineHeight*this.session.getRowLineCount(f.row)),f.el.style.top=m-s.offset+"px";var v=f.coverGutter?0:p.gutterWidth;f.fixedWidth||(v-=p.scrollLeft),f.el.style.left=v+"px",f.fullWidth&&f.screenWidth&&(f.el.style.minWidth=s.width+2*s.padding+"px"),f.fixedWidth?f.el.style.right=p.scrollBar.getWidth()+"px":f.el.style.right=""}}}},g}();r.LineWidgets=d}),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys","ace/mouse/default_gutter_handler"],function(n,r,l){var o=n("../lib/keys"),d=n("../mouse/default_gutter_handler").GutterTooltip,g=function(){function p(s){this.editor=s,this.gutterLayer=s.renderer.$gutterLayer,this.element=s.renderer.$gutter,this.lines=s.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=new d(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(s){if(this.annotationTooltip.isOpen){s.preventDefault(),s.keyCode===o.escape&&this.annotationTooltip.hideTooltip();return}if(s.target===this.element){if(s.keyCode!=o.enter)return;s.preventDefault();var i=this.editor.getCursorPosition().row;this.editor.isRowVisible(i)||this.editor.scrollToLine(i,!0,!0),setTimeout((function(){var u=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),h=this.$findNearestFoldWidget(u),c=this.$findNearestAnnotation(u);if(!(h===null&&c===null)){if(h===null&&c!==null){this.activeRowIndex=c,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}if(h!==null&&c===null){this.activeRowIndex=h,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}if(Math.abs(c-u)<Math.abs(h-u)){this.activeRowIndex=c,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}else{this.activeRowIndex=h,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}}}).bind(this),10);return}this.$handleGutterKeyboardInteraction(s),setTimeout((function(){this.editor._signal("gutterkeydown",new a(s,this))}).bind(this),10)},p.prototype.$handleGutterKeyboardInteraction=function(s){if(s.keyCode===o.tab){s.preventDefault();return}if(s.keyCode===o.escape){s.preventDefault(),this.$blurGutter(),this.element.focus(),this.lane=null;return}if(s.keyCode===o.up){switch(s.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetUp();break;case"annotation":this.$moveAnnotationUp();break}return}if(s.keyCode===o.down){switch(s.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetDown();break;case"annotation":this.$moveAnnotationDown();break}return}if(s.keyCode===o.left){s.preventDefault(),this.$switchLane("annotation");return}if(s.keyCode===o.right){s.preventDefault(),this.$switchLane("fold");return}if(s.keyCode===o.enter||s.keyCode===o.space){switch(s.preventDefault(),this.activeLane){case"fold":if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="start"){var i=this.$rowIndexToRow(this.activeRowIndex);this.editor.session.onFoldWidgetClick(this.$rowIndexToRow(this.activeRowIndex),s),setTimeout((function(){this.$rowIndexToRow(this.activeRowIndex)!==i&&(this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=this.$rowToRowIndex(i),this.$focusFoldWidget(this.activeRowIndex))}).bind(this),10);break}else if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="end")break;return;case"annotation":var u=this.lines.cells[this.activeRowIndex].element.childNodes[2],h=u.getBoundingClientRect(),c=this.annotationTooltip.getElement().style;c.left=h.right+"px",c.top=h.bottom+"px",this.annotationTooltip.showTooltip(this.$rowIndexToRow(this.activeRowIndex));break}return}},p.prototype.$blurGutter=function(){if(this.activeRowIndex!==null)switch(this.activeLane){case"fold":this.$blurFoldWidget(this.activeRowIndex);break;case"annotation":this.$blurAnnotation(this.activeRowIndex);break}this.annotationTooltip.isOpen&&this.annotationTooltip.hideTooltip()},p.prototype.$isFoldWidgetVisible=function(s){var i=this.editor.isRowFullyVisible(this.$rowIndexToRow(s)),u=this.$getFoldWidget(s).style.display!=="none";return i&&u},p.prototype.$isAnnotationVisible=function(s){var i=this.editor.isRowFullyVisible(this.$rowIndexToRow(s)),u=this.$getAnnotation(s).style.display!=="none";return i&&u},p.prototype.$getFoldWidget=function(s){var i=this.lines.get(s),u=i.element;return u.childNodes[1]},p.prototype.$getAnnotation=function(s){var i=this.lines.get(s),u=i.element;return u.childNodes[2]},p.prototype.$findNearestFoldWidget=function(s){if(this.$isFoldWidgetVisible(s))return s;for(var i=0;s-i>0||s+i<this.lines.getLength()-1;){if(i++,s-i>=0&&this.$isFoldWidgetVisible(s-i))return s-i;if(s+i<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(s+i))return s+i}return null},p.prototype.$findNearestAnnotation=function(s){if(this.$isAnnotationVisible(s))return s;for(var i=0;s-i>0||s+i<this.lines.getLength()-1;){if(i++,s-i>=0&&this.$isAnnotationVisible(s-i))return s-i;if(s+i<=this.lines.getLength()-1&&this.$isAnnotationVisible(s+i))return s+i}return null},p.prototype.$focusFoldWidget=function(s){if(s!=null){var i=this.$getFoldWidget(s);i.classList.add(this.editor.renderer.keyboardFocusClassName),i.focus()}},p.prototype.$focusAnnotation=function(s){if(s!=null){var i=this.$getAnnotation(s);i.classList.add(this.editor.renderer.keyboardFocusClassName),i.focus()}},p.prototype.$blurFoldWidget=function(s){var i=this.$getFoldWidget(s);i.classList.remove(this.editor.renderer.keyboardFocusClassName),i.blur()},p.prototype.$blurAnnotation=function(s){var i=this.$getAnnotation(s);i.classList.remove(this.editor.renderer.keyboardFocusClassName),i.blur()},p.prototype.$moveFoldWidgetUp=function(){for(var s=this.activeRowIndex;s>0;)if(s--,this.$isFoldWidgetVisible(s)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=s,this.$focusFoldWidget(this.activeRowIndex);return}},p.prototype.$moveFoldWidgetDown=function(){for(var s=this.activeRowIndex;s<this.lines.getLength()-1;)if(s++,this.$isFoldWidgetVisible(s)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=s,this.$focusFoldWidget(this.activeRowIndex);return}},p.prototype.$moveAnnotationUp=function(){for(var s=this.activeRowIndex;s>0;)if(s--,this.$isAnnotationVisible(s)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=s,this.$focusAnnotation(this.activeRowIndex);return}},p.prototype.$moveAnnotationDown=function(){for(var s=this.activeRowIndex;s<this.lines.getLength()-1;)if(s++,this.$isAnnotationVisible(s)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=s,this.$focusAnnotation(this.activeRowIndex);return}},p.prototype.$switchLane=function(s){switch(s){case"annotation":if(this.activeLane==="annotation")break;var i=this.$findNearestAnnotation(this.activeRowIndex);if(i==null)break;this.activeLane="annotation",this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=i,this.$focusAnnotation(this.activeRowIndex);break;case"fold":if(this.activeLane==="fold")break;var u=this.$findNearestFoldWidget(this.activeRowIndex);if(u==null)break;this.activeLane="fold",this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=u,this.$focusFoldWidget(this.activeRowIndex);break}},p.prototype.$rowIndexToRow=function(s){var i=this.lines.get(s);return i?i.row:null},p.prototype.$rowToRowIndex=function(s){for(var i=0;i<this.lines.getLength();i++){var u=this.lines.get(i);if(u.row==s)return i}return null},p}();r.GutterKeyboardHandler=g;var a=function(){function p(s,i){this.gutterKeyboardHandler=i,this.domEvent=s}return p.prototype.getKey=function(){return o.keyCodeToString(this.domEvent.keyCode)},p.prototype.getRow=function(){return this.gutterKeyboardHandler.$rowIndexToRow(this.gutterKeyboardHandler.activeRowIndex)},p.prototype.isInAnnotationLane=function(){return this.gutterKeyboardHandler.activeLane==="annotation"},p.prototype.isInFoldLane=function(){return this.gutterKeyboardHandler.activeLane==="fold"},p}();r.GutterKeyboardEvent=a}),ace.define("ace/editor",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator","ace/line_widgets","ace/keyboard/gutter_handler","ace/config","ace/clipboard","ace/lib/keys"],function(n,r,l){var o=this&&this.__values||function(S){var w=typeof Symbol=="function"&&Symbol.iterator,E=w&&S[w],T=0;if(E)return E.call(S);if(S&&typeof S.length=="number")return{next:function(){return S&&T>=S.length&&(S=void 0),{value:S&&S[T++],done:!S}}};throw new TypeError(w?"Object is not iterable.":"Symbol.iterator is not defined.")},d=n("./lib/oop"),g=n("./lib/dom"),a=n("./lib/lang"),p=n("./lib/useragent"),s=n("./keyboard/textinput").TextInput,i=n("./mouse/mouse_handler").MouseHandler,u=n("./mouse/fold_handler").FoldHandler,h=n("./keyboard/keybinding").KeyBinding,c=n("./edit_session").EditSession,f=n("./search").Search,m=n("./range").Range,v=n("./lib/event_emitter").EventEmitter,y=n("./commands/command_manager").CommandManager,x=n("./commands/default_commands").commands,$=n("./config"),_=n("./token_iterator").TokenIterator,b=n("./line_widgets").LineWidgets,A=n("./keyboard/gutter_handler").GutterKeyboardHandler,L=n("./config").nls,k=n("./clipboard"),M=n("./lib/keys"),C=function(){function S(w,E,T){this.session,this.$toDestroy=[];var O=w.getContainerElement();this.container=O,this.renderer=w,this.id="editor"+ ++S.$uid,this.commands=new y(p.isMac?"mac":"win",x),typeof document=="object"&&(this.textInput=new s(w.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new i(this),new u(this)),this.keyBinding=new h(this),this.$search=new f().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=a.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(E||T&&T.session||new c("")),$.resetOptions(this),T&&this.setOptions(T),$._signal("editor",this)}return S.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=a.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)},S.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()},S.prototype.endOperation=function(w){if(this.curOp&&this.session){if(w&&w.returnValue===!1||!this.session)return this.curOp=null;if(w==!0&&this.curOp.command&&this.curOp.command.name=="mouse"||(this._signal("beforeEndOperation"),!this.curOp))return;var E=this.curOp.command,T=E&&E.scrollIntoView;if(T){switch(T){case"center-animate":T="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var O=this.selection.getRange(),I=this.renderer.layerConfig;(O.start.row>=I.lastRow||O.end.row<=I.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}T=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}var 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}},S.prototype.$historyTracker=function(w){if(this.$mergeUndoDeltas){var E=this.prevOp,T=this.$mergeableCommands,O=E.command&&w.command.name==E.command.name;if(w.command.name=="insertstring"){var I=w.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),O=O&&this.mergeNextCommand&&(!/\s/.test(I)||/\s/.test(E.args)),this.mergeNextCommand=!0}else O=O&&T.indexOf(w.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(O=!1),O?this.session.mergeUndoDeltas=!0:T.indexOf(w.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},S.prototype.setKeyboardHandler=function(w,E){if(w&&typeof w=="string"&&w!="ace"){this.$keybindingId=w;var T=this;$.loadModule(["keybinding",w],function(O){T.$keybindingId==w&&T.keyBinding.setKeyboardHandler(O&&O.handler),E&&E()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(w),E&&E()},S.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},S.prototype.setSession=function(w){if(this.session!=w){this.curOp&&this.endOperation(),this.curOp={};var E=this.session;if(E){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var T=this.session.getSelection();T.off("changeCursor",this.$onCursorChange),T.off("changeSelection",this.$onSelectionChange)}this.session=w,w?(this.$onDocumentChange=this.onDocumentChange.bind(this),w.on("change",this.$onDocumentChange),this.renderer.setSession(w),this.$onChangeMode=this.onChangeMode.bind(this),w.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),w.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),w.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),w.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),w.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),w.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=w.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(w)),this._signal("changeSession",{session:w,oldSession:E}),this.curOp=null,E&&E._signal("changeEditor",{oldEditor:this}),w&&w._signal("changeEditor",{editor:this}),w&&!w.destroyed&&w.bgTokenizer.scheduleStart()}},S.prototype.getSession=function(){return this.session},S.prototype.setValue=function(w,E){return this.session.doc.setValue(w),E?E==1?this.navigateFileEnd():E==-1&&this.navigateFileStart():this.selectAll(),w},S.prototype.getValue=function(){return this.session.getValue()},S.prototype.getSelection=function(){return this.selection},S.prototype.resize=function(w){this.renderer.onResize(w)},S.prototype.setTheme=function(w,E){this.renderer.setTheme(w,E)},S.prototype.getTheme=function(){return this.renderer.getTheme()},S.prototype.setStyle=function(w){this.renderer.setStyle(w)},S.prototype.unsetStyle=function(w){this.renderer.unsetStyle(w)},S.prototype.getFontSize=function(){return this.getOption("fontSize")||g.computedStyle(this.container).fontSize},S.prototype.setFontSize=function(w){this.setOption("fontSize",w)},S.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var w=this;this.$highlightPending=!0,setTimeout(function(){w.$highlightPending=!1;var E=w.session;if(!(!E||E.destroyed)){E.$bracketHighlight&&(E.$bracketHighlight.markerIds.forEach(function(B){E.removeMarker(B)}),E.$bracketHighlight=null);var T=w.getCursorPosition(),O=w.getKeyboardHandler(),I=O&&O.$getDirectionForHighlight&&O.$getDirectionForHighlight(w),N=E.getMatchingBracketRanges(T,I);if(!N){var P=new _(E,T.row,T.column),H=P.getCurrentToken();if(H&&/\b(?:tag-open|tag-name)/.test(H.type)){var V=E.getMatchingTags(T);V&&(N=[V.openTagName,V.closeTagName])}}if(!N&&E.$mode.getMatching&&(N=E.$mode.getMatching(w.session)),!N){w.getHighlightIndentGuides()&&w.renderer.$textLayer.$highlightIndentGuide();return}var j="ace_bracket";Array.isArray(N)?N.length==1&&(j="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)])),E.$bracketHighlight={ranges:N,markerIds:N.map(function(B){return E.addMarker(B,j,"text")})},w.getHighlightIndentGuides()&&w.renderer.$textLayer.$highlightIndentGuide()}},50)}},S.prototype.focus=function(){this.textInput.focus()},S.prototype.isFocused=function(){return this.textInput.isFocused()},S.prototype.blur=function(){this.textInput.blur()},S.prototype.onFocus=function(w){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",w))},S.prototype.onBlur=function(w){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",w))},S.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},S.prototype.onDocumentChange=function(w){var E=this.session.$useWrapMode,T=w.start.row==w.end.row?w.end.row:1/0;this.renderer.updateLines(w.start.row,T,E),this._signal("change",w),this.$cursorChange()},S.prototype.onTokenizerUpdate=function(w){var E=w.data;this.renderer.updateLines(E.first,E.last)},S.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},S.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},S.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},S.prototype.$updateHighlightActiveLine=function(){var w=this.getSession(),E;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(E=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(E=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(E=!1)),w.$highlightLineMarker&&!E)w.removeMarker(w.$highlightLineMarker.id),w.$highlightLineMarker=null;else if(!w.$highlightLineMarker&&E){var T=new m(E.row,E.column,E.row,1/0);T.id=w.addMarker(T,"ace_active-line","screenLine"),w.$highlightLineMarker=T}else E&&(w.$highlightLineMarker.start.row=E.row,w.$highlightLineMarker.end.row=E.row,w.$highlightLineMarker.start.column=E.column,w._signal("changeBackMarker"))},S.prototype.onSelectionChange=function(w){var E=this.session;if(E.$selectionMarker&&E.removeMarker(E.$selectionMarker),E.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var T=this.selection.getRange(),O=this.getSelectionStyle();E.$selectionMarker=E.addMarker(T,"ace_selection",O)}var I=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(I),this._signal("changeSelection")},S.prototype.$getSelectionHighLightRegexp=function(){var w=this.session,E=this.getSelectionRange();if(!(E.isEmpty()||E.isMultiLine())){var T=E.start.column,O=E.end.column,I=w.getLine(E.start.row),N=I.substring(T,O);if(!(N.length>5e3||!/[\w\d]/.test(N))){var P=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:N}),H=I.substring(T-1,O+1);if(P.test(H))return P}}},S.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},S.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},S.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},S.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},S.prototype.onChangeMode=function(w){this.renderer.updateText(),this._emit("changeMode",w)},S.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},S.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},S.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},S.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},S.prototype.getCopyText=function(){var w=this.getSelectedText(),E=this.session.doc.getNewLineCharacter(),T=!1;if(!w&&this.$copyWithEmptySelection){T=!0;for(var O=this.selection.getAllRanges(),I=0;I<O.length;I++){var N=O[I];I&&O[I-1].start.row==N.start.row||(w+=this.session.getLine(N.start.row)+E)}}var P={text:w};return this._signal("copy",P),k.lineMode=T?P.text:!1,P.text},S.prototype.onCopy=function(){this.commands.exec("copy",this)},S.prototype.onCut=function(){this.commands.exec("cut",this)},S.prototype.onPaste=function(w,E){var T={text:w,event:E};this.commands.exec("paste",this,T)},S.prototype.$handlePaste=function(w){typeof w=="string"&&(w={text:w}),this._signal("paste",w);var E=w.text,T=E===k.lineMode,O=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)T?O.insert({row:this.selection.lead.row,column:0},E):this.insert(E);else if(T)this.selection.rangeList.ranges.forEach(function(j){O.insert({row:j.start.row,column:0},E)});else{var I=E.split(/\r\n|\r|\n/),N=this.selection.rangeList.ranges,P=I.length==2&&(!I[0]||!I[1]);if(I.length!=N.length||P)return this.commands.exec("insertstring",this,E);for(var H=N.length;H--;){var V=N[H];V.isEmpty()||O.remove(V),O.insert(V.start,I[H])}}},S.prototype.execCommand=function(w,E){return this.commands.exec(w,this,E)},S.prototype.insert=function(w,E){var T=this.session,O=T.getMode(),I=this.getCursorPosition();if(this.getBehavioursEnabled()&&!E){var N=O.transformAction(T.getState(I.row),"insertion",this,T,w);N&&(w!==N.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),w=N.text)}if(w==" "&&(w=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&w.indexOf(`
|
1036
|
-
`)==-1){var P=m.fromPoints(I,I);P.end.column+=w.length,this.session.remove(P)}}else{var P=this.getSelectionRange();I=this.session.remove(P),this.clearSelection()}if(w==`
|
1037
|
-
`||w==`\r
|
1038
|
-
`){var B=T.getLine(I.row);if(I.column>B.search(/\S|$/)){var H=B.substr(I.column).search(/\S|$/);T.doc.removeInLine(I.row,I.column,I.column+H)}}this.clearSelection();var V=I.column,j=T.getState(I.row),B=T.getLine(I.row),U=O.checkOutdent(j,B,w);if(T.insert(I,w),N&&N.selection&&(N.selection.length==2?this.selection.setSelectionRange(new m(I.row,V+N.selection[0],I.row,V+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(j,B.slice(0,I.column),T.getTabString());T.insert({row:I.row+1,column:0},q)}U&&O.autoOutdent(j,T,I.row)}},S.prototype.autoIndent=function(){for(var w=this.session,E=w.getMode(),T=this.selection.isEmpty()?[new m(0,0,w.doc.getLength()-1,0)]:this.selection.getAllRanges(),O="",I="",N="",P=w.getTabString(),H=0;H<T.length;H++)for(var V=T[H].start.row,j=T[H].end.row,B=V;B<=j;B++){B>0&&(O=w.getState(B-1),I=w.getLine(B-1),N=E.getNextLineIndent(O,I,P));var U=w.getLine(B),q=E.$getIndent(U);if(N!==q){if(q.length>0){var z=new m(B,0,B,q.length);w.remove(z)}N.length>0&&w.insert({row:B,column:0},N)}E.autoOutdent(O,w,B)}},S.prototype.onTextInput=function(w,E){if(!E)return this.keyBinding.onTextInput(w);this.startOperation({command:{name:"insertstring"}});var T=this.applyComposition.bind(this,w,E);this.selection.rangeCount?this.forEachSelection(T):T(),this.endOperation()},S.prototype.applyComposition=function(w,E){if(E.extendLeft||E.extendRight){var T=this.selection.getRange();T.start.column-=E.extendLeft,T.end.column+=E.extendRight,T.start.column<0&&(T.start.row--,T.start.column+=this.session.getLine(T.start.row).length+1),this.selection.setRange(T),!w&&!T.isEmpty()&&this.remove()}if((w||!this.selection.isEmpty())&&this.insert(w,!0),E.restoreStart||E.restoreEnd){var T=this.selection.getRange();T.start.column-=E.restoreStart,T.end.column-=E.restoreEnd,this.selection.setRange(T)}},S.prototype.onCommandKey=function(w,E,T){return this.keyBinding.onCommandKey(w,E,T)},S.prototype.setOverwrite=function(w){this.session.setOverwrite(w)},S.prototype.getOverwrite=function(){return this.session.getOverwrite()},S.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},S.prototype.setScrollSpeed=function(w){this.setOption("scrollSpeed",w)},S.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},S.prototype.setDragDelay=function(w){this.setOption("dragDelay",w)},S.prototype.getDragDelay=function(){return this.getOption("dragDelay")},S.prototype.setSelectionStyle=function(w){this.setOption("selectionStyle",w)},S.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},S.prototype.setHighlightActiveLine=function(w){this.setOption("highlightActiveLine",w)},S.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},S.prototype.setHighlightGutterLine=function(w){this.setOption("highlightGutterLine",w)},S.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},S.prototype.setHighlightSelectedWord=function(w){this.setOption("highlightSelectedWord",w)},S.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},S.prototype.setAnimatedScroll=function(w){this.renderer.setAnimatedScroll(w)},S.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},S.prototype.setShowInvisibles=function(w){this.renderer.setShowInvisibles(w)},S.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},S.prototype.setDisplayIndentGuides=function(w){this.renderer.setDisplayIndentGuides(w)},S.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},S.prototype.setHighlightIndentGuides=function(w){this.renderer.setHighlightIndentGuides(w)},S.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},S.prototype.setShowPrintMargin=function(w){this.renderer.setShowPrintMargin(w)},S.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},S.prototype.setPrintMarginColumn=function(w){this.renderer.setPrintMarginColumn(w)},S.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},S.prototype.setReadOnly=function(w){this.setOption("readOnly",w)},S.prototype.getReadOnly=function(){return this.getOption("readOnly")},S.prototype.setBehavioursEnabled=function(w){this.setOption("behavioursEnabled",w)},S.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},S.prototype.setWrapBehavioursEnabled=function(w){this.setOption("wrapBehavioursEnabled",w)},S.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},S.prototype.setShowFoldWidgets=function(w){this.setOption("showFoldWidgets",w)},S.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},S.prototype.setFadeFoldWidgets=function(w){this.setOption("fadeFoldWidgets",w)},S.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},S.prototype.remove=function(w){this.selection.isEmpty()&&(w=="left"?this.selection.selectLeft():this.selection.selectRight());var E=this.getSelectionRange();if(this.getBehavioursEnabled()){var T=this.session,O=T.getState(E.start.row),I=T.getMode().transformAction(O,"deletion",this,T,E);if(E.end.column===0){var N=T.getTextRange(E);if(N[N.length-1]==`
|
1039
|
-
`){var P=T.getLine(E.end.row);/^\s+$/.test(P)&&(E.end.column=P.length)}}I&&(E=I)}this.session.remove(E),this.clearSelection()},S.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},S.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},S.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},S.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()},S.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var w=this.getCursorPosition();this.insert(`
|
1040
|
-
`),this.moveCursorToPosition(w)},S.prototype.setGhostText=function(w,E){this.session.widgetManager||(this.session.widgetManager=new b(this.session),this.session.widgetManager.attach(this)),this.renderer.setGhostText(w,E)},S.prototype.removeGhostText=function(){this.session.widgetManager&&this.renderer.removeGhostText()},S.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var w=this.getCursorPosition(),E=w.column;if(E!==0){var T=this.session.getLine(w.row),O,I;E<T.length?(O=T.charAt(E)+T.charAt(E-1),I=new m(w.row,E-1,w.row,E+1)):(O=T.charAt(E-1)+T.charAt(E-2),I=new m(w.row,E-2,w.row,E)),this.session.replace(I,O),this.session.selection.moveToPosition(I.end)}}},S.prototype.toLowerCase=function(){var w=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var E=this.getSelectionRange(),T=this.session.getTextRange(E);this.session.replace(E,T.toLowerCase()),this.selection.setSelectionRange(w)},S.prototype.toUpperCase=function(){var w=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var E=this.getSelectionRange(),T=this.session.getTextRange(E);this.session.replace(E,T.toUpperCase()),this.selection.setSelectionRange(w)},S.prototype.indent=function(){var w=this.session,E=this.getSelectionRange();if(E.start.row<E.end.row){var T=this.$getSelectedRows();w.indentRows(T.first,T.last," ");return}else if(E.start.column<E.end.column){var O=w.getTextRange(E);if(!/^\s+$/.test(O)){var T=this.$getSelectedRows();w.indentRows(T.first,T.last," ");return}}var I=w.getLine(E.start.row),N=E.start,P=w.getTabSize(),H=w.documentToScreenColumn(N.row,N.column);if(this.session.getUseSoftTabs())var V=P-H%P,j=a.stringRepeat(" ",V);else{for(var V=H%P;I[E.start.column-1]==" "&&V;)E.start.column--,V--;this.selection.setSelectionRange(E),j=" "}return this.insert(j)},S.prototype.blockIndent=function(){var w=this.$getSelectedRows();this.session.indentRows(w.first,w.last," ")},S.prototype.blockOutdent=function(){var w=this.session.getSelection();this.session.outdentRows(w.getRange())},S.prototype.sortLines=function(){for(var w=this.$getSelectedRows(),E=this.session,T=[],O=w.first;O<=w.last;O++)T.push(E.getLine(O));T.sort(function(P,H){return P.toLowerCase()<H.toLowerCase()?-1:P.toLowerCase()>H.toLowerCase()?1:0});for(var I=new m(0,0,0,0),O=w.first;O<=w.last;O++){var N=E.getLine(O);I.start.row=O,I.end.row=O,I.end.column=N.length,E.replace(I,T[O-w.first])}},S.prototype.toggleCommentLines=function(){var w=this.session.getState(this.getCursorPosition().row),E=this.$getSelectedRows();this.session.getMode().toggleCommentLines(w,this.session,E.first,E.last)},S.prototype.toggleBlockComment=function(){var w=this.getCursorPosition(),E=this.session.getState(w.row),T=this.getSelectionRange();this.session.getMode().toggleBlockComment(E,this.session,T,w)},S.prototype.getNumberAt=function(w,E){var T=/[\-]?[0-9]+(?:\.[0-9]+)?/g;T.lastIndex=0;for(var O=this.session.getLine(w);T.lastIndex<E;){var I=T.exec(O);if(I.index<=E&&I.index+I[0].length>=E){var N={value:I[0],start:I.index,end:I.index+I[0].length};return N}}return null},S.prototype.modifyNumber=function(w){var E=this.selection.getCursor().row,T=this.selection.getCursor().column,O=new m(E,T-1,E,T),I=this.session.getTextRange(O);if(!isNaN(parseFloat(I))&&isFinite(I)){var N=this.getNumberAt(E,T);if(N){var P=N.value.indexOf(".")>=0?N.start+N.value.indexOf(".")+1:N.end,H=N.start+N.value.length-P,V=parseFloat(N.value);V*=Math.pow(10,H),P!==N.end&&T<P?w*=Math.pow(10,N.end-T-1):w*=Math.pow(10,N.end-T),V+=w,V/=Math.pow(10,H);var j=V.toFixed(H),B=new m(E,N.start,E,N.end);this.session.replace(B,j),this.moveCursorTo(E,Math.max(N.start+1,T+j.length-N.value.length))}}else this.toggleWord()},S.prototype.toggleWord=function(){var w=this.selection.getCursor().row,E=this.selection.getCursor().column;this.selection.selectWord();var T=this.getSelectedText(),O=this.selection.getWordRange().start.column,I=T.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),N=E-O-1;N<0&&(N=0);var P=0,H=0,V=this;T.match(/[A-Za-z0-9_]+/)&&I.forEach(function(he,Ce){H=P+he.length,N>=P&&N<=H&&(T=he,V.selection.clearSelection(),V.moveCursorTo(w,P+O),V.selection.selectTo(w,H+O)),P=H});for(var j=this.$toggleWordPairs,B,U=0;U<j.length;U++)for(var q=j[U],z=0;z<=1;z++){var Z=+!z,Y=T.match(new RegExp("^\\s?_?("+a.escapeRegExp(q[z])+")\\s?$","i"));if(Y){var Q=T.match(new RegExp("([_]|^|\\s)("+a.escapeRegExp(Y[1])+")($|\\s)","g"));Q&&(B=T.replace(new RegExp(a.escapeRegExp(q[z]),"i"),function(he){var Ce=q[Z];return he.toUpperCase()==he?Ce=Ce.toUpperCase():he.charAt(0).toUpperCase()==he.charAt(0)&&(Ce=Ce.substr(0,0)+q[Z].charAt(0).toUpperCase()+Ce.substr(1)),Ce}),this.insert(B),B="")}}},S.prototype.findLinkAt=function(w,E){var T,O,I=this.session.getLine(w),N=I.split(/((?:https?|ftp):\/\/[\S]+)/),P=E;P<0&&(P=0);var H=0,V=0,j;try{for(var B=o(N),U=B.next();!U.done;U=B.next()){var q=U.value;if(V=H+q.length,P>=H&&P<=V&&q.match(/((?:https?|ftp):\/\/[\S]+)/)){j=q.replace(/[\s:.,'";}\]]+$/,"");break}H=V}}catch(z){T={error:z}}finally{try{U&&!U.done&&(O=B.return)&&O.call(B)}finally{if(T)throw T.error}}return j},S.prototype.openLink=function(){var w=this.selection.getCursor(),E=this.findLinkAt(w.row,w.column);return E&&window.open(E,"_blank"),E!=null},S.prototype.removeLines=function(){var w=this.$getSelectedRows();this.session.removeFullLines(w.first,w.last),this.clearSelection()},S.prototype.duplicateSelection=function(){var w=this.selection,E=this.session,T=w.getRange(),O=w.isBackwards();if(T.isEmpty()){var I=T.start.row;E.duplicateLines(I,I)}else{var N=O?T.start:T.end,P=E.insert(N,E.getTextRange(T));T.start=N,T.end=P,w.setSelectionRange(T,O)}},S.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},S.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},S.prototype.moveText=function(w,E,T){return this.session.moveText(w,E,T)},S.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},S.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},S.prototype.$moveLines=function(w,E){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,E?0:w),E&&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 H=0,V=0,j=P.length,B=0;B<j;B++){var U=B;P[B].moveBy(H,0),T=this.$getSelectedRows(P[B]);for(var q=T.first,z=T.last;++B<j;){V&&P[B].moveBy(V,0);var Z=this.$getSelectedRows(P[B]);if(E&&Z.first!=z)break;if(!E&&Z.first>z+1)break;z=Z.last}for(B--,H=this.session.$moveLines(q,z,E?0:w),E&&w==-1&&(U=B+1);U<=B;)P[U].moveBy(H,0),U++;E||(H=0),V+=H}I.fromOrientedRange(I.ranges[0]),I.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},S.prototype.$getSelectedRows=function(w){return w=(w||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(w.start.row),last:this.session.getRowFoldEnd(w.end.row)}},S.prototype.onCompositionStart=function(w){this.renderer.showComposition(w)},S.prototype.onCompositionUpdate=function(w){this.renderer.setCompositionText(w)},S.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},S.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},S.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},S.prototype.isRowVisible=function(w){return w>=this.getFirstVisibleRow()&&w<=this.getLastVisibleRow()},S.prototype.isRowFullyVisible=function(w){return w>=this.renderer.getFirstFullyVisibleRow()&&w<=this.renderer.getLastFullyVisibleRow()},S.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},S.prototype.$moveByPage=function(w,E){var T=this.renderer,O=this.renderer.layerConfig,I=w*Math.floor(O.height/O.lineHeight);E===!0?this.selection.$moveSelection(function(){this.moveCursorBy(I,0)}):E===!1&&(this.selection.moveCursorBy(I,0),this.selection.clearSelection());var N=T.scrollTop;T.scrollBy(0,I*O.lineHeight),E!=null&&T.scrollCursorIntoView(null,.5),T.animateScrolling(N)},S.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},S.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},S.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},S.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},S.prototype.scrollPageDown=function(){this.$moveByPage(1)},S.prototype.scrollPageUp=function(){this.$moveByPage(-1)},S.prototype.scrollToRow=function(w){this.renderer.scrollToRow(w)},S.prototype.scrollToLine=function(w,E,T,O){this.renderer.scrollToLine(w,E,T,O)},S.prototype.centerSelection=function(){var w=this.getSelectionRange(),E={row:Math.floor(w.start.row+(w.end.row-w.start.row)/2),column:Math.floor(w.start.column+(w.end.column-w.start.column)/2)};this.renderer.alignCursor(E,.5)},S.prototype.getCursorPosition=function(){return this.selection.getCursor()},S.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},S.prototype.getSelectionRange=function(){return this.selection.getRange()},S.prototype.selectAll=function(){this.selection.selectAll()},S.prototype.clearSelection=function(){this.selection.clearSelection()},S.prototype.moveCursorTo=function(w,E){this.selection.moveCursorTo(w,E)},S.prototype.moveCursorToPosition=function(w){this.selection.moveCursorToPosition(w)},S.prototype.jumpToMatching=function(w,E){var T=this.getCursorPosition(),O=new _(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 H,V=!1,j={},B=T.column-P.start,U,q={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(P.value.match(/[{}()\[\]]/g)){for(;B<P.value.length&&!V;B++)if(q[P.value[B]])switch(U=q[P.value[B]]+"."+P.type.replace("rparen","lparen"),isNaN(j[U])&&(j[U]=0),P.value[B]){case"(":case"[":case"{":j[U]++;break;case")":case"]":case"}":j[U]--,j[U]===-1&&(H="bracket",V=!0);break}}else P.type.indexOf("tag-name")!==-1&&(isNaN(j[P.value])&&(j[P.value]=0),I.value==="<"&&N>1?j[P.value]++:I.value==="</"&&j[P.value]--,j[P.value]===-1&&(H="tag",V=!0));V||(I=P,N++,P=O.stepForward(),B=0)}while(P&&!V);if(H){var z,Z;if(H==="bracket")z=this.session.getBracketRange(T),z||(z=new m(O.getCurrentTokenRow(),O.getCurrentTokenColumn()+B-1,O.getCurrentTokenRow(),O.getCurrentTokenColumn()+B-1),Z=z.start,(E||Z.row===T.row&&Math.abs(Z.column-T.column)<2)&&(z=this.session.getBracketRange(Z)));else if(H==="tag"){if(!P||P.type.indexOf("tag-name")===-1)return;if(z=new m(O.getCurrentTokenRow(),O.getCurrentTokenColumn()-2,O.getCurrentTokenRow(),O.getCurrentTokenColumn()-2),z.compare(T.row,T.column)===0){var Y=this.session.getMatchingTags(T);Y&&(Y.openTag.contains(T.row,T.column)?(z=Y.closeTag,Z=z.start):(z=Y.openTag,Y.closeTag.start.row===T.row&&Y.closeTag.start.column===T.column?Z=z.end:Z=z.start))}Z=Z||z.start}Z=z&&z.cursor||Z,Z&&(w?z&&E?this.selection.setRange(z):z&&z.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(Z.row,Z.column):this.selection.moveTo(Z.row,Z.column))}}},S.prototype.gotoLine=function(w,E,T){this.selection.clearSelection(),this.session.unfold({row:w-1,column:E||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(w-1,E||0),this.isRowFullyVisible(w-1)||this.scrollToLine(w-1,!0,T)},S.prototype.navigateTo=function(w,E){this.selection.moveTo(w,E)},S.prototype.navigateUp=function(w){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var E=this.selection.anchor.getPosition();return this.moveCursorToPosition(E)}this.selection.clearSelection(),this.selection.moveCursorBy(-w||-1,0)},S.prototype.navigateDown=function(w){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var E=this.selection.anchor.getPosition();return this.moveCursorToPosition(E)}this.selection.clearSelection(),this.selection.moveCursorBy(w||1,0)},S.prototype.navigateLeft=function(w){if(this.selection.isEmpty())for(w=w||1;w--;)this.selection.moveCursorLeft();else{var E=this.getSelectionRange().start;this.moveCursorToPosition(E)}this.clearSelection()},S.prototype.navigateRight=function(w){if(this.selection.isEmpty())for(w=w||1;w--;)this.selection.moveCursorRight();else{var E=this.getSelectionRange().end;this.moveCursorToPosition(E)}this.clearSelection()},S.prototype.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},S.prototype.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},S.prototype.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},S.prototype.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},S.prototype.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},S.prototype.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},S.prototype.replace=function(w,E){E&&this.$search.set(E);var T=this.$search.find(this.session),O=0;return T&&(this.$tryReplace(T,w)&&(O=1),this.selection.setSelectionRange(T),this.renderer.scrollSelectionIntoView(T.start,T.end)),O},S.prototype.replaceAll=function(w,E){E&&this.$search.set(E);var T=this.$search.findAll(this.session),O=0;if(!T.length)return O;var I=this.getSelectionRange();this.selection.moveTo(0,0);for(var N=T.length-1;N>=0;--N)this.$tryReplace(T[N],w)&&O++;return this.selection.setSelectionRange(I),O},S.prototype.$tryReplace=function(w,E){var T=this.session.getTextRange(w);return E=this.$search.replace(T,E),E!==null?(w.end=this.session.replace(w,E),w):null},S.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},S.prototype.find=function(w,E,T){E||(E={}),typeof w=="string"||w instanceof RegExp?E.needle=w:typeof w=="object"&&d.mixin(E,w);var O=this.selection.getRange();E.needle==null&&(w=this.session.getTextRange(O)||this.$search.$options.needle,w||(O=this.session.getWordRange(O.start.row,O.start.column),w=this.session.getTextRange(O)),this.$search.set({needle:w})),this.$search.set(E),E.start||this.$search.set({start:O});var I=this.$search.find(this.session);if(E.preventScroll)return I;if(I)return this.revealRange(I,T),I;E.backwards?O.start=O.end:O.end=O.start,this.selection.setRange(O)},S.prototype.findNext=function(w,E){this.find({skipCurrent:!0,backwards:!1},w,E)},S.prototype.findPrevious=function(w,E){this.find(w,{skipCurrent:!0,backwards:!0},E)},S.prototype.revealRange=function(w,E){this.session.unfold(w),this.selection.setSelectionRange(w);var T=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(w.start,w.end,.5),E!==!1&&this.renderer.animateScrolling(T)},S.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},S.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},S.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()},S.prototype.setAutoScrollEditorIntoView=function(w){if(w){var E,T=this,O=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var I=this.$scrollAnchor;I.style.cssText="position:absolute",this.container.insertBefore(I,this.container.firstChild);var N=this.on("changeSelection",function(){O=!0}),P=this.renderer.on("beforeRender",function(){O&&(E=T.renderer.container.getBoundingClientRect())}),H=this.renderer.on("afterRender",function(){if(O&&E&&(T.isFocused()||T.searchBox&&T.searchBox.isFocused())){var V=T.renderer,j=V.$cursorLayer.$pixelPos,B=V.layerConfig,U=j.top-B.offset;j.top>=0&&U+E.top<0?O=!0:j.top<B.height&&j.top+E.top+B.lineHeight>window.innerHeight?O=!1:O=null,O!=null&&(I.style.top=U+"px",I.style.left=j.left+"px",I.style.height=B.lineHeight+"px",I.scrollIntoView(O)),O=E=null}});this.setAutoScrollEditorIntoView=function(V){V||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",N),this.renderer.off("afterRender",H),this.renderer.off("beforeRender",P))}}},S.prototype.$resetCursorStyle=function(){var w=this.$cursorStyle||"ace",E=this.renderer.$cursorLayer;E&&(E.setSmoothBlinking(/smooth/.test(w)),E.isBlinking=!this.$readOnly&&w!="wide",g.setCssClass(E.element,"ace_slim-cursors",/slim/.test(w)))},S.prototype.prompt=function(w,E,T){var O=this;$.loadModule("ace/ext/prompt",function(I){I.prompt(O,w,E,T)})},S}();C.$uid=0,C.prototype.curOp=null,C.prototype.prevOp={},C.prototype.$mergeableCommands=["backspace","del","insertstring"],C.prototype.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],d.implement(C.prototype,v),$.defineOptions(C.prototype,"editor",{selectionStyle:{set:function(S){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:S})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(S){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(S){this.textInput.setReadOnly(S),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(S){this.textInput.setCopyWithEmptySelection(S)},initialValue:!1},cursorStyle:{set:function(S){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(S){this.setAutoScrollEditorIntoView(S)}},keyboardHandler:{set:function(S){this.setKeyboardHandler(S)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(S){this.session.setValue(S)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(S){this.setSession(S)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(S){this.renderer.$gutterLayer.setShowLineNumbers(S),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),S&&this.$relativeLineNumbers?R.attach(this):R.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(S){this.$showLineNumbers&&S?R.attach(this):R.detach(this)}},placeholder:{set:function(S){this.$updatePlaceholder||(this.$updatePlaceholder=(function(){var w=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(w&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),g.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(!w&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),g.addCssClass(this.container,"ace_hasPlaceholder");var E=g.createElement("div");E.className="ace_placeholder",E.textContent=this.$placeholder||"",this.renderer.placeholderNode=E,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!w&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}).bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(S){var w={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(O){O.blur(),O.renderer.scroller.focus()},readOnly:!0},E=function(O){if(O.target==this.renderer.scroller&&O.keyCode===M.enter){O.preventDefault();var I=this.getCursorPosition().row;this.isRowVisible(I)||this.scrollToLine(I,!0,!0),this.focus()}},T;S?(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.scroller.aria-roledescription","editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",L("editor.scroller.aria-label","Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",E.bind(this)),this.commands.addCommand(w),this.renderer.$gutter.setAttribute("tabindex",0),this.renderer.$gutter.setAttribute("aria-hidden",!1),this.renderer.$gutter.setAttribute("role","group"),this.renderer.$gutter.setAttribute("aria-roledescription",L("editor.gutter.aria-roledescription","editor")),this.renderer.$gutter.setAttribute("aria-label",L("editor.gutter.aria-label","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 A(this)),T.addListener()):(this.renderer.enableKeyboardAccessibility=!1,this.textInput.getElement().setAttribute("tabindex",0),this.textInput.setNumberOfExtraLines(0),this.renderer.scroller.setAttribute("tabindex",-1),this.renderer.scroller.removeAttribute("role"),this.renderer.scroller.removeAttribute("aria-roledescription"),this.renderer.scroller.classList.remove(this.renderer.keyboardFocusClassName),this.renderer.scroller.removeAttribute("aria-label"),this.renderer.scroller.removeEventListener("keyup",E.bind(this)),this.commands.removeCommand(w),this.renderer.content.removeAttribute("aria-hidden"),this.renderer.$gutter.setAttribute("tabindex",-1),this.renderer.$gutter.setAttribute("aria-hidden",!0),this.renderer.$gutter.removeAttribute("role"),this.renderer.$gutter.removeAttribute("aria-roledescription"),this.renderer.$gutter.removeAttribute("aria-label"),this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName),T&&T.removeListener())},initialValue:!1},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",useResizeObserver:"renderer",useSvgGutterIcons:"renderer",showFoldedAnnotations:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var R={getText:function(S,w){return(Math.abs(S.selection.lead.row-w)||w+1+(w<9?"·":""))+""},getWidth:function(S,w,E){return Math.max(w.toString().length,(E.lastRow+1).toString().length,2)*E.characterWidth},update:function(S,w){w.renderer.$loop.schedule(w.renderer.CHANGE_GUTTER)},attach:function(S){S.renderer.$gutterLayer.$renderer=this,S.on("changeSelection",this.update),this.update(null,S)},detach:function(S){S.renderer.$gutterLayer.$renderer==this&&(S.renderer.$gutterLayer.$renderer=null),S.off("changeSelection",this.update),this.update(null,S)}};r.Editor=C}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(n,r,l){var o=n("../lib/dom"),d=function(){function g(a,p){this.element=a,this.canvasHeight=p||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return g.prototype.moveContainer=function(a){o.translate(this.element,0,-(a.firstRowScreen*a.lineHeight%this.canvasHeight)-a.offset*this.$offsetCoefficient)},g.prototype.pageChanged=function(a,p){return Math.floor(a.firstRowScreen*a.lineHeight/this.canvasHeight)!==Math.floor(p.firstRowScreen*p.lineHeight/this.canvasHeight)},g.prototype.computeLineTop=function(a,p,s){var i=p.firstRowScreen*p.lineHeight,u=Math.floor(i/this.canvasHeight),h=s.documentToScreenRow(a,0)*p.lineHeight;return h-u*this.canvasHeight},g.prototype.computeLineHeight=function(a,p,s){return p.lineHeight*s.getRowLineCount(a)},g.prototype.getLength=function(){return this.cells.length},g.prototype.get=function(a){return this.cells[a]},g.prototype.shift=function(){this.$cacheCell(this.cells.shift())},g.prototype.pop=function(){this.$cacheCell(this.cells.pop())},g.prototype.push=function(a){if(Array.isArray(a)){this.cells.push.apply(this.cells,a);for(var p=o.createFragment(this.element),s=0;s<a.length;s++)p.appendChild(a[s].element);this.element.appendChild(p)}else this.cells.push(a),this.element.appendChild(a.element)},g.prototype.unshift=function(a){if(Array.isArray(a)){this.cells.unshift.apply(this.cells,a);for(var p=o.createFragment(this.element),s=0;s<a.length;s++)p.appendChild(a[s].element);this.element.firstChild?this.element.insertBefore(p,this.element.firstChild):this.element.appendChild(p)}else this.cells.unshift(a),this.element.insertAdjacentElement("afterbegin",a.element)},g.prototype.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},g.prototype.$cacheCell=function(a){a&&(a.element.remove(),this.cellCache.push(a))},g.prototype.createCell=function(a,p,s,i){var u=this.cellCache.pop();if(!u){var h=o.createElement("div");i&&i(h),this.element.appendChild(h),u={element:h,text:"",row:a}}return u.row=a,u},g}();r.Lines=d}),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/layer/lines","ace/config"],function(n,r,l){var o=n("../lib/dom"),d=n("../lib/oop"),g=n("../lib/lang"),a=n("../lib/event_emitter").EventEmitter,p=n("./lines").Lines,s=n("../config").nls,i=function(){function h(c){this.element=o.createElement("div"),this.element.className="ace_layer ace_gutter-layer",c.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new p(this.element),this.$lines.$offsetCoefficient=1}return h.prototype.setSession=function(c){this.session&&this.session.off("change",this.$updateAnnotations),this.session=c,c&&c.on("change",this.$updateAnnotations)},h.prototype.addGutterDecoration=function(c,f){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(c,f)},h.prototype.removeGutterDecoration=function(c,f){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(c,f)},h.prototype.setAnnotations=function(c){this.$annotations=[];for(var f=0;f<c.length;f++){var m=c[f],v=m.row,y=this.$annotations[v];y||(y=this.$annotations[v]={text:[],type:[]});var x=m.text,$=m.type;x=x?g.escapeHTML(x):m.html||"",y.text.indexOf(x)===-1&&(y.text.push(x),y.type.push($));var _=m.className;_?y.className=_:$=="error"?y.className=" ace_error":$=="warning"&&y.className!=" ace_error"?y.className=" ace_warning":$=="info"&&!y.className&&(y.className=" ace_info")}},h.prototype.$updateAnnotations=function(c){if(this.$annotations.length){var f=c.start.row,m=c.end.row-f;if(m!==0)if(c.action=="remove")this.$annotations.splice(f,m+1,null);else{var v=new Array(m+1);v.unshift(f,1),this.$annotations.splice.apply(this.$annotations,v)}}},h.prototype.update=function(c){this.config=c;var f=this.session,m=c.firstRow,v=Math.min(c.lastRow+c.gutterOffset,f.getLength()-1);this.oldLastRow=v,this.config=c,this.$lines.moveContainer(c),this.$updateCursorRow();for(var y=f.getNextFoldLine(m),x=y?y.start.row:1/0,$=null,_=-1,b=m;;){if(b>x&&(b=y.end.row+1,y=f.getNextFoldLine(b,y),x=y?y.start.row:1/0),b>v){for(;this.$lines.getLength()>_+1;)this.$lines.pop();break}$=this.$lines.get(++_),$?$.row=b:($=this.$lines.createCell(b,c,this.session,u),this.$lines.push($)),this.$renderCell($,c,y,b),b++}this._signal("afterRender"),this.$updateGutterWidth(c)},h.prototype.$updateGutterWidth=function(c){var f=this.session,m=f.gutterRenderer||this.$renderer,v=f.$firstLineNumber,y=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||f.$useWrapMode)&&(y=f.getLength()+v-1);var x=m?m.getWidth(f,y,c):y.toString().length*c.characterWidth,$=this.$padding||this.$computePadding();x+=$.left+$.right,x!==this.gutterWidth&&!isNaN(x)&&(this.gutterWidth=x,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",x))},h.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var c=this.session.selection.getCursor();this.$cursorRow!==c.row&&(this.$cursorRow=c.row)}},h.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var c=this.session.selection.cursor.row;if(this.$cursorRow=c,!(this.$cursorCell&&this.$cursorCell.row==c)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var f=this.$lines.cells;this.$cursorCell=null;for(var m=0;m<f.length;m++){var v=f[m];if(v.row>=this.$cursorRow){if(v.row>this.$cursorRow){var y=this.session.getFoldLine(this.$cursorRow);if(m>0&&y&&y.start.row==f[m-1].row)v=f[m-1];else break}v.element.className="ace_gutter-active-line "+v.element.className,this.$cursorCell=v;break}}}}},h.prototype.scrollLines=function(c){var f=this.config;if(this.config=c,this.$updateCursorRow(),this.$lines.pageChanged(f,c))return this.update(c);this.$lines.moveContainer(c);var m=Math.min(c.lastRow+c.gutterOffset,this.session.getLength()-1),v=this.oldLastRow;if(this.oldLastRow=m,!f||v<c.firstRow)return this.update(c);if(m<f.firstRow)return this.update(c);if(f.firstRow<c.firstRow)for(var y=this.session.getFoldedRowCount(f.firstRow,c.firstRow-1);y>0;y--)this.$lines.shift();if(v>m)for(var y=this.session.getFoldedRowCount(m+1,v);y>0;y--)this.$lines.pop();c.firstRow<f.firstRow&&this.$lines.unshift(this.$renderLines(c,c.firstRow,f.firstRow-1)),m>v&&this.$lines.push(this.$renderLines(c,v+1,m)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(c)},h.prototype.$renderLines=function(c,f,m){for(var v=[],y=f,x=this.session.getNextFoldLine(y),$=x?x.start.row:1/0;y>$&&(y=x.end.row+1,x=this.session.getNextFoldLine(y,x),$=x?x.start.row:1/0),!(y>m);){var _=this.$lines.createCell(y,c,this.session,u);this.$renderCell(_,c,x,y),v.push(_),y++}return v},h.prototype.$renderCell=function(c,f,m,v){var y=c.element,x=this.session,$=y.childNodes[0],_=y.childNodes[1],b=y.childNodes[2],A=b.firstChild,L=x.$firstLineNumber,k=x.$breakpoints,M=x.$decorations,C=x.gutterRenderer||this.$renderer,R=this.$showFoldWidgets&&x.foldWidgets,S=m?m.start.row:Number.MAX_VALUE,w=f.lineHeight+"px",E=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",T=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",O=(C?C.getText(x,v):v+L).toString();if(this.$highlightGutterLine&&(v==this.$cursorRow||m&&v<this.$cursorRow&&v>=S&&this.$cursorRow<=m.end.row)&&(E+="ace_gutter-active-line ",this.$cursorCell!=c&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=c)),k[v]&&(E+=k[v]),M[v]&&(E+=M[v]),this.$annotations[v]&&v!==S&&(E+=this.$annotations[v].className),R){var I=R[v];I==null&&(I=R[v]=x.getFoldWidget(v))}if(I){var N="ace_fold-widget ace_"+I,P=I=="start"&&v==S&&v<m.end.row;if(P){N+=" ace_closed";for(var H="",V=!1,j=v+1;j<=m.end.row;j++)if(this.$annotations[j]){if(this.$annotations[j].className===" ace_error"){V=!0,H=" ace_error_fold";break}if(this.$annotations[j].className===" ace_warning"){V=!0,H=" ace_warning_fold";continue}}E+=H}else N+=" ace_open";_.className!=N&&(_.className=N),o.setStyle(_.style,"height",w),o.setStyle(_.style,"display","inline-block"),_.setAttribute("role","button"),_.setAttribute("tabindex","-1");var B=x.getFoldWidgetRange(v);B?_.setAttribute("aria-label",s("gutter.code-folding.range.aria-label","Toggle code folding, rows $0 through $1",[B.start.row+1,B.end.row+1])):m?_.setAttribute("aria-label",s("gutter.code-folding.closed.aria-label","Toggle code folding, rows $0 through $1",[m.start.row+1,m.end.row+1])):_.setAttribute("aria-label",s("gutter.code-folding.open.aria-label","Toggle code folding, row $0",[v+1])),P?(_.setAttribute("aria-expanded","false"),_.setAttribute("title",s("gutter.code-folding.closed.title","Unfold code"))):(_.setAttribute("aria-expanded","true"),_.setAttribute("title",s("gutter.code-folding.open.title","Fold code")))}else _&&(o.setStyle(_.style,"display","none"),_.setAttribute("tabindex","0"),_.removeAttribute("role"),_.removeAttribute("aria-label"));if(V&&this.$showFoldedAnnotations){b.className="ace_gutter_annotation",A.className=T,A.className+=H,o.setStyle(A.style,"height",w),o.setStyle(b.style,"display","block"),o.setStyle(b.style,"height",w);var U;switch(H){case" ace_error_fold":U=s("gutter.annotation.aria-label.error","Read annotations row $0",[O]);break;case" ace_warning_fold":U=s("gutter.annotation.aria-label.warning","Read annotations row $0",[O]);break}b.setAttribute("aria-label",U),b.setAttribute("tabindex","-1"),b.setAttribute("role","button")}else if(this.$annotations[v]){b.className="ace_gutter_annotation",A.className=T,this.$useSvgGutterIcons?A.className+=this.$annotations[v].className:y.classList.add(this.$annotations[v].className.replace(" ","")),o.setStyle(A.style,"height",w),o.setStyle(b.style,"display","block"),o.setStyle(b.style,"height",w);var U;switch(this.$annotations[v].className){case" ace_error":U=s("gutter.annotation.aria-label.error","Read annotations row $0",[O]);break;case" ace_warning":U=s("gutter.annotation.aria-label.warning","Read annotations row $0",[O]);break;case" ace_info":U=s("gutter.annotation.aria-label.info","Read annotations row $0",[O]);break}b.setAttribute("aria-label",U),b.setAttribute("tabindex","-1"),b.setAttribute("role","button")}else o.setStyle(b.style,"display","none"),b.removeAttribute("aria-label"),b.removeAttribute("role"),b.setAttribute("tabindex","0");return O!==$.data&&($.data=O),y.className!=E&&(y.className=E),o.setStyle(c.element.style,"height",this.$lines.computeLineHeight(v,f,x)+"px"),o.setStyle(c.element.style,"top",this.$lines.computeLineTop(v,f,x)+"px"),c.text=O,b.style.display==="none"&&_.style.display==="none"?c.element.setAttribute("aria-hidden",!0):c.element.setAttribute("aria-hidden",!1),c},h.prototype.setHighlightGutterLine=function(c){this.$highlightGutterLine=c},h.prototype.setShowLineNumbers=function(c){this.$renderer=!c&&{getWidth:function(){return 0},getText:function(){return""}}},h.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},h.prototype.setShowFoldWidgets=function(c){c?o.addCssClass(this.element,"ace_folding-enabled"):o.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=c,this.$padding=null},h.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},h.prototype.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var c=o.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(c.borderLeftWidth)||0)+(parseInt(c.paddingLeft)||0)+1,this.$padding.right=(parseInt(c.borderRightWidth)||0)+(parseInt(c.paddingRight)||0),this.$padding},h.prototype.getRegion=function(c){var f=this.$padding||this.$computePadding(),m=this.element.getBoundingClientRect();if(c.x<f.left+m.left)return"markers";if(this.$showFoldWidgets&&c.x>m.right-f.right)return"foldWidgets"},h}();i.prototype.$fixedWidth=!1,i.prototype.$highlightGutterLine=!0,i.prototype.$renderer="",i.prototype.$showLineNumbers=!0,i.prototype.$showFoldWidgets=!0,d.implement(i.prototype,a);function u(h){var c=document.createTextNode("");h.appendChild(c);var f=o.createElement("span");h.appendChild(f);var m=o.createElement("span");h.appendChild(m);var v=o.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 o=n("../range").Range,d=n("../lib/dom"),g=function(){function p(s){this.element=d.createElement("div"),this.element.className="ace_layer ace_marker-layer",s.appendChild(this.element)}return p.prototype.setPadding=function(s){this.$padding=s},p.prototype.setSession=function(s){this.session=s},p.prototype.setMarkers=function(s){this.markers=s},p.prototype.elt=function(s,i){var u=this.i!=-1&&this.element.childNodes[this.i];u?this.i++:(u=document.createElement("div"),this.element.appendChild(u),this.i=-1),u.style.cssText=i,u.className=s},p.prototype.update=function(s){if(s){this.config=s,this.i=0;var i;for(var u in this.markers){var h=this.markers[u];if(!h.range){h.update(i,this,this.session,s);continue}var c=h.range.clipRows(s.firstRow,s.lastRow);if(!c.isEmpty())if(c=c.toScreenRange(this.session),h.renderer){var f=this.$getTop(c.start.row,s),m=this.$padding+c.start.column*s.characterWidth;h.renderer(i,c,m,f,s)}else h.type=="fullLine"?this.drawFullLineMarker(i,c,h.clazz,s):h.type=="screenLine"?this.drawScreenLineMarker(i,c,h.clazz,s):c.isMultiLine()?h.type=="text"?this.drawTextMarker(i,c,h.clazz,s):this.drawMultiLineMarker(i,c,h.clazz,s):this.drawSingleLineMarker(i,c,h.clazz+" ace_start ace_br15",s)}if(this.i!=-1)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},p.prototype.$getTop=function(s,i){return(s-i.firstRowScreen)*i.lineHeight},p.prototype.drawTextMarker=function(s,i,u,h,c){for(var f=this.session,m=i.start.row,v=i.end.row,y=m,x=0,$=0,_=f.getScreenLastRowColumn(y),b=new o(y,i.start.column,y,$);y<=v;y++)b.start.row=b.end.row=y,b.start.column=y==m?i.start.column:f.getRowWrapIndent(y),b.end.column=_,x=$,$=_,_=y+1<v?f.getScreenLastRowColumn(y+1):y==v?0:i.end.column,this.drawSingleLineMarker(s,b,u+(y==m?" ace_start":"")+" ace_br"+a(y==m||y==m+1&&i.start.column,x<$,$>_,y==v),h,y==v?0:1,c)},p.prototype.drawMultiLineMarker=function(s,i,u,h,c){var f=this.$padding,m=h.lineHeight,v=this.$getTop(i.start.row,h),y=f+i.start.column*h.characterWidth;if(c=c||"",this.session.$bidiHandler.isBidiRow(i.start.row)){var x=i.clone();x.end.row=x.start.row,x.end.column=this.session.getLine(x.start.row).length,this.drawBidiSingleLineMarker(s,x,u+" ace_br1 ace_start",h,null,c)}else this.elt(u+" ace_br1 ace_start","height:"+m+"px;right:0;top:"+v+"px;left:"+y+"px;"+(c||""));if(this.session.$bidiHandler.isBidiRow(i.end.row)){var x=i.clone();x.start.row=x.end.row,x.start.column=0,this.drawBidiSingleLineMarker(s,x,u+" ace_br12",h,null,c)}else{v=this.$getTop(i.end.row,h);var $=i.end.column*h.characterWidth;this.elt(u+" ace_br12","height:"+m+"px;width:"+$+"px;top:"+v+"px;left:"+f+"px;"+(c||""))}if(m=(i.end.row-i.start.row-1)*h.lineHeight,!(m<=0)){v=this.$getTop(i.start.row+1,h);var _=(i.start.column?1:0)|(i.end.column?0:8);this.elt(u+(_?" ace_br"+_:""),"height:"+m+"px;right:0;top:"+v+"px;left:"+f+"px;"+(c||""))}},p.prototype.drawSingleLineMarker=function(s,i,u,h,c,f){if(this.session.$bidiHandler.isBidiRow(i.start.row))return this.drawBidiSingleLineMarker(s,i,u,h,c,f);var m=h.lineHeight,v=(i.end.column+(c||0)-i.start.column)*h.characterWidth,y=this.$getTop(i.start.row,h),x=this.$padding+i.start.column*h.characterWidth;this.elt(u,"height:"+m+"px;width:"+v+"px;top:"+y+"px;left:"+x+"px;"+(f||""))},p.prototype.drawBidiSingleLineMarker=function(s,i,u,h,c,f){var m=h.lineHeight,v=this.$getTop(i.start.row,h),y=this.$padding,x=this.session.$bidiHandler.getSelections(i.start.column,i.end.column);x.forEach(function($){this.elt(u,"height:"+m+"px;width:"+($.width+(c||0))+"px;top:"+v+"px;left:"+(y+$.left)+"px;"+(f||""))},this)},p.prototype.drawFullLineMarker=function(s,i,u,h,c){var f=this.$getTop(i.start.row,h),m=h.lineHeight;i.start.row!=i.end.row&&(m+=this.$getTop(i.end.row,h)-f),this.elt(u,"height:"+m+"px;top:"+f+"px;left:0;right:0;"+(c||""))},p.prototype.drawScreenLineMarker=function(s,i,u,h,c){var f=this.$getTop(i.start.row,h),m=h.lineHeight;this.elt(u,"height:"+m+"px;top:"+f+"px;left:0;right:0;"+(c||""))},p}();g.prototype.$padding=0;function a(p,s,i,u){return(p?1:0)|(s?2:0)|(i?4:0)|(u?8:0)}r.Marker=g}),ace.define("ace/layer/text_util",["require","exports","module"],function(n,r,l){var o=new Set(["text","rparen","lparen"]);r.isTextToken=function(d){return o.has(d)}}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter","ace/config","ace/layer/text_util"],function(n,r,l){var o=n("../lib/oop"),d=n("../lib/dom"),g=n("../lib/lang"),a=n("./lines").Lines,p=n("../lib/event_emitter").EventEmitter,s=n("../config").nls,i=n("./text_util").isTextToken,u=function(){function h(c){this.dom=d,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",c.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new a(this.element)}return h.prototype.$updateEolChar=function(){var c=this.session.doc,f=c.getNewLineCharacter()==`
|
1041
|
-
`&&c.getNewLineMode()!="windows",m=f?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=m)return this.EOL_CHAR=m,!0},h.prototype.setPadding=function(c){this.$padding=c,this.element.style.margin="0 "+c+"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(c){this.$fontMetrics=c,this.$fontMetrics.on("changeCharacterSize",(function(f){this._signal("changeCharacterSize",f)}).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(c){this.session=c,c&&this.$computeTabString()},h.prototype.setShowInvisibles=function(c){return this.showInvisibles==c?!1:(this.showInvisibles=c,typeof c=="string"?(this.showSpaces=/tab/i.test(c),this.showTabs=/space/i.test(c),this.showEOL=/eol/i.test(c)):this.showSpaces=this.showTabs=this.showEOL=c,this.$computeTabString(),!0)},h.prototype.setDisplayIndentGuides=function(c){return this.displayIndentGuides==c?!1:(this.displayIndentGuides=c,this.$computeTabString(),!0)},h.prototype.setHighlightIndentGuides=function(c){return this.$highlightIndentGuides===c?!1:(this.$highlightIndentGuides=c,c)},h.prototype.$computeTabString=function(){var c=this.session.getTabSize();this.tabSize=c;for(var f=this.$tabStrings=[0],m=1;m<c+1;m++)if(this.showTabs){var v=this.dom.createElement("span");v.className="ace_invisible ace_invisible_tab",v.textContent=g.stringRepeat(this.TAB_CHAR,m),f.push(v)}else f.push(this.dom.createTextNode(g.stringRepeat(" ",m),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var y="ace_indent-guide",x=this.showSpaces?" ace_invisible ace_invisible_space":"",$=this.showSpaces?g.stringRepeat(this.SPACE_CHAR,this.tabSize):g.stringRepeat(" ",this.tabSize),_=this.showTabs?" ace_invisible ace_invisible_tab":"",b=this.showTabs?g.stringRepeat(this.TAB_CHAR,this.tabSize):$,v=this.dom.createElement("span");v.className=y+x,v.textContent=$,this.$tabStrings[" "]=v;var v=this.dom.createElement("span");v.className=y+_,v.textContent=b,this.$tabStrings[" "]=v}},h.prototype.updateLines=function(c,f,m){if(this.config.lastRow!=c.lastRow||this.config.firstRow!=c.firstRow)return this.update(c);this.config=c;for(var v=Math.max(f,c.firstRow),y=Math.min(m,c.lastRow),x=this.element.childNodes,$=0,b=c.firstRow;b<v;b++){var A=this.session.getFoldLine(b);if(A)if(A.containsRow(v)){v=A.start.row;break}else b=A.end.row;$++}for(var _=!1,b=v,A=this.session.getNextFoldLine(b),L=A?A.start.row:1/0;b>L&&(b=A.end.row+1,A=this.session.getNextFoldLine(b,A),L=A?A.start.row:1/0),!(b>y);){var k=x[$++];if(k){this.dom.removeChildren(k),this.$renderLine(k,b,b==L?A:!1),_&&(k.style.top=this.$lines.computeLineTop(b,c,this.session)+"px");var M=c.lineHeight*this.session.getRowLength(b)+"px";k.style.height!=M&&(_=!0,k.style.height=M)}b++}if(_)for(;$<this.$lines.cells.length;){var C=this.$lines.cells[$++];C.element.style.top=this.$lines.computeLineTop(C.row,c,this.session)+"px"}},h.prototype.scrollLines=function(c){var f=this.config;if(this.config=c,this.$lines.pageChanged(f,c))return this.update(c);this.$lines.moveContainer(c);var m=c.lastRow,v=f?f.lastRow:-1;if(!f||v<c.firstRow)return this.update(c);if(m<f.firstRow)return this.update(c);if(!f||f.lastRow<c.firstRow)return this.update(c);if(c.lastRow<f.firstRow)return this.update(c);if(f.firstRow<c.firstRow)for(var y=this.session.getFoldedRowCount(f.firstRow,c.firstRow-1);y>0;y--)this.$lines.shift();if(f.lastRow>c.lastRow)for(var y=this.session.getFoldedRowCount(c.lastRow+1,f.lastRow);y>0;y--)this.$lines.pop();c.firstRow<f.firstRow&&this.$lines.unshift(this.$renderLinesFragment(c,c.firstRow,f.firstRow-1)),c.lastRow>f.lastRow&&this.$lines.push(this.$renderLinesFragment(c,f.lastRow+1,c.lastRow)),this.$highlightIndentGuide()},h.prototype.$renderLinesFragment=function(c,f,m){for(var v=[],y=f,x=this.session.getNextFoldLine(y),$=x?x.start.row:1/0;y>$&&(y=x.end.row+1,x=this.session.getNextFoldLine(y,x),$=x?x.start.row:1/0),!(y>m);){var _=this.$lines.createCell(y,c,this.session),b=_.element;this.dom.removeChildren(b),d.setStyle(b.style,"height",this.$lines.computeLineHeight(y,c,this.session)+"px"),d.setStyle(b.style,"top",this.$lines.computeLineTop(y,c,this.session)+"px"),this.$renderLine(b,y,y==$?x:!1),this.$useLineGroups()?b.className="ace_line_group":b.className="ace_line",v.push(_),y++}return v},h.prototype.update=function(c){this.$lines.moveContainer(c),this.config=c;for(var f=c.firstRow,m=c.lastRow,v=this.$lines;v.getLength();)v.pop();v.push(this.$renderLinesFragment(c,f,m))},h.prototype.$renderToken=function(c,f,m,v){for(var y=this,x=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,$=this.dom.createFragment(this.element),_,b=0;_=x.exec(v);){var A=_[1],L=_[2],k=_[3],M=_[4],C=_[5];if(!(!y.showSpaces&&L)){var R=b!=_.index?v.slice(b,_.index):"";if(b=_.index+_[0].length,R&&$.appendChild(this.dom.createTextNode(R,this.element)),A){var S=y.session.getScreenTabSize(f+_.index);$.appendChild(y.$tabStrings[S].cloneNode(!0)),f+=S-1}else if(L)if(y.showSpaces){var w=this.dom.createElement("span");w.className="ace_invisible ace_invisible_space",w.textContent=g.stringRepeat(y.SPACE_CHAR,L.length),$.appendChild(w)}else $.appendChild(this.dom.createTextNode(L,this.element));else if(k){var w=this.dom.createElement("span");w.className="ace_invisible ace_invisible_space ace_invalid",w.textContent=g.stringRepeat(y.SPACE_CHAR,k.length),$.appendChild(w)}else if(M){f+=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,$.appendChild(w)}else if(C){f+=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($.appendChild(this.dom.createTextNode(b?v.slice(b):v,this.element)),i(m.type))c.appendChild($);else{var E="ace_"+m.type.replace(/\./g," ace_"),w=this.dom.createElement("span");m.type=="fold"&&(w.style.width=m.value.length*this.config.characterWidth+"px",w.setAttribute("title",s("inline-fold.closed.title","Unfold code"))),w.className=E,w.appendChild($),c.appendChild(w)}return f+v.length},h.prototype.renderIndentGuide=function(c,f,m){var v=f.search(this.$indentGuideRe);if(v<=0||v>=m)return f;if(f[0]==" "){v-=v%this.tabSize;for(var y=v/this.tabSize,x=0;x<y;x++)c.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),f.substr(v)}else if(f[0]==" "){for(var x=0;x<v;x++)c.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),f.substr(v)}return this.$highlightIndentGuide(),f},h.prototype.$highlightIndentGuide=function(){if(!(!this.$highlightIndentGuides||!this.displayIndentGuides)){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var c=this.session.doc.$lines;if(c){var f=this.session.selection.getCursor(),m=/^\s*/.exec(this.session.doc.getLine(f.row))[0].length,v=Math.floor(m/this.tabSize);this.$highlightIndentGuideMarker={indentLevel:v,start:f.row};var y=this.session.$bracketHighlight;if(y){for(var x=this.session.$bracketHighlight.ranges,$=0;$<x.length;$++)if(f.row!==x[$].start.row){this.$highlightIndentGuideMarker.end=x[$].start.row,f.row>x[$].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&c[f.row]!==""&&f.column===c[f.row].length){this.$highlightIndentGuideMarker.dir=1;for(var $=f.row+1;$<c.length;$++){var _=c[$],b=/^\s*/.exec(_)[0].length;if(_!==""&&(this.$highlightIndentGuideMarker.end=$,b<=m))break}}this.$renderHighlightIndentGuide()}}},h.prototype.$clearActiveIndentGuide=function(){for(var c=this.$lines.cells,f=0;f<c.length;f++){var m=c[f],v=m.element.childNodes;if(v.length>0){for(var y=0;y<v.length;y++)if(v[y].classList&&v[y].classList.contains("ace_indent-guide-active")){v[y].classList.remove("ace_indent-guide-active");break}}}},h.prototype.$setIndentGuideActive=function(c,f){var m=this.session.doc.getLine(c.row);if(m!==""){var v=c.element.childNodes;if(v){var y=v[f-1];y&&y.classList&&y.classList.contains("ace_indent-guide")&&y.classList.add("ace_indent-guide-active")}}},h.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var c=this.$lines.cells;this.$clearActiveIndentGuide();var f=this.$highlightIndentGuideMarker.indentLevel;if(f!==0)if(this.$highlightIndentGuideMarker.dir===1)for(var m=0;m<c.length;m++){var v=c[m];if(this.$highlightIndentGuideMarker.end&&v.row>=this.$highlightIndentGuideMarker.start+1){if(v.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(v,f)}}else for(var m=c.length-1;m>=0;m--){var v=c[m];if(this.$highlightIndentGuideMarker.end&&v.row<this.$highlightIndentGuideMarker.start){if(v.row<=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(v,f)}}}},h.prototype.$createLineElement=function(c){var f=this.dom.createElement("div");return f.className="ace_line",f.style.height=this.config.lineHeight+"px",f},h.prototype.$renderWrappedLine=function(c,f,m){var v=0,y=0,x=m[0],$=0,_=this.$createLineElement();c.appendChild(_);for(var b=0;b<f.length;b++){var A=f[b],L=A.value;if(b==0&&this.displayIndentGuides){if(v=L.length,L=this.renderIndentGuide(_,L,x),!L)continue;v-=L.length}if(v+L.length<x)$=this.$renderToken(_,$,A,L),v+=L.length;else{for(;v+L.length>=x;)$=this.$renderToken(_,$,A,L.substring(0,x-v)),L=L.substring(x-v),v=x,_=this.$createLineElement(),c.appendChild(_),_.appendChild(this.dom.createTextNode(g.stringRepeat(" ",m.indent),this.element)),y++,$=0,x=m[y]||Number.MAX_VALUE;L.length!=0&&(v+=L.length,$=this.$renderToken(_,$,A,L))}}m[m.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(_,$,null,"",!0)},h.prototype.$renderSimpleLine=function(c,f){for(var m=0,v=0;v<f.length;v++){var y=f[v],x=y.value;if(!(v==0&&this.displayIndentGuides&&(x=this.renderIndentGuide(c,x),!x))){if(m+x.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(c,m,y,x);m=this.$renderToken(c,m,y,x)}}},h.prototype.$renderOverflowMessage=function(c,f,m,v,y){m&&this.$renderToken(c,f,m,v.slice(0,this.MAX_LINE_LENGTH-f));var x=this.dom.createElement("span");x.className="ace_inline_button ace_keyword ace_toggle_wrap",x.textContent=y?"<hide>":"<click to see more...>",c.appendChild(x)},h.prototype.$renderLine=function(c,f,m){if(!m&&m!=!1&&(m=this.session.getFoldLine(f)),m)var v=this.$getFoldLineTokens(f,m);else var v=this.session.getTokens(f);var y=c;if(v.length){var x=this.session.getRowSplitData(f);if(x&&x.length){this.$renderWrappedLine(c,v,x);var y=c.lastChild}else{var y=c;this.$useLineGroups()&&(y=this.$createLineElement(),c.appendChild(y)),this.$renderSimpleLine(y,v)}}else this.$useLineGroups()&&(y=this.$createLineElement(),c.appendChild(y));if(this.showEOL&&y){m&&(f=m.end.row);var $=this.dom.createElement("span");$.className="ace_invisible ace_invisible_eol",$.textContent=f==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,y.appendChild($)}},h.prototype.$getFoldLineTokens=function(c,f){var m=this.session,v=[];function y($,_,b){for(var A=0,L=0;L+$[A].value.length<_;)if(L+=$[A].value.length,A++,A==$.length)return;if(L!=_){var k=$[A].value.substring(_-L);k.length>b-_&&(k=k.substring(0,b-_)),v.push({type:$[A].type,value:k}),L=_+k.length,A+=1}for(;L<b&&A<$.length;){var k=$[A].value;k.length+L>b?v.push({type:$[A].type,value:k.substring(0,b-L)}):v.push($[A]),L+=k.length,A+=1}}var x=m.getTokens(c);return f.walk(function($,_,b,A,L){$!=null?v.push({type:"fold",value:$}):(L&&(x=m.getTokens(_)),x.length&&y(x,A,b))},f.end.row,this.session.getLine(f.end.row).length),v},h.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},h}();u.prototype.EOF_CHAR="¶",u.prototype.EOL_CHAR_LF="¬",u.prototype.EOL_CHAR_CRLF="¤",u.prototype.EOL_CHAR=u.prototype.EOL_CHAR_LF,u.prototype.TAB_CHAR="—",u.prototype.SPACE_CHAR="·",u.prototype.$padding=0,u.prototype.MAX_LINE_LENGTH=1e4,u.prototype.showInvisibles=!1,u.prototype.showSpaces=!1,u.prototype.showTabs=!1,u.prototype.showEOL=!1,u.prototype.displayIndentGuides=!0,u.prototype.$highlightIndentGuides=!0,u.prototype.$tabStrings=[],u.prototype.destroy={},u.prototype.onChangeTabSize=u.prototype.$computeTabString,o.implement(u.prototype,p),r.Text=u}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(n,r,l){var o=n("../lib/dom"),d=function(){function g(a){this.element=o.createElement("div"),this.element.className="ace_layer ace_cursor-layer",a.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),o.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return g.prototype.$updateOpacity=function(a){for(var p=this.cursors,s=p.length;s--;)o.setStyle(p[s].style,"opacity",a?"":"0")},g.prototype.$startCssAnimation=function(){for(var a=this.cursors,p=a.length;p--;)a[p].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout((function(){this.$isAnimating&&o.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},g.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,o.removeCssClass(this.element,"ace_animate-blinking")},g.prototype.setPadding=function(a){this.$padding=a},g.prototype.setSession=function(a){this.session=a},g.prototype.setBlinking=function(a){a!=this.isBlinking&&(this.isBlinking=a,this.restartTimer())},g.prototype.setBlinkInterval=function(a){a!=this.blinkInterval&&(this.blinkInterval=a,this.restartTimer())},g.prototype.setSmoothBlinking=function(a){a!=this.smoothBlinking&&(this.smoothBlinking=a,o.setCssClass(this.element,"ace_smooth-blinking",a),this.$updateCursors(!0),this.restartTimer())},g.prototype.addCursor=function(){var a=o.createElement("div");return a.className="ace_cursor",this.element.appendChild(a),this.cursors.push(a),a},g.prototype.removeCursor=function(){if(this.cursors.length>1){var a=this.cursors.pop();return a.parentNode.removeChild(a),a}},g.prototype.hideCursor=function(){this.isVisible=!1,o.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},g.prototype.showCursor=function(){this.isVisible=!0,o.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},g.prototype.restartTimer=function(){var a=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,o.removeCssClass(this.element,"ace_smooth-blinking")),a(!0),!this.isBlinking||!this.blinkInterval||!this.isVisible){this.$stopCssAnimation();return}if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout((function(){this.$isSmoothBlinking&&o.addCssClass(this.element,"ace_smooth-blinking")}).bind(this))),o.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var p=(function(){this.timeoutId=setTimeout(function(){a(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){a(!0),p()},this.blinkInterval),p()}},g.prototype.getPixelPosition=function(a,p){if(!this.config||!this.session)return{left:0,top:0};a||(a=this.session.selection.getCursor());var s=this.session.documentToScreenPosition(a),i=this.$padding+(this.session.$bidiHandler.isBidiRow(s.row,a.row)?this.session.$bidiHandler.getPosLeft(s.column):s.column*this.config.characterWidth),u=(s.row-(p?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:i,top:u}},g.prototype.isCursorInView=function(a,p){return a.top>=0&&a.top<p.maxHeight},g.prototype.update=function(a){this.config=a;var p=this.session.$selectionMarkers,s=0,i=0;(p===void 0||p.length===0)&&(p=[{cursor:null}]);for(var s=0,u=p.length;s<u;s++){var h=this.getPixelPosition(p[s].cursor,!0);if(!((h.top>a.height+a.offset||h.top<0)&&s>1)){var c=this.cursors[i++]||this.addCursor(),f=c.style;this.drawCursor?this.drawCursor(c,h,a,p[s],this.session):this.isCursorInView(h,a)?(o.setStyle(f,"display","block"),o.translate(c,h.left,h.top),o.setStyle(f,"width",Math.round(a.characterWidth)+"px"),o.setStyle(f,"height",a.lineHeight+"px")):o.setStyle(f,"display","none")}}for(;this.cursors.length>i;)this.removeCursor();var m=this.session.getOverwrite();this.$setOverwrite(m),this.$pixelPos=h,this.restartTimer()},g.prototype.$setOverwrite=function(a){a!=this.overwrite&&(this.overwrite=a,a?o.addCssClass(this.element,"ace_overwrite-cursors"):o.removeCssClass(this.element,"ace_overwrite-cursors"))},g.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},g}();d.prototype.$padding=0,d.prototype.drawCursor=null,r.Cursor=d}),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 o=this&&this.__extends||function(){var c=function(f,m){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,y){v.__proto__=y}||function(v,y){for(var x in y)Object.prototype.hasOwnProperty.call(y,x)&&(v[x]=y[x])},c(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");c(f,m);function v(){this.constructor=f}f.prototype=m===null?Object.create(m):(v.prototype=m.prototype,new v)}}(),d=n("./lib/oop"),g=n("./lib/dom"),a=n("./lib/event"),p=n("./lib/event_emitter").EventEmitter,s=32768,i=function(){function c(f,m){this.element=g.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+m,this.inner=g.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),f.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,a.addListener(this.element,"scroll",this.onScroll.bind(this)),a.addListener(this.element,"mousedown",a.preventDefault)}return c.prototype.setVisible=function(f){this.element.style.display=f?"":"none",this.isVisible=f,this.coeff=1},c}();d.implement(i.prototype,p);var u=function(c){o(f,c);function f(m,v){var y=c.call(this,m,"-v")||this;return y.scrollTop=0,y.scrollHeight=0,v.$scrollbarWidth=y.width=g.scrollbarWidth(m.ownerDocument),y.inner.style.width=y.element.style.width=(y.width||15)+5+"px",y.$minWidth=0,y}return f.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var m=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-m)/(this.coeff-m)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},f.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},f.prototype.setHeight=function(m){this.element.style.height=m+"px"},f.prototype.setScrollHeight=function(m){this.scrollHeight=m,m>s?(this.coeff=s/m,m=s):this.coeff!=1&&(this.coeff=1),this.inner.style.height=m+"px"},f.prototype.setScrollTop=function(m){this.scrollTop!=m&&(this.skipEvent=!0,this.scrollTop=m,this.element.scrollTop=m*this.coeff)},f}(i);u.prototype.setInnerHeight=u.prototype.setScrollHeight;var h=function(c){o(f,c);function f(m,v){var y=c.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 f.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},f.prototype.getHeight=function(){return this.isVisible?this.height:0},f.prototype.setWidth=function(m){this.element.style.width=m+"px"},f.prototype.setInnerWidth=function(m){this.inner.style.width=m+"px"},f.prototype.setScrollWidth=function(m){this.inner.style.width=m+"px"},f.prototype.setScrollLeft=function(m){this.scrollLeft!=m&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=m)},f}(i);r.ScrollBar=u,r.ScrollBarV=u,r.ScrollBarH=h,r.VScrollBar=u,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 o=this&&this.__extends||function(){var h=function(c,f){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(c,f)};return function(c,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");h(c,f);function m(){this.constructor=c}c.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}}(),d=n("./lib/oop"),g=n("./lib/dom"),a=n("./lib/event"),p=n("./lib/event_emitter").EventEmitter;g.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{
|
1042
|
-
position: absolute;
|
1043
|
-
background: rgba(128, 128, 128, 0.6);
|
1044
|
-
-moz-box-sizing: border-box;
|
1045
|
-
box-sizing: border-box;
|
1046
|
-
border: 1px solid #bbb;
|
1047
|
-
border-radius: 2px;
|
1048
|
-
z-index: 8;
|
1049
|
-
}
|
1050
|
-
.ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {
|
1051
|
-
position: absolute;
|
1052
|
-
z-index: 6;
|
1053
|
-
background: none;
|
1054
|
-
overflow: hidden!important;
|
1055
|
-
}
|
1056
|
-
.ace_editor>.ace_sb-v {
|
1057
|
-
z-index: 6;
|
1058
|
-
right: 0;
|
1059
|
-
top: 0;
|
1060
|
-
width: 12px;
|
1061
|
-
}
|
1062
|
-
.ace_editor>.ace_sb-v div {
|
1063
|
-
z-index: 8;
|
1064
|
-
right: 0;
|
1065
|
-
width: 100%;
|
1066
|
-
}
|
1067
|
-
.ace_editor>.ace_sb-h {
|
1068
|
-
bottom: 0;
|
1069
|
-
left: 0;
|
1070
|
-
height: 12px;
|
1071
|
-
}
|
1072
|
-
.ace_editor>.ace_sb-h div {
|
1073
|
-
bottom: 0;
|
1074
|
-
height: 100%;
|
1075
|
-
}
|
1076
|
-
.ace_editor>.ace_sb_grabbed {
|
1077
|
-
z-index: 8;
|
1078
|
-
background: #000;
|
1079
|
-
}`,"ace_scrollbar.css",!1);var s=function(){function h(c,f){this.element=g.createElement("div"),this.element.className="ace_sb"+f,this.inner=g.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,c.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,a.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return h.prototype.setVisible=function(c){this.element.style.display=c?"":"none",this.isVisible=c,this.coeff=1},h}();d.implement(s.prototype,p);var i=function(h){o(c,h);function c(f,m){var v=h.call(this,f,"-v")||this;return v.scrollTop=0,v.scrollHeight=0,v.parent=f,v.width=v.VScrollWidth,v.renderer=m,v.inner.style.width=v.element.style.width=(v.width||15)+"px",v.$minWidth=0,v}return c.prototype.onMouseDown=function(f,m){if(f==="mousedown"&&!(a.getButton(m)!==0||m.detail===2)){if(m.target===this.inner){var v=this,y=m.clientY,x=function(M){y=M.clientY},$=function(){clearInterval(L)},_=m.clientY,b=this.thumbTop,A=function(){if(y!==void 0){var M=v.scrollTopFromThumbTop(b+y-_);M!==v.scrollTop&&v._emit("scroll",{data:M})}};a.capture(this.inner,x,$);var L=setInterval(A,20);return a.preventDefault(m)}var k=m.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(k)}),a.preventDefault(m)}},c.prototype.getHeight=function(){return this.height},c.prototype.scrollTopFromThumbTop=function(f){var m=f*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return m=m>>0,m<0?m=0:m>this.pageHeight-this.viewHeight&&(m=this.pageHeight-this.viewHeight),m},c.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},c.prototype.setHeight=function(f){this.height=Math.max(0,f),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},c.prototype.setScrollHeight=function(f,m){this.pageHeight===f&&!m||(this.pageHeight=f,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop})))},c.prototype.setScrollTop=function(f){this.scrollTop=f,f<0&&(f=0),this.thumbTop=f*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},c}(s);i.prototype.setInnerHeight=i.prototype.setScrollHeight;var u=function(h){o(c,h);function c(f,m){var v=h.call(this,f,"-h")||this;return v.scrollLeft=0,v.scrollWidth=0,v.height=v.HScrollHeight,v.inner.style.height=v.element.style.height=(v.height||12)+"px",v.renderer=m,v}return c.prototype.onMouseDown=function(f,m){if(f==="mousedown"&&!(a.getButton(m)!==0||m.detail===2)){if(m.target===this.inner){var v=this,y=m.clientX,x=function(M){y=M.clientX},$=function(){clearInterval(L)},_=m.clientX,b=this.thumbLeft,A=function(){if(y!==void 0){var M=v.scrollLeftFromThumbLeft(b+y-_);M!==v.scrollLeft&&v._emit("scroll",{data:M})}};a.capture(this.inner,x,$);var L=setInterval(A,20);return a.preventDefault(m)}var k=m.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(k)}),a.preventDefault(m)}},c.prototype.getHeight=function(){return this.isVisible?this.height:0},c.prototype.scrollLeftFromThumbLeft=function(f){var m=f*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return m=m>>0,m<0?m=0:m>this.pageWidth-this.viewWidth&&(m=this.pageWidth-this.viewWidth),m},c.prototype.setWidth=function(f){this.width=Math.max(0,f),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},c.prototype.setScrollWidth=function(f,m){this.pageWidth===f&&!m||(this.pageWidth=f,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft})))},c.prototype.setScrollLeft=function(f){this.scrollLeft=f,f<0&&(f=0),this.thumbLeft=f*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},c}(s);u.prototype.setInnerWidth=u.prototype.setScrollWidth,r.ScrollBar=i,r.ScrollBarV=i,r.ScrollBarH=u,r.VScrollBar=i,r.HScrollBar=u}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(n,r,l){var o=n("./lib/event"),d=function(){function g(a,p){this.onRender=a,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=p||window;var s=this;this._flush=function(i){s.pending=!1;var u=s.changes;if(u&&(o.blockIdle(100),s.changes=0,s.onRender(u)),s.changes){if(s.$recursionLimit--<0)return;s.schedule()}else s.$recursionLimit=2}}return g.prototype.schedule=function(a){this.changes=this.changes|a,this.changes&&!this.pending&&(o.nextFrame(this._flush),this.pending=!0)},g.prototype.clear=function(a){var p=this.changes;return this.changes=0,p},g}();r.RenderLoop=d}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(n,r,l){var o=n("../lib/oop"),d=n("../lib/dom"),g=n("../lib/lang"),a=n("../lib/event"),p=n("../lib/useragent"),s=n("../lib/event_emitter").EventEmitter,i=512,u=typeof ResizeObserver=="function",h=200,c=function(){function f(m){this.el=d.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=d.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=d.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),m.appendChild(this.el),this.$measureNode.textContent=g.stringRepeat("X",i),this.$characterSize={width:0,height:0},u?this.$addObserver():this.checkForSizeChanges()}return f.prototype.$setMeasureNodeStyles=function(m,v){m.width=m.height="auto",m.left=m.top="0px",m.visibility="hidden",m.position="absolute",m.whiteSpace="pre",p.isIE<8?m["font-family"]="inherit":m.font="inherit",m.overflow=v?"hidden":"visible"},f.prototype.checkForSizeChanges=function(m){if(m===void 0&&(m=this.$measureSizes()),m&&(this.$characterSize.width!==m.width||this.$characterSize.height!==m.height)){this.$measureNode.style.fontWeight="bold";var v=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=m,this.charSizes=Object.create(null),this.allowBoldFonts=v&&v.width===m.width&&v.height===m.height,this._emit("changeCharacterSize",{data:m})}},f.prototype.$addObserver=function(){var m=this;this.$observer=new window.ResizeObserver(function(v){m.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},f.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var m=this;return this.$pollSizeChangesTimer=a.onIdle(function v(){m.checkForSizeChanges(),a.onIdle(v,500)},500)},f.prototype.setPolling=function(m){m?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},f.prototype.$measureSizes=function(m){var v={height:(m||this.$measureNode).clientHeight,width:(m||this.$measureNode).clientWidth/i};return v.width===0||v.height===0?null:v},f.prototype.$measureCharWidth=function(m){this.$main.textContent=g.stringRepeat(m,i);var v=this.$main.getBoundingClientRect();return v.width/i},f.prototype.getCharacterWidth=function(m){var v=this.charSizes[m];return v===void 0&&(v=this.charSizes[m]=this.$measureCharWidth(m)/this.$characterSize.width),v},f.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},f.prototype.$getZoom=function(m){return!m||!m.parentElement?1:(window.getComputedStyle(m).zoom||1)*this.$getZoom(m.parentElement)},f.prototype.$initTransformMeasureNodes=function(){var m=function(v,y){return["div",{style:"position: absolute;top:"+v+"px;left:"+y+"px;"}]};this.els=d.buildDom([m(0,0),m(h,0),m(0,h),m(h,h)],this.el)},f.prototype.transformCoordinates=function(m,v){if(m){var y=this.$getZoom(this.el);m=b(1/y,m)}function x(P,H,V){var j=P[1]*H[0]-P[0]*H[1];return[(-H[1]*V[0]+H[0]*V[1])/j,(+P[1]*V[0]-P[0]*V[1])/j]}function $(P,H){return[P[0]-H[0],P[1]-H[1]]}function _(P,H){return[P[0]+H[0],P[1]+H[1]]}function b(P,H){return[P*H[0],P*H[1]]}this.els||this.$initTransformMeasureNodes();function A(P){var H=P.getBoundingClientRect();return[H.left,H.top]}var L=A(this.els[0]),k=A(this.els[1]),M=A(this.els[2]),C=A(this.els[3]),R=x($(C,k),$(C,M),$(_(k,M),_(C,L))),S=b(1+R[0],$(k,L)),w=b(1+R[1],$(M,L));if(v){var E=v,T=R[0]*E[0]/h+R[1]*E[1]/h+1,O=_(b(E[0],S),b(E[1],w));return _(b(1/T/h,O),L)}var I=$(m,L),N=x($(S,b(R[0],I)),$(w,b(R[1],I)),I);return b(h,N)},f}();c.prototype.$characterSize={width:0,height:0},o.implement(c.prototype,s),r.FontMetrics=c}),ace.define("ace/css/editor-css",["require","exports","module"],function(n,r,l){l.exports=`
|
1080
|
-
.ace_br1 {border-top-left-radius : 3px;}
|
1081
|
-
.ace_br2 {border-top-right-radius : 3px;}
|
1082
|
-
.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}
|
1083
|
-
.ace_br4 {border-bottom-right-radius: 3px;}
|
1084
|
-
.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}
|
1085
|
-
.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}
|
1086
|
-
.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}
|
1087
|
-
.ace_br8 {border-bottom-left-radius : 3px;}
|
1088
|
-
.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}
|
1089
|
-
.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}
|
1090
|
-
.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}
|
1091
|
-
.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
1092
|
-
.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
1093
|
-
.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
1094
|
-
.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
1095
|
-
|
1096
|
-
|
1097
|
-
.ace_editor {
|
1098
|
-
position: relative;
|
1099
|
-
overflow: hidden;
|
1100
|
-
padding: 0;
|
1101
|
-
font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace;
|
1102
|
-
direction: ltr;
|
1103
|
-
text-align: left;
|
1104
|
-
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
1105
|
-
}
|
1106
|
-
|
1107
|
-
.ace_scroller {
|
1108
|
-
position: absolute;
|
1109
|
-
overflow: hidden;
|
1110
|
-
top: 0;
|
1111
|
-
bottom: 0;
|
1112
|
-
background-color: inherit;
|
1113
|
-
-ms-user-select: none;
|
1114
|
-
-moz-user-select: none;
|
1115
|
-
-webkit-user-select: none;
|
1116
|
-
user-select: none;
|
1117
|
-
cursor: text;
|
1118
|
-
}
|
1119
|
-
|
1120
|
-
.ace_content {
|
1121
|
-
position: absolute;
|
1122
|
-
box-sizing: border-box;
|
1123
|
-
min-width: 100%;
|
1124
|
-
contain: style size layout;
|
1125
|
-
font-variant-ligatures: no-common-ligatures;
|
1126
|
-
}
|
1127
|
-
|
1128
|
-
.ace_keyboard-focus:focus {
|
1129
|
-
box-shadow: inset 0 0 0 2px #5E9ED6;
|
1130
|
-
outline: none;
|
1131
|
-
}
|
1132
|
-
|
1133
|
-
.ace_dragging .ace_scroller:before{
|
1134
|
-
position: absolute;
|
1135
|
-
top: 0;
|
1136
|
-
left: 0;
|
1137
|
-
right: 0;
|
1138
|
-
bottom: 0;
|
1139
|
-
content: '';
|
1140
|
-
background: rgba(250, 250, 250, 0.01);
|
1141
|
-
z-index: 1000;
|
1142
|
-
}
|
1143
|
-
.ace_dragging.ace_dark .ace_scroller:before{
|
1144
|
-
background: rgba(0, 0, 0, 0.01);
|
1145
|
-
}
|
1146
|
-
|
1147
|
-
.ace_gutter {
|
1148
|
-
position: absolute;
|
1149
|
-
overflow : hidden;
|
1150
|
-
width: auto;
|
1151
|
-
top: 0;
|
1152
|
-
bottom: 0;
|
1153
|
-
left: 0;
|
1154
|
-
cursor: default;
|
1155
|
-
z-index: 4;
|
1156
|
-
-ms-user-select: none;
|
1157
|
-
-moz-user-select: none;
|
1158
|
-
-webkit-user-select: none;
|
1159
|
-
user-select: none;
|
1160
|
-
contain: style size layout;
|
1161
|
-
}
|
1162
|
-
|
1163
|
-
.ace_gutter-active-line {
|
1164
|
-
position: absolute;
|
1165
|
-
left: 0;
|
1166
|
-
right: 0;
|
1167
|
-
}
|
1168
|
-
|
1169
|
-
.ace_scroller.ace_scroll-left:after {
|
1170
|
-
content: "";
|
1171
|
-
position: absolute;
|
1172
|
-
top: 0;
|
1173
|
-
right: 0;
|
1174
|
-
bottom: 0;
|
1175
|
-
left: 0;
|
1176
|
-
box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
|
1177
|
-
pointer-events: none;
|
1178
|
-
}
|
1179
|
-
|
1180
|
-
.ace_gutter-cell, .ace_gutter-cell_svg-icons {
|
1181
|
-
position: absolute;
|
1182
|
-
top: 0;
|
1183
|
-
left: 0;
|
1184
|
-
right: 0;
|
1185
|
-
padding-left: 19px;
|
1186
|
-
padding-right: 6px;
|
1187
|
-
background-repeat: no-repeat;
|
1188
|
-
}
|
1189
|
-
|
1190
|
-
.ace_gutter-cell_svg-icons .ace_gutter_annotation {
|
1191
|
-
margin-left: -14px;
|
1192
|
-
float: left;
|
1193
|
-
}
|
1194
|
-
|
1195
|
-
.ace_gutter-cell .ace_gutter_annotation {
|
1196
|
-
margin-left: -19px;
|
1197
|
-
float: left;
|
1198
|
-
}
|
1199
|
-
|
1200
|
-
.ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold {
|
1201
|
-
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==");
|
1202
|
-
background-repeat: no-repeat;
|
1203
|
-
background-position: 2px center;
|
1204
|
-
}
|
1205
|
-
|
1206
|
-
.ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {
|
1207
|
-
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==");
|
1208
|
-
background-repeat: no-repeat;
|
1209
|
-
background-position: 2px center;
|
1210
|
-
}
|
1211
|
-
|
1212
|
-
.ace_gutter-cell.ace_info, .ace_icon.ace_info {
|
1213
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");
|
1214
|
-
background-repeat: no-repeat;
|
1215
|
-
background-position: 2px center;
|
1216
|
-
}
|
1217
|
-
.ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info {
|
1218
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");
|
1219
|
-
}
|
1220
|
-
|
1221
|
-
.ace_icon_svg.ace_error {
|
1222
|
-
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");
|
1223
|
-
background-color: crimson;
|
1224
|
-
}
|
1225
|
-
.ace_icon_svg.ace_warning {
|
1226
|
-
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");
|
1227
|
-
background-color: darkorange;
|
1228
|
-
}
|
1229
|
-
.ace_icon_svg.ace_info {
|
1230
|
-
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");
|
1231
|
-
background-color: royalblue;
|
1232
|
-
}
|
1233
|
-
|
1234
|
-
.ace_icon_svg.ace_error_fold {
|
1235
|
-
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
|
1236
|
-
background-color: crimson;
|
1237
|
-
}
|
1238
|
-
.ace_icon_svg.ace_warning_fold {
|
1239
|
-
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");
|
1240
|
-
background-color: darkorange;
|
1241
|
-
}
|
1242
|
-
|
1243
|
-
.ace_scrollbar {
|
1244
|
-
contain: strict;
|
1245
|
-
position: absolute;
|
1246
|
-
right: 0;
|
1247
|
-
bottom: 0;
|
1248
|
-
z-index: 6;
|
1249
|
-
}
|
1250
|
-
|
1251
|
-
.ace_scrollbar-inner {
|
1252
|
-
position: absolute;
|
1253
|
-
cursor: text;
|
1254
|
-
left: 0;
|
1255
|
-
top: 0;
|
1256
|
-
}
|
1257
|
-
|
1258
|
-
.ace_scrollbar-v{
|
1259
|
-
overflow-x: hidden;
|
1260
|
-
overflow-y: scroll;
|
1261
|
-
top: 0;
|
1262
|
-
}
|
1263
|
-
|
1264
|
-
.ace_scrollbar-h {
|
1265
|
-
overflow-x: scroll;
|
1266
|
-
overflow-y: hidden;
|
1267
|
-
left: 0;
|
1268
|
-
}
|
1269
|
-
|
1270
|
-
.ace_print-margin {
|
1271
|
-
position: absolute;
|
1272
|
-
height: 100%;
|
1273
|
-
}
|
1274
|
-
|
1275
|
-
.ace_text-input {
|
1276
|
-
position: absolute;
|
1277
|
-
z-index: 0;
|
1278
|
-
width: 0.5em;
|
1279
|
-
height: 1em;
|
1280
|
-
opacity: 0;
|
1281
|
-
background: transparent;
|
1282
|
-
-moz-appearance: none;
|
1283
|
-
appearance: none;
|
1284
|
-
border: none;
|
1285
|
-
resize: none;
|
1286
|
-
outline: none;
|
1287
|
-
overflow: hidden;
|
1288
|
-
font: inherit;
|
1289
|
-
padding: 0 1px;
|
1290
|
-
margin: 0 -1px;
|
1291
|
-
contain: strict;
|
1292
|
-
-ms-user-select: text;
|
1293
|
-
-moz-user-select: text;
|
1294
|
-
-webkit-user-select: text;
|
1295
|
-
user-select: text;
|
1296
|
-
/*with \`pre-line\` chrome inserts instead of space*/
|
1297
|
-
white-space: pre!important;
|
1298
|
-
}
|
1299
|
-
.ace_text-input.ace_composition {
|
1300
|
-
background: transparent;
|
1301
|
-
color: inherit;
|
1302
|
-
z-index: 1000;
|
1303
|
-
opacity: 1;
|
1304
|
-
}
|
1305
|
-
.ace_composition_placeholder { color: transparent }
|
1306
|
-
.ace_composition_marker {
|
1307
|
-
border-bottom: 1px solid;
|
1308
|
-
position: absolute;
|
1309
|
-
border-radius: 0;
|
1310
|
-
margin-top: 1px;
|
1311
|
-
}
|
1312
|
-
|
1313
|
-
[ace_nocontext=true] {
|
1314
|
-
transform: none!important;
|
1315
|
-
filter: none!important;
|
1316
|
-
clip-path: none!important;
|
1317
|
-
mask : none!important;
|
1318
|
-
contain: none!important;
|
1319
|
-
perspective: none!important;
|
1320
|
-
mix-blend-mode: initial!important;
|
1321
|
-
z-index: auto;
|
1322
|
-
}
|
1323
|
-
|
1324
|
-
.ace_layer {
|
1325
|
-
z-index: 1;
|
1326
|
-
position: absolute;
|
1327
|
-
overflow: hidden;
|
1328
|
-
/* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/
|
1329
|
-
word-wrap: normal;
|
1330
|
-
white-space: pre;
|
1331
|
-
height: 100%;
|
1332
|
-
width: 100%;
|
1333
|
-
box-sizing: border-box;
|
1334
|
-
/* setting pointer-events: auto; on node under the mouse, which changes
|
1335
|
-
during scroll, will break mouse wheel scrolling in Safari */
|
1336
|
-
pointer-events: none;
|
1337
|
-
}
|
1338
|
-
|
1339
|
-
.ace_gutter-layer {
|
1340
|
-
position: relative;
|
1341
|
-
width: auto;
|
1342
|
-
text-align: right;
|
1343
|
-
pointer-events: auto;
|
1344
|
-
height: 1000000px;
|
1345
|
-
contain: style size layout;
|
1346
|
-
}
|
1347
|
-
|
1348
|
-
.ace_text-layer {
|
1349
|
-
font: inherit !important;
|
1350
|
-
position: absolute;
|
1351
|
-
height: 1000000px;
|
1352
|
-
width: 1000000px;
|
1353
|
-
contain: style size layout;
|
1354
|
-
}
|
1355
|
-
|
1356
|
-
.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {
|
1357
|
-
contain: style size layout;
|
1358
|
-
position: absolute;
|
1359
|
-
top: 0;
|
1360
|
-
left: 0;
|
1361
|
-
right: 0;
|
1362
|
-
}
|
1363
|
-
|
1364
|
-
.ace_hidpi .ace_text-layer,
|
1365
|
-
.ace_hidpi .ace_gutter-layer,
|
1366
|
-
.ace_hidpi .ace_content,
|
1367
|
-
.ace_hidpi .ace_gutter {
|
1368
|
-
contain: strict;
|
1369
|
-
}
|
1370
|
-
.ace_hidpi .ace_text-layer > .ace_line,
|
1371
|
-
.ace_hidpi .ace_text-layer > .ace_line_group {
|
1372
|
-
contain: strict;
|
1373
|
-
}
|
1374
|
-
|
1375
|
-
.ace_cjk {
|
1376
|
-
display: inline-block;
|
1377
|
-
text-align: center;
|
1378
|
-
}
|
1379
|
-
|
1380
|
-
.ace_cursor-layer {
|
1381
|
-
z-index: 4;
|
1382
|
-
}
|
1383
|
-
|
1384
|
-
.ace_cursor {
|
1385
|
-
z-index: 4;
|
1386
|
-
position: absolute;
|
1387
|
-
box-sizing: border-box;
|
1388
|
-
border-left: 2px solid;
|
1389
|
-
/* workaround for smooth cursor repaintng whole screen in chrome */
|
1390
|
-
transform: translatez(0);
|
1391
|
-
}
|
1392
|
-
|
1393
|
-
.ace_multiselect .ace_cursor {
|
1394
|
-
border-left-width: 1px;
|
1395
|
-
}
|
1396
|
-
|
1397
|
-
.ace_slim-cursors .ace_cursor {
|
1398
|
-
border-left-width: 1px;
|
1399
|
-
}
|
1400
|
-
|
1401
|
-
.ace_overwrite-cursors .ace_cursor {
|
1402
|
-
border-left-width: 0;
|
1403
|
-
border-bottom: 1px solid;
|
1404
|
-
}
|
1405
|
-
|
1406
|
-
.ace_hidden-cursors .ace_cursor {
|
1407
|
-
opacity: 0.2;
|
1408
|
-
}
|
1409
|
-
|
1410
|
-
.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {
|
1411
|
-
opacity: 0;
|
1412
|
-
}
|
1413
|
-
|
1414
|
-
.ace_smooth-blinking .ace_cursor {
|
1415
|
-
transition: opacity 0.18s;
|
1416
|
-
}
|
1417
|
-
|
1418
|
-
.ace_animate-blinking .ace_cursor {
|
1419
|
-
animation-duration: 1000ms;
|
1420
|
-
animation-timing-function: step-end;
|
1421
|
-
animation-name: blink-ace-animate;
|
1422
|
-
animation-iteration-count: infinite;
|
1423
|
-
}
|
1424
|
-
|
1425
|
-
.ace_animate-blinking.ace_smooth-blinking .ace_cursor {
|
1426
|
-
animation-duration: 1000ms;
|
1427
|
-
animation-timing-function: ease-in-out;
|
1428
|
-
animation-name: blink-ace-animate-smooth;
|
1429
|
-
}
|
1430
|
-
|
1431
|
-
@keyframes blink-ace-animate {
|
1432
|
-
from, to { opacity: 1; }
|
1433
|
-
60% { opacity: 0; }
|
1434
|
-
}
|
1435
|
-
|
1436
|
-
@keyframes blink-ace-animate-smooth {
|
1437
|
-
from, to { opacity: 1; }
|
1438
|
-
45% { opacity: 1; }
|
1439
|
-
60% { opacity: 0; }
|
1440
|
-
85% { opacity: 0; }
|
1441
|
-
}
|
1442
|
-
|
1443
|
-
.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {
|
1444
|
-
position: absolute;
|
1445
|
-
z-index: 3;
|
1446
|
-
}
|
1447
|
-
|
1448
|
-
.ace_marker-layer .ace_selection {
|
1449
|
-
position: absolute;
|
1450
|
-
z-index: 5;
|
1451
|
-
}
|
1452
|
-
|
1453
|
-
.ace_marker-layer .ace_bracket {
|
1454
|
-
position: absolute;
|
1455
|
-
z-index: 6;
|
1456
|
-
}
|
1457
|
-
|
1458
|
-
.ace_marker-layer .ace_error_bracket {
|
1459
|
-
position: absolute;
|
1460
|
-
border-bottom: 1px solid #DE5555;
|
1461
|
-
border-radius: 0;
|
1462
|
-
}
|
1463
|
-
|
1464
|
-
.ace_marker-layer .ace_active-line {
|
1465
|
-
position: absolute;
|
1466
|
-
z-index: 2;
|
1467
|
-
}
|
1468
|
-
|
1469
|
-
.ace_marker-layer .ace_selected-word {
|
1470
|
-
position: absolute;
|
1471
|
-
z-index: 4;
|
1472
|
-
box-sizing: border-box;
|
1473
|
-
}
|
1474
|
-
|
1475
|
-
.ace_line .ace_fold {
|
1476
|
-
box-sizing: border-box;
|
1477
|
-
|
1478
|
-
display: inline-block;
|
1479
|
-
height: 11px;
|
1480
|
-
margin-top: -2px;
|
1481
|
-
vertical-align: middle;
|
1482
|
-
|
1483
|
-
background-image:
|
1484
|
-
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
|
1485
|
-
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");
|
1486
|
-
background-repeat: no-repeat, repeat-x;
|
1487
|
-
background-position: center center, top left;
|
1488
|
-
color: transparent;
|
1489
|
-
|
1490
|
-
border: 1px solid black;
|
1491
|
-
border-radius: 2px;
|
1492
|
-
|
1493
|
-
cursor: pointer;
|
1494
|
-
pointer-events: auto;
|
1495
|
-
}
|
1496
|
-
|
1497
|
-
.ace_dark .ace_fold {
|
1498
|
-
}
|
1499
|
-
|
1500
|
-
.ace_fold:hover{
|
1501
|
-
background-image:
|
1502
|
-
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
|
1503
|
-
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");
|
1504
|
-
}
|
1505
|
-
|
1506
|
-
.ace_tooltip {
|
1507
|
-
background-color: #f5f5f5;
|
1508
|
-
border: 1px solid gray;
|
1509
|
-
border-radius: 1px;
|
1510
|
-
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
|
1511
|
-
color: black;
|
1512
|
-
max-width: 100%;
|
1513
|
-
padding: 3px 4px;
|
1514
|
-
position: fixed;
|
1515
|
-
z-index: 999999;
|
1516
|
-
box-sizing: border-box;
|
1517
|
-
cursor: default;
|
1518
|
-
white-space: pre-wrap;
|
1519
|
-
word-wrap: break-word;
|
1520
|
-
line-height: normal;
|
1521
|
-
font-style: normal;
|
1522
|
-
font-weight: normal;
|
1523
|
-
letter-spacing: normal;
|
1524
|
-
pointer-events: none;
|
1525
|
-
overflow: auto;
|
1526
|
-
max-width: min(60em, 66vw);
|
1527
|
-
overscroll-behavior: contain;
|
1528
|
-
}
|
1529
|
-
.ace_tooltip pre {
|
1530
|
-
white-space: pre-wrap;
|
1531
|
-
}
|
1532
|
-
|
1533
|
-
.ace_tooltip.ace_dark {
|
1534
|
-
background-color: #636363;
|
1535
|
-
color: #fff;
|
1536
|
-
}
|
1537
|
-
|
1538
|
-
.ace_tooltip:focus {
|
1539
|
-
outline: 1px solid #5E9ED6;
|
1540
|
-
}
|
1541
|
-
|
1542
|
-
.ace_icon {
|
1543
|
-
display: inline-block;
|
1544
|
-
width: 18px;
|
1545
|
-
vertical-align: top;
|
1546
|
-
}
|
1547
|
-
|
1548
|
-
.ace_icon_svg {
|
1549
|
-
display: inline-block;
|
1550
|
-
width: 12px;
|
1551
|
-
vertical-align: top;
|
1552
|
-
-webkit-mask-repeat: no-repeat;
|
1553
|
-
-webkit-mask-size: 12px;
|
1554
|
-
-webkit-mask-position: center;
|
1555
|
-
}
|
1556
|
-
|
1557
|
-
.ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {
|
1558
|
-
padding-right: 13px;
|
1559
|
-
}
|
1560
|
-
|
1561
|
-
.ace_fold-widget {
|
1562
|
-
box-sizing: border-box;
|
1563
|
-
|
1564
|
-
margin: 0 -12px 0 1px;
|
1565
|
-
display: none;
|
1566
|
-
width: 11px;
|
1567
|
-
vertical-align: top;
|
1568
|
-
|
1569
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");
|
1570
|
-
background-repeat: no-repeat;
|
1571
|
-
background-position: center;
|
1572
|
-
|
1573
|
-
border-radius: 3px;
|
1574
|
-
|
1575
|
-
border: 1px solid transparent;
|
1576
|
-
cursor: pointer;
|
1577
|
-
}
|
1578
|
-
|
1579
|
-
.ace_folding-enabled .ace_fold-widget {
|
1580
|
-
display: inline-block;
|
1581
|
-
}
|
1582
|
-
|
1583
|
-
.ace_fold-widget.ace_end {
|
1584
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");
|
1585
|
-
}
|
1586
|
-
|
1587
|
-
.ace_fold-widget.ace_closed {
|
1588
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");
|
1589
|
-
}
|
1590
|
-
|
1591
|
-
.ace_fold-widget:hover {
|
1592
|
-
border: 1px solid rgba(0, 0, 0, 0.3);
|
1593
|
-
background-color: rgba(255, 255, 255, 0.2);
|
1594
|
-
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
|
1595
|
-
}
|
1596
|
-
|
1597
|
-
.ace_fold-widget:active {
|
1598
|
-
border: 1px solid rgba(0, 0, 0, 0.4);
|
1599
|
-
background-color: rgba(0, 0, 0, 0.05);
|
1600
|
-
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
|
1601
|
-
}
|
1602
|
-
/**
|
1603
|
-
* Dark version for fold widgets
|
1604
|
-
*/
|
1605
|
-
.ace_dark .ace_fold-widget {
|
1606
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");
|
1607
|
-
}
|
1608
|
-
.ace_dark .ace_fold-widget.ace_end {
|
1609
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");
|
1610
|
-
}
|
1611
|
-
.ace_dark .ace_fold-widget.ace_closed {
|
1612
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");
|
1613
|
-
}
|
1614
|
-
.ace_dark .ace_fold-widget:hover {
|
1615
|
-
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
|
1616
|
-
background-color: rgba(255, 255, 255, 0.1);
|
1617
|
-
}
|
1618
|
-
.ace_dark .ace_fold-widget:active {
|
1619
|
-
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
|
1620
|
-
}
|
1621
|
-
|
1622
|
-
.ace_inline_button {
|
1623
|
-
border: 1px solid lightgray;
|
1624
|
-
display: inline-block;
|
1625
|
-
margin: -1px 8px;
|
1626
|
-
padding: 0 5px;
|
1627
|
-
pointer-events: auto;
|
1628
|
-
cursor: pointer;
|
1629
|
-
}
|
1630
|
-
.ace_inline_button:hover {
|
1631
|
-
border-color: gray;
|
1632
|
-
background: rgba(200,200,200,0.2);
|
1633
|
-
display: inline-block;
|
1634
|
-
pointer-events: auto;
|
1635
|
-
}
|
1636
|
-
|
1637
|
-
.ace_fold-widget.ace_invalid {
|
1638
|
-
background-color: #FFB4B4;
|
1639
|
-
border-color: #DE5555;
|
1640
|
-
}
|
1641
|
-
|
1642
|
-
.ace_fade-fold-widgets .ace_fold-widget {
|
1643
|
-
transition: opacity 0.4s ease 0.05s;
|
1644
|
-
opacity: 0;
|
1645
|
-
}
|
1646
|
-
|
1647
|
-
.ace_fade-fold-widgets:hover .ace_fold-widget {
|
1648
|
-
transition: opacity 0.05s ease 0.05s;
|
1649
|
-
opacity:1;
|
1650
|
-
}
|
1651
|
-
|
1652
|
-
.ace_underline {
|
1653
|
-
text-decoration: underline;
|
1654
|
-
}
|
1655
|
-
|
1656
|
-
.ace_bold {
|
1657
|
-
font-weight: bold;
|
1658
|
-
}
|
1659
|
-
|
1660
|
-
.ace_nobold .ace_bold {
|
1661
|
-
font-weight: normal;
|
1662
|
-
}
|
1663
|
-
|
1664
|
-
.ace_italic {
|
1665
|
-
font-style: italic;
|
1666
|
-
}
|
1667
|
-
|
1668
|
-
|
1669
|
-
.ace_error-marker {
|
1670
|
-
background-color: rgba(255, 0, 0,0.2);
|
1671
|
-
position: absolute;
|
1672
|
-
z-index: 9;
|
1673
|
-
}
|
1674
|
-
|
1675
|
-
.ace_highlight-marker {
|
1676
|
-
background-color: rgba(255, 255, 0,0.2);
|
1677
|
-
position: absolute;
|
1678
|
-
z-index: 8;
|
1679
|
-
}
|
1680
|
-
|
1681
|
-
.ace_mobile-menu {
|
1682
|
-
position: absolute;
|
1683
|
-
line-height: 1.5;
|
1684
|
-
border-radius: 4px;
|
1685
|
-
-ms-user-select: none;
|
1686
|
-
-moz-user-select: none;
|
1687
|
-
-webkit-user-select: none;
|
1688
|
-
user-select: none;
|
1689
|
-
background: white;
|
1690
|
-
box-shadow: 1px 3px 2px grey;
|
1691
|
-
border: 1px solid #dcdcdc;
|
1692
|
-
color: black;
|
1693
|
-
}
|
1694
|
-
.ace_dark > .ace_mobile-menu {
|
1695
|
-
background: #333;
|
1696
|
-
color: #ccc;
|
1697
|
-
box-shadow: 1px 3px 2px grey;
|
1698
|
-
border: 1px solid #444;
|
1699
|
-
|
1700
|
-
}
|
1701
|
-
.ace_mobile-button {
|
1702
|
-
padding: 2px;
|
1703
|
-
cursor: pointer;
|
1704
|
-
overflow: hidden;
|
1705
|
-
}
|
1706
|
-
.ace_mobile-button:hover {
|
1707
|
-
background-color: #eee;
|
1708
|
-
opacity:1;
|
1709
|
-
}
|
1710
|
-
.ace_mobile-button:active {
|
1711
|
-
background-color: #ddd;
|
1712
|
-
}
|
1713
|
-
|
1714
|
-
.ace_placeholder {
|
1715
|
-
font-family: arial;
|
1716
|
-
transform: scale(0.9);
|
1717
|
-
transform-origin: left;
|
1718
|
-
white-space: pre;
|
1719
|
-
opacity: 0.7;
|
1720
|
-
margin: 0 10px;
|
1721
|
-
}
|
1722
|
-
|
1723
|
-
.ace_ghost_text {
|
1724
|
-
opacity: 0.5;
|
1725
|
-
font-style: italic;
|
1726
|
-
white-space: pre;
|
1727
|
-
}
|
1728
|
-
|
1729
|
-
.ace_screenreader-only {
|
1730
|
-
position:absolute;
|
1731
|
-
left:-10000px;
|
1732
|
-
top:auto;
|
1733
|
-
width:1px;
|
1734
|
-
height:1px;
|
1735
|
-
overflow:hidden;
|
1736
|
-
}`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(n,r,l){var o=n("../lib/dom"),d=n("../lib/oop"),g=n("../lib/event_emitter").EventEmitter,a=function(){function p(s,i){this.canvas=o.createElement("canvas"),this.renderer=i,this.pixelRatio=1,this.maxHeight=i.layerConfig.maxHeight,this.lineHeight=i.layerConfig.lineHeight,this.canvasHeight=s.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=s.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)"},s.element.appendChild(this.canvas)}return p.prototype.$updateDecorators=function(s){var i=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;if(s){this.maxHeight=s.maxHeight,this.lineHeight=s.lineHeight,this.canvasHeight=s.height;var u=(s.lastRow+1)*this.lineHeight;u<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight}var h=this.canvas.getContext("2d");function c(C,R){return C.priority<R.priority?-1:C.priority>R.priority?1:0}var f=this.renderer.session.$annotations;if(h.clearRect(0,0,this.canvas.width,this.canvas.height),f){var m={info:1,warning:2,error:3};f.forEach(function(C){C.priority=m[C.type]||null}),f=f.sort(c);for(var v=this.renderer.session.$foldData,y=0;y<f.length;y++){var x=f[y].row,$=this.compensateFoldRows(x,v),_=Math.round((x-$)*this.lineHeight*this.heightRatio),b=Math.round((x-$)*this.lineHeight*this.heightRatio),A=Math.round(((x-$)*this.lineHeight+this.lineHeight)*this.heightRatio),L=A-b;if(L<this.minDecorationHeight){var k=(b+A)/2|0;k<this.halfMinDecorationHeight?k=this.halfMinDecorationHeight:k+this.halfMinDecorationHeight>this.canvasHeight&&(k=this.canvasHeight-this.halfMinDecorationHeight),b=Math.round(k-this.halfMinDecorationHeight),A=Math.round(k+this.halfMinDecorationHeight)}h.fillStyle=i[f[y].type]||null,h.fillRect(0,_,this.canvasWidth,A-b)}}var M=this.renderer.session.selection.getCursor();if(M){var $=this.compensateFoldRows(M.row,v),_=Math.round((M.row-$)*this.lineHeight*this.heightRatio);h.fillStyle="rgba(0, 0, 0, 0.5)",h.fillRect(0,_,this.canvasWidth,2)}},p.prototype.compensateFoldRows=function(s,i){var u=0;if(i&&i.length>0)for(var h=0;h<i.length;h++)s>i[h].start.row&&s<i[h].end.row?u+=s-i[h].start.row:s>=i[h].end.row&&(u+=i[h].end.row-i[h].start.row);return u},p}();d.implement(a.prototype,g),r.Decorator=a}),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 o=n("./lib/oop"),d=n("./lib/dom"),g=n("./lib/lang"),a=n("./config"),p=n("./layer/gutter").Gutter,s=n("./layer/marker").Marker,i=n("./layer/text").Text,u=n("./layer/cursor").Cursor,h=n("./scrollbar").HScrollBar,c=n("./scrollbar").VScrollBar,f=n("./scrollbar_custom").HScrollBar,m=n("./scrollbar_custom").VScrollBar,v=n("./renderloop").RenderLoop,y=n("./layer/font_metrics").FontMetrics,x=n("./lib/event_emitter").EventEmitter,$=n("./css/editor-css"),_=n("./layer/decorators").Decorator,b=n("./lib/useragent");d.importCssString($,"ace_editor.css",!1);var A=function(){function L(k,M){var C=this;this.container=k||d.createElement("div"),d.addCssClass(this.container,"ace_editor"),d.HI_DPI&&d.addCssClass(this.container,"ace_hidpi"),this.setTheme(M),a.get("useStrictCSP")==null&&a.set("useStrictCSP",!1),this.$gutter=d.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden","true"),this.scroller=d.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=d.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new p(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new s(this.content);var R=this.$textLayer=new i(this.content);this.canvas=R.element,this.$markerFront=new s(this.content),this.$cursorLayer=new u(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new c(this.container,this),this.scrollBarH=new h(this.container,this),this.scrollBarV.on("scroll",function(S){C.$scrollAnimation||C.session.setScrollTop(S.data-C.scrollMargin.top)}),this.scrollBarH.on("scroll",function(S){C.$scrollAnimation||C.session.setScrollLeft(S.data-C.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(S){C.updateCharacterSize(),C.onResize(!0,C.gutterWidth,C.$size.width,C.$size.height),C._signal("changeCharacterSize",S)}),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(),a.resetOptions(this),a._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(),d.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},L.prototype.setSession=function(k){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=k,k&&this.scrollMargin.top&&k.getScrollTop()<=0&&k.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(k),this.$markerBack.setSession(k),this.$markerFront.setSession(k),this.$gutterLayer.setSession(k),this.$textLayer.setSession(k),k&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},L.prototype.updateLines=function(k,M,C){if(M===void 0&&(M=1/0),this.$changedLines?(this.$changedLines.firstRow>k&&(this.$changedLines.firstRow=k),this.$changedLines.lastRow<M&&(this.$changedLines.lastRow=M)):this.$changedLines={firstRow:k,lastRow:M},this.$changedLines.lastRow<this.layerConfig.firstRow)if(C)this.$changedLines.lastRow=this.layerConfig.lastRow;else return;this.$changedLines.firstRow>this.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(k){k?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(k,M,C,R){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=k?1:0;var S=this.container;R||(R=S.clientHeight||S.scrollHeight),C||(C=S.clientWidth||S.scrollWidth);var w=this.$updateCachedSize(k,M,C,R);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!C&&!R)return this.resizing=0;k&&(this.$gutterLayer.$padding=null),k?this.$renderChanges(w|this.$changes,!0):this.$loop.schedule(w|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},L.prototype.$updateCachedSize=function(k,M,C,R){R-=this.$extraHeight||0;var S=0,w=this.$size,E={width:w.width,height:w.height,scrollerHeight:w.scrollerHeight,scrollerWidth:w.scrollerWidth};if(R&&(k||w.height!=R)&&(w.height=R,S|=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",S=S|this.CHANGE_SCROLL),C&&(k||w.width!=C)){S|=this.CHANGE_SIZE,w.width=C,M==null&&(M=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=M,d.setStyle(this.scrollBarH.element.style,"left",M+"px"),d.setStyle(this.scroller.style,"left",M+this.margin.left+"px"),w.scrollerWidth=Math.max(0,C-M-this.scrollBarV.getWidth()-this.margin.h),d.setStyle(this.$gutter.style,"left",this.margin.left+"px");var T=this.scrollBarV.getWidth()+"px";d.setStyle(this.scrollBarH.element.style,"right",T),d.setStyle(this.scroller.style,"right",T),d.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(w.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||k)&&(S|=this.CHANGE_FULL)}return w.$dirty=!C||!R,S&&this._signal("resize",E),S},L.prototype.onGutterResize=function(k){var M=this.$showGutter?k:0;M!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,M,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},L.prototype.adjustWrapLimit=function(){var k=this.$size.scrollerWidth-this.$padding*2,M=Math.floor(k/this.characterWidth);return this.session.adjustWrapLimit(M,this.$showPrintMargin&&this.$printMarginColumn)},L.prototype.setAnimatedScroll=function(k){this.setOption("animatedScroll",k)},L.prototype.getAnimatedScroll=function(){return this.$animatedScroll},L.prototype.setShowInvisibles=function(k){this.setOption("showInvisibles",k),this.session.$bidiHandler.setShowInvisibles(k)},L.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},L.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},L.prototype.setDisplayIndentGuides=function(k){this.setOption("displayIndentGuides",k)},L.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},L.prototype.setHighlightIndentGuides=function(k){this.setOption("highlightIndentGuides",k)},L.prototype.setShowPrintMargin=function(k){this.setOption("showPrintMargin",k)},L.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},L.prototype.setPrintMarginColumn=function(k){this.setOption("printMarginColumn",k)},L.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},L.prototype.getShowGutter=function(){return this.getOption("showGutter")},L.prototype.setShowGutter=function(k){return this.setOption("showGutter",k)},L.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},L.prototype.setFadeFoldWidgets=function(k){this.setOption("fadeFoldWidgets",k)},L.prototype.setHighlightGutterLine=function(k){this.setOption("highlightGutterLine",k)},L.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},L.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var k=d.createElement("div");k.className="ace_layer ace_print-margin-layer",this.$printMarginEl=d.createElement("div"),this.$printMarginEl.className="ace_print-margin",k.appendChild(this.$printMarginEl),this.content.insertBefore(k,this.content.firstChild)}var M=this.$printMarginEl.style;M.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",M.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},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 k=this.textarea.style,M=this.$composition;if(!this.$keepTextAreaAtCursor&&!M){d.translate(this.textarea,-100,0);return}var C=this.$cursorLayer.$pixelPos;if(C){M&&M.markerRange&&(C=this.$cursorLayer.getPixelPosition(M.markerRange.start,!0));var R=this.layerConfig,S=C.top,w=C.left;S-=R.offset;var E=M&&M.useTextareaForIME||b.isMobile?this.lineHeight:1;if(S<0||S>R.height-E){d.translate(this.textarea,0,0);return}var T=1,O=this.$size.height-E;if(!M)S+=this.lineHeight;else if(M.useTextareaForIME){var I=this.textarea.value;T=this.characterWidth*this.session.$getStringScreenWidth(I)[0]}else S+=this.lineHeight+2;w-=this.scrollLeft,w>this.$size.scrollerWidth-T&&(w=this.$size.scrollerWidth-T),w+=this.gutterWidth+this.margin.left,d.setStyle(k,"height",E+"px"),d.setStyle(k,"width",T+"px"),d.translate(this.textarea,Math.min(w,this.$size.scrollerWidth-T),Math.min(S,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 k=this.layerConfig,M=k.lastRow,C=this.session.documentToScreenRow(M,0)*k.lineHeight;return C-this.session.getScrollTop()>k.height-k.lineHeight?M-1:M},L.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},L.prototype.setPadding=function(k){this.$padding=k,this.$textLayer.setPadding(k),this.$cursorLayer.setPadding(k),this.$markerFront.setPadding(k),this.$markerBack.setPadding(k),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},L.prototype.setScrollMargin=function(k,M,C,R){var S=this.scrollMargin;S.top=k|0,S.bottom=M|0,S.right=R|0,S.left=C|0,S.v=S.top+S.bottom,S.h=S.left+S.right,S.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-S.top),this.updateFull()},L.prototype.setMargin=function(k,M,C,R){var S=this.margin;S.top=k|0,S.bottom=M|0,S.right=R|0,S.left=C|0,S.v=S.top+S.bottom,S.h=S.left+S.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(k){this.setOption("hScrollBarAlwaysVisible",k)},L.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},L.prototype.setVScrollBarAlwaysVisible=function(k){this.setOption("vScrollBarAlwaysVisible",k)},L.prototype.$updateScrollBarV=function(){var k=this.layerConfig.maxHeight,M=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(k-=(M-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>k-M&&(k=this.scrollTop+M,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(k+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},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(k,M){if(this.$changes&&(k|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!k&&!M){this.$changes|=k;return}if(this.$size.$dirty)return this.$changes|=k,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",k),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var C=this.layerConfig;if(k&this.CHANGE_FULL||k&this.CHANGE_SIZE||k&this.CHANGE_TEXT||k&this.CHANGE_LINES||k&this.CHANGE_SCROLL||k&this.CHANGE_H_SCROLL){if(k|=this.$computeLayerConfig()|this.$loop.clear(),C.firstRow!=this.layerConfig.firstRow&&C.firstRowScreen==this.layerConfig.firstRowScreen){var R=this.scrollTop+(C.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;R>0&&(this.scrollTop=R,k=k|this.CHANGE_SCROLL,k|=this.$computeLayerConfig()|this.$loop.clear())}C=this.layerConfig,this.$updateScrollBarV(),k&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),d.translate(this.content,-this.scrollLeft,-C.offset);var S=C.width+2*this.$padding+"px",w=C.minHeight+"px";d.setStyle(this.content.style,"width",S),d.setStyle(this.content.style,"height",w)}if(k&this.CHANGE_H_SCROLL&&(d.translate(this.content,-this.scrollLeft,-C.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),k&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(C),this.$showGutter&&this.$gutterLayer.update(C),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(C),this.$markerBack.update(C),this.$markerFront.update(C),this.$cursorLayer.update(C),this.$moveTextAreaToCursor(),this._signal("afterRender",k);return}if(k&this.CHANGE_SCROLL){this.$changedLines=null,k&this.CHANGE_TEXT||k&this.CHANGE_LINES?this.$textLayer.update(C):this.$textLayer.scrollLines(C),this.$showGutter&&(k&this.CHANGE_GUTTER||k&this.CHANGE_LINES?this.$gutterLayer.update(C):this.$gutterLayer.scrollLines(C)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(C),this.$markerBack.update(C),this.$markerFront.update(C),this.$cursorLayer.update(C),this.$moveTextAreaToCursor(),this._signal("afterRender",k);return}k&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(C),this.$showGutter&&this.$gutterLayer.update(C),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(C)):k&this.CHANGE_LINES?((this.$updateLines()||k&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(C),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(C)):k&this.CHANGE_TEXT||k&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(C),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(C)):k&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(C),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(C)),k&this.CHANGE_CURSOR&&(this.$cursorLayer.update(C),this.$moveTextAreaToCursor()),k&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(C),k&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(C),this._signal("afterRender",k)},L.prototype.$autosize=function(){var k=this.session.getScreenLength()*this.lineHeight,M=this.$maxLines*this.lineHeight,C=Math.min(M,Math.max((this.$minLines||1)*this.lineHeight,k))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(C+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&C>this.$maxPixelHeight&&(C=this.$maxPixelHeight);var R=C<=2*this.lineHeight,S=!R&&k>M;if(C!=this.desiredHeight||this.$size.height!=this.desiredHeight||S!=this.$vScroll){S!=this.$vScroll&&(this.$vScroll=S,this.scrollBarV.setVisible(S));var w=this.container.clientWidth;this.container.style.height=C+"px",this.$updateCachedSize(!0,this.$gutterWidth,w,C),this.desiredHeight=C,this._signal("autosize")}},L.prototype.$computeLayerConfig=function(){var k=this.session,M=this.$size,C=M.height<=2*this.lineHeight,R=this.session.getScreenLength(),S=R*this.lineHeight,w=this.$getLongestLine(),E=!C&&(this.$hScrollBarAlwaysVisible||M.scrollerWidth-w-2*this.$padding<0),T=this.$horizScroll!==E;T&&(this.$horizScroll=E,this.scrollBarH.setVisible(E));var O=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var I=M.scrollerHeight+this.lineHeight,N=!this.$maxLines&&this.$scrollPastEnd?(M.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;S+=N;var P=this.scrollMargin;this.session.setScrollTop(Math.max(-P.top,Math.min(this.scrollTop,S-M.scrollerHeight+P.bottom))),this.session.setScrollLeft(Math.max(-P.left,Math.min(this.scrollLeft,w+2*this.$padding-M.scrollerWidth+P.right)));var H=!C&&(this.$vScrollBarAlwaysVisible||M.scrollerHeight-S+N<0||this.scrollTop>P.top),V=O!==H;V&&(this.$vScroll=H,this.scrollBarV.setVisible(H));var j=this.scrollTop%this.lineHeight,B=Math.ceil(I/this.lineHeight)-1,U=Math.max(0,Math.round((this.scrollTop-j)/this.lineHeight)),q=U+B,z,Z,Y=this.lineHeight;U=k.screenToDocumentRow(U,0);var Q=k.getFoldLine(U);Q&&(U=Q.start.row),z=k.documentToScreenRow(U,0),Z=k.getRowLength(U)*Y,q=Math.min(k.screenToDocumentRow(q,0),k.getLength()-1),I=M.scrollerHeight+k.getRowLength(q)*Y+Z,j=this.scrollTop-z*Y;var he=0;return(this.layerConfig.width!=w||T)&&(he=this.CHANGE_H_SCROLL),(T||V)&&(he|=this.$updateCachedSize(!0,this.gutterWidth,M.width,M.height),this._signal("scrollbarVisibilityChanged"),V&&(w=this.$getLongestLine())),this.layerConfig={width:w,padding:this.$padding,firstRow:U,firstRowScreen:z,lastRow:q,lineHeight:Y,characterWidth:this.characterWidth,minHeight:I,maxHeight:S,offset:j,gutterOffset:Y?Math.max(0,Math.ceil((j+M.height-M.scrollerHeight)/Y)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(w-this.$padding),he},L.prototype.$updateLines=function(){if(this.$changedLines){var k=this.$changedLines.firstRow,M=this.$changedLines.lastRow;this.$changedLines=null;var C=this.layerConfig;if(!(k>C.lastRow+1)&&!(M<C.firstRow)){if(M===1/0){this.$showGutter&&this.$gutterLayer.update(C),this.$textLayer.update(C);return}return this.$textLayer.updateLines(C,k,M),!0}}},L.prototype.$getLongestLine=function(){var k=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(k+=1),this.$textLayer&&k>this.$textLayer.MAX_LINE_LENGTH&&(k=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(k*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(k,M){this.$gutterLayer.addGutterDecoration(k,M)},L.prototype.removeGutterDecoration=function(k,M){this.$gutterLayer.removeGutterDecoration(k,M)},L.prototype.updateBreakpoints=function(k){this._rows=k,this.$loop.schedule(this.CHANGE_GUTTER)},L.prototype.setAnnotations=function(k){this.$gutterLayer.setAnnotations(k),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(k,M,C){this.scrollCursorIntoView(k,C),this.scrollCursorIntoView(M,C)},L.prototype.scrollCursorIntoView=function(k,M,C){if(this.$size.scrollerHeight!==0){var R=this.$cursorLayer.getPixelPosition(k),S=R.left,w=R.top,E=C&&C.top||0,T=C&&C.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var O=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;O+E>w?(M&&O+E>w+this.lineHeight&&(w-=M*this.$size.scrollerHeight),w===0&&(w=-this.scrollMargin.top),this.session.setScrollTop(w)):O+this.$size.scrollerHeight-T<w+this.lineHeight&&(M&&O+this.$size.scrollerHeight-T<w-this.lineHeight&&(w+=M*this.$size.scrollerHeight),this.session.setScrollTop(w+this.lineHeight+T-this.$size.scrollerHeight));var I=this.scrollLeft,N=2*this.layerConfig.characterWidth;S-N<I?(S-=N,S<this.$padding+N&&(S=-this.scrollMargin.left),this.session.setScrollLeft(S)):(S+=N,I+this.$size.scrollerWidth<S+this.characterWidth?this.session.setScrollLeft(Math.round(S+this.characterWidth-this.$size.scrollerWidth)):I<=this.$padding&&S-I<this.characterWidth&&this.session.setScrollLeft(0))}},L.prototype.getScrollTop=function(){return this.session.getScrollTop()},L.prototype.getScrollLeft=function(){return this.session.getScrollLeft()},L.prototype.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},L.prototype.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},L.prototype.scrollToRow=function(k){this.session.setScrollTop(k*this.lineHeight)},L.prototype.alignCursor=function(k,M){typeof k=="number"&&(k={row:k,column:0});var C=this.$cursorLayer.getPixelPosition(k),R=this.$size.scrollerHeight-this.lineHeight,S=C.top-R*(M||0);return this.session.setScrollTop(S),S},L.prototype.$calcSteps=function(k,M){var C=0,R=this.STEPS,S=[],w=function(E,T,O){return O*(Math.pow(E-1,3)+1)+T};for(C=0;C<R;++C)S.push(w(C/this.STEPS,k,M-k));return S},L.prototype.scrollToLine=function(k,M,C,R){var S=this.$cursorLayer.getPixelPosition({row:k,column:0}),w=S.top;M&&(w-=this.$size.scrollerHeight/2);var E=this.scrollTop;this.session.setScrollTop(w),C!==!1&&this.animateScrolling(E,R)},L.prototype.animateScrolling=function(k,M){var C=this.scrollTop;if(!this.$animatedScroll)return;var R=this;if(k==C)return;if(this.$scrollAnimation){var S=this.$scrollAnimation.steps;if(S.length&&(k=S[0],k==C))return}var w=R.$calcSteps(k,C);this.$scrollAnimation={from:k,to:C,steps:w},clearInterval(this.$timer),R.session.setScrollTop(w.shift()),R.session.$scrollTop=C;function E(){R.$timer=clearInterval(R.$timer),R.$scrollAnimation=null,R.$stopAnimation=!1,M&&M()}this.$timer=setInterval(function(){if(R.$stopAnimation){E();return}if(!R.session)return clearInterval(R.$timer);w.length?(R.session.setScrollTop(w.shift()),R.session.$scrollTop=C):C!=null?(R.session.$scrollTop=-1,R.session.setScrollTop(C),C=null):E()},10)},L.prototype.scrollToY=function(k){this.scrollTop!==k&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=k)},L.prototype.scrollToX=function(k){this.scrollLeft!==k&&(this.scrollLeft=k),this.$loop.schedule(this.CHANGE_H_SCROLL)},L.prototype.scrollTo=function(k,M){this.session.setScrollTop(M),this.session.setScrollLeft(k)},L.prototype.scrollBy=function(k,M){M&&this.session.setScrollTop(this.session.getScrollTop()+M),k&&this.session.setScrollLeft(this.session.getScrollLeft()+k)},L.prototype.isScrollableBy=function(k,M){if(M<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||M>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||k<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||k>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},L.prototype.pixelToScreenCoordinates=function(k,M){var C;if(this.$hasCssTransforms){C={top:0,left:0};var R=this.$fontMetrics.transformCoordinates([k,M]);k=R[1]-this.gutterWidth-this.margin.left,M=R[0]}else C=this.scroller.getBoundingClientRect();var S=k+this.scrollLeft-C.left-this.$padding,w=S/this.characterWidth,E=Math.floor((M+this.scrollTop-C.top)/this.lineHeight),T=this.$blockCursor?Math.floor(w):Math.round(w);return{row:E,column:T,side:w-T>0?1:-1,offsetX:S}},L.prototype.screenToTextCoordinates=function(k,M){var C;if(this.$hasCssTransforms){C={top:0,left:0};var R=this.$fontMetrics.transformCoordinates([k,M]);k=R[1]-this.gutterWidth-this.margin.left,M=R[0]}else C=this.scroller.getBoundingClientRect();var S=k+this.scrollLeft-C.left-this.$padding,w=S/this.characterWidth,E=this.$blockCursor?Math.floor(w):Math.round(w),T=Math.floor((M+this.scrollTop-C.top)/this.lineHeight);return this.session.screenToDocumentPosition(T,Math.max(E,0),S)},L.prototype.textToScreenCoordinates=function(k,M){var C=this.scroller.getBoundingClientRect(),R=this.session.documentToScreenPosition(k,M),S=this.$padding+(this.session.$bidiHandler.isBidiRow(R.row,k)?this.session.$bidiHandler.getPosLeft(R.column):Math.round(R.column*this.characterWidth)),w=R.row*this.lineHeight;return{pageX:C.left+S-this.scrollLeft,pageY:C.top+w-this.scrollTop}},L.prototype.visualizeFocus=function(){d.addCssClass(this.container,"ace_focus")},L.prototype.visualizeBlur=function(){d.removeCssClass(this.container,"ace_focus")},L.prototype.showComposition=function(k){this.$composition=k,k.cssText||(k.cssText=this.textarea.style.cssText),k.useTextareaForIME==null&&(k.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(d.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):k.markerId=this.session.addMarker(k.markerRange,"ace_composition_marker","text")},L.prototype.setCompositionText=function(k){var M=this.session.selection.cursor;this.addToken(k,"composition_placeholder",M.row,M.column),this.$moveTextAreaToCursor()},L.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),d.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var k=this.session.selection.cursor;this.removeExtraToken(k.row,k.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},L.prototype.setGhostText=function(k,M){var C=this.session.selection.cursor,R=M||{row:C.row,column:C.column};this.removeGhostText();var S=k.split(`
|
1737
|
-
`);if(this.addToken(S[0],"ghost_text",R.row,R.column),this.$ghostText={text:k,position:{row:R.row,column:R.column}},S.length>1){this.$ghostTextWidget={text:S.slice(1).join(`
|
1738
|
-
`),row:R.row,column:R.column,className:"ace_ghost_text"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var w=this.$cursorLayer.getPixelPosition(R,!0),E=this.container,T=E.getBoundingClientRect().height,O=S.length*this.lineHeight,I=O<T-w.top;if(I)return;O<T?this.scrollBy(0,(S.length-1)*this.lineHeight):this.scrollToRow(R.row)}},L.prototype.removeGhostText=function(){if(this.$ghostText){var k=this.$ghostText.position;this.removeExtraToken(k.row,k.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},L.prototype.addToken=function(k,M,C,R){var S=this.session;S.bgTokenizer.lines[C]=null;var w={type:M,value:k},E=S.getTokens(C);if(R==null||!E.length)E.push(w);else for(var T=0,O=0;O<E.length;O++){var I=E[O];if(T+=I.value.length,R<=T){var N=I.value.length-(T-R),P=I.value.slice(0,N),H=I.value.slice(N);E.splice(O,1,{type:I.type,value:P},w,{type:I.type,value:H});break}}this.updateLines(C,C)},L.prototype.removeExtraToken=function(k,M){this.session.bgTokenizer.lines[k]=null,this.updateLines(k,k)},L.prototype.setTheme=function(k,M){var C=this;if(this.$themeId=k,C._dispatchEvent("themeChange",{theme:k}),!k||typeof k=="string"){var R=k||this.$options.theme.initialValue;a.loadModule(["theme",R],S)}else S(k);function S(w){if(C.$themeId!=k)return M&&M();if(!w||!w.cssClass)throw new Error("couldn't load module "+k+" or it didn't call define");w.$id&&(C.$themeId=w.$id),d.importCssString(w.cssText,w.cssClass,C.container),C.theme&&d.removeCssClass(C.container,C.theme.cssClass);var E="padding"in w?w.padding:"padding"in(C.theme||{})?4:C.$padding;C.$padding&&E!=C.$padding&&C.setPadding(E),C.$theme=w.cssClass,C.theme=w,d.addCssClass(C.container,w.cssClass),d.setCssClass(C.container,"ace_dark",w.isDark),C.$size&&(C.$size.width=0,C.$updateSizeAsync()),C._dispatchEvent("themeLoaded",{theme:w}),M&&M()}},L.prototype.getTheme=function(){return this.$themeId},L.prototype.setStyle=function(k,M){d.setCssClass(this.container,k,M!==!1)},L.prototype.unsetStyle=function(k){d.removeCssClass(this.container,k)},L.prototype.setCursorStyle=function(k){d.setStyle(this.scroller.style,"cursor",k)},L.prototype.setMouseCursor=function(k){d.setStyle(this.scroller.style,"cursor",k)},L.prototype.attachToShadowRoot=function(){d.importCssString($,"ace_editor.css",this.container)},L.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent="",this.setOption("useResizeObserver",!1)},L.prototype.$updateCustomScrollbar=function(k){var M=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,k===!0?(this.scrollBarV=new m(this.container,this),this.scrollBarH=new f(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function(C){M.$scrollAnimation||M.session.setScrollTop(C.data-M.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(C){M.$scrollAnimation||M.session.setScrollLeft(C.data-M.scrollMargin.left)}),this.$scrollDecorator=new _(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new c(this.container,this),this.scrollBarH=new h(this.container,this),this.scrollBarV.addEventListener("scroll",function(C){M.$scrollAnimation||M.session.setScrollTop(C.data-M.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(C){M.$scrollAnimation||M.session.setScrollLeft(C.data-M.scrollMargin.left)}))},L.prototype.$addResizeObserver=function(){if(!(!window.ResizeObserver||this.$resizeObserver)){var k=this;this.$resizeTimer=g.delayedCall(function(){k.destroyed||k.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(M){var C=M[0].contentRect.width,R=M[0].contentRect.height;Math.abs(k.$size.width-C)>1||Math.abs(k.$size.height-R)>1?k.$resizeTimer.delay():k.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},L}();A.prototype.CHANGE_CURSOR=1,A.prototype.CHANGE_MARKER=2,A.prototype.CHANGE_GUTTER=4,A.prototype.CHANGE_SCROLL=8,A.prototype.CHANGE_LINES=16,A.prototype.CHANGE_TEXT=32,A.prototype.CHANGE_SIZE=64,A.prototype.CHANGE_MARKER_BACK=128,A.prototype.CHANGE_MARKER_FRONT=256,A.prototype.CHANGE_FULL=512,A.prototype.CHANGE_H_SCROLL=1024,A.prototype.$changes=0,A.prototype.$padding=null,A.prototype.$frozen=!1,A.prototype.STEPS=8,o.implement(A.prototype,x),a.defineOptions(A.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){d.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=A}),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 o=n("../lib/oop"),d=n("../lib/net"),g=n("../lib/event_emitter").EventEmitter,a=n("../config");function p(h){var c="importScripts('"+d.qualifyURL(h)+"');";try{return new Blob([c],{type:"application/javascript"})}catch{var f=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,m=new f;return m.append(c),m.getBlob("application/javascript")}}function s(h){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(a.get("loadWorkerFromBlob")){var c=p(h),f=window.URL||window.webkitURL,m=f.createObjectURL(c);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(){o.implement(this,g),this.$createWorkerFromOldConfig=function(h,c,f,m,v){if(n.nameToUrl&&!n.toUrl&&(n.toUrl=n.nameToUrl),a.get("packaged")||!n.toUrl)m=m||a.moduleUrl(c,"worker");else{var y=this.$normalizePath;m=m||y(n.toUrl("ace/worker/worker.js",null,"_"));var x={};h.forEach(function($){x[$]=y(n.toUrl($,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=s(m),v&&this.send("importScripts",v),this.$worker.postMessage({init:!0,tlns:x,module:c,classname:f}),this.$worker},this.onMessage=function(h){var c=h.data;switch(c.type){case"event":this._signal(c.name,{data:c.data});break;case"call":var f=this.callbacks[c.id];f&&(f(c.data),delete this.callbacks[c.id]);break;case"error":this.reportError(c.data);break;case"log":window.console&&console.log&&console.log.apply(console,c.data);break}},this.reportError=function(h){window.console&&console.error&&console.error(h)},this.$normalizePath=function(h){return d.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,c){this.$worker.postMessage({command:h,args:c})},this.call=function(h,c,f){if(f){var m=this.callbackId++;this.callbacks[m]=f,c.push(m)}this.send(h,c)},this.emit=function(h,c){try{c.data&&c.data.err&&(c.data.err={message:c.data.err.message,stack:c.data.err.stack,code:c.data.err.code}),this.$worker&&this.$worker.postMessage({event:h,data:{data:c.data}})}catch(f){console.error(f.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 u=function(h,c,f){var m=null,v=!1,y=Object.create(g),x=[],$=new i({messageBuffer:x,terminate:function(){},postMessage:function(b){x.push(b),m&&(v?setTimeout(_):_())}});$.setEmitSync=function(b){v=b};var _=function(){var b=x.shift();b.command?m[b.command].apply(m,b.args):b.event&&y._signal(b.event,b.data)};return y.postMessage=function(b){$.onMessage({data:b})},y.callback=function(b,A){this.postMessage({type:"call",id:A,data:b})},y.emit=function(b,A){this.postMessage({type:"event",name:b,data:A})},a.loadModule(["worker",c],function(b){for(m=new b[f](y);x.length;)_()}),$};r.UIWorkerClient=u,r.WorkerClient=i,r.createWorker=s}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(n,r,l){var o=n("./range").Range,d=n("./lib/event_emitter").EventEmitter,g=n("./lib/oop"),a=function(){function p(s,i,u,h,c,f){var m=this;this.length=i,this.session=s,this.doc=s.getDocument(),this.mainClass=c,this.othersClass=f,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=u;var v=s.getUndoManager().$undoStack||s.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=v.length,this.setup(),s.selection.on("changeCursor",this.$onCursorChange)}return p.prototype.setup=function(){var s=this,i=this.doc,u=this.session;this.selectionBefore=u.selection.toJSON(),u.selection.inMultiSelectMode&&u.selection.toSingleRange(),this.pos=i.createAnchor(this.$pos.row,this.$pos.column);var h=this.pos;h.$insertRight=!0,h.detach(),h.markerId=u.addMarker(new o(h.row,h.column,h.row,h.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(c){var f=i.createAnchor(c.row,c.column);f.$insertRight=!0,f.detach(),s.others.push(f)}),u.setUndoSelect(!1)},p.prototype.showOtherMarkers=function(){if(!this.othersActive){var s=this.session,i=this;this.othersActive=!0,this.others.forEach(function(u){u.markerId=s.addMarker(new o(u.row,u.column,u.row,u.column+i.length),i.othersClass,null,!1)})}},p.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var s=0;s<this.others.length;s++)this.session.removeMarker(this.others[s].markerId)}},p.prototype.onUpdate=function(s){if(this.$updating)return this.updateAnchors(s);var i=s;if(i.start.row===i.end.row&&i.start.row===this.pos.row){this.$updating=!0;var u=s.action==="insert"?i.end.column-i.start.column:i.start.column-i.end.column,h=i.start.column>=this.pos.column&&i.start.column<=this.pos.column+this.length+1,c=i.start.column-this.pos.column;if(this.updateAnchors(s),h&&(this.length+=u),h&&!this.session.$fromUndo){if(s.action==="insert")for(var f=this.others.length-1;f>=0;f--){var m=this.others[f],v={row:m.row,column:m.column+c};this.doc.insertMergedLines(v,s.lines)}else if(s.action==="remove")for(var f=this.others.length-1;f>=0;f--){var m=this.others[f],v={row:m.row,column:m.column+c};this.doc.remove(new o(v.row,v.column,v.row,v.column-u))}}this.$updating=!1,this.updateMarkers()}},p.prototype.updateAnchors=function(s){this.pos.onChange(s);for(var i=this.others.length;i--;)this.others[i].onChange(s);this.updateMarkers()},p.prototype.updateMarkers=function(){if(!this.$updating){var s=this,i=this.session,u=function(c,f){i.removeMarker(c.markerId),c.markerId=i.addMarker(new o(c.row,c.column,c.row,c.column+s.length),f,null,!1)};u(this.pos,this.mainClass);for(var h=this.others.length;h--;)u(this.others[h],this.othersClass)}},p.prototype.onCursorChange=function(s){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",s)):(this.hideOtherMarkers(),this._emit("cursorLeave",s))}},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 s=this.session.getUndoManager(),i=(s.$undoStack||s.$undostack).length-this.$undoStackDepth,u=0;u<i;u++)s.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},p}();g.implement(a.prototype,d),r.PlaceHolder=a}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(n,r,l){var o=n("../lib/event"),d=n("../lib/useragent");function g(p,s){return p.row==s.row&&p.column==s.column}function a(p){var s=p.domEvent,i=s.altKey,u=s.shiftKey,h=s.ctrlKey,c=p.getAccelKey(),f=p.getButton();if(h&&d.isMac&&(f=s.button),p.editor.inMultiSelectMode&&f==2){p.editor.textInput.onContextMenu(p.domEvent);return}if(!h&&!i&&!c){f===0&&p.editor.inMultiSelectMode&&p.editor.exitMultiSelectMode();return}if(f===0){var m=p.editor,v=m.selection,y=m.inMultiSelectMode,x=p.getDocumentPosition(),$=v.getCursor(),_=p.inSelection()||v.isEmpty()&&g(x,$),b=p.x,A=p.y,L=function(H){b=H.clientX,A=H.clientY},k=m.session,M=m.renderer.pixelToScreenCoordinates(b,A),C=M,R;if(m.$mouseHandler.$enableJumpToDef)h&&i||c&&i?R=u?"block":"add":i&&m.$blockSelectEnabled&&(R="block");else if(c&&!i){if(R="add",!y&&u)return}else i&&m.$blockSelectEnabled&&(R="block");if(R&&d.isMac&&s.ctrlKey&&m.$mouseHandler.cancelContextMenu(),R=="add"){if(!y&&_)return;if(!y){var S=v.toOrientedRange();m.addSelectionMarker(S)}var w=v.rangeList.rangeAtPoint(x);m.inVirtualSelectionMode=!0,u&&(w=null,S=v.ranges[0]||S,m.removeSelectionMarker(S)),m.once("mouseup",function(){var H=v.toOrientedRange();w&&H.isEmpty()&&g(w.cursor,H.cursor)?v.substractPoint(H.cursor):(u?v.substractPoint(S.cursor):S&&(m.removeSelectionMarker(S),v.addRange(S)),v.addRange(H)),m.inVirtualSelectionMode=!1})}else if(R=="block"){p.stop(),m.inVirtualSelectionMode=!0;var E,T=[],O=function(){var H=m.renderer.pixelToScreenCoordinates(b,A),V=k.screenToDocumentPosition(H.row,H.column,H.offsetX);g(C,H)&&g(V,v.lead)||(C=H,m.selection.moveToPosition(V),m.renderer.scrollCursorIntoView(),m.removeSelectionMarkers(T),T=v.rectangularRangeBlock(C,M),m.$mouseHandler.$clickSelection&&T.length==1&&T[0].isEmpty()&&(T[0]=m.$mouseHandler.$clickSelection.clone()),T.forEach(m.addSelectionMarker,m),m.updateSelectionMarkers())};y&&!c?v.toSingleRange():!y&&c&&(E=v.toOrientedRange(),m.addSelectionMarker(E)),u?M=k.documentToScreenPosition(v.lead):v.moveToPosition(x),C={row:-1,column:-1};var I=function(H){O(),clearInterval(P),m.removeSelectionMarkers(T),T.length||(T=[v.toOrientedRange()]),E&&(m.removeSelectionMarker(E),v.toSingleRange(E));for(var V=0;V<T.length;V++)v.addRange(T[V]);m.inVirtualSelectionMode=!1,m.$mouseHandler.$clickSelection=null},N=O;o.capture(m.container,L,I);var P=setInterval(function(){N()},20);return p.preventDefault()}}}r.onMouseDown=a}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(n,r,l){r.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(d){d.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(d){d.selectMoreLines(1)},bindKey:{win:"Ctrl-Alt-Down",mac:"Ctrl-Alt-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorAboveSkipCurrent",description:"Add cursor above (skip current)",exec:function(d){d.selectMoreLines(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Up",mac:"Ctrl-Alt-Shift-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelowSkipCurrent",description:"Add cursor below (skip current)",exec:function(d){d.selectMoreLines(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Down",mac:"Ctrl-Alt-Shift-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreBefore",description:"Select more before",exec:function(d){d.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(d){d.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(d){d.selectMore(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Left",mac:"Ctrl-Alt-Shift-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextAfter",description:"Select next after",exec:function(d){d.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"toggleSplitSelectionIntoLines",description:"Split selection into lines",exec:function(d){d.multiSelect.rangeCount>1?d.multiSelect.joinSelections():d.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(d){d.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(d){d.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(d){d.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],r.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(d){d.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(d){return d&&d.inMultiSelectMode}}];var o=n("../keyboard/hash_handler").HashHandler;r.keyboardHandler=new o(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 o=n("./range_list").RangeList,d=n("./range").Range,g=n("./selection").Selection,a=n("./mouse/multi_select_handler").onMouseDown,p=n("./lib/event"),s=n("./lib/lang"),i=n("./commands/multi_select_commands");r.commands=i.defaultCommands.concat(i.multiSelectCommands);var u=n("./search").Search,h=new u;function c($,_,b){return h.$options.wrap=!0,h.$options.needle=_,h.$options.backwards=b==-1,h.find($)}var f=n("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(f.prototype),(function(){this.ranges=null,this.rangeList=null,this.addRange=function($,_){if($){if(!this.inMultiSelectMode&&this.rangeCount===0){var b=this.toOrientedRange();if(this.rangeList.add(b),this.rangeList.add($),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),_||this.fromOrientedRange($);this.rangeList.removeAll(),this.rangeList.add(b),this.$onAddRange(b)}$.cursor||($.cursor=$.end);var A=this.rangeList.add($);return this.$onAddRange($),A.length&&this.$onRemoveRange(A),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),_||this.fromOrientedRange($)}},this.toSingleRange=function($){$=$||this.ranges[0];var _=this.rangeList.removeAll();_.length&&this.$onRemoveRange(_),$&&this.fromOrientedRange($)},this.substractPoint=function($){var _=this.rangeList.substractPoint($);if(_)return this.$onRemoveRange(_),_[0]},this.mergeOverlappingRanges=function(){var $=this.rangeList.merge();$.length&&this.$onRemoveRange($)},this.$onAddRange=function($){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift($),this._signal("addRange",{range:$})},this.$onRemoveRange=function($){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var _=this.rangeList.ranges.pop();$.push(_),this.rangeCount=0}for(var b=$.length;b--;){var A=this.ranges.indexOf($[b]);this.ranges.splice(A,1)}this._signal("removeRange",{ranges:$}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),_=_||this.ranges[0],_&&!_.isEqual(this.getRange())&&this.fromOrientedRange(_)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new o,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var $=this.ranges.length?this.ranges:[this.getRange()],_=[],b=0;b<$.length;b++){var A=$[b],L=A.start.row,k=A.end.row;if(L===k)_.push(A.clone());else{for(_.push(new d(L,A.start.column,L,this.session.getLine(L).length));++L<k;)_.push(this.getLineRange(L,!0));_.push(new d(k,0,k,A.end.column))}b==0&&!this.isBackwards()&&(_=_.reverse())}this.toSingleRange();for(var b=_.length;b--;)this.addRange(_[b])},this.joinSelections=function(){var $=this.rangeList.ranges,_=$[$.length-1],b=d.fromPoints($[0].start,_.end);this.toSingleRange(),this.setSelectionRange(b,_.cursor==_.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var $=this.rangeList.ranges,_=$[$.length-1],b=d.fromPoints($[0].start,_.end);this.toSingleRange(),this.setSelectionRange(b,_.cursor==_.start)}else{var A=this.session.documentToScreenPosition(this.cursor),L=this.session.documentToScreenPosition(this.anchor),k=this.rectangularRangeBlock(A,L);k.forEach(this.addRange,this)}},this.rectangularRangeBlock=function($,_,b){var A=[],L=$.column<_.column;if(L)var k=$.column,M=_.column,C=$.offsetX,R=_.offsetX;else var k=_.column,M=$.column,C=_.offsetX,R=$.offsetX;var S=$.row<_.row;if(S)var w=$.row,E=_.row;else var w=_.row,E=$.row;k<0&&(k=0),w<0&&(w=0),w==E&&(b=!0);for(var T,O=w;O<=E;O++){var I=d.fromPoints(this.session.screenToDocumentPosition(O,k,C),this.session.screenToDocumentPosition(O,M,R));if(I.isEmpty()){if(T&&v(I.end,T))break;T=I.end}I.cursor=L?I.start:I.end,A.push(I)}if(S&&A.reverse(),!b){for(var N=A.length-1;A[N].isEmpty()&&N>0;)N--;if(N>0)for(var P=0;A[P].isEmpty();)P++;for(var H=N;H>=P;H--)A[H].isEmpty()&&A.splice(H,1)}return A}}).call(g.prototype);var m=n("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function($){$.cursor||($.cursor=$.end);var _=this.getSelectionStyle();return $.marker=this.session.addMarker($,"ace_selection",_),this.session.$selectionMarkers.push($),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,$},this.removeSelectionMarker=function($){if($.marker){this.session.removeMarker($.marker);var _=this.session.$selectionMarkers.indexOf($);_!=-1&&this.session.$selectionMarkers.splice(_,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function($){for(var _=this.session.$selectionMarkers,b=$.length;b--;){var A=$[b];if(A.marker){this.session.removeMarker(A.marker);var L=_.indexOf(A);L!=-1&&_.splice(L,1)}}this.session.selectionMarkerCount=_.length},this.$onAddRange=function($){this.addSelectionMarker($.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function($){this.removeSelectionMarkers($.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function($){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($){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($){var _=$.command,b=$.editor;if(b.multiSelect){if(_.multiSelectAction)_.multiSelectAction=="forEach"?A=b.forEachSelection(_,$.args):_.multiSelectAction=="forEachLine"?A=b.forEachSelection(_,$.args,!0):_.multiSelectAction=="single"?(b.exitMultiSelectMode(),A=_.exec(b,$.args||{})):A=_.multiSelectAction(b,$.args||{});else{var A=_.exec(b,$.args||{});b.multiSelect.addRange(b.multiSelect.toOrientedRange()),b.multiSelect.mergeOverlappingRanges()}return A}},this.forEachSelection=function($,_,b){if(!this.inVirtualSelectionMode){var A=b&&b.keepOrder,L=b==!0||b&&b.$byLines,k=this.session,M=this.selection,C=M.rangeList,R=(A?M:C).ranges,S;if(!R.length)return $.exec?$.exec(this,_||{}):$(this,_||{});var w=M._eventRegistry;M._eventRegistry={};var E=new g(k);this.inVirtualSelectionMode=!0;for(var T=R.length;T--;){if(L)for(;T>0&&R[T].start.row==R[T-1].end.row;)T--;E.fromOrientedRange(R[T]),E.index=T,this.selection=k.selection=E;var O=$.exec?$.exec(this,_||{}):$(this,_||{});!S&&O!==void 0&&(S=O),E.toOrientedRange(R[T])}E.detach(),this.selection=k.selection=M,this.inVirtualSelectionMode=!1,M._eventRegistry=w,M.mergeOverlappingRanges(),M.ranges[0]&&M.fromOrientedRange(M.ranges[0]);var I=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),I&&I.from==I.to&&this.renderer.animateScrolling(I.from),S}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var $="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var _=this.multiSelect.rangeList.ranges,b=[],A=0;A<_.length;A++)b.push(this.session.getTextRange(_[A]));var L=this.session.getDocument().getNewLineCharacter();$=b.join(L),$.length==(b.length-1)*L.length&&($="")}else this.selection.isEmpty()||($=this.session.getTextRange(this.getSelectionRange()));return $},this.$checkMultiselectChange=function($,_){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var b=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&_==this.multiSelect.anchor)return;var A=_==this.multiSelect.anchor?b.cursor==b.start?b.end:b.start:b.cursor;A.row!=_.row||this.session.$clipPositionToDocument(A.row,A.column).column!=_.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function($,_,b){if(_=_||{},_.needle=$||_.needle,_.needle==null){var A=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();_.needle=this.session.getTextRange(A)}this.$search.set(_);var L=this.$search.findAll(this.session);if(!L.length)return 0;var k=this.multiSelect;b||k.toSingleRange(L[0]);for(var M=L.length;M--;)k.addRange(L[M],!0);return A&&k.rangeList.rangeAtPoint(A.start)&&k.addRange(A,!0),L.length},this.selectMoreLines=function($,_){var b=this.selection.toOrientedRange(),A=b.cursor==b.end,L=this.session.documentToScreenPosition(b.cursor);this.selection.$desiredColumn&&(L.column=this.selection.$desiredColumn);var k=this.session.screenToDocumentPosition(L.row+$,L.column);if(b.isEmpty())var C=k;else var M=this.session.documentToScreenPosition(A?b.end:b.start),C=this.session.screenToDocumentPosition(M.row+$,M.column);if(A){var R=d.fromPoints(k,C);R.cursor=R.start}else{var R=d.fromPoints(C,k);R.cursor=R.end}if(R.desiredColumn=L.column,!this.selection.inMultiSelectMode)this.selection.addRange(b);else if(_)var S=b.cursor;this.selection.addRange(R),S&&this.selection.substractPoint(S)},this.transposeSelections=function($){for(var _=this.session,b=_.multiSelect,A=b.ranges,L=A.length;L--;){var k=A[L];if(k.isEmpty()){var M=_.getWordRange(k.start.row,k.start.column);k.start.row=M.start.row,k.start.column=M.start.column,k.end.row=M.end.row,k.end.column=M.end.column}}b.mergeOverlappingRanges();for(var C=[],L=A.length;L--;){var k=A[L];C.unshift(_.getTextRange(k))}$<0?C.unshift(C.pop()):C.push(C.shift());for(var L=A.length;L--;){var k=A[L],R=k.clone();_.replace(k,C[L]),k.start.row=R.start.row,k.start.column=R.start.column}b.fromOrientedRange(b.ranges[0])},this.selectMore=function($,_,b){var A=this.session,L=A.multiSelect,k=L.toOrientedRange();if(!(k.isEmpty()&&(k=A.getWordRange(k.start.row,k.start.column),k.cursor=$==-1?k.start:k.end,this.multiSelect.addRange(k),b))){var M=A.getTextRange(k),C=c(A,M,$);C&&(C.cursor=$==-1?C.start:C.end,this.session.unfold(C),this.multiSelect.addRange(C),this.renderer.scrollCursorIntoView(null,.5)),_&&this.multiSelect.substractPoint(k.cursor)}},this.alignCursors=function(){var $=this.session,_=$.multiSelect,b=_.ranges,A=-1,L=b.filter(function(N){if(N.cursor.row==A)return!0;A=N.cursor.row});if(!b.length||L.length==b.length-1){var k=this.selection.getRange(),M=k.start.row,C=k.end.row,R=M==C;if(R){var S=this.session.getLength(),w;do w=this.session.getLine(C);while(/[=:]/.test(w)&&++C<S);do w=this.session.getLine(M);while(/[=:]/.test(w)&&--M>0);M<0&&(M=0),C>=S&&(C=S-1)}var E=this.session.removeFullLines(M,C);E=this.$reAlignText(E,R),this.session.insert({row:M,column:0},E.join(`
|
1739
|
-
`)+`
|
1740
|
-
`),R||(k.start.column=0,k.end.column=E[E.length-1].length),this.selection.setRange(k)}else{L.forEach(function(N){_.substractPoint(N.cursor)});var T=0,O=1/0,I=b.map(function(N){var P=N.cursor,H=$.getLine(P.row),V=H.substr(P.column).search(/\S/g);return V==-1&&(V=0),P.column>T&&(T=P.column),V<O&&(O=V),V});b.forEach(function(N,P){var H=N.cursor,V=T-H.column,j=I[P]-O;V>j?$.insert(H,s.stringRepeat(" ",V-j)):$.remove(new d(H.row,H.column,H.row,H.column-V+j)),N.start.column=N.end.column=T,N.start.row=N.end.row=H.row,N.cursor=N.end}),_.fromOrientedRange(b[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function($,_){var b=!0,A=!0,L,k,M;return $.map(function(E){var T=E.match(/(\s*)(.*?)(\s*)([=:].*)/);return T?L==null?(L=T[1].length,k=T[2].length,M=T[3].length,T):(L+k+M!=T[1].length+T[2].length+T[3].length&&(A=!1),L!=T[1].length&&(b=!1),L>T[1].length&&(L=T[1].length),k<T[2].length&&(k=T[2].length),M>T[3].length&&(M=T[3].length),T):[E]}).map(_?R:b?A?S:R:w);function C(E){return s.stringRepeat(" ",E)}function R(E){return E[2]?C(L)+E[2]+C(k-E[2].length+M)+E[4].replace(/^([=:])\s+/,"$1 "):E[0]}function S(E){return E[2]?C(L+k-E[2].length)+E[2]+C(M)+E[4].replace(/^([=:])\s+/,"$1 "):E[0]}function w(E){return E[2]?C(L)+E[2]+C(M)+E[4].replace(/^([=:])\s+/,"$1 "):E[0]}}}).call(m.prototype);function v($,_){return $.row==_.row&&$.column==_.column}r.onSessionChange=function($){var _=$.session;_&&!_.multiSelect&&(_.$selectionMarkers=[],_.selection.$initRangeList(),_.multiSelect=_.selection),this.multiSelect=_&&_.multiSelect;var b=$.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)),_&&(_.multiSelect.on("addRange",this.$onAddRange),_.multiSelect.on("removeRange",this.$onRemoveRange),_.multiSelect.on("multiSelect",this.$onMultiSelect),_.multiSelect.on("singleSelect",this.$onSingleSelect),_.multiSelect.lead.on("change",this.$checkMultiselectChange),_.multiSelect.anchor.on("change",this.$checkMultiselectChange)),_&&this.inMultiSelectMode!=_.selection.inMultiSelectMode&&(_.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function y($){$.$multiselectOnSessionChange||($.$onAddRange=$.$onAddRange.bind($),$.$onRemoveRange=$.$onRemoveRange.bind($),$.$onMultiSelect=$.$onMultiSelect.bind($),$.$onSingleSelect=$.$onSingleSelect.bind($),$.$multiselectOnSessionChange=r.onSessionChange.bind($),$.$checkMultiselectChange=$.$checkMultiselectChange.bind($),$.$multiselectOnSessionChange($),$.on("changeSession",$.$multiselectOnSessionChange),$.on("mousedown",a),$.commands.addCommands(i.defaultCommands),x($))}function x($){if(!$.textInput)return;var _=$.textInput.getElement(),b=!1;p.addListener(_,"keydown",function(L){var k=L.keyCode==18&&!(L.ctrlKey||L.shiftKey||L.metaKey);$.$blockSelectEnabled&&k?b||($.renderer.setMouseCursor("crosshair"),b=!0):b&&A()},$),p.addListener(_,"keyup",A,$),p.addListener(_,"blur",A,$);function A(L){b&&($.renderer.setMouseCursor(""),b=!1)}}r.MultiSelect=y,n("./config").defineOptions(m.prototype,"editor",{enableMultiselect:{set:function($){y(this),$?this.on("mousedown",a):this.off("mousedown",a)},value:!0},enableBlockSelect:{set:function($){this.$blockSelectEnabled=$},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(n,r,l){var o=n("../../range").Range,d=r.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(g,a,p){var s=g.getLine(p);return this.foldingStartMarker.test(s)?"start":a=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(s)?"end":""},this.getFoldWidgetRange=function(g,a,p){return null},this.indentationBlock=function(g,a,p){var s=/\S/,i=g.getLine(a),u=i.search(s);if(u!=-1){for(var h=p||i.length,c=g.getLength(),f=a,m=a;++a<c;){var v=g.getLine(a).search(s);if(v!=-1){if(v<=u){var y=g.getTokenAt(a,0);if(!y||y.type!=="string")break}m=a}}if(m>f){var x=g.getLine(m).length;return new o(f,h,m,x)}}},this.openingBracketBlock=function(g,a,p,s,i){var u={row:p,column:s+1},h=g.$findClosingBracket(a,u,i);if(h){var c=g.foldWidgets[h.row];return c==null&&(c=g.getFoldWidget(h.row)),c=="start"&&h.row>u.row&&(h.row--,h.column=g.getLine(h.row).length),o.fromPoints(u,h)}},this.closingBracketBlock=function(g,a,p,s,i){var u={row:p,column:s},h=g.$findOpeningBracket(a,u);if(h)return h.column++,u.column--,o.fromPoints(h,u)}}).call(d.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 o=n("../line_widgets").LineWidgets,d=n("../lib/dom"),g=n("../range").Range,a=n("../config").nls;function p(i,u,h){for(var c=0,f=i.length-1;c<=f;){var m=c+f>>1,v=h(u,i[m]);if(v>0)c=m+1;else if(v<0)f=m-1;else return m}return-(c+1)}function s(i,u,h){var c=i.getAnnotations().sort(g.comparePoints);if(c.length){var f=p(c,{row:u,column:-1},g.comparePoints);f<0&&(f=-f-1),f>=c.length?f=h>0?0:c.length-1:f===0&&h<0&&(f=c.length-1);var m=c[f];if(!(!m||!h)){if(m.row===u){do m=c[f+=h];while(m&&m.row===u);if(!m)return c.slice()}var v=[];u=m.row;do v[h<0?"unshift":"push"](m),m=c[f+=h];while(m&&m.row==u);return v.length&&v}}}r.showErrorMarker=function(i,u){var h=i.session;h.widgetManager||(h.widgetManager=new o(h),h.widgetManager.attach(i));var c=i.getCursorPosition(),f=c.row,m=h.widgetManager.getWidgetsAtRow(f).filter(function(k){return k.type=="errorMarker"})[0];m?m.destroy():f-=u;var v=s(h,f,u),y;if(v){var x=v[0];c.column=(x.pos&&typeof x.column!="number"?x.pos.sc:x.column)||0,c.row=x.row,y=i.renderer.$gutterLayer.$annotations[c.row]}else{if(m)return;y={text:[a("error-marker.good-state","Looks good!")],className:"ace_ok"}}i.session.unfold(c.row),i.selection.moveToPosition(c);var $={row:c.row,fixedWidth:!0,coverGutter:!0,el:d.createElement("div"),type:"errorMarker"},_=$.el.appendChild(d.createElement("div")),b=$.el.appendChild(d.createElement("div"));b.className="error_widget_arrow "+y.className;var A=i.renderer.$cursorLayer.getPixelPosition(c).left;b.style.left=A+i.renderer.gutterWidth-5+"px",$.el.className="error_widget_wrapper",_.className="error_widget "+y.className,_.innerHTML=y.text.join("<br>"),_.appendChild(d.createElement("div"));var L=function(k,M,C){if(M===0&&(C==="esc"||C==="return"))return $.destroy(),{command:"null"}};$.destroy=function(){i.$mouseHandler.isMousePressed||(i.keyBinding.removeKeyboardHandler(L),h.widgetManager.removeLineWidget($),i.off("changeSelection",$.destroy),i.off("changeSession",$.destroy),i.off("mouseup",$.destroy),i.off("change",$.destroy))},i.keyBinding.addKeyboardHandler(L),i.on("changeSelection",$.destroy),i.on("changeSession",$.destroy),i.on("mouseup",$.destroy),i.on("change",$.destroy),i.session.widgetManager.addLineWidget($),$.el.onmousedown=i.focus.bind(i),i.renderer.scrollCursorIntoView(null,.5,{bottom:$.el.offsetHeight})},d.importCssString(`
|
1741
|
-
.error_widget_wrapper {
|
1742
|
-
background: inherit;
|
1743
|
-
color: inherit;
|
1744
|
-
border:none
|
1745
|
-
}
|
1746
|
-
.error_widget {
|
1747
|
-
border-top: solid 2px;
|
1748
|
-
border-bottom: solid 2px;
|
1749
|
-
margin: 5px 0;
|
1750
|
-
padding: 10px 40px;
|
1751
|
-
white-space: pre-wrap;
|
1752
|
-
}
|
1753
|
-
.error_widget.ace_error, .error_widget_arrow.ace_error{
|
1754
|
-
border-color: #ff5a5a
|
1755
|
-
}
|
1756
|
-
.error_widget.ace_warning, .error_widget_arrow.ace_warning{
|
1757
|
-
border-color: #F1D817
|
1758
|
-
}
|
1759
|
-
.error_widget.ace_info, .error_widget_arrow.ace_info{
|
1760
|
-
border-color: #5a5a5a
|
1761
|
-
}
|
1762
|
-
.error_widget.ace_ok, .error_widget_arrow.ace_ok{
|
1763
|
-
border-color: #5aaa5a
|
1764
|
-
}
|
1765
|
-
.error_widget_arrow {
|
1766
|
-
position: absolute;
|
1767
|
-
border: solid 5px;
|
1768
|
-
border-top-color: transparent!important;
|
1769
|
-
border-right-color: transparent!important;
|
1770
|
-
border-left-color: transparent!important;
|
1771
|
-
top: -5px;
|
1772
|
-
}
|
1773
|
-
`,"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 o=n("./lib/dom"),d=n("./range").Range,g=n("./editor").Editor,a=n("./edit_session").EditSession,p=n("./undomanager").UndoManager,s=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,u){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 g)return i.env.editor;var c="";if(i&&/input|textarea/i.test(i.tagName)){var f=i;c=f.value,i=o.createElement("pre"),f.parentNode.replaceChild(i,f)}else i&&(c=i.textContent,i.innerHTML="");var m=r.createEditSession(c),v=new g(new s(i),m,u),y={document:m,editor:v,onResize:v.resize.bind(v,null)};return f&&(y.textarea=f),v.on("destroy",function(){y.editor.container.env=null}),v.container.env=v.env=y,v},r.createEditSession=function(i,u){var h=new a(i,u);return h.setUndoManager(new p),h},r.Range=d,r.Editor=g,r.EditSession=a,r.UndoManager=p,r.VirtualRenderer=s,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)})}()})(tp);var SA=tp.exports;const jl=Mr(SA),xA="/assets/mode-yaml-ELgwiJiP.js",CA="data:text/javascript;base64,YWNlLmRlZmluZSgiYWNlL3RoZW1lL21vbm9rYWktY3NzIixbInJlcXVpcmUiLCJleHBvcnRzIiwibW9kdWxlIl0sZnVuY3Rpb24oZSx0LG4pe24uZXhwb3J0cz0iLmFjZS1tb25va2FpIC5hY2VfZ3V0dGVyIHtcbiAgYmFja2dyb3VuZDogIzJGMzEyOTtcbiAgY29sb3I6ICM4RjkwOEFcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfcHJpbnQtbWFyZ2luIHtcbiAgd2lkdGg6IDFweDtcbiAgYmFja2dyb3VuZDogIzU1NTY1MVxufVxuXG4uYWNlLW1vbm9rYWkge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjcyODIyO1xuICBjb2xvcjogI0Y4RjhGMlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9jdXJzb3Ige1xuICBjb2xvcjogI0Y4RjhGMFxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9zZWxlY3Rpb24ge1xuICBiYWNrZ3JvdW5kOiAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaS5hY2VfbXVsdGlzZWxlY3QgLmFjZV9zZWxlY3Rpb24uYWNlX3N0YXJ0IHtcbiAgYm94LXNoYWRvdzogMCAwIDNweCAwcHggIzI3MjgyMjtcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfbWFya2VyLWxheWVyIC5hY2Vfc3RlcCB7XG4gIGJhY2tncm91bmQ6IHJnYigxMDIsIDgyLCAwKVxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9icmFja2V0IHtcbiAgbWFyZ2luOiAtMXB4IDAgMCAtMXB4O1xuICBib3JkZXI6IDFweCBzb2xpZCAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX21hcmtlci1sYXllciAuYWNlX2FjdGl2ZS1saW5lIHtcbiAgYmFja2dyb3VuZDogIzIwMjAyMFxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9ndXR0ZXItYWN0aXZlLWxpbmUge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjcyNzI3XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX21hcmtlci1sYXllciAuYWNlX3NlbGVjdGVkLXdvcmQge1xuICBib3JkZXI6IDFweCBzb2xpZCAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2ludmlzaWJsZSB7XG4gIGNvbG9yOiAjNTI1MjRkXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2VudGl0eS5hY2VfbmFtZS5hY2VfdGFnLFxuLmFjZS1tb25va2FpIC5hY2Vfa2V5d29yZCxcbi5hY2UtbW9ub2thaSAuYWNlX21ldGEuYWNlX3RhZyxcbi5hY2UtbW9ub2thaSAuYWNlX3N0b3JhZ2Uge1xuICBjb2xvcjogI0Y5MjY3MlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9wdW5jdHVhdGlvbixcbi5hY2UtbW9ub2thaSAuYWNlX3B1bmN0dWF0aW9uLmFjZV90YWcge1xuICBjb2xvcjogI2ZmZlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9jb25zdGFudC5hY2VfY2hhcmFjdGVyLFxuLmFjZS1tb25va2FpIC5hY2VfY29uc3RhbnQuYWNlX2xhbmd1YWdlLFxuLmFjZS1tb25va2FpIC5hY2VfY29uc3RhbnQuYWNlX251bWVyaWMsXG4uYWNlLW1vbm9rYWkgLmFjZV9jb25zdGFudC5hY2Vfb3RoZXIge1xuICBjb2xvcjogI0FFODFGRlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9pbnZhbGlkIHtcbiAgY29sb3I6ICNGOEY4RjA7XG4gIGJhY2tncm91bmQtY29sb3I6ICNGOTI2NzJcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfaW52YWxpZC5hY2VfZGVwcmVjYXRlZCB7XG4gIGNvbG9yOiAjRjhGOEYwO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjQUU4MUZGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N1cHBvcnQuYWNlX2NvbnN0YW50LFxuLmFjZS1tb25va2FpIC5hY2Vfc3VwcG9ydC5hY2VfZnVuY3Rpb24ge1xuICBjb2xvcjogIzY2RDlFRlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9mb2xkIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI0E2RTIyRTtcbiAgYm9yZGVyLWNvbG9yOiAjRjhGOEYyXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N0b3JhZ2UuYWNlX3R5cGUsXG4uYWNlLW1vbm9rYWkgLmFjZV9zdXBwb3J0LmFjZV9jbGFzcyxcbi5hY2UtbW9ub2thaSAuYWNlX3N1cHBvcnQuYWNlX3R5cGUge1xuICBmb250LXN0eWxlOiBpdGFsaWM7XG4gIGNvbG9yOiAjNjZEOUVGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2VudGl0eS5hY2VfbmFtZS5hY2VfZnVuY3Rpb24sXG4uYWNlLW1vbm9rYWkgLmFjZV9lbnRpdHkuYWNlX290aGVyLFxuLmFjZS1tb25va2FpIC5hY2VfZW50aXR5LmFjZV9vdGhlci5hY2VfYXR0cmlidXRlLW5hbWUsXG4uYWNlLW1vbm9rYWkgLmFjZV92YXJpYWJsZSB7XG4gIGNvbG9yOiAjQTZFMjJFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3ZhcmlhYmxlLmFjZV9wYXJhbWV0ZXIge1xuICBmb250LXN0eWxlOiBpdGFsaWM7XG4gIGNvbG9yOiAjRkQ5NzFGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N0cmluZyB7XG4gIGNvbG9yOiAjRTZEQjc0XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2NvbW1lbnQge1xuICBjb2xvcjogIzc1NzE1RVxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9pbmRlbnQtZ3VpZGUge1xuICBiYWNrZ3JvdW5kOiB1cmwoZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFBRUFBQUFDQ0FZQUFBQ1pnYlluQUFBQUVrbEVRVlFJbVdQUTBGRDBaWEJ6ZC93UEFBalZBb3hlU2dOZUFBQUFBRWxGVGtTdVFtQ0MpIHJpZ2h0IHJlcGVhdC15XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2luZGVudC1ndWlkZS1hY3RpdmUge1xuICBiYWNrZ3JvdW5kOiB1cmwoZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFBRUFBQUFDQ0FZQUFBQ1pnYlluQUFBQUVrbEVRVlFJVzJQUTFkWDl6ekJ6NXN6L0FCQ2NCRkZlbnRMbEFBQUFBRWxGVGtTdVFtQ0MpIHJpZ2h0IHJlcGVhdC15O1xufVxuIn0pLGFjZS5kZWZpbmUoImFjZS90aGVtZS9tb25va2FpIixbInJlcXVpcmUiLCJleHBvcnRzIiwibW9kdWxlIiwiYWNlL3RoZW1lL21vbm9rYWktY3NzIiwiYWNlL2xpYi9kb20iXSxmdW5jdGlvbihlLHQsbil7dC5pc0Rhcms9ITAsdC5jc3NDbGFzcz0iYWNlLW1vbm9rYWkiLHQuY3NzVGV4dD1lKCIuL21vbm9rYWktY3NzIik7dmFyIHI9ZSgiLi4vbGliL2RvbSIpO3IuaW1wb3J0Q3NzU3RyaW5nKHQuY3NzVGV4dCx0LmNzc0NsYXNzLCExKX0pOyAgICAgICAgICAgICAgICAoZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICAgICAgYWNlLnJlcXVpcmUoWyJhY2UvdGhlbWUvbW9ub2thaSJdLCBmdW5jdGlvbihtKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0eXBlb2YgbW9kdWxlID09ICJvYmplY3QiICYmIHR5cGVvZiBleHBvcnRzID09ICJvYmplY3QiICYmIG1vZHVsZSkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgbW9kdWxlLmV4cG9ydHMgPSBtOwogICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgICB9KSgpOwogICAgICAgICAgICA=";jl.config.setModuleUrl("ace/mode/yaml",xA);jl.config.setModuleUrl("ace/theme/monokai",CA);var np=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(l,o){return l[0]===n?(r=o,!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,o=this.__entries__;l<o.length;l++){var d=o[l];n.call(r,d[1],d[0])}},t}()}(),Da=typeof window<"u"&&typeof document<"u"&&window.document===document,Ds=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),AA=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Ds):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),kA=2;function EA(e,t){var n=!1,r=!1,l=0;function o(){n&&(n=!1,e()),r&&g()}function d(){AA(o)}function g(){var a=Date.now();if(n){if(a-l<kA)return;r=!0}else n=!0,r=!1,setTimeout(d,t);l=a}return g}var RA=20,TA=["top","right","bottom","left","width","height","size","weight"],LA=typeof MutationObserver<"u",MA=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=EA(this.refresh.bind(this),RA)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Da||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),LA?(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(){!Da||!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=TA.some(function(o){return!!~r.indexOf(o)});l&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),rp=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var l=r[n];Object.defineProperty(e,l,{value:t[l],enumerable:!1,writable:!1,configurable:!0})}return e},Ar=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Ds},ip=wo(0,0,0,0);function Ps(e){return parseFloat(e)||0}function Hu(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,l){var o=e["border-"+l+"-width"];return r+Ps(o)},0)}function OA(e){for(var t=["top","right","bottom","left"],n={},r=0,l=t;r<l.length;r++){var o=l[r],d=e["padding-"+o];n[o]=Ps(d)}return n}function IA(e){var t=e.getBBox();return wo(0,0,t.width,t.height)}function NA(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return ip;var r=Ar(e).getComputedStyle(e),l=OA(r),o=l.left+l.right,d=l.top+l.bottom,g=Ps(r.width),a=Ps(r.height);if(r.boxSizing==="border-box"&&(Math.round(g+o)!==t&&(g-=Hu(r,"left","right")+o),Math.round(a+d)!==n&&(a-=Hu(r,"top","bottom")+d)),!DA(e)){var p=Math.round(g+o)-t,s=Math.round(a+d)-n;Math.abs(p)!==1&&(g-=p),Math.abs(s)!==1&&(a-=s)}return wo(l.left,l.top,g,a)}var FA=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Ar(e).SVGGraphicsElement}:function(e){return e instanceof Ar(e).SVGElement&&typeof e.getBBox=="function"}}();function DA(e){return e===Ar(e).document.documentElement}function PA(e){return Da?FA(e)?IA(e):NA(e):ip}function WA(e){var t=e.x,n=e.y,r=e.width,l=e.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,d=Object.create(o.prototype);return rp(d,{x:t,y:n,width:r,height:l,top:n,right:t+r,bottom:l+n,left:t}),d}function wo(e,t,n,r){return{x:e,y:t,width:n,height:r}}var BA=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=wo(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=PA(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),HA=function(){function e(t,n){var r=WA(n);rp(this,{target:t,contentRect:r})}return e}(),zA=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new np,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=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 Ar(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new BA(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 Ar(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 HA(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}(),sp=typeof WeakMap<"u"?new WeakMap:new np,op=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=MA.getInstance(),r=new zA(t,n,this);sp.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){op.prototype[e]=function(){var t;return(t=sp.get(this))[e].apply(t,arguments)}});var jA=function(){return typeof Ds.ResizeObserver<"u"?Ds.ResizeObserver:op}();const zu=["blur","input","change","changeSelectionStyle","changeSession","copy","focus","paste"],ap=xe({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",...zu],render(){return to("div")},mounted(){const e=this._editor=Bh(jl.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)}),zu.forEach(t=>{const n="on"+Ci(t);typeof this.$.vnode.props[n]=="function"&&e.on(t,this.$emit.bind(this,t))}),this._ro=new jA(()=>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)}}}),UA={class:"block"},lp=xe({__name:"InputForm",props:{yaml:{type:String,required:!0}},emits:["update-yaml"],setup(e,{emit:t}){const n=e,r=t,l=ul(n,"yaml");return gl(()=>{r("update-yaml",l.value)}),(o,d)=>(G(),re("div",UA,[se(ae(ap),{class:"vue-ace-editor",value:l.value,"onUpdate:value":d[0]||(d[0]=g=>l.value=g),lang:"yaml",theme:"monokai",options:{fontSize:16,minLines:6,maxLines:1e4}},null,8,["value"])]))}}),VA={class:"block"},GA={class:"is-size-2 block"},KA={class:"field is-grouped is-grouped-centered"},YA={class:"control"},ZA={class:"icon is-small"},XA=F("span",null,"Edit",-1),qA={key:0,class:"block"},QA=F("hr",null,null,-1),JA=xe({__name:"EditRule",props:{rule:{type:Object,required:!0}},setup(e){const t=e,n=Tr(),r=ul(t.rule.yaml),l=I_(),o=g=>{r.value=g},d=async()=>{const g=await l.perform({yaml:r.value});n.push({name:"Rule",params:{id:g.id}})};return(g,a)=>{var s,i;const p=Ze("font-awesome-icon");return G(),re(Pe,null,[F("div",VA,[F("h2",GA,"Edit rule: "+we(e.rule.id),1),se(lp,{yaml:r.value,"onUpdate:yaml":a[0]||(a[0]=u=>r.value=u),onUpdateYaml:o},null,8,["yaml"]),F("div",KA,[F("p",YA,[F("a",{class:"button is-primary",onClick:d},[F("span",ZA,[se(p,{icon:"edit"})]),XA])])])]),(s=ae(l).last)!=null&&s.error?(G(),re("div",qA,[QA,se(yt,{error:(i=ae(l).last)==null?void 0:i.error},null,8,["error"])])):ge("",!0)],64)}}}),ek=xe({__name:"EditRuleWrapper",props:{id:{type:String,required:!0}},setup(e){const t=e,n=Lf(),r=async()=>{await n.perform(t.id)};return ct(async()=>{await r()}),Qe(t,async()=>{await r()}),(l,o)=>{var d,g;return G(),re(Pe,null,[ae(n).isRunning?(G(),Se(bn,{key:0})):ge("",!0),ae(n).isError?(G(),Se(yt,{key:1,error:(d=ae(n).last)==null?void 0:d.error},null,8,["error"])):ge("",!0),(g=ae(n).last)!=null&&g.value?(G(),Se(JA,{key:2,rule:ae(n).last.value},null,8,["rule"])):ge("",!0)],64)}}}),tk=xe({__name:"EditRule",props:{id:{type:String,required:!0}},setup(e){const t=e,n=()=>{yn(`Edit rule:${t.id} - Mihari`)};return ct(()=>{n()}),Qe(()=>t.id,()=>{n()}),(r,l)=>(G(),Se(ek,{id:e.id},null,8,["id"]))}});function nk(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Array.from(typeof e=="string"?[e]:e);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,"");var l=r.reduce(function(g,a){var p=a.match(/\n([\t ]+|(?!\s).)/g);return p?g.concat(p.map(function(s){var i,u;return(u=(i=s.match(/[\t ]/g))===null||i===void 0?void 0:i.length)!==null&&u!==void 0?u:0})):g},[]);if(l.length){var o=new RegExp(`
|
1774
|
-
[ ]{`+Math.min.apply(Math,l)+"}","g");r=r.map(function(g){return g.replace(o,`
|
1775
|
-
`)})}r[0]=r[0].replace(/^\r?\n/,"");var d=r[0];return t.forEach(function(g,a){var p=d.match(/(?:^|\n)( *)$/),s=p?p[1]:"",i=g;typeof g=="string"&&g.includes(`
|
1776
|
-
`)&&(i=String(g).split(`
|
1777
|
-
`).map(function(u,h){return h===0?u:""+s+u}).join(`
|
1778
|
-
`)),d+=i+r[a+1]}),d}var es,rk=new Uint8Array(16);function ik(){if(!es&&(es=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!es))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return es(rk)}const sk=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function ok(e){return typeof e=="string"&&sk.test(e)}var pt=[];for(var Vo=0;Vo<256;++Vo)pt.push((Vo+256).toString(16).substr(1));function ak(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(pt[e[t+0]]+pt[e[t+1]]+pt[e[t+2]]+pt[e[t+3]]+"-"+pt[e[t+4]]+pt[e[t+5]]+"-"+pt[e[t+6]]+pt[e[t+7]]+"-"+pt[e[t+8]]+pt[e[t+9]]+"-"+pt[e[t+10]]+pt[e[t+11]]+pt[e[t+12]]+pt[e[t+13]]+pt[e[t+14]]+pt[e[t+15]]).toLowerCase();if(!ok(n))throw TypeError("Stringified UUID is invalid");return n}function lk(e,t,n){e=e||{};var r=e.random||(e.rng||ik)();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 ak(r)}function ck(){const e=lk(),t=bo();return nk`---
|
1779
|
-
id: ${e}
|
1780
|
-
title: Title goes here
|
1781
|
-
description: Description goes here
|
1782
|
-
created_on: ${t.format("YYYY-MM-DD")}
|
1783
|
-
queries: []`}const uk={class:"block"},hk=F("h2",{class:"is-size-2 block"},"New rule",-1),dk={class:"field is-grouped is-grouped-centered"},fk={class:"control"},pk={class:"icon is-small"},gk=F("span",null,"Create",-1),mk={key:0,class:"block"},vk=F("hr",null,null,-1),yk=xe({__name:"NewRule",setup(e){const t=Tr(),n=je(ck()),r=O_(),l=d=>{n.value=d},o=async()=>{const d=await r.perform({yaml:n.value});t.push({name:"Rule",params:{id:d.id}})};return(d,g)=>{var p,s;const a=Ze("font-awesome-icon");return G(),re(Pe,null,[F("div",uk,[hk,se(lp,{yaml:n.value,"onUpdate:yaml":g[0]||(g[0]=i=>n.value=i),onUpdateYaml:l},null,8,["yaml"]),F("div",dk,[F("p",fk,[F("a",{class:"button is-primary",onClick:o},[F("span",pk,[se(a,{icon:"plus"})]),gk])])])]),(p=ae(r).last)!=null&&p.error?(G(),re("div",mk,[vk,se(yt,{error:(s=ae(r).last)==null?void 0:s.error},null,8,["error"])])):ge("",!0)],64)}}}),bk=xe({__name:"NewRule",setup(e){const t=()=>{yn("New rule - Mihari")};return ct(()=>{t()}),(n,r)=>(G(),Se(yk))}}),wk={class:"buttons is-pulled-right"},_k=F("span",null,"Alerts:",-1),$k=F("span",null,"Artifacts:",-1),Sk=["href"],xk=F("span",null,"JSON",-1),Ck={class:"icon is-small"},Ak=F("span",null,"Search",-1),kk={class:"icon is-small"},Ek=F("span",null,"Edit",-1),Rk={class:"icon is-small"},Tk=F("span",null,"Delete",-1),Lk={class:"icon is-small"},cp=xe({__name:"ActionButtons",props:{rule:{type:Object,required:!0}},emits:["delete","set-error","set-message"],setup(e,{emit:t}){const n=e,r=t,l=ke(()=>`/api/rules/${n.rule.id}`),o=ke(()=>`rule.id:"${n.rule.id}"`),d=L_(),g=M_(),a=go(),p=Pl(),s=async()=>{if(window.confirm(`Are you sure you want to delete ${n.rule.id}?`))try{await d.perform(n.rule.id),r("delete")}catch(h){Je.isAxiosError(h)&&r("set-error",h)}},i=async()=>{try{const u=await g.perform(n.rule.id);r("set-message",u)}catch(u){Je.isAxiosError(u)&&r("set-error",u)}};return ct(()=>{a.perform({q:o.value,page:1,limit:0}),p.perform({q:o.value,page:1,limit:0})}),(u,h)=>{const c=Ze("router-link"),f=Ze("font-awesome-icon");return G(),re("span",wk,[se(c,{class:"button is-warning is-small is-rounded",to:{name:"Alerts",query:{q:o.value}}},{default:rt(()=>{var m,v;return[_k,F("span",null,we((v=(m=ae(a).last)==null?void 0:m.value)==null?void 0:v.total),1)]}),_:1},8,["to"]),se(c,{class:"button is-success is-small is-rounded",to:{name:"Artifacts",query:{q:o.value}}},{default:rt(()=>{var m,v;return[$k,F("span",null,we((v=(m=ae(p).last)==null?void 0:m.value)==null?void 0:v.total),1)]}),_:1},8,["to"]),F("a",{class:"button is-link is-light is-small",href:l.value,target:"_blank"},[xk,F("span",Ck,[se(f,{icon:"barcode"})])],8,Sk),F("button",{class:"button is-primary is-light is-small",onClick:i},[Ak,F("span",kk,[ae(g).isRunning?(G(),Se(f,{key:0,icon:"spinner",spin:""})):(G(),Se(f,{key:1,icon:"magnifying-glass"}))])]),se(c,{class:"button is-info is-light is-small",to:{name:"EditRule",params:{id:e.rule.id}}},{default:rt(()=>[Ek,F("span",Rk,[se(f,{icon:"edit"})])]),_:1},8,["to"]),F("button",{class:"button is-light is-small",onClick:s},[Tk,F("span",Lk,[se(f,{icon:"times"})])])])}}}),Mk={class:"box"},Ok={class:"block"},Ik={class:"table is-fullwidth is-completely-borderless"},Nk=F("th",null,"Title",-1),Fk=F("th",null,"Description",-1),Dk={key:0},Pk=F("th",null,"Tags",-1),Wk=F("p",{class:"block is-clearfix"},null,-1),Bk={class:"help"},Hk=xe({__name:"RuleItem",props:{rule:{type:Object,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=t,r=je(),l=je(),o=s=>{r.value=s},d=()=>{r.value=void 0},g=s=>{l.value=s},a=()=>{l.value=void 0},p=()=>{n("delete")};return(s,i)=>{const u=Ze("router-link");return G(),re("div",Mk,[r.value?(G(),Se(yt,{key:0,class:"block",error:r.value,disposable:!0,onDispose:d},null,8,["error"])):ge("",!0),l.value?(G(),Se(mo,{key:1,class:"block",message:l.value,disposable:!0,onDispose:a},null,8,["message"])):ge("",!0),F("div",Ok,[F("p",null,[se(cp,{rule:e.rule,onSetError:o,onDelete:p,onSetMessage:g},null,8,["rule"])]),se(u,{class:"is-size-4",to:{name:"Rule",params:{id:e.rule.id}}},{default:rt(()=>[it(we(e.rule.id),1)]),_:1},8,["to"])]),F("table",Ik,[F("tr",null,[Nk,F("td",null,we(e.rule.title),1)]),F("tr",null,[Fk,F("td",null,we(e.rule.description),1)]),e.rule.tags.length>0?(G(),re("tr",Dk,[Pk,F("td",null,[se(Ni,{tags:e.rule.tags,"navigate-to":"Rules"},null,8,["tags"])])])):ge("",!0)]),Wk,F("p",Bk,"Created at: "+we(e.rule.createdAt),1)])}}}),zk={key:0,class:"block"},jk={class:"help"},Uk={key:1,class:"block"},Vk=F("div",{class:"notification is-warning is-light"},"There is no alert to show",-1),Gk=[Vk],Kk=xe({__name:"RulesItem",props:{rules:{type:Object,required:!0}},emits:["refresh","update-page"],setup(e,{emit:t}){const n=e,r=t,l=g=>{r("update-page",g)},o=()=>{r("refresh")},d=ke(()=>n.rules.results.length>0);return(g,a)=>d.value?(G(),re("div",zk,[(G(!0),re(Pe,null,Ot(e.rules.results,p=>(G(),Se(Hk,{rule:p,key:p.id,onRefresh:o,onDelete:o},null,8,["rule"]))),128)),se(Wl,{currentPage:e.rules.currentPage,total:e.rules.total,pageSize:e.rules.pageSize,onUpdatePage:l},null,8,["currentPage","total","pageSize"]),F("p",jk,"("+we(e.rules.total)+" results in total, "+we(e.rules.results.length)+" shown)",1)])):(G(),re("div",Uk,Gk))}}),Yk={class:"block"},Zk={class:"field has-addons"},Xk={class:"control is-expanded"},qk={class:"control"},Qk={class:"icon is-small"},Jk=F("span",null,"Search",-1),eE={class:"control"},tE={class:"icon is-small"},nE=F("span",null,"Help",-1),rE={key:0,class:"content mt-3"},iE=_l('<h4 class="is-size-4">Help</h4><ul><li> Search query supports <code>AND</code>, <code>OR</code>, <code>:</code>, <code>=</code>, <code>!=</code>, <code><</code>, <code><=</code>, <code>></code>, <code>>=</code>, <code>NOT</code> and <code>()</code>. </li><li> Searchable fields are <code>id</code>, <code>title</code>, <code>description</code>, <code>tag</code>, <code>created_at</code> and <code>updated_at</code>. </li></ul><h4 class="is-size-4">Examples</h4>',3),sE={key:0,class:"block"},oE=xe({__name:"RulesWrapper",setup(e){const t=$r("page","1"),n=$r("q",""),r=je(!1),l=Tf(),o=async()=>{const s={q:n.value,page:parseInt(t.value)};return await l.perform(s)},d=s=>{t.value=s.toString()},g=async()=>{t.value="1",await o()},a=g,p=Ri(r);return ct(async()=>{await o()}),Qe(t,async()=>{await o()}),Qe(n,async()=>{window.scrollTo({top:0,behavior:"smooth"})}),(s,i)=>{var c,f;const u=Ze("font-awesome-icon"),h=Ze("router-link");return G(),re(Pe,null,[F("div",Yk,[F("div",Zk,[F("p",Xk,[vl(F("input",{class:"input",type:"text","onUpdate:modelValue":i[0]||(i[0]=m=>ut(n)?n.value=m:null)},null,512),[[xl,ae(n)]])]),F("p",qk,[F("a",{class:"button is-primary",onClick:g},[F("span",Qk,[se(u,{icon:"search"})]),Jk])]),F("p",eE,[F("a",{class:"button is-info",onClick:i[1]||(i[1]=m=>ae(p)())},[F("span",tE,[se(u,{icon:"question"})]),nE])])]),r.value?(G(),re("div",rE,[iE,F("ul",null,[F("li",null,[se(h,{to:{name:"Rules",query:{q:"title:foo AND created_at >= 2020-01-01"}}},{default:rt(()=>[it("title:foo AND created_at >= 2020-01-01")]),_:1})])])])):ge("",!0)]),ae(l).performCount>0?(G(),re("div",sE,[ae(l).isRunning?(G(),Se(bn,{key:0})):ge("",!0),ae(l).isError?(G(),Se(yt,{key:1,error:(c=ae(l).last)==null?void 0:c.error},null,8,["error"])):ge("",!0),(f=ae(l).last)!=null&&f.value?(G(),Se(Kk,{key:2,rules:ae(l).last.value,onUpdatePage:d,onRefresh:ae(a)},null,8,["rules","onRefresh"])):ge("",!0)])):ge("",!0)],64)}}}),aE=xe({__name:"RulesView",setup(e){return yn("Rules - Mihari"),(t,n)=>(G(),Se(oE))}}),lE={class:"block"},cE=xe({__name:"YamlItem",props:{yaml:{type:String,required:!0}},setup(e){return(t,n)=>(G(),re("div",lE,[se(ae(ap),{class:"vue-ace-editor",value:e.yaml,lang:"yaml",theme:"monokai",options:{readOnly:!0,fontSize:16,maxLines:1e4,minLines:6}},null,8,["value"])]))}}),uE={class:"block"},hE={class:"is-size-2 block"},dE={class:"block is-clearfix"},fE=F("hr",null,null,-1),pE={class:"block"},gE=F("h2",{class:"is-size-2 block"},"Alerts",-1),mE=xe({__name:"RuleDetail",props:{rule:{type:Object,required:!0}},emits:["delete","refresh"],setup(e,{emit:t}){const n=t,r=je(),l=je(),o=()=>{n("delete")},d=s=>{r.value=s},g=()=>{r.value=void 0},a=s=>{s.queued?l.value=s:n("refresh")},p=()=>{l.value=void 0};return(s,i)=>(G(),re(Pe,null,[F("div",uE,[F("h2",hE,we(e.rule.id),1),r.value?(G(),Se(yt,{key:0,class:"mt-3 mb-3",error:r.value,disposable:!0,onDispose:g},null,8,["error"])):ge("",!0),l.value?(G(),Se(mo,{key:1,class:"block",message:l.value,disposable:!0,onDispose:p},null,8,["message"])):ge("",!0),F("p",dE,[se(cp,{rule:e.rule,onSetMessage:a,onDelete:o,onSetError:d},null,8,["rule"])]),se(cE,{yaml:e.rule.yaml},null,8,["yaml"])]),fE,F("div",pE,[gE,se(Bf,{ruleId:e.rule.id},null,8,["ruleId"])])],64))}}),vE=xe({__name:"RuleDetailWrapper",props:{id:{type:String,required:!0}},setup(e){const t=e,n=Lf(),r=Tr(),l=async()=>{await n.perform(t.id)},o=async()=>{await l()},d=()=>{r.push("/")};return ct(async()=>{await l()}),Qe(t,async()=>{await l()}),(g,a)=>{var p,s;return G(),re(Pe,null,[ae(n).isRunning?(G(),Se(bn,{key:0})):ge("",!0),ae(n).isError?(G(),Se(yt,{key:1,error:(p=ae(n).last)==null?void 0:p.error},null,8,["error"])):ge("",!0),(s=ae(n).last)!=null&&s.value?(G(),Se(mE,{key:2,rule:ae(n).last.value,onRefresh:o,onDelete:d},null,8,["rule"])):ge("",!0)],64)}}}),yE=xe({__name:"RuleView",props:{id:{type:String,required:!0}},setup(e){const t=e,n=()=>{yn(`Rule:${t.id} - Mihari`)};return ct(()=>{n()}),Qe(()=>t.id,()=>{n()}),(r,l)=>(G(),Se(vE,{id:e.id},null,8,["id"]))}}),bE=[{path:"/",name:"Alerts",component:kS},{path:"/alerts/:id",name:"Alert",component:zS,props:!0},{path:"/config",name:"Config",component:$A},{path:"/artifacts/",name:"Artifacts",component:Wx},{path:"/artifacts/:id",name:"Artifact",component:oA,props:!0},{path:"/rules",name:"Rules",component:aE},{path:"/rules/new",name:"NewRule",component:bk},{path:"/rules/:id",name:"Rule",component:yE,props:!0},{path:"/rules/:id/edit",name:"EditRule",component:tk,props:!0}],wE=xb({history:J0(),routes:bE});Vg.add(qg,fm,um,Zg,dm,Jg,Kg,sm,im,lm,am,Xg,mh,rm,nm,em,hm,cm,tm);const up=Ty(_0);up.component("font-awesome-icon",Uy);up.use(wE).mount("#app");
|