mihari 7.6.1 → 7.6.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,1764 @@
1
+ var Ep=Object.defineProperty;var Rp=(e,t,n)=>t in e?Ep(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Fe=(e,t,n)=>Rp(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const l of a)if(l.type==="childList")for(const d of l.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&r(d)}).observe(document,{childList:!0,subtree:!0});function n(a){const l={};return a.integrity&&(l.integrity=a.integrity),a.referrerPolicy&&(l.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?l.credentials="include":a.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(a){if(a.ep)return;a.ep=!0;const l=n(a);fetch(a.href,l)}})();function ql(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function be(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ql(Object(n),!0).forEach(function(r){ht(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ql(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 Tp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lp(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 Mp(e,t,n){return t&&Lp(e.prototype,t),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 Va(e,t){return Ip(e)||Fp(e,t)||Ju(e,t)||Pp()}function Li(e){return Op(e)||Np(e)||Ju(e)||Dp()}function Op(e){if(Array.isArray(e))return Qo(e)}function Ip(e){if(Array.isArray(e))return e}function Np(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Fp(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],a=!0,l=!1,d,g;try{for(n=n.call(e);!(a=(d=n.next()).done)&&(r.push(d.value),!(t&&r.length===t));a=!0);}catch(o){l=!0,g=o}finally{try{!a&&n.return!=null&&n.return()}finally{if(l)throw g}}return r}}function Ju(e,t){if(e){if(typeof e=="string")return Qo(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 Qo(e,t)}}function Qo(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 Dp(){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 Pp(){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 Ql=function(){},Ga={},eh={},th=null,nh={mark:Ql,measure:Ql};try{typeof window<"u"&&(Ga=window),typeof document<"u"&&(eh=document),typeof MutationObserver<"u"&&(th=MutationObserver),typeof performance<"u"&&(nh=performance)}catch{}var Wp=Ga.navigator||{},Jl=Wp.userAgent,ec=Jl===void 0?"":Jl,On=Ga,st=eh,tc=th,Gi=nh;On.document;var yn=!!st.documentElement&&!!st.head&&typeof st.addEventListener=="function"&&typeof st.createElement=="function",rh=~ec.indexOf("MSIE")||~ec.indexOf("Trident/"),Ki,Yi,Zi,Xi,qi,pn="___FONT_AWESOME___",Jo=16,ih="fa",sh="svg-inline--fa",tr="data-fa-i2svg",ea="data-fa-pseudo-element",Bp="data-fa-pseudo-element-pending",Ka="data-prefix",Ya="data-icon",nc="fontawesome-i2svg",Hp="async",zp=["HTML","HEAD","STYLE","SCRIPT"],oh=function(){try{return!0}catch{return!1}}(),nt="classic",lt="sharp",Za=[nt,lt];function Mi(e){return new Proxy(e,{get:function(n,r){return r in n?n[r]:n[nt]}})}var ri=Mi((Ki={},ht(Ki,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(Ki,lt,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"}),Ki)),ii=Mi((Yi={},ht(Yi,nt,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),ht(Yi,lt,{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"}),Yi)),si=Mi((Zi={},ht(Zi,nt,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),ht(Zi,lt,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"}),Zi)),Up=Mi((Xi={},ht(Xi,nt,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),ht(Xi,lt,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"}),Xi)),jp=/fa(s|r|l|t|d|b|k|ss|sr|sl|st)?[\-\ ]/,ah="fa-layers-text",Vp=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,Gp=Mi((qi={},ht(qi,nt,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),ht(qi,lt,{900:"fass",400:"fasr",300:"fasl",100:"fast"}),qi)),lh=[1,2,3,4,5,6,7,8,9,10],Kp=lh.concat([11,12,13,14,15,16,17,18,19,20]),Yp=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Zn={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},oi=new Set;Object.keys(ii[nt]).map(oi.add.bind(oi));Object.keys(ii[lt]).map(oi.add.bind(oi));var Zp=[].concat(Za,Li(oi),["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",Zn.GROUP,Zn.SWAP_OPACITY,Zn.PRIMARY,Zn.SECONDARY]).concat(lh.map(function(e){return"".concat(e,"x")})).concat(Kp.map(function(e){return"w-".concat(e)})),Kr=On.FontAwesomeConfig||{};function Xp(e){var t=st.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function qp(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(st&&typeof st.querySelector=="function"){var Qp=[["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"]];Qp.forEach(function(e){var t=Va(e,2),n=t[0],r=t[1],a=qp(Xp(n));a!=null&&(Kr[r]=a)})}var ch={styleDefault:"solid",familyDefault:"classic",cssPrefix:ih,replacementClass:sh,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Kr.familyPrefix&&(Kr.cssPrefix=Kr.familyPrefix);var Sr=be(be({},ch),Kr);Sr.autoReplaceSvg||(Sr.observeMutations=!1);var Se={};Object.keys(ch).forEach(function(e){Object.defineProperty(Se,e,{enumerable:!0,set:function(n){Sr[e]=n,Yr.forEach(function(r){return r(Se)})},get:function(){return Sr[e]}})});Object.defineProperty(Se,"familyPrefix",{enumerable:!0,set:function(t){Sr.cssPrefix=t,Yr.forEach(function(n){return n(Se)})},get:function(){return Sr.cssPrefix}});On.FontAwesomeConfig=Se;var Yr=[];function Jp(e){return Yr.push(e),function(){Yr.splice(Yr.indexOf(e),1)}}var Sn=Jo,Jt={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function eg(e){if(!(!e||!yn)){var t=st.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=st.head.childNodes,r=null,a=n.length-1;a>-1;a--){var l=n[a],d=(l.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(d)>-1&&(r=l)}return st.head.insertBefore(t,r),e}}var tg="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function ai(){for(var e=12,t="";e-- >0;)t+=tg[Math.random()*62|0];return t}function Lr(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Xa(e){return e.classList?Lr(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function uh(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function ng(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(uh(e[n]),'" ')},"").trim()}function Vs(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function qa(e){return e.size!==Jt.size||e.x!==Jt.x||e.y!==Jt.y||e.rotate!==Jt.rotate||e.flipX||e.flipY}function rg(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,a={transform:"translate(".concat(n/2," 256)")},l="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)"),o={transform:"".concat(l," ").concat(d," ").concat(g)},p={transform:"translate(".concat(r/2*-1," -256)")};return{outer:a,inner:o,path:p}}function ig(e){var t=e.transform,n=e.width,r=n===void 0?Jo:n,a=e.height,l=a===void 0?Jo:a,d=e.startCentered,g=d===void 0?!1:d,o="";return g&&rh?o+="translate(".concat(t.x/Sn-r/2,"em, ").concat(t.y/Sn-l/2,"em) "):g?o+="translate(calc(-50% + ".concat(t.x/Sn,"em), calc(-50% + ").concat(t.y/Sn,"em)) "):o+="translate(".concat(t.x/Sn,"em, ").concat(t.y/Sn,"em) "),o+="scale(".concat(t.size/Sn*(t.flipX?-1:1),", ").concat(t.size/Sn*(t.flipY?-1:1),") "),o+="rotate(".concat(t.rotate,"deg) "),o}var sg=`: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 hh(){var e=ih,t=sh,n=Se.cssPrefix,r=Se.replacementClass,a=sg;if(n!==e||r!==t){var l=new RegExp("\\.".concat(e,"\\-"),"g"),d=new RegExp("\\--".concat(e,"\\-"),"g"),g=new RegExp("\\.".concat(t),"g");a=a.replace(l,".".concat(n,"-")).replace(d,"--".concat(n,"-")).replace(g,".".concat(r))}return a}var rc=!1;function ko(){Se.autoAddCss&&!rc&&(eg(hh()),rc=!0)}var og={mixout:function(){return{dom:{css:hh,insertCss:ko}}},hooks:function(){return{beforeDOMElementCreation:function(){ko()},beforeI2svg:function(){ko()}}}},gn=On||{};gn[pn]||(gn[pn]={});gn[pn].styles||(gn[pn].styles={});gn[pn].hooks||(gn[pn].hooks={});gn[pn].shims||(gn[pn].shims=[]);var Bt=gn[pn],dh=[],ag=function e(){st.removeEventListener("DOMContentLoaded",e),$s=1,dh.map(function(t){return t()})},$s=!1;yn&&($s=(st.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(st.readyState),$s||st.addEventListener("DOMContentLoaded",ag));function lg(e){yn&&($s?setTimeout(e,0):dh.push(e))}function Oi(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,a=e.children,l=a===void 0?[]:a;return typeof e=="string"?uh(e):"<".concat(t," ").concat(ng(r),">").concat(l.map(Oi).join(""),"</").concat(t,">")}function ic(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Eo=function(t,n,r,a){var l=Object.keys(t),d=l.length,g=n,o,p,i;for(r===void 0?(o=1,i=t[l[0]]):(o=0,i=r);o<d;o++)p=l[o],i=g(i,t[p],p,t);return i};function cg(e){for(var t=[],n=0,r=e.length;n<r;){var a=e.charCodeAt(n++);if(a>=55296&&a<=56319&&n<r){var l=e.charCodeAt(n++);(l&64512)==56320?t.push(((a&1023)<<10)+(l&1023)+65536):(t.push(a),n--)}else t.push(a)}return t}function ta(e){var t=cg(e);return t.length===1?t[0].toString(16):null}function ug(e,t){var n=e.length,r=e.charCodeAt(t),a;return r>=55296&&r<=56319&&n>t+1&&(a=e.charCodeAt(t+1),a>=56320&&a<=57343)?(r-55296)*1024+a-56320+65536:r}function sc(e){return Object.keys(e).reduce(function(t,n){var r=e[n],a=!!r.icon;return a?t[r.iconName]=r.icon:t[n]=r,t},{})}function na(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,a=r===void 0?!1:r,l=sc(t);typeof Bt.hooks.addPack=="function"&&!a?Bt.hooks.addPack(e,sc(t)):Bt.styles[e]=be(be({},Bt.styles[e]||{}),l),e==="fas"&&na("fa",t)}var Qi,Ji,es,fr=Bt.styles,hg=Bt.shims,dg=(Qi={},ht(Qi,nt,Object.values(si[nt])),ht(Qi,lt,Object.values(si[lt])),Qi),Qa=null,fh={},ph={},gh={},mh={},vh={},fg=(Ji={},ht(Ji,nt,Object.keys(ri[nt])),ht(Ji,lt,Object.keys(ri[lt])),Ji);function pg(e){return~Zp.indexOf(e)}function gg(e,t){var n=t.split("-"),r=n[0],a=n.slice(1).join("-");return r===e&&a!==""&&!pg(a)?a:null}var yh=function(){var t=function(l){return Eo(fr,function(d,g,o){return d[o]=Eo(g,l,{}),d},{})};fh=t(function(a,l,d){if(l[3]&&(a[l[3]]=d),l[2]){var g=l[2].filter(function(o){return typeof o=="number"});g.forEach(function(o){a[o.toString(16)]=d})}return a}),ph=t(function(a,l,d){if(a[d]=d,l[2]){var g=l[2].filter(function(o){return typeof o=="string"});g.forEach(function(o){a[o]=d})}return a}),vh=t(function(a,l,d){var g=l[2];return a[d]=d,g.forEach(function(o){a[o]=d}),a});var n="far"in fr||Se.autoFetchSvg,r=Eo(hg,function(a,l){var d=l[0],g=l[1],o=l[2];return g==="far"&&!n&&(g="fas"),typeof d=="string"&&(a.names[d]={prefix:g,iconName:o}),typeof d=="number"&&(a.unicodes[d.toString(16)]={prefix:g,iconName:o}),a},{names:{},unicodes:{}});gh=r.names,mh=r.unicodes,Qa=Gs(Se.styleDefault,{family:Se.familyDefault})};Jp(function(e){Qa=Gs(e.styleDefault,{family:Se.familyDefault})});yh();function Ja(e,t){return(fh[e]||{})[t]}function mg(e,t){return(ph[e]||{})[t]}function Xn(e,t){return(vh[e]||{})[t]}function bh(e){return gh[e]||{prefix:null,iconName:null}}function vg(e){var t=mh[e],n=Ja("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function In(){return Qa}var el=function(){return{prefix:null,iconName:null,rest:[]}};function Gs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?nt:n,a=ri[r][e],l=ii[r][e]||ii[r][a],d=e in Bt.styles?e:null;return l||d||null}var oc=(es={},ht(es,nt,Object.keys(si[nt])),ht(es,lt,Object.keys(si[lt])),es);function Ks(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,a=r===void 0?!1:r,l=(t={},ht(t,nt,"".concat(Se.cssPrefix,"-").concat(nt)),ht(t,lt,"".concat(Se.cssPrefix,"-").concat(lt)),t),d=null,g=nt;(e.includes(l[nt])||e.some(function(p){return oc[nt].includes(p)}))&&(g=nt),(e.includes(l[lt])||e.some(function(p){return oc[lt].includes(p)}))&&(g=lt);var o=e.reduce(function(p,i){var s=gg(Se.cssPrefix,i);if(fr[i]?(i=dg[g].includes(i)?Up[g][i]:i,d=i,p.prefix=i):fg[g].indexOf(i)>-1?(d=i,p.prefix=Gs(i,{family:g})):s?p.iconName=s:i!==Se.replacementClass&&i!==l[nt]&&i!==l[lt]&&p.rest.push(i),!a&&p.prefix&&p.iconName){var c=d==="fa"?bh(p.iconName):{},u=Xn(p.prefix,p.iconName);c.prefix&&(d=null),p.iconName=c.iconName||u||p.iconName,p.prefix=c.prefix||p.prefix,p.prefix==="far"&&!fr.far&&fr.fas&&!Se.autoFetchSvg&&(p.prefix="fas")}return p},el());return(e.includes("fa-brands")||e.includes("fab"))&&(o.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(o.prefix="fad"),!o.prefix&&g===lt&&(fr.fass||Se.autoFetchSvg)&&(o.prefix="fass",o.iconName=Xn(o.prefix,o.iconName)||o.iconName),(o.prefix==="fa"||d==="fa")&&(o.prefix=In()||"fas"),o}var yg=function(){function e(){Tp(this,e),this.definitions={}}return Mp(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,a=new Array(r),l=0;l<r;l++)a[l]=arguments[l];var d=a.reduce(this._pullDefinitions,{});Object.keys(d).forEach(function(g){n.definitions[g]=be(be({},n.definitions[g]||{}),d[g]),na(g,d[g]);var o=si[nt][g];o&&na(o,d[g]),yh()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(n,r){var a=r.prefix&&r.iconName&&r.icon?{0:r}:r;return Object.keys(a).map(function(l){var d=a[l],g=d.prefix,o=d.iconName,p=d.icon,i=p[2];n[g]||(n[g]={}),i.length>0&&i.forEach(function(s){typeof s=="string"&&(n[g][s]=p)}),n[g][o]=p}),n}}]),e}(),ac=[],pr={},vr={},bg=Object.keys(vr);function wg(e,t){var n=t.mixoutsTo;return ac=e,pr={},Object.keys(vr).forEach(function(r){bg.indexOf(r)===-1&&delete vr[r]}),ac.forEach(function(r){var a=r.mixout?r.mixout():{};if(Object.keys(a).forEach(function(d){typeof a[d]=="function"&&(n[d]=a[d]),Ss(a[d])==="object"&&Object.keys(a[d]).forEach(function(g){n[d]||(n[d]={}),n[d][g]=a[d][g]})}),r.hooks){var l=r.hooks();Object.keys(l).forEach(function(d){pr[d]||(pr[d]=[]),pr[d].push(l[d])})}r.provides&&r.provides(vr)}),n}function ra(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];var l=pr[e]||[];return l.forEach(function(d){t=d.apply(null,[t].concat(r))}),t}function nr(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 a=pr[e]||[];a.forEach(function(l){l.apply(null,n)})}function mn(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return vr[e]?vr[e].apply(null,t):void 0}function ia(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,n=e.prefix||In();if(t)return t=Xn(n,t)||t,ic(wh.definitions,n,t)||ic(Bt.styles,n,t)}var wh=new yg,_g=function(){Se.autoReplaceSvg=!1,Se.observeMutations=!1,nr("noAuto")},Sg={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return yn?(nr("beforeI2svg",t),mn("pseudoElements2svg",t),mn("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;Se.autoReplaceSvg===!1&&(Se.autoReplaceSvg=!0),Se.observeMutations=!0,lg(function(){xg({autoReplaceSvgRoot:n}),nr("watch",t)})}},$g={icon:function(t){if(t===null)return null;if(Ss(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Xn(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=Gs(t[0]);return{prefix:r,iconName:Xn(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(Se.cssPrefix,"-"))>-1||t.match(jp))){var a=Ks(t.split(" "),{skipLookups:!0});return{prefix:a.prefix||In(),iconName:Xn(a.prefix,a.iconName)||a.iconName}}if(typeof t=="string"){var l=In();return{prefix:l,iconName:Xn(l,t)||t}}}},Ft={noAuto:_g,config:Se,dom:Sg,parse:$g,library:wh,findIconDefinition:ia,toHtml:Oi},xg=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?st:n;(Object.keys(Bt.styles).length>0||Se.autoFetchSvg)&&yn&&Se.autoReplaceSvg&&Ft.dom.i2svg({node:r})};function Ys(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return Oi(r)})}}),Object.defineProperty(e,"node",{get:function(){if(yn){var r=st.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function Cg(e){var t=e.children,n=e.main,r=e.mask,a=e.attributes,l=e.styles,d=e.transform;if(qa(d)&&n.found&&!r.found){var g=n.width,o=n.height,p={x:g/o/2,y:.5};a.style=Vs(be(be({},l),{},{"transform-origin":"".concat(p.x+d.x/16,"em ").concat(p.y+d.y/16,"em")}))}return[{tag:"svg",attributes:a,children:t}]}function Ag(e){var t=e.prefix,n=e.iconName,r=e.children,a=e.attributes,l=e.symbol,d=l===!0?"".concat(t,"-").concat(Se.cssPrefix,"-").concat(n):l;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:be(be({},a),{},{id:d}),children:r}]}]}function tl(e){var t=e.icons,n=t.main,r=t.mask,a=e.prefix,l=e.iconName,d=e.transform,g=e.symbol,o=e.title,p=e.maskId,i=e.titleId,s=e.extra,c=e.watchable,u=c===void 0?!1:c,h=r.found?r:n,f=h.width,m=h.height,v=a==="fak",y=[Se.replacementClass,l?"".concat(Se.cssPrefix,"-").concat(l):""].filter(function(E){return s.classes.indexOf(E)===-1}).filter(function(E){return E!==""||!!E}).concat(s.classes).join(" "),x={children:[],attributes:be(be({},s.attributes),{},{"data-prefix":a,"data-icon":l,class:y,role:s.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(f," ").concat(m)})},_=v&&!~s.classes.indexOf("fa-fw")?{width:"".concat(f/m*16*.0625,"em")}:{};u&&(x.attributes[tr]=""),o&&(x.children.push({tag:"title",attributes:{id:x.attributes["aria-labelledby"]||"title-".concat(i||ai())},children:[o]}),delete x.attributes.title);var S=be(be({},x),{},{prefix:a,iconName:l,main:n,mask:r,maskId:p,transform:d,symbol:g,styles:be(be({},_),s.styles)}),b=r.found&&n.found?mn("generateAbstractMask",S)||{children:[],attributes:{}}:mn("generateAbstractIcon",S)||{children:[],attributes:{}},A=b.children,L=b.attributes;return S.children=A,S.attributes=L,g?Ag(S):Cg(S)}function lc(e){var t=e.content,n=e.width,r=e.height,a=e.transform,l=e.title,d=e.extra,g=e.watchable,o=g===void 0?!1:g,p=be(be(be({},d.attributes),l?{title:l}:{}),{},{class:d.classes.join(" ")});o&&(p[tr]="");var i=be({},d.styles);qa(a)&&(i.transform=ig({transform:a,startCentered:!0,width:n,height:r}),i["-webkit-transform"]=i.transform);var s=Vs(i);s.length>0&&(p.style=s);var c=[];return c.push({tag:"span",attributes:p,children:[t]}),l&&c.push({tag:"span",attributes:{class:"sr-only"},children:[l]}),c}function kg(e){var t=e.content,n=e.title,r=e.extra,a=be(be(be({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),l=Vs(r.styles);l.length>0&&(a.style=l);var d=[];return d.push({tag:"span",attributes:a,children:[t]}),n&&d.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),d}var Ro=Bt.styles;function sa(e){var t=e[0],n=e[1],r=e.slice(4),a=Va(r,1),l=a[0],d=null;return Array.isArray(l)?d={tag:"g",attributes:{class:"".concat(Se.cssPrefix,"-").concat(Zn.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Se.cssPrefix,"-").concat(Zn.SECONDARY),fill:"currentColor",d:l[0]}},{tag:"path",attributes:{class:"".concat(Se.cssPrefix,"-").concat(Zn.PRIMARY),fill:"currentColor",d:l[1]}}]}:d={tag:"path",attributes:{fill:"currentColor",d:l}},{found:!0,width:t,height:n,icon:d}}var Eg={found:!1,width:512,height:512};function Rg(e,t){!oh&&!Se.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function oa(e,t){var n=t;return t==="fa"&&Se.styleDefault!==null&&(t=In()),new Promise(function(r,a){if(mn("missingIconAbstract"),n==="fa"){var l=bh(e)||{};e=l.iconName||e,t=l.prefix||t}if(e&&t&&Ro[t]&&Ro[t][e]){var d=Ro[t][e];return r(sa(d))}Rg(e,t),r(be(be({},Eg),{},{icon:Se.showMissingIcons&&e?mn("missingIconAbstract")||{}:{}}))})}var cc=function(){},aa=Se.measurePerformance&&Gi&&Gi.mark&&Gi.measure?Gi:{mark:cc,measure:cc},Ur='FA "6.5.2"',Tg=function(t){return aa.mark("".concat(Ur," ").concat(t," begins")),function(){return _h(t)}},_h=function(t){aa.mark("".concat(Ur," ").concat(t," ends")),aa.measure("".concat(Ur," ").concat(t),"".concat(Ur," ").concat(t," begins"),"".concat(Ur," ").concat(t," ends"))},nl={begin:Tg,end:_h},us=function(){};function uc(e){var t=e.getAttribute?e.getAttribute(tr):null;return typeof t=="string"}function Lg(e){var t=e.getAttribute?e.getAttribute(Ka):null,n=e.getAttribute?e.getAttribute(Ya):null;return t&&n}function Mg(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(Se.replacementClass)}function Og(){if(Se.autoReplaceSvg===!0)return hs.replace;var e=hs[Se.autoReplaceSvg];return e||hs.replace}function Ig(e){return st.createElementNS("http://www.w3.org/2000/svg",e)}function Ng(e){return st.createElement(e)}function Sh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?Ig:Ng:n;if(typeof e=="string")return st.createTextNode(e);var a=r(e.tag);Object.keys(e.attributes||[]).forEach(function(d){a.setAttribute(d,e.attributes[d])});var l=e.children||[];return l.forEach(function(d){a.appendChild(Sh(d,{ceFn:r}))}),a}function Fg(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var hs={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(a){n.parentNode.insertBefore(Sh(a),n)}),n.getAttribute(tr)===null&&Se.keepOriginalSource){var r=st.createComment(Fg(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~Xa(n).indexOf(Se.replacementClass))return hs.replace(t);var a=new RegExp("".concat(Se.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var l=r[0].attributes.class.split(" ").reduce(function(g,o){return o===Se.replacementClass||o.match(a)?g.toSvg.push(o):g.toNode.push(o),g},{toNode:[],toSvg:[]});r[0].attributes.class=l.toSvg.join(" "),l.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",l.toNode.join(" "))}var d=r.map(function(g){return Oi(g)}).join(`
761
+ `);n.setAttribute(tr,""),n.innerHTML=d}};function hc(e){e()}function $h(e,t){var n=typeof t=="function"?t:us;if(e.length===0)n();else{var r=hc;Se.mutateApproach===Hp&&(r=On.requestAnimationFrame||hc),r(function(){var a=Og(),l=nl.begin("mutate");e.map(a),l(),n()})}}var rl=!1;function xh(){rl=!0}function la(){rl=!1}var xs=null;function dc(e){if(tc&&Se.observeMutations){var t=e.treeCallback,n=t===void 0?us:t,r=e.nodeCallback,a=r===void 0?us:r,l=e.pseudoElementsCallback,d=l===void 0?us:l,g=e.observeMutationsRoot,o=g===void 0?st:g;xs=new tc(function(p){if(!rl){var i=In();Lr(p).forEach(function(s){if(s.type==="childList"&&s.addedNodes.length>0&&!uc(s.addedNodes[0])&&(Se.searchPseudoElements&&d(s.target),n(s.target)),s.type==="attributes"&&s.target.parentNode&&Se.searchPseudoElements&&d(s.target.parentNode),s.type==="attributes"&&uc(s.target)&&~Yp.indexOf(s.attributeName))if(s.attributeName==="class"&&Lg(s.target)){var c=Ks(Xa(s.target)),u=c.prefix,h=c.iconName;s.target.setAttribute(Ka,u||i),h&&s.target.setAttribute(Ya,h)}else Mg(s.target)&&a(s.target)})}}),yn&&xs.observe(o,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Dg(){xs&&xs.disconnect()}function Pg(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,a){var l=a.split(":"),d=l[0],g=l.slice(1);return d&&g.length>0&&(r[d]=g.join(":").trim()),r},{})),n}function Wg(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",a=Ks(Xa(e));return a.prefix||(a.prefix=In()),t&&n&&(a.prefix=t,a.iconName=n),a.iconName&&a.prefix||(a.prefix&&r.length>0&&(a.iconName=mg(a.prefix,e.innerText)||Ja(a.prefix,ta(e.innerText))),!a.iconName&&Se.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(a.iconName=e.firstChild.data)),a}function Bg(e){var t=Lr(e.attributes).reduce(function(a,l){return a.name!=="class"&&a.name!=="style"&&(a[l.name]=l.value),a},{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return Se.autoA11y&&(n?t["aria-labelledby"]="".concat(Se.replacementClass,"-title-").concat(r||ai()):(t["aria-hidden"]="true",t.focusable="false")),t}function Hg(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Jt,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function fc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=Wg(e),r=n.iconName,a=n.prefix,l=n.rest,d=Bg(e),g=ra("parseNodeAttributes",{},e),o=t.styleParser?Pg(e):[];return be({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:a,transform:Jt,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:l,styles:o,attributes:d}},g)}var zg=Bt.styles;function Ch(e){var t=Se.autoReplaceSvg==="nest"?fc(e,{styleParser:!1}):fc(e);return~t.extra.classes.indexOf(ah)?mn("generateLayersText",e,t):mn("generateSvgReplacementMutation",e,t)}var Nn=new Set;Za.map(function(e){Nn.add("fa-".concat(e))});Object.keys(ri[nt]).map(Nn.add.bind(Nn));Object.keys(ri[lt]).map(Nn.add.bind(Nn));Nn=Li(Nn);function pc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!yn)return Promise.resolve();var n=st.documentElement.classList,r=function(s){return n.add("".concat(nc,"-").concat(s))},a=function(s){return n.remove("".concat(nc,"-").concat(s))},l=Se.autoFetchSvg?Nn:Za.map(function(i){return"fa-".concat(i)}).concat(Object.keys(zg));l.includes("fa")||l.push("fa");var d=[".".concat(ah,":not([").concat(tr,"])")].concat(l.map(function(i){return".".concat(i,":not([").concat(tr,"])")})).join(", ");if(d.length===0)return Promise.resolve();var g=[];try{g=Lr(e.querySelectorAll(d))}catch{}if(g.length>0)r("pending"),a("complete");else return Promise.resolve();var o=nl.begin("onTree"),p=g.reduce(function(i,s){try{var c=Ch(s);c&&i.push(c)}catch(u){oh||u.name==="MissingIcon"&&console.error(u)}return i},[]);return new Promise(function(i,s){Promise.all(p).then(function(c){$h(c,function(){r("active"),r("complete"),a("pending"),typeof t=="function"&&t(),o(),i()})}).catch(function(c){o(),s(c)})})}function Ug(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Ch(e).then(function(n){n&&$h([n],t)})}function jg(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:ia(t||{}),a=n.mask;return a&&(a=(a||{}).icon?a:ia(a||{})),e(r,be(be({},n),{},{mask:a}))}}var Vg=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,a=r===void 0?Jt:r,l=n.symbol,d=l===void 0?!1:l,g=n.mask,o=g===void 0?null:g,p=n.maskId,i=p===void 0?null:p,s=n.title,c=s===void 0?null:s,u=n.titleId,h=u===void 0?null:u,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 S=t.prefix,b=t.iconName,A=t.icon;return Ys(be({type:"icon"},t),function(){return nr("beforeDOMElementCreation",{iconDefinition:t,params:n}),Se.autoA11y&&(c?y["aria-labelledby"]="".concat(Se.replacementClass,"-title-").concat(h||ai()):(y["aria-hidden"]="true",y.focusable="false")),tl({icons:{main:sa(A),mask:o?sa(o.icon):{found:!1,width:null,height:null,icon:{}}},prefix:S,iconName:b,transform:be(be({},Jt),a),symbol:d,title:c,maskId:i,titleId:h,extra:{attributes:y,styles:_,classes:m}})})}},Gg={mixout:function(){return{icon:jg(Vg)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=pc,n.nodeCallback=Ug,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,a=r===void 0?st:r,l=n.callback,d=l===void 0?function(){}:l;return pc(a,d)},t.generateSvgReplacementMutation=function(n,r){var a=r.iconName,l=r.title,d=r.titleId,g=r.prefix,o=r.transform,p=r.symbol,i=r.mask,s=r.maskId,c=r.extra;return new Promise(function(u,h){Promise.all([oa(a,g),i.iconName?oa(i.iconName,i.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(f){var m=Va(f,2),v=m[0],y=m[1];u([n,tl({icons:{main:v,mask:y},prefix:g,iconName:a,transform:o,symbol:p,maskId:s,title:l,titleId:d,extra:c,watchable:!0})])}).catch(h)})},t.generateAbstractIcon=function(n){var r=n.children,a=n.attributes,l=n.main,d=n.transform,g=n.styles,o=Vs(g);o.length>0&&(a.style=o);var p;return qa(d)&&(p=mn("generateAbstractTransformGrouping",{main:l,transform:d,containerWidth:l.width,iconWidth:l.width})),r.push(p||l.icon),{children:r,attributes:a}}}},Kg={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.classes,l=a===void 0?[]:a;return Ys({type:"layer"},function(){nr("beforeDOMElementCreation",{assembler:n,params:r});var d=[];return n(function(g){Array.isArray(g)?g.map(function(o){d=d.concat(o.abstract)}):d=d.concat(g.abstract)}),[{tag:"span",attributes:{class:["".concat(Se.cssPrefix,"-layers")].concat(Li(l)).join(" ")},children:d}]})}}}},Yg={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.title,l=a===void 0?null:a,d=r.classes,g=d===void 0?[]:d,o=r.attributes,p=o===void 0?{}:o,i=r.styles,s=i===void 0?{}:i;return Ys({type:"counter",content:n},function(){return nr("beforeDOMElementCreation",{content:n,params:r}),kg({content:n.toString(),title:l,extra:{attributes:p,styles:s,classes:["".concat(Se.cssPrefix,"-layers-counter")].concat(Li(g))}})})}}}},Zg={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.transform,l=a===void 0?Jt:a,d=r.title,g=d===void 0?null:d,o=r.classes,p=o===void 0?[]:o,i=r.attributes,s=i===void 0?{}:i,c=r.styles,u=c===void 0?{}:c;return Ys({type:"text",content:n},function(){return nr("beforeDOMElementCreation",{content:n,params:r}),lc({content:n,transform:be(be({},Jt),l),title:g,extra:{attributes:s,styles:u,classes:["".concat(Se.cssPrefix,"-layers-text")].concat(Li(p))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var a=r.title,l=r.transform,d=r.extra,g=null,o=null;if(rh){var p=parseInt(getComputedStyle(n).fontSize,10),i=n.getBoundingClientRect();g=i.width/p,o=i.height/p}return Se.autoA11y&&!a&&(d.attributes["aria-hidden"]="true"),Promise.resolve([n,lc({content:n.innerHTML,width:g,height:o,transform:l,title:a,extra:d,watchable:!0})])}}},Xg=new RegExp('"',"ug"),gc=[1105920,1112319];function qg(e){var t=e.replace(Xg,""),n=ug(t,0),r=n>=gc[0]&&n<=gc[1],a=t.length===2?t[0]===t[1]:!1;return{value:ta(a?t[0]:t),isSecondary:r||a}}function mc(e,t){var n="".concat(Bp).concat(t.replace(":","-"));return new Promise(function(r,a){if(e.getAttribute(n)!==null)return r();var l=Lr(e.children),d=l.filter(function(A){return A.getAttribute(ea)===t})[0],g=On.getComputedStyle(e,t),o=g.getPropertyValue("font-family").match(Vp),p=g.getPropertyValue("font-weight"),i=g.getPropertyValue("content");if(d&&!o)return e.removeChild(d),r();if(o&&i!=="none"&&i!==""){var s=g.getPropertyValue("content"),c=~["Sharp"].indexOf(o[2])?lt:nt,u=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(o[2])?ii[c][o[2].toLowerCase()]:Gp[c][p],h=qg(s),f=h.value,m=h.isSecondary,v=o[0].startsWith("FontAwesome"),y=Ja(u,f),x=y;if(v){var _=vg(f);_.iconName&&_.prefix&&(y=_.iconName,u=_.prefix)}if(y&&!m&&(!d||d.getAttribute(Ka)!==u||d.getAttribute(Ya)!==x)){e.setAttribute(n,x),d&&e.removeChild(d);var S=Hg(),b=S.extra;b.attributes[ea]=t,oa(y,u).then(function(A){var L=tl(be(be({},S),{},{icons:{main:A,mask:el()},prefix:u,iconName:x,extra:b,watchable:!0})),E=st.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(E,e.firstChild):e.appendChild(E),E.outerHTML=L.map(function(M){return Oi(M)}).join(`
762
+ `),e.removeAttribute(n),r()}).catch(a)}else r()}else r()})}function Qg(e){return Promise.all([mc(e,"::before"),mc(e,"::after")])}function Jg(e){return e.parentNode!==document.head&&!~zp.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(ea)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function vc(e){if(yn)return new Promise(function(t,n){var r=Lr(e.querySelectorAll("*")).filter(Jg).map(Qg),a=nl.begin("searchPseudoElements");xh(),Promise.all(r).then(function(){a(),la(),t()}).catch(function(){a(),la(),n()})})}var em={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=vc,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,a=r===void 0?st:r;Se.searchPseudoElements&&vc(a)}}},yc=!1,tm={mixout:function(){return{dom:{unwatch:function(){xh(),yc=!0}}}},hooks:function(){return{bootstrap:function(){dc(ra("mutationObserverCallbacks",{}))},noAuto:function(){Dg()},watch:function(n){var r=n.observeMutationsRoot;yc?la():dc(ra("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},bc=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,a){var l=a.toLowerCase().split("-"),d=l[0],g=l.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)},nm={mixout:function(){return{parse:{transform:function(n){return bc(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var a=r.getAttribute("data-fa-transform");return a&&(n.transform=bc(a)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,a=n.transform,l=n.containerWidth,d=n.iconWidth,g={transform:"translate(".concat(l/2," 256)")},o="translate(".concat(a.x*32,", ").concat(a.y*32,") "),p="scale(".concat(a.size/16*(a.flipX?-1:1),", ").concat(a.size/16*(a.flipY?-1:1),") "),i="rotate(".concat(a.rotate," 0 0)"),s={transform:"".concat(o," ").concat(p," ").concat(i)},c={transform:"translate(".concat(d/2*-1," -256)")},u={outer:g,inner:s,path:c};return{tag:"g",attributes:be({},u.outer),children:[{tag:"g",attributes:be({},u.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:be(be({},r.icon.attributes),u.path)}]}]}}}},To={x:0,y:0,width:"100%",height:"100%"};function wc(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 rm(e){return e.tag==="g"?e.children:[e]}var im={hooks:function(){return{parseNodeAttributes:function(n,r){var a=r.getAttribute("data-fa-mask"),l=a?Ks(a.split(" ").map(function(d){return d.trim()})):el();return l.prefix||(l.prefix=In()),n.mask=l,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,a=n.attributes,l=n.main,d=n.mask,g=n.maskId,o=n.transform,p=l.width,i=l.icon,s=d.width,c=d.icon,u=rg({transform:o,containerWidth:s,iconWidth:p}),h={tag:"rect",attributes:be(be({},To),{},{fill:"white"})},f=i.children?{children:i.children.map(wc)}:{},m={tag:"g",attributes:be({},u.inner),children:[wc(be({tag:i.tag,attributes:be(be({},i.attributes),u.path)},f))]},v={tag:"g",attributes:be({},u.outer),children:[m]},y="mask-".concat(g||ai()),x="clip-".concat(g||ai()),_={tag:"mask",attributes:be(be({},To),{},{id:y,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[h,v]},S={tag:"defs",children:[{tag:"clipPath",attributes:{id:x},children:rm(c)},_]};return r.push(S,{tag:"rect",attributes:be({fill:"currentColor","clip-path":"url(#".concat(x,")"),mask:"url(#".concat(y,")")},To)}),{children:r,attributes:a}}}},sm={provides:function(t){var n=!1;On.matchMedia&&(n=On.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],a={fill:"currentColor"},l={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:be(be({},a),{},{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=be(be({},l),{},{attributeName:"opacity"}),g={tag:"circle",attributes:be(be({},a),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||g.children.push({tag:"animate",attributes:be(be({},l),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:be(be({},d),{},{values:"1;0;1;1;0;1;"})}),r.push(g),r.push({tag:"path",attributes:be(be({},a),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:be(be({},d),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:be(be({},a),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:be(be({},d),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},om={hooks:function(){return{parseNodeAttributes:function(n,r){var a=r.getAttribute("data-fa-symbol"),l=a===null?!1:a===""?!0:a;return n.symbol=l,n}}}},am=[og,Gg,Kg,Yg,Zg,em,tm,nm,im,sm,om];wg(am,{mixoutsTo:Ft});Ft.noAuto;Ft.config;var lm=Ft.library;Ft.dom;var ca=Ft.parse;Ft.findIconDefinition;Ft.toHtml;var cm=Ft.icon;Ft.layer;Ft.text;Ft.counter;var um={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"]},hm={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"]},dm=hm,fm={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"]},pm={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"]},gm={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"]},mm=gm,vm={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"]},ym={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"]},bm={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"]},wm={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"]},Ah={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"]},_m=Ah,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"]},$m={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"]},xm=$m,Cm={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"]},Am={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"]},km={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"]},Em={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"]},Rm={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"]},Tm={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.31
764
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
765
+ * @license MIT
766
+ **//*! #__NO_SIDE_EFFECTS__ */function il(e,t){const n=new Set(e.split(","));return r=>n.has(r)}const tt={},yr=[],Pt=()=>{},Lm=()=>!1,Zs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),sl=e=>e.startsWith("onUpdate:"),ft=Object.assign,ol=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Mm=Object.prototype.hasOwnProperty,Ue=(e,t)=>Mm.call(e,t),Ie=Array.isArray,br=e=>Xs(e)==="[object Map]",kh=e=>Xs(e)==="[object Set]",Ne=e=>typeof e=="function",dt=e=>typeof e=="string",Hn=e=>typeof e=="symbol",ot=e=>e!==null&&typeof e=="object",Eh=e=>(ot(e)||Ne(e))&&Ne(e.then)&&Ne(e.catch),Rh=Object.prototype.toString,Xs=e=>Rh.call(e),Om=e=>Xs(e).slice(8,-1),Th=e=>Xs(e)==="[object Object]",al=e=>dt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Zr=il(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),qs=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Im=/-(\w)/g,nn=qs(e=>e.replace(Im,(t,n)=>n?n.toUpperCase():"")),Nm=/\B([A-Z])/g,Mr=qs(e=>e.replace(Nm,"-$1").toLowerCase()),Ii=qs(e=>e.charAt(0).toUpperCase()+e.slice(1)),Lo=qs(e=>e?`on${Ii(e)}`:""),Fn=(e,t)=>!Object.is(e,t),ds=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Lh=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},ua=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let _c;const Mh=()=>_c||(_c=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ll(e){if(Ie(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],a=dt(r)?Wm(r):ll(r);if(a)for(const l in a)t[l]=a[l]}return t}else if(dt(e)||ot(e))return e}const Fm=/;(?![^(]*\))/g,Dm=/:([^]+)/,Pm=/\/\*[^]*?\*\//g;function Wm(e){const t={};return e.replace(Pm,"").split(Fm).forEach(n=>{if(n){const r=n.split(Dm);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Ni(e){let t="";if(dt(e))t=e;else if(Ie(e))for(let n=0;n<e.length;n++){const r=Ni(e[n]);r&&(t+=r+" ")}else if(ot(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Bm="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Hm=il(Bm);function Oh(e){return!!e||e===""}const Ih=e=>!!(e&&e.__v_isRef===!0),_e=e=>dt(e)?e:e==null?"":Ie(e)||ot(e)&&(e.toString===Rh||!Ne(e.toString))?Ih(e)?_e(e.value):JSON.stringify(e,Nh,2):String(e),Nh=(e,t)=>Ih(t)?Nh(e,t.value):br(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,a],l)=>(n[Mo(r,l)+" =>"]=a,n),{})}:kh(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Mo(n))}:Hn(t)?Mo(t):ot(t)&&!Ie(t)&&!Th(t)?String(t):t,Mo=(e,t="")=>{var n;return Hn(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
767
+ * @vue/reactivity v3.4.31
768
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
769
+ * @license MIT
770
+ **/let Ot;class Fh{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ot,!t&&Ot&&(this.index=(Ot.scopes||(Ot.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ot;try{return Ot=this,t()}finally{Ot=n}}}on(){Ot=this}off(){Ot=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 a=this.parent.scopes.pop();a&&a!==this&&(this.parent.scopes[this.index]=a,a.index=this.index)}this.parent=void 0,this._active=!1}}}function zm(e){return new Fh(e)}function Um(e,t=Ot){t&&t.active&&t.effects.push(e)}function Dh(){return Ot}function jm(e){Ot&&Ot.cleanups.push(e)}let qn;class cl{constructor(t,n,r,a){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,Um(this,a)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,zn();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(Vm(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Un()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Ln,n=qn;try{return Ln=!0,qn=this,this._runnings++,Sc(this),this.fn()}finally{$c(this),this._runnings--,qn=n,Ln=t}}stop(){this.active&&(Sc(this),$c(this),this.onStop&&this.onStop(),this.active=!1)}}function Vm(e){return e.value}function Sc(e){e._trackId++,e._depsLength=0}function $c(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Ph(e.deps[t],e);e.deps.length=e._depsLength}}function Ph(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let Ln=!0,ha=0;const Wh=[];function zn(){Wh.push(Ln),Ln=!1}function Un(){const e=Wh.pop();Ln=e===void 0?!0:e}function ul(){ha++}function hl(){for(ha--;!ha&&da.length;)da.shift()()}function Bh(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const r=e.deps[e._depsLength];r!==t?(r&&Ph(r,e),e.deps[e._depsLength++]=t):e._depsLength++}}const da=[];function Hh(e,t,n){ul();for(const r of e.keys()){let a;r._dirtyLevel<t&&(a??(a=e.get(r)===r._trackId))&&(r._shouldSchedule||(r._shouldSchedule=r._dirtyLevel===0),r._dirtyLevel=t),r._shouldSchedule&&(a??(a=e.get(r)===r._trackId))&&(r.trigger(),(!r._runnings||r.allowRecurse)&&r._dirtyLevel!==2&&(r._shouldSchedule=!1,r.scheduler&&da.push(r.scheduler)))}hl()}const zh=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Cs=new WeakMap,Qn=Symbol(""),fa=Symbol("");function Lt(e,t,n){if(Ln&&qn){let r=Cs.get(e);r||Cs.set(e,r=new Map);let a=r.get(n);a||r.set(n,a=zh(()=>r.delete(n))),Bh(qn,a)}}function fn(e,t,n,r,a,l){const d=Cs.get(e);if(!d)return;let g=[];if(t==="clear")g=[...d.values()];else if(n==="length"&&Ie(e)){const o=Number(r);d.forEach((p,i)=>{(i==="length"||!Hn(i)&&i>=o)&&g.push(p)})}else switch(n!==void 0&&g.push(d.get(n)),t){case"add":Ie(e)?al(n)&&g.push(d.get("length")):(g.push(d.get(Qn)),br(e)&&g.push(d.get(fa)));break;case"delete":Ie(e)||(g.push(d.get(Qn)),br(e)&&g.push(d.get(fa)));break;case"set":br(e)&&g.push(d.get(Qn));break}ul();for(const o of g)o&&Hh(o,4);hl()}function Gm(e,t){const n=Cs.get(e);return n&&n.get(t)}const Km=il("__proto__,__v_isRef,__isVue"),Uh=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Hn)),xc=Ym();function Ym(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=Ge(this);for(let l=0,d=this.length;l<d;l++)Lt(r,"get",l+"");const a=r[t](...n);return a===-1||a===!1?r[t](...n.map(Ge)):a}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){zn(),ul();const r=Ge(this)[t].apply(this,n);return hl(),Un(),r}}),e}function Zm(e){Hn(e)||(e=String(e));const t=Ge(this);return Lt(t,"has",e),t.hasOwnProperty(e)}class jh{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){const a=this._isReadonly,l=this._isShallow;if(n==="__v_isReactive")return!a;if(n==="__v_isReadonly")return a;if(n==="__v_isShallow")return l;if(n==="__v_raw")return r===(a?l?lv:Yh:l?Kh:Gh).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const d=Ie(t);if(!a){if(d&&Ue(xc,n))return Reflect.get(xc,n,r);if(n==="hasOwnProperty")return Zm}const g=Reflect.get(t,n,r);return(Hn(n)?Uh.has(n):Km(n))||(a||Lt(t,"get",n),l)?g:ut(g)?d&&al(n)?g:g.value:ot(g)?a?Js(g):Or(g):g}}class Vh extends jh{constructor(t=!1){super(!1,t)}set(t,n,r,a){let l=t[n];if(!this._isShallow){const o=li(l);if(!As(r)&&!li(r)&&(l=Ge(l),r=Ge(r)),!Ie(t)&&ut(l)&&!ut(r))return o?!1:(l.value=r,!0)}const d=Ie(t)&&al(n)?Number(n)<t.length:Ue(t,n),g=Reflect.set(t,n,r,a);return t===Ge(a)&&(d?Fn(r,l)&&fn(t,"set",n,r):fn(t,"add",n,r)),g}deleteProperty(t,n){const r=Ue(t,n);t[n];const a=Reflect.deleteProperty(t,n);return a&&r&&fn(t,"delete",n,void 0),a}has(t,n){const r=Reflect.has(t,n);return(!Hn(n)||!Uh.has(n))&&Lt(t,"has",n),r}ownKeys(t){return Lt(t,"iterate",Ie(t)?"length":Qn),Reflect.ownKeys(t)}}class Xm extends jh{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const qm=new Vh,Qm=new Xm,Jm=new Vh(!0);const dl=e=>e,Qs=e=>Reflect.getPrototypeOf(e);function ts(e,t,n=!1,r=!1){e=e.__v_raw;const a=Ge(e),l=Ge(t);n||(Fn(t,l)&&Lt(a,"get",t),Lt(a,"get",l));const{has:d}=Qs(a),g=r?dl:n?gl:ci;if(d.call(a,t))return g(e.get(t));if(d.call(a,l))return g(e.get(l));e!==a&&e.get(t)}function ns(e,t=!1){const n=this.__v_raw,r=Ge(n),a=Ge(e);return t||(Fn(e,a)&&Lt(r,"has",e),Lt(r,"has",a)),e===a?n.has(e):n.has(e)||n.has(a)}function rs(e,t=!1){return e=e.__v_raw,!t&&Lt(Ge(e),"iterate",Qn),Reflect.get(e,"size",e)}function Cc(e){e=Ge(e);const t=Ge(this);return Qs(t).has.call(t,e)||(t.add(e),fn(t,"add",e,e)),this}function Ac(e,t){t=Ge(t);const n=Ge(this),{has:r,get:a}=Qs(n);let l=r.call(n,e);l||(e=Ge(e),l=r.call(n,e));const d=a.call(n,e);return n.set(e,t),l?Fn(t,d)&&fn(n,"set",e,t):fn(n,"add",e,t),this}function kc(e){const t=Ge(this),{has:n,get:r}=Qs(t);let a=n.call(t,e);a||(e=Ge(e),a=n.call(t,e)),r&&r.call(t,e);const l=t.delete(e);return a&&fn(t,"delete",e,void 0),l}function Ec(){const e=Ge(this),t=e.size!==0,n=e.clear();return t&&fn(e,"clear",void 0,void 0),n}function is(e,t){return function(r,a){const l=this,d=l.__v_raw,g=Ge(d),o=t?dl:e?gl:ci;return!e&&Lt(g,"iterate",Qn),d.forEach((p,i)=>r.call(a,o(p),o(i),l))}}function ss(e,t,n){return function(...r){const a=this.__v_raw,l=Ge(a),d=br(l),g=e==="entries"||e===Symbol.iterator&&d,o=e==="keys"&&d,p=a[e](...r),i=n?dl:t?gl:ci;return!t&&Lt(l,"iterate",o?fa:Qn),{next(){const{value:s,done:c}=p.next();return c?{value:s,done:c}:{value:g?[i(s[0]),i(s[1])]:i(s),done:c}},[Symbol.iterator](){return this}}}}function $n(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ev(){const e={get(l){return ts(this,l)},get size(){return rs(this)},has:ns,add:Cc,set:Ac,delete:kc,clear:Ec,forEach:is(!1,!1)},t={get(l){return ts(this,l,!1,!0)},get size(){return rs(this)},has:ns,add:Cc,set:Ac,delete:kc,clear:Ec,forEach:is(!1,!0)},n={get(l){return ts(this,l,!0)},get size(){return rs(this,!0)},has(l){return ns.call(this,l,!0)},add:$n("add"),set:$n("set"),delete:$n("delete"),clear:$n("clear"),forEach:is(!0,!1)},r={get(l){return ts(this,l,!0,!0)},get size(){return rs(this,!0)},has(l){return ns.call(this,l,!0)},add:$n("add"),set:$n("set"),delete:$n("delete"),clear:$n("clear"),forEach:is(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(l=>{e[l]=ss(l,!1,!1),n[l]=ss(l,!0,!1),t[l]=ss(l,!1,!0),r[l]=ss(l,!0,!0)}),[e,n,t,r]}const[tv,nv,rv,iv]=ev();function fl(e,t){const n=t?e?iv:rv:e?nv:tv;return(r,a,l)=>a==="__v_isReactive"?!e:a==="__v_isReadonly"?e:a==="__v_raw"?r:Reflect.get(Ue(n,a)&&a in r?n:r,a,l)}const sv={get:fl(!1,!1)},ov={get:fl(!1,!0)},av={get:fl(!0,!1)};const Gh=new WeakMap,Kh=new WeakMap,Yh=new WeakMap,lv=new WeakMap;function cv(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function uv(e){return e.__v_skip||!Object.isExtensible(e)?0:cv(Om(e))}function Or(e){return li(e)?e:pl(e,!1,qm,sv,Gh)}function Zh(e){return pl(e,!1,Jm,ov,Kh)}function Js(e){return pl(e,!0,Qm,av,Yh)}function pl(e,t,n,r,a){if(!ot(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const l=a.get(e);if(l)return l;const d=uv(e);if(d===0)return e;const g=new Proxy(e,d===2?r:n);return a.set(e,g),g}function Xr(e){return li(e)?Xr(e.__v_raw):!!(e&&e.__v_isReactive)}function li(e){return!!(e&&e.__v_isReadonly)}function As(e){return!!(e&&e.__v_isShallow)}function Xh(e){return e?!!e.__v_raw:!1}function Ge(e){const t=e&&e.__v_raw;return t?Ge(t):e}function qh(e){return Object.isExtensible(e)&&Lh(e,"__v_skip",!0),e}const ci=e=>ot(e)?Or(e):e,gl=e=>ot(e)?Js(e):e;class Qh{constructor(t,n,r,a){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new cl(()=>t(this._value),()=>qr(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=r}get value(){const t=Ge(this);return(!t._cacheable||t.effect.dirty)&&Fn(t._value,t._value=t.effect.run())&&qr(t,4),ml(t),t.effect._dirtyLevel>=2&&qr(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function hv(e,t,n=!1){let r,a;const l=Ne(e);return l?(r=e,a=Pt):(r=e.get,a=e.set),new Qh(r,a,l||!a,n)}function ml(e){var t;Ln&&qn&&(e=Ge(e),Bh(qn,(t=e.dep)!=null?t:e.dep=zh(()=>e.dep=void 0,e instanceof Qh?e:void 0)))}function qr(e,t=4,n,r){e=Ge(e);const a=e.dep;a&&Hh(a,t)}function ut(e){return!!(e&&e.__v_isRef===!0)}function je(e){return ed(e,!1)}function Jh(e){return ed(e,!0)}function ed(e,t){return ut(e)?e:new dv(e,t)}class dv{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:ci(t)}get value(){return ml(this),this._value}set value(t){const n=this.__v_isShallow||As(t)||li(t);t=n?t:Ge(t),Fn(t,this._rawValue)&&(this._rawValue,this._rawValue=t,this._value=n?t:ci(t),qr(this,4))}}function le(e){return ut(e)?e.value:e}const fv={get:(e,t,n)=>le(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const a=e[t];return ut(a)&&!ut(n)?(a.value=n,!0):Reflect.set(e,t,n,r)}};function td(e){return Xr(e)?e:new Proxy(e,fv)}class pv{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>ml(this),()=>qr(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function nd(e){return new pv(e)}class gv{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 Gm(Ge(this._object),this._key)}}class mv{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function vl(e,t,n){return ut(e)?e:Ne(e)?new mv(e):ot(e)&&arguments.length>1?vv(e,t,n):je(e)}function vv(e,t,n){const r=e[t];return ut(r)?r:new gv(e,t,n)}/**
771
+ * @vue/runtime-core v3.4.31
772
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
773
+ * @license MIT
774
+ **/function Mn(e,t,n,r){try{return r?e(...r):e()}catch(a){eo(a,t,n)}}function Ut(e,t,n,r){if(Ne(e)){const a=Mn(e,t,n,r);return a&&Eh(a)&&a.catch(l=>{eo(l,t,n)}),a}if(Ie(e)){const a=[];for(let l=0;l<e.length;l++)a.push(Ut(e[l],t,n,r));return a}}function eo(e,t,n,r=!0){const a=t?t.vnode:null;if(t){let l=t.parent;const d=t.proxy,g=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const p=l.ec;if(p){for(let i=0;i<p.length;i++)if(p[i](e,d,g)===!1)return}l=l.parent}const o=t.appContext.config.errorHandler;if(o){zn(),Mn(o,null,10,[e,d,g]),Un();return}}yv(e,n,a,r)}function yv(e,t,n,r=!0){console.error(e)}let ui=!1,pa=!1;const wt=[];let Qt=0;const wr=[];let An=null,Yn=0;const rd=Promise.resolve();let yl=null;function Fi(e){const t=yl||rd;return e?t.then(this?e.bind(this):e):t}function bv(e){let t=Qt+1,n=wt.length;for(;t<n;){const r=t+n>>>1,a=wt[r],l=hi(a);l<e||l===e&&a.pre?t=r+1:n=r}return t}function bl(e){(!wt.length||!wt.includes(e,ui&&e.allowRecurse?Qt+1:Qt))&&(e.id==null?wt.push(e):wt.splice(bv(e.id),0,e),id())}function id(){!ui&&!pa&&(pa=!0,yl=rd.then(od))}function wv(e){const t=wt.indexOf(e);t>Qt&&wt.splice(t,1)}function _v(e){Ie(e)?wr.push(...e):(!An||!An.includes(e,e.allowRecurse?Yn+1:Yn))&&wr.push(e),id()}function Rc(e,t,n=ui?Qt+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 sd(e){if(wr.length){const t=[...new Set(wr)].sort((n,r)=>hi(n)-hi(r));if(wr.length=0,An){An.push(...t);return}for(An=t,Yn=0;Yn<An.length;Yn++){const n=An[Yn];n.active!==!1&&n()}An=null,Yn=0}}const hi=e=>e.id==null?1/0:e.id,Sv=(e,t)=>{const n=hi(e)-hi(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function od(e){pa=!1,ui=!0,wt.sort(Sv);try{for(Qt=0;Qt<wt.length;Qt++){const t=wt[Qt];t&&t.active!==!1&&Mn(t,null,14)}}finally{Qt=0,wt.length=0,sd(),ui=!1,yl=null,(wt.length||wr.length)&&od()}}function $v(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||tt;let a=n;const l=t.startsWith("update:"),d=l&&t.slice(7);if(d&&d in r){const i=`${d==="modelValue"?"model":d}Modifiers`,{number:s,trim:c}=r[i]||tt;c&&(a=n.map(u=>dt(u)?u.trim():u)),s&&(a=n.map(ua))}let g,o=r[g=Lo(t)]||r[g=Lo(nn(t))];!o&&l&&(o=r[g=Lo(Mr(t))]),o&&Ut(o,e,6,a);const p=r[g+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[g])return;e.emitted[g]=!0,Ut(p,e,6,a)}}function ad(e,t,n=!1){const r=t.emitsCache,a=r.get(e);if(a!==void 0)return a;const l=e.emits;let d={},g=!1;if(!Ne(e)){const o=p=>{const i=ad(p,t,!0);i&&(g=!0,ft(d,i))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return!l&&!g?(ot(e)&&r.set(e,null),null):(Ie(l)?l.forEach(o=>d[o]=null):ft(d,l),ot(e)&&r.set(e,d),d)}function to(e,t){return!e||!Zs(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ue(e,t[0].toLowerCase()+t.slice(1))||Ue(e,Mr(t))||Ue(e,t))}let Rt=null,no=null;function ks(e){const t=Rt;return Rt=e,no=e&&e.type.__scopeId||null,t}function wl(e){no=e}function _l(){no=null}function rt(e,t=Rt,n){if(!t||e._n)return e;const r=(...a)=>{r._d&&Hc(-1);const l=ks(t);let d;try{d=e(...a)}finally{ks(l),r._d&&Hc(1)}return d};return r._n=!0,r._c=!0,r._d=!0,r}function Oo(e){const{type:t,vnode:n,proxy:r,withProxy:a,propsOptions:[l],slots:d,attrs:g,emit:o,render:p,renderCache:i,props:s,data:c,setupState:u,ctx:h,inheritAttrs:f}=e,m=ks(e);let v,y;try{if(n.shapeFlag&4){const _=a||r,S=_;v=qt(p.call(S,_,i,s,u,c,h)),y=g}else{const _=t;v=qt(_.length>1?_(s,{attrs:g,slots:d,emit:o}):_(s,null)),y=t.props?g:xv(g)}}catch(_){ei.length=0,eo(_,e,1),v=oe(rr)}let x=v;if(y&&f!==!1){const _=Object.keys(y),{shapeFlag:S}=x;_.length&&S&7&&(l&&_.some(sl)&&(y=Cv(y,l)),x=$r(x,y,!1,!0))}return n.dirs&&(x=$r(x,null,!1,!0),x.dirs=x.dirs?x.dirs.concat(n.dirs):n.dirs),n.transition&&(x.transition=n.transition),v=x,ks(m),v}const xv=e=>{let t;for(const n in e)(n==="class"||n==="style"||Zs(n))&&((t||(t={}))[n]=e[n]);return t},Cv=(e,t)=>{const n={};for(const r in e)(!sl(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Av(e,t,n){const{props:r,children:a,component:l}=e,{props:d,children:g,patchFlag:o}=t,p=l.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&o>=0){if(o&1024)return!0;if(o&16)return r?Tc(r,d,p):!!d;if(o&8){const i=t.dynamicProps;for(let s=0;s<i.length;s++){const c=i[s];if(d[c]!==r[c]&&!to(p,c))return!0}}}else return(a||g)&&(!g||!g.$stable)?!0:r===d?!1:r?d?Tc(r,d,p):!0:!!d;return!1}function Tc(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let a=0;a<r.length;a++){const l=r[a];if(t[l]!==e[l]&&!to(n,l))return!0}return!1}function kv({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 Ev="components";function Ze(e,t){return Tv(Ev,e,!0,t)||e}const Rv=Symbol.for("v-ndc");function Tv(e,t,n=!0,r=!1){const a=Rt||vt;if(a){const l=a.type;{const g=_y(l,!1);if(g&&(g===t||g===nn(t)||g===Ii(nn(t))))return l}const d=Lc(a[e]||l[e],t)||Lc(a.appContext[e],t);return!d&&r?l:d}}function Lc(e,t){return e&&(e[t]||e[nn(t)]||e[Ii(nn(t))])}const Lv=e=>e.__isSuspense;function Mv(e,t){t&&t.pendingBranch?Ie(e)?t.effects.push(...e):t.effects.push(e):_v(e)}function ro(e,t,n=vt,r=!1){if(n){const a=n[e]||(n[e]=[]),l=t.__weh||(t.__weh=(...d)=>{zn();const g=Di(n),o=Ut(t,n,e,d);return g(),Un(),o});return r?a.unshift(l):a.push(l),l}}const bn=e=>(t,n=vt)=>{(!so||e==="sp")&&ro(e,(...r)=>t(...r),n)},Ov=bn("bm"),ct=bn("m"),Iv=bn("bu"),Nv=bn("u"),Sl=bn("bum"),ld=bn("um"),Fv=bn("sp"),Dv=bn("rtg"),Pv=bn("rtc");function Wv(e,t=vt){ro("ec",e,t)}function $l(e,t){if(Rt===null)return e;const n=oo(Rt),r=e.dirs||(e.dirs=[]);for(let a=0;a<t.length;a++){let[l,d,g,o=tt]=t[a];l&&(Ne(l)&&(l={mounted:l,updated:l}),l.deep&&Rn(d),r.push({dir:l,instance:n,value:d,oldValue:void 0,arg:g,modifiers:o}))}return e}function jn(e,t,n,r){const a=e.dirs,l=t&&t.dirs;for(let d=0;d<a.length;d++){const g=a[d];l&&(g.oldValue=l[d].value);let o=g.dir[r];o&&(zn(),Ut(o,n,8,[e.el,g,e,t]),Un())}}function Nt(e,t,n,r){let a;const l=n;if(Ie(e)||dt(e)){a=new Array(e.length);for(let d=0,g=e.length;d<g;d++)a[d]=t(e[d],d,void 0,l)}else if(typeof e=="number"){a=new Array(e);for(let d=0;d<e;d++)a[d]=t(d+1,d,void 0,l)}else if(ot(e))if(e[Symbol.iterator])a=Array.from(e,(d,g)=>t(d,g,void 0,l));else{const d=Object.keys(e);a=new Array(d.length);for(let g=0,o=d.length;g<o;g++){const p=d[g];a[g]=t(e[p],p,g,l)}}else a=[];return a}/*! #__NO_SIDE_EFFECTS__ */function xe(e,t){return Ne(e)?ft({name:e.name},t,{setup:e}):e}const fs=e=>!!e.type.__asyncLoader,ga=e=>e?kd(e)?oo(e):ga(e.parent):null,Qr=ft(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=>ga(e.parent),$root:e=>ga(e.root),$emit:e=>e.emit,$options:e=>xl(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,bl(e.update)}),$nextTick:e=>e.n||(e.n=Fi.bind(e.proxy)),$watch:e=>sy.bind(e)}),Io=(e,t)=>e!==tt&&!e.__isScriptSetup&&Ue(e,t),Bv={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:a,props:l,accessCache:d,type:g,appContext:o}=e;let p;if(t[0]!=="$"){const u=d[t];if(u!==void 0)switch(u){case 1:return r[t];case 2:return a[t];case 4:return n[t];case 3:return l[t]}else{if(Io(r,t))return d[t]=1,r[t];if(a!==tt&&Ue(a,t))return d[t]=2,a[t];if((p=e.propsOptions[0])&&Ue(p,t))return d[t]=3,l[t];if(n!==tt&&Ue(n,t))return d[t]=4,n[t];ma&&(d[t]=0)}}const i=Qr[t];let s,c;if(i)return t==="$attrs"&&Lt(e.attrs,"get",""),i(e);if((s=g.__cssModules)&&(s=s[t]))return s;if(n!==tt&&Ue(n,t))return d[t]=4,n[t];if(c=o.config.globalProperties,Ue(c,t))return c[t]},set({_:e},t,n){const{data:r,setupState:a,ctx:l}=e;return Io(a,t)?(a[t]=n,!0):r!==tt&&Ue(r,t)?(r[t]=n,!0):Ue(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(l[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:a,propsOptions:l}},d){let g;return!!n[d]||e!==tt&&Ue(e,d)||Io(t,d)||(g=l[0])&&Ue(g,d)||Ue(r,d)||Ue(Qr,d)||Ue(a.config.globalProperties,d)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ue(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Mc(e){return Ie(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let ma=!0;function Hv(e){const t=xl(e),n=e.proxy,r=e.ctx;ma=!1,t.beforeCreate&&Oc(t.beforeCreate,e,"bc");const{data:a,computed:l,methods:d,watch:g,provide:o,inject:p,created:i,beforeMount:s,mounted:c,beforeUpdate:u,updated:h,activated:f,deactivated:m,beforeDestroy:v,beforeUnmount:y,destroyed:x,unmounted:_,render:S,renderTracked:b,renderTriggered:A,errorCaptured:L,serverPrefetch:E,expose:M,inheritAttrs:C,components:R,directives:$,filters:w}=t;if(p&&zv(p,r,null),d)for(const O in d){const I=d[O];Ne(I)&&(r[O]=I.bind(n))}if(a){const O=a.call(n,n);ot(O)&&(e.data=Or(O))}if(ma=!0,l)for(const O in l){const I=l[O],N=Ne(I)?I.bind(n,n):Ne(I.get)?I.get.bind(n,n):Pt,D=!Ne(I)&&Ne(I.set)?I.set.bind(n):Pt,B=Re({get:N,set:D});Object.defineProperty(r,O,{enumerable:!0,configurable:!0,get:()=>B.value,set:j=>B.value=j})}if(g)for(const O in g)cd(g[O],r,n,O);if(o){const O=Ne(o)?o.call(n):o;Reflect.ownKeys(O).forEach(I=>{ps(I,O[I])})}i&&Oc(i,e,"c");function T(O,I){Ie(I)?I.forEach(N=>O(N.bind(n))):I&&O(I.bind(n))}if(T(Ov,s),T(ct,c),T(Iv,u),T(Nv,h),T(oy,f),T(ay,m),T(Wv,L),T(Pv,b),T(Dv,A),T(Sl,y),T(ld,_),T(Fv,E),Ie(M))if(M.length){const O=e.exposed||(e.exposed={});M.forEach(I=>{Object.defineProperty(O,I,{get:()=>n[I],set:N=>n[I]=N})})}else e.exposed||(e.exposed={});S&&e.render===Pt&&(e.render=S),C!=null&&(e.inheritAttrs=C),R&&(e.components=R),$&&(e.directives=$)}function zv(e,t,n=Pt){Ie(e)&&(e=va(e));for(const r in e){const a=e[r];let l;ot(a)?"default"in a?l=jt(a.from||r,a.default,!0):l=jt(a.from||r):l=jt(a),ut(l)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>l.value,set:d=>l.value=d}):t[r]=l}}function Oc(e,t,n){Ut(Ie(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function cd(e,t,n,r){const a=r.includes(".")?_d(n,r):()=>n[r];if(dt(e)){const l=t[e];Ne(l)&&Qe(a,l)}else if(Ne(e))Qe(a,e.bind(n));else if(ot(e))if(Ie(e))e.forEach(l=>cd(l,t,n,r));else{const l=Ne(e.handler)?e.handler.bind(n):t[e.handler];Ne(l)&&Qe(a,l,e)}}function xl(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:a,optionsCache:l,config:{optionMergeStrategies:d}}=e.appContext,g=l.get(t);let o;return g?o=g:!a.length&&!n&&!r?o=t:(o={},a.length&&a.forEach(p=>Es(o,p,d,!0)),Es(o,t,d)),ot(t)&&l.set(t,o),o}function Es(e,t,n,r=!1){const{mixins:a,extends:l}=t;l&&Es(e,l,n,!0),a&&a.forEach(d=>Es(e,d,n,!0));for(const d in t)if(!(r&&d==="expose")){const g=Uv[d]||n&&n[d];e[d]=g?g(e[d],t[d]):t[d]}return e}const Uv={data:Ic,props:Nc,emits:Nc,methods:jr,computed:jr,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:jr,directives:jr,watch:Vv,provide:Ic,inject:jv};function Ic(e,t){return t?e?function(){return ft(Ne(e)?e.call(this,this):e,Ne(t)?t.call(this,this):t)}:t:e}function jv(e,t){return jr(va(e),va(t))}function va(e){if(Ie(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 jr(e,t){return e?ft(Object.create(null),e,t):t}function Nc(e,t){return e?Ie(e)&&Ie(t)?[...new Set([...e,...t])]:ft(Object.create(null),Mc(e),Mc(t??{})):t}function Vv(e,t){if(!e)return t;if(!t)return e;const n=ft(Object.create(null),e);for(const r in t)n[r]=xt(e[r],t[r]);return n}function ud(){return{app:null,config:{isNativeTag:Lm,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 Gv=0;function Kv(e,t){return function(r,a=null){Ne(r)||(r=ft({},r)),a!=null&&!ot(a)&&(a=null);const l=ud(),d=new WeakSet;let g=!1;const o=l.app={_uid:Gv++,_component:r,_props:a,_container:null,_context:l,_instance:null,version:$y,get config(){return l.config},set config(p){},use(p,...i){return d.has(p)||(p&&Ne(p.install)?(d.add(p),p.install(o,...i)):Ne(p)&&(d.add(p),p(o,...i))),o},mixin(p){return l.mixins.includes(p)||l.mixins.push(p),o},component(p,i){return i?(l.components[p]=i,o):l.components[p]},directive(p,i){return i?(l.directives[p]=i,o):l.directives[p]},mount(p,i,s){if(!g){const c=oe(r,a);return c.appContext=l,s===!0?s="svg":s===!1&&(s=void 0),i&&t?t(c,p):e(c,p,s),g=!0,o._container=p,p.__vue_app__=o,oo(c.component)}},unmount(){g&&(e(null,o._container),delete o._container.__vue_app__)},provide(p,i){return l.provides[p]=i,o},runWithContext(p){const i=Jr;Jr=o;try{return p()}finally{Jr=i}}};return o}}let Jr=null;function ps(e,t){if(vt){let n=vt.provides;const r=vt.parent&&vt.parent.provides;r===n&&(n=vt.provides=Object.create(r)),n[e]=t}}function jt(e,t,n=!1){const r=vt||Rt;if(r||Jr){const a=r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:Jr._context.provides;if(a&&e in a)return a[e];if(arguments.length>1)return n&&Ne(t)?t.call(r&&r.proxy):t}}const hd={},dd=()=>Object.create(hd),fd=e=>Object.getPrototypeOf(e)===hd;function Yv(e,t,n,r=!1){const a={},l=dd();e.propsDefaults=Object.create(null),pd(e,t,a,l);for(const d in e.propsOptions[0])d in a||(a[d]=void 0);n?e.props=r?a:Zh(a):e.type.props?e.props=a:e.props=l,e.attrs=l}function Zv(e,t,n,r){const{props:a,attrs:l,vnode:{patchFlag:d}}=e,g=Ge(a),[o]=e.propsOptions;let p=!1;if((r||d>0)&&!(d&16)){if(d&8){const i=e.vnode.dynamicProps;for(let s=0;s<i.length;s++){let c=i[s];if(to(e.emitsOptions,c))continue;const u=t[c];if(o)if(Ue(l,c))u!==l[c]&&(l[c]=u,p=!0);else{const h=nn(c);a[h]=ya(o,g,h,u,e,!1)}else u!==l[c]&&(l[c]=u,p=!0)}}}else{pd(e,t,a,l)&&(p=!0);let i;for(const s in g)(!t||!Ue(t,s)&&((i=Mr(s))===s||!Ue(t,i)))&&(o?n&&(n[s]!==void 0||n[i]!==void 0)&&(a[s]=ya(o,g,s,void 0,e,!0)):delete a[s]);if(l!==g)for(const s in l)(!t||!Ue(t,s))&&(delete l[s],p=!0)}p&&fn(e.attrs,"set","")}function pd(e,t,n,r){const[a,l]=e.propsOptions;let d=!1,g;if(t)for(let o in t){if(Zr(o))continue;const p=t[o];let i;a&&Ue(a,i=nn(o))?!l||!l.includes(i)?n[i]=p:(g||(g={}))[i]=p:to(e.emitsOptions,o)||(!(o in r)||p!==r[o])&&(r[o]=p,d=!0)}if(l){const o=Ge(n),p=g||tt;for(let i=0;i<l.length;i++){const s=l[i];n[s]=ya(a,o,s,p[s],e,!Ue(p,s))}}return d}function ya(e,t,n,r,a,l){const d=e[n];if(d!=null){const g=Ue(d,"default");if(g&&r===void 0){const o=d.default;if(d.type!==Function&&!d.skipFactory&&Ne(o)){const{propsDefaults:p}=a;if(n in p)r=p[n];else{const i=Di(a);r=p[n]=o.call(null,t),i()}}else r=o}d[0]&&(l&&!g?r=!1:d[1]&&(r===""||r===Mr(n))&&(r=!0))}return r}function gd(e,t,n=!1){const r=t.propsCache,a=r.get(e);if(a)return a;const l=e.props,d={},g=[];let o=!1;if(!Ne(e)){const i=s=>{o=!0;const[c,u]=gd(s,t,!0);ft(d,c),u&&g.push(...u)};!n&&t.mixins.length&&t.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}if(!l&&!o)return ot(e)&&r.set(e,yr),yr;if(Ie(l))for(let i=0;i<l.length;i++){const s=nn(l[i]);Fc(s)&&(d[s]=tt)}else if(l)for(const i in l){const s=nn(i);if(Fc(s)){const c=l[i],u=d[s]=Ie(c)||Ne(c)?{type:c}:ft({},c);if(u){const h=Wc(Boolean,u.type),f=Wc(String,u.type);u[0]=h>-1,u[1]=f<0||h<f,(h>-1||Ue(u,"default"))&&g.push(s)}}}const p=[d,g];return ot(e)&&r.set(e,p),p}function Fc(e){return e[0]!=="$"&&!Zr(e)}function Dc(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Pc(e,t){return Dc(e)===Dc(t)}function Wc(e,t){return Ie(t)?t.findIndex(n=>Pc(n,e)):Ne(t)&&Pc(t,e)?0:-1}const md=e=>e[0]==="_"||e==="$stable",Cl=e=>Ie(e)?e.map(qt):[qt(e)],Xv=(e,t,n)=>{if(t._n)return t;const r=rt((...a)=>Cl(t(...a)),n);return r._c=!1,r},vd=(e,t,n)=>{const r=e._ctx;for(const a in e){if(md(a))continue;const l=e[a];if(Ne(l))t[a]=Xv(a,l,r);else if(l!=null){const d=Cl(l);t[a]=()=>d}}},yd=(e,t)=>{const n=Cl(t);e.slots.default=()=>n},qv=(e,t)=>{const n=e.slots=dd();if(e.vnode.shapeFlag&32){const r=t._;r?(ft(n,t),Lh(n,"_",r,!0)):vd(t,n)}else t&&yd(e,t)},Qv=(e,t,n)=>{const{vnode:r,slots:a}=e;let l=!0,d=tt;if(r.shapeFlag&32){const g=t._;g?n&&g===1?l=!1:(ft(a,t),!n&&g===1&&delete a._):(l=!t.$stable,vd(t,a)),d=t}else t&&(yd(e,t),d={default:1});if(l)for(const g in a)!md(g)&&d[g]==null&&delete a[g]};function ba(e,t,n,r,a=!1){if(Ie(e)){e.forEach((c,u)=>ba(c,t&&(Ie(t)?t[u]:t),n,r,a));return}if(fs(r)&&!a)return;const l=r.shapeFlag&4?oo(r.component):r.el,d=a?null:l,{i:g,r:o}=e,p=t&&t.r,i=g.refs===tt?g.refs={}:g.refs,s=g.setupState;if(p!=null&&p!==o&&(dt(p)?(i[p]=null,Ue(s,p)&&(s[p]=null)):ut(p)&&(p.value=null)),Ne(o))Mn(o,g,12,[d,i]);else{const c=dt(o),u=ut(o);if(c||u){const h=()=>{if(e.f){const f=c?Ue(s,o)?s[o]:i[o]:o.value;a?Ie(f)&&ol(f,l):Ie(f)?f.includes(l)||f.push(l):c?(i[o]=[l],Ue(s,o)&&(s[o]=i[o])):(o.value=[l],e.k&&(i[e.k]=o.value))}else c?(i[o]=d,Ue(s,o)&&(s[o]=d)):u&&(o.value=d,e.k&&(i[e.k]=d))};d?(h.id=-1,Et(h,n)):h()}}}const Et=Mv;function Jv(e){return ey(e)}function ey(e,t){const n=Mh();n.__VUE__=!0;const{insert:r,remove:a,patchProp:l,createElement:d,createText:g,createComment:o,setText:p,setElementText:i,parentNode:s,nextSibling:c,setScopeId:u=Pt,insertStaticContent:h}=e,f=(P,W,K,te=null,ee=null,ce=null,pe=void 0,ue=null,de=!!W.dynamicChildren)=>{if(P===W)return;P&&!Wr(P,W)&&(te=z(P),j(P,ee,ce,!0),P=null),W.patchFlag===-2&&(de=!1,W.dynamicChildren=null);const{type:ie,ref:ve,shapeFlag:ke}=W;switch(ie){case io:m(P,W,K,te);break;case rr:v(P,W,K,te);break;case gs:P==null&&y(W,K,te,pe);break;case We:R(P,W,K,te,ee,ce,pe,ue,de);break;default:ke&1?S(P,W,K,te,ee,ce,pe,ue,de):ke&6?$(P,W,K,te,ee,ce,pe,ue,de):(ke&64||ke&128)&&ie.process(P,W,K,te,ee,ce,pe,ue,de,Q)}ve!=null&&ee&&ba(ve,P&&P.ref,ce,W||P,!W)},m=(P,W,K,te)=>{if(P==null)r(W.el=g(W.children),K,te);else{const ee=W.el=P.el;W.children!==P.children&&p(ee,W.children)}},v=(P,W,K,te)=>{P==null?r(W.el=o(W.children||""),K,te):W.el=P.el},y=(P,W,K,te)=>{[P.el,P.anchor]=h(P.children,W,K,te,P.el,P.anchor)},x=({el:P,anchor:W},K,te)=>{let ee;for(;P&&P!==W;)ee=c(P),r(P,K,te),P=ee;r(W,K,te)},_=({el:P,anchor:W})=>{let K;for(;P&&P!==W;)K=c(P),a(P),P=K;a(W)},S=(P,W,K,te,ee,ce,pe,ue,de)=>{W.type==="svg"?pe="svg":W.type==="math"&&(pe="mathml"),P==null?b(W,K,te,ee,ce,pe,ue,de):E(P,W,ee,ce,pe,ue,de)},b=(P,W,K,te,ee,ce,pe,ue)=>{let de,ie;const{props:ve,shapeFlag:ke,transition:Ee,dirs:X}=P;if(de=P.el=d(P.type,ce,ve&&ve.is,ve),ke&8?i(de,P.children):ke&16&&L(P.children,de,null,te,ee,No(P,ce),pe,ue),X&&jn(P,null,te,"created"),A(de,P,P.scopeId,pe,te),ve){for(const fe in ve)fe!=="value"&&!Zr(fe)&&l(de,fe,null,ve[fe],ce,P.children,te,ee,q);"value"in ve&&l(de,"value",null,ve.value,ce),(ie=ve.onVnodeBeforeMount)&&Xt(ie,te,P)}X&&jn(P,null,te,"beforeMount");const se=ty(ee,Ee);se&&Ee.beforeEnter(de),r(de,W,K),((ie=ve&&ve.onVnodeMounted)||se||X)&&Et(()=>{ie&&Xt(ie,te,P),se&&Ee.enter(de),X&&jn(P,null,te,"mounted")},ee)},A=(P,W,K,te,ee)=>{if(K&&u(P,K),te)for(let ce=0;ce<te.length;ce++)u(P,te[ce]);if(ee){let ce=ee.subTree;if(W===ce){const pe=ee.vnode;A(P,pe,pe.scopeId,pe.slotScopeIds,ee.parent)}}},L=(P,W,K,te,ee,ce,pe,ue,de=0)=>{for(let ie=de;ie<P.length;ie++){const ve=P[ie]=ue?kn(P[ie]):qt(P[ie]);f(null,ve,W,K,te,ee,ce,pe,ue)}},E=(P,W,K,te,ee,ce,pe)=>{const ue=W.el=P.el;let{patchFlag:de,dynamicChildren:ie,dirs:ve}=W;de|=P.patchFlag&16;const ke=P.props||tt,Ee=W.props||tt;let X;if(K&&Vn(K,!1),(X=Ee.onVnodeBeforeUpdate)&&Xt(X,K,W,P),ve&&jn(W,P,K,"beforeUpdate"),K&&Vn(K,!0),ie?M(P.dynamicChildren,ie,ue,K,te,No(W,ee),ce):pe||I(P,W,ue,null,K,te,No(W,ee),ce,!1),de>0){if(de&16)C(ue,W,ke,Ee,K,te,ee);else if(de&2&&ke.class!==Ee.class&&l(ue,"class",null,Ee.class,ee),de&4&&l(ue,"style",ke.style,Ee.style,ee),de&8){const se=W.dynamicProps;for(let fe=0;fe<se.length;fe++){const we=se[fe],Me=ke[we],He=Ee[we];(He!==Me||we==="value")&&l(ue,we,Me,He,ee,P.children,K,te,q)}}de&1&&P.children!==W.children&&i(ue,W.children)}else!pe&&ie==null&&C(ue,W,ke,Ee,K,te,ee);((X=Ee.onVnodeUpdated)||ve)&&Et(()=>{X&&Xt(X,K,W,P),ve&&jn(W,P,K,"updated")},te)},M=(P,W,K,te,ee,ce,pe)=>{for(let ue=0;ue<W.length;ue++){const de=P[ue],ie=W[ue],ve=de.el&&(de.type===We||!Wr(de,ie)||de.shapeFlag&70)?s(de.el):K;f(de,ie,ve,null,te,ee,ce,pe,!0)}},C=(P,W,K,te,ee,ce,pe)=>{if(K!==te){if(K!==tt)for(const ue in K)!Zr(ue)&&!(ue in te)&&l(P,ue,K[ue],null,pe,W.children,ee,ce,q);for(const ue in te){if(Zr(ue))continue;const de=te[ue],ie=K[ue];de!==ie&&ue!=="value"&&l(P,ue,ie,de,pe,W.children,ee,ce,q)}"value"in te&&l(P,"value",K.value,te.value,pe)}},R=(P,W,K,te,ee,ce,pe,ue,de)=>{const ie=W.el=P?P.el:g(""),ve=W.anchor=P?P.anchor:g("");let{patchFlag:ke,dynamicChildren:Ee,slotScopeIds:X}=W;X&&(ue=ue?ue.concat(X):X),P==null?(r(ie,K,te),r(ve,K,te),L(W.children||[],K,ve,ee,ce,pe,ue,de)):ke>0&&ke&64&&Ee&&P.dynamicChildren?(M(P.dynamicChildren,Ee,K,ee,ce,pe,ue),(W.key!=null||ee&&W===ee.subTree)&&bd(P,W,!0)):I(P,W,K,ve,ee,ce,pe,ue,de)},$=(P,W,K,te,ee,ce,pe,ue,de)=>{W.slotScopeIds=ue,P==null?W.shapeFlag&512?ee.ctx.activate(W,K,te,pe,de):w(W,K,te,ee,ce,pe,de):k(P,W,de)},w=(P,W,K,te,ee,ce,pe)=>{const ue=P.component=my(P,te,ee);if(Sd(P)&&(ue.ctx.renderer=Q),vy(ue),ue.asyncDep){if(ee&&ee.registerDep(ue,T,pe),!P.el){const de=ue.subTree=oe(rr);v(null,de,W,K)}}else T(ue,P,W,K,ee,ce,pe)},k=(P,W,K)=>{const te=W.component=P.component;if(Av(P,W,K))if(te.asyncDep&&!te.asyncResolved){O(te,W,K);return}else te.next=W,wv(te.update),te.effect.dirty=!0,te.update();else W.el=P.el,te.vnode=W},T=(P,W,K,te,ee,ce,pe)=>{const ue=()=>{if(P.isMounted){let{next:ve,bu:ke,u:Ee,parent:X,vnode:se}=P;{const qe=wd(P);if(qe){ve&&(ve.el=se.el,O(P,ve,pe)),qe.asyncDep.then(()=>{P.isUnmounted||ue()});return}}let fe=ve,we;Vn(P,!1),ve?(ve.el=se.el,O(P,ve,pe)):ve=se,ke&&ds(ke),(we=ve.props&&ve.props.onVnodeBeforeUpdate)&&Xt(we,X,ve,se),Vn(P,!0);const Me=Oo(P),He=P.subTree;P.subTree=Me,f(He,Me,s(He.el),z(He),P,ee,ce),ve.el=Me.el,fe===null&&kv(P,Me.el),Ee&&Et(Ee,ee),(we=ve.props&&ve.props.onVnodeUpdated)&&Et(()=>Xt(we,X,ve,se),ee)}else{let ve;const{el:ke,props:Ee}=W,{bm:X,m:se,parent:fe}=P,we=fs(W);if(Vn(P,!1),X&&ds(X),!we&&(ve=Ee&&Ee.onVnodeBeforeMount)&&Xt(ve,fe,W),Vn(P,!0),ke&&Ce){const Me=()=>{P.subTree=Oo(P),Ce(ke,P.subTree,P,ee,null)};we?W.type.__asyncLoader().then(()=>!P.isUnmounted&&Me()):Me()}else{const Me=P.subTree=Oo(P);f(null,Me,K,te,P,ee,ce),W.el=Me.el}if(se&&Et(se,ee),!we&&(ve=Ee&&Ee.onVnodeMounted)){const Me=W;Et(()=>Xt(ve,fe,Me),ee)}(W.shapeFlag&256||fe&&fs(fe.vnode)&&fe.vnode.shapeFlag&256)&&P.a&&Et(P.a,ee),P.isMounted=!0,W=K=te=null}},de=P.effect=new cl(ue,Pt,()=>bl(ie),P.scope),ie=P.update=()=>{de.dirty&&de.run()};ie.id=P.uid,Vn(P,!0),ie()},O=(P,W,K)=>{W.component=P;const te=P.vnode.props;P.vnode=W,P.next=null,Zv(P,W.props,te,K),Qv(P,W.children,K),zn(),Rc(P),Un()},I=(P,W,K,te,ee,ce,pe,ue,de=!1)=>{const ie=P&&P.children,ve=P?P.shapeFlag:0,ke=W.children,{patchFlag:Ee,shapeFlag:X}=W;if(Ee>0){if(Ee&128){D(ie,ke,K,te,ee,ce,pe,ue,de);return}else if(Ee&256){N(ie,ke,K,te,ee,ce,pe,ue,de);return}}X&8?(ve&16&&q(ie,ee,ce),ke!==ie&&i(K,ke)):ve&16?X&16?D(ie,ke,K,te,ee,ce,pe,ue,de):q(ie,ee,ce,!0):(ve&8&&i(K,""),X&16&&L(ke,K,te,ee,ce,pe,ue,de))},N=(P,W,K,te,ee,ce,pe,ue,de)=>{P=P||yr,W=W||yr;const ie=P.length,ve=W.length,ke=Math.min(ie,ve);let Ee;for(Ee=0;Ee<ke;Ee++){const X=W[Ee]=de?kn(W[Ee]):qt(W[Ee]);f(P[Ee],X,K,null,ee,ce,pe,ue,de)}ie>ve?q(P,ee,ce,!0,!1,ke):L(W,K,te,ee,ce,pe,ue,de,ke)},D=(P,W,K,te,ee,ce,pe,ue,de)=>{let ie=0;const ve=W.length;let ke=P.length-1,Ee=ve-1;for(;ie<=ke&&ie<=Ee;){const X=P[ie],se=W[ie]=de?kn(W[ie]):qt(W[ie]);if(Wr(X,se))f(X,se,K,null,ee,ce,pe,ue,de);else break;ie++}for(;ie<=ke&&ie<=Ee;){const X=P[ke],se=W[Ee]=de?kn(W[Ee]):qt(W[Ee]);if(Wr(X,se))f(X,se,K,null,ee,ce,pe,ue,de);else break;ke--,Ee--}if(ie>ke){if(ie<=Ee){const X=Ee+1,se=X<ve?W[X].el:te;for(;ie<=Ee;)f(null,W[ie]=de?kn(W[ie]):qt(W[ie]),K,se,ee,ce,pe,ue,de),ie++}}else if(ie>Ee)for(;ie<=ke;)j(P[ie],ee,ce,!0),ie++;else{const X=ie,se=ie,fe=new Map;for(ie=se;ie<=Ee;ie++){const Xe=W[ie]=de?kn(W[ie]):qt(W[ie]);Xe.key!=null&&fe.set(Xe.key,ie)}let we,Me=0;const He=Ee-se+1;let qe=!1,et=0;const Ke=new Array(He);for(ie=0;ie<He;ie++)Ke[ie]=0;for(ie=X;ie<=ke;ie++){const Xe=P[ie];if(Me>=He){j(Xe,ee,ce,!0);continue}let bt;if(Xe.key!=null)bt=fe.get(Xe.key);else for(we=se;we<=Ee;we++)if(Ke[we-se]===0&&Wr(Xe,W[we])){bt=we;break}bt===void 0?j(Xe,ee,ce,!0):(Ke[bt-se]=ie+1,bt>=et?et=bt:qe=!0,f(Xe,W[bt],K,null,ee,ce,pe,ue,de),Me++)}const Ve=qe?ny(Ke):yr;for(we=Ve.length-1,ie=He-1;ie>=0;ie--){const Xe=se+ie,bt=W[Xe],Pr=Xe+1<ve?W[Xe+1].el:te;Ke[ie]===0?f(null,bt,K,Pr,ee,ce,pe,ue,de):qe&&(we<0||ie!==Ve[we]?B(bt,K,Pr,2):we--)}}},B=(P,W,K,te,ee=null)=>{const{el:ce,type:pe,transition:ue,children:de,shapeFlag:ie}=P;if(ie&6){B(P.component.subTree,W,K,te);return}if(ie&128){P.suspense.move(W,K,te);return}if(ie&64){pe.move(P,W,K,Q);return}if(pe===We){r(ce,W,K);for(let ke=0;ke<de.length;ke++)B(de[ke],W,K,te);r(P.anchor,W,K);return}if(pe===gs){x(P,W,K);return}if(te!==2&&ie&1&&ue)if(te===0)ue.beforeEnter(ce),r(ce,W,K),Et(()=>ue.enter(ce),ee);else{const{leave:ke,delayLeave:Ee,afterLeave:X}=ue,se=()=>r(ce,W,K),fe=()=>{ke(ce,()=>{se(),X&&X()})};Ee?Ee(ce,se,fe):fe()}else r(ce,W,K)},j=(P,W,K,te=!1,ee=!1)=>{const{type:ce,props:pe,ref:ue,children:de,dynamicChildren:ie,shapeFlag:ve,patchFlag:ke,dirs:Ee,memoIndex:X}=P;if(ke===-2&&(ee=!1),ue!=null&&ba(ue,null,K,P,!0),X!=null&&(W.renderCache[X]=void 0),ve&256){W.ctx.deactivate(P);return}const se=ve&1&&Ee,fe=!fs(P);let we;if(fe&&(we=pe&&pe.onVnodeBeforeUnmount)&&Xt(we,W,P),ve&6)V(P.component,K,te);else{if(ve&128){P.suspense.unmount(K,te);return}se&&jn(P,null,W,"beforeUnmount"),ve&64?P.type.remove(P,W,K,Q,te):ie&&(ce!==We||ke>0&&ke&64)?q(ie,W,K,!1,!0):(ce===We&&ke&384||!ee&&ve&16)&&q(de,W,K),te&&U(P)}(fe&&(we=pe&&pe.onVnodeUnmounted)||se)&&Et(()=>{we&&Xt(we,W,P),se&&jn(P,null,W,"unmounted")},K)},U=P=>{const{type:W,el:K,anchor:te,transition:ee}=P;if(W===We){H(K,te);return}if(W===gs){_(P);return}const ce=()=>{a(K),ee&&!ee.persisted&&ee.afterLeave&&ee.afterLeave()};if(P.shapeFlag&1&&ee&&!ee.persisted){const{leave:pe,delayLeave:ue}=ee,de=()=>pe(K,ce);ue?ue(P.el,ce,de):de()}else ce()},H=(P,W)=>{let K;for(;P!==W;)K=c(P),a(P),P=K;a(W)},V=(P,W,K)=>{const{bum:te,scope:ee,update:ce,subTree:pe,um:ue,m:de,a:ie}=P;Bc(de),Bc(ie),te&&ds(te),ee.stop(),ce&&(ce.active=!1,j(pe,P,W,K)),ue&&Et(ue,W),Et(()=>{P.isUnmounted=!0},W),W&&W.pendingBranch&&!W.isUnmounted&&P.asyncDep&&!P.asyncResolved&&P.suspenseId===W.pendingId&&(W.deps--,W.deps===0&&W.resolve())},q=(P,W,K,te=!1,ee=!1,ce=0)=>{for(let pe=ce;pe<P.length;pe++)j(P[pe],W,K,te,ee)},z=P=>P.shapeFlag&6?z(P.component.subTree):P.shapeFlag&128?P.suspense.next():c(P.anchor||P.el);let Z=!1;const Y=(P,W,K)=>{P==null?W._vnode&&j(W._vnode,null,null,!0):f(W._vnode||null,P,W,null,null,null,K),Z||(Z=!0,Rc(),sd(),Z=!1),W._vnode=P},Q={p:f,um:j,m:B,r:U,mt:w,mc:L,pc:I,pbc:M,n:z,o:e};let he,Ce;return{render:Y,hydrate:he,createApp:Kv(Y,he)}}function No({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 Vn({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ty(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function bd(e,t,n=!1){const r=e.children,a=t.children;if(Ie(r)&&Ie(a))for(let l=0;l<r.length;l++){const d=r[l];let g=a[l];g.shapeFlag&1&&!g.dynamicChildren&&((g.patchFlag<=0||g.patchFlag===32)&&(g=a[l]=kn(a[l]),g.el=d.el),!n&&g.patchFlag!==-2&&bd(d,g)),g.type===io&&(g.el=d.el)}}function ny(e){const t=e.slice(),n=[0];let r,a,l,d,g;const o=e.length;for(r=0;r<o;r++){const p=e[r];if(p!==0){if(a=n[n.length-1],e[a]<p){t[r]=a,n.push(r);continue}for(l=0,d=n.length-1;l<d;)g=l+d>>1,e[n[g]]<p?l=g+1:d=g;p<e[n[l]]&&(l>0&&(t[r]=n[l-1]),n[l]=r)}}for(l=n.length,d=n[l-1];l-- >0;)n[l]=d,d=t[d];return n}function wd(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:wd(t)}function Bc(e){if(e)for(let t=0;t<e.length;t++)e[t].active=!1}const ry=Symbol.for("v-scx"),iy=()=>jt(ry);function Al(e,t){return kl(e,null,t)}const os={};function Qe(e,t,n){return kl(e,t,n)}function kl(e,t,{immediate:n,deep:r,flush:a,once:l,onTrack:d,onTrigger:g}=tt){if(t&&l){const b=t;t=(...A)=>{b(...A),S()}}const o=vt,p=b=>r===!0?b:Rn(b,r===!1?1:void 0);let i,s=!1,c=!1;if(ut(e)?(i=()=>e.value,s=As(e)):Xr(e)?(i=()=>p(e),s=!0):Ie(e)?(c=!0,s=e.some(b=>Xr(b)||As(b)),i=()=>e.map(b=>{if(ut(b))return b.value;if(Xr(b))return p(b);if(Ne(b))return Mn(b,o,2)})):Ne(e)?t?i=()=>Mn(e,o,2):i=()=>(u&&u(),Ut(e,o,3,[h])):i=Pt,t&&r){const b=i;i=()=>Rn(b())}let u,h=b=>{u=x.onStop=()=>{Mn(b,o,4),u=x.onStop=void 0}},f;if(so)if(h=Pt,t?n&&Ut(t,o,3,[i(),c?[]:void 0,h]):i(),a==="sync"){const b=iy();f=b.__watcherHandles||(b.__watcherHandles=[])}else return Pt;let m=c?new Array(e.length).fill(os):os;const v=()=>{if(!(!x.active||!x.dirty))if(t){const b=x.run();(r||s||(c?b.some((A,L)=>Fn(A,m[L])):Fn(b,m)))&&(u&&u(),Ut(t,o,3,[b,m===os?void 0:c&&m[0]===os?[]:m,h]),m=b)}else x.run()};v.allowRecurse=!!t;let y;a==="sync"?y=v:a==="post"?y=()=>Et(v,o&&o.suspense):(v.pre=!0,o&&(v.id=o.uid),y=()=>bl(v));const x=new cl(i,Pt,y),_=Dh(),S=()=>{x.stop(),_&&ol(_.effects,x)};return t?n?v():m=x.run():a==="post"?Et(x.run.bind(x),o&&o.suspense):x.run(),f&&f.push(S),S}function sy(e,t,n){const r=this.proxy,a=dt(e)?e.includes(".")?_d(r,e):()=>r[e]:e.bind(r,r);let l;Ne(t)?l=t:(l=t.handler,n=t);const d=Di(this),g=kl(a,l.bind(r),n);return d(),g}function _d(e,t){const n=t.split(".");return()=>{let r=e;for(let a=0;a<n.length&&r;a++)r=r[n[a]];return r}}function Rn(e,t=1/0,n){if(t<=0||!ot(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,ut(e))Rn(e.value,t,n);else if(Ie(e))for(let r=0;r<e.length;r++)Rn(e[r],t,n);else if(kh(e)||br(e))e.forEach(r=>{Rn(r,t,n)});else if(Th(e)){for(const r in e)Rn(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Rn(e[r],t,n)}return e}const Sd=e=>e.type.__isKeepAlive;function oy(e,t){$d(e,"a",t)}function ay(e,t){$d(e,"da",t)}function $d(e,t,n=vt){const r=e.__wdc||(e.__wdc=()=>{let a=n;for(;a;){if(a.isDeactivated)return;a=a.parent}return e()});if(ro(t,r,n),n){let a=n.parent;for(;a&&a.parent;)Sd(a.parent.vnode)&&ly(r,t,n,a),a=a.parent}}function ly(e,t,n,r){const a=ro(t,e,r,!0);ld(()=>{ol(r[t],a)},n)}function xd(e,t){e.shapeFlag&6&&e.component?xd(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}const cy=e=>e.__isTeleport,We=Symbol.for("v-fgt"),io=Symbol.for("v-txt"),rr=Symbol.for("v-cmt"),gs=Symbol.for("v-stc"),ei=[];let Ht=null;function G(e=!1){ei.push(Ht=e?null:[])}function uy(){ei.pop(),Ht=ei[ei.length-1]||null}let di=1;function Hc(e){di+=e}function Cd(e){return e.dynamicChildren=di>0?Ht||yr:null,uy(),di>0&&Ht&&Ht.push(e),e}function re(e,t,n,r,a,l){return Cd(F(e,t,n,r,a,l,!0))}function $e(e,t,n,r,a){return Cd(oe(e,t,n,r,a,!0))}function wa(e){return e?e.__v_isVNode===!0:!1}function Wr(e,t){return e.type===t.type&&e.key===t.key}const Ad=({key:e})=>e??null,ms=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?dt(e)||ut(e)||Ne(e)?{i:Rt,r:e,k:t,f:!!n}:e:null);function F(e,t=null,n=null,r=0,a=null,l=e===We?0:1,d=!1,g=!1){const o={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ad(t),ref:t&&ms(t),scopeId:no,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:l,patchFlag:r,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:Rt};return g?(Rl(o,n),l&128&&e.normalize(o)):n&&(o.shapeFlag|=dt(n)?8:16),di>0&&!d&&Ht&&(o.patchFlag>0||l&6)&&o.patchFlag!==32&&Ht.push(o),o}const oe=hy;function hy(e,t=null,n=null,r=0,a=null,l=!1){if((!e||e===Rv)&&(e=rr),wa(e)){const g=$r(e,t,!0);return n&&Rl(g,n),di>0&&!l&&Ht&&(g.shapeFlag&6?Ht[Ht.indexOf(e)]=g:Ht.push(g)),g.patchFlag=-2,g}if(Sy(e)&&(e=e.__vccOpts),t){t=dy(t);let{class:g,style:o}=t;g&&!dt(g)&&(t.class=Ni(g)),ot(o)&&(Xh(o)&&!Ie(o)&&(o=ft({},o)),t.style=ll(o))}const d=dt(e)?1:Lv(e)?128:cy(e)?64:ot(e)?4:Ne(e)?2:0;return F(e,t,n,r,a,d,l,!0)}function dy(e){return e?Xh(e)||fd(e)?ft({},e):e:null}function $r(e,t,n=!1,r=!1){const{props:a,ref:l,patchFlag:d,children:g,transition:o}=e,p=t?fy(a||{},t):a,i={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&Ad(p),ref:t&&t.ref?n&&l?Ie(l)?l.concat(ms(t)):[l,ms(t)]:ms(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:g,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==We?d===-1?16:d|16:d,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:o,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&$r(e.ssContent),ssFallback:e.ssFallback&&$r(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return o&&r&&xd(i,o.clone(i)),i}function it(e=" ",t=0){return oe(io,null,e,t)}function El(e,t){const n=oe(gs,null,e);return n.staticCount=t,n}function ge(e="",t=!1){return t?(G(),$e(rr,null,e)):oe(rr,null,e)}function qt(e){return e==null||typeof e=="boolean"?oe(rr):Ie(e)?oe(We,null,e.slice()):typeof e=="object"?kn(e):oe(io,null,String(e))}function kn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:$r(e)}function Rl(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Ie(t))n=16;else if(typeof t=="object")if(r&65){const a=t.default;a&&(a._c&&(a._d=!1),Rl(e,a()),a._c&&(a._d=!0));return}else{n=32;const a=t._;!a&&!fd(t)?t._ctx=Rt:a===3&&Rt&&(Rt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ne(t)?(t={default:t,_ctx:Rt},n=32):(t=String(t),r&64?(n=16,t=[it(t)]):n=8);e.children=t,e.shapeFlag|=n}function fy(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const a in r)if(a==="class")t.class!==r.class&&(t.class=Ni([t.class,r.class]));else if(a==="style")t.style=ll([t.style,r.style]);else if(Zs(a)){const l=t[a],d=r[a];d&&l!==d&&!(Ie(l)&&l.includes(d))&&(t[a]=l?[].concat(l,d):d)}else a!==""&&(t[a]=r[a])}return t}function Xt(e,t,n,r=null){Ut(e,t,7,[n,r])}const py=ud();let gy=0;function my(e,t,n){const r=e.type,a=(t?t.appContext:e.appContext)||py,l={uid:gy++,vnode:e,type:r,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,scope:new Fh(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:gd(r,a),emitsOptions:ad(r,a),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 l.ctx={_:l},l.root=t?t.root:l,l.emit=$v.bind(null,l),e.ce&&e.ce(l),l}let vt=null;const Tl=()=>vt||Rt;let Rs,_a;{const e=Mh(),t=(n,r)=>{let a;return(a=e[n])||(a=e[n]=[]),a.push(r),l=>{a.length>1?a.forEach(d=>d(l)):a[0](l)}};Rs=t("__VUE_INSTANCE_SETTERS__",n=>vt=n),_a=t("__VUE_SSR_SETTERS__",n=>so=n)}const Di=e=>{const t=vt;return Rs(e),e.scope.on(),()=>{e.scope.off(),Rs(t)}},zc=()=>{vt&&vt.scope.off(),Rs(null)};function kd(e){return e.vnode.shapeFlag&4}let so=!1;function vy(e,t=!1){t&&_a(t);const{props:n,children:r}=e.vnode,a=kd(e);Yv(e,n,a,t),qv(e,r);const l=a?yy(e,t):void 0;return t&&_a(!1),l}function yy(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Bv);const{setup:r}=n;if(r){const a=e.setupContext=r.length>1?wy(e):null,l=Di(e);zn();const d=Mn(r,e,0,[e.props,a]);if(Un(),l(),Eh(d)){if(d.then(zc,zc),t)return d.then(g=>{Uc(e,g,t)}).catch(g=>{eo(g,e,0)});e.asyncDep=d}else Uc(e,d,t)}else Ed(e,t)}function Uc(e,t,n){Ne(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ot(t)&&(e.setupState=td(t)),Ed(e,n)}let jc;function Ed(e,t,n){const r=e.type;if(!e.render){if(!t&&jc&&!r.render){const a=r.template||xl(e).template;if(a){const{isCustomElement:l,compilerOptions:d}=e.appContext.config,{delimiters:g,compilerOptions:o}=r,p=ft(ft({isCustomElement:l,delimiters:g},d),o);r.render=jc(a,p)}}e.render=r.render||Pt}{const a=Di(e);zn();try{Hv(e)}finally{Un(),a()}}}const by={get(e,t){return Lt(e,"get",""),e[t]}};function wy(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,by),slots:e.slots,emit:e.emit,expose:t}}function oo(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(td(qh(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Qr)return Qr[n](e)},has(t,n){return n in t||n in Qr}})):e.proxy}function _y(e,t=!0){return Ne(e)?e.displayName||e.name:e.name||t&&e.__name}function Sy(e){return Ne(e)&&"__vccOpts"in e}const Re=(e,t)=>hv(e,t,so);function ao(e,t,n){const r=arguments.length;return r===2?ot(t)&&!Ie(t)?wa(t)?oe(e,null,[t]):oe(e,t):oe(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&wa(n)&&(n=[n]),oe(e,t,n))}const $y="3.4.31";/**
775
+ * @vue/runtime-dom v3.4.31
776
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
777
+ * @license MIT
778
+ **/const xy="http://www.w3.org/2000/svg",Cy="http://www.w3.org/1998/Math/MathML",un=typeof document<"u"?document:null,Vc=un&&un.createElement("template"),Ay={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 a=t==="svg"?un.createElementNS(xy,e):t==="mathml"?un.createElementNS(Cy,e):n?un.createElement(e,{is:n}):un.createElement(e);return e==="select"&&r&&r.multiple!=null&&a.setAttribute("multiple",r.multiple),a},createText:e=>un.createTextNode(e),createComment:e=>un.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>un.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,a,l){const d=n?n.previousSibling:t.lastChild;if(a&&(a===l||a.nextSibling))for(;t.insertBefore(a.cloneNode(!0),n),!(a===l||!(a=a.nextSibling)););else{Vc.innerHTML=r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e;const g=Vc.content;if(r==="svg"||r==="mathml"){const o=g.firstChild;for(;o.firstChild;)g.appendChild(o.firstChild);g.removeChild(o)}t.insertBefore(g,n)}return[d?d.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},ky=Symbol("_vtc");function Ey(e,t,n){const r=e[ky];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Gc=Symbol("_vod"),Ry=Symbol("_vsh"),Ty=Symbol(""),Ly=/(^|;)\s*display\s*:/;function My(e,t,n){const r=e.style,a=dt(n);let l=!1;if(n&&!a){if(t)if(dt(t))for(const d of t.split(";")){const g=d.slice(0,d.indexOf(":")).trim();n[g]==null&&vs(r,g,"")}else for(const d in t)n[d]==null&&vs(r,d,"");for(const d in n)d==="display"&&(l=!0),vs(r,d,n[d])}else if(a){if(t!==n){const d=r[Ty];d&&(n+=";"+d),r.cssText=n,l=Ly.test(n)}}else t&&e.removeAttribute("style");Gc in e&&(e[Gc]=l?r.display:"",e[Ry]&&(r.display="none"))}const Kc=/\s*!important$/;function vs(e,t,n){if(Ie(n))n.forEach(r=>vs(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Oy(e,t);Kc.test(n)?e.setProperty(Mr(r),n.replace(Kc,""),"important"):e[r]=n}}const Yc=["Webkit","Moz","ms"],Fo={};function Oy(e,t){const n=Fo[t];if(n)return n;let r=nn(t);if(r!=="filter"&&r in e)return Fo[t]=r;r=Ii(r);for(let a=0;a<Yc.length;a++){const l=Yc[a]+r;if(l in e)return Fo[t]=l}return t}const Zc="http://www.w3.org/1999/xlink";function Xc(e,t,n,r,a,l=Hm(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Zc,t.slice(6,t.length)):e.setAttributeNS(Zc,t,n):n==null||l&&!Oh(n)?e.removeAttribute(t):e.setAttribute(t,l?"":Hn(n)?String(n):n)}function Iy(e,t,n,r,a,l,d){if(t==="innerHTML"||t==="textContent"){r&&d(r,a,l),e[t]=n??"";return}const g=e.tagName;if(t==="value"&&g!=="PROGRESS"&&!g.includes("-")){const p=g==="OPTION"?e.getAttribute("value")||"":e.value,i=n==null?"":String(n);(p!==i||!("_value"in e))&&(e.value=i),n==null&&e.removeAttribute(t),e._value=n;return}let o=!1;if(n===""||n==null){const p=typeof e[t];p==="boolean"?n=Oh(n):n==null&&p==="string"?(n="",o=!0):p==="number"&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(t)}function ur(e,t,n,r){e.addEventListener(t,n,r)}function Ny(e,t,n,r){e.removeEventListener(t,n,r)}const qc=Symbol("_vei");function Fy(e,t,n,r,a=null){const l=e[qc]||(e[qc]={}),d=l[t];if(r&&d)d.value=r;else{const[g,o]=Dy(t);if(r){const p=l[t]=By(r,a);ur(e,g,p,o)}else d&&(Ny(e,g,d,o),l[t]=void 0)}}const Qc=/(?:Once|Passive|Capture)$/;function Dy(e){let t;if(Qc.test(e)){t={};let r;for(;r=e.match(Qc);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Mr(e.slice(2)),t]}let Do=0;const Py=Promise.resolve(),Wy=()=>Do||(Py.then(()=>Do=0),Do=Date.now());function By(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Ut(Hy(r,n.value),t,5,[r])};return n.value=e,n.attached=Wy(),n}function Hy(e,t){if(Ie(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>a=>!a._stopped&&r&&r(a))}else return t}const Jc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,zy=(e,t,n,r,a,l,d,g,o)=>{const p=a==="svg";t==="class"?Ey(e,r,p):t==="style"?My(e,n,r):Zs(t)?sl(t)||Fy(e,t,n,r,d):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Uy(e,t,r,p))?(Iy(e,t,r,l,d,g,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Xc(e,t,r,p,d,t!=="value")):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Xc(e,t,r,p))};function Uy(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Jc(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 a=e.tagName;if(a==="IMG"||a==="VIDEO"||a==="CANVAS"||a==="SOURCE")return!1}return Jc(t)&&dt(n)?!1:t in e}const eu=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ie(t)?n=>ds(t,n):t};function jy(e){e.target.composing=!0}function tu(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Po=Symbol("_assign"),Ll={created(e,{modifiers:{lazy:t,trim:n,number:r}},a){e[Po]=eu(a);const l=r||a.props&&a.props.type==="number";ur(e,t?"change":"input",d=>{if(d.target.composing)return;let g=e.value;n&&(g=g.trim()),l&&(g=ua(g)),e[Po](g)}),n&&ur(e,"change",()=>{e.value=e.value.trim()}),t||(ur(e,"compositionstart",jy),ur(e,"compositionend",tu),ur(e,"change",tu))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:a,number:l}},d){if(e[Po]=eu(d),e.composing)return;const g=(l||e.type==="number")&&!/^0\d/.test(e.value)?ua(e.value):e.value,o=t??"";g!==o&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||a&&e.value.trim()===o)||(e.value=o))}},Vy=ft({patchProp:zy},Ay);let nu;function Gy(){return nu||(nu=Jv(Vy))}const Ky=(...e)=>{const t=Gy().createApp(...e),{mount:n}=t;return t.mount=r=>{const a=Zy(r);if(!a)return;const l=t._component;!Ne(l)&&!l.render&&!l.template&&(l.template=a.innerHTML),a.innerHTML="";const d=n(a,!1,Yy(a));return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),d},t};function Yy(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Zy(e){return dt(e)?document.querySelector(e):e}function ru(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function hn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ru(Object(n),!0).forEach(function(r){kt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ru(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xy(e,t){if(typeof e!="object"||!e)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 qy(e){var t=Xy(e,"string");return typeof t=="symbol"?t:t+""}function Ts(e){"@babel/helpers - typeof";return Ts=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},Ts(e)}function kt(e,t,n){return t=qy(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qy(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Jy(e,t){if(e==null)return{};var n=Qy(e,t),r,a;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)r=l[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var e0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Rd={exports:{}};(function(e){(function(t){var n=function(v,y,x){if(!p(y)||s(y)||c(y)||u(y)||o(y))return y;var _,S=0,b=0;if(i(y))for(_=[],b=y.length;S<b;S++)_.push(n(v,y[S],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)},a=function(v){return h(v)?v:(v=v.replace(/[\-_\s]+(.)?/g,function(y,x){return x?x.toUpperCase():""}),v.substr(0,1).toLowerCase()+v.substr(1))},l=function(v){var y=a(v);return y.substr(0,1).toUpperCase()+y.substr(1)},d=function(v,y){return r(v,y).toLowerCase()},g=Object.prototype.toString,o=function(v){return typeof v=="function"},p=function(v){return v===Object(v)},i=function(v){return g.call(v)=="[object Array]"},s=function(v){return g.call(v)=="[object Date]"},c=function(v){return g.call(v)=="[object RegExp]"},u=function(v){return g.call(v)=="[object Boolean]"},h=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(_,S){return x(_,v,S)}},m={camelize:a,decamelize:d,pascalize:l,depascalize:d,camelizeKeys:function(v,y){return n(f(a,y),v)},decamelizeKeys:function(v,y){return n(f(d,y),v,y)},pascalizeKeys:function(v,y){return n(f(l,y),v)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=m:t.humps=m})(e0)})(Rd);var t0=Rd.exports,n0=["class","style"];function r0(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),a=t0.camelize(n.slice(0,r)),l=n.slice(r+1).trim();return t[a]=l,t},{})}function i0(e){return e.split(/\s+/).reduce(function(t,n){return t[n]=!0,t},{})}function Td(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(o){return Td(o)}),a=Object.keys(e.attributes||{}).reduce(function(o,p){var i=e.attributes[p];switch(p){case"class":o.class=i0(i);break;case"style":o.style=r0(i);break;default:o.attrs[p]=i}return o},{attrs:{},class:{},style:{}});n.class;var l=n.style,d=l===void 0?{}:l,g=Jy(n,n0);return ao(e.tag,hn(hn(hn({},t),{},{class:a.class,style:hn(hn({},a.style),d)},a.attrs),g),r)}var Ld=!1;try{Ld=!0}catch{}function s0(){if(!Ld&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Wo(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?kt({},e,t):{}}function o0(e){var t,n=(t={"fa-spin":e.spin,"fa-pulse":e.pulse,"fa-fw":e.fixedWidth,"fa-border":e.border,"fa-li":e.listItem,"fa-inverse":e.inverse,"fa-flip":e.flip===!0,"fa-flip-horizontal":e.flip==="horizontal"||e.flip==="both","fa-flip-vertical":e.flip==="vertical"||e.flip==="both"},kt(kt(kt(kt(kt(kt(kt(kt(kt(kt(t,"fa-".concat(e.size),e.size!==null),"fa-rotate-".concat(e.rotation),e.rotation!==null),"fa-pull-".concat(e.pull),e.pull!==null),"fa-swap-opacity",e.swapOpacity),"fa-bounce",e.bounce),"fa-shake",e.shake),"fa-beat",e.beat),"fa-fade",e.fade),"fa-beat-fade",e.beatFade),"fa-flash",e.flash),kt(kt(t,"fa-spin-pulse",e.spinPulse),"fa-spin-reverse",e.spinReverse));return Object.keys(n).map(function(r){return n[r]?r:null}).filter(function(r){return r})}function iu(e){if(e&&Ts(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(ca.icon)return ca.icon(e);if(e===null)return null;if(Ts(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 a0=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,a=Re(function(){return iu(t.icon)}),l=Re(function(){return Wo("classes",o0(t))}),d=Re(function(){return Wo("transform",typeof t.transform=="string"?ca.transform(t.transform):t.transform)}),g=Re(function(){return Wo("mask",iu(t.mask))}),o=Re(function(){return cm(a.value,hn(hn(hn(hn({},l.value),d.value),g.value),{},{symbol:t.symbol,title:t.title,titleId:t.titleId,maskId:t.maskId}))});Qe(o,function(i){if(!i)return s0("Could not find one or more icon(s)",a.value,g.value)},{immediate:!0});var p=Re(function(){return o.value?Td(o.value.abstract[0],{},r):null});return function(){return p.value}}});function lo(e){return Dh()?(jm(e),!0):!1}function rn(e){return typeof e=="function"?e():le(e)}const Md=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const l0=e=>e!=null,c0=Object.prototype.toString,u0=e=>c0.call(e)==="[object Object]",Od=()=>{};function h0(e,t){function n(...r){return new Promise((a,l)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(a).catch(l)})}return n}const Id=e=>e();function d0(e=Id){const t=je(!0);function n(){t.value=!1}function r(){t.value=!0}const a=(...l)=>{t.value&&e(...l)};return{isActive:Js(t),pause:n,resume:r,eventFilter:a}}function Nd(e){return Tl()}function Fd(...e){if(e.length!==1)return vl(...e);const t=e[0];return typeof t=="function"?Js(nd(()=>({get:t,set:Od}))):je(t)}function f0(e,t,n={}){const{eventFilter:r=Id,...a}=n;return Qe(e,h0(r,t),a)}function p0(e,t,n={}){const{eventFilter:r,...a}=n,{eventFilter:l,pause:d,resume:g,isActive:o}=d0(r);return{stop:f0(e,t,{...a,eventFilter:l}),pause:d,resume:g,isActive:o}}function g0(e,t){Nd()&&Sl(e,t)}function Dd(e,t=!0,n){Nd()?ct(e,n):t?e():Fi(e)}function Pi(e=!1,t={}){const{truthyValue:n=!0,falsyValue:r=!1}=t,a=ut(e),l=je(e);function d(g){if(arguments.length)return l.value=g,l.value;{const o=rn(n);return l.value=l.value===o?rn(r):o,l.value}}return a?d:[l,d]}function Ml(e){var t;const n=rn(e);return(t=n==null?void 0:n.$el)!=null?t:n}const ir=Md?window:void 0,m0=Md?window.document:void 0;function su(...e){let t,n,r,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,a]=e,t=ir):[t,n,r,a]=e,!t)return Od;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const l=[],d=()=>{l.forEach(i=>i()),l.length=0},g=(i,s,c,u)=>(i.addEventListener(s,c,u),()=>i.removeEventListener(s,c,u)),o=Qe(()=>[Ml(t),rn(a)],([i,s])=>{if(d(),!i)return;const c=u0(s)?{...s}:s;l.push(...n.flatMap(u=>r.map(h=>g(i,u,h,c))))},{immediate:!0,flush:"post"}),p=()=>{o(),d()};return lo(p),p}function v0(){const e=je(!1),t=Tl();return t&&ct(()=>{e.value=!0},t),e}function Pd(e){const t=v0();return Re(()=>(t.value,!!e()))}function y0(e,t,n={}){const{window:r=ir,...a}=n;let l;const d=Pd(()=>r&&"MutationObserver"in r),g=()=>{l&&(l.disconnect(),l=void 0)},o=Re(()=>{const c=rn(e),u=(Array.isArray(c)?c:[c]).map(Ml).filter(l0);return new Set(u)}),p=Qe(()=>o.value,c=>{g(),d.value&&c.size&&(l=new MutationObserver(t),c.forEach(u=>l.observe(u,a)))},{immediate:!0,flush:"post"}),i=()=>l==null?void 0:l.takeRecords(),s=()=>{g(),p()};return lo(s),{isSupported:d,stop:s,takeRecords:i}}function b0(e,t={}){const{window:n=ir}=t,r=Pd(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let a;const l=je(!1),d=p=>{l.value=p.matches},g=()=>{a&&("removeEventListener"in a?a.removeEventListener("change",d):a.removeListener(d))},o=Al(()=>{r.value&&(g(),a=n.matchMedia(rn(e)),"addEventListener"in a?a.addEventListener("change",d):a.addListener(d),l.value=a.matches)});return lo(()=>{o(),g(),a=void 0}),l}const as=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ls="__vueuse_ssr_handlers__",w0=_0();function _0(){return ls in as||(as[ls]=as[ls]||{}),as[ls]}function Wd(e,t){return w0[e]||t}function S0(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 $0={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()}},ou="vueuse-storage";function x0(e,t,n,r={}){var a;const{flush:l="pre",deep:d=!0,listenToStorageChanges:g=!0,writeDefaults:o=!0,mergeDefaults:p=!1,shallow:i,window:s=ir,eventFilter:c,onError:u=M=>{console.error(M)},initOnMounted:h}=r,f=(i?Jh:je)(typeof t=="function"?t():t);if(!n)try{n=Wd("getDefaultStorage",()=>{var M;return(M=ir)==null?void 0:M.localStorage})()}catch(M){u(M)}if(!n)return f;const m=rn(t),v=S0(m),y=(a=r.serializer)!=null?a:$0[v],{pause:x,resume:_}=p0(f,()=>b(f.value),{flush:l,deep:d,eventFilter:c});s&&g&&Dd(()=>{su(s,"storage",L),su(s,ou,E),h&&L()}),h||L();function S(M,C){s&&s.dispatchEvent(new CustomEvent(ou,{detail:{key:e,oldValue:M,newValue:C,storageArea:n}}))}function b(M){try{const C=n.getItem(e);if(M==null)S(C,null),n.removeItem(e);else{const R=y.write(M);C!==R&&(n.setItem(e,R),S(C,R))}}catch(C){u(C)}}function A(M){const C=M?M.newValue:n.getItem(e);if(C==null)return o&&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){u(C)}finally{M?Fi(_):_()}}}}function E(M){L(M.detail)}return f}function Bd(e){return b0("(prefers-color-scheme: dark)",e)}function C0(e={}){const{selector:t="html",attribute:n="class",initialValue:r="auto",window:a=ir,storage:l,storageKey:d="vueuse-color-scheme",listenToStorageChanges:g=!0,storageRef:o,emitAuto:p,disableTransition:i=!0}=e,s={auto:"",light:"light",dark:"dark",...e.modes||{}},c=Bd({window:a}),u=Re(()=>c.value?"dark":"light"),h=o||(d==null?Fd(r):x0(d,r,l,{window:a,listenToStorageChanges:g})),f=Re(()=>h.value==="auto"?u.value:h.value),m=Wd("updateHTMLAttrs",(_,S,b)=>{const A=typeof _=="string"?a==null?void 0:a.document.querySelector(_):Ml(_);if(!A)return;let L;if(i&&(L=a.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}")),a.document.head.appendChild(L)),S==="class"){const E=b.split(/\s/g);Object.values(s).flatMap(M=>(M||"").split(/\s/g)).filter(Boolean).forEach(M=>{E.includes(M)?A.classList.add(M):A.classList.remove(M)})}else A.setAttribute(S,b);i&&(a.getComputedStyle(L).opacity,document.head.removeChild(L))});function v(_){var S;m(t,n,(S=s[_])!=null?S:_)}function y(_){e.onChanged?e.onChanged(_,v):v(_)}Qe(f,y,{flush:"post",immediate:!0}),Dd(()=>y(f.value));const x=Re({get(){return p?h.value:f.value},set(_){h.value=_}});try{return Object.assign(x,{store:h,system:u,state:f})}catch{return x}}function Hd(e={}){const{valueDark:t="dark",valueLight:n="",window:r=ir}=e,a=C0({...e,onChanged:(g,o)=>{var p;e.onChanged?(p=e.onChanged)==null||p.call(e,g==="dark",o,g):o(g)},modes:{dark:t,light:n}}),l=Re(()=>a.system?a.system.value:Bd({window:r}).value?"dark":"light");return Re({get(){return a.value==="dark"},set(g){const o=g?"dark":"light";l.value===o?a.value="auto":a.value=o}})}function wn(e=null,t={}){var n,r,a;const{document:l=m0,restoreOnUnmount:d=s=>s}=t,g=(n=l==null?void 0:l.title)!=null?n:"",o=Fd((r=e??(l==null?void 0:l.title))!=null?r:null),p=e&&typeof e=="function";function i(s){if(!("titleTemplate"in t))return s;const c=t.titleTemplate||"%s";return typeof c=="function"?c(s):rn(c).replace(/%s/g,s)}return Qe(o,(s,c)=>{s!==c&&l&&(l.title=i(typeof s=="string"?s:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&l&&!p&&y0((a=l.head)==null?void 0:a.querySelector("title"),()=>{l&&l.title!==o.value&&(o.value=i(l.title))},{childList:!0}),g0(()=>{if(d){const s=d(g,o.value||"");s!=null&&l&&(l.title=s)}}),o}const Ol=e=>(wl("data-v-a9b95eb0"),e=e(),_l(),e),A0={role:"navigation","aria-label":"main navigation",class:"navbar is-fixed-top"},k0=Ol(()=>F("div",{class:"navbar-brand"},[F("a",{class:"navbar-item"},[F("h1",{class:"title"},"Mihari")])],-1)),E0={class:"navbar-menu"},R0={class:"navbar-start"},T0=Ol(()=>F("a",{class:"navbar-item"},[F("a",{href:"/redoc-static.html",target:"_blank",class:"navbar-item"},"API")],-1)),L0=Ol(()=>F("a",{class:"navbar-item"},[F("a",{href:"https://github.com/ninoseki/mihari",target:"_blank",class:"navbar-item"},"GitHub")],-1)),M0={class:"navbar-end"},O0={class:"navbar-item"},I0=xe({__name:"NavbarItem",setup(e){const t=Hd({selector:"html",valueDark:"theme-dark",valueLight:"theme-light"}),n=Pi(t);return(r,a)=>{const l=Ze("router-link"),d=Ze("font-awesome-icon");return G(),re("nav",A0,[k0,F("div",E0,[F("div",R0,[oe(l,{class:"navbar-item",to:{name:"Alerts"}},{default:rt(()=>[it("Alerts")]),_:1}),oe(l,{class:"navbar-item",to:{name:"Artifacts"}},{default:rt(()=>[it("Artifacts")]),_:1}),oe(l,{class:"navbar-item",to:{name:"Rules"}},{default:rt(()=>[it("Rules")]),_:1}),oe(l,{class:"navbar-item",to:{name:"NewRule"}},{default:rt(()=>[it("New Rule")]),_:1}),oe(l,{class:"navbar-item",to:{name:"Config"}},{default:rt(()=>[it("Config")]),_:1}),T0,L0]),F("div",M0,[F("div",O0,[F("span",{class:"icon",onClick:a[0]||(a[0]=g=>le(n)())},[oe(d,{icon:le(t)?"moon":"sun"},null,8,["icon"])])])])])])}}}),Wi=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},N0=Wi(I0,[["__scopeId","data-v-a9b95eb0"]]),F0={class:"section is-medium"},D0={class:"container"},P0=xe({__name:"App",setup(e){return(t,n)=>{const r=Ze("router-view");return G(),re(We,null,[oe(N0),F("section",F0,[F("div",D0,[oe(r)])])],64)}}});/*!
779
+ * vue-router v4.4.0
780
+ * (c) 2024 Eduardo San Martin Morote
781
+ * @license MIT
782
+ */const hr=typeof document<"u";function W0(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Ye=Object.assign;function Bo(e,t){const n={};for(const r in t){const a=t[r];n[r]=Kt(a)?a.map(e):e(a)}return n}const ti=()=>{},Kt=Array.isArray,zd=/#/g,B0=/&/g,H0=/\//g,z0=/=/g,U0=/\?/g,Ud=/\+/g,j0=/%5B/g,V0=/%5D/g,jd=/%5E/g,G0=/%60/g,Vd=/%7B/g,K0=/%7C/g,Gd=/%7D/g,Y0=/%20/g;function Il(e){return encodeURI(""+e).replace(K0,"|").replace(j0,"[").replace(V0,"]")}function Z0(e){return Il(e).replace(Vd,"{").replace(Gd,"}").replace(jd,"^")}function Sa(e){return Il(e).replace(Ud,"%2B").replace(Y0,"+").replace(zd,"%23").replace(B0,"%26").replace(G0,"`").replace(Vd,"{").replace(Gd,"}").replace(jd,"^")}function X0(e){return Sa(e).replace(z0,"%3D")}function q0(e){return Il(e).replace(zd,"%23").replace(U0,"%3F")}function Q0(e){return e==null?"":q0(e).replace(H0,"%2F")}function fi(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const J0=/\/$/,eb=e=>e.replace(J0,"");function Ho(e,t,n="/"){let r,a={},l="",d="";const g=t.indexOf("#");let o=t.indexOf("?");return g<o&&g>=0&&(o=-1),o>-1&&(r=t.slice(0,o),l=t.slice(o+1,g>-1?g:t.length),a=e(l)),g>-1&&(r=r||t.slice(0,g),d=t.slice(g,t.length)),r=ib(r??t,n),{fullPath:r+(l&&"?")+l+d,path:r,query:a,hash:fi(d)}}function tb(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function au(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function nb(e,t,n){const r=t.matched.length-1,a=n.matched.length-1;return r>-1&&r===a&&xr(t.matched[r],n.matched[a])&&Kd(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function xr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Kd(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!rb(e[n],t[n]))return!1;return!0}function rb(e,t){return Kt(e)?lu(e,t):Kt(t)?lu(t,e):e===t}function lu(e,t){return Kt(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function ib(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),a=r[r.length-1];(a===".."||a===".")&&r.push("");let l=n.length-1,d,g;for(d=0;d<r.length;d++)if(g=r[d],g!==".")if(g==="..")l>1&&l--;else break;return n.slice(0,l).join("/")+"/"+r.slice(d).join("/")}const xn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var pi;(function(e){e.pop="pop",e.push="push"})(pi||(pi={}));var ni;(function(e){e.back="back",e.forward="forward",e.unknown=""})(ni||(ni={}));function sb(e){if(!e)if(hr){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),eb(e)}const ob=/^[^#]+#/;function ab(e,t){return e.replace(ob,"#")+t}function lb(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 co=()=>({left:window.scrollX,top:window.scrollY});function cb(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),a=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!a)return;t=lb(a,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 cu(e,t){return(history.state?history.state.position-t:-1)+e}const $a=new Map;function ub(e,t){$a.set(e,t)}function hb(e){const t=$a.get(e);return $a.delete(e),t}let db=()=>location.protocol+"//"+location.host;function Yd(e,t){const{pathname:n,search:r,hash:a}=t,l=e.indexOf("#");if(l>-1){let g=a.includes(e.slice(l))?e.slice(l).length:1,o=a.slice(g);return o[0]!=="/"&&(o="/"+o),au(o,"")}return au(n,e)+r+a}function fb(e,t,n,r){let a=[],l=[],d=null;const g=({state:c})=>{const u=Yd(e,location),h=n.value,f=t.value;let m=0;if(c){if(n.value=u,t.value=c,d&&d===h){d=null;return}m=f?c.position-f.position:0}else r(u);a.forEach(v=>{v(n.value,h,{delta:m,type:pi.pop,direction:m?m>0?ni.forward:ni.back:ni.unknown})})};function o(){d=n.value}function p(c){a.push(c);const u=()=>{const h=a.indexOf(c);h>-1&&a.splice(h,1)};return l.push(u),u}function i(){const{history:c}=window;c.state&&c.replaceState(Ye({},c.state,{scroll:co()}),"")}function s(){for(const c of l)c();l=[],window.removeEventListener("popstate",g),window.removeEventListener("beforeunload",i)}return window.addEventListener("popstate",g),window.addEventListener("beforeunload",i,{passive:!0}),{pauseListeners:o,listen:p,destroy:s}}function uu(e,t,n,r=!1,a=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:a?co():null}}function pb(e){const{history:t,location:n}=window,r={value:Yd(e,n)},a={value:t.state};a.value||l(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function l(o,p,i){const s=e.indexOf("#"),c=s>-1?(n.host&&document.querySelector("base")?e:e.slice(s))+o:db()+e+o;try{t[i?"replaceState":"pushState"](p,"",c),a.value=p}catch(u){console.error(u),n[i?"replace":"assign"](c)}}function d(o,p){const i=Ye({},t.state,uu(a.value.back,o,a.value.forward,!0),p,{position:a.value.position});l(o,i,!0),r.value=o}function g(o,p){const i=Ye({},a.value,t.state,{forward:o,scroll:co()});l(i.current,i,!0);const s=Ye({},uu(r.value,o,null),{position:i.position+1},p);l(o,s,!1),r.value=o}return{location:r,state:a,push:g,replace:d}}function gb(e){e=sb(e);const t=pb(e),n=fb(e,t.state,t.location,t.replace);function r(l,d=!0){d||n.pauseListeners(),history.go(l)}const a=Ye({location:"",base:e,go:r,createHref:ab.bind(null,e)},t,n);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>t.state.value}),a}function mb(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),gb(e)}function vb(e){return typeof e=="string"||e&&typeof e=="object"}function Zd(e){return typeof e=="string"||typeof e=="symbol"}const Xd=Symbol("");var hu;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(hu||(hu={}));function Cr(e,t){return Ye(new Error,{type:e,[Xd]:!0},t)}function ln(e,t){return e instanceof Error&&Xd in e&&(t==null||!!(e.type&t))}const du="[^/]+?",yb={sensitive:!1,strict:!1,start:!0,end:!0},bb=/[.+*?^${}()[\]/\\]/g;function wb(e,t){const n=Ye({},yb,t),r=[];let a=n.start?"^":"";const l=[];for(const p of e){const i=p.length?[]:[90];n.strict&&!p.length&&(a+="/");for(let s=0;s<p.length;s++){const c=p[s];let u=40+(n.sensitive?.25:0);if(c.type===0)s||(a+="/"),a+=c.value.replace(bb,"\\$&"),u+=40;else if(c.type===1){const{value:h,repeatable:f,optional:m,regexp:v}=c;l.push({name:h,repeatable:f,optional:m});const y=v||du;if(y!==du){u+=10;try{new RegExp(`(${y})`)}catch(_){throw new Error(`Invalid custom RegExp for param "${h}" (${y}): `+_.message)}}let x=f?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;s||(x=m&&p.length<2?`(?:/${x})`:"/"+x),m&&(x+="?"),a+=x,u+=20,m&&(u+=-8),f&&(u+=-20),y===".*"&&(u+=-50)}i.push(u)}r.push(i)}if(n.strict&&n.end){const p=r.length-1;r[p][r[p].length-1]+=.7000000000000001}n.strict||(a+="/?"),n.end?a+="$":n.strict&&(a+="(?:/|$)");const d=new RegExp(a,n.sensitive?"":"i");function g(p){const i=p.match(d),s={};if(!i)return null;for(let c=1;c<i.length;c++){const u=i[c]||"",h=l[c-1];s[h.name]=u&&h.repeatable?u.split("/"):u}return s}function o(p){let i="",s=!1;for(const c of e){(!s||!i.endsWith("/"))&&(i+="/"),s=!1;for(const u of c)if(u.type===0)i+=u.value;else if(u.type===1){const{value:h,repeatable:f,optional:m}=u,v=h in p?p[h]:"";if(Kt(v)&&!f)throw new Error(`Provided param "${h}" is an array but it is not repeatable (* or + modifiers)`);const y=Kt(v)?v.join("/"):v;if(!y)if(m)c.length<2&&(i.endsWith("/")?i=i.slice(0,-1):s=!0);else throw new Error(`Missing required param "${h}"`);i+=y}}return i||"/"}return{re:d,score:r,keys:l,parse:g,stringify:o}}function _b(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 qd(e,t){let n=0;const r=e.score,a=t.score;for(;n<r.length&&n<a.length;){const l=_b(r[n],a[n]);if(l)return l;n++}if(Math.abs(a.length-r.length)===1){if(fu(r))return 1;if(fu(a))return-1}return a.length-r.length}function fu(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Sb={type:0,value:""},$b=/[a-zA-Z0-9_]/;function xb(e){if(!e)return[[]];if(e==="/")return[[Sb]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(u){throw new Error(`ERR (${n})/"${p}": ${u}`)}let n=0,r=n;const a=[];let l;function d(){l&&a.push(l),l=[]}let g=0,o,p="",i="";function s(){p&&(n===0?l.push({type:0,value:p}):n===1||n===2||n===3?(l.length>1&&(o==="*"||o==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),l.push({type:1,value:p,regexp:i,repeatable:o==="*"||o==="+",optional:o==="*"||o==="?"})):t("Invalid state to consume buffer"),p="")}function c(){p+=o}for(;g<e.length;){if(o=e[g++],o==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:o==="/"?(p&&s(),d()):o===":"?(s(),n=1):c();break;case 4:c(),n=r;break;case 1:o==="("?n=2:$b.test(o)?c():(s(),n=0,o!=="*"&&o!=="?"&&o!=="+"&&g--);break;case 2:o===")"?i[i.length-1]=="\\"?i=i.slice(0,-1)+o:n=3:i+=o;break;case 3:s(),n=0,o!=="*"&&o!=="?"&&o!=="+"&&g--,i="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${p}"`),s(),d(),a}function Cb(e,t,n){const r=wb(xb(e.path),n),a=Ye(r,{record:e,parent:t,children:[],alias:[]});return t&&!a.record.aliasOf==!t.record.aliasOf&&t.children.push(a),a}function Ab(e,t){const n=[],r=new Map;t=mu({strict:!1,end:!0,sensitive:!1},t);function a(s){return r.get(s)}function l(s,c,u){const h=!u,f=kb(s);f.aliasOf=u&&u.record;const m=mu(t,s),v=[f];if("alias"in s){const _=typeof s.alias=="string"?[s.alias]:s.alias;for(const S of _)v.push(Ye({},f,{components:u?u.record.components:f.components,path:S,aliasOf:u?u.record:f}))}let y,x;for(const _ of v){const{path:S}=_;if(c&&S[0]!=="/"){const b=c.record.path,A=b[b.length-1]==="/"?"":"/";_.path=c.record.path+(S&&A+S)}if(y=Cb(_,c,m),u?u.alias.push(y):(x=x||y,x!==y&&x.alias.push(y),h&&s.name&&!gu(y)&&d(s.name)),Qd(y)&&o(y),f.children){const b=f.children;for(let A=0;A<b.length;A++)l(b[A],y,u&&u.children[A])}u=u||y}return x?()=>{d(x)}:ti}function d(s){if(Zd(s)){const c=r.get(s);c&&(r.delete(s),n.splice(n.indexOf(c),1),c.children.forEach(d),c.alias.forEach(d))}else{const c=n.indexOf(s);c>-1&&(n.splice(c,1),s.record.name&&r.delete(s.record.name),s.children.forEach(d),s.alias.forEach(d))}}function g(){return n}function o(s){const c=Tb(s,n);n.splice(c,0,s),s.record.name&&!gu(s)&&r.set(s.record.name,s)}function p(s,c){let u,h={},f,m;if("name"in s&&s.name){if(u=r.get(s.name),!u)throw Cr(1,{location:s});m=u.record.name,h=Ye(pu(c.params,u.keys.filter(x=>!x.optional).concat(u.parent?u.parent.keys.filter(x=>x.optional):[]).map(x=>x.name)),s.params&&pu(s.params,u.keys.map(x=>x.name))),f=u.stringify(h)}else if(s.path!=null)f=s.path,u=n.find(x=>x.re.test(f)),u&&(h=u.parse(f),m=u.record.name);else{if(u=c.name?r.get(c.name):n.find(x=>x.re.test(c.path)),!u)throw Cr(1,{location:s,currentLocation:c});m=u.record.name,h=Ye({},c.params,s.params),f=u.stringify(h)}const v=[];let y=u;for(;y;)v.unshift(y.record),y=y.parent;return{name:m,path:f,params:h,matched:v,meta:Rb(v)}}e.forEach(s=>l(s));function i(){n.length=0,r.clear()}return{addRoute:l,resolve:p,removeRoute:d,clearRoutes:i,getRoutes:g,getRecordMatcher:a}}function pu(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function kb(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Eb(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 Eb(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 gu(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Rb(e){return e.reduce((t,n)=>Ye(t,n.meta),{})}function mu(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Tb(e,t){let n=0,r=t.length;for(;n!==r;){const l=n+r>>1;qd(e,t[l])<0?r=l:n=l+1}const a=Lb(e);return a&&(r=t.lastIndexOf(a,r-1)),r}function Lb(e){let t=e;for(;t=t.parent;)if(Qd(t)&&qd(e,t)===0)return t}function Qd({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Mb(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let a=0;a<r.length;++a){const l=r[a].replace(Ud," "),d=l.indexOf("="),g=fi(d<0?l:l.slice(0,d)),o=d<0?null:fi(l.slice(d+1));if(g in t){let p=t[g];Kt(p)||(p=t[g]=[p]),p.push(o)}else t[g]=o}return t}function vu(e){let t="";for(let n in e){const r=e[n];if(n=X0(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(Kt(r)?r.map(l=>l&&Sa(l)):[r&&Sa(r)]).forEach(l=>{l!==void 0&&(t+=(t.length?"&":"")+n,l!=null&&(t+="="+l))})}return t}function Ob(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Kt(r)?r.map(a=>a==null?null:""+a):r==null?r:""+r)}return t}const Ib=Symbol(""),yu=Symbol(""),uo=Symbol(""),Nl=Symbol(""),xa=Symbol("");function Br(){let e=[];function t(r){return e.push(r),()=>{const a=e.indexOf(r);a>-1&&e.splice(a,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function En(e,t,n,r,a,l=d=>d()){const d=r&&(r.enterCallbacks[a]=r.enterCallbacks[a]||[]);return()=>new Promise((g,o)=>{const p=c=>{c===!1?o(Cr(4,{from:n,to:t})):c instanceof Error?o(c):vb(c)?o(Cr(2,{from:t,to:c})):(d&&r.enterCallbacks[a]===d&&typeof c=="function"&&d.push(c),g())},i=l(()=>e.call(r&&r.instances[a],t,n,p));let s=Promise.resolve(i);e.length<3&&(s=s.then(p)),s.catch(c=>o(c))})}function zo(e,t,n,r,a=l=>l()){const l=[];for(const d of e)for(const g in d.components){let o=d.components[g];if(!(t!=="beforeRouteEnter"&&!d.instances[g]))if(Nb(o)){const i=(o.__vccOpts||o)[t];i&&l.push(En(i,n,r,d,g,a))}else{let p=o();l.push(()=>p.then(i=>{if(!i)return Promise.reject(new Error(`Couldn't resolve component "${g}" at "${d.path}"`));const s=W0(i)?i.default:i;d.components[g]=s;const u=(s.__vccOpts||s)[t];return u&&En(u,n,r,d,g,a)()}))}}return l}function Nb(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function bu(e){const t=jt(uo),n=jt(Nl),r=Re(()=>{const o=le(e.to);return t.resolve(o)}),a=Re(()=>{const{matched:o}=r.value,{length:p}=o,i=o[p-1],s=n.matched;if(!i||!s.length)return-1;const c=s.findIndex(xr.bind(null,i));if(c>-1)return c;const u=wu(o[p-2]);return p>1&&wu(i)===u&&s[s.length-1].path!==u?s.findIndex(xr.bind(null,o[p-2])):c}),l=Re(()=>a.value>-1&&Wb(n.params,r.value.params)),d=Re(()=>a.value>-1&&a.value===n.matched.length-1&&Kd(n.params,r.value.params));function g(o={}){return Pb(o)?t[le(e.replace)?"replace":"push"](le(e.to)).catch(ti):Promise.resolve()}return{route:r,href:Re(()=>r.value.href),isActive:l,isExactActive:d,navigate:g}}const Fb=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:bu,setup(e,{slots:t}){const n=Or(bu(e)),{options:r}=jt(uo),a=Re(()=>({[_u(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[_u(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const l=t.default&&t.default(n);return e.custom?l:ao("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:a.value},l)}}}),Db=Fb;function Pb(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 Wb(e,t){for(const n in t){const r=t[n],a=e[n];if(typeof r=="string"){if(r!==a)return!1}else if(!Kt(a)||a.length!==r.length||r.some((l,d)=>l!==a[d]))return!1}return!0}function wu(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const _u=(e,t,n)=>e??t??n,Bb=xe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=jt(xa),a=Re(()=>e.route||r.value),l=jt(yu,0),d=Re(()=>{let p=le(l);const{matched:i}=a.value;let s;for(;(s=i[p])&&!s.components;)p++;return p}),g=Re(()=>a.value.matched[d.value]);ps(yu,Re(()=>d.value+1)),ps(Ib,g),ps(xa,a);const o=je();return Qe(()=>[o.value,g.value,e.name],([p,i,s],[c,u,h])=>{i&&(i.instances[s]=p,u&&u!==i&&p&&p===c&&(i.leaveGuards.size||(i.leaveGuards=u.leaveGuards),i.updateGuards.size||(i.updateGuards=u.updateGuards))),p&&i&&(!u||!xr(i,u)||!c)&&(i.enterCallbacks[s]||[]).forEach(f=>f(p))},{flush:"post"}),()=>{const p=a.value,i=e.name,s=g.value,c=s&&s.components[i];if(!c)return Su(n.default,{Component:c,route:p});const u=s.props[i],h=u?u===!0?p.params:typeof u=="function"?u(p):u:null,m=ao(c,Ye({},h,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(s.instances[i]=null)},ref:o}));return Su(n.default,{Component:m,route:p})||m}}});function Su(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Hb=Bb;function zb(e){const t=Ab(e.routes,e),n=e.parseQuery||Mb,r=e.stringifyQuery||vu,a=e.history,l=Br(),d=Br(),g=Br(),o=Jh(xn);let p=xn;hr&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const i=Bo.bind(null,z=>""+z),s=Bo.bind(null,Q0),c=Bo.bind(null,fi);function u(z,Z){let Y,Q;return Zd(z)?(Y=t.getRecordMatcher(z),Q=Z):Q=z,t.addRoute(Q,Y)}function h(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||o.value),typeof z=="string"){const W=Ho(n,z,Z.path),K=t.resolve({path:W.path},Z),te=a.createHref(W.fullPath);return Ye(W,K,{params:c(K.params),hash:fi(W.hash),redirectedFrom:void 0,href:te})}let Y;if(z.path!=null)Y=Ye({},z,{path:Ho(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:s(W)}),Z.params=s(Z.params)}const Q=t.resolve(Y,Z),he=z.hash||"";Q.params=i(c(Q.params));const Ce=tb(r,Ye({},z,{hash:Z0(he),path:Q.path})),P=a.createHref(Ce);return Ye({fullPath:Ce,hash:he,query:r===vu?Ob(z.query):z.query||{}},Q,{redirectedFrom:void 0,href:P})}function y(z){return typeof z=="string"?Ho(n,z,o.value.path):Ye({},z)}function x(z,Z){if(p!==z)return Cr(8,{from:Z,to:z})}function _(z){return A(z)}function S(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=o.value,he=z.state,Ce=z.force,P=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:P}),Z||Y);const K=Y;K.redirectedFrom=Z;let te;return!Ce&&nb(r,Q,Y)&&(te=Cr(16,{to:K,from:Q}),B(Q,Q,!0,!1)),(te?Promise.resolve(te):M(K,Q)).catch(ee=>ln(ee)?ln(ee,2)?ee:D(ee):I(ee,K,Q)).then(ee=>{if(ee){if(ln(ee,2))return A(Ye({replace:P},y(ee.to),{state:typeof ee.to=="object"?Ye({},he,ee.to.state):he,force:Ce}),Z||K)}else ee=R(K,Q,!0,P,he);return C(K,Q,ee),ee})}function L(z,Z){const Y=x(z,Z);return Y?Promise.reject(Y):Promise.resolve()}function E(z){const Z=H.values().next().value;return Z&&typeof Z.runWithContext=="function"?Z.runWithContext(z):z()}function M(z,Z){let Y;const[Q,he,Ce]=Ub(z,Z);Y=zo(Q.reverse(),"beforeRouteLeave",z,Z);for(const W of Q)W.leaveGuards.forEach(K=>{Y.push(En(K,z,Z))});const P=L.bind(null,z,Z);return Y.push(P),q(Y).then(()=>{Y=[];for(const W of l.list())Y.push(En(W,z,Z));return Y.push(P),q(Y)}).then(()=>{Y=zo(he,"beforeRouteUpdate",z,Z);for(const W of he)W.updateGuards.forEach(K=>{Y.push(En(K,z,Z))});return Y.push(P),q(Y)}).then(()=>{Y=[];for(const W of Ce)if(W.beforeEnter)if(Kt(W.beforeEnter))for(const K of W.beforeEnter)Y.push(En(K,z,Z));else Y.push(En(W.beforeEnter,z,Z));return Y.push(P),q(Y)}).then(()=>(z.matched.forEach(W=>W.enterCallbacks={}),Y=zo(Ce,"beforeRouteEnter",z,Z,E),Y.push(P),q(Y))).then(()=>{Y=[];for(const W of d.list())Y.push(En(W,z,Z));return Y.push(P),q(Y)}).catch(W=>ln(W,8)?W:Promise.reject(W))}function C(z,Z,Y){g.list().forEach(Q=>E(()=>Q(z,Z,Y)))}function R(z,Z,Y,Q,he){const Ce=x(z,Z);if(Ce)return Ce;const P=Z===xn,W=hr?history.state:{};Y&&(Q||P?a.replace(z.fullPath,Ye({scroll:P&&W&&W.scroll},he)):a.push(z.fullPath,he)),o.value=z,B(z,Z,Y,P),D()}let $;function w(){$||($=a.listen((z,Z,Y)=>{if(!V.listening)return;const Q=v(z),he=b(Q);if(he){A(Ye(he,{replace:!0}),Q).catch(ti);return}p=Q;const Ce=o.value;hr&&ub(cu(Ce.fullPath,Y.delta),co()),M(Q,Ce).catch(P=>ln(P,12)?P:ln(P,2)?(A(P.to,Q).then(W=>{ln(W,20)&&!Y.delta&&Y.type===pi.pop&&a.go(-1,!1)}).catch(ti),Promise.reject()):(Y.delta&&a.go(-Y.delta,!1),I(P,Q,Ce))).then(P=>{P=P||R(Q,Ce,!1),P&&(Y.delta&&!ln(P,8)?a.go(-Y.delta,!1):Y.type===pi.pop&&ln(P,20)&&a.go(-1,!1)),C(Q,Ce,P)}).catch(ti)}))}let k=Br(),T=Br(),O;function I(z,Z,Y){D(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&&o.value!==xn?Promise.resolve():new Promise((z,Z)=>{k.add([z,Z])})}function D(z){return O||(O=!z,w(),k.list().forEach(([Z,Y])=>z?Y(z):Z()),k.reset()),z}function B(z,Z,Y,Q){const{scrollBehavior:he}=e;if(!hr||!he)return Promise.resolve();const Ce=!Y&&hb(cu(z.fullPath,0))||(Q||!Y)&&history.state&&history.state.scroll||null;return Fi().then(()=>he(z,Z,Ce)).then(P=>P&&cb(P)).catch(P=>I(P,z,Z))}const j=z=>a.go(z);let U;const H=new Set,V={currentRoute:o,listening:!0,addRoute:u,removeRoute:h,clearRoutes:t.clearRoutes,hasRoute:m,getRoutes:f,resolve:v,options:e,push:_,replace:S,go:j,back:()=>j(-1),forward:()=>j(1),beforeEach:l.add,beforeResolve:d.add,afterEach:g.add,onError:T.add,isReady:N,install(z){const Z=this;z.component("RouterLink",Db),z.component("RouterView",Hb),z.config.globalProperties.$router=Z,Object.defineProperty(z.config.globalProperties,"$route",{enumerable:!0,get:()=>le(o)}),hr&&!U&&o.value===xn&&(U=!0,_(a.location).catch(he=>{}));const Y={};for(const he in xn)Object.defineProperty(Y,he,{get:()=>o.value[he],enumerable:!0});z.provide(uo,Z),z.provide(Nl,Zh(Y)),z.provide(xa,o);const Q=z.unmount;H.add(z),z.unmount=function(){H.delete(z),H.size<1&&(p=xn,$&&$(),$=null,o.value=xn,U=!1,O=!1),Q()}}};function q(z){return z.reduce((Z,Y)=>Z.then(()=>E(Y)),Promise.resolve())}return V}function Ub(e,t){const n=[],r=[],a=[],l=Math.max(t.matched.length,e.matched.length);for(let d=0;d<l;d++){const g=t.matched[d];g&&(e.matched.find(p=>xr(p,g))?r.push(g):n.push(g));const o=e.matched[d];o&&(t.matched.find(p=>xr(p,o))||a.push(o))}return[n,r,a]}function Ir(){return jt(uo)}function jb(e){return jt(Nl)}const Uo=new WeakMap;function Ar(e,t,n={}){const{mode:r="replace",route:a=jb(),router:l=Ir(),transform:d=s=>s}=n;Uo.has(l)||Uo.set(l,new Map);const g=Uo.get(l);let o=a.query[e];lo(()=>{o=void 0});let p;const i=nd((s,c)=>(p=c,{get(){return s(),d(o!==void 0?o:rn(t))},set(u){o!==u&&(o=u===t||u===null?void 0:u,g.set(e,u===t||u===null?void 0:u),c(),Fi(()=>{if(g.size===0)return;const h=Object.fromEntries(g.entries());g.clear();const{params:f,query:m,hash:v}=a;l[rn(r)]({params:f,query:{...m,...h},hash:v})}))}}));return Qe(()=>a.query[e],s=>{o=s,p()},{flush:"sync"}),i}/*! CAF: shared.mjs
783
+ v15.0.1 (c) 2022 Kyle Simpson
784
+ MIT License: http://getify.mit-license.org
785
+ */const dn=Symbol("Cleanup Function"),Fl=Symbol("Timeout Token"),gr=Symbol("Signal Reason"),mt=Symbol("Unset"),[ys,Vb]=function(){var t=new AbortController,n=!!Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t.signal),"reason");try{t.abort()}catch{}return[n,Pl(t.signal.reason)]}();class sr{constructor(t=new AbortController){var n;this.controller=t,this.signal=t.signal,this.signal[gr]=mt;var r=(a,l)=>{var d=()=>{if(l&&this.signal){let g=Bi(this.signal);this._trackSignalReason(g),l(g!==mt?g:void 0)}l=null};this.signal.addEventListener("abort",d,!1),n=()=>{this.signal&&(this.signal.removeEventListener("abort",d,!1),this.signal.pr&&(this.signal.pr[dn]=null)),d=null}};this.signal.pr=new Promise(r),this.signal.pr[dn]=n,this.signal.pr.catch(n),r=n=null}abort(...t){var n=t.length>0?t[0]:mt;this._trackSignalReason(n),this.controller&&(ys&&n!==mt?this.controller.abort(n):this.controller.abort())}discard(){this.signal&&(this.signal.pr&&(this.signal.pr[dn]&&this.signal.pr[dn](),this.signal.pr=null),delete this.signal[gr],ys||(this.signal.reason=null),this.signal=null),this.controller=null}_trackSignalReason(t){this.signal&&t!==mt&&(ys||"reason"in this.signal||(this.signal.reason=t),this.signal[gr]===mt&&(this.signal[gr]=t))}}function Bi(e){return e&&e.aborted?ys&&Vb?Pl(e.reason)?mt:e.reason:gr in e?e[gr]:mt:mt}function Jd(e){if(e.pr)return e.pr;var t,n=new Promise(function(a,l){t=()=>{if(l&&e){let d=Bi(e);l(d!==mt?d:void 0)}l=null},e.addEventListener("abort",t,!1)});return n[dn]=function(){e&&(e.removeEventListener("abort",t,!1),e=null),n&&(n=n[dn]=t=null)},n.catch(n[dn]),n}function Dl(e){e instanceof AbortController&&(e=new sr(e));var t=e&&e instanceof sr?e.signal:e;return{tokenOrSignal:e,signal:t,signalPr:Jd(t)}}function Ca(){var e;return{pr:new Promise(t=>e=t),resolve:e}}function Gn(e){return typeof e=="function"}function Gb(e){return e&&typeof e=="object"&&typeof e.then=="function"}function Pl(e){return typeof e=="object"&&e instanceof Error&&e.name=="AbortError"}function ho(e,t){Pl(t)||t===mt?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 Aa=Object.assign(Kb,{cancelToken:sr,delay:ef,timeout:Yb,signalRace:Zb,signalAll:Xb,tokenCycle:qb});function Kb(e){return function(n,...r){var a,l;if({tokenOrSignal:n,signal:a,signalPr:l}=Dl(n),a.aborted)return l;var d=l.catch(function(s){var c=Bi(a);c=c!==mt?c:s;try{var u=g.return();throw u.value!==void 0?u.value:c!==mt?c:void 0}finally{g=o=d=p=null}}),{it:g,result:o}=Qb.call(this,e,a,...r),p=Promise.race([o,d]);if(n!==a&&n[Fl]){let i=function(c){ho(n,c),Gn(n.discard)&&n.discard(),n=i=null};p.then(i,i)}else p.catch(()=>{}),n=null;return r=null,p}}function ef(e,t){var n,r;return typeof e=="number"&&typeof t!="number"&&([t,e]=[e,t]),e&&({tokenOrSignal:e,signal:n,signalPr:r}=Dl(e)),n&&n.aborted?r:new Promise(function(l,d){n&&(r.catch(function(){if(d&&n&&g){let p=Bi(n);clearTimeout(g),d(p!==mt?p:`delay (${t}) interrupted`),l=d=g=n=null}}),r=null);var g=setTimeout(function(){l(`delayed: ${t}`),l=d=g=n=null},t)})}function Yb(e,t="Timeout"){e=Number(e)||0;var n=new sr;return ef(n.signal,e).then(()=>r(t),r),Object.defineProperty(n,Fl,{value:!0,writable:!1,enumerable:!1,configurable:!1}),n;function r(...a){ho(n,a.length>0?a[0]:mt),n.discard(),n=null}}function tf(e){return e.reduce(function(n,r){var a=Jd(r);return n[0].push(a),r.pr||n[1].push(a),n},[[],[]])}function nf(e,t,n){e.then(function(a){ho(t,a),t.discard(),t=null}).then(function(){for(let a of n)a[dn]&&a[dn]();n=null})}function rf(e){return e.catch(t=>t)}function Zb(e){var t=new sr,[n,r]=tf(e);return nf(rf(Promise.race(n)),t,r),t.signal}function Xb(e){var t=new sr,[n,r]=tf(e);return nf(Promise.all(n.map(rf)),t,r),t.signal}function qb(){var e;return function(...n){return e&&(ho(e,n.length>0?n[0]:mt),e.discard()),e=new sr}}function Qb(e,...t){var n=e.apply(this,t);return e=t=null,{it:n,result:function r(a){try{var l=n.next(a);a=null}catch(d){return Promise.reject(d)}return function d(g){var o=Promise.resolve(g.value);return g.done?n=null:(o=o.then(r,function(i){return Promise.resolve(n.throw(i)).then(d)})).catch(function(){n=null}),g=null,o}(l)}()}}/*! CAF: cag.mjs
789
+ v15.0.1 (c) 2022 Kyle Simpson
790
+ MIT License: http://getify.mit-license.org
791
+ */Ea=Aa(Ea);Object.assign(of,{onEvent:af,onceEvent:Ea});var ka=new WeakSet;const jo=Symbol("unset"),sf=Symbol("returned"),$u=Symbol("canceled");function of(e){return function(n,...r){var a,l;if({tokenOrSignal:n,signal:a,signalPr:l}=Dl(n),a.aborted){let s=Bi(a);throw s=s!==mt?s:"Aborted",s}var d=Ca(),{it:g,ait:o}=e1(e,d.pr,i,a,...r),p=o.return;return o.return=function(c){try{return d.pr.resolved=!0,d.resolve(sf),Promise.resolve(g.return(c))}finally{p.call(o),i()}},o;function i(){n&&n!==a&&n[Fl]&&n.abort(),o&&(o.return=p,n=d=g=o=p=null)}}}function af(e,t,n,r=!1){var a,l,d=!1,g=of(function*({pwait:s}){d||o();try{for(;;){if(a.length==0){let{pr:c,resolve:u}=Ca();a.push(c),l.push(u)}yield yield s(a.shift())}}finally{Gn(t.removeEventListener)?t.removeEventListener(n,p,r):Gn(t.removeListener)?t.removeListener(n,p):Gn(t.off)&&t.off(n,p),a.length=l.length=0}})(e,t,n,r);return g.start=o,g;function o(){d||(d=!0,a=[],l=[],Gn(t.addEventListener)?t.addEventListener(n,p,r):Gn(t.addListener)?t.addListener(n,p):Gn(t.on)&&t.on(n,p))}function p(i){if(l.length>0)l.shift()(i);else{let{pr:s,resolve:c}=Ca();a.push(s),c(i)}}}function*Ea(e,t,n,r=!1){try{var a=af(e,t,n,r);return(yield a.next()).value}finally{a.return()}}function Jb(e){var t=Promise.resolve(e);return ka.add(t),t}function e1(e,t,n,r,...a){var l=e.call(this,{signal:r,pwait:Jb},...a);e=a=null;var d=r.pr.catch(g=>{throw{[$u]:!0,reason:g}});return d.catch(()=>{}),{it:l,ait:async function*(){var o,p=jo;try{for(;!t.resolved;)if(p!==jo?(o=p,p=jo,o=l.throw(o)):o=l.next(o),Gb(o.value))if(ka.has(o.value)){ka.delete(o.value);try{if((o=await Promise.race([t,d,o.value]))===sf)return}catch(i){if(i[$u]){let s=l.return();throw s.value!==void 0?s.value:i.reason}p=i}}else o=yield o.value;else{if(o.done)return o.value;o=yield o.value}}finally{l=t=null,n()}}()}}const t1=e=>e._runningInstances.length>=e._maxConcurrency,n1=e=>{const t=e._activeInstances[0];t&&t.cancel()},r1=e=>{e._enqueuedInstances.forEach(t=>{t.isEnqueued=!1,t.isDropped=!0})};function Hr(e,t){return t?i1(()=>e()._instances,t):Re(()=>[])}function i1(e,t,n){return Re(()=>e().filter(r=>r[t]))}function s1(e){return Re(()=>e().length)}function xu(e){return Re(()=>{const t=e();return t[t.length-1]})}function o1(e){return Re(()=>e()[0])}const lf=e=>e;function cf(e){return Or(e)}function a1(){const e={},t=new Promise((n,r)=>{e.resolve=n,e.reject=r});return e.promise=t,e}function St(e){return u1(function*(t,...n){return e(t,...n)})}function l1(e,t,n){const r=lf({id:n.id,isDropped:!1,isEnqueued:!1,hasStarted:!1,isRunning:!1,isFinished:!1,isCanceling:!1,isCanceled:Re(()=>a.isCanceling&&a.isFinished),isActive:Re(()=>a.isRunning&&!a.isCanceling),isSuccessful:!1,isNotDropped:Re(()=>!a.isDropped),isError:Re(()=>!!a.error),status:Re(()=>{const d=a,g=[[d.isRunning,"running"],[d.isEnqueued,"enqueued"],[d.isCanceled,"canceled"],[d.isCanceling,"canceling"],[d.isDropped,"dropped"],[d.isError,"error"],[d.isSuccessful,"success"]].find(([o])=>o);return g&&g[1]}),error:null,value:null,cancel({force:d}={force:!1}){if(d||(a.isCanceling=!0,a.isEnqueued&&(a.isFinished=!0),a.isEnqueued=!1),a.token&&a._canAbort){a.token.abort("cancel");try{a.token.discard()}catch{}a.token=void 0,a._canAbort=!1}},canceledOn(d){return d.pr.catch(()=>{a.cancel()}),a},_run(){c1(a,e,t,n)},_handled:!0,_deferredObject:a1(),_shouldThrow:!1,_canAbort:!0,then(d,g){return a._shouldThrow=!0,a._deferredObject.promise.then(d,g)},catch(d,g=!0){return a._shouldThrow=g,a._deferredObject.promise.catch(d)},finally(d){return a._shouldThrow=!0,a._deferredObject.promise.finally(d)}}),a=cf(r),{modifiers:l}=n;return l.drop?a.isDropped=!0:l.enqueue?a.isEnqueued=!0:a._run(),a}function c1(e,t,n,r){const a=new Aa.cancelToken,l=Aa(t,a);e.token=a,e.hasStarted=!0,e.isRunning=!0,e.isEnqueued=!1;function d(){e.isRunning=!1,e.isFinished=!0}l.call(e,a,...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 u1(e,t={cancelOnUnmount:!0}){const n=Tl(),r=zm(),a=lf({_isRestartable:!1,_isDropping:!1,_isEnqueuing:!1,_isKeepingLatest:!1,_maxConcurrency:1,_hasConcurrency:Re(()=>l._isRestartable||l._isDropping||l._isEnqueuing||l._isKeepingLatest),isIdle:Re(()=>!l.isRunning),isRunning:Re(()=>!!l._instances.find(d=>d.isRunning)),isError:Re(()=>!!(l.last&&l.last.isError)),_instances:[],_successfulInstances:Hr(()=>l,"isSuccessful"),_runningInstances:Hr(()=>l,"isRunning"),_enqueuedInstances:Hr(()=>l,"isEnqueued"),_notDroppedInstances:Hr(()=>l,"isNotDropped"),_activeInstances:Hr(()=>l,"isActive"),performCount:s1(()=>l._instances),last:xu(()=>l._notDroppedInstances),lastSuccessful:xu(()=>l._successfulInstances),firstEnqueued:o1(()=>l._enqueuedInstances),cancelAll({force:d}={force:!1}){l._instances.forEach(g=>{try{(d||!g.isDropped&&!g.isFinished)&&g.cancel({force:d})}catch(o){if(o!=="cancel")throw o}})},perform(...d){const g={enqueue:!1,drop:!1};l._hasConcurrency&&t1(l)&&(l._isDropping&&(g.drop=!0),l._isRestartable&&n1(l),l._isKeepingLatest&&r1(l),(l._isEnqueuing||l._isKeepingLatest)&&(g.enqueue=!0));const o=()=>h1(l),p=()=>l1(e,d,{modifiers:g,onFinish:o,scope:r,id:l._instances.length+1}),i=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?"),l._instances=[...l._instances,i],i},clear(){this.cancelAll({force:!0}),this._instances=[]},destroy(){r.stop(),this.clear()},restartable(){return l._resetModifierFlags(),l._isRestartable=!0,l},drop(){return l._resetModifierFlags(),l._isDropping=!0,l},enqueue(){return l._resetModifierFlags(),l._isEnqueuing=!0,l},keepLatest(){return l._resetModifierFlags(),l._isKeepingLatest=!0,l},_resetModifierFlags(){l._isKeepingLatest=!1,l._isRestartable=!1,l._isEnqueuing=!1,l._isDropping=!1},maxConcurrency(d){return l._maxConcurrency=d,l}}),l=cf(a);return n&&t.cancelOnUnmount&&Sl(()=>{l._instances&&l.destroy()}),l}function h1(e){if(e._isEnqueuing||e._isKeepingLatest){const{firstEnqueued:t}=e;t&&t._run()}}function uf(e,t){return function(){return e.apply(t,arguments)}}const{toString:d1}=Object.prototype,{getPrototypeOf:Wl}=Object,fo=(e=>t=>{const n=d1.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Zt=e=>(e=e.toLowerCase(),t=>fo(t)===e),po=e=>t=>typeof t===e,{isArray:Nr}=Array,gi=po("undefined");function f1(e){return e!==null&&!gi(e)&&e.constructor!==null&&!gi(e.constructor)&&Wt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const hf=Zt("ArrayBuffer");function p1(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&hf(e.buffer),t}const g1=po("string"),Wt=po("function"),df=po("number"),go=e=>e!==null&&typeof e=="object",m1=e=>e===!0||e===!1,bs=e=>{if(fo(e)!=="object")return!1;const t=Wl(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},v1=Zt("Date"),y1=Zt("File"),b1=Zt("Blob"),w1=Zt("FileList"),_1=e=>go(e)&&Wt(e.pipe),S1=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Wt(e.append)&&((t=fo(e))==="formdata"||t==="object"&&Wt(e.toString)&&e.toString()==="[object FormData]"))},$1=Zt("URLSearchParams"),[x1,C1,A1,k1]=["ReadableStream","Request","Response","Headers"].map(Zt),E1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Hi(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),Nr(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{const l=n?Object.getOwnPropertyNames(e):Object.keys(e),d=l.length;let g;for(r=0;r<d;r++)g=l[r],t.call(null,e[g],g,e)}}function ff(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,a;for(;r-- >0;)if(a=n[r],t===a.toLowerCase())return a;return null}const pf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,gf=e=>!gi(e)&&e!==pf;function Ra(){const{caseless:e}=gf(this)&&this||{},t={},n=(r,a)=>{const l=e&&ff(t,a)||a;bs(t[l])&&bs(r)?t[l]=Ra(t[l],r):bs(r)?t[l]=Ra({},r):Nr(r)?t[l]=r.slice():t[l]=r};for(let r=0,a=arguments.length;r<a;r++)arguments[r]&&Hi(arguments[r],n);return t}const R1=(e,t,n,{allOwnKeys:r}={})=>(Hi(t,(a,l)=>{n&&Wt(a)?e[l]=uf(a,n):e[l]=a},{allOwnKeys:r}),e),T1=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),L1=(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)},M1=(e,t,n,r)=>{let a,l,d;const g={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),l=a.length;l-- >0;)d=a[l],(!r||r(d,e,t))&&!g[d]&&(t[d]=e[d],g[d]=!0);e=n!==!1&&Wl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},O1=(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},I1=e=>{if(!e)return null;if(Nr(e))return e;let t=e.length;if(!df(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},N1=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Wl(Uint8Array)),F1=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=r.next())&&!a.done;){const l=a.value;t.call(e,l[0],l[1])}},D1=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},P1=Zt("HTMLFormElement"),W1=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),Cu=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),B1=Zt("RegExp"),mf=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Hi(n,(a,l)=>{let d;(d=t(a,l,e))!==!1&&(r[l]=d||a)}),Object.defineProperties(e,r)},H1=e=>{mf(e,(t,n)=>{if(Wt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Wt(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+"'")})}})},z1=(e,t)=>{const n={},r=a=>{a.forEach(l=>{n[l]=!0})};return Nr(e)?r(e):r(String(e).split(t)),n},U1=()=>{},j1=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Vo="abcdefghijklmnopqrstuvwxyz",Au="0123456789",vf={DIGIT:Au,ALPHA:Vo,ALPHA_DIGIT:Vo+Vo.toUpperCase()+Au},V1=(e=16,t=vf.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function G1(e){return!!(e&&Wt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const K1=e=>{const t=new Array(10),n=(r,a)=>{if(go(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[a]=r;const l=Nr(r)?[]:{};return Hi(r,(d,g)=>{const o=n(d,a+1);!gi(o)&&(l[g]=o)}),t[a]=void 0,l}}return r};return n(e,0)},Y1=Zt("AsyncFunction"),Z1=e=>e&&(go(e)||Wt(e))&&Wt(e.then)&&Wt(e.catch),J={isArray:Nr,isArrayBuffer:hf,isBuffer:f1,isFormData:S1,isArrayBufferView:p1,isString:g1,isNumber:df,isBoolean:m1,isObject:go,isPlainObject:bs,isReadableStream:x1,isRequest:C1,isResponse:A1,isHeaders:k1,isUndefined:gi,isDate:v1,isFile:y1,isBlob:b1,isRegExp:B1,isFunction:Wt,isStream:_1,isURLSearchParams:$1,isTypedArray:N1,isFileList:w1,forEach:Hi,merge:Ra,extend:R1,trim:E1,stripBOM:T1,inherits:L1,toFlatObject:M1,kindOf:fo,kindOfTest:Zt,endsWith:O1,toArray:I1,forEachEntry:F1,matchAll:D1,isHTMLForm:P1,hasOwnProperty:Cu,hasOwnProp:Cu,reduceDescriptors:mf,freezeMethods:H1,toObjectSet:z1,toCamelCase:W1,noop:U1,toFiniteNumber:j1,findKey:ff,global:pf,isContextDefined:gf,ALPHABET:vf,generateString:V1,isSpecCompliantForm:G1,toJSONObject:K1,isAsyncFn:Y1,isThenable:Z1};function De(e,t,n,r,a){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),a&&(this.response=a)}J.inherits(De,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:J.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const yf=De.prototype,bf={};["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=>{bf[e]={value:e}});Object.defineProperties(De,bf);Object.defineProperty(yf,"isAxiosError",{value:!0});De.from=(e,t,n,r,a,l)=>{const d=Object.create(yf);return J.toFlatObject(e,d,function(o){return o!==Error.prototype},g=>g!=="isAxiosError"),De.call(d,e.message,t,n,r,a),d.cause=e,d.name=e.name,l&&Object.assign(d,l),d};const X1=null;function Ta(e){return J.isPlainObject(e)||J.isArray(e)}function wf(e){return J.endsWith(e,"[]")?e.slice(0,-2):e}function ku(e,t,n){return e?e.concat(t).map(function(a,l){return a=wf(a),!n&&l?"["+a+"]":a}).join(n?".":""):t}function q1(e){return J.isArray(e)&&!e.some(Ta)}const Q1=J.toFlatObject(J,{},null,function(t){return/^is[A-Z]/.test(t)});function mo(e,t,n){if(!J.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=J.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,m){return!J.isUndefined(m[f])});const r=n.metaTokens,a=n.visitor||i,l=n.dots,d=n.indexes,o=(n.Blob||typeof Blob<"u"&&Blob)&&J.isSpecCompliantForm(t);if(!J.isFunction(a))throw new TypeError("visitor must be a function");function p(h){if(h===null)return"";if(J.isDate(h))return h.toISOString();if(!o&&J.isBlob(h))throw new De("Blob is not supported. Use a Buffer instead.");return J.isArrayBuffer(h)||J.isTypedArray(h)?o&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function i(h,f,m){let v=h;if(h&&!m&&typeof h=="object"){if(J.endsWith(f,"{}"))f=r?f:f.slice(0,-2),h=JSON.stringify(h);else if(J.isArray(h)&&q1(h)||(J.isFileList(h)||J.endsWith(f,"[]"))&&(v=J.toArray(h)))return f=wf(f),v.forEach(function(x,_){!(J.isUndefined(x)||x===null)&&t.append(d===!0?ku([f],_,l):d===null?f:f+"[]",p(x))}),!1}return Ta(h)?!0:(t.append(ku(m,f,l),p(h)),!1)}const s=[],c=Object.assign(Q1,{defaultVisitor:i,convertValue:p,isVisitable:Ta});function u(h,f){if(!J.isUndefined(h)){if(s.indexOf(h)!==-1)throw Error("Circular reference detected in "+f.join("."));s.push(h),J.forEach(h,function(v,y){(!(J.isUndefined(v)||v===null)&&a.call(t,v,J.isString(y)?y.trim():y,f,c))===!0&&u(v,f?f.concat(y):[y])}),s.pop()}}if(!J.isObject(e))throw new TypeError("data must be an object");return u(e),t}function Eu(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Bl(e,t){this._pairs=[],e&&mo(e,this,t)}const _f=Bl.prototype;_f.append=function(t,n){this._pairs.push([t,n])};_f.toString=function(t){const n=t?function(r){return t.call(this,r,Eu)}:Eu;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function J1(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Sf(e,t,n){if(!t)return e;const r=n&&n.encode||J1,a=n&&n.serialize;let l;if(a?l=a(t,n):l=J.isURLSearchParams(t)?t.toString():new Bl(t,n).toString(r),l){const d=e.indexOf("#");d!==-1&&(e=e.slice(0,d)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class Ru{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){J.forEach(this.handlers,function(r){r!==null&&t(r)})}}const $f={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ew=typeof URLSearchParams<"u"?URLSearchParams:Bl,tw=typeof FormData<"u"?FormData:null,nw=typeof Blob<"u"?Blob:null,rw={isBrowser:!0,classes:{URLSearchParams:ew,FormData:tw,Blob:nw},protocols:["http","https","file","blob","url","data"]},Hl=typeof window<"u"&&typeof document<"u",iw=(e=>Hl&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),sw=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ow=Hl&&window.location.href||"http://localhost",aw=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Hl,hasStandardBrowserEnv:iw,hasStandardBrowserWebWorkerEnv:sw,origin:ow},Symbol.toStringTag,{value:"Module"})),Vt={...aw,...rw};function lw(e,t){return mo(e,new Vt.classes.URLSearchParams,Object.assign({visitor:function(n,r,a,l){return Vt.isNode&&J.isBuffer(n)?(this.append(r,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)}},t))}function cw(e){return J.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function uw(e){const t={},n=Object.keys(e);let r;const a=n.length;let l;for(r=0;r<a;r++)l=n[r],t[l]=e[l];return t}function xf(e){function t(n,r,a,l){let d=n[l++];if(d==="__proto__")return!0;const g=Number.isFinite(+d),o=l>=n.length;return d=!d&&J.isArray(a)?a.length:d,o?(J.hasOwnProp(a,d)?a[d]=[a[d],r]:a[d]=r,!g):((!a[d]||!J.isObject(a[d]))&&(a[d]=[]),t(n,r,a[d],l)&&J.isArray(a[d])&&(a[d]=uw(a[d])),!g)}if(J.isFormData(e)&&J.isFunction(e.entries)){const n={};return J.forEachEntry(e,(r,a)=>{t(cw(r),a,n,0)}),n}return null}function hw(e,t,n){if(J.isString(e))try{return(t||JSON.parse)(e),J.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const zi={transitional:$f,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,l=J.isObject(t);if(l&&J.isHTMLForm(t)&&(t=new FormData(t)),J.isFormData(t))return a?JSON.stringify(xf(t)):t;if(J.isArrayBuffer(t)||J.isBuffer(t)||J.isStream(t)||J.isFile(t)||J.isBlob(t)||J.isReadableStream(t))return t;if(J.isArrayBufferView(t))return t.buffer;if(J.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let g;if(l){if(r.indexOf("application/x-www-form-urlencoded")>-1)return lw(t,this.formSerializer).toString();if((g=J.isFileList(t))||r.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return mo(g?{"files[]":t}:t,o&&new o,this.formSerializer)}}return l||a?(n.setContentType("application/json",!1),hw(t)):t}],transformResponse:[function(t){const n=this.transitional||zi.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(J.isResponse(t)||J.isReadableStream(t))return t;if(t&&J.isString(t)&&(r&&!this.responseType||a)){const d=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(g){if(d)throw g.name==="SyntaxError"?De.from(g,De.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:Vt.classes.FormData,Blob:Vt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};J.forEach(["delete","get","head","post","put","patch"],e=>{zi.headers[e]={}});const dw=J.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"]),fw=e=>{const t={};let n,r,a;return e&&e.split(`
792
+ `).forEach(function(d){a=d.indexOf(":"),n=d.substring(0,a).trim().toLowerCase(),r=d.substring(a+1).trim(),!(!n||t[n]&&dw[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Tu=Symbol("internals");function zr(e){return e&&String(e).trim().toLowerCase()}function ws(e){return e===!1||e==null?e:J.isArray(e)?e.map(ws):String(e)}function pw(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 gw=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Go(e,t,n,r,a){if(J.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!J.isString(t)){if(J.isString(r))return t.indexOf(r)!==-1;if(J.isRegExp(r))return r.test(t)}}function mw(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function vw(e,t){const n=J.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(a,l,d){return this[r].call(this,t,a,l,d)},configurable:!0})})}let Tt=class{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function l(g,o,p){const i=zr(o);if(!i)throw new Error("header name must be a non-empty string");const s=J.findKey(a,i);(!s||a[s]===void 0||p===!0||p===void 0&&a[s]!==!1)&&(a[s||o]=ws(g))}const d=(g,o)=>J.forEach(g,(p,i)=>l(p,i,o));if(J.isPlainObject(t)||t instanceof this.constructor)d(t,n);else if(J.isString(t)&&(t=t.trim())&&!gw(t))d(fw(t),n);else if(J.isHeaders(t))for(const[g,o]of t.entries())l(o,g,r);else t!=null&&l(n,t,r);return this}get(t,n){if(t=zr(t),t){const r=J.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return pw(a);if(J.isFunction(n))return n.call(this,a,r);if(J.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=zr(t),t){const r=J.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Go(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function l(d){if(d=zr(d),d){const g=J.findKey(r,d);g&&(!n||Go(r,r[g],g,n))&&(delete r[g],a=!0)}}return J.isArray(t)?t.forEach(l):l(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const l=n[r];(!t||Go(this,this[l],l,t,!0))&&(delete this[l],a=!0)}return a}normalize(t){const n=this,r={};return J.forEach(this,(a,l)=>{const d=J.findKey(r,l);if(d){n[d]=ws(a),delete n[l];return}const g=t?mw(l):String(l).trim();g!==l&&delete n[l],n[g]=ws(a),r[g]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return J.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&J.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(a=>r.set(a)),r}static accessor(t){const r=(this[Tu]=this[Tu]={accessors:{}}).accessors,a=this.prototype;function l(d){const g=zr(d);r[g]||(vw(a,d),r[g]=!0)}return J.isArray(t)?t.forEach(l):l(t),this}};Tt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);J.reduceDescriptors(Tt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});J.freezeMethods(Tt);function Ko(e,t){const n=this||zi,r=t||n,a=Tt.from(r.headers);let l=r.data;return J.forEach(e,function(g){l=g.call(n,l,a.normalize(),t?t.status:void 0)}),a.normalize(),l}function Cf(e){return!!(e&&e.__CANCEL__)}function Fr(e,t,n){De.call(this,e??"canceled",De.ERR_CANCELED,t,n),this.name="CanceledError"}J.inherits(Fr,De,{__CANCEL__:!0});function Af(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new De("Request failed with status code "+n.status,[De.ERR_BAD_REQUEST,De.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function yw(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function bw(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,l=0,d;return t=t!==void 0?t:1e3,function(o){const p=Date.now(),i=r[l];d||(d=p),n[a]=o,r[a]=p;let s=l,c=0;for(;s!==a;)c+=n[s++],s=s%e;if(a=(a+1)%e,a===l&&(l=(l+1)%e),p-d<t)return;const u=i&&p-i;return u?Math.round(c*1e3/u):void 0}}function ww(e,t){let n=0;const r=1e3/t;let a=null;return function(){const d=this===!0,g=Date.now();if(d||g-n>r)return a&&(clearTimeout(a),a=null),n=g,e.apply(null,arguments);a||(a=setTimeout(()=>(a=null,n=Date.now(),e.apply(null,arguments)),r-(g-n)))}}const Ls=(e,t,n=3)=>{let r=0;const a=bw(50,250);return ww(l=>{const d=l.loaded,g=l.lengthComputable?l.total:void 0,o=d-r,p=a(o),i=d<=g;r=d;const s={loaded:d,total:g,progress:g?d/g:void 0,bytes:o,rate:p||void 0,estimated:p&&g&&i?(g-d)/p:void 0,event:l,lengthComputable:g!=null};s[t?"download":"upload"]=!0,e(s)},n)},_w=Vt.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function a(l){let d=l;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=a(window.location.href),function(d){const g=J.isString(d)?a(d):d;return g.protocol===r.protocol&&g.host===r.host}}():function(){return function(){return!0}}(),Sw=Vt.hasStandardBrowserEnv?{write(e,t,n,r,a,l){const d=[e+"="+encodeURIComponent(t)];J.isNumber(n)&&d.push("expires="+new Date(n).toGMTString()),J.isString(r)&&d.push("path="+r),J.isString(a)&&d.push("domain="+a),l===!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 $w(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function xw(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function kf(e,t){return e&&!$w(t)?xw(e,t):t}const Lu=e=>e instanceof Tt?{...e}:e;function or(e,t){t=t||{};const n={};function r(p,i,s){return J.isPlainObject(p)&&J.isPlainObject(i)?J.merge.call({caseless:s},p,i):J.isPlainObject(i)?J.merge({},i):J.isArray(i)?i.slice():i}function a(p,i,s){if(J.isUndefined(i)){if(!J.isUndefined(p))return r(void 0,p,s)}else return r(p,i,s)}function l(p,i){if(!J.isUndefined(i))return r(void 0,i)}function d(p,i){if(J.isUndefined(i)){if(!J.isUndefined(p))return r(void 0,p)}else return r(void 0,i)}function g(p,i,s){if(s in t)return r(p,i);if(s in e)return r(void 0,p)}const o={url:l,method:l,data:l,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,i)=>a(Lu(p),Lu(i),!0)};return J.forEach(Object.keys(Object.assign({},e,t)),function(i){const s=o[i]||a,c=s(e[i],t[i],i);J.isUndefined(c)&&s!==g||(n[i]=c)}),n}const Ef=e=>{const t=or({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:a,xsrfCookieName:l,headers:d,auth:g}=t;t.headers=d=Tt.from(d),t.url=Sf(kf(t.baseURL,t.url),e.params,e.paramsSerializer),g&&d.set("Authorization","Basic "+btoa((g.username||"")+":"+(g.password?unescape(encodeURIComponent(g.password)):"")));let o;if(J.isFormData(n)){if(Vt.hasStandardBrowserEnv||Vt.hasStandardBrowserWebWorkerEnv)d.setContentType(void 0);else if((o=d.getContentType())!==!1){const[p,...i]=o?o.split(";").map(s=>s.trim()).filter(Boolean):[];d.setContentType([p||"multipart/form-data",...i].join("; "))}}if(Vt.hasStandardBrowserEnv&&(r&&J.isFunction(r)&&(r=r(t)),r||r!==!1&&_w(t.url))){const p=a&&l&&Sw.read(l);p&&d.set(a,p)}return t},Cw=typeof XMLHttpRequest<"u",Aw=Cw&&function(e){return new Promise(function(n,r){const a=Ef(e);let l=a.data;const d=Tt.from(a.headers).normalize();let{responseType:g}=a,o;function p(){a.cancelToken&&a.cancelToken.unsubscribe(o),a.signal&&a.signal.removeEventListener("abort",o)}let i=new XMLHttpRequest;i.open(a.method.toUpperCase(),a.url,!0),i.timeout=a.timeout;function s(){if(!i)return;const u=Tt.from("getAllResponseHeaders"in i&&i.getAllResponseHeaders()),f={data:!g||g==="text"||g==="json"?i.responseText:i.response,status:i.status,statusText:i.statusText,headers:u,config:e,request:i};Af(function(v){n(v),p()},function(v){r(v),p()},f),i=null}"onloadend"in i?i.onloadend=s:i.onreadystatechange=function(){!i||i.readyState!==4||i.status===0&&!(i.responseURL&&i.responseURL.indexOf("file:")===0)||setTimeout(s)},i.onabort=function(){i&&(r(new De("Request aborted",De.ECONNABORTED,a,i)),i=null)},i.onerror=function(){r(new De("Network Error",De.ERR_NETWORK,a,i)),i=null},i.ontimeout=function(){let h=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const f=a.transitional||$f;a.timeoutErrorMessage&&(h=a.timeoutErrorMessage),r(new De(h,f.clarifyTimeoutError?De.ETIMEDOUT:De.ECONNABORTED,a,i)),i=null},l===void 0&&d.setContentType(null),"setRequestHeader"in i&&J.forEach(d.toJSON(),function(h,f){i.setRequestHeader(f,h)}),J.isUndefined(a.withCredentials)||(i.withCredentials=!!a.withCredentials),g&&g!=="json"&&(i.responseType=a.responseType),typeof a.onDownloadProgress=="function"&&i.addEventListener("progress",Ls(a.onDownloadProgress,!0)),typeof a.onUploadProgress=="function"&&i.upload&&i.upload.addEventListener("progress",Ls(a.onUploadProgress)),(a.cancelToken||a.signal)&&(o=u=>{i&&(r(!u||u.type?new Fr(null,e,i):u),i.abort(),i=null)},a.cancelToken&&a.cancelToken.subscribe(o),a.signal&&(a.signal.aborted?o():a.signal.addEventListener("abort",o)));const c=yw(a.url);if(c&&Vt.protocols.indexOf(c)===-1){r(new De("Unsupported protocol "+c+":",De.ERR_BAD_REQUEST,e));return}i.send(l||null)})},kw=(e,t)=>{let n=new AbortController,r;const a=function(o){if(!r){r=!0,d();const p=o instanceof Error?o:this.reason;n.abort(p instanceof De?p:new Fr(p instanceof Error?p.message:p))}};let l=t&&setTimeout(()=>{a(new De(`timeout ${t} of ms exceeded`,De.ETIMEDOUT))},t);const d=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(o=>{o&&(o.removeEventListener?o.removeEventListener("abort",a):o.unsubscribe(a))}),e=null)};e.forEach(o=>o&&o.addEventListener&&o.addEventListener("abort",a));const{signal:g}=n;return g.unsubscribe=d,[g,()=>{l&&clearTimeout(l),l=null}]},Ew=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,a;for(;r<n;)a=r+t,yield e.slice(r,a),r=a},Rw=async function*(e,t,n){for await(const r of e)yield*Ew(ArrayBuffer.isView(r)?r:await n(String(r)),t)},Mu=(e,t,n,r,a)=>{const l=Rw(e,t,a);let d=0;return new ReadableStream({type:"bytes",async pull(g){const{done:o,value:p}=await l.next();if(o){g.close(),r();return}let i=p.byteLength;n&&n(d+=i),g.enqueue(new Uint8Array(p))},cancel(g){return r(g),l.return()}},{highWaterMark:2})},Ou=(e,t)=>{const n=e!=null;return r=>setTimeout(()=>t({lengthComputable:n,total:e,loaded:r}))},vo=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Rf=vo&&typeof ReadableStream=="function",La=vo&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Tw=Rf&&(()=>{let e=!1;const t=new Request(Vt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),Iu=64*1024,Ma=Rf&&!!(()=>{try{return J.isReadableStream(new Response("").body)}catch{}})(),Ms={stream:Ma&&(e=>e.body)};vo&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Ms[t]&&(Ms[t]=J.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new De(`Response type '${t}' is not supported`,De.ERR_NOT_SUPPORT,r)})})})(new Response);const Lw=async e=>{if(e==null)return 0;if(J.isBlob(e))return e.size;if(J.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(J.isArrayBufferView(e))return e.byteLength;if(J.isURLSearchParams(e)&&(e=e+""),J.isString(e))return(await La(e)).byteLength},Mw=async(e,t)=>{const n=J.toFiniteNumber(e.getContentLength());return n??Lw(t)},Ow=vo&&(async e=>{let{url:t,method:n,data:r,signal:a,cancelToken:l,timeout:d,onDownloadProgress:g,onUploadProgress:o,responseType:p,headers:i,withCredentials:s="same-origin",fetchOptions:c}=Ef(e);p=p?(p+"").toLowerCase():"text";let[u,h]=a||l||d?kw([a,l],d):[],f,m;const v=()=>{!f&&setTimeout(()=>{u&&u.unsubscribe()}),f=!0};let y;try{if(o&&Tw&&n!=="get"&&n!=="head"&&(y=await Mw(i,r))!==0){let b=new Request(t,{method:"POST",body:r,duplex:"half"}),A;J.isFormData(r)&&(A=b.headers.get("content-type"))&&i.setContentType(A),b.body&&(r=Mu(b.body,Iu,Ou(y,Ls(o)),null,La))}J.isString(s)||(s=s?"cors":"omit"),m=new Request(t,{...c,signal:u,method:n.toUpperCase(),headers:i.normalize().toJSON(),body:r,duplex:"half",withCredentials:s});let x=await fetch(m);const _=Ma&&(p==="stream"||p==="response");if(Ma&&(g||_)){const b={};["status","statusText","headers"].forEach(L=>{b[L]=x[L]});const A=J.toFiniteNumber(x.headers.get("content-length"));x=new Response(Mu(x.body,Iu,g&&Ou(A,Ls(g,!0)),_&&v,La),b)}p=p||"text";let S=await Ms[J.findKey(Ms,p)||"text"](x,e);return!_&&v(),h&&h(),await new Promise((b,A)=>{Af(b,A,{data:S,headers:Tt.from(x.headers),status:x.status,statusText:x.statusText,config:e,request:m})})}catch(x){throw v(),x&&x.name==="TypeError"&&/fetch/i.test(x.message)?Object.assign(new De("Network Error",De.ERR_NETWORK,e,m),{cause:x.cause||x}):De.from(x,x&&x.code,e,m)}}),Oa={http:X1,xhr:Aw,fetch:Ow};J.forEach(Oa,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Nu=e=>`- ${e}`,Iw=e=>J.isFunction(e)||e===null||e===!1,Tf={getAdapter:e=>{e=J.isArray(e)?e:[e];const{length:t}=e;let n,r;const a={};for(let l=0;l<t;l++){n=e[l];let d;if(r=n,!Iw(n)&&(r=Oa[(d=String(n)).toLowerCase()],r===void 0))throw new De(`Unknown adapter '${d}'`);if(r)break;a[d||"#"+l]=r}if(!r){const l=Object.entries(a).map(([g,o])=>`adapter ${g} `+(o===!1?"is not supported by the environment":"is not available in the build"));let d=t?l.length>1?`since :
794
+ `+l.map(Nu).join(`
795
+ `):" "+Nu(l[0]):"as no adapter specified";throw new De("There is no suitable adapter to dispatch the request "+d,"ERR_NOT_SUPPORT")}return r},adapters:Oa};function Yo(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Fr(null,e)}function Fu(e){return Yo(e),e.headers=Tt.from(e.headers),e.data=Ko.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Tf.getAdapter(e.adapter||zi.adapter)(e).then(function(r){return Yo(e),r.data=Ko.call(e,e.transformResponse,r),r.headers=Tt.from(r.headers),r},function(r){return Cf(r)||(Yo(e),r&&r.response&&(r.response.data=Ko.call(e,e.transformResponse,r.response),r.response.headers=Tt.from(r.response.headers))),Promise.reject(r)})}const Lf="1.7.2",zl={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{zl[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Du={};zl.transitional=function(t,n,r){function a(l,d){return"[Axios v"+Lf+"] Transitional option '"+l+"'"+d+(r?". "+r:"")}return(l,d,g)=>{if(t===!1)throw new De(a(d," has been removed"+(n?" in "+n:"")),De.ERR_DEPRECATED);return n&&!Du[d]&&(Du[d]=!0,console.warn(a(d," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(l,d,g):!0}};function Nw(e,t,n){if(typeof e!="object")throw new De("options must be an object",De.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const l=r[a],d=t[l];if(d){const g=e[l],o=g===void 0||d(g,l,e);if(o!==!0)throw new De("option "+l+" must be "+o,De.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new De("Unknown option "+l,De.ERR_BAD_OPTION)}}const Ia={assertOptions:Nw,validators:zl},Cn=Ia.validators;let Jn=class{constructor(t){this.defaults=t,this.interceptors={request:new Ru,response:new Ru}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let a;Error.captureStackTrace?Error.captureStackTrace(a={}):a=new Error;const l=a.stack?a.stack.replace(/^.+\n/,""):"";try{r.stack?l&&!String(r.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(r.stack+=`
796
+ `+l):r.stack=l}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=or(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:l}=n;r!==void 0&&Ia.assertOptions(r,{silentJSONParsing:Cn.transitional(Cn.boolean),forcedJSONParsing:Cn.transitional(Cn.boolean),clarifyTimeoutError:Cn.transitional(Cn.boolean)},!1),a!=null&&(J.isFunction(a)?n.paramsSerializer={serialize:a}:Ia.assertOptions(a,{encode:Cn.function,serialize:Cn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let d=l&&J.merge(l.common,l[n.method]);l&&J.forEach(["delete","get","head","post","put","patch","common"],h=>{delete l[h]}),n.headers=Tt.concat(d,l);const g=[];let o=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(n)===!1||(o=o&&f.synchronous,g.unshift(f.fulfilled,f.rejected))});const p=[];this.interceptors.response.forEach(function(f){p.push(f.fulfilled,f.rejected)});let i,s=0,c;if(!o){const h=[Fu.bind(this),void 0];for(h.unshift.apply(h,g),h.push.apply(h,p),c=h.length,i=Promise.resolve(n);s<c;)i=i.then(h[s++],h[s++]);return i}c=g.length;let u=n;for(s=0;s<c;){const h=g[s++],f=g[s++];try{u=h(u)}catch(m){f.call(this,m);break}}try{i=Fu.call(this,u)}catch(h){return Promise.reject(h)}for(s=0,c=p.length;s<c;)i=i.then(p[s++],p[s++]);return i}getUri(t){t=or(this.defaults,t);const n=kf(t.baseURL,t.url);return Sf(n,t.params,t.paramsSerializer)}};J.forEach(["delete","get","head","options"],function(t){Jn.prototype[t]=function(n,r){return this.request(or(r||{},{method:t,url:n,data:(r||{}).data}))}});J.forEach(["post","put","patch"],function(t){function n(r){return function(l,d,g){return this.request(or(g||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:l,data:d}))}}Jn.prototype[t]=n(),Jn.prototype[t+"Form"]=n(!0)});let Fw=class Mf{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(l){n=l});const r=this;this.promise.then(a=>{if(!r._listeners)return;let l=r._listeners.length;for(;l-- >0;)r._listeners[l](a);r._listeners=null}),this.promise.then=a=>{let l;const d=new Promise(g=>{r.subscribe(g),l=g}).then(a);return d.cancel=function(){r.unsubscribe(l)},d},t(function(l,d,g){r.reason||(r.reason=new Fr(l,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 Mf(function(a){t=a}),cancel:t}}};function Dw(e){return function(n){return e.apply(null,n)}}function Pw(e){return J.isObject(e)&&e.isAxiosError===!0}const Na={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(Na).forEach(([e,t])=>{Na[t]=e});function Of(e){const t=new Jn(e),n=uf(Jn.prototype.request,t);return J.extend(n,Jn.prototype,t,{allOwnKeys:!0}),J.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return Of(or(e,a))},n}const Je=Of(zi);Je.Axios=Jn;Je.CanceledError=Fr;Je.CancelToken=Fw;Je.isCancel=Cf;Je.VERSION=Lf;Je.toFormData=mo;Je.AxiosError=De;Je.Cancel=Je.CanceledError;Je.all=function(t){return Promise.all(t)};Je.spread=Dw;Je.isAxiosError=Pw;Je.mergeConfig=or;Je.AxiosHeaders=Tt;Je.formToJSON=e=>xf(J.isHTMLForm(e)?new FormData(e):e);Je.getAdapter=Tf.getAdapter;Je.HttpStatusCode=Na;Je.default=Je;const{Axios:nR,AxiosError:Ww,CanceledError:rR,isCancel:iR,CancelToken:sR,VERSION:oR,all:aR,Cancel:lR,isAxiosError:cR,spread:uR,toFormData:hR,AxiosHeaders:dR,HttpStatusCode:fR,formToJSON:pR,getAdapter:gR,mergeConfig:mR}=Je;var ze;(function(e){e.assertEqual=a=>a;function t(a){}e.assertIs=t;function n(a){throw new Error}e.assertNever=n,e.arrayToEnum=a=>{const l={};for(const d of a)l[d]=d;return l},e.getValidEnumValues=a=>{const l=e.objectKeys(a).filter(g=>typeof a[a[g]]!="number"),d={};for(const g of l)d[g]=a[g];return e.objectValues(d)},e.objectValues=a=>e.objectKeys(a).map(function(l){return a[l]}),e.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const l=[];for(const d in a)Object.prototype.hasOwnProperty.call(a,d)&&l.push(d);return l},e.find=(a,l)=>{for(const d of a)if(l(d))return d},e.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&isFinite(a)&&Math.floor(a)===a;function r(a,l=" | "){return a.map(d=>typeof d=="string"?`'${d}'`:d).join(l)}e.joinValues=r,e.jsonStringifyReplacer=(a,l)=>typeof l=="bigint"?l.toString():l})(ze||(ze={}));var Fa;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Fa||(Fa={}));const ye=ze.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Tn=e=>{switch(typeof e){case"undefined":return ye.undefined;case"string":return ye.string;case"number":return isNaN(e)?ye.nan:ye.number;case"boolean":return ye.boolean;case"function":return ye.function;case"bigint":return ye.bigint;case"symbol":return ye.symbol;case"object":return Array.isArray(e)?ye.array:e===null?ye.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?ye.promise:typeof Map<"u"&&e instanceof Map?ye.map:typeof Set<"u"&&e instanceof Set?ye.set:typeof Date<"u"&&e instanceof Date?ye.date:ye.object;default:return ye.unknown}},ae=ze.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"]),Bw=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class It 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(l){return l.message},r={_errors:[]},a=l=>{for(const d of l.issues)if(d.code==="invalid_union")d.unionErrors.map(a);else if(d.code==="invalid_return_type")a(d.returnTypeError);else if(d.code==="invalid_arguments")a(d.argumentsError);else if(d.path.length===0)r._errors.push(n(d));else{let g=r,o=0;for(;o<d.path.length;){const p=d.path[o];o===d.path.length-1?(g[p]=g[p]||{_errors:[]},g[p]._errors.push(n(d))):g[p]=g[p]||{_errors:[]},g=g[p],o++}}};return a(this),r}static assert(t){if(!(t instanceof It))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ze.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const a of this.issues)a.path.length>0?(n[a.path[0]]=n[a.path[0]]||[],n[a.path[0]].push(t(a))):r.push(t(a));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}It.create=e=>new It(e);const kr=(e,t)=>{let n;switch(e.code){case ae.invalid_type:e.received===ye.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case ae.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,ze.jsonStringifyReplacer)}`;break;case ae.unrecognized_keys:n=`Unrecognized key(s) in object: ${ze.joinValues(e.keys,", ")}`;break;case ae.invalid_union:n="Invalid input";break;case ae.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${ze.joinValues(e.options)}`;break;case ae.invalid_enum_value:n=`Invalid enum value. Expected ${ze.joinValues(e.options)}, received '${e.received}'`;break;case ae.invalid_arguments:n="Invalid function arguments";break;case ae.invalid_return_type:n="Invalid function return type";break;case ae.invalid_date:n="Invalid date";break;case ae.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}"`:ze.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case ae.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 ae.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 ae.custom:n="Invalid input";break;case ae.invalid_intersection_types:n="Intersection results could not be merged";break;case ae.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case ae.not_finite:n="Number must be finite";break;default:n=t.defaultError,ze.assertNever(e)}return{message:n}};let If=kr;function Hw(e){If=e}function Os(){return If}const Is=e=>{const{data:t,path:n,errorMaps:r,issueData:a}=e,l=[...n,...a.path||[]],d={...a,path:l};if(a.message!==void 0)return{...a,path:l,message:a.message};let g="";const o=r.filter(p=>!!p).slice().reverse();for(const p of o)g=p(d,{data:t,defaultError:g}).message;return{...a,path:l,message:g}},zw=[];function me(e,t){const n=Os(),r=Is({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===kr?void 0:kr].filter(a=>!!a)});e.common.issues.push(r)}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 a of n){if(a.status==="aborted")return Oe;a.status==="dirty"&&t.dirty(),r.push(a.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const a of n){const l=await a.key,d=await a.value;r.push({key:l,value:d})}return _t.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const a of n){const{key:l,value:d}=a;if(l.status==="aborted"||d.status==="aborted")return Oe;l.status==="dirty"&&t.dirty(),d.status==="dirty"&&t.dirty(),l.value!=="__proto__"&&(typeof d.value<"u"||a.alwaysSet)&&(r[l.value]=d.value)}return{status:t.value,value:r}}}const Oe=Object.freeze({status:"aborted"}),mr=e=>({status:"dirty",value:e}),Ct=e=>({status:"valid",value:e}),Da=e=>e.status==="aborted",Pa=e=>e.status==="dirty",mi=e=>e.status==="valid",vi=e=>typeof Promise<"u"&&e instanceof Promise;function Ns(e,t,n,r){if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function Nf(e,t,n,r,a){if(typeof t=="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var Ae;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Ae||(Ae={}));var Vr,Gr;class sn{constructor(t,n,r,a){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=a}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 Pu=(e,t)=>{if(mi(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 It(e.common.issues);return this._error=n,this._error}}};function Pe(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:a}=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:a}:{errorMap:(d,g)=>{var o,p;const{message:i}=e;return d.code==="invalid_enum_value"?{message:i??g.defaultError}:typeof g.data>"u"?{message:(o=i??r)!==null&&o!==void 0?o:g.defaultError}:d.code!=="invalid_type"?{message:g.defaultError}:{message:(p=i??n)!==null&&p!==void 0?p:g.defaultError}},description:a}}class Be{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return Tn(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Tn(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:Tn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(vi(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 a={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:Tn(t)},l=this._parseSync({data:t,path:a.path,parent:a});return Pu(a,l)}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:Tn(t)},a=this._parse({data:t,path:r.path,parent:r}),l=await(vi(a)?a:Promise.resolve(a));return Pu(r,l)}refine(t,n){const r=a=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(a):n;return this._refinement((a,l)=>{const d=t(a),g=()=>l.addIssue({code:ae.custom,...r(a)});return typeof Promise<"u"&&d instanceof Promise?d.then(o=>o?!0:(g(),!1)):d?!0:(g(),!1)})}refinement(t,n){return this._refinement((r,a)=>t(r)?!0:(a.addIssue(typeof n=="function"?n(r,a):n),!1))}_refinement(t){return new Yt({schema:this,typeName:Le.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return en.create(this,this._def)}nullable(){return Bn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Gt.create(this,this._def)}promise(){return Rr.create(this,this._def)}or(t){return _i.create([this,t],this._def)}and(t){return Si.create(this,t,this._def)}transform(t){return new Yt({...Pe(this._def),schema:this,typeName:Le.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new ki({...Pe(this._def),innerType:this,defaultValue:n,typeName:Le.ZodDefault})}brand(){return new Ul({typeName:Le.ZodBranded,type:this,...Pe(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Ei({...Pe(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 Ui.create(this,t)}readonly(){return Ri.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Uw=/^c[^\s-]{8,}$/i,jw=/^[0-9a-z]+$/,Vw=/^[0-9A-HJKMNP-TV-Z]{26}$/,Gw=/^[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,Kw=/^[a-z0-9_-]{21}$/i,Yw=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Zw=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Xw="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Zo;const qw=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Qw=/^(([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})))$/,Jw=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Ff="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",e_=new RegExp(`^${Ff}$`);function Df(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function t_(e){return new RegExp(`^${Df(e)}$`)}function Pf(e){let t=`${Ff}T${Df(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function n_(e,t){return!!((t==="v4"||!t)&&qw.test(e)||(t==="v6"||!t)&&Qw.test(e))}class zt extends Be{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==ye.string){const l=this._getOrReturnCtx(t);return me(l,{code:ae.invalid_type,expected:ye.string,received:l.parsedType}),Oe}const r=new _t;let a;for(const l of this._def.checks)if(l.kind==="min")t.data.length<l.value&&(a=this._getOrReturnCtx(t,a),me(a,{code:ae.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),r.dirty());else if(l.kind==="max")t.data.length>l.value&&(a=this._getOrReturnCtx(t,a),me(a,{code:ae.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),r.dirty());else if(l.kind==="length"){const d=t.data.length>l.value,g=t.data.length<l.value;(d||g)&&(a=this._getOrReturnCtx(t,a),d?me(a,{code:ae.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}):g&&me(a,{code:ae.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}),r.dirty())}else if(l.kind==="email")Zw.test(t.data)||(a=this._getOrReturnCtx(t,a),me(a,{validation:"email",code:ae.invalid_string,message:l.message}),r.dirty());else if(l.kind==="emoji")Zo||(Zo=new RegExp(Xw,"u")),Zo.test(t.data)||(a=this._getOrReturnCtx(t,a),me(a,{validation:"emoji",code:ae.invalid_string,message:l.message}),r.dirty());else if(l.kind==="uuid")Gw.test(t.data)||(a=this._getOrReturnCtx(t,a),me(a,{validation:"uuid",code:ae.invalid_string,message:l.message}),r.dirty());else if(l.kind==="nanoid")Kw.test(t.data)||(a=this._getOrReturnCtx(t,a),me(a,{validation:"nanoid",code:ae.invalid_string,message:l.message}),r.dirty());else if(l.kind==="cuid")Uw.test(t.data)||(a=this._getOrReturnCtx(t,a),me(a,{validation:"cuid",code:ae.invalid_string,message:l.message}),r.dirty());else if(l.kind==="cuid2")jw.test(t.data)||(a=this._getOrReturnCtx(t,a),me(a,{validation:"cuid2",code:ae.invalid_string,message:l.message}),r.dirty());else if(l.kind==="ulid")Vw.test(t.data)||(a=this._getOrReturnCtx(t,a),me(a,{validation:"ulid",code:ae.invalid_string,message:l.message}),r.dirty());else if(l.kind==="url")try{new URL(t.data)}catch{a=this._getOrReturnCtx(t,a),me(a,{validation:"url",code:ae.invalid_string,message:l.message}),r.dirty()}else l.kind==="regex"?(l.regex.lastIndex=0,l.regex.test(t.data)||(a=this._getOrReturnCtx(t,a),me(a,{validation:"regex",code:ae.invalid_string,message:l.message}),r.dirty())):l.kind==="trim"?t.data=t.data.trim():l.kind==="includes"?t.data.includes(l.value,l.position)||(a=this._getOrReturnCtx(t,a),me(a,{code:ae.invalid_string,validation:{includes:l.value,position:l.position},message:l.message}),r.dirty()):l.kind==="toLowerCase"?t.data=t.data.toLowerCase():l.kind==="toUpperCase"?t.data=t.data.toUpperCase():l.kind==="startsWith"?t.data.startsWith(l.value)||(a=this._getOrReturnCtx(t,a),me(a,{code:ae.invalid_string,validation:{startsWith:l.value},message:l.message}),r.dirty()):l.kind==="endsWith"?t.data.endsWith(l.value)||(a=this._getOrReturnCtx(t,a),me(a,{code:ae.invalid_string,validation:{endsWith:l.value},message:l.message}),r.dirty()):l.kind==="datetime"?Pf(l).test(t.data)||(a=this._getOrReturnCtx(t,a),me(a,{code:ae.invalid_string,validation:"datetime",message:l.message}),r.dirty()):l.kind==="date"?e_.test(t.data)||(a=this._getOrReturnCtx(t,a),me(a,{code:ae.invalid_string,validation:"date",message:l.message}),r.dirty()):l.kind==="time"?t_(l).test(t.data)||(a=this._getOrReturnCtx(t,a),me(a,{code:ae.invalid_string,validation:"time",message:l.message}),r.dirty()):l.kind==="duration"?Yw.test(t.data)||(a=this._getOrReturnCtx(t,a),me(a,{validation:"duration",code:ae.invalid_string,message:l.message}),r.dirty()):l.kind==="ip"?n_(t.data,l.version)||(a=this._getOrReturnCtx(t,a),me(a,{validation:"ip",code:ae.invalid_string,message:l.message}),r.dirty()):l.kind==="base64"?Jw.test(t.data)||(a=this._getOrReturnCtx(t,a),me(a,{validation:"base64",code:ae.invalid_string,message:l.message}),r.dirty()):ze.assertNever(l);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(a=>t.test(a),{validation:n,code:ae.invalid_string,...Ae.errToObj(r)})}_addCheck(t){return new zt({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Ae.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Ae.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Ae.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Ae.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Ae.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Ae.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Ae.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Ae.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Ae.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Ae.errToObj(t)})}datetime(t){var n,r;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!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,local:(r=t==null?void 0:t.local)!==null&&r!==void 0?r:!1,...Ae.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...Ae.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...Ae.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...Ae.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...Ae.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...Ae.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...Ae.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...Ae.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...Ae.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...Ae.errToObj(n)})}nonempty(t){return this.min(1,Ae.errToObj(t))}trim(){return new zt({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new zt({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new zt({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}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 isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}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 isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}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}}zt.create=e=>{var t;return new zt({checks:[],typeName:Le.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Pe(e)})};function r_(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,a=n>r?n:r,l=parseInt(e.toFixed(a).replace(".","")),d=parseInt(t.toFixed(a).replace(".",""));return l%d/Math.pow(10,a)}class Dn extends Be{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==ye.number){const l=this._getOrReturnCtx(t);return me(l,{code:ae.invalid_type,expected:ye.number,received:l.parsedType}),Oe}let r;const a=new _t;for(const l of this._def.checks)l.kind==="int"?ze.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),me(r,{code:ae.invalid_type,expected:"integer",received:"float",message:l.message}),a.dirty()):l.kind==="min"?(l.inclusive?t.data<l.value:t.data<=l.value)&&(r=this._getOrReturnCtx(t,r),me(r,{code:ae.too_small,minimum:l.value,type:"number",inclusive:l.inclusive,exact:!1,message:l.message}),a.dirty()):l.kind==="max"?(l.inclusive?t.data>l.value:t.data>=l.value)&&(r=this._getOrReturnCtx(t,r),me(r,{code:ae.too_big,maximum:l.value,type:"number",inclusive:l.inclusive,exact:!1,message:l.message}),a.dirty()):l.kind==="multipleOf"?r_(t.data,l.value)!==0&&(r=this._getOrReturnCtx(t,r),me(r,{code:ae.not_multiple_of,multipleOf:l.value,message:l.message}),a.dirty()):l.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),me(r,{code:ae.not_finite,message:l.message}),a.dirty()):ze.assertNever(l);return{status:a.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Ae.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Ae.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Ae.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Ae.toString(n))}setLimit(t,n,r,a){return new Dn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Ae.toString(a)}]})}_addCheck(t){return new Dn({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Ae.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Ae.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Ae.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Ae.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Ae.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Ae.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:Ae.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Ae.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Ae.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"&&ze.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)}}Dn.create=e=>new Dn({checks:[],typeName:Le.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Pe(e)});class Pn extends Be{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==ye.bigint){const l=this._getOrReturnCtx(t);return me(l,{code:ae.invalid_type,expected:ye.bigint,received:l.parsedType}),Oe}let r;const a=new _t;for(const l of this._def.checks)l.kind==="min"?(l.inclusive?t.data<l.value:t.data<=l.value)&&(r=this._getOrReturnCtx(t,r),me(r,{code:ae.too_small,type:"bigint",minimum:l.value,inclusive:l.inclusive,message:l.message}),a.dirty()):l.kind==="max"?(l.inclusive?t.data>l.value:t.data>=l.value)&&(r=this._getOrReturnCtx(t,r),me(r,{code:ae.too_big,type:"bigint",maximum:l.value,inclusive:l.inclusive,message:l.message}),a.dirty()):l.kind==="multipleOf"?t.data%l.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),me(r,{code:ae.not_multiple_of,multipleOf:l.value,message:l.message}),a.dirty()):ze.assertNever(l);return{status:a.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Ae.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Ae.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Ae.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Ae.toString(n))}setLimit(t,n,r,a){return new Pn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Ae.toString(a)}]})}_addCheck(t){return new Pn({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Ae.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Ae.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Ae.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Ae.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Ae.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}}Pn.create=e=>{var t;return new Pn({checks:[],typeName:Le.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Pe(e)})};class yi extends Be{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==ye.boolean){const r=this._getOrReturnCtx(t);return me(r,{code:ae.invalid_type,expected:ye.boolean,received:r.parsedType}),Oe}return Ct(t.data)}}yi.create=e=>new yi({typeName:Le.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Pe(e)});class ar extends Be{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==ye.date){const l=this._getOrReturnCtx(t);return me(l,{code:ae.invalid_type,expected:ye.date,received:l.parsedType}),Oe}if(isNaN(t.data.getTime())){const l=this._getOrReturnCtx(t);return me(l,{code:ae.invalid_date}),Oe}const r=new _t;let a;for(const l of this._def.checks)l.kind==="min"?t.data.getTime()<l.value&&(a=this._getOrReturnCtx(t,a),me(a,{code:ae.too_small,message:l.message,inclusive:!0,exact:!1,minimum:l.value,type:"date"}),r.dirty()):l.kind==="max"?t.data.getTime()>l.value&&(a=this._getOrReturnCtx(t,a),me(a,{code:ae.too_big,message:l.message,inclusive:!0,exact:!1,maximum:l.value,type:"date"}),r.dirty()):ze.assertNever(l);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new ar({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:Ae.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:Ae.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}}ar.create=e=>new ar({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Le.ZodDate,...Pe(e)});class Fs extends Be{_parse(t){if(this._getType(t)!==ye.symbol){const r=this._getOrReturnCtx(t);return me(r,{code:ae.invalid_type,expected:ye.symbol,received:r.parsedType}),Oe}return Ct(t.data)}}Fs.create=e=>new Fs({typeName:Le.ZodSymbol,...Pe(e)});class bi extends Be{_parse(t){if(this._getType(t)!==ye.undefined){const r=this._getOrReturnCtx(t);return me(r,{code:ae.invalid_type,expected:ye.undefined,received:r.parsedType}),Oe}return Ct(t.data)}}bi.create=e=>new bi({typeName:Le.ZodUndefined,...Pe(e)});class wi extends Be{_parse(t){if(this._getType(t)!==ye.null){const r=this._getOrReturnCtx(t);return me(r,{code:ae.invalid_type,expected:ye.null,received:r.parsedType}),Oe}return Ct(t.data)}}wi.create=e=>new wi({typeName:Le.ZodNull,...Pe(e)});class Er extends Be{constructor(){super(...arguments),this._any=!0}_parse(t){return Ct(t.data)}}Er.create=e=>new Er({typeName:Le.ZodAny,...Pe(e)});class er extends Be{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Ct(t.data)}}er.create=e=>new er({typeName:Le.ZodUnknown,...Pe(e)});class vn extends Be{_parse(t){const n=this._getOrReturnCtx(t);return me(n,{code:ae.invalid_type,expected:ye.never,received:n.parsedType}),Oe}}vn.create=e=>new vn({typeName:Le.ZodNever,...Pe(e)});class Ds extends Be{_parse(t){if(this._getType(t)!==ye.undefined){const r=this._getOrReturnCtx(t);return me(r,{code:ae.invalid_type,expected:ye.void,received:r.parsedType}),Oe}return Ct(t.data)}}Ds.create=e=>new Ds({typeName:Le.ZodVoid,...Pe(e)});class Gt extends Be{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),a=this._def;if(n.parsedType!==ye.array)return me(n,{code:ae.invalid_type,expected:ye.array,received:n.parsedType}),Oe;if(a.exactLength!==null){const d=n.data.length>a.exactLength.value,g=n.data.length<a.exactLength.value;(d||g)&&(me(n,{code:d?ae.too_big:ae.too_small,minimum:g?a.exactLength.value:void 0,maximum:d?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),r.dirty())}if(a.minLength!==null&&n.data.length<a.minLength.value&&(me(n,{code:ae.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),r.dirty()),a.maxLength!==null&&n.data.length>a.maxLength.value&&(me(n,{code:ae.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((d,g)=>a.type._parseAsync(new sn(n,d,n.path,g)))).then(d=>_t.mergeArray(r,d));const l=[...n.data].map((d,g)=>a.type._parseSync(new sn(n,d,n.path,g)));return _t.mergeArray(r,l)}get element(){return this._def.type}min(t,n){return new Gt({...this._def,minLength:{value:t,message:Ae.toString(n)}})}max(t,n){return new Gt({...this._def,maxLength:{value:t,message:Ae.toString(n)}})}length(t,n){return new Gt({...this._def,exactLength:{value:t,message:Ae.toString(n)}})}nonempty(t){return this.min(1,t)}}Gt.create=(e,t)=>new Gt({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Le.ZodArray,...Pe(t)});function dr(e){if(e instanceof at){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=en.create(dr(r))}return new at({...e._def,shape:()=>t})}else return e instanceof Gt?new Gt({...e._def,type:dr(e.element)}):e instanceof en?en.create(dr(e.unwrap())):e instanceof Bn?Bn.create(dr(e.unwrap())):e instanceof on?on.create(e.items.map(t=>dr(t))):e}class at extends Be{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=ze.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==ye.object){const p=this._getOrReturnCtx(t);return me(p,{code:ae.invalid_type,expected:ye.object,received:p.parsedType}),Oe}const{status:r,ctx:a}=this._processInputParams(t),{shape:l,keys:d}=this._getCached(),g=[];if(!(this._def.catchall instanceof vn&&this._def.unknownKeys==="strip"))for(const p in a.data)d.includes(p)||g.push(p);const o=[];for(const p of d){const i=l[p],s=a.data[p];o.push({key:{status:"valid",value:p},value:i._parse(new sn(a,s,a.path,p)),alwaysSet:p in a.data})}if(this._def.catchall instanceof vn){const p=this._def.unknownKeys;if(p==="passthrough")for(const i of g)o.push({key:{status:"valid",value:i},value:{status:"valid",value:a.data[i]}});else if(p==="strict")g.length>0&&(me(a,{code:ae.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 i of g){const s=a.data[i];o.push({key:{status:"valid",value:i},value:p._parse(new sn(a,s,a.path,i)),alwaysSet:i in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const p=[];for(const i of o){const s=await i.key,c=await i.value;p.push({key:s,value:c,alwaysSet:i.alwaysSet})}return p}).then(p=>_t.mergeObjectSync(r,p)):_t.mergeObjectSync(r,o)}get shape(){return this._def.shape()}strict(t){return Ae.errToObj,new at({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var a,l,d,g;const o=(d=(l=(a=this._def).errorMap)===null||l===void 0?void 0:l.call(a,n,r).message)!==null&&d!==void 0?d:r.defaultError;return n.code==="unrecognized_keys"?{message:(g=Ae.errToObj(t).message)!==null&&g!==void 0?g:o}:{message:o}}}:{}})}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 ze.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 ze.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new at({...this._def,shape:()=>n})}deepPartial(){return dr(this)}partial(t){const n={};return ze.objectKeys(this.shape).forEach(r=>{const a=this.shape[r];t&&!t[r]?n[r]=a:n[r]=a.optional()}),new at({...this._def,shape:()=>n})}required(t){const n={};return ze.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let l=this.shape[r];for(;l instanceof en;)l=l._def.innerType;n[r]=l}}),new at({...this._def,shape:()=>n})}keyof(){return Wf(ze.objectKeys(this.shape))}}at.create=(e,t)=>new at({shape:()=>e,unknownKeys:"strip",catchall:vn.create(),typeName:Le.ZodObject,...Pe(t)});at.strictCreate=(e,t)=>new at({shape:()=>e,unknownKeys:"strict",catchall:vn.create(),typeName:Le.ZodObject,...Pe(t)});at.lazycreate=(e,t)=>new at({shape:e,unknownKeys:"strip",catchall:vn.create(),typeName:Le.ZodObject,...Pe(t)});class _i extends Be{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function a(l){for(const g of l)if(g.result.status==="valid")return g.result;for(const g of l)if(g.result.status==="dirty")return n.common.issues.push(...g.ctx.common.issues),g.result;const d=l.map(g=>new It(g.ctx.common.issues));return me(n,{code:ae.invalid_union,unionErrors:d}),Oe}if(n.common.async)return Promise.all(r.map(async l=>{const d={...n,common:{...n.common,issues:[]},parent:null};return{result:await l._parseAsync({data:n.data,path:n.path,parent:d}),ctx:d}})).then(a);{let l;const d=[];for(const o of r){const p={...n,common:{...n.common,issues:[]},parent:null},i=o._parseSync({data:n.data,path:n.path,parent:p});if(i.status==="valid")return i;i.status==="dirty"&&!l&&(l={result:i,ctx:p}),p.common.issues.length&&d.push(p.common.issues)}if(l)return n.common.issues.push(...l.ctx.common.issues),l.result;const g=d.map(o=>new It(o));return me(n,{code:ae.invalid_union,unionErrors:g}),Oe}}get options(){return this._def.options}}_i.create=(e,t)=>new _i({options:e,typeName:Le.ZodUnion,...Pe(t)});const cn=e=>e instanceof xi?cn(e.schema):e instanceof Yt?cn(e.innerType()):e instanceof Ci?[e.value]:e instanceof Wn?e.options:e instanceof Ai?ze.objectValues(e.enum):e instanceof ki?cn(e._def.innerType):e instanceof bi?[void 0]:e instanceof wi?[null]:e instanceof en?[void 0,...cn(e.unwrap())]:e instanceof Bn?[null,...cn(e.unwrap())]:e instanceof Ul||e instanceof Ri?cn(e.unwrap()):e instanceof Ei?cn(e._def.innerType):[];class yo extends Be{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ye.object)return me(n,{code:ae.invalid_type,expected:ye.object,received:n.parsedType}),Oe;const r=this.discriminator,a=n.data[r],l=this.optionsMap.get(a);return l?n.common.async?l._parseAsync({data:n.data,path:n.path,parent:n}):l._parseSync({data:n.data,path:n.path,parent:n}):(me(n,{code:ae.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),Oe)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const a=new Map;for(const l of n){const d=cn(l.shape[t]);if(!d.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const g of d){if(a.has(g))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(g)}`);a.set(g,l)}}return new yo({typeName:Le.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:a,...Pe(r)})}}function Wa(e,t){const n=Tn(e),r=Tn(t);if(e===t)return{valid:!0,data:e};if(n===ye.object&&r===ye.object){const a=ze.objectKeys(t),l=ze.objectKeys(e).filter(g=>a.indexOf(g)!==-1),d={...e,...t};for(const g of l){const o=Wa(e[g],t[g]);if(!o.valid)return{valid:!1};d[g]=o.data}return{valid:!0,data:d}}else if(n===ye.array&&r===ye.array){if(e.length!==t.length)return{valid:!1};const a=[];for(let l=0;l<e.length;l++){const d=e[l],g=t[l],o=Wa(d,g);if(!o.valid)return{valid:!1};a.push(o.data)}return{valid:!0,data:a}}else return n===ye.date&&r===ye.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Si extends Be{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),a=(l,d)=>{if(Da(l)||Da(d))return Oe;const g=Wa(l.value,d.value);return g.valid?((Pa(l)||Pa(d))&&n.dirty(),{status:n.value,value:g.data}):(me(r,{code:ae.invalid_intersection_types}),Oe)};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(([l,d])=>a(l,d)):a(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Si.create=(e,t,n)=>new Si({left:e,right:t,typeName:Le.ZodIntersection,...Pe(n)});class on extends Be{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ye.array)return me(r,{code:ae.invalid_type,expected:ye.array,received:r.parsedType}),Oe;if(r.data.length<this._def.items.length)return me(r,{code:ae.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Oe;!this._def.rest&&r.data.length>this._def.items.length&&(me(r,{code:ae.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const l=[...r.data].map((d,g)=>{const o=this._def.items[g]||this._def.rest;return o?o._parse(new sn(r,d,r.path,g)):null}).filter(d=>!!d);return r.common.async?Promise.all(l).then(d=>_t.mergeArray(n,d)):_t.mergeArray(n,l)}get items(){return this._def.items}rest(t){return new on({...this._def,rest:t})}}on.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new on({items:e,typeName:Le.ZodTuple,rest:null,...Pe(t)})};class $i extends Be{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ye.object)return me(r,{code:ae.invalid_type,expected:ye.object,received:r.parsedType}),Oe;const a=[],l=this._def.keyType,d=this._def.valueType;for(const g in r.data)a.push({key:l._parse(new sn(r,g,r.path,g)),value:d._parse(new sn(r,r.data[g],r.path,g)),alwaysSet:g in r.data});return r.common.async?_t.mergeObjectAsync(n,a):_t.mergeObjectSync(n,a)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof Be?new $i({keyType:t,valueType:n,typeName:Le.ZodRecord,...Pe(r)}):new $i({keyType:zt.create(),valueType:t,typeName:Le.ZodRecord,...Pe(n)})}}class Ps extends Be{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ye.map)return me(r,{code:ae.invalid_type,expected:ye.map,received:r.parsedType}),Oe;const a=this._def.keyType,l=this._def.valueType,d=[...r.data.entries()].map(([g,o],p)=>({key:a._parse(new sn(r,g,r.path,[p,"key"])),value:l._parse(new sn(r,o,r.path,[p,"value"]))}));if(r.common.async){const g=new Map;return Promise.resolve().then(async()=>{for(const o of d){const p=await o.key,i=await o.value;if(p.status==="aborted"||i.status==="aborted")return Oe;(p.status==="dirty"||i.status==="dirty")&&n.dirty(),g.set(p.value,i.value)}return{status:n.value,value:g}})}else{const g=new Map;for(const o of d){const p=o.key,i=o.value;if(p.status==="aborted"||i.status==="aborted")return Oe;(p.status==="dirty"||i.status==="dirty")&&n.dirty(),g.set(p.value,i.value)}return{status:n.value,value:g}}}}Ps.create=(e,t,n)=>new Ps({valueType:t,keyType:e,typeName:Le.ZodMap,...Pe(n)});class lr extends Be{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ye.set)return me(r,{code:ae.invalid_type,expected:ye.set,received:r.parsedType}),Oe;const a=this._def;a.minSize!==null&&r.data.size<a.minSize.value&&(me(r,{code:ae.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),n.dirty()),a.maxSize!==null&&r.data.size>a.maxSize.value&&(me(r,{code:ae.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),n.dirty());const l=this._def.valueType;function d(o){const p=new Set;for(const i of o){if(i.status==="aborted")return Oe;i.status==="dirty"&&n.dirty(),p.add(i.value)}return{status:n.value,value:p}}const g=[...r.data.values()].map((o,p)=>l._parse(new sn(r,o,r.path,p)));return r.common.async?Promise.all(g).then(o=>d(o)):d(g)}min(t,n){return new lr({...this._def,minSize:{value:t,message:Ae.toString(n)}})}max(t,n){return new lr({...this._def,maxSize:{value:t,message:Ae.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}lr.create=(e,t)=>new lr({valueType:e,minSize:null,maxSize:null,typeName:Le.ZodSet,...Pe(t)});class _r extends Be{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ye.function)return me(n,{code:ae.invalid_type,expected:ye.function,received:n.parsedType}),Oe;function r(g,o){return Is({data:g,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Os(),kr].filter(p=>!!p),issueData:{code:ae.invalid_arguments,argumentsError:o}})}function a(g,o){return Is({data:g,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Os(),kr].filter(p=>!!p),issueData:{code:ae.invalid_return_type,returnTypeError:o}})}const l={errorMap:n.common.contextualErrorMap},d=n.data;if(this._def.returns instanceof Rr){const g=this;return Ct(async function(...o){const p=new It([]),i=await g._def.args.parseAsync(o,l).catch(u=>{throw p.addIssue(r(o,u)),p}),s=await Reflect.apply(d,this,i);return await g._def.returns._def.type.parseAsync(s,l).catch(u=>{throw p.addIssue(a(s,u)),p})})}else{const g=this;return Ct(function(...o){const p=g._def.args.safeParse(o,l);if(!p.success)throw new It([r(o,p.error)]);const i=Reflect.apply(d,this,p.data),s=g._def.returns.safeParse(i,l);if(!s.success)throw new It([a(i,s.error)]);return s.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new _r({...this._def,args:on.create(t).rest(er.create())})}returns(t){return new _r({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new _r({args:t||on.create([]).rest(er.create()),returns:n||er.create(),typeName:Le.ZodFunction,...Pe(r)})}}class xi extends Be{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}xi.create=(e,t)=>new xi({getter:e,typeName:Le.ZodLazy,...Pe(t)});class Ci extends Be{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return me(n,{received:n.data,code:ae.invalid_literal,expected:this._def.value}),Oe}return{status:"valid",value:t.data}}get value(){return this._def.value}}Ci.create=(e,t)=>new Ci({value:e,typeName:Le.ZodLiteral,...Pe(t)});function Wf(e,t){return new Wn({values:e,typeName:Le.ZodEnum,...Pe(t)})}class Wn extends Be{constructor(){super(...arguments),Vr.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return me(n,{expected:ze.joinValues(r),received:n.parsedType,code:ae.invalid_type}),Oe}if(Ns(this,Vr)||Nf(this,Vr,new Set(this._def.values)),!Ns(this,Vr).has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return me(n,{received:n.data,code:ae.invalid_enum_value,options:r}),Oe}return Ct(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,n=this._def){return Wn.create(t,{...this._def,...n})}exclude(t,n=this._def){return Wn.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}Vr=new WeakMap;Wn.create=Wf;class Ai extends Be{constructor(){super(...arguments),Gr.set(this,void 0)}_parse(t){const n=ze.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==ye.string&&r.parsedType!==ye.number){const a=ze.objectValues(n);return me(r,{expected:ze.joinValues(a),received:r.parsedType,code:ae.invalid_type}),Oe}if(Ns(this,Gr)||Nf(this,Gr,new Set(ze.getValidEnumValues(this._def.values))),!Ns(this,Gr).has(t.data)){const a=ze.objectValues(n);return me(r,{received:r.data,code:ae.invalid_enum_value,options:a}),Oe}return Ct(t.data)}get enum(){return this._def.values}}Gr=new WeakMap;Ai.create=(e,t)=>new Ai({values:e,typeName:Le.ZodNativeEnum,...Pe(t)});class Rr extends Be{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ye.promise&&n.common.async===!1)return me(n,{code:ae.invalid_type,expected:ye.promise,received:n.parsedType}),Oe;const r=n.parsedType===ye.promise?n.data:Promise.resolve(n.data);return Ct(r.then(a=>this._def.type.parseAsync(a,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Rr.create=(e,t)=>new Rr({type:e,typeName:Le.ZodPromise,...Pe(t)});class Yt extends Be{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),a=this._def.effect||null,l={addIssue:d=>{me(r,d),d.fatal?n.abort():n.dirty()},get path(){return r.path}};if(l.addIssue=l.addIssue.bind(l),a.type==="preprocess"){const d=a.transform(r.data,l);if(r.common.async)return Promise.resolve(d).then(async g=>{if(n.value==="aborted")return Oe;const o=await this._def.schema._parseAsync({data:g,path:r.path,parent:r});return o.status==="aborted"?Oe:o.status==="dirty"||n.value==="dirty"?mr(o.value):o});{if(n.value==="aborted")return Oe;const g=this._def.schema._parseSync({data:d,path:r.path,parent:r});return g.status==="aborted"?Oe:g.status==="dirty"||n.value==="dirty"?mr(g.value):g}}if(a.type==="refinement"){const d=g=>{const o=a.refinement(g,l);if(r.common.async)return Promise.resolve(o);if(o instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return g};if(r.common.async===!1){const g=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return g.status==="aborted"?Oe:(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"?Oe:(g.status==="dirty"&&n.dirty(),d(g.value).then(()=>({status:n.value,value:g.value}))))}if(a.type==="transform")if(r.common.async===!1){const d=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!mi(d))return d;const g=a.transform(d.value,l);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=>mi(d)?Promise.resolve(a.transform(d.value,l)).then(g=>({status:n.value,value:g})):d);ze.assertNever(a)}}Yt.create=(e,t,n)=>new Yt({schema:e,typeName:Le.ZodEffects,effect:t,...Pe(n)});Yt.createWithPreprocess=(e,t,n)=>new Yt({schema:t,effect:{type:"preprocess",transform:e},typeName:Le.ZodEffects,...Pe(n)});class en extends Be{_parse(t){return this._getType(t)===ye.undefined?Ct(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}en.create=(e,t)=>new en({innerType:e,typeName:Le.ZodOptional,...Pe(t)});class Bn extends Be{_parse(t){return this._getType(t)===ye.null?Ct(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Bn.create=(e,t)=>new Bn({innerType:e,typeName:Le.ZodNullable,...Pe(t)});class ki extends Be{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===ye.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}ki.create=(e,t)=>new ki({innerType:e,typeName:Le.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Pe(t)});class Ei extends Be{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},a=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return vi(a)?a.then(l=>({status:"valid",value:l.status==="valid"?l.value:this._def.catchValue({get error(){return new It(r.common.issues)},input:r.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new It(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Ei.create=(e,t)=>new Ei({innerType:e,typeName:Le.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Pe(t)});class Ws extends Be{_parse(t){if(this._getType(t)!==ye.nan){const r=this._getOrReturnCtx(t);return me(r,{code:ae.invalid_type,expected:ye.nan,received:r.parsedType}),Oe}return{status:"valid",value:t.data}}}Ws.create=e=>new Ws({typeName:Le.ZodNaN,...Pe(e)});const i_=Symbol("zod_brand");class Ul extends Be{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class Ui extends Be{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const l=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return l.status==="aborted"?Oe:l.status==="dirty"?(n.dirty(),mr(l.value)):this._def.out._parseAsync({data:l.value,path:r.path,parent:r})})();{const a=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?Oe:a.status==="dirty"?(n.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:r.path,parent:r})}}static create(t,n){return new Ui({in:t,out:n,typeName:Le.ZodPipeline})}}class Ri extends Be{_parse(t){const n=this._def.innerType._parse(t),r=a=>(mi(a)&&(a.value=Object.freeze(a.value)),a);return vi(n)?n.then(a=>r(a)):r(n)}unwrap(){return this._def.innerType}}Ri.create=(e,t)=>new Ri({innerType:e,typeName:Le.ZodReadonly,...Pe(t)});function Bf(e,t={},n){return e?Er.create().superRefine((r,a)=>{var l,d;if(!e(r)){const g=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,o=(d=(l=g.fatal)!==null&&l!==void 0?l:n)!==null&&d!==void 0?d:!0,p=typeof g=="string"?{message:g}:g;a.addIssue({code:"custom",...p,fatal:o})}}):Er.create()}const s_={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 o_=(e,t={message:`Input not instance of ${e.name}`})=>Bf(n=>n instanceof e,t),Hf=zt.create,zf=Dn.create,a_=Ws.create,l_=Pn.create,Uf=yi.create,c_=ar.create,u_=Fs.create,h_=bi.create,d_=wi.create,f_=Er.create,p_=er.create,g_=vn.create,m_=Ds.create,v_=Gt.create,y_=at.create,b_=at.strictCreate,w_=_i.create,__=yo.create,S_=Si.create,$_=on.create,x_=$i.create,C_=Ps.create,A_=lr.create,k_=_r.create,E_=xi.create,R_=Ci.create,T_=Wn.create,L_=Ai.create,M_=Rr.create,Wu=Yt.create,O_=en.create,I_=Bn.create,N_=Yt.createWithPreprocess,F_=Ui.create,D_=()=>Hf().optional(),P_=()=>zf().optional(),W_=()=>Uf().optional(),B_={string:e=>zt.create({...e,coerce:!0}),number:e=>Dn.create({...e,coerce:!0}),boolean:e=>yi.create({...e,coerce:!0}),bigint:e=>Pn.create({...e,coerce:!0}),date:e=>ar.create({...e,coerce:!0})},H_=Oe;var ne=Object.freeze({__proto__:null,defaultErrorMap:kr,setErrorMap:Hw,getErrorMap:Os,makeIssue:Is,EMPTY_PATH:zw,addIssueToContext:me,ParseStatus:_t,INVALID:Oe,DIRTY:mr,OK:Ct,isAborted:Da,isDirty:Pa,isValid:mi,isAsync:vi,get util(){return ze},get objectUtil(){return Fa},ZodParsedType:ye,getParsedType:Tn,ZodType:Be,datetimeRegex:Pf,ZodString:zt,ZodNumber:Dn,ZodBigInt:Pn,ZodBoolean:yi,ZodDate:ar,ZodSymbol:Fs,ZodUndefined:bi,ZodNull:wi,ZodAny:Er,ZodUnknown:er,ZodNever:vn,ZodVoid:Ds,ZodArray:Gt,ZodObject:at,ZodUnion:_i,ZodDiscriminatedUnion:yo,ZodIntersection:Si,ZodTuple:on,ZodRecord:$i,ZodMap:Ps,ZodSet:lr,ZodFunction:_r,ZodLazy:xi,ZodLiteral:Ci,ZodEnum:Wn,ZodNativeEnum:Ai,ZodPromise:Rr,ZodEffects:Yt,ZodTransformer:Yt,ZodOptional:en,ZodNullable:Bn,ZodDefault:ki,ZodCatch:Ei,ZodNaN:Ws,BRAND:i_,ZodBranded:Ul,ZodPipeline:Ui,ZodReadonly:Ri,custom:Bf,Schema:Be,ZodSchema:Be,late:s_,get ZodFirstPartyTypeKind(){return Le},coerce:B_,any:f_,array:v_,bigint:l_,boolean:Uf,date:c_,discriminatedUnion:__,effect:Wu,enum:T_,function:k_,instanceof:o_,intersection:S_,lazy:E_,literal:R_,map:C_,nan:a_,nativeEnum:L_,never:g_,null:d_,nullable:I_,number:zf,object:y_,oboolean:W_,onumber:P_,optional:O_,ostring:D_,pipeline:F_,preprocess:N_,promise:M_,record:x_,set:A_,strictObject:b_,string:Hf,symbol:u_,transformer:Wu,tuple:$_,undefined:h_,union:w_,unknown:p_,void:m_,NEVER:H_,ZodIssueCode:ae,quotelessJson:Bw,ZodError:It});const bo=ne.object({total:ne.number(),currentPage:ne.number(),pageSize:ne.number()}),z_=ne.object({key:ne.string(),value:ne.string().nullish()}),U_=ne.object({name:ne.string(),configured:ne.boolean(),items:ne.array(z_).nullish(),type:ne.string()}),j_=ne.object({results:ne.array(U_)}),wo=ne.object({id:ne.number(),name:ne.string()}),V_=bo.extend({results:ne.array(wo)}),G_=ne.object({resource:ne.string(),value:ne.string()}),Bu=ne.object({name:ne.string().nullish()}),K_=ne.object({createdOn:ne.string().nullish(),updatedOn:ne.string().nullish(),expiresOn:ne.string().nullish(),registrar:Bu.nullish(),contacts:ne.array(Bu)}),Y_=ne.object({number:ne.number()}),Z_=ne.object({country:ne.string(),countryCode:ne.string()}),X_=ne.object({name:ne.string()}),q_=ne.object({name:ne.string()}),Q_=ne.object({name:ne.string()}),J_=ne.object({number:ne.number()}),jl=ne.object({id:ne.number(),data:ne.string(),dataType:ne.string(),source:ne.string(),query:ne.string().nullish(),metadata:ne.any().nullish(),createdAt:ne.string(),autonomousSystem:Y_.nullish(),whoisRecord:K_.nullish(),geolocation:Z_.nullish(),dnsRecords:ne.array(G_).nullish(),reverseDnsNames:ne.array(X_).nullish(),cpes:ne.array(q_).nullish(),ports:ne.array(J_).nullish(),vulnerabilities:ne.array(Q_).nullish(),tags:ne.array(wo)}),jf=ne.object({id:ne.number(),ruleId:ne.string(),createdAt:ne.string(),tags:ne.array(wo),artifacts:ne.array(jl)}),eS=bo.extend({results:ne.array(jf)});ne.object({q:ne.string(),page:ne.number().nullish(),limit:ne.number().nullish()});ne.object({countryCode:ne.string(),asn:ne.string().nullish(),loc:ne.string().nullish()});ne.object({lat:ne.number(),long:ne.number()});ne.object({name:ne.string(),code:ne.string(),lat:ne.number(),long:ne.number()});ne.union([ne.literal("ip"),ne.literal("domain"),ne.literal("url"),ne.literal("hash"),ne.literal("mail")]);ne.object({name:ne.string(),type:ne.string(),baseURL:ne.string(),favicon:ne.function().returns(ne.string()),href:ne.function().args(ne.string()).returns(ne.string())});const _s=ne.object({id:ne.string(),title:ne.string(),description:ne.string(),yaml:ne.string(),createdAt:ne.string(),updatedAt:ne.string(),tags:ne.array(wo)});ne.object({yaml:ne.string()});ne.object({yaml:ne.string()});ne.object({analyzer:ne.string(),query:ne.string()});const tS=bo.extend({results:ne.array(_s)}),nS=bo.extend({results:ne.array(jl)}),Vf=ne.object({message:ne.string()});Vf.extend({detail:ne.any().nullish()});const Hu=Vf.extend({queued:ne.boolean()});ne.union([ne.literal("Alerts"),ne.literal("Rules"),ne.literal("Artifacts")]);const pt=Je.create(),$t={async getConfigs(){const e=await pt.get("/api/configs");return j_.parse(e.data)},async getAlerts(e){e.page=e.page||1;const t=await pt.get("/api/alerts",{params:e});return eS.parse(t.data)},async getAlert(e){const t=await pt.get(`/api/alerts/${e}`);return jf.parse(t.data)},async getTags(){const e=await pt.get("/api/tags");return V_.parse(e.data)},async deleteAlert(e){await pt.delete(`/api/alerts/${e}`)},async getArtifact(e){const t=await pt.get(`/api/artifacts/${e}`);return jl.parse(t.data)},async getArtifacts(e){e.page=e.page||1;const t=await pt.get("/api/artifacts",{params:e});return nS.parse(t.data)},async enrichArtifact(e){const t=await pt.post(`/api/artifacts/${e}/enrich`);return Hu.parse(t.data)},async deleteArtifact(e){await pt.delete(`/api/artifacts/${e}`)},async getRules(e){e.page=e.page||1;const t=await pt.get("/api/rules",{params:e});return tS.parse(t.data)},async getRule(e){const t=await pt.get(`/api/rules/${e}`);return _s.parse(t.data)},async searchRule(e){const t=await pt.post(`/api/rules/${e}/search`);return Hu.parse(t.data)},async createRule(e){const t=await pt.post("/api/rules/",e);return _s.parse(t.data)},async updateRule(e){const t=await pt.put("/api/rules/",e);return _s.parse(t.data)},async deleteRule(e){await pt.delete(`/api/rules/${e}`)},async deleteTag(e){await pt.delete(`/api/tags/${e}`)},async getIpInfo(e){return(await pt.get(`/api/ip_addresses/${e}`)).data}};function _o(){return St(async(e,t)=>await $t.getAlerts(t))}function rS(){return St(async(e,t)=>await $t.deleteAlert(t))}function iS(){return St(async(e,t)=>await $t.deleteTag(t))}function sS(){return St(async(e,t)=>await $t.getArtifact(t))}function Gf(){return St(async(e,t)=>await $t.deleteArtifact(t))}function oS(){return St(async(e,t)=>await $t.enrichArtifact(t))}function aS(){return St(async()=>await $t.getConfigs())}function lS(){return St(async(e,t)=>await $t.getIpInfo(t))}function Kf(){return St(async(e,t)=>await $t.getRules(t))}function Yf(){return St(async(e,t)=>await $t.getRule(t))}function cS(){return St(async(e,t)=>await $t.deleteRule(t))}function uS(){return St(async(e,t)=>await $t.searchRule(t))}function hS(){return St(async(e,t)=>await $t.createRule(t))}function dS(){return St(async(e,t)=>await $t.updateRule(t))}function Vl(){return St(async(e,t)=>await $t.getArtifacts(t))}function fS(){return St(async(e,t)=>await $t.getAlert(t))}const pS={class:"buttons is-pulled-right"},gS=["href"],mS=F("span",null,"JSON",-1),vS={class:"icon is-small"},yS=F("span",null,"Delete",-1),bS={class:"icon is-small"},Zf=xe({__name:"ActionButtons",props:{alert:{type:Object,required:!0}},emits:["delete","set-error"],setup(e,{emit:t}){const n=e,r=t,a=Re(()=>`/api/alerts/${n.alert.id}`),l=rS(),d=async()=>{if(window.confirm(`Are you sure you want to delete ${n.alert.id}?`))try{await l.perform(n.alert.id),r("delete")}catch(o){Je.isAxiosError(o)&&r("set-error",o)}};return(g,o)=>{const p=Ze("font-awesome-icon");return G(),re("span",pS,[F("a",{class:"button is-link is-light is-small",href:a.value,target:"_blank"},[mS,F("span",vS,[oe(p,{icon:"barcode"})])],8,gS),F("button",{class:"button is-light is-small",onClick:d},[yS,F("span",bS,[oe(p,{icon:"times"})])])])}}});var Ti=wS;function wS(e,t,n){return t==null||t>=e.length?e:(n==null&&(n="..."),e.slice(0,Math.max(0,t-n.length))+n)}const _S={key:0,class:"control"},SS=xe({__name:"ArtifactTag",props:{artifact:{type:Object,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=e,r=t,a=je(!1),l=je(!1),d=Gf(),g=async()=>{window.confirm(`Are you sure you want to delete ${n.artifact.data}?`)&&(await d.perform(n.artifact.id),a.value=!0,r("delete"))},o=()=>{l.value=!0},p=()=>{l.value=!1};return(i,s)=>{const c=Ze("router-link");return a.value?ge("",!0):(G(),re("div",_S,[F("div",{class:"tags has-addons are-medium",onMouseover:o,onMouseleave:p},[oe(c,{class:"tag is-link is-light",to:{name:"Artifact",params:{id:e.artifact.id}}},{default:rt(()=>[it(_e(le(Ti)(e.artifact.data,32)),1)]),_:1},8,["to"]),l.value?(G(),re("span",{key:0,class:"tag is-delete",onClick:g})):ge("",!0)],32)]))}}}),$S={class:"field is-grouped is-grouped-multiline"},Xf=xe({__name:"ArtifactTags",props:{artifacts:{type:Array,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=e,r=t,a=je(0),l=()=>{a.value+=1};return Qe(a,()=>{a.value>=n.artifacts.length&&r("delete")}),(d,g)=>(G(),re("div",$S,[(G(!0),re(We,null,Nt(e.artifacts,o=>(G(),$e(SS,{key:o.id,artifact:o,onDelete:l},null,8,["artifact"]))),128))]))}});var Bs={d:(e,t)=>{for(var n in t)Bs.o(t,n)&&!Bs.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},qf={};function Ba(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 Qf(e,t){if(e){if(typeof e=="string")return Ba(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)?Ba(e,t):void 0}}function Hs(e){return function(t){if(Array.isArray(t))return Ba(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||Qf(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 zs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Bs.d(qf,{Z:()=>ES});const Te=(zu={computed:()=>Re,createTextVNode:()=>it,createVNode:()=>oe,defineComponent:()=>xe,reactive:()=>Or,ref:()=>je,watch:()=>Qe,watchEffect:()=>Al},Xo={},Bs.d(Xo,zu),Xo),xS=(0,Te.defineComponent)({props:{data:{required:!0,type:String},onClick:Function},render:function(){var e=this.data,t=this.onClick;return(0,Te.createVNode)("span",{class:"vjs-tree-brackets",onClick:t},[e])}}),CS=(0,Te.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,Te.computed)(function(){return e.isMultiple?"checkbox":"radio"}),model:(0,Te.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,Te.createVNode)("label",{class:["vjs-check-controller",t?"is-checked":""],onClick:function(r){return r.stopPropagation()}},[(0,Te.createVNode)("span",{class:"vjs-check-controller-inner is-".concat(e)},null),(0,Te.createVNode)("input",{checked:t,class:"vjs-check-controller-original is-".concat(e),type:e,onChange:function(){return n("change",t)}},null)])}}),AS=(0,Te.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,Te.createVNode)("span",{class:"vjs-carets vjs-carets-".concat(n?"open":"close"),onClick:t},[(0,Te.createVNode)("svg",{viewBox:"0 0 1024 1024",focusable:"false","data-icon":"caret-down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[(0,Te.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 zu,Xo;function Ha(e){return Ha=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},Ha(e)}function Jf(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Kn(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,a=r||{},l=a.key,d=a.index,g=a.type,o=g===void 0?"content":g,p=a.showComma,i=p!==void 0&&p,s=a.length,c=s===void 0?1:s,u=Jf(e);if(u==="array"){var h=Uu(e.map(function(v,y,x){return Kn(v,"".concat(t,"[").concat(y,"]"),n+1,{index:y,showComma:y!==x.length-1,length:c,type:o})}));return[Kn("[",t,n,{showComma:!1,key:l,length:e.length,type:"arrayStart"})[0]].concat(h,Kn("]",t,n,{showComma:i,length:e.length,type:"arrayEnd"})[0])}if(u==="object"){var f=Object.keys(e),m=Uu(f.map(function(v,y,x){return Kn(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:c,type:o})}));return[Kn("{",t,n,{showComma:!1,key:l,index:d,length:f.length,type:"objectStart"})[0]].concat(m,Kn("}",t,n,{showComma:i,length:f.length,type:"objectEnd"})[0])}return[{content:e,level:n,key:l,index:d,path:t,showComma:i,length:c,type:o}]}function Uu(e){if(typeof Array.prototype.flat=="function")return e.flat();for(var t=Hs(e),n=[];t.length;){var r=t.shift();Array.isArray(r)?t.unshift.apply(t,Hs(r)):n.push(r)}return n}function za(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(Ha(e)!=="object")return e;if(t.get(e))return t.get(e);if(Array.isArray(e)){var n=e.map(function(l){return za(l,t)});return t.set(e,n),n}var r={};for(var a in e)r[a]=za(e[a],t);return t.set(e,r),r}function ju(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Vu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ju(Object(n),!0).forEach(function(r){zs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ju(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var ep={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 kS=(0,Te.defineComponent)({name:"TreeNode",props:Vu(Vu({},ep),{},{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,Te.computed)(function(){return Jf(e.node.content)}),a=(0,Te.computed)(function(){return"vjs-value vjs-value-".concat(r.value)}),l=(0,Te.computed)(function(){return e.showDoubleQuotes?'"'.concat(e.node.key,'"'):e.node.key}),d=(0,Te.computed)(function(){return e.selectableType==="multiple"}),g=(0,Te.computed)(function(){return e.selectableType==="single"}),o=(0,Te.computed)(function(){return e.nodeSelectable(e.node)&&(d.value||g.value)}),p=(0,Te.reactive)({editing:!1}),i=function(y){var x,_,S=(_=(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",S,e.node.path)},s=(0,Te.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+""}),c=function(){var y=e.renderNodeValue;return y?y({node:e.node,defaultValue:s.value}):s.value},u=function(){n("bracketsClick",!e.collapsed,e.node)},h=function(){n("iconClick",!e.collapsed,e.node)},f=function(){n("selectedChange",e.node)},m=function(){n("nodeClick",e.node),o.value&&e.selectOnClickNode&&n("selectedChange",e.node)},v=function(y){if(e.editable&&!p.editing){p.editing=!0;var x=function _(S){var b;S.target!==y.target&&((b=S.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,Te.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,Te.createVNode)("span",{class:"vjs-node-index"},[x.id+1]),e.showSelectController&&o.value&&x.type!=="objectEnd"&&x.type!=="arrayEnd"&&(0,Te.createVNode)(CS,{isMultiple:d.value,checked:e.checked,onChange:f},null),(0,Te.createVNode)("div",{class:"vjs-indent"},[Array.from(Array(x.level)).map(function(_,S){return(0,Te.createVNode)("div",{key:S,class:{"vjs-indent-unit":!0,"has-line":e.showLine}},null)}),e.showIcon&&(0,Te.createVNode)(AS,{nodeType:x.type,onClick:h},null)]),x.key&&(0,Te.createVNode)("span",{class:"vjs-key"},[(y=e.renderNodeKey,y?y({node:e.node,defaultKey:l.value||""}):l.value),(0,Te.createVNode)("span",{class:"vjs-colon"},[":".concat(e.showKeyValueSpace?" ":"")])]),(0,Te.createVNode)("span",null,[x.type!=="content"&&x.content?(0,Te.createVNode)(xS,{data:x.content.toString(),onClick:u},null):(0,Te.createVNode)("span",{class:a.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,Te.createVNode)("input",{value:s.value,onChange:i,style:{padding:"3px 8px",border:"1px solid #eee",boxShadow:"none",boxSizing:"border-box",borderRadius:5,fontFamily:"inherit"}},null):c()]),x.showComma&&(0,Te.createVNode)("span",null,[","]),e.showLength&&e.collapsed&&(0,Te.createVNode)("span",{class:"vjs-comment"},[(0,Te.createTextVNode)(" // "),x.length,(0,Te.createTextVNode)(" items ")])])])}}});function Gu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Mt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Gu(Object(n),!0).forEach(function(r){zs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gu(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const ES=(0,Te.defineComponent)({name:"Tree",props:Mt(Mt({},ep),{},{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,a=(0,Te.ref)(),l=(0,Te.computed)(function(){return Kn(e.data,e.rootPath)}),d=function(x,_){return l.value.reduce(function(S,b){var A,L=b.level>=x||b.length>=_,E=(A=e.pathCollapsible)===null||A===void 0?void 0:A.call(e,b);return b.type!=="objectStart"&&b.type!=="arrayStart"||!L&&!E?S:Mt(Mt({},S),{},zs({},b.path,1))},{})},g=(0,Te.reactive)({translateY:0,visibleData:null,hiddenPaths:d(e.deep,e.collapsedNodeLength)}),o=(0,Te.computed)(function(){for(var x=null,_=[],S=l.value.length,b=0;b<S;b++){var A=Mt(Mt({},l.value[b]),{},{id:b}),L=g.hiddenPaths[A.path];if(x&&x.path===A.path){var E=x.type==="objectStart",M=Mt(Mt(Mt({},A),x),{},{showComma:A.showComma,content:E?"{...}":"[...]",type:E?"objectCollapsed":"arrayCollapsed"});x=null,_.push(M)}else{if(L&&!x){x=A;continue}if(x)continue;_.push(A)}}return _}),p=(0,Te.computed)(function(){var x=e.selectedValue;return x&&e.selectableType==="multiple"&&Array.isArray(x)?x:[x]}),i=(0,Te.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."}),s=function(){var x=o.value;if(e.virtual){var _,S=e.height/e.itemHeight,b=((_=a.value)===null||_===void 0?void 0:_.scrollTop)||0,A=Math.floor(b/e.itemHeight),L=A<0?0:A+S>x.length?x.length-S:A;L<0&&(L=0);var E=L+S;g.translateY=L*e.itemHeight,g.visibleData=x.filter(function(M,C){return C>=L&&C<E})}else g.visibleData=x},c=function(){s()},u=function(x){var _,S,b=x.path,A=e.selectableType;if(A==="multiple"){var L=p.value.findIndex(function(R){return R===b}),E=Hs(p.value);L!==-1?E.splice(L,1):E.push(b),n("update:selectedValue",E),n("selectedChange",E,Hs(p.value))}else if(A==="single"&&p.value[0]!==b){var M=(_=p.value,S=1,function(R){if(Array.isArray(R))return R}(_)||function(R,$){var w=R==null?null:typeof Symbol<"u"&&R[Symbol.iterator]||R["@@iterator"];if(w!=null){var k,T,O=[],I=!0,N=!1;try{for(w=w.call(R);!(I=(k=w.next()).done)&&(O.push(k.value),!$||O.length!==$);I=!0);}catch(D){N=!0,T=D}finally{try{I||w.return==null||w.return()}finally{if(N)throw T}}return O}}(_,S)||Qf(_,S)||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)}},h=function(x){n("nodeClick",x)},f=function(x,_){if(x)g.hiddenPaths=Mt(Mt({},g.hiddenPaths),{},zs({},_,1));else{var S=Mt({},g.hiddenPaths);delete S[_],g.hiddenPaths=S}},m=function(x,_){e.collapsedOnClickBrackets&&f(x,_.path),n("bracketsClick",x,_)},v=function(x,_){f(x,_.path),n("iconClick",x,_)},y=function(x,_){var S=za(e.data),b=e.rootPath;new Function("data","val","data".concat(_.slice(b.length),"=val"))(S,x),n("update:data",S)};return(0,Te.watchEffect)(function(){i.value&&function(x){throw new Error("[VueJSONPretty] ".concat(x))}(i.value)}),(0,Te.watchEffect)(function(){o.value&&s()}),(0,Te.watch)(function(){return e.deep},function(x){x&&(g.hiddenPaths=d(x,e.collapsedNodeLength))}),(0,Te.watch)(function(){return e.collapsedNodeLength},function(x){x&&(g.hiddenPaths=d(e.deep,x))}),function(){var x,_,S=(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,Te.createVNode)(kS,{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:S,renderNodeValue:b,onNodeClick:h,onBracketsClick:m,onIconClick:v,onSelectedChange:u,onValueChange:y,style:e.itemHeight&&e.itemHeight!==20?{lineHeight:"".concat(e.itemHeight,"px")}:{}},null)});return(0,Te.createVNode)("div",{ref:a,class:{"vjs-tree":!0,"is-virtual":e.virtual,dark:e.theme==="dark"},onScroll:e.virtual?c:void 0,style:e.showLineNumber?Mt({paddingLeft:"".concat(12*Number(l.value.length.toString().length),"px")},e.style):e.style},[e.virtual?(0,Te.createVNode)("div",{class:"vjs-tree-list",style:{height:"".concat(e.height,"px")}},[(0,Te.createVNode)("div",{class:"vjs-tree-list-holder",style:{height:"".concat(o.value.length*e.itemHeight,"px")}},[(0,Te.createVNode)("div",{class:"vjs-tree-list-holder-inner",style:{transform:"translateY(".concat(g.translateY,"px)")}},[A])])]):A])}}});var tp=qf.Z;const RS={class:"notification is-danger is-light"},TS={key:1},LS={key:2},MS={key:0,class:"message"},OS={class:"message-body"},yt=xe({__name:"ErrorMessage",props:{error:{type:Ww,required:!0},disposable:{type:Boolean,default:!1}},emits:["dispose"],setup(e,{emit:t}){const n=e,r=t,a=Re(()=>{var d;if(n.error.response)return(d=n.error.response)==null?void 0:d.data}),l=()=>{r("dispose")};return(d,g)=>{var o;return G(),re(We,null,[F("div",RS,[e.disposable?(G(),re("button",{key:0,class:"delete",onClick:l})):ge("",!0),a.value?(G(),re("p",TS,_e(a.value.message),1)):(G(),re("p",LS,_e(e.error),1))]),(o=a.value)!=null&&o.detail?(G(),re("article",MS,[F("div",OS,[oe(le(tp),{data:a.value.detail},null,8,["data"])])])):ge("",!0)],64)}}}),IS={key:0,class:"control"},NS=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),a=iS(),l=async()=>{window.confirm(`Are you sure you want to delete ${t.tag.name} (ID: ${t.tag.id})?`)&&(await a.perform(t.tag.id),n.value=!0)},d=()=>{r.value=!0},g=()=>{r.value=!1},o=p=>`tag:"${p}"`;return(p,i)=>{const s=Ze("router-link");return n.value?ge("",!0):(G(),re("div",IS,[F("div",{class:"tags has-addons are-medium",onMouseover:d,onMouseleave:g},[oe(s,{class:"tag is-info is-light",to:{name:e.navigateTo,query:{q:o(e.tag.name)}}},{default:rt(()=>[it(_e(e.tag.name),1)]),_:1},8,["to"]),r.value&&e.deletable?(G(),re("a",{key:0,class:"tag is-delete",onClick:l})):ge("",!0)],32)]))}}}),FS={class:"field is-grouped is-grouped-multiline"},ji=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",FS,[(G(!0),re(We,null,Nt(e.tags,r=>(G(),$e(NS,{tag:r,key:r.name,deletable:e.deletable,"navigate-to":e.navigateTo},null,8,["tag","deletable","navigate-to"]))),128))]))}}),DS={key:0,class:"box"},PS={class:"table is-fullwidth is-completely-borderless"},WS=F("th",null,"Rule",-1),BS=F("th",null,"Artifacts",-1),HS={key:0},zS=F("th",null,"Tags",-1),US={class:"help"},jS=xe({__name:"AlertItem",props:{alert:{type:Object,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=t,r=je(!1),a=je(),l=p=>{a.value=p},d=()=>{a.value=void 0},g=()=>{n("delete")},o=()=>{r.value=!0};return(p,i)=>{const s=Ze("router-link");return r.value?ge("",!0):(G(),re("div",DS,[a.value?(G(),$e(yt,{key:0,class:"block",error:a.value,disposable:!0,onDispose:d},null,8,["error"])):ge("",!0),F("p",null,[oe(Zf,{alert:e.alert,onDelete:g,onSetError:l},null,8,["alert"])]),oe(s,{class:"is-size-4",to:{name:"Alert",params:{id:e.alert.id}}},{default:rt(()=>[it(_e(e.alert.id),1)]),_:1},8,["to"]),F("table",PS,[F("tr",null,[WS,F("td",null,[oe(s,{to:{name:"Rule",params:{id:e.alert.ruleId}}},{default:rt(()=>[it(_e(e.alert.ruleId),1)]),_:1},8,["to"])])]),F("tr",null,[BS,F("td",null,[oe(Xf,{artifacts:e.alert.artifacts,onDelete:o},null,8,["artifacts"])])]),e.alert.tags.length>0?(G(),re("tr",HS,[zS,F("td",null,[oe(ji,{tags:e.alert.tags,"navigate-to":"Alerts"},null,8,["tags"])])])):ge("",!0)]),F("p",US,"Created at: "+_e(e.alert.createdAt),1)]))}}}),VS={key:0,class:"message is-warning"},GS=F("div",{class:"message-body"},"There is no result to show.",-1),KS=[GS],YS={key:1,class:"pagination",role:"navigation","aria-label":"pagination"},ZS={key:0,class:"pagination-list"},XS={key:1,class:"pagination-list"},qS={key:0},QS={key:1},JS=F("span",{class:"pagination-ellipsis"},"…",-1),e$=[JS],t$={key:2},n$={key:3},r$={key:4},i$=F("span",{class:"pagination-ellipsis"},"…",-1),s$=[i$],o$={key:5},Gl=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,a=c=>c===n.currentPage+1||c===n.currentPage-1,l=Re(()=>Math.ceil(n.total/n.pageSize)),d=Re(()=>l.value===1),g=Re(()=>n.currentPage>1),o=Re(()=>n.currentPage-1===1),p=Re(()=>n.currentPage<l.value),i=Re(()=>n.currentPage+1===l.value),s=c=>{r("update-page",c)};return(c,u)=>e.total===0?(G(),re("article",VS,KS)):(G(),re("nav",YS,[d.value?(G(),re("ul",ZS,[F("li",null,[F("a",{class:"pagination-link mt-2 is-current",onClick:u[0]||(u[0]=h=>s(1))},"1")])])):(G(),re("ul",XS,[g.value&&!o.value?(G(),re("li",qS,[F("a",{class:"pagination-link mt-2",onClick:u[1]||(u[1]=h=>s(1))}," 1")])):ge("",!0),g.value&&!o.value&&!a(2)?(G(),re("li",QS,e$)):ge("",!0),g.value?(G(),re("li",t$,[F("a",{class:"pagination-link mt-2",onClick:u[2]||(u[2]=h=>s(e.currentPage-1))},_e(e.currentPage-1),1)])):ge("",!0),F("li",null,[F("a",{class:"pagination-link mt-2 is-current",onClick:u[3]||(u[3]=h=>s(e.currentPage))},_e(e.currentPage),1)]),p.value?(G(),re("li",n$,[F("a",{class:"pagination-link mt-2",onClick:u[4]||(u[4]=h=>s(e.currentPage+1))},_e(e.currentPage+1),1)])):ge("",!0),p.value&&!i.value&&!a(l.value-1)?(G(),re("li",r$,s$)):ge("",!0),p.value&&!i.value?(G(),re("li",o$,[F("a",{class:"pagination-link mt-2",onClick:u[5]||(u[5]=h=>s(l.value))},_e(l.value),1)])):ge("",!0)]))]))}}),a$={key:0},l$={class:"help"},c$={key:1},u$=F("div",{class:"notification is-warning is-light"},"There is no alert to show",-1),h$=[u$],np=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,a=g=>{r("update-page",g)},l=()=>{r("refresh")},d=Re(()=>n.alerts.results.length>0);return(g,o)=>d.value?(G(),re("div",a$,[(G(!0),re(We,null,Nt(e.alerts.results,p=>(G(),$e(jS,{alert:p,key:p.id,onDelete:l},null,8,["alert"]))),128)),oe(Gl,{total:e.alerts.total,currentPage:e.alerts.currentPage,pageSize:e.alerts.pageSize,onUpdatePage:a},null,8,["total","currentPage","pageSize"]),F("p",l$,"("+_e(e.alerts.total)+" results in total, "+_e(e.alerts.results.length)+" shown)",1)])):(G(),re("div",c$,h$))}}),d$=xe({name:"LoadingItem"}),f$={class:"has-text-centered"},p$={class:"fa-3x"};function g$(e,t,n,r,a,l){const d=Ze("font-awesome-icon");return G(),re("div",f$,[F("div",p$,[oe(d,{icon:"spinner",spin:""})])])}const _n=Wi(d$,[["render",g$]]),m$={class:"block"},v$={class:"field has-addons"},y$={class:"control is-expanded"},b$={class:"control"},w$={class:"icon is-small"},_$=F("span",null,"Search",-1),S$={class:"control"},$$={class:"icon is-small"},x$=F("span",null,"Help",-1),C$={key:0,class:"content"},A$=El('<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>&lt;</code>, <code>&lt;=</code>, <code>&gt;</code>, <code>&gt;=</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),k$={key:0,class:"block"},E$=xe({__name:"AlertsWrapper",setup(e){const t=Ar("page","1"),n=Ar("q",""),r=je(!1),a=_o(),l=async()=>{const i={q:n.value,page:parseInt(t.value)};return await a.perform(i)},d=i=>{t.value=i.toString()},g=async()=>{t.value="1",await l()},o=g,p=Pi(r);return ct(async()=>{await l()}),Qe(t,async()=>{await l()}),Qe(n,async()=>{window.scrollTo({top:0,behavior:"smooth"})}),(i,s)=>{var h,f;const c=Ze("font-awesome-icon"),u=Ze("router-link");return G(),re(We,null,[F("div",m$,[F("div",v$,[F("p",y$,[$l(F("input",{class:"input",type:"text","onUpdate:modelValue":s[0]||(s[0]=m=>ut(n)?n.value=m:null)},null,512),[[Ll,le(n)]])]),F("p",b$,[F("a",{class:"button is-primary",onClick:g},[F("span",w$,[oe(c,{icon:"search"})]),_$])]),F("p",S$,[F("a",{class:"button is-info",onClick:s[1]||(s[1]=m=>le(p)())},[F("span",$$,[oe(c,{icon:"question"})]),x$])])]),r.value?(G(),re("div",C$,[A$,F("ul",null,[F("li",null,[oe(u,{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})]),F("li",null,[oe(u,{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)]),le(a).performCount>0?(G(),re("div",k$,[le(a).isRunning?(G(),$e(_n,{key:0})):ge("",!0),le(a).isError?(G(),$e(yt,{key:1,error:(h=le(a).last)==null?void 0:h.error},null,8,["error"])):ge("",!0),(f=le(a).last)!=null&&f.value?(G(),$e(np,{key:2,alerts:le(a).last.value,page:le(t),onUpdatePage:d,onRefresh:le(o)},null,8,["alerts","page","onRefresh"])):ge("",!0)])):ge("",!0)],64)}}}),R$={class:"columns"},T$={class:"column is-one-third"},L$={class:"card"},M$={class:"card-content"},O$={class:"level is-mobile"},I$={class:"level-item"},N$=F("h3",{class:"subtitle is-spaced"},"Rules",-1),F$={class:"title"},D$={class:"level-item"},P$={class:"icon"},W$={class:"column is-one-third"},B$={class:"card"},H$={class:"card-content"},z$={class:"level is-mobile"},U$={class:"level-item"},j$=F("h3",{class:"subtitle is-spaced"},"Alerts",-1),V$={class:"title"},G$={class:"level-item"},K$={class:"icon"},Y$={class:"column is-one-third"},Z$={class:"card"},X$={class:"card-content"},q$={class:"level is-mobile"},Q$={class:"level-item"},J$=F("h3",{class:"subtitle is-spaced"},"Artifacts",-1),ex={class:"title"},tx={class:"level-item"},nx={class:"icon"},rx=xe({__name:"OverviewCards",setup(e){const t=_o(),n=Kf(),r=Vl();return ct(()=>{t.perform({q:"",page:1,limit:0}),n.perform({q:"",page:1,limit:0}),r.perform({q:"",page:1,limit:0})}),(a,l)=>{var g,o,p,i,s,c;const d=Ze("font-awesome-icon");return G(),re("div",R$,[F("div",T$,[F("div",L$,[F("div",M$,[F("div",O$,[F("div",I$,[F("div",null,[N$,F("h1",F$,_e(((o=(g=le(n).last)==null?void 0:g.value)==null?void 0:o.total)??"N/A"),1)])]),F("div",D$,[F("span",P$,[oe(d,{icon:"file",size:"2x"})])])])])])]),F("div",W$,[F("div",B$,[F("div",H$,[F("div",z$,[F("div",U$,[F("div",null,[j$,F("h1",V$,_e(((i=(p=le(t).last)==null?void 0:p.value)==null?void 0:i.total)??"N/A"),1)])]),F("div",G$,[F("span",K$,[oe(d,{icon:"bell",size:"2x"})])])])])])]),F("div",Y$,[F("div",Z$,[F("div",X$,[F("div",q$,[F("div",Q$,[F("div",null,[J$,F("h1",ex,_e(((c=(s=le(r).last)==null?void 0:s.value)==null?void 0:c.total)??"N/A"),1)])]),F("div",tx,[F("span",nx,[oe(d,{icon:"ticket",size:"2x"})])])])])])])])}}}),ix=F("hr",null,null,-1),sx=xe({__name:"AlertsView",setup(e){return wn("Alerts - Mihari"),(t,n)=>(G(),re(We,null,[oe(rx),ix,oe(E$)],64))}}),rp=xe({__name:"AlertsWithPagination",props:{ruleId:{type:String,required:!0},excludeAlertId:{type:Number,required:!1}},setup(e){const t=e,n=je(1),r=Re(()=>t.excludeAlertId?`rule.id:"${t.ruleId}" AND NOT id:${t.excludeAlertId}`:`rule.id:"${t.ruleId}"`),a=_o(),l=async()=>{const g={q:r.value,page:n.value};return await a.perform(g)},d=g=>{n.value=g};return ct(async()=>{await l()}),Qe([t,n],async()=>{await l()}),(g,o)=>{var p,i;return G(),re(We,null,[le(a).isRunning?(G(),$e(_n,{key:0})):ge("",!0),le(a).isError?(G(),$e(yt,{key:1,error:(p=le(a).last)==null?void 0:p.error},null,8,["error"])):ge("",!0),(i=le(a).last)!=null&&i.value?(G(),$e(np,{key:2,page:n.value.toString(),alerts:le(a).last.value,onUpdatePage:d},null,8,["page","alerts"])):ge("",!0)],64)}}}),ox={class:"block"},ax={class:"is-size-2"},lx={class:"is-clearfix"},cx={class:"table is-fullwidth is-completely-borderless"},ux=F("th",null,"Rule",-1),hx=F("th",null,"Artifacts",-1),dx={key:0},fx=F("th",null,"Tags",-1),px={class:"help"},gx=F("hr",null,null,-1),mx={class:"block"},vx=F("h2",{class:"is-size-2 block"},"Related Alerts",-1),yx=xe({__name:"AlertDetail",props:{alert:{type:Object,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=t,r=je(),a=o=>{r.value=o},l=()=>{r.value=void 0},d=()=>{n("delete")},g=d;return(o,p)=>{const i=Ze("router-link");return G(),re(We,null,[r.value?(G(),$e(yt,{key:0,class:"block",error:r.value,disposable:!0,onDispose:l},null,8,["error"])):ge("",!0),F("div",ox,[F("h2",ax,_e(e.alert.id),1),F("p",lx,[oe(Zf,{alert:e.alert,onDelete:d,onSetError:a},null,8,["alert"])]),F("table",cx,[F("tr",null,[ux,F("td",null,[oe(i,{to:{name:"Rule",params:{id:e.alert.ruleId}}},{default:rt(()=>[it(_e(e.alert.ruleId),1)]),_:1},8,["to"])])]),F("tr",null,[hx,F("td",null,[oe(Xf,{artifacts:e.alert.artifacts,onDelete:le(g)},null,8,["artifacts","onDelete"])])]),e.alert.tags.length>0?(G(),re("tr",dx,[fx,F("td",null,[oe(ji,{tags:e.alert.tags,"navigate-to":"Alerts"},null,8,["tags"])])])):ge("",!0)]),F("p",px,"Created at: "+_e(e.alert.createdAt),1)]),gx,F("div",mx,[vx,oe(rp,{"rule-id":e.alert.ruleId,"exclude-alert-id":e.alert.id},null,8,["rule-id","exclude-alert-id"])])],64)}}}),bx=xe({__name:"AlertDetailWrapper",props:{id:{type:Number,required:!0}},setup(e){const t=e,n=Ir(),r=fS(),a=()=>{n.push("/")};return ct(async()=>{await r.perform(t.id)}),(l,d)=>{var g,o;return G(),re(We,null,[le(r).isRunning?(G(),$e(_n,{key:0})):ge("",!0),le(r).isError?(G(),$e(yt,{key:1,error:(g=le(r).last)==null?void 0:g.error},null,8,["error"])):ge("",!0),(o=le(r).last)!=null&&o.value?(G(),$e(yx,{key:2,alert:le(r).last.value,onDelete:a},null,8,["alert"])):ge("",!0)],64)}}}),wx=xe({__name:"AlertView",props:{id:{type:String,required:!0}},setup(e){const t=e,n=()=>{wn(`Alert:${t.id} - Mihari`)};return ct(()=>{n()}),Qe(()=>t.id,()=>{n()}),(r,a)=>(G(),$e(bx,{id:parseInt(e.id)},null,8,["id"]))}}),Vi=e=>(wl("data-v-dac610f8"),e=e(),_l(),e),_x={class:"buttons is-pulled-right"},Sx=["href"],$x=Vi(()=>F("span",null,"JSON",-1)),xx={class:"icon is-small"},Cx=Vi(()=>F("span",null,"Metadata",-1)),Ax={class:"icon is-small"},kx=Vi(()=>F("span",null,"Enrich",-1)),Ex={class:"icon is-small"},Rx=Vi(()=>F("span",null,"Delete",-1)),Tx={class:"icon is-small"},Lx={key:0},Mx={class:"modal is-active"},Ox={class:"modal-card"},Ix={class:"modal-card-head"},Nx=Vi(()=>F("p",{class:"modal-card-title"},"Metadata",-1)),Fx={class:"modal-card-body"},Dx=xe({__name:"ActionButtons",props:{artifact:{type:Object,required:!0}},emits:["delete","set-error","set-message"],setup(e,{emit:t}){const n=e,r=t,a=Re(()=>`/api/artifacts/${n.artifact.id}`),l=je(!1),d=Gf(),g=oS(),o=async()=>{if(window.confirm(`Are you sure you want to delete ${n.artifact.data}?`))try{await d.perform(n.artifact.id),r("delete")}catch(c){Je.isAxiosError(c)&&r("set-error",c)}},p=async()=>{try{const s=await g.perform(n.artifact.id);r("set-message",s)}catch(s){Je.isAxiosError(s)&&r("set-error",s)}},i=Pi(l);return(s,c)=>{const u=Ze("font-awesome-icon");return G(),re(We,null,[F("span",_x,[F("a",{class:"button is-link is-light is-small",href:a.value,target:"_blank"},[$x,F("span",xx,[oe(u,{icon:"barcode"})])],8,Sx),e.artifact.metadata?(G(),re("button",{key:0,class:"button is-info is-light is-small",onClick:c[0]||(c[0]=h=>le(i)())},[Cx,F("span",Ax,[oe(u,{icon:"info-circle"})])])):ge("",!0),F("button",{class:"button is-primary is-light is-small",onClick:p},[kx,F("span",Ex,[le(g).isRunning?(G(),$e(u,{key:0,icon:"spinner",spin:""})):(G(),$e(u,{key:1,icon:"lightbulb"}))])]),F("button",{class:"button is-light is-small",onClick:o},[Rx,F("span",Tx,[oe(u,{icon:"times"})])])]),e.artifact.metadata&&l.value?(G(),re("div",Lx,[F("div",Mx,[F("div",{class:"modal-background",onClick:c[1]||(c[1]=h=>le(i)())}),F("div",Ox,[F("header",Ix,[Nx,F("button",{class:"delete","aria-label":"close",onClick:c[2]||(c[2]=h=>le(i)())})]),F("section",Fx,[oe(le(tp),{data:e.artifact.metadata},null,8,["data"])])])])])):ge("",!0)],64)}}}),ip=Wi(Dx,[["__scopeId","data-v-dac610f8"]]),Px={class:"notification is-info is-light"},So=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(a,l)=>(G(),re("div",Px,[e.disposable?(G(),re("button",{key:0,class:"delete",onClick:r})):ge("",!0),F("p",null,_e(e.message.message),1)]))}}),Wx={class:"box"},Bx={class:"block"},Hx={class:"table is-fullwidth is-completely-borderless"},zx=F("th",null,"Data",-1),Ux=F("th",null,"Data Type",-1),jx=F("th",null,"Source",-1),Vx=F("th",null,"Query",-1),Gx={key:0},Kx=F("th",null,"Tags",-1),Yx=F("p",{class:"block is-clearfix"},null,-1),Zx={class:"help"},Xx=xe({__name:"ArtifactItem",props:{artifact:{type:Object,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=t,r=je(),a=je(),l=i=>{r.value=i},d=()=>{r.value=void 0},g=()=>{n("delete")},o=i=>{i.queued&&(a.value=i)},p=()=>{a.value=void 0};return(i,s)=>{const c=Ze("router-link");return G(),re("div",Wx,[r.value?(G(),$e(yt,{key:0,class:"block",error:r.value,disposable:!0,onDispose:d},null,8,["error"])):ge("",!0),a.value?(G(),$e(So,{key:1,class:"block",message:a.value,disposable:!0,onDispose:p},null,8,["message"])):ge("",!0),F("div",Bx,[F("p",null,[oe(ip,{artifact:e.artifact,onDelete:g,onSetError:l,onSetMessage:o},null,8,["artifact"])]),oe(c,{class:"is-size-4",to:{name:"Artifact",params:{id:e.artifact.id}}},{default:rt(()=>[it(_e(e.artifact.id),1)]),_:1},8,["to"])]),F("table",Hx,[F("tr",null,[zx,F("td",null,_e(e.artifact.data),1)]),F("tr",null,[Ux,F("td",null,_e(e.artifact.dataType),1)]),F("tr",null,[jx,F("td",null,_e(e.artifact.source),1)]),F("tr",null,[Vx,F("td",null,_e(le(Ti)(e.artifact.query||"N/A",64)),1)]),e.artifact.tags.length>0?(G(),re("tr",Gx,[Kx,F("td",null,[oe(ji,{tags:e.artifact.tags,"navigate-to":"Artifacts"},null,8,["tags"])])])):ge("",!0)]),Yx,F("p",Zx,"Created at: "+_e(e.artifact.createdAt),1)])}}}),qx={key:0},Qx={class:"help"},Jx={key:1},eC=F("div",{class:"notification is-warning is-light"},"There is no artifact to show",-1),tC=[eC],nC=xe({__name:"ArtifactsItem",props:{artifacts:{type:Object,required:!0}},emits:["refresh","update-page"],setup(e,{emit:t}){const n=e,r=t,a=Re(()=>n.artifacts.results.length>0),l=g=>{r("update-page",g)},d=()=>{r("refresh")};return(g,o)=>a.value?(G(),re("div",qx,[(G(!0),re(We,null,Nt(e.artifacts.results,p=>(G(),$e(Xx,{artifact:p,key:p.id,onDelete:d},null,8,["artifact"]))),128)),oe(Gl,{total:e.artifacts.total,currentPage:e.artifacts.currentPage,pageSize:e.artifacts.pageSize,onUpdatePage:l},null,8,["total","currentPage","pageSize"]),F("p",Qx," ("+_e(e.artifacts.total)+" results in total, "+_e(e.artifacts.results.length)+" shown) ",1)])):(G(),re("div",Jx,tC))}}),rC={class:"block"},iC={class:"field has-addons"},sC={class:"control is-expanded"},oC={class:"control"},aC={class:"icon is-small"},lC=F("span",null,"Search",-1),cC={class:"control"},uC={class:"icon is-small"},hC=F("span",null,"Help",-1),dC={key:0,class:"content mt-3"},fC=El('<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>&lt;</code>, <code>&lt;=</code>, <code>&gt;</code>, <code>&gt;=</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),pC=[fC],gC={key:0,class:"block"},mC=xe({__name:"ArtifactsWrapper",setup(e){const t=Ar("page","1"),n=Ar("q",""),r=je(!1),a=Vl(),l=async()=>{const i={q:n.value,page:parseInt(t.value)};return await a.perform(i)},d=i=>{t.value=i.toString()},g=async()=>{t.value="1",await l()},o=g,p=Pi(r);return ct(async()=>{await l()}),Qe(t,async()=>{await l()}),Qe(n,async()=>{window.scrollTo({top:0,behavior:"smooth"})}),(i,s)=>{var u,h;const c=Ze("font-awesome-icon");return G(),re(We,null,[F("div",rC,[F("div",iC,[F("p",sC,[$l(F("input",{class:"input",type:"text","onUpdate:modelValue":s[0]||(s[0]=f=>ut(n)?n.value=f:null)},null,512),[[Ll,le(n)]])]),F("p",oC,[F("a",{class:"button is-primary",onClick:g},[F("span",aC,[oe(c,{icon:"search"})]),lC])]),F("p",cC,[F("a",{class:"button is-info",onClick:s[1]||(s[1]=f=>le(p)())},[F("span",uC,[oe(c,{icon:"question"})]),hC])])]),r.value?(G(),re("div",dC,pC)):ge("",!0)]),le(a).performCount>0?(G(),re("div",gC,[le(a).isRunning?(G(),$e(_n,{key:0})):ge("",!0),le(a).isError?(G(),$e(yt,{key:1,error:(u=le(a).last)==null?void 0:u.error},null,8,["error"])):ge("",!0),(h=le(a).last)!=null&&h.value?(G(),$e(nC,{key:2,artifacts:le(a).last.value,onUpdatePage:d,onRefresh:le(o)},null,8,["artifacts","onRefresh"])):ge("",!0)])):ge("",!0)],64)}}}),vC=xe({__name:"ArtifactsView",setup(e){const t=()=>{wn("Artifacts - Mihari")};return ct(()=>{t()}),(n,r)=>(G(),$e(mC))}}),yC={class:"tags are-medium"},bC=xe({__name:"AsItem",props:{autonomousSystem:{type:Object,required:!0}},setup(e){const t=n=>`asn:${n}`;return(n,r)=>{const a=Ze("router-link");return G(),re("div",yC,[oe(a,{class:"tag",to:{name:"Artifacts",query:{q:t(e.autonomousSystem.number)}}},{default:rt(()=>[it(_e(e.autonomousSystem.number),1)]),_:1},8,["to"])])}}}),wC={class:"tags are-medium"},_C=xe({__name:"CpesItem",props:{cpes:{type:Array,required:!0}},setup(e){const t=n=>`cpe:"${n}"`;return(n,r)=>{const a=Ze("router-link");return G(),re("div",wC,[(G(!0),re(We,null,Nt(e.cpes,l=>(G(),$e(a,{class:"tag",key:l.name,to:{name:"Artifacts",query:{q:t(l.name)}}},{default:rt(()=>[it(_e(l.name),1)]),_:2},1032,["to"]))),128))])}}}),SC={class:"field is-grouped is-grouped-multiline"},$C={class:"tags has-addons are-medium"},xC={class:"tag is-dark"},CC=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 a=Ze("router-link");return G(),re("div",SC,[(G(!0),re(We,null,Nt(e.dnsRecords,(l,d)=>(G(),re("div",{class:"control",key:d},[F("div",$C,[F("span",xC,_e(l.resource),1),oe(a,{class:"tag",to:{name:"Artifacts",query:{q:t({resource:l.resource,value:l.value})}}},{default:rt(()=>[it(_e(le(Ti)(l.value,50)),1)]),_:2},1032,["to"])])]))),128))])}}}),AC={class:"tags are-medium"},kC=xe({__name:"PortsItem",props:{ports:{type:Array,required:!0}},setup(e){const t=n=>`port:${n}`;return(n,r)=>{const a=Ze("router-link");return G(),re("div",AC,[(G(!0),re(We,null,Nt(e.ports,l=>(G(),$e(a,{class:"tag",key:l.number,to:{name:"Artifacts",query:{q:t(l.number)}}},{default:rt(()=>[it(_e(l.number),1)]),_:2},1032,["to"]))),128))])}}}),EC={class:"tags are-medium"},RC=xe({__name:"ReverseDnsNames",props:{reverseDnsNames:{type:Array,required:!0}},setup(e){const t=n=>`reverse_dns_name:"${n}"`;return(n,r)=>{const a=Ze("router-link");return G(),re("div",EC,[(G(!0),re(We,null,Nt(e.reverseDnsNames,l=>(G(),$e(a,{class:"tag",key:l.name,to:{name:"Artifacts",query:{q:t(l.name)}}},{default:rt(()=>[it(_e(l.name),1)]),_:2},1032,["to"]))),128))])}}}),TC={class:"tags are-medium"},LC=xe({__name:"VulnerabilitiesItem",props:{vulnerabilities:{type:Array,required:!0}},setup(e){const t=n=>`vuln:"${n}"`;return(n,r)=>{const a=Ze("router-link");return G(),re("div",TC,[(G(!0),re(We,null,Nt(e.vulnerabilities,l=>(G(),$e(a,{class:"tag",key:l.name,to:{name:"Artifacts",query:{q:t(l.name)}}},{default:rt(()=>[it(_e(l.name),1)]),_:2},1032,["to"]))),128))])}}}),MC={class:"field is-grouped is-grouped-multiline"},OC={class:"control"},IC={class:"tags has-addons are-medium"},NC=F("span",{class:"tag is-dark"},"Registrar",-1),FC={class:"tag"},DC={class:"control"},PC={class:"tags has-addons are-medium"},WC=F("span",{class:"tag is-dark"},"Created on",-1),BC={class:"tag"},HC={class:"control"},zC={class:"tags has-addons are-medium"},UC=F("span",{class:"tag is-dark"},"Updated on",-1),jC={class:"tag"},VC={class:"control"},GC={class:"tags has-addons are-medium"},KC=F("span",{class:"tag is-dark"},"Expires on",-1),YC={class:"tag"},ZC=xe({__name:"WhoisRecord",props:{whoisRecord:{type:Object,required:!0}},setup(e){return(t,n)=>{var r;return G(),re("div",MC,[F("div",OC,[F("div",IC,[NC,F("span",FC,_e(((r=e.whoisRecord.registrar)==null?void 0:r.name)||"N/A"),1)])]),F("div",DC,[F("div",PC,[WC,F("span",BC,_e(e.whoisRecord.createdOn||"N/A"),1)])]),F("div",HC,[F("div",zC,[UC,F("span",jC,_e(e.whoisRecord.updatedOn||"N/A"),1)])]),F("div",VC,[F("div",GC,[KC,F("span",YC,_e(e.whoisRecord.expiresOn||"N/A"),1)])])])}}}),XC=["href"],qC=["src"],QC=xe({__name:"LinkItem",props:{data:{type:String,required:!0},link:{type:Object,required:!0}},setup(e){const t=Hd();return(n,r)=>(G(),re("a",{href:e.link.href(e.data),class:Ni(["tag",le(t)?"":"is-white"]),target:"_blank"},[F("img",{src:e.link.favicon(),alt:"favicon"},null,8,qC),F("span",null,_e(e.link.name),1)],10,XC))}}),JC=Wi(QC,[["__scopeId","data-v-d0b695fc"]]);class Dt{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 eA extends Dt{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 tA extends Dt{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 nA extends Dt{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 rA extends Dt{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 iA extends Dt{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 sA extends Dt{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 oA extends Dt{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 aA extends Dt{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 sp extends Dt{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 lA extends sp{constructor(){super();Fe(this,"type");this.type="domain"}href(n){return this.baseURL+`/indicator/domain/${n}`}}class op extends Dt{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://securitytrails.com",this.name="SecurityTrails",this.type="domain"}}class cA extends op{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/domain/${t}/dns`}}class uA extends op{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/list/ip/${t}`}}class hA extends Dt{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 Kl extends Dt{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://urlscan.io",this.name="urlscan.io",this.type="domain"}}class dA extends Kl{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/domain/${t}`}}class fA extends Kl{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/ip/${t}`}}class pA extends Kl{constructor(){super(),this.type="url"}href(t){const n=encodeURIComponent(`page.url:"${t}" OR task.url:"${t}"`);return this.baseURL+`/search/#${n}`}}var cr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Dr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function gA(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 a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}),n}var ap={exports:{}};const mA={},vA=Object.freeze(Object.defineProperty({__proto__:null,default:mA},Symbol.toStringTag,{value:"Module"})),Ku=gA(vA);/**
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 a=!n&&typeof self=="object",l=!r.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;l?r=cr:a&&(r=self);var d=!r.JS_SHA256_NO_COMMON_JS&&!0&&e.exports,g=!r.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",o="0123456789abcdef".split(""),p=[-2147483648,8388608,32768,128],i=[24,16,8,0],s=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],c=["hex","array","digest","arrayBuffer"],u=[];(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 h=function(b,A){return function(L){return new x(A,!0).update(L)[b]()}},f=function(b){var A=h("hex",b);l&&(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<c.length;++L){var E=c[L];A[E]=h(E,b)}return A},m=function(b,A){var L=Ku,E=Ku.Buffer,M=A?"sha224":"sha256",C;E.from&&!r.JS_SHA256_NO_BUFFER_FROM?C=E.from:C=function($){return new E($)};var R=function($){if(typeof $=="string")return L.createHash(M).update($,"utf8").digest("hex");if($==null)throw new Error(t);return $.constructor===ArrayBuffer&&($=new Uint8Array($)),Array.isArray($)||ArrayBuffer.isView($)||$.constructor===E?L.createHash(M).update(C($)).digest("hex"):b($)};return R},v=function(b,A){return function(L,E){return new _(L,A,!0).update(E)[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<c.length;++L){var E=c[L];A[E]=v(E,b)}return A};function x(b,A){A?(u[0]=u[16]=u[1]=u[2]=u[3]=u[4]=u[5]=u[6]=u[7]=u[8]=u[9]=u[10]=u[11]=u[12]=u[13]=u[14]=u[15]=0,this.blocks=u):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 E,M=0,C,R=b.length,$=this.blocks;M<R;){if(this.hashed&&(this.hashed=!1,$[0]=this.block,this.block=$[16]=$[1]=$[2]=$[3]=$[4]=$[5]=$[6]=$[7]=$[8]=$[9]=$[10]=$[11]=$[12]=$[13]=$[14]=$[15]=0),A)for(C=this.start;M<R&&C<64;++M)$[C>>>2]|=b[M]<<i[C++&3];else for(C=this.start;M<R&&C<64;++M)E=b.charCodeAt(M),E<128?$[C>>>2]|=E<<i[C++&3]:E<2048?($[C>>>2]|=(192|E>>>6)<<i[C++&3],$[C>>>2]|=(128|E&63)<<i[C++&3]):E<55296||E>=57344?($[C>>>2]|=(224|E>>>12)<<i[C++&3],$[C>>>2]|=(128|E>>>6&63)<<i[C++&3],$[C>>>2]|=(128|E&63)<<i[C++&3]):(E=65536+((E&1023)<<10|b.charCodeAt(++M)&1023),$[C>>>2]|=(240|E>>>18)<<i[C++&3],$[C>>>2]|=(128|E>>>12&63)<<i[C++&3],$[C>>>2]|=(128|E>>>6&63)<<i[C++&3],$[C>>>2]|=(128|E&63)<<i[C++&3]);this.lastByteIndex=C,this.bytes+=C-this.start,C>=64?(this.block=$[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,E=this.h3,M=this.h4,C=this.h5,R=this.h6,$=this.h7,w=this.blocks,k,T,O,I,N,D,B,j,U,H,V;for(k=16;k<64;++k)N=w[k-15],T=(N>>>7|N<<25)^(N>>>18|N<<14)^N>>>3,N=w[k-2],O=(N>>>17|N<<15)^(N>>>19|N<<13)^N>>>10,w[k]=w[k-16]+T+w[k-7]+O<<0;for(V=A&L,k=0;k<64;k+=4)this.first?(this.is224?(j=300032,N=w[0]-1413257819,$=N-150054599<<0,E=N+24177077<<0):(j=704751109,N=w[0]-210244248,$=N-1521486534<<0,E=N+143694565<<0),this.first=!1):(T=(b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10),O=(M>>>6|M<<26)^(M>>>11|M<<21)^(M>>>25|M<<7),j=b&A,I=j^b&L^V,B=M&C^~M&R,N=$+O+B+s[k]+w[k],D=T+I,$=E+N<<0,E=N+D<<0),T=(E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10),O=($>>>6|$<<26)^($>>>11|$<<21)^($>>>25|$<<7),U=E&b,I=U^E&A^j,B=$&M^~$&C,N=R+O+B+s[k+1]+w[k+1],D=T+I,R=L+N<<0,L=N+D<<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),H=L&E,I=H^L&b^U,B=R&$^~R&M,N=C+O+B+s[k+2]+w[k+2],D=T+I,C=A+N<<0,A=N+D<<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),V=A&L,I=V^A&E^H,B=C&R^~C&$,N=M+O+B+s[k+3]+w[k+3],D=T+I,M=b+N<<0,b=N+D<<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+E<<0,this.h4=this.h4+M<<0,this.h5=this.h5+C<<0,this.h6=this.h6+R<<0,this.h7=this.h7+$<<0},x.prototype.hex=function(){this.finalize();var b=this.h0,A=this.h1,L=this.h2,E=this.h3,M=this.h4,C=this.h5,R=this.h6,$=this.h7,w=o[b>>>28&15]+o[b>>>24&15]+o[b>>>20&15]+o[b>>>16&15]+o[b>>>12&15]+o[b>>>8&15]+o[b>>>4&15]+o[b&15]+o[A>>>28&15]+o[A>>>24&15]+o[A>>>20&15]+o[A>>>16&15]+o[A>>>12&15]+o[A>>>8&15]+o[A>>>4&15]+o[A&15]+o[L>>>28&15]+o[L>>>24&15]+o[L>>>20&15]+o[L>>>16&15]+o[L>>>12&15]+o[L>>>8&15]+o[L>>>4&15]+o[L&15]+o[E>>>28&15]+o[E>>>24&15]+o[E>>>20&15]+o[E>>>16&15]+o[E>>>12&15]+o[E>>>8&15]+o[E>>>4&15]+o[E&15]+o[M>>>28&15]+o[M>>>24&15]+o[M>>>20&15]+o[M>>>16&15]+o[M>>>12&15]+o[M>>>8&15]+o[M>>>4&15]+o[M&15]+o[C>>>28&15]+o[C>>>24&15]+o[C>>>20&15]+o[C>>>16&15]+o[C>>>12&15]+o[C>>>8&15]+o[C>>>4&15]+o[C&15]+o[R>>>28&15]+o[R>>>24&15]+o[R>>>20&15]+o[R>>>16&15]+o[R>>>12&15]+o[R>>>8&15]+o[R>>>4&15]+o[R&15];return this.is224||(w+=o[$>>>28&15]+o[$>>>24&15]+o[$>>>20&15]+o[$>>>16&15]+o[$>>>12&15]+o[$>>>8&15]+o[$>>>4&15]+o[$&15]),w},x.prototype.toString=x.prototype.hex,x.prototype.digest=function(){this.finalize();var b=this.h0,A=this.h1,L=this.h2,E=this.h3,M=this.h4,C=this.h5,R=this.h6,$=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,E>>>24&255,E>>>16&255,E>>>8&255,E&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($>>>24&255,$>>>16&255,$>>>8&255,$&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 E,M=typeof b;if(M==="string"){var C=[],R=b.length,$=0,w;for(E=0;E<R;++E)w=b.charCodeAt(E),w<128?C[$++]=w:w<2048?(C[$++]=192|w>>>6,C[$++]=128|w&63):w<55296||w>=57344?(C[$++]=224|w>>>12,C[$++]=128|w>>>6&63,C[$++]=128|w&63):(w=65536+((w&1023)<<10|b.charCodeAt(++E)&1023),C[$++]=240|w>>>18,C[$++]=128|w>>>12&63,C[$++]=128|w>>>6&63,C[$++]=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 k=[],T=[];for(E=0;E<64;++E){var O=b[E]||0;k[E]=92^O,T[E]=54^O}x.call(this,A,L),this.update(T),this.oKeyPad=k,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 S=f();S.sha256=S,S.sha224=f(!0),S.sha256.hmac=y(),S.sha224.hmac=y(!0),d?e.exports=S:(r.sha256=S.sha256,r.sha224=S.sha224)})()})(ap);var yA=ap.exports,bA=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},Yl={},wA=Object.prototype.hasOwnProperty,_A;function Yu(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return null}}function Zu(e){try{return encodeURIComponent(e)}catch{return null}}function SA(e){for(var t=/([^=?#&]+)=?([^&]*)/g,n={},r;r=t.exec(e);){var a=Yu(r[1]),l=Yu(r[2]);a===null||l===null||a in n||(n[a]=l)}return n}function $A(e,t){t=t||"";var n=[],r,a;typeof t!="string"&&(t="?");for(a in e)if(wA.call(e,a)){if(r=e[a],!r&&(r===null||r===_A||isNaN(r))&&(r=""),a=Zu(a),r=Zu(r),a===null||r===null)continue;n.push(a+"="+r)}return n.length?t+n.join("&"):""}Yl.stringify=$A;Yl.parse=SA;var lp=bA,$o=Yl,xA=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,cp=/[\n\r\t]/g,CA=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,up=/:\d+$/,AA=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,kA=/^[a-zA-Z]:/;function Zl(e){return(e||"").toString().replace(xA,"")}var Ua=[["#","hash"],["?","query"],function(t,n){return tn(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]],Xu={hash:1,query:1};function hp(e){var t;typeof window<"u"?t=window:typeof cr<"u"?t=cr:typeof self<"u"?t=self:t={};var n=t.location||{};e=e||n;var r={},a=typeof e,l;if(e.protocol==="blob:")r=new an(unescape(e.pathname),{});else if(a==="string"){r=new an(e,{});for(l in Xu)delete r[l]}else if(a==="object"){for(l in e)l in Xu||(r[l]=e[l]);r.slashes===void 0&&(r.slashes=CA.test(e.href))}return r}function tn(e){return e==="file:"||e==="ftp:"||e==="http:"||e==="https:"||e==="ws:"||e==="wss:"}function dp(e,t){e=Zl(e),e=e.replace(cp,""),t=t||{};var n=AA.exec(e),r=n[1]?n[1].toLowerCase():"",a=!!n[2],l=!!n[3],d=0,g;return a?l?(g=n[2]+n[3]+n[4],d=n[2].length+n[3].length):(g=n[2]+n[4],d=n[2].length):l?(g=n[3]+n[4],d=n[3].length):g=n[4],r==="file:"?d>=2&&(g=g.slice(2)):tn(r)?g=n[4]:r?a&&(g=g.slice(2)):d>=2&&tn(t.protocol)&&(g=n[4]),{protocol:r,slashes:a||tn(r),slashesCount:d,rest:g}}function EA(e,t){if(e==="")return t;for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),r=n.length,a=n[r-1],l=!1,d=0;r--;)n[r]==="."?n.splice(r,1):n[r]===".."?(n.splice(r,1),d++):d&&(r===0&&(l=!0),n.splice(r,1),d--);return l&&n.unshift(""),(a==="."||a==="..")&&n.push(""),n.join("/")}function an(e,t,n){if(e=Zl(e),e=e.replace(cp,""),!(this instanceof an))return new an(e,t,n);var r,a,l,d,g,o,p=Ua.slice(),i=typeof t,s=this,c=0;for(i!=="object"&&i!=="string"&&(n=t,t=null),n&&typeof n!="function"&&(n=$o.parse),t=hp(t),a=dp(e||"",t),r=!a.protocol&&!a.slashes,s.slashes=a.slashes||r&&t.slashes,s.protocol=a.protocol||t.protocol||"",e=a.rest,(a.protocol==="file:"&&(a.slashesCount!==2||kA.test(e))||!a.slashes&&(a.protocol||a.slashesCount<2||!tn(s.protocol)))&&(p[3]=[/(.*)/,"pathname"]);c<p.length;c++){if(d=p[c],typeof d=="function"){e=d(e,s);continue}l=d[0],o=d[1],l!==l?s[o]=e:typeof l=="string"?(g=l==="@"?e.lastIndexOf(l):e.indexOf(l),~g&&(typeof d[2]=="number"?(s[o]=e.slice(0,g),e=e.slice(g+d[2])):(s[o]=e.slice(g),e=e.slice(0,g)))):(g=l.exec(e))&&(s[o]=g[1],e=e.slice(0,g.index)),s[o]=s[o]||r&&d[3]&&t[o]||"",d[4]&&(s[o]=s[o].toLowerCase())}n&&(s.query=n(s.query)),r&&t.slashes&&s.pathname.charAt(0)!=="/"&&(s.pathname!==""||t.pathname!=="")&&(s.pathname=EA(s.pathname,t.pathname)),s.pathname.charAt(0)!=="/"&&tn(s.protocol)&&(s.pathname="/"+s.pathname),lp(s.port,s.protocol)||(s.host=s.hostname,s.port=""),s.username=s.password="",s.auth&&(g=s.auth.indexOf(":"),~g?(s.username=s.auth.slice(0,g),s.username=encodeURIComponent(decodeURIComponent(s.username)),s.password=s.auth.slice(g+1),s.password=encodeURIComponent(decodeURIComponent(s.password))):s.username=encodeURIComponent(decodeURIComponent(s.auth)),s.auth=s.password?s.username+":"+s.password:s.username),s.origin=s.protocol!=="file:"&&tn(s.protocol)&&s.host?s.protocol+"//"+s.host:"null",s.href=s.toString()}function RA(e,t,n){var r=this;switch(e){case"query":typeof t=="string"&&t.length&&(t=(n||$o.parse)(t)),r[e]=t;break;case"port":r[e]=t,lp(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,up.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 a=e==="pathname"?"/":"#";r[e]=t.charAt(0)!==a?a+t:t}else r[e]=t;break;case"username":case"password":r[e]=encodeURIComponent(t);break;case"auth":var l=t.indexOf(":");~l?(r.username=t.slice(0,l),r.username=encodeURIComponent(decodeURIComponent(r.username)),r.password=t.slice(l+1),r.password=encodeURIComponent(decodeURIComponent(r.password))):r.username=encodeURIComponent(decodeURIComponent(t))}for(var d=0;d<Ua.length;d++){var g=Ua[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:"&&tn(r.protocol)&&r.host?r.protocol+"//"+r.host:"null",r.href=r.toString(),r}function TA(e){(!e||typeof e!="function")&&(e=$o.stringify);var t,n=this,r=n.host,a=n.protocol;a&&a.charAt(a.length-1)!==":"&&(a+=":");var l=a+(n.protocol&&n.slashes||tn(n.protocol)?"//":"");return n.username?(l+=n.username,n.password&&(l+=":"+n.password),l+="@"):n.password?(l+=":"+n.password,l+="@"):n.protocol!=="file:"&&tn(n.protocol)&&!r&&n.pathname!=="/"&&(l+="@"),(r[r.length-1]===":"||up.test(n.hostname)&&!n.port)&&(r+=":"),l+=r+n.pathname,t=typeof n.query=="object"?e(n.query):n.query,t&&(l+=t.charAt(0)!=="?"?"?"+t:t),n.hash&&(l+=n.hash),l}an.prototype={set:RA,toString:TA};an.extractProtocol=dp;an.location=hp;an.trimLeft=Zl;an.qs=$o;var LA=an;const MA=Dr(LA);class xo extends Dt{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.name="VirusTotal",this.baseURL="https://www.virustotal.com",this.type="domain"}}class OA extends xo{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/gui/domain/${t}/detection`}}class IA extends xo{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/gui/ip-address/${t}/details`}}class NA extends xo{constructor(){super(),this.type="url"}href(t){const n=yA.sha256(this.normalizeURL(t));return this.baseURL+`/gui/url/${n}/details`}normalizeURL(t){return new MA(t).pathname==="/"&&!t.endsWith("/")?`${t}/`:t}}class FA extends xo{constructor(){super(),this.type="hash"}href(t){return this.baseURL+`/gui/file/${t}/details`}}const DA=[new eA,new tA,new nA,new iA,new rA,new sA,new oA,new aA,new lA,new sp,new cA,new uA,new hA,new dA,new fA,new pA,new OA,new FA,new IA,new NA],PA={class:"tags are-medium"},WA=xe({__name:"LinksItem",props:{data:{type:String,required:!0},type:{type:String,required:!0}},setup(e){const t=e,n=Re(()=>DA.filter(r=>r.type===t.type));return(r,a)=>(G(),re("div",PA,[(G(!0),re(We,null,Nt(n.value,l=>(G(),$e(JC,{data:e.data,link:l,key:l.name},null,8,["data","link"]))),128))]))}});var fp={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(cr,function(){var n=1e3,r=6e4,a=36e5,l="millisecond",d="second",g="minute",o="hour",p="day",i="week",s="month",c="quarter",u="year",h="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 k=["th","st","nd","rd"],T=w%100;return"["+w+(k[(T-20)%10]||k[T]||k[0])+"]"}},x=function(w,k,T){var O=String(w);return!O||O.length>=k?w:""+Array(k+1-O.length).join(T)+w},_={s:x,z:function(w){var k=-w.utcOffset(),T=Math.abs(k),O=Math.floor(T/60),I=T%60;return(k<=0?"+":"-")+x(O,2,"0")+":"+x(I,2,"0")},m:function w(k,T){if(k.date()<T.date())return-w(T,k);var O=12*(T.year()-k.year())+(T.month()-k.month()),I=k.clone().add(O,s),N=T-I<0,D=k.clone().add(O+(N?-1:1),s);return+(-(O+(T-I)/(N?I-D:D-I))||0)},a:function(w){return w<0?Math.ceil(w)||0:Math.floor(w)},p:function(w){return{M:s,y:u,w:i,d:p,D:h,h:o,m:g,s:d,ms:l,Q:c}[w]||String(w||"").toLowerCase().replace(/s$/,"")},u:function(w){return w===void 0}},S="en",b={};b[S]=y;var A="$isDayjsObject",L=function(w){return w instanceof R||!(!w||!w[A])},E=function w(k,T,O){var I;if(!k)return S;if(typeof k=="string"){var N=k.toLowerCase();b[N]&&(I=N),T&&(b[N]=T,I=N);var D=k.split("-");if(!I&&D.length>1)return w(D[0])}else{var B=k.name;b[B]=k,I=B}return!O&&I&&(S=I),I||!O&&S},M=function(w,k){if(L(w))return w.clone();var T=typeof k=="object"?k:{};return T.date=w,T.args=arguments,new R(T)},C=_;C.l=E,C.i=L,C.w=function(w,k){return M(w,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var R=function(){function w(T){this.$L=E(T.locale,null,!0),this.parse(T),this.$x=this.$x||T.x||{},this[A]=!0}var k=w.prototype;return k.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 D=I.match(m);if(D){var B=D[2]-1||0,j=(D[7]||"0").substring(0,3);return N?new Date(Date.UTC(D[1],B,D[3]||1,D[4]||0,D[5]||0,D[6]||0,j)):new Date(D[1],B,D[3]||1,D[4]||0,D[5]||0,D[6]||0,j)}}return new Date(I)}(T),this.init()},k.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()},k.$utils=function(){return C},k.isValid=function(){return this.$d.toString()!==f},k.isSame=function(T,O){var I=M(T);return this.startOf(O)<=I&&I<=this.endOf(O)},k.isAfter=function(T,O){return M(T)<this.startOf(O)},k.isBefore=function(T,O){return this.endOf(O)<M(T)},k.$g=function(T,O,I){return C.u(T)?this[O]:this.set(I,T)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(T,O){var I=this,N=!!C.u(O)||O,D=C.p(T),B=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)},j=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)},U=this.$W,H=this.$M,V=this.$D,q="set"+(this.$u?"UTC":"");switch(D){case u:return N?B(1,0):B(31,11);case s:return N?B(1,H):B(0,H+1);case i:var z=this.$locale().weekStart||0,Z=(U<z?U+7:U)-z;return B(N?V-Z:V+(6-Z),H);case p:case h:return j(q+"Hours",0);case o:return j(q+"Minutes",1);case g:return j(q+"Seconds",2);case d:return j(q+"Milliseconds",3);default:return this.clone()}},k.endOf=function(T){return this.startOf(T,!1)},k.$set=function(T,O){var I,N=C.p(T),D="set"+(this.$u?"UTC":""),B=(I={},I[p]=D+"Date",I[h]=D+"Date",I[s]=D+"Month",I[u]=D+"FullYear",I[o]=D+"Hours",I[g]=D+"Minutes",I[d]=D+"Seconds",I[l]=D+"Milliseconds",I)[N],j=N===p?this.$D+(O-this.$W):O;if(N===s||N===u){var U=this.clone().set(h,1);U.$d[B](j),U.init(),this.$d=U.set(h,Math.min(this.$D,U.daysInMonth())).$d}else B&&this.$d[B](j);return this.init(),this},k.set=function(T,O){return this.clone().$set(T,O)},k.get=function(T){return this[C.p(T)]()},k.add=function(T,O){var I,N=this;T=Number(T);var D=C.p(O),B=function(H){var V=M(N);return C.w(V.date(V.date()+Math.round(H*T)),N)};if(D===s)return this.set(s,this.$M+T);if(D===u)return this.set(u,this.$y+T);if(D===p)return B(1);if(D===i)return B(7);var j=(I={},I[g]=r,I[o]=a,I[d]=n,I)[D]||1,U=this.$d.getTime()+T*j;return C.w(U,this)},k.subtract=function(T,O){return this.add(-1*T,O)},k.format=function(T){var O=this,I=this.$locale();if(!this.isValid())return I.invalidDate||f;var N=T||"YYYY-MM-DDTHH:mm:ssZ",D=C.z(this),B=this.$H,j=this.$m,U=this.$M,H=I.weekdays,V=I.months,q=I.meridiem,z=function(Q,he,Ce,P){return Q&&(Q[he]||Q(O,N))||Ce[he].slice(0,P)},Z=function(Q){return C.s(B%12||12,Q,"0")},Y=q||function(Q,he,Ce){var P=Q<12?"AM":"PM";return Ce?P.toLowerCase():P};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 U+1;case"MM":return C.s(U+1,2,"0");case"MMM":return z(I.monthsShort,U,V,3);case"MMMM":return z(V,U);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,H,2);case"ddd":return z(I.weekdaysShort,O.$W,H,3);case"dddd":return H[O.$W];case"H":return String(B);case"HH":return C.s(B,2,"0");case"h":return Z(1);case"hh":return Z(2);case"a":return Y(B,j,!0);case"A":return Y(B,j,!1);case"m":return String(j);case"mm":return C.s(j,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 D}return null}(Q)||D.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(T,O,I){var N,D=this,B=C.p(O),j=M(T),U=(j.utcOffset()-this.utcOffset())*r,H=this-j,V=function(){return C.m(D,j)};switch(B){case u:N=V()/12;break;case s:N=V();break;case c:N=V()/3;break;case i:N=(H-U)/6048e5;break;case p:N=(H-U)/864e5;break;case o:N=H/a;break;case g:N=H/r;break;case d:N=H/n;break;default:N=H}return I?N:C.a(N)},k.daysInMonth=function(){return this.endOf(s).$D},k.$locale=function(){return b[this.$L]},k.locale=function(T,O){if(!T)return this.$L;var I=this.clone(),N=E(T,O,!0);return N&&(I.$L=N),I},k.clone=function(){return C.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},w}(),$=R.prototype;return M.prototype=$,[["$ms",l],["$s",d],["$m",g],["$H",o],["$W",p],["$M",s],["$y",u],["$D",h]].forEach(function(w){$[w[1]]=function(k){return this.$g(k,w[0],w[1])}}),M.extend=function(w,k){return w.$i||(w(k,R,M),w.$i=!0),M},M.locale=E,M.isDayjs=L,M.unix=function(w){return M(1e3*w)},M.en=b[S],M.Ls=b,M.p={},M})})(fp);var BA=fp.exports;const Co=Dr(BA);var pp={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(cr,function(){return function(n,r,a){n=n||{};var l=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,i,s,c){return l.fromToBase(p,i,s,c)}a.en.relativeTime=d,l.fromToBase=function(p,i,s,c,u){for(var h,f,m,v=s.$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 S=y[_];S.d&&(h=c?a(p).diff(s,S.d,!0):s.diff(p,S.d,!0));var b=(n.rounding||Math.round)(Math.abs(h));if(m=h>0,b<=S.r||!S.r){b<=1&&_>0&&(S=y[_-1]);var A=v[S.l];u&&(b=u(""+b)),f=typeof A=="string"?A.replace("%d",b):A(b,i,S.l,m);break}}if(i)return f;var L=m?v.future:v.past;return typeof L=="function"?L(f):L.replace("%s",f)},l.to=function(p,i){return g(p,i,this,!0)},l.from=function(p,i){return g(p,i,this)};var o=function(p){return p.$u?a.utc():a()};l.toNow=function(p){return this.to(o(this),p)},l.fromNow=function(p){return this.from(o(this),p)}}})})(pp);var HA=pp.exports;const zA=Dr(HA);var gp={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(cr,function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},r={};return function(a,l,d){var g,o=function(c,u,h){h===void 0&&(h={});var f=new Date(c),m=function(v,y){y===void 0&&(y={});var x=y.timeZoneName||"short",_=v+"|"+x,S=r[_];return S||(S=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:v,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:x}),r[_]=S),S}(u,h);return m.formatToParts(f)},p=function(c,u){for(var h=o(c,u),f=[],m=0;m<h.length;m+=1){var v=h[m],y=v.type,x=v.value,_=n[y];_>=0&&(f[_]=parseInt(x,10))}var S=f[3],b=S===24?0:S,A=f[0]+"-"+f[1]+"-"+f[2]+" "+b+":"+f[4]+":"+f[5]+":000",L=+c;return(d.utc(A).valueOf()-(L-=L%1e3))/6e4},i=l.prototype;i.tz=function(c,u){c===void 0&&(c=g);var h=this.utcOffset(),f=this.toDate(),m=f.toLocaleString("en-US",{timeZone:c}),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(u){var x=y.utcOffset();y=y.add(h-x,"minute")}return y.$x.$timezone=c,y},i.offsetName=function(c){var u=this.$x.$timezone||d.tz.guess(),h=o(this.valueOf(),u,{timeZoneName:c}).find(function(f){return f.type.toLowerCase()==="timezonename"});return h&&h.value};var s=i.startOf;i.startOf=function(c,u){if(!this.$x||!this.$x.$timezone)return s.call(this,c,u);var h=d(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return s.call(h,c,u).tz(this.$x.$timezone,!0)},d.tz=function(c,u,h){var f=h&&u,m=h||u||g,v=p(+d(),m);if(typeof c!="string")return d(c).tz(m);var y=function(b,A,L){var E=b-60*A*1e3,M=p(E,L);if(A===M)return[E,A];var C=p(E-=60*(M-A)*1e3,L);return M===C?[E,M]:[b-60*Math.min(M,C)*1e3,Math.max(M,C)]}(d.utc(c,f).valueOf(),v,m),x=y[0],_=y[1],S=d(x).utcOffset(_);return S.$x.$timezone=m,S},d.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},d.tz.setDefault=function(c){g=c}}})})(gp);var UA=gp.exports;const jA=Dr(UA);var mp={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(cr,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,a=/([+-]|\d\d)/g;return function(l,d,g){var o=d.prototype;g.utc=function(f){var m={date:f,utc:!0,args:arguments};return new d(m)},o.utc=function(f){var m=g(this.toDate(),{locale:this.$L,utc:!0});return f?m.add(this.utcOffset(),n):m},o.local=function(){return g(this.toDate(),{locale:this.$L,utc:!1})};var p=o.parse;o.parse=function(f){f.utc&&(this.$u=!0),this.$utils().u(f.$offset)||(this.$offset=f.$offset),p.call(this,f)};var i=o.init;o.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 i.call(this)};var s=o.utcOffset;o.utcOffset=function(f,m){var v=this.$utils().u;if(v(f))return this.$u?0:v(this.$offset)?s.call(this):this.$offset;if(typeof f=="string"&&(f=function(S){S===void 0&&(S="");var b=S.match(r);if(!b)return null;var A=(""+b[0]).match(a)||["-",0,0],L=A[0],E=60*+A[1]+ +A[2];return E===0?0:L==="+"?E:-E}(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 c=o.format;o.format=function(f){var m=f||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,m)},o.valueOf=function(){var f=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*f},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var u=o.toDate;o.toDate=function(f){return f==="s"&&this.$offset?g(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():u.call(this)};var h=o.diff;o.diff=function(f,m,v){if(f&&this.$u===f.$u)return h.call(this,f,m,v);var y=this.local(),x=g(f).local();return h.call(y,x,m,v)}}})})(mp);var VA=mp.exports;const GA=Dr(VA),KA=[{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 YA(e){return KA.find(n=>n.code===e)}Co.extend(zA);Co.extend(jA);Co.extend(GA);function vp(e){const t=YA(e);if(t)return{lat:t.lat,long:t.long}}function ZA(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 vp(e.countryCode)}const At=e=>(wl("data-v-aadb0460"),e=e(),_l(),e),XA={class:"block"},qA={class:"is-size-2"},QA={class:"is-clearfix"},JA={class:"columns"},e2={key:0,class:"column is-half"},t2={key:0},n2={class:"is-size-4"},r2={class:"has-text-grey"},i2=["src"],s2={key:1},o2=At(()=>F("h4",{class:"is-size-4"},"Live screenshot",-1)),a2=At(()=>F("p",{class:"help"},"Hover to expand",-1)),l2=["src"],c2={class:"column"},u2=At(()=>F("h4",{class:"is-size-4"},"Information",-1)),h2={class:"table is-fullwidth is-completely-borderless"},d2=At(()=>F("th",null,"Data",-1)),f2=At(()=>F("th",null,"Data type",-1)),p2=At(()=>F("th",null,"Source",-1)),g2=At(()=>F("th",null,"Query",-1)),m2={key:0},v2=At(()=>F("th",null,"Tags",-1)),y2={class:"help"},b2={class:"block"},w2={class:"block"},_2={key:0,class:"block"},S2=At(()=>F("h4",{class:"is-size-4 mb-2"},"AS",-1)),$2={key:1,class:"block"},x2=At(()=>F("h4",{class:"is-size-4 mb-2"},"Reverse DNS",-1)),C2={key:2,class:"block"},A2=At(()=>F("h4",{class:"is-size-4 mb-2"},"DNS records",-1)),k2={key:3,class:"block"},E2=At(()=>F("h4",{class:"is-size-4 mb-2"},"CPEs",-1)),R2={key:4,class:"block"},T2=At(()=>F("h4",{class:"is-size-4 mb-2"},"Vulnerabilities",-1)),L2={key:5,class:"block"},M2=At(()=>F("h4",{class:"is-size-4 mb-2"},"Ports",-1)),O2={key:6,class:"block"},I2=At(()=>F("h4",{class:"is-size-4 mb-2"},"Whois record",-1)),N2=xe({__name:"ArtifactDetail",props:{artifact:{type:Object,required:!0}},emits:["delete","refresh"],setup(e,{emit:t}){const n=e,r=t,a=je(),l=je(),d=je(),g=je(),o=m=>{d.value=m},p=()=>{d.value=void 0},i=()=>{r("delete")},s=m=>{m.queued?g.value=m:r("refresh")},c=()=>{g.value=void 0},u=Re(()=>{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}`}),h=m=>{if(m)return`https://maps.google.co.jp/maps?output=embed&q=${m.lat},${m.long}&z=3`},f=lS();return ct(async()=>{if(n.artifact.dataType==="ip"){let m;if(n.artifact.geolocation)m=vp(n.artifact.geolocation.countryCode);else{const v=await f.perform(n.artifact.data);m=ZA(v),l.value=v.countryCode}a.value=h(m)}}),(m,v)=>{var y;return G(),re(We,null,[d.value?(G(),$e(yt,{key:0,class:"block",error:d.value,disposable:!0,onDispose:p},null,8,["error"])):ge("",!0),g.value?(G(),$e(So,{key:1,class:"block",message:g.value,disposable:!0,onDispose:c},null,8,["message"])):ge("",!0),F("div",XA,[F("h2",qA,_e(e.artifact.id),1),F("p",QA,[oe(ip,{artifact:e.artifact,onDelete:i,onSetError:o,onSetMessage:s},null,8,["artifact"])])]),F("div",JA,[a.value||u.value?(G(),re("div",e2,[a.value?(G(),re("div",t2,[F("h4",n2,[it(" Geolocation "),F("span",r2,_e(l.value||((y=e.artifact.geolocation)==null?void 0:y.countryCode)),1)]),F("iframe",{class:"mb-4",src:a.value,width:"100%",height:"240px"},null,8,i2)])):ge("",!0),u.value?(G(),re("div",s2,[o2,a2,F("img",{src:u.value,class:"liveshot",alt:"liveshot"},null,8,l2)])):ge("",!0)])):ge("",!0),F("div",c2,[u2,F("table",h2,[F("tr",null,[d2,F("td",null,_e(le(Ti)(e.artifact.data,64)),1)]),F("tr",null,[f2,F("td",null,_e(e.artifact.dataType),1)]),F("tr",null,[p2,F("td",null,_e(e.artifact.source),1)]),F("tr",null,[g2,F("td",null,_e(le(Ti)(e.artifact.query||"N/A",64)),1)]),e.artifact.tags.length>0?(G(),re("tr",m2,[v2,F("td",null,[oe(ji,{tags:e.artifact.tags,"navigate-to":"Artifacts"},null,8,["tags"]),it("/td>")])])):ge("",!0)]),F("p",y2,"Created at: "+_e(e.artifact.createdAt),1)])]),F("div",b2,[oe(WA,{data:e.artifact.data,type:e.artifact.dataType},null,8,["data","type"])]),F("div",w2,[e.artifact.autonomousSystem?(G(),re("div",_2,[S2,oe(bC,{autonomousSystem:e.artifact.autonomousSystem},null,8,["autonomousSystem"])])):ge("",!0),e.artifact.reverseDnsNames?(G(),re("div",$2,[x2,oe(RC,{reverseDnsNames:e.artifact.reverseDnsNames},null,8,["reverseDnsNames"])])):ge("",!0),e.artifact.dnsRecords?(G(),re("div",C2,[A2,oe(CC,{dnsRecords:e.artifact.dnsRecords},null,8,["dnsRecords"])])):ge("",!0),e.artifact.cpes?(G(),re("div",k2,[E2,oe(_C,{cpes:e.artifact.cpes},null,8,["cpes"])])):ge("",!0),e.artifact.vulnerabilities?(G(),re("div",R2,[T2,oe(LC,{vulnerabilities:e.artifact.vulnerabilities},null,8,["vulnerabilities"])])):ge("",!0),e.artifact.ports?(G(),re("div",L2,[M2,oe(kC,{ports:e.artifact.ports},null,8,["ports"])])):ge("",!0),e.artifact.whoisRecord?(G(),re("div",O2,[I2,oe(ZC,{whoisRecord:e.artifact.whoisRecord},null,8,["whoisRecord"])])):ge("",!0)])],64)}}}),F2=Wi(N2,[["__scopeId","data-v-aadb0460"]]),D2=xe({__name:"ArtifactDetailWrapper",props:{id:{type:Number,required:!0}},setup(e){const t=e,n=sS(),r=Ir(),a=async()=>{await n.perform(t.id)},l=async()=>{await a()},d=async()=>{r.push("/")};return ct(async()=>{await a()}),Qe(t,async()=>{await a()}),(g,o)=>{var p,i;return G(),re(We,null,[le(n).isRunning?(G(),$e(_n,{key:0})):ge("",!0),le(n).isError?(G(),$e(yt,{key:1,error:(p=le(n).last)==null?void 0:p.error},null,8,["error"])):ge("",!0),(i=le(n).last)!=null&&i.value?(G(),$e(F2,{key:2,artifact:le(n).last.value,onRefresh:l,onDelete:d},null,8,["artifact"])):ge("",!0)],64)}}}),P2=xe({__name:"ArtifactView",props:{id:{type:String,required:!0}},setup(e){const t=e,n=()=>{wn(`Artifact:${t.id} - Mihari`)};return ct(()=>{n()}),Qe(()=>t.id,()=>{n()}),(r,a)=>(G(),$e(D2,{id:parseInt(e.id)},null,8,["id"]))}}),W2={class:"box"},B2={class:"table-container"},H2={class:"table is-fullwidth"},z2=F("thead",null,[F("tr",null,[F("th",null,"Name"),F("th",null,"Type"),F("th",null,"Configured?"),F("th",null,"Items")])],-1),U2={key:0,class:"button is-success is-small ml-1"},j2={class:"icon is-small"},V2=F("span",null,"Yes",-1),G2={key:1,class:"button is-warning is-small ml-1"},K2={class:"icon is-small"},Y2=F("span",null,"No",-1),Z2={class:"field is-grouped is-grouped-multiline"},X2={class:"tags has-addons"},q2={class:"tag is-dark"},Q2=xe({__name:"ConfigsItem",props:{configs:{type:Object,required:!0}},setup(e){return(t,n)=>{const r=Ze("font-awesome-icon");return G(),re("div",W2,[F("div",B2,[F("table",H2,[z2,F("tbody",null,[(G(!0),re(We,null,Nt(e.configs.results,a=>(G(),re("tr",{key:a.name},[F("td",null,_e(a.name),1),F("td",null,_e(a.type),1),F("td",null,[a.configured?(G(),re("button",U2,[F("span",j2,[oe(r,{icon:"check"})]),V2])):(G(),re("button",G2,[F("span",K2,[oe(r,{icon:"exclamation"})]),Y2]))]),F("td",null,[F("div",Z2,[(G(!0),re(We,null,Nt(a.items,(l,d)=>(G(),re("div",{class:"control",key:d},[F("div",X2,[F("span",q2,_e(l.key),1),F("span",{class:Ni(["tag",{"is-success":l.value,"is-warning":!l.value}])},_e(l.value||"N/A"),3)])]))),128))])])]))),128))])])])])}}}),J2=xe({__name:"ConfigsWrapper",setup(e){const t=aS();return ct(async()=>{await t.perform()}),(n,r)=>{var a,l;return G(),re(We,null,[le(t).isRunning?(G(),$e(_n,{key:0})):ge("",!0),le(t).isError?(G(),$e(yt,{key:1,error:(a=le(t).last)==null?void 0:a.error},null,8,["error"])):ge("",!0),(l=le(t).last)!=null&&l.value?(G(),$e(Q2,{key:2,configs:le(t).last.value},null,8,["configs"])):ge("",!0)],64)}}}),ek=xe({__name:"ConfigView",setup(e){return wn("Configuration - Mihari"),(t,n)=>(G(),$e(J2))}});var yp={exports:{}};(function(e,t){(function(){var n="ace",r=function(){return this}();!r&&typeof window<"u"&&(r=window);var a=function(i,s,c){if(typeof i!="string"){a.original?a.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(c=s),a.modules[i]||(a.payloads[i]=c,a.modules[i]=null)};a.modules={},a.payloads={};var l=function(i,s,c){if(typeof s=="string"){var u=o(i,s);if(u!=null)return c&&c(),u}else if(Object.prototype.toString.call(s)==="[object Array]"){for(var h=[],f=0,m=s.length;f<m;++f){var v=o(i,s[f]);if(v==null&&d.original)return;h.push(v)}return c&&c.apply(null,h)||!0}},d=function(i,s){var c=l("",i,s);return c==null&&d.original?d.original.apply(this,arguments):c},g=function(i,s){if(s.indexOf("!")!==-1){var c=s.split("!");return g(i,c[0])+"!"+g(i,c[1])}if(s.charAt(0)=="."){var u=i.split("/").slice(0,-1).join("/");for(s=u+"/"+s;s.indexOf(".")!==-1&&h!=s;){var h=s;s=s.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return s},o=function(i,s){s=g(i,s);var c=a.modules[s];if(!c){if(c=a.payloads[s],typeof c=="function"){var u={},h={id:s,uri:"",exports:u,packaged:!0},f=function(v,y){return l(s,v,y)},m=c(f,u,h);u=m||h.exports,a.modules[s]=u,delete a.payloads[s]}c=a.modules[s]=u||c}return c};function p(i){var s=r;r[i]||(r[i]={}),s=r[i],(!s.define||!s.define.packaged)&&(a.original=s.define,s.define=a,s.define.packaged=!0),(!s.require||!s.require.packaged)&&(d.original=s.require,s.require=d,s.require.packaged=!0)}p(n)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(n,r,a){function l(d,g,o){Object.defineProperty(d,g,{value:o,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||l(String.prototype,"startsWith",function(d,g){return g=g||0,this.lastIndexOf(d,g)===g}),String.prototype.endsWith||l(String.prototype,"endsWith",function(d,g){var o=this;(g===void 0||g>o.length)&&(g=o.length),g-=d.length;var p=o.indexOf(d,g);return p!==-1&&p===g}),String.prototype.repeat||l(String.prototype,"repeat",function(d){for(var g="",o=this;d>0;)d&1&&(g+=o),(d>>=1)&&(o+=o);return g}),String.prototype.includes||l(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),o=1;o<arguments.length;o++){var p=arguments[o];p!=null&&Object.keys(p).forEach(function(i){g[i]=p[i]})}return g}),Object.values||(Object.values=function(d){return Object.keys(d).map(function(g){return d[g]})}),Array.prototype.find||l(Array.prototype,"find",function(d){for(var g=this.length,o=arguments[1],p=0;p<g;p++){var i=this[p];if(d.call(o,i,p,this))return i}}),Array.prototype.findIndex||l(Array.prototype,"findIndex",function(d){for(var g=this.length,o=arguments[1],p=0;p<g;p++){var i=this[p];if(d.call(o,i,p,this))return p}}),Array.prototype.includes||l(Array.prototype,"includes",function(d,g){return this.indexOf(d,g)!=-1}),Array.prototype.fill||l(Array.prototype,"fill",function(d){for(var g=this,o=g.length>>>0,p=arguments[1],i=p>>0,s=i<0?Math.max(o+i,0):Math.min(i,o),c=arguments[2],u=c===void 0?o:c>>0,h=u<0?Math.max(o+u,0):Math.min(u,o);s<h;)g[s]=d,s++;return g}),Array.of||l(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(n,r,a){n("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(n,r,a){r.deepCopy=function l(d){if(typeof d!="object"||!d)return d;var g;if(Array.isArray(d)){g=[];for(var o=0;o<d.length;o++)g[o]=l(d[o]);return g}if(Object.prototype.toString.call(d)!=="[object Object]")return d;g={};for(var o in d)g[o]=l(d[o]);return g}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(n,r,a){r.last=function(g){return g[g.length-1]},r.stringReverse=function(g){return g.split("").reverse().join("")},r.stringRepeat=function(g,o){for(var p="";o>0;)o&1&&(p+=g),(o>>=1)&&(g+=g);return p};var l=/^\s\s*/,d=/\s\s*$/;r.stringTrimLeft=function(g){return g.replace(l,"")},r.stringTrimRight=function(g){return g.replace(d,"")},r.copyObject=function(g){var o={};for(var p in g)o[p]=g[p];return o},r.copyArray=function(g){for(var o=[],p=0,i=g.length;p<i;p++)g[p]&&typeof g[p]=="object"?o[p]=this.copyObject(g[p]):o[p]=g[p];return o},r.deepCopy=n("./deep_copy").deepCopy,r.arrayToMap=function(g){for(var o={},p=0;p<g.length;p++)o[g[p]]=1;return o},r.createMap=function(g){var o=Object.create(null);for(var p in g)o[p]=g[p];return o},r.arrayRemove=function(g,o){for(var p=0;p<=g.length;p++)o===g[p]&&g.splice(p,1)},r.escapeRegExp=function(g){return g.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},r.escapeHTML=function(g){return(""+g).replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},r.getMatchOffsets=function(g,o){var p=[];return g.replace(o,function(i){p.push({offset:arguments[arguments.length-2],length:i.length})}),p},r.deferredCall=function(g){var o=null,p=function(){o=null,g()},i=function(s){return i.cancel(),o=setTimeout(p,s||0),i};return i.schedule=i,i.call=function(){return this.cancel(),g(),i},i.cancel=function(){return clearTimeout(o),o=null,i},i.isPending=function(){return o},i},r.delayedCall=function(g,o){var p=null,i=function(){p=null,g()},s=function(c){p==null&&(p=setTimeout(i,c||o))};return s.delay=function(c){p&&clearTimeout(p),p=setTimeout(i,c||o)},s.schedule=s,s.call=function(){this.cancel(),g()},s.cancel=function(){p&&clearTimeout(p),p=null},s.isPending=function(){return p},s},r.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},r.skipEmptyMatch=function(g,o,p){return p&&g.codePointAt(o)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(n,r,a){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 l=typeof navigator=="object"?navigator:{},d=(/mac|win|linux/i.exec(l.platform)||["other"])[0].toLowerCase(),g=l.userAgent||"",o=l.appName||"";r.isWin=d=="win",r.isMac=d=="mac",r.isLinux=d=="linux",r.isIE=o=="Microsoft Internet Explorer"||o.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,a){var l=n("./useragent"),d="http://www.w3.org/1999/xhtml";r.buildDom=function c(u,h,f){if(typeof u=="string"&&u){var m=document.createTextNode(u);return h&&h.appendChild(m),m}if(!Array.isArray(u))return u&&u.appendChild&&h&&h.appendChild(u),u;if(typeof u[0]!="string"||!u[0]){for(var v=[],y=0;y<u.length;y++){var x=c(u[y],h,f);x&&v.push(x)}return v}var _=document.createElement(u[0]),S=u[1],b=1;S&&typeof S=="object"&&!Array.isArray(S)&&(b=2);for(var y=b;y<u.length;y++)c(u[y],_,f);return b==2&&Object.keys(S).forEach(function(A){var L=S[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)}),h&&h.appendChild(_),_},r.getDocumentHead=function(c){return c||(c=document),c.head||c.getElementsByTagName("head")[0]||c.documentElement},r.createElement=function(c,u){return document.createElementNS?document.createElementNS(u||d,c):document.createElement(c)},r.removeChildren=function(c){c.innerHTML=""},r.createTextNode=function(c,u){var h=u?u.ownerDocument:document;return h.createTextNode(c)},r.createFragment=function(c){var u=c?c.ownerDocument:document;return u.createDocumentFragment()},r.hasCssClass=function(c,u){var h=(c.className+"").split(/\s+/g);return h.indexOf(u)!==-1},r.addCssClass=function(c,u){r.hasCssClass(c,u)||(c.className+=" "+u)},r.removeCssClass=function(c,u){for(var h=c.className.split(/\s+/g);;){var f=h.indexOf(u);if(f==-1)break;h.splice(f,1)}c.className=h.join(" ")},r.toggleCssClass=function(c,u){for(var h=c.className.split(/\s+/g),f=!0;;){var m=h.indexOf(u);if(m==-1)break;f=!1,h.splice(m,1)}return f&&h.push(u),c.className=h.join(" "),f},r.setCssClass=function(c,u,h){h?r.addCssClass(c,u):r.removeCssClass(c,u)},r.hasCssString=function(c,u){var h=0,f;if(u=u||document,f=u.querySelectorAll("style")){for(;h<f.length;)if(f[h++].id===c)return!0}},r.removeElementById=function(c,u){u=u||document,u.getElementById(c)&&u.getElementById(c).remove()};var g,o=[];r.useStrictCSP=function(c){g=c,c==!1?p():o||(o=[])};function p(){var c=o;o=null,c&&c.forEach(function(u){i(u[0],u[1])})}function i(c,u,h){if(!(typeof document>"u")){if(o){if(h)p();else if(h===!1)return o.push([c,u])}if(!g){var f=h;!h||!h.getRootNode?f=document:(f=h.getRootNode(),(!f||f==h)&&(f=document));var m=f.ownerDocument||f;if(u&&r.hasCssString(u,f))return null;u&&(c+=`
806
+ /*# sourceURL=ace/css/`+u+" */");var v=r.createElement("style");v.appendChild(m.createTextNode(c)),u&&(v.id=u),f==m&&(f=r.getDocumentHead(m)),f.insertBefore(v,f.firstChild)}}}if(r.importCssString=i,r.importCssStylsheet=function(c,u){r.buildDom(["link",{rel:"stylesheet",href:c}],r.getDocumentHead(u))},r.scrollbarWidth=function(c){var u=r.createElement("ace_inner");u.style.width="100%",u.style.minWidth="0px",u.style.height="200px",u.style.display="block";var h=r.createElement("ace_outer"),f=h.style;f.position="absolute",f.left="-10000px",f.overflow="hidden",f.width="200px",f.minWidth="0px",f.height="150px",f.display="block",h.appendChild(u);var m=c&&c.documentElement||document&&document.documentElement;if(!m)return 0;m.appendChild(h);var v=u.offsetWidth;f.overflow="scroll";var y=u.offsetWidth;return v===y&&(y=h.clientWidth),m.removeChild(h),v-y},r.computedStyle=function(c,u){return window.getComputedStyle(c,"")||{}},r.setStyle=function(c,u,h){c[u]!==h&&(c[u]=h)},r.HAS_CSS_ANIMATION=!1,r.HAS_CSS_TRANSFORMS=!1,r.HI_DPI=l.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,l.isChromeOS&&(r.HI_DPI=!1),typeof document<"u"){var s=document.createElement("div");r.HI_DPI&&s.style.transform!==void 0&&(r.HAS_CSS_TRANSFORMS=!0),!l.isEdge&&typeof s.style.animationName<"u"&&(r.HAS_CSS_ANIMATION=!0),s=null}r.HAS_CSS_TRANSFORMS?r.translate=function(c,u,h){c.style.transform="translate("+Math.round(u)+"px, "+Math.round(h)+"px)"}:r.translate=function(c,u,h){c.style.top=Math.round(h)+"px",c.style.left=Math.round(u)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(n,r,a){/*
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 l=n("./dom");r.get=function(d,g){var o=new XMLHttpRequest;o.open("GET",d,!0),o.onreadystatechange=function(){o.readyState===4&&g(o.responseText)},o.send(null)},r.loadScript=function(d,g){var o=l.getDocumentHead(),p=document.createElement("script");p.src=d,o.appendChild(p),p.onload=p.onreadystatechange=function(i,s){(s||!p.readyState||p.readyState=="loaded"||p.readyState=="complete")&&(p=p.onload=p.onreadystatechange=null,s||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,a){r.inherits=function(l,d){l.super_=d,l.prototype=Object.create(d.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}})},r.mixin=function(l,d){for(var g in d)l[g]=d[g];return l},r.implement=function(l,d){r.mixin(l,d)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(n,r,a){var l={},d=function(){this.propagationStopped=!0},g=function(){this.defaultPrevented=!0};l._emit=l._dispatchEvent=function(o,p){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var i=this._eventRegistry[o]||[],s=this._defaultHandlers[o];if(!(!i.length&&!s)){(typeof p!="object"||!p)&&(p={}),p.type||(p.type=o),p.stopPropagation||(p.stopPropagation=d),p.preventDefault||(p.preventDefault=g),i=i.slice();for(var c=0;c<i.length&&(i[c](p,this),!p.propagationStopped);c++);if(s&&!p.defaultPrevented)return s(p,this)}},l._signal=function(o,p){var i=(this._eventRegistry||{})[o];if(i){i=i.slice();for(var s=0;s<i.length;s++)i[s](p,this)}},l.once=function(o,p){var i=this;if(this.on(o,function s(){i.off(o,s),p.apply(null,arguments)}),!p)return new Promise(function(s){p=s})},l.setDefaultHandler=function(o,p){var i=this._defaultHandlers;if(i||(i=this._defaultHandlers={_disabled_:{}}),i[o]){var s=i[o],c=i._disabled_[o];c||(i._disabled_[o]=c=[]),c.push(s);var u=c.indexOf(p);u!=-1&&c.splice(u,1)}i[o]=p},l.removeDefaultHandler=function(o,p){var i=this._defaultHandlers;if(i){var s=i._disabled_[o];if(i[o]==p)s&&this.setDefaultHandler(o,s.pop());else if(s){var c=s.indexOf(p);c!=-1&&s.splice(c,1)}}},l.on=l.addEventListener=function(o,p,i){this._eventRegistry=this._eventRegistry||{};var s=this._eventRegistry[o];return s||(s=this._eventRegistry[o]=[]),s.indexOf(p)==-1&&s[i?"unshift":"push"](p),p},l.off=l.removeListener=l.removeEventListener=function(o,p){this._eventRegistry=this._eventRegistry||{};var i=this._eventRegistry[o];if(i){var s=i.indexOf(p);s!==-1&&i.splice(s,1)}},l.removeAllListeners=function(o){o||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[o]=void 0),this._defaultHandlers&&(this._defaultHandlers[o]=void 0)},r.EventEmitter=l}),ace.define("ace/lib/report_error",["require","exports","module"],function(n,r,a){r.reportError=function(d,g){var o=new Error(d);o.data=g,typeof console=="object"&&console.error&&console.error(o),setTimeout(function(){throw o})}}),ace.define("ace/lib/default_english_messages",["require","exports","module"],function(n,r,a){var l={"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=l}),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,a){"no use strict";var l=n("./oop"),d=n("./event_emitter").EventEmitter,g=n("./report_error").reportError,o=n("./default_english_messages").defaultEnglishMessages,p={setOptions:function(h){Object.keys(h).forEach(function(f){this.setOption(f,h[f])},this)},getOptions:function(h){var f={};if(h)Array.isArray(h)||(f=h,h=Object.keys(f));else{var m=this.$options;h=Object.keys(m).filter(function(v){return!m[v].hidden})}return h.forEach(function(v){f[v]=this.getOption(v)},this),f},setOption:function(h,f){if(this["$"+h]!==f){var m=this.$options[h];if(!m)return i('misspelled option "'+h+'"');if(m.forwardTo)return this[m.forwardTo]&&this[m.forwardTo].setOption(h,f);m.handlesSet||(this["$"+h]=f),m&&m.set&&m.set.call(this,f)}},getOption:function(h){var f=this.$options[h];return f?f.forwardTo?this[f.forwardTo]&&this[f.forwardTo].getOption(h):f&&f.get?f.get.call(this):this["$"+h]:i('misspelled option "'+h+'"')}};function i(h){typeof console<"u"&&console.warn&&console.warn.apply(console,arguments)}var s,c,u=function(){function h(){this.$defaultOptions={},s=o,c="dollarSigns"}return h.prototype.defineOptions=function(f,m,v){return f.$options||(this.$defaultOptions[m]=f.$options={}),Object.keys(v).forEach(function(y){var x=v[y];typeof x=="string"&&(x={forwardTo:x}),x.name||(x.name=y),f.$options[x.name]=x,"initialValue"in x&&(f["$"+x.name]=x.initialValue)}),l.implement(f,p),this},h.prototype.resetOptions=function(f){Object.keys(f.$options).forEach(function(m){var v=f.$options[m];"value"in v&&f.setOption(m,v.value)})},h.prototype.setDefaultValue=function(f,m,v){if(!f){for(f in this.$defaultOptions)if(this.$defaultOptions[f][m])break;if(!this.$defaultOptions[f][m])return!1}var y=this.$defaultOptions[f]||(this.$defaultOptions[f]={});y[m]&&(y.forwardTo?this.setDefaultValue(y.forwardTo,m,v):y[m].value=v)},h.prototype.setDefaultValues=function(f,m){Object.keys(m).forEach(function(v){this.setDefaultValue(f,v,m[v])},this)},h.prototype.setMessages=function(f,m){s=f,m&&m.placeholders&&(c=m.placeholders)},h.prototype.nls=function(f,m,v){s[f]||(i("No message found for the key '"+f+"' in the provided messages, trying to find a translation for the default string '"+m+"'."),s[m]||i("No message found for the default string '"+m+"' in the provided messages. Falling back to the default English message."));var y=s[f]||s[m]||m;return v&&(c==="dollarSigns"&&(y=y.replace(/\$(\$|[\d]+)/g,function(x,_){return _=="$"?"$":v[_]})),c==="curlyBrackets"&&(y=y.replace(/\{([^\}]+)\}/g,function(x,_){return v[_]}))),y},h}();u.prototype.warn=i,u.prototype.reportError=g,l.implement(u.prototype,d),r.AppConfig=u}),ace.define("ace/theme/textmate-css",["require","exports","module"],function(n,r,a){a.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,a){r.isDark=!1,r.cssClass="ace-tm",r.cssText=n("./textmate-css"),r.$id="ace/theme/textmate";var l=n("../lib/dom");l.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,a){"no use strict";var l=n("./lib/lang"),d=n("./lib/net"),g=n("./lib/dom"),o=n("./lib/app_config").AppConfig;a.exports=r=new o;var p={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};r.get=function(u){if(!p.hasOwnProperty(u))throw new Error("Unknown config key: "+u);return p[u]},r.set=function(u,h){if(p.hasOwnProperty(u))p[u]=h;else if(this.setDefaultValue("",u,h)==!1)throw new Error("Unknown config key: "+u);u=="useStrictCSP"&&g.useStrictCSP(h)},r.all=function(){return l.copyObject(p)},r.$modes={},r.moduleUrl=function(u,h){if(p.$moduleUrls[u])return p.$moduleUrls[u];var f=u.split("/");h=h||f[f.length-2]||"";var m=h=="snippets"?"/":"-",v=f[f.length-1];if(h=="worker"&&m=="-"){var y=new RegExp("^"+h+"[\\-_]|[\\-_]"+h+"$","g");v=v.replace(y,"")}(!v||v==h)&&f.length>1&&(v=f[f.length-2]);var x=p[h+"Path"];return x==null?x=p.basePath:m=="/"&&(h=m=""),x&&x.slice(-1)!="/"&&(x+="/"),x+h+m+v+this.get("suffix")},r.setModuleUrl=function(u,h){return p.$moduleUrls[u]=h};var i=function(u,h){if(u==="ace/theme/textmate"||u==="./theme/textmate")return h(null,n("./theme/textmate"));if(s)return s(u,h);console.error("loader is not configured")},s;r.setLoader=function(u){s=u},r.dynamicModules=Object.create(null),r.$loading={},r.$loaded={},r.loadModule=function(u,h){var f;if(Array.isArray(u))var m=u[0],v=u[1];else if(typeof u=="string")var v=u;var y=function(x){if(x&&!r.$loading[v])return h&&h(x);if(r.$loading[v]||(r.$loading[v]=[]),r.$loading[v].push(h),!(r.$loading[v].length>1)){var _=function(){i(v,function(S,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),_),c()}};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(u){if(typeof a.require=="function"){var h="require";return a[h](u)}},r.setModuleLoader=function(u,h){r.dynamicModules[u]=h};var c=function(){!p.basePath&&!p.workerPath&&!p.modePath&&!p.themePath&&!Object.keys(p.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),c=function(){})};r.version="1.35.2"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(n,r,a){n("./lib/fixoldbrowsers");var l=n("./config");l.setLoader(function(p,i){n([p],function(s){i(null,s)})});var d=function(){return this||typeof window<"u"&&window}();a.exports=function(p){l.init=g,l.$require=n,p.require=n},g(!0);function g(p){if(!(!d||!d.document)){l.set("packaged",p||n.packaged||a.packaged||d.define&&(void 0).packaged);var i={},s="",c=document.currentScript||document._currentScript,u=c&&c.ownerDocument||document;c&&c.src&&(s=c.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var h=u.getElementsByTagName("script"),f=0;f<h.length;f++){var m=h[f],v=m.src||m.getAttribute("src");if(v){for(var y=m.attributes,x=0,_=y.length;x<_;x++){var S=y[x];S.name.indexOf("data-ace-")===0&&(i[o(S.name.replace(/^data-ace-/,""))]=S.value)}var b=v.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);b&&(s=b[1])}}s&&(i.base=i.base||s,i.packaged=!0),i.basePath=i.base,i.workerPath=i.workerPath||i.base,i.modePath=i.modePath||i.base,i.themePath=i.themePath||i.base,delete i.base;for(var A in i)typeof i[A]<"u"&&l.set(A,i[A])}}function o(p){return p.replace(/-(.)/g,function(i,s){return s.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(n,r,a){var l=function(){function d(g,o,p,i){this.start={row:g,column:o},this.end={row:p,column:i}}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,o){return this.compare(g,o)==0},d.prototype.compareRange=function(g){var o,p=g.end,i=g.start;return o=this.compare(p.row,p.column),o==1?(o=this.compare(i.row,i.column),o==1?2:o==0?1:0):o==-1?-2:(o=this.compare(i.row,i.column),o==-1?-1:o==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 o=this.compareRange(g);return o==-1||o==0||o==1},d.prototype.isEnd=function(g,o){return this.end.row==g&&this.end.column==o},d.prototype.isStart=function(g,o){return this.start.row==g&&this.start.column==o},d.prototype.setStart=function(g,o){typeof g=="object"?(this.start.column=g.column,this.start.row=g.row):(this.start.row=g,this.start.column=o)},d.prototype.setEnd=function(g,o){typeof g=="object"?(this.end.column=g.column,this.end.row=g.row):(this.end.row=g,this.end.column=o)},d.prototype.inside=function(g,o){return this.compare(g,o)==0?!(this.isEnd(g,o)||this.isStart(g,o)):!1},d.prototype.insideStart=function(g,o){return this.compare(g,o)==0?!this.isEnd(g,o):!1},d.prototype.insideEnd=function(g,o){return this.compare(g,o)==0?!this.isStart(g,o):!1},d.prototype.compare=function(g,o){return!this.isMultiLine()&&g===this.start.row?o<this.start.column?-1:o>this.end.column?1:0:g<this.start.row?-1:g>this.end.row?1:this.start.row===g?o>=this.start.column?0:-1:this.end.row===g?o<=this.end.column?0:1:0},d.prototype.compareStart=function(g,o){return this.start.row==g&&this.start.column==o?-1:this.compare(g,o)},d.prototype.compareEnd=function(g,o){return this.end.row==g&&this.end.column==o?1:this.compare(g,o)},d.prototype.compareInside=function(g,o){return this.end.row==g&&this.end.column==o?1:this.start.row==g&&this.start.column==o?-1:this.compare(g,o)},d.prototype.clipRows=function(g,o){if(this.end.row>o)var p={row:o+1,column:0};else if(this.end.row<g)var p={row:g,column:0};if(this.start.row>o)var i={row:o+1,column:0};else if(this.start.row<g)var i={row:g,column:0};return d.fromPoints(i||this.start,p||this.end)},d.prototype.extend=function(g,o){var p=this.compare(g,o);if(p==0)return this;if(p==-1)var i={row:g,column:o};else var s={row:g,column:o};return d.fromPoints(i||this.start,s||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 o=g.documentToScreenPosition(this.start),p=g.documentToScreenPosition(this.end);return new d(o.row,o.column,p.row,p.column)},d.prototype.moveBy=function(g,o){this.start.row+=g,this.start.column+=o,this.end.row+=g,this.end.column+=o},d}();l.fromPoints=function(d,g){return new l(d.row,d.column,g.row,g.column)},l.comparePoints=function(d,g){return d.row-g.row||d.column-g.column},r.Range=l}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(n,r,a){for(var l=n("./oop"),d={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","-13":"NumpadEnter",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",59:";",61:"=",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}},g={Command:224,Backspace:8,Tab:9,Return:13,Enter:13,Pause:19,Escape:27,PageUp:33,PageDown:34,End:35,Home:36,Insert:45,Delete:46,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Backquote:192,Minus:189,Equal:187,BracketLeft:219,Backslash:220,BracketRight:221,Semicolon:186,Quote:222,Comma:188,Period:190,Slash:191,Space:32,NumpadAdd:107,NumpadDecimal:110,NumpadSubtract:109,NumpadDivide:111,NumpadMultiply:106},o=0;o<10;o++)g["Digit"+o]=48+o,g["Numpad"+o]=96+o,d.PRINTABLE_KEYS[48+o]=""+o,d.FUNCTION_KEYS[96+o]="Numpad"+o;for(var o=65;o<91;o++){var p=String.fromCharCode(o+32);g["Key"+p.toUpperCase()]=o,d.PRINTABLE_KEYS[o]=p}for(var o=1;o<13;o++)g["F"+o]=111+o,d.FUNCTION_KEYS[111+o]="F"+o;var i={Shift:16,Control:17,Alt:18,Meta:224};for(var s in i)g[s]=g[s+"Left"]=g[s+"Right"]=i[s];r.$codeToKeyCode=g,d.PRINTABLE_KEYS[173]="-";for(var c in d.FUNCTION_KEYS){var u=d.FUNCTION_KEYS[c].toLowerCase();d[u]=parseInt(c,10)}for(var c in d.PRINTABLE_KEYS){var u=d.PRINTABLE_KEYS[c].toLowerCase();d[u]=parseInt(c,10)}l.mixin(d,d.MODIFIER_KEYS),l.mixin(d,d.PRINTABLE_KEYS),l.mixin(d,d.FUNCTION_KEYS),d.enter=d.return,d.escape=d.esc,d.del=d.delete,function(){for(var h=["cmd","ctrl","alt","shift"],f=Math.pow(2,h.length);f--;)d.KEY_MODS[f]=h.filter(function(m){return f&d.KEY_MODS[m]}).join("-")+"-"}(),d.KEY_MODS[0]="",d.KEY_MODS[-1]="input-",l.mixin(r,d),r.default=r,r.keyCodeToString=function(h){var f=d[h];return typeof f!="string"&&(f=String.fromCharCode(h)),f.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(n,r,a){var l=n("./keys"),d=n("./useragent"),g=null,o=0,p;function i(){p=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return p={passive:!1},!0}})}catch{}}function s(){return p==null&&i(),p}function c(x,_,S){this.elem=x,this.type=_,this.callback=S}c.prototype.destroy=function(){h(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var u=r.addListener=function(x,_,S,b){x.addEventListener(_,S,s()),b&&b.$toDestroy.push(new c(x,_,S))},h=r.removeListener=function(x,_,S){x.removeEventListener(_,S,s())};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,_,S){var b=x&&x.ownerDocument||document;function A(L){_&&_(L),S&&S(L),h(b,"mousemove",_),h(b,"mouseup",A),h(b,"dragstart",A)}return u(b,"mousemove",_),u(b,"mouseup",A),u(b,"dragstart",A),A},r.addMouseWheelListener=function(x,_,S){u(x,"wheel",function(b){var A=.15,L=b.deltaX||0,E=b.deltaY||0;switch(b.deltaMode){case b.DOM_DELTA_PIXEL:b.wheelX=L*A,b.wheelY=E*A;break;case b.DOM_DELTA_LINE:var M=15;b.wheelX=L*M,b.wheelY=E*M;break;case b.DOM_DELTA_PAGE:var C=150;b.wheelX=L*C,b.wheelY=E*C;break}_(b)},S)},r.addMultiMouseDownListener=function(x,_,S,b,A){var L=0,E,M,C,R={2:"dblclick",3:"tripleclick",4:"quadclick"};function $(w){if(r.getButton(w)!==0?L=0:w.detail>1?(L++,L>4&&(L=1)):L=1,d.isIE){var k=Math.abs(w.clientX-E)>5||Math.abs(w.clientY-M)>5;(!C||k)&&(L=1),C&&clearTimeout(C),C=setTimeout(function(){C=null},_[L-1]||600),L==1&&(E=w.clientX,M=w.clientY)}if(w._clicks=L,S[b]("mousedown",w),L>4)L=0;else if(L>1)return S[b](R[L],w)}Array.isArray(x)||(x=[x]),x.forEach(function(w){u(w,"mousedown",$,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 l.KEY_MODS[f(x)]};function m(x,_,S){var b=f(_);if(!S&&_.code&&(S=l.$codeToKeyCode[_.code]||S),!d.isMac&&g){if(_.getModifierState&&(_.getModifierState("OS")||_.getModifierState("Win"))&&(b|=8),g.altGr)if((3&b)!=3)g.altGr=0;else return;if(S===18||S===17){var A=_.location;if(S===17&&A===1)g[S]==1&&(o=_.timeStamp);else if(S===18&&b===3&&A===2){var L=_.timeStamp-o;L<50&&(g.altGr=!0)}}}if(S in l.MODIFIER_KEYS&&(S=-1),!(!b&&S===13&&_.location===3&&(x(_,b,-S),_.defaultPrevented))){if(d.isChromeOS&&b&8){if(x(_,b,S),_.defaultPrevented)return;b&=-9}return!b&&!(S in l.FUNCTION_KEYS)&&!(S in l.PRINTABLE_KEYS)?!1:x(_,b,S)}}r.addCommandKeyListener=function(x,_,S){var b=null;u(x,"keydown",function(A){g[A.keyCode]=(g[A.keyCode]||0)+1;var L=m(_,A,A.keyCode);return b=A.defaultPrevented,L},S),u(x,"keypress",function(A){b&&(A.ctrlKey||A.altKey||A.shiftKey||A.metaKey)&&(r.stopEvent(A),b=null)},S),u(x,"keyup",function(A){g[A.keyCode]=null},S),g||(v(),u(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 S="zero-timeout-message-"+y++,b=function(A){A.data==S&&(r.stopPropagation(A),h(_,"message",b),x())};u(_,"message",b),_.postMessage(S,"*")}}r.$idleBlocked=!1,r.onIdle=function(x,_){return setTimeout(function S(){r.$idleBlocked?setTimeout(S,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,a){var l;a.exports={lineMode:!1,pasteCancelled:function(){return l&&l>Date.now()-50?!0:l=!1},cancel:function(){l=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,a){var l=n("../lib/event"),d=n("../config").nls,g=n("../lib/useragent"),o=n("../lib/dom"),p=n("../lib/lang"),i=n("../clipboard"),s=g.isChrome<18,c=g.isIE,u=g.isChrome>63,h=400,f=n("../lib/keys"),m=f.KEY_MODS,v=g.isIOS,y=v?/\s/:/\n/,x=g.isMobile,_;_=function(S,b){var A=o.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",S.insertBefore(A,S.firstChild);var L=!1,E=!1,M=!1,C=!1,R="";x||(A.style.fontSize="1px");var $=!1,w=!1,k="",T=0,O=0,I=0,N=Number.MAX_SAFE_INTEGER,D=Number.MIN_SAFE_INTEGER,B=0;try{var j=document.activeElement===A}catch{}this.setNumberOfExtraLines=function(X){if(N=Number.MAX_SAFE_INTEGER,D=Number.MIN_SAFE_INTEGER,X<0){B=0;return}B=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"));var se="";if(b.$textInputAriaLabel&&(se+="".concat(b.$textInputAriaLabel,", ")),b.session){var fe=b.session.selection.cursor.row;se+=d("text-input.aria-label","Cursor at row $0",[fe+1])}A.setAttribute("aria-label",se)}},this.setAriaOptions({role:"textbox"}),l.addListener(A,"blur",function(X){w||(b.onBlur(X),j=!1)},b),l.addListener(A,"focus",function(X){if(!w){if(j=!0,g.isEdge)try{if(!document.hasFocus())return}catch{}b.onFocus(X),g.isEdge?setTimeout(H):H()}},b),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:b.renderer.enableKeyboardAccessibility}),R||u||this.$focusScroll=="browser")return A.focus({preventScroll:!0});var X=A.style.top;A.style.position="fixed",A.style.top="0px";try{var se=A.getBoundingClientRect().top!=0}catch{return}var fe=[];if(se)for(var we=A.parentElement;we&&we.nodeType==1;)fe.push(we),we.setAttribute("ace_nocontext","true"),!we.parentElement&&we.getRootNode?we=we.getRootNode().host:we=we.parentElement;A.focus({preventScroll:!0}),se&&fe.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 j},b.on("beforeEndOperation",function(){var X=b.curOp,se=X&&X.command&&X.command.name;if(se!="insertstring"){var fe=se&&(X.docChanged||X.selectionChanged);M&&fe&&(k=A.value="",ce()),H()}});var U=function(X,se){for(var fe=se,we=1;we<=X-N&&we<2*B+1;we++)fe+=b.session.getLine(X-we).length+1;return fe},H=v?function(X){if(!(!j||L&&!X||C)){X||(X="");var se=`
971
+ ab`+X+`cde fg
972
+ `;se!=A.value&&(A.value=k=se);var fe=4,we=4+(X.length||(b.selection.isEmpty()?0:1));(T!=fe||O!=we)&&A.setSelectionRange(fe,we),T=fe,O=we}}:function(){if(!(M||C)&&!(!j&&!Z)){M=!0;var X=0,se=0,fe="";if(b.session){var we=b.selection,Me=we.getRange(),He=we.cursor.row;He===D+1?(N=D+1,D=N+2*B):He===N-1?(D=N-1,N=D-2*B):(He<N-1||He>D+1)&&(N=He>B?He-B:0,D=He>B?He+B:2*B);for(var qe=[],et=N;et<=D;et++)qe.push(b.session.getLine(et));if(fe=qe.join(`
973
+ `),X=U(Me.start.row,Me.start.column),se=U(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,se+=Ke.length+1,fe=Ke+`
974
+ `+fe}else if(Me.end.row>D){var Ve=b.session.getLine(D+1);se=Me.end.row>D+1?Ve.length:Me.end.column,se+=fe.length+1,fe=fe+`
975
+ `+Ve}else x&&He>0&&(fe=`
976
+ `+fe,se+=1,X+=1);fe.length>h&&(X<h&&se<h?fe=fe.slice(0,h):(fe=`
977
+ `,X==se?X=se=0:(X=0,se=1)));var Xe=fe+`
978
+
979
+ `;Xe!=k&&(A.value=k=Xe,T=O=Xe.length)}if(Z&&(T=A.selectionStart,O=A.selectionEnd),O!=se||T!=X||A.selectionEnd!=O)try{A.setSelectionRange(X,se),T=X,O=se}catch{}M=!1}};this.resetSelection=H,j&&b.onFocus();var V=function(X){return X.selectionStart===0&&X.selectionEnd>=k.length&&X.value===k&&k&&X.selectionEnd!==O},q=function(X){M||(L?L=!1:V(A)?(b.selectAll(),H()):x&&A.selectionStart!=T&&H())},z=null;this.setInputHandler=function(X){z=X},this.getInputHandler=function(){return z};var Z=!1,Y=function(X,se){if(Z&&(Z=!1),E)return H(),X&&b.onPaste(X),E=!1,"";for(var fe=A.selectionStart,we=A.selectionEnd,Me=T,He=k.length-O,qe=X,et=X.length-fe,Ke=X.length-we,Ve=0;Me>0&&k[Ve]==X[Ve];)Ve++,Me--;for(qe=qe.slice(Ve),Ve=1;He>0&&k.length-Ve>T-1&&k[k.length-Ve]==X[X.length-Ve];)Ve++,He--;et-=Ve-1,Ke-=Ve-1;var Xe=qe.length-Ve+1;if(Xe<0&&(Me=-Xe,Xe=0),qe=qe.slice(0,Xe),!se&&!qe&&!et&&!Me&&!He&&!Ke)return"";C=!0;var bt=!1;return g.isAndroid&&qe==". "&&(qe=" ",bt=!0),qe&&!Me&&!He&&!et&&!Ke||$?b.onTextInput(qe):b.onTextInput(qe,{extendLeft:Me,extendRight:He,restoreStart:et,restoreEnd:Ke}),C=!1,k=X,T=fe,O=we,I=Ke,bt?`
980
+ `:qe},Q=function(X){if(M)return ee();if(X&&X.inputType){if(X.inputType=="historyUndo")return b.execCommand("undo");if(X.inputType=="historyRedo")return b.execCommand("redo")}var se=A.value,fe=Y(se,!0);(se.length>h+100||y.test(fe)||x&&T<1&&T==O)&&H()},he=function(X,se,fe){var we=X.clipboardData||window.clipboardData;if(!(!we||s)){var Me=c||fe?"Text":"text/plain";try{return se?we.setData(Me,se)!==!1:we.getData(Me)}catch(He){if(!fe)return he(He,se,!0)}}},Ce=function(X,se){var fe=b.getCopyText();if(!fe)return l.preventDefault(X);he(X,fe)?(v&&(H(fe),L=fe,setTimeout(function(){L=!1},10)),se?b.onCut():b.onCopy(),l.preventDefault(X)):(L=!0,A.value=fe,A.select(),setTimeout(function(){L=!1,H(),se?b.onCut():b.onCopy()}))},P=function(X){Ce(X,!0)},W=function(X){Ce(X,!1)},K=function(X){var se=he(X);i.pasteCancelled()||(typeof se=="string"?(se&&b.onPaste(se,X),g.isIE&&setTimeout(H),l.preventDefault(X)):(A.value="",E=!0))};l.addCommandKeyListener(A,function(X,se,fe){if(!M)return b.onCommandKey(X,se,fe)},b),l.addListener(A,"select",q,b),l.addListener(A,"input",Q,b),l.addListener(A,"cut",P,b),l.addListener(A,"copy",W,b),l.addListener(A,"paste",K,b),(!("oncut"in A)||!("oncopy"in A)||!("onpaste"in A))&&l.addListener(S,"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:P(X);break}},b);var te=function(X){if(!(M||!b.onCompositionStart||b.$readOnly)&&(M={},!$)){X.data&&(M.useTextareaForIME=!1),setTimeout(ee,0),b._signal("compositionStart"),b.on("mousedown",pe);var se=b.getSelectionRange();se.end.row=se.start.row,se.end.column=se.start.column,M.markerRange=se,M.selectionStart=T,b.onCompositionStart(M),M.useTextareaForIME?(k=A.value="",T=0,O=0):(A.msGetInputContext&&(M.context=A.msGetInputContext()),A.getInputContext&&(M.context=A.getInputContext()))}},ee=function(){if(!(!M||!b.onCompositionUpdate||b.$readOnly)){if($)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)}}},ce=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 ue=p.delayedCall(ee,50).schedule.bind(null,null);function de(X){X.keyCode==27&&A.value.length<A.selectionStart&&(M||(k=A.value),T=O=-1,H()),ue()}l.addListener(A,"compositionstart",te,b),l.addListener(A,"compositionupdate",ee,b),l.addListener(A,"keyup",de,b),l.addListener(A,"keydown",ue,b),l.addListener(A,"compositionend",ce,b),this.getElement=function(){return A},this.setCommandMode=function(X){$=X,A.readOnly=!1},this.setReadOnly=function(X){$||(A.readOnly=X)},this.setCopyWithEmptySelection=function(X){},this.onContextMenu=function(X){Z=!0,H(),b._emit("nativecontextmenu",{target:b,domEvent:X}),this.moveToMouse(X,!0)},this.moveToMouse=function(X,se){R||(R=A.style.cssText),A.style.cssText=(se?"z-index:100000;":"")+(g.isIE?"opacity:0.1;":"")+"text-indent: -"+(T+O)*b.renderer.characterWidth*.5+"px;";var fe=b.container.getBoundingClientRect(),we=o.computedStyle(b.container),Me=fe.top+(parseInt(we.borderTopWidth)||0),He=fe.left+(parseInt(fe.borderLeftWidth)||0),qe=fe.bottom-Me-A.clientHeight-2,et=function(Ke){o.translate(A,Ke.clientX-He-2,Math.min(Ke.clientY-Me-2,qe))};et(X),X.type=="mousedown"&&(b.renderer.$isMousePressed=!0,clearTimeout(ie),g.isWin&&l.capture(b.container,et,ve))},this.onContextMenuClose=ve;var ie;function ve(){clearTimeout(ie),ie=setTimeout(function(){R&&(A.style.cssText=R,R=""),b.renderer.$isMousePressed=!1,b.renderer.$keepTextAreaAtCursor&&b.renderer.$moveTextAreaToCursor()},0)}var ke=function(X){b.textInput.onContextMenu(X),ve()};l.addListener(A,"mouseup",ke,b),l.addListener(A,"mousedown",function(X){X.preventDefault(),ve()},b),l.addListener(b.renderer.scroller,"contextmenu",ke,b),l.addListener(A,"contextmenu",ke,b),v&&Ee(S,b,A);function Ee(X,se,fe){var we=null,Me=!1;fe.addEventListener("keydown",function(qe){we&&clearTimeout(we),Me=!0},!0),fe.addEventListener("keyup",function(qe){we=setTimeout(function(){Me=!1},100)},!0);var He=function(qe){if(document.activeElement===fe&&!(Me||M||se.$mouseHandler.isMousePressed)&&!L){var et=fe.selectionStart,Ke=fe.selectionEnd,Ve=null,Xe=0;if(et==0?Ve=f.up:et==1?Ve=f.home:Ke>O&&k[Ke]==`
981
+ `?Ve=f.end:et<T&&k[et-1]==" "?(Ve=f.left,Xe=m.option):et<T||et==T&&O!=T&&et==Ke?Ve=f.left:Ke>O&&k.slice(0,Ke).split(`
982
+ `).length>2?Ve=f.down:Ke>O&&k[Ke-1]==" "?(Ve=f.right,Xe=m.option):(Ke>O||Ke==O&&O!=T&&et==Ke)&&(Ve=f.right),et!==Ke&&(Xe|=m.shift),Ve){var bt=se.onCommandKey({},Xe,Ve);if(!bt&&se.commands){Ve=f.keyCodeToString(Ve);var Pr=se.commands.findKeyCommand(Xe,Ve);Pr&&se.execCommand(Pr)}T=et,O=Ke,H("")}}};document.addEventListener("selectionchange",He),se.on("destroy",function(){document.removeEventListener("selectionchange",He)})}this.destroy=function(){A.parentElement&&A.parentElement.removeChild(A)}},r.TextInput=_,r.$setUserAgentForTests=function(S,b){x=S,v=b}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(n,r,a){var l=n("../lib/useragent"),d=0,g=550,o=function(){function s(c){c.$clickSelection=null;var u=c.editor;u.setDefaultHandler("mousedown",this.onMouseDown.bind(c)),u.setDefaultHandler("dblclick",this.onDoubleClick.bind(c)),u.setDefaultHandler("tripleclick",this.onTripleClick.bind(c)),u.setDefaultHandler("quadclick",this.onQuadClick.bind(c)),u.setDefaultHandler("mousewheel",this.onMouseWheel.bind(c));var h=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];h.forEach(function(f){c[f]=this[f]},this),c.selectByLines=this.extendSelectionBy.bind(c,"getLineRange"),c.selectByWords=this.extendSelectionBy.bind(c,"getWordRange")}return s.prototype.onMouseDown=function(c){var u=c.inSelection(),h=c.getDocumentPosition();this.mousedownEvent=c;var f=this.editor,m=c.getButton();if(m!==0){var v=f.getSelectionRange(),y=v.isEmpty();(y||m==1)&&f.selection.moveToPosition(h),m==2&&(f.textInput.onContextMenu(c.domEvent),l.isMozilla||c.preventDefault());return}if(this.mousedownEvent.time=Date.now(),u&&!f.isFocused()&&(f.focus(),this.$focusTimeout&&!this.$clickSelection&&!f.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(c);return}return this.captureMouse(c),this.startSelect(h,c.domEvent._clicks>1),c.preventDefault()},s.prototype.startSelect=function(c,u){c=c||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var h=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?h.selection.selectToPosition(c):u||h.selection.moveToPosition(c),u||this.select(),h.setStyle("ace_selecting"),this.setState("select"))},s.prototype.select=function(){var c,u=this.editor,h=u.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var f=this.$clickSelection.comparePoint(h);if(f==-1)c=this.$clickSelection.end;else if(f==1)c=this.$clickSelection.start;else{var m=i(this.$clickSelection,h);h=m.cursor,c=m.anchor}u.selection.setSelectionAnchor(c.row,c.column)}u.selection.selectToPosition(h),u.renderer.scrollCursorIntoView()},s.prototype.extendSelectionBy=function(c){var u,h=this.editor,f=h.renderer.screenToTextCoordinates(this.x,this.y),m=h.selection[c](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)u=this.$clickSelection.end,(m.end.row!=f.row||m.end.column!=f.column)&&(f=m.start);else if(y==1&&v>=0)u=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,u=m.start;else{var x=i(this.$clickSelection,f);f=x.cursor,u=x.anchor}h.selection.setSelectionAnchor(u.row,u.column)}h.selection.selectToPosition(f),h.renderer.scrollCursorIntoView()},s.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},s.prototype.focusWait=function(){var c=p(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),u=Date.now();(c>d||u-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},s.prototype.onDoubleClick=function(c){var u=c.getDocumentPosition(),h=this.editor,f=h.session,m=f.getBracketRange(u);m?(m.isEmpty()&&(m.start.column--,m.end.column++),this.setState("select")):(m=h.selection.getWordRange(u.row,u.column),this.setState("selectByWords")),this.$clickSelection=m,this.select()},s.prototype.onTripleClick=function(c){var u=c.getDocumentPosition(),h=this.editor;this.setState("selectByLines");var f=h.getSelectionRange();f.isMultiLine()&&f.contains(u.row,u.column)?(this.$clickSelection=h.selection.getLineRange(f.start.row),this.$clickSelection.end=h.selection.getLineRange(f.end.row).end):this.$clickSelection=h.selection.getLineRange(u.row),this.select()},s.prototype.onQuadClick=function(c){var u=this.editor;u.selectAll(),this.$clickSelection=u.getSelectionRange(),this.setState("selectAll")},s.prototype.onMouseWheel=function(c){if(!c.getAccelKey()){c.getShiftKey()&&c.wheelY&&!c.wheelX&&(c.wheelX=c.wheelY,c.wheelY=0);var u=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var h=this.$lastScroll,f=c.domEvent.timeStamp,m=f-h.t,v=m?c.wheelX/m:h.vx,y=m?c.wheelY/m:h.vy;m<g&&(v=(v+h.vx)/2,y=(y+h.vy)/2);var x=Math.abs(v/y),_=!1;if(x>=1&&u.renderer.isScrollableBy(c.wheelX*c.speed,0)&&(_=!0),x<=1&&u.renderer.isScrollableBy(0,c.wheelY*c.speed)&&(_=!0),_)h.allowed=f;else if(f-h.allowed<g){var S=Math.abs(v)<=1.5*Math.abs(h.vx)&&Math.abs(y)<=1.5*Math.abs(h.vy);S?(_=!0,h.allowed=f):h.allowed=0}if(h.t=f,h.vx=v,h.vy=y,_)return u.renderer.scrollBy(c.wheelX*c.speed,c.wheelY*c.speed),c.stop()}},s}();o.prototype.selectEnd=o.prototype.selectByLinesEnd,o.prototype.selectAllEnd=o.prototype.selectByLinesEnd,o.prototype.selectByWordsEnd=o.prototype.selectByLinesEnd,r.DefaultHandlers=o;function p(s,c,u,h){return Math.sqrt(Math.pow(u-s,2)+Math.pow(h-c,2))}function i(s,c){if(s.start.row==s.end.row)var u=2*c.column-s.start.column-s.end.column;else if(s.start.row==s.end.row-1&&!s.start.column&&!s.end.column)var u=c.column-4;else var u=2*c.row-s.start.row-s.end.row;return u<0?{cursor:s.start,anchor:s.end}:{cursor:s.end,anchor:s.start}}}),ace.define("ace/lib/scroll",["require","exports","module"],function(n,r,a){r.preventParentScroll=function(d){d.stopPropagation();var g=d.currentTarget,o=g.scrollHeight>g.clientHeight;o||d.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(n,r,a){var l=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 o=n("./range").Range,p=n("./lib/scroll").preventParentScroll,i="ace_tooltip",s=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=i,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=i+" "+(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=i,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}(),c=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,$){return $.priority-R.priority});var _=[];try{for(var S=d(this.popups),b=S.next();!b.done;b=S.next()){var A=b.value,L=!0;try{for(var E=(y=void 0,d(_)),M=E.next();!M.done;M=E.next()){var C=M.value;if(this.doPopupsOverlap(C,A)){L=!1;break}}}catch(R){y={error:R}}finally{try{M&&!M.done&&(x=E.return)&&x.call(E)}finally{if(y)throw y.error}}L?_.push(A):A.hide()}}catch(R){m={error:R}}finally{try{b&&!b.done&&(v=S.return)&&v.call(S)}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}(),u=new c;r.popupManager=u,r.Tooltip=s;var h=function(f){l(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 S=y.renderer.pixelToScreenCoordinates(v.clientX,v.clientY),b=y.session.documentToScreenPosition(x.row,x.column);if(b.column!=S.column||b.row!=S.row)return!0}return!1},m.prototype.setDataProvider=function(v){this.$gatherData=v},m.prototype.showForRange=function(v,y,x,_){var S=10;if(!(_&&_!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var b=v.renderer;this.isOpen||(u.addPopup(this),this.$registerCloseEvents(),this.setTheme(b.theme)),this.isOpen=!0,this.addMarker(y,v.session),this.range=o.fromPoints(y.start,y.end);var A=b.textToScreenCoordinates(y.start.row,y.start.column),L=b.scroller.getBoundingClientRect();A.pageX<L.left&&(A.pageX=L.left);var E=this.getElement();E.innerHTML="",E.appendChild(x),E.style.maxHeight="",E.style.display="block";var M=E.clientHeight,C=E.clientWidth,R=window.innerHeight-A.pageY-b.lineHeight,$=!0;A.pageY-M<0&&A.pageY<R&&($=!1),E.style.maxHeight=($?A.pageY:R)-S+"px",E.style.top=$?"":A.pageY+b.lineHeight+"px",E.style.bottom=$?window.innerHeight-A.pageY+"px":"",E.style.left=Math.min(A.pageX,window.innerWidth-C-S)+"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,u.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}(s);r.HoverTooltip=h}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config","ace/lib/lang"],function(n,r,a){var l=this&&this.__extends||function(){var u=function(h,f){return u=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])},u(h,f)};return function(h,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");u(h,f);function m(){this.constructor=h}h.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}}(),d=this&&this.__values||function(u){var h=typeof Symbol=="function"&&Symbol.iterator,f=h&&u[h],m=0;if(f)return f.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&m>=u.length&&(u=void 0),{value:u&&u[m++],done:!u}}};throw new TypeError(h?"Object is not iterable.":"Symbol.iterator is not defined.")},g=n("../lib/dom"),o=n("../lib/event"),p=n("../tooltip").Tooltip,i=n("../config").nls;n("../lib/lang");function s(u){var h=u.editor,f=h.renderer.$gutterLayer,m=new c(h);u.editor.setDefaultHandler("guttermousedown",function(b){if(!(!h.isFocused()||b.getButton()!=0)){var A=f.getRegion(b);if(A!="foldWidgets"){var L=b.getDocumentPosition().row,E=h.session.selection;if(b.getShiftKey())E.selectTo(L,0);else{if(b.domEvent.detail==2)return h.selectAll(),b.preventDefault();u.$clickSelection=h.selection.getLineRange(L)}return u.setState("selectByLines"),u.captureMouse(b),b.preventDefault()}}});var v,y;function x(){var b=y.getDocumentPosition().row,A=h.session.getLength();if(b==A){var L=h.renderer.pixelToScreenCoordinates(0,y.y).row,E=y.$pos;if(L>h.session.documentToScreenRow(E.row,E.column))return _()}if(m.showTooltip(b),!!m.isOpen)if(h.on("mousewheel",_),u.$tooltipFollowsMouse)S(y);else{var M=y.getGutterRow(),C=f.$lines.get(M);if(C){var R=C.element.querySelector(".ace_gutter_annotation"),$=R.getBoundingClientRect(),w=m.getElement().style;w.left=$.right+"px",w.top=$.bottom+"px"}else S(y)}}function _(){v&&(v=clearTimeout(v)),m.isOpen&&(m.hideTooltip(),h.off("mousewheel",_))}function S(b){m.setPosition(b.x,b.y)}u.editor.setDefaultHandler("guttermousemove",function(b){var A=b.domEvent.target||b.domEvent.srcElement;if(g.hasCssClass(A,"ace_fold-widget"))return _();m.isOpen&&u.$tooltipFollowsMouse&&S(b),y=b,!v&&(v=setTimeout(function(){v=null,y&&!u.isMousePressed?x():_()},50))}),o.addListener(h.renderer.$gutter,"mouseout",function(b){y=null,!(!m.isOpen||v)&&(v=setTimeout(function(){v=null,_()},50))},h),h.on("changeSession",_),h.on("input",_)}r.GutterHandler=s;var c=function(u){l(h,u);function h(f){var m=u.call(this,f.container)||this;return m.editor=f,m}return h.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(h,"annotationLabels",{get:function(){return{error:{singular:i("gutter-tooltip.aria-label.error.singular","error"),plural:i("gutter-tooltip.aria-label.error.plural","errors")},warning:{singular:i("gutter-tooltip.aria-label.warning.singular","warning"),plural:i("gutter-tooltip.aria-label.warning.plural","warnings")},info:{singular:i("gutter-tooltip.aria-label.info.singular","information message"),plural:i("gutter-tooltip.aria-label.info.plural","information messages")}}},enumerable:!1,configurable:!0}),h.prototype.showTooltip=function(f){var m,v=this.editor.renderer.$gutterLayer,y=v.$annotations[f],x;y?x={displayText:Array.from(y.displayText),type:Array.from(y.type)}:x={displayText:[],type:[]};var _=v.session.getFoldLine(f);if(_&&v.$showFoldedAnnotations){for(var S={error:[],warning:[],info:[]},b,A=f+1;A<=_.end.row;A++)if(v.$annotations[A])for(var L=0;L<v.$annotations[A].text.length;L++){var E=v.$annotations[A].type[L];if(S[E].push(v.$annotations[A].text[L]),E==="error"){b="error_fold";continue}if(E==="warning"){b="warning_fold";continue}}if(b==="error_fold"||b==="warning_fold"){var M="".concat(h.annotationsToSummaryString(S)," in folded code.");x.displayText.push(M),x.type.push(b)}}if(x.displayText.length===0)return this.hide();for(var C={error:[],warning:[],info:[]},R=v.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",A=0;A<x.displayText.length;A++){var $=g.createElement("span"),w=g.createElement("span");(m=w.classList).add.apply(m,["ace_".concat(x.type[A]),R]),w.setAttribute("aria-label","".concat(h.annotationLabels[x.type[A].replace("_fold","")].singular)),w.setAttribute("role","img"),w.appendChild(g.createTextNode(" ")),$.appendChild(w),$.appendChild(g.createTextNode(x.displayText[A])),$.appendChild(g.createElement("br")),C[x.type[A].replace("_fold","")].push($)}var k=this.getElement();g.removeChildren(k),C.error.forEach(function(T){return k.appendChild(T)}),C.warning.forEach(function(T){return k.appendChild(T)}),C.info.forEach(function(T){return k.appendChild(T)}),k.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip")),this.show(),this.editor._signal("showGutterTooltip",this)},h.prototype.hideTooltip=function(){this.$element.removeAttribute("aria-live"),this.hide(),this.editor._signal("hideGutterTooltip",this)},h.annotationsToSummaryString=function(f){var m,v,y=[],x=["error","warning","info"];try{for(var _=d(x),S=_.next();!S.done;S=_.next()){var b=S.value;if(f[b].length){var A=f[b].length===1?h.annotationLabels[b].singular:h.annotationLabels[b].plural;y.push("".concat(f[b].length," ").concat(A))}}}catch(L){m={error:L}}finally{try{S&&!S.done&&(v=_.return)&&v.call(_)}finally{if(m)throw m.error}}return y.join(", ")},h}(p);r.GutterTooltip=c}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(n,r,a){var l=n("../lib/event"),d=n("../lib/useragent"),g=function(){function o(p,i){this.speed,this.wheelX,this.wheelY,this.domEvent=p,this.editor=i,this.x=this.clientX=p.clientX,this.y=this.clientY=p.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return o.prototype.stopPropagation=function(){l.stopPropagation(this.domEvent),this.propagationStopped=!0},o.prototype.preventDefault=function(){l.preventDefault(this.domEvent),this.defaultPrevented=!0},o.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},o.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},o.prototype.getGutterRow=function(){var p=this.getDocumentPosition().row,i=this.editor.session.documentToScreenRow(p,0),s=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return i-s},o.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var p=this.editor,i=p.getSelectionRange();if(i.isEmpty())this.$inSelection=!1;else{var s=this.getDocumentPosition();this.$inSelection=i.contains(s.row,s.column)}return this.$inSelection},o.prototype.getButton=function(){return l.getButton(this.domEvent)},o.prototype.getShiftKey=function(){return this.domEvent.shiftKey},o.prototype.getAccelKey=function(){return d.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},o}();r.MouseEvent=g}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(n,r,a){var l=n("../lib/dom"),d=n("../lib/event"),g=n("../lib/useragent"),o=200,p=200,i=5;function s(u){var h=u.editor,f=l.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(U){u[U]=this[U]},this),h.on("mousedown",this.onMouseDown.bind(u));var v=h.container,y,x,_,S,b,A,L=0,E,M,C,R,$;this.onDragStart=function(U){if(this.cancelDrag||!v.draggable){var H=this;return setTimeout(function(){H.startSelect(),H.captureMouse(U)},0),U.preventDefault()}b=h.getSelectionRange();var V=U.dataTransfer;V.effectAllowed=h.getReadOnly()?"copy":"copyMove",h.container.appendChild(f),V.setDragImage&&V.setDragImage(f,0,0),setTimeout(function(){h.container.removeChild(f)}),V.clearData(),V.setData("Text",h.session.getTextRange()),M=!0,this.setState("drag")},this.onDragEnd=function(U){if(v.draggable=!1,M=!1,this.setState(null),!h.getReadOnly()){var H=U.dataTransfer.dropEffect;!E&&H=="move"&&h.session.remove(h.getSelectionRange()),h.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(U){if(!(h.getReadOnly()||!B(U.dataTransfer)))return x=U.clientX,_=U.clientY,y||O(),L++,U.dataTransfer.dropEffect=E=j(U),d.preventDefault(U)},this.onDragOver=function(U){if(!(h.getReadOnly()||!B(U.dataTransfer)))return x=U.clientX,_=U.clientY,y||(O(),L++),N!==null&&(N=null),U.dataTransfer.dropEffect=E=j(U),d.preventDefault(U)},this.onDragLeave=function(U){if(L--,L<=0&&y)return I(),E=null,d.preventDefault(U)},this.onDrop=function(U){if(A){var H=U.dataTransfer;if(M)switch(E){case"move":b.contains(A.row,A.column)?b={start:A,end:A}:b=h.moveText(b,A);break;case"copy":b=h.moveText(b,A,!0);break}else{var V=H.getData("Text");b={start:A,end:h.session.insert(A,V)},h.focus(),E=null}return I(),d.preventDefault(U)}},d.addListener(v,"dragstart",this.onDragStart.bind(u),h),d.addListener(v,"dragend",this.onDragEnd.bind(u),h),d.addListener(v,"dragenter",this.onDragEnter.bind(u),h),d.addListener(v,"dragover",this.onDragOver.bind(u),h),d.addListener(v,"dragleave",this.onDragLeave.bind(u),h),d.addListener(v,"drop",this.onDrop.bind(u),h);function w(U,H){var V=Date.now(),q=!H||U.row!=H.row,z=!H||U.column!=H.column;if(!R||q||z)h.moveCursorToPosition(U),R=V,$={x,y:_};else{var Z=c($.x,$.y,x,_);Z>i?R=null:V-R>=p&&(h.renderer.scrollCursorIntoView(),R=null)}}function k(U,H){var V=Date.now(),q=h.renderer.layerConfig.lineHeight,z=h.renderer.layerConfig.characterWidth,Z=h.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:U.row,column:U.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 P=U.row!=Ce.row,W=U.column!=Ce.column,K=!H||U.row!=H.row;P||W&&!K?C?V-C>=o&&h.renderer.scrollCursorIntoView(Ce):C=V:C=null}function T(){var U=A;A=h.renderer.screenToTextCoordinates(x,_),w(A,U),k(A,U)}function O(){b=h.selection.toOrientedRange(),y=h.session.addMarker(b,"ace_selection",h.getSelectionStyle()),h.clearSelection(),h.isFocused()&&h.renderer.$cursorLayer.setBlinking(!1),clearInterval(S),T(),S=setInterval(T,20),L=0,d.addListener(document,"mousemove",D)}function I(){clearInterval(S),h.session.removeMarker(y),y=null,h.selection.fromOrientedRange(b),h.isFocused()&&!M&&h.$resetCursorStyle(),b=null,A=null,L=0,C=null,R=null,d.removeListener(document,"mousemove",D)}var N=null;function D(){N==null&&(N=setTimeout(function(){N!=null&&y&&I()},20))}function B(U){var H=U.types;return!H||Array.prototype.some.call(H,function(V){return V=="text/plain"||V=="Text"})}function j(U){var H=["copy","copymove","all","uninitialized"],V=["move","copymove","linkmove","all","uninitialized"],q=g.isMac?U.altKey:U.ctrlKey,z="uninitialized";try{z=U.dataTransfer.effectAllowed.toLowerCase()}catch{}var Z="none";return q&&H.indexOf(z)>=0?Z="copy":V.indexOf(z)>=0?Z="move":H.indexOf(z)>=0&&(Z="copy"),Z}}(function(){this.dragWait=function(){var u=Date.now()-this.mousedownEvent.time;u>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var u=this.editor.container;u.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(u){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var u=this.editor,h=u.container;h.draggable=!0,u.renderer.$cursorLayer.setBlinking(!1),u.setStyle("ace_dragging");var f=g.isWin?"default":"move";u.renderer.setCursorStyle(f),this.setState("dragReady")},this.onMouseDrag=function(u){var h=this.editor.container;if(g.isIE&&this.state=="dragReady"){var f=c(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);f>3&&h.dragDrop()}if(this.state==="dragWait"){var f=c(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);f>0&&(h.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(u){if(this.$dragEnabled){this.mousedownEvent=u;var h=this.editor,f=u.inSelection(),m=u.getButton(),v=u.domEvent.detail||1;if(v===1&&m===0&&f){if(u.editor.inMultiSelectMode&&(u.getAccelKey()||u.getShiftKey()))return;this.mousedownEvent.time=Date.now();var y=u.domEvent.target||u.domEvent.srcElement;if("unselectable"in y&&(y.unselectable="on"),h.getDragDelay()){if(g.isWebKit){this.cancelDrag=!0;var x=h.container;x.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(u,this.onMouseDrag.bind(this)),u.defaultPrevented=!0}}}}).call(s.prototype);function c(u,h,f,m){return Math.sqrt(Math.pow(f-u,2)+Math.pow(m-h,2))}r.DragdropHandler=s}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(n,r,a){var l=n("./mouse_event").MouseEvent,d=n("../lib/event"),g=n("../lib/dom");r.addTouchListeners=function(o,p){var i="scroll",s,c,u,h,f,m,v=0,y,x=0,_=0,S=0,b,A;function L(){var w=window.navigator&&window.navigator.clipboard,k=!1,T=function(){var N=p.getCopyText(),D=p.session.getUndoManager().hasUndo();A.replaceChild(g.buildDom(k?["span",!N&&O("selectall")&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],N&&O("copy")&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],N&&O("cut")&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],w&&O("paste")&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],D&&O("undo")&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],O("find")&&["span",{class:"ace_mobile-button",action:"find"},"Find"],O("openCommandPalette")&&["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),A.firstChild)},O=function(N){return p.commands.canExecute(N,p)},I=function(N){var D=N.target.getAttribute("action");if(D=="more"||!k)return k=!k,T();D=="paste"?w.readText().then(function(B){p.execCommand(D,B)}):D&&((D=="cut"||D=="copy")&&(w?w.writeText(p.getCopyText()):document.execCommand("copy")),p.execCommand(D)),A.firstChild.style.display="none",k=!1,D!="openCommandPalette"&&p.focus()};A=g.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(N){i="menu",N.stopPropagation(),N.preventDefault(),p.textInput.focus()},ontouchend:function(N){N.stopPropagation(),N.preventDefault(),I(N)},onclick:I},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],p.container)}function E(){if(!p.getOption("enableMobileMenu")){A&&M();return}A||L();var w=p.selection.cursor,k=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=k.pageY-I.top-3+"px",k.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(),k=w.contains(y.row,y.column);(w.isEmpty()||!k)&&(p.selection.moveToPosition(y),p.selection.selectWord()),i="wait",E()}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(),i="wait"}d.addListener(o,"contextmenu",function(w){if(b){var k=p.textInput.getElement();k.focus()}},p),d.addListener(o,"touchstart",function(w){var k=w.touches;if(f||k.length>1){clearTimeout(f),f=null,u=-1,i="zoom";return}b=p.$mouseHandler.isMousePressed=!0;var T=p.renderer.layerConfig.lineHeight,O=p.renderer.layerConfig.lineHeight,I=w.timeStamp;h=I;var N=k[0],D=N.clientX,B=N.clientY;Math.abs(s-D)+Math.abs(c-B)>T&&(u=-1),s=w.clientX=D,c=w.clientY=B,_=S=0;var j=new l(w,p);if(y=j.getDocumentPosition(),I-u<500&&k.length==1&&!v)x++,w.preventDefault(),w.button=0,R();else{x=0;var U=p.selection.cursor,H=p.selection.isEmpty()?U:p.selection.anchor,V=p.renderer.$cursorLayer.getPixelPosition(U,!0),q=p.renderer.$cursorLayer.getPixelPosition(H,!0),z=p.renderer.scroller.getBoundingClientRect(),Z=p.renderer.layerConfig.offset,Y=p.renderer.scrollLeft,Q=function(P,W){return P=P/O,W=W/T-.75,P*P+W*W};if(w.clientX<z.left){i="zoom";return}var he=Q(w.clientX-z.left-V.left+Y,w.clientY-z.top-V.top+Z),Ce=Q(w.clientX-z.left-q.left+Y,w.clientY-z.top-q.top+Z);he<3.5&&Ce<3.5&&(i=he>Ce?"cursor":"anchor"),Ce<3.5?i="anchor":he<3.5?i="cursor":i="scroll",f=setTimeout(C,450)}u=I},p),d.addListener(o,"touchend",function(w){b=p.$mouseHandler.isMousePressed=!1,m&&clearInterval(m),i=="zoom"?(i="",v=0):f?(p.selection.moveToPosition(y),v=0,E()):i=="scroll"?($(),M()):E(),clearTimeout(f),f=null},p),d.addListener(o,"touchmove",function(w){f&&(clearTimeout(f),f=null);var k=w.touches;if(!(k.length>1||i=="zoom")){var T=k[0],O=s-T.clientX,I=c-T.clientY;if(i=="wait")if(O*O+I*I>4)i="cursor";else return w.preventDefault();s=T.clientX,c=T.clientY,w.clientX=T.clientX,w.clientY=T.clientY;var N=w.timeStamp,D=N-h;if(h=N,i=="scroll"){var B=new l(w,p);B.speed=1,B.wheelX=O,B.wheelY=I,10*Math.abs(O)<Math.abs(I)&&(O=0),10*Math.abs(I)<Math.abs(O)&&(I=0),D!=0&&(_=O/D,S=I/D),p._emit("mousewheel",B),B.propagationStopped||(_=S=0)}else{var j=new l(w,p),U=j.getDocumentPosition();i=="cursor"?p.selection.moveCursorToPosition(U):i=="anchor"&&p.selection.setSelectionAnchor(U.row,U.column),p.renderer.scrollCursorIntoView(U),w.preventDefault()}}},p);function $(){v+=60,m=setInterval(function(){v--<=0&&(clearInterval(m),m=null),Math.abs(_)<.01&&(_=0),Math.abs(S)<.01&&(S=0),v<20&&(_=.9*_),v<20&&(S=.9*S);var w=p.session.getScrollTop();p.renderer.scrollBy(10*_,10*S),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,a){var l=n("../lib/event"),d=n("../lib/useragent"),g=n("./default_handlers").DefaultHandlers,o=n("./default_gutter_handler").GutterHandler,p=n("./mouse_event").MouseEvent,i=n("./dragdrop_handler").DragdropHandler,s=n("./touch_handler").addTouchListeners,c=n("../config"),u=function(){function h(f){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var m=this;this.editor=f,new g(this),new o(this),new i(this);var v=function(_){var S=!document.hasFocus||!document.hasFocus()||!f.isFocused()&&document.activeElement==(f.textInput&&f.textInput.getElement());S&&window.focus(),f.focus(),setTimeout(function(){f.isFocused()||f.focus()})},y=f.renderer.getMouseEventTarget();l.addListener(y,"click",this.onMouseEvent.bind(this,"click"),f),l.addListener(y,"mousemove",this.onMouseMove.bind(this,"mousemove"),f),l.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),l.addMouseWheelListener(f.container,this.onMouseWheel.bind(this,"mousewheel"),f),s(f.container,f);var x=f.renderer.$gutter;l.addListener(x,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),f),l.addListener(x,"click",this.onMouseEvent.bind(this,"gutterclick"),f),l.addListener(x,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),f),l.addListener(x,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),f),l.addListener(y,"mousedown",v,f),l.addListener(x,"mousedown",v,f),d.isIE&&f.renderer.scrollBarV&&(l.addListener(f.renderer.scrollBarV.element,"mousedown",v,f),l.addListener(f.renderer.scrollBarH.element,"mousedown",v,f)),f.on("mousemove",function(_){if(!(m.state||m.$dragDelay||!m.$dragEnabled)){var S=f.renderer.screenToTextCoordinates(_.x,_.y),b=f.session.selection.getRange(),A=f.renderer;!b.isEmpty()&&b.insideStart(S.row,S.column)?A.setCursorStyle("default"):A.setCursorStyle("")}},f)}return h.prototype.onMouseEvent=function(f,m){this.editor.session&&this.editor._emit(f,new p(m,this.editor))},h.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))},h.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)},h.prototype.setState=function(f){this.state=f},h.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(E){if(E){if(d.isWebKit&&!E.which&&x.releaseMouse)return x.releaseMouse();x.x=E.clientX,x.y=E.clientY,m&&m(E),x.mouseEvent=new p(E,x.editor),x.$mouseMoved=!0}},S=function(E){v.off("beforeEndOperation",A),clearInterval(L),v.session&&b(),x[x.state+"End"]&&x[x.state+"End"](E),x.state="",x.isMousePressed=y.$isMousePressed=!1,y.$keepTextAreaAtCursor&&y.$moveTextAreaToCursor(),x.$onCaptureMouseMove=x.releaseMouse=null,E&&x.onMouseEvent("mouseup",E),v.endOperation()},b=function(){x[x.state]&&x[x.state](),x.$mouseMoved=!1};if(d.isOldIE&&f.domEvent.type=="dblclick")return setTimeout(function(){S(f)});var A=function(E){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=l.capture(this.editor.container,_,S);var L=setInterval(b,20)},h.prototype.cancelContextMenu=function(){var f=(function(m){m&&m.domEvent&&m.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",f),m&&m.domEvent&&l.stopEvent(m.domEvent))}).bind(this);setTimeout(f,10),this.editor.on("nativecontextmenu",f)},h.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},h}();u.prototype.releaseMouse=null,c.defineOptions(u.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:d.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),r.MouseHandler=u}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(n,r,a){var l=n("../lib/dom"),d=function(){function g(o){o.on("click",function(p){var i=p.getDocumentPosition(),s=o.session,c=s.getFoldAt(i.row,i.column,1);c&&(p.getAccelKey()?s.removeFold(c):s.expandFold(c),p.stop());var u=p.domEvent&&p.domEvent.target;u&&l.hasCssClass(u,"ace_inline_button")&&l.hasCssClass(u,"ace_toggle_wrap")&&(s.setOption("wrap",!s.getUseWrapMode()),o.renderer.scrollCursorIntoView())}),o.on("gutterclick",function(p){var i=o.renderer.$gutterLayer.getRegion(p);if(i=="foldWidgets"){var s=p.getDocumentPosition().row,c=o.session;c.foldWidgets&&c.foldWidgets[s]&&o.session.onFoldWidgetClick(s,p),o.isFocused()||o.focus(),p.stop()}}),o.on("gutterdblclick",function(p){var i=o.renderer.$gutterLayer.getRegion(p);if(i=="foldWidgets"){var s=p.getDocumentPosition().row,c=o.session,u=c.getParentFoldRangeData(s,!0),h=u.range||u.firstRange;if(h){s=h.start.row;var f=c.getFoldAt(s,c.getLine(s).length,1);f?c.removeFold(f):(c.addFold("...",h),o.renderer.scrollCursorIntoView({row:h.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,a){var l=n("../lib/keys"),d=n("../lib/event"),g=function(){function o(p){this.$editor=p,this.$data={editor:p},this.$handlers=[],this.setDefaultHandler(p.commands)}return o.prototype.setDefaultHandler=function(p){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=p,this.addKeyboardHandler(p,0)},o.prototype.setKeyboardHandler=function(p){var i=this.$handlers;if(i[i.length-1]!=p){for(;i[i.length-1]&&i[i.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(i[i.length-1]);this.addKeyboardHandler(p,1)}},o.prototype.addKeyboardHandler=function(p,i){if(p){typeof p=="function"&&!p.handleKeyboard&&(p.handleKeyboard=p);var s=this.$handlers.indexOf(p);s!=-1&&this.$handlers.splice(s,1),i==null?this.$handlers.push(p):this.$handlers.splice(i,0,p),s==-1&&p.attach&&p.attach(this.$editor)}},o.prototype.removeKeyboardHandler=function(p){var i=this.$handlers.indexOf(p);return i==-1?!1:(this.$handlers.splice(i,1),p.detach&&p.detach(this.$editor),!0)},o.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},o.prototype.getStatusText=function(){var p=this.$data,i=p.editor;return this.$handlers.map(function(s){return s.getStatusText&&s.getStatusText(i,p)||""}).filter(Boolean).join(" ")},o.prototype.$callKeyboardHandlers=function(p,i,s,c){for(var u,h=!1,f=this.$editor.commands,m=this.$handlers.length;m--&&(u=this.$handlers[m].handleKeyboard(this.$data,p,i,s,c),!(!(!u||!u.command)&&(u.command=="null"?h=!0:h=f.exec(u.command,this.$editor,u.args,c),h&&c&&p!=-1&&u.passEvent!=!0&&u.command.passEvent!=!0&&d.stopEvent(c),h))););return!h&&p==-1&&(u={command:"insertstring"},h=f.exec("insertstring",this.$editor,i)),h&&this.$editor._signal&&this.$editor._signal("keyboardActivity",u),h},o.prototype.onCommandKey=function(p,i,s){var c=l.keyCodeToString(s);return this.$callKeyboardHandlers(i,c,s,p)},o.prototype.onTextInput=function(p){return this.$callKeyboardHandlers(-1,p)},o}();r.KeyBinding=g}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(n,r,a){var l=0,d=0,g=!1,o=!1,p=!1,i=[[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]],s=[[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]],c=0,u=1,h=0,f=1,m=2,v=3,y=4,x=5,_=6,S=7,b=8,A=9,L=10,E=11,M=12,C=13,R=14,$=15,w=16,k=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,E,E,E,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,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,y,y,y,y,y,y,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,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,E,E,E,E,y,y,y,y,h,y,y,T,y,y,E,E,m,m,y,h,y,y,y,m,h,y,y,y,y,y],I=[b,b,b,b,b,b,b,b,b,b,b,T,T,T,h,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,$,w,k,A,E,E,E,E,E,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(U,H,V,q){var z=l?s:i,Z=null,Y=null,Q=null,he=0,Ce=null,P=null,W=-1,K=null,te=null,ee=[];if(!q)for(K=0,q=[];K<V;K++)q[K]=j(U[K]);for(d=l,g=!1,o=!1,p=!1,te=0;te<V;te++){if(Z=he,ee[te]=Y=B(U,q,ee,te),he=z[Z][Y],Ce=he&240,he&=15,H[te]=Q=z[he][5],Ce>0)if(Ce==16){for(K=W;K<te;K++)H[K]=1;W=-1}else W=-1;if(P=z[he][6],P)W==-1&&(W=te);else if(W>-1){for(K=W;K<te;K++)H[K]=Q;W=-1}q[te]==x&&(H[te]=0),d|=Q}if(p){for(K=0;K<V;K++)if(q[K]==_){H[K]=l;for(var ce=K-1;ce>=0&&q[ce]==b;ce--)H[ce]=l}}}function D(U,H,V){if(!(d<U)){if(U==1&&l==u&&!o){V.reverse();return}for(var q=V.length,z=0,Z,Y,Q,he;z<q;){if(H[z]>=U){for(Z=z+1;Z<q&&H[Z]>=U;)Z++;for(Y=z,Q=Z-1;Y<Q;Y++,Q--)he=V[Y],V[Y]=V[Q],V[Q]=he;z=Z}z++}}}function B(U,H,V,q){var z=H[q],Z,Y,Q,he;switch(z){case h:case f:g=!1;case y:case v:return z;case m:return g?v:m;case S:return g=!0,f;case b:return y;case A:return q<1||q+1>=H.length||(Z=V[q-1])!=m&&Z!=v||(Y=H[q+1])!=m&&Y!=v?y:(g&&(Y=v),Y==Z?Y:y);case L:return Z=q>0?V[q-1]:x,Z==m&&q+1<H.length&&H[q+1]==m?m:y;case E:if(q>0&&V[q-1]==m)return m;if(g)return y;for(he=q+1,Q=H.length;he<Q&&H[he]==E;)he++;return he<Q&&H[he]==m?m:y;case M:for(Q=H.length,he=q+1;he<Q&&H[he]==M;)he++;if(he<Q){var Ce=U[q],P=Ce>=1425&&Ce<=2303||Ce==64286;if(Z=H[he],P&&(Z==f||Z==S))return f}return q<1||(Z=H[q-1])==x?y:V[q-1];case x:return g=!1,o=!0,l;case _:return p=!0,y;case C:case R:case w:case k:case $:g=!1;case T:return y}}function j(U){var H=U.charCodeAt(0),V=H>>8;return V==0?H>191?h:O[H]:V==5?/[\u0591-\u05f4]/.test(U)?f:h:V==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(U)?M:/[\u0660-\u0669\u066b-\u066c]/.test(U)?v:H==1642?E:/[\u06f0-\u06f9]/.test(U)?m:S:V==32&&H<=8287?I[H&255]:V==254&&H>=65136?S:y}r.L=h,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(U,H,V){if(U.length<2)return{};var q=U.split(""),z=new Array(q.length),Z=new Array(q.length),Y=[];l=V?u:c,N(q,Y,q.length,H);for(var Q=0;Q<z.length;z[Q]=Q,Q++);D(2,Y,z),D(1,Y,z);for(var Q=0;Q<z.length-1;Q++)H[Q]===v?Y[Q]=r.AN:Y[Q]===f&&(H[Q]>S&&H[Q]<C||H[Q]===y||H[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(U,H){for(var V=!1,q=0;q<U.length;q++)H[q]=j(U.charAt(q)),!V&&(H[q]==f||H[q]==S||H[q]==v)&&(V=!0);return V},r.getVisualFromLogicalIdx=function(U,H){for(var V=0;V<H.logicalFromVisual.length;V++)if(H.logicalFromVisual[V]==U)return V;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(n,r,a){var l=n("./lib/bidiutil"),d=n("./lib/lang"),g=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,o=function(){function p(i){this.session=i,this.bidiMap={},this.currentRow=null,this.bidiUtil=l,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(i.getValue())}return p.prototype.isBidiRow=function(i,s,c){return this.seenBidi?(i!==this.currentRow&&(this.currentRow=i,this.updateRowLine(s,c),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},p.prototype.onChange=function(i){this.seenBidi?this.currentRow=null:i.action=="insert"&&g.test(i.lines.join(`
983
+ `))&&(this.seenBidi=!0,this.currentRow=null)},p.prototype.getDocumentRow=function(){var i=0,s=this.session.$screenRowCache;if(s.length){var c=this.session.$getRowCacheIndex(s,this.currentRow);c>=0&&(i=this.session.$docRowCache[c])}return i},p.prototype.getSplitIndex=function(){var i=0,s=this.session.$screenRowCache;if(s.length)for(var c,u=this.session.$getRowCacheIndex(s,this.currentRow);this.currentRow-i>0&&(c=this.session.$getRowCacheIndex(s,this.currentRow-i-1),c===u);)u=c,i++;else i=this.currentRow;return i},p.prototype.updateRowLine=function(i,s){i===void 0&&(i=this.getDocumentRow());var c=i===this.session.getLength()-1,u=c?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(i),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var h=this.session.$wrapData[i];h&&(s===void 0&&(s=this.getSplitIndex()),s>0&&h.length?(this.wrapIndent=h.indent,this.wrapOffset=this.wrapIndent*this.charWidths[l.L],this.line=s<h.length?this.line.substring(h[s-1],h[s]):this.line.substring(h[h.length-1])):this.line=this.line.substring(0,h[s]),s==h.length&&(this.line+=this.showInvisibles?u:l.DOT))}else this.line+=this.showInvisibles?u:l.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(l.DOT,v)):y}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==l.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 i=[];l.hasBidiCharacters(this.line,i)||this.isRtlDir?this.bidiMap=l.doBidiReorder(this.line,i,this.isRtlDir):this.bidiMap={}},p.prototype.markAsDirty=function(){this.currentRow=null},p.prototype.updateCharacterWidths=function(i){if(this.characterWidth!==i.$characterSize.width){this.fontMetrics=i;var s=this.characterWidth=i.$characterSize.width,c=i.$measureCharWidth("ה");this.charWidths[l.L]=this.charWidths[l.EN]=this.charWidths[l.ON_R]=s,this.charWidths[l.R]=this.charWidths[l.AN]=c,this.charWidths[l.R_H]=c*.45,this.charWidths[l.B]=this.charWidths[l.RLE]=0,this.currentRow=null}},p.prototype.setShowInvisibles=function(i){this.showInvisibles=i,this.currentRow=null},p.prototype.setEolChar=function(i){this.EOL=i},p.prototype.setContentWidth=function(i){this.contentWidth=i},p.prototype.isRtlLine=function(i){return this.$isRtl?!0:i!=null?this.session.getLine(i).charAt(0)==this.RLE:this.isRtlDir},p.prototype.setRtlDirection=function(i,s){for(var c=i.getCursorPosition(),u=i.selection.getSelectionAnchor().row;u<=c.row;u++)!s&&i.session.getLine(u).charAt(0)===i.session.$bidiHandler.RLE?i.session.doc.removeInLine(u,0,1):s&&i.session.getLine(u).charAt(0)!==i.session.$bidiHandler.RLE&&i.session.doc.insert({column:0,row:u},i.session.$bidiHandler.RLE)},p.prototype.getPosLeft=function(i){i-=this.wrapIndent;var s=this.line.charAt(0)===this.RLE?1:0,c=i>s?this.session.getOverwrite()?i:i-1:s,u=l.getVisualFromLogicalIdx(c,this.bidiMap),h=this.bidiMap.bidiLevels,f=0;!this.session.getOverwrite()&&i<=s&&h[u]%2!==0&&u++;for(var m=0;m<u;m++)f+=this.charWidths[h[m]];return!this.session.getOverwrite()&&i>s&&h[u]%2===0&&(f+=this.charWidths[h[u]]),this.wrapIndent&&(f+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(f+=this.rtlLineOffset),f},p.prototype.getSelections=function(i,s){var c=this.bidiMap,u=c.bidiLevels,h,f=[],m=0,v=Math.min(i,s)-this.wrapIndent,y=Math.max(i,s)-this.wrapIndent,x=!1,_=!1,S=0;this.wrapIndent&&(m+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var b,A=0;A<u.length;A++)b=c.logicalFromVisual[A],h=u[A],x=b>=v&&b<y,x&&!_?S=m:!x&&_&&f.push({left:S,width:m-S}),m+=this.charWidths[h],_=x;if(x&&A===u.length&&f.push({left:S,width:m-S}),this.isRtlDir)for(var L=0;L<f.length;L++)f[L].left+=this.rtlLineOffset;return f},p.prototype.offsetToCol=function(c){this.isRtlDir&&(c-=this.rtlLineOffset);var s=0,c=Math.max(c,0),u=0,h=0,f=this.bidiMap.bidiLevels,m=this.charWidths[f[h]];for(this.wrapIndent&&(c-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);c>u+m/2;){if(u+=m,h===f.length-1){m=0;break}m=this.charWidths[f[++h]]}return h>0&&f[h-1]%2!==0&&f[h]%2===0?(c<u&&h--,s=this.bidiMap.logicalFromVisual[h]):h>0&&f[h-1]%2===0&&f[h]%2!==0?s=1+(c>u?this.bidiMap.logicalFromVisual[h]:this.bidiMap.logicalFromVisual[h-1]):this.isRtlDir&&h===f.length-1&&m===0&&f[h-1]%2===0||!this.isRtlDir&&h===0&&f[h]%2!==0?s=1+this.bidiMap.logicalFromVisual[h]:(h>0&&f[h-1]%2!==0&&m!==0&&h--,s=this.bidiMap.logicalFromVisual[h]),s===0&&this.isRtlDir&&s++,s+this.wrapIndent},p}();r.BidiHandler=o}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(n,r,a){var l=n("./lib/oop"),d=n("./lib/lang"),g=n("./lib/event_emitter").EventEmitter,o=n("./range").Range,p=function(){function i(s){this.session=s,this.doc=s.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var c=this;this.cursor.on("change",function(u){c.$cursorChanged=!0,c.$silent||c._emit("changeCursor"),!c.$isEmpty&&!c.$silent&&c._emit("changeSelection"),!c.$keepDesiredColumnOnChange&&u.old.column!=u.value.column&&(c.$desiredColumn=null)}),this.anchor.on("change",function(){c.$anchorChanged=!0,!c.$isEmpty&&!c.$silent&&c._emit("changeSelection")})}return i.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},i.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},i.prototype.getCursor=function(){return this.lead.getPosition()},i.prototype.setAnchor=function(s,c){this.$isEmpty=!1,this.anchor.setPosition(s,c)},i.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},i.prototype.getSelectionLead=function(){return this.lead.getPosition()},i.prototype.isBackwards=function(){var s=this.anchor,c=this.lead;return s.row>c.row||s.row==c.row&&s.column>c.column},i.prototype.getRange=function(){var s=this.anchor,c=this.lead;return this.$isEmpty?o.fromPoints(c,c):this.isBackwards()?o.fromPoints(c,s):o.fromPoints(s,c)},i.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},i.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},i.prototype.setRange=function(s,c){var u=c?s.end:s.start,h=c?s.start:s.end;this.$setSelection(u.row,u.column,h.row,h.column)},i.prototype.$setSelection=function(s,c,u,h){if(!this.$silent){var f=this.$isEmpty,m=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(s,c),this.cursor.setPosition(u,h),this.$isEmpty=!o.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||f!=this.$isEmpty||m)&&this._emit("changeSelection")}},i.prototype.$moveSelection=function(s){var c=this.lead;this.$isEmpty&&this.setSelectionAnchor(c.row,c.column),s.call(this)},i.prototype.selectTo=function(s,c){this.$moveSelection(function(){this.moveCursorTo(s,c)})},i.prototype.selectToPosition=function(s){this.$moveSelection(function(){this.moveCursorToPosition(s)})},i.prototype.moveTo=function(s,c){this.clearSelection(),this.moveCursorTo(s,c)},i.prototype.moveToPosition=function(s){this.clearSelection(),this.moveCursorToPosition(s)},i.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},i.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},i.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},i.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},i.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},i.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},i.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},i.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},i.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},i.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},i.prototype.getWordRange=function(s,c){if(typeof c>"u"){var u=s||this.lead;s=u.row,c=u.column}return this.session.getWordRange(s,c)},i.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},i.prototype.selectAWord=function(){var s=this.getCursor(),c=this.session.getAWordRange(s.row,s.column);this.setSelectionRange(c)},i.prototype.getLineRange=function(s,c){var u=typeof s=="number"?s:this.lead.row,h,f=this.session.getFoldLine(u);return f?(u=f.start.row,h=f.end.row):h=u,c===!0?new o(u,0,h,this.session.getLine(h).length):new o(u,0,h+1,0)},i.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},i.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},i.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},i.prototype.wouldMoveIntoSoftTab=function(s,c,u){var h=s.column,f=s.column+c;return u<0&&(h=s.column-c,f=s.column),this.session.isTabStop(s)&&this.doc.getLine(s.row).slice(h,f).split(" ").length-1==c},i.prototype.moveCursorLeft=function(){var s=this.lead.getPosition(),c;if(c=this.session.getFoldAt(s.row,s.column,-1))this.moveCursorTo(c.start.row,c.start.column);else if(s.column===0)s.row>0&&this.moveCursorTo(s.row-1,this.doc.getLine(s.row-1).length);else{var u=this.session.getTabSize();this.wouldMoveIntoSoftTab(s,u,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-u):this.moveCursorBy(0,-1)}},i.prototype.moveCursorRight=function(){var s=this.lead.getPosition(),c;if(c=this.session.getFoldAt(s.row,s.column,1))this.moveCursorTo(c.end.row,c.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 u=this.session.getTabSize(),s=this.lead;this.wouldMoveIntoSoftTab(s,u,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,u):this.moveCursorBy(0,1)}},i.prototype.moveCursorLineStart=function(){var s=this.lead.row,c=this.lead.column,u=this.session.documentToScreenRow(s,c),h=this.session.screenToDocumentPosition(u,0),f=this.session.getDisplayLine(s,null,h.row,h.column),m=f.match(/^\s*/);m[0].length!=c&&!this.session.$useEmacsStyleLineStart&&(h.column+=m[0].length),this.moveCursorToPosition(h)},i.prototype.moveCursorLineEnd=function(){var s=this.lead,c=this.session.getDocumentLastRowColumnPosition(s.row,s.column);if(this.lead.column==c.column){var u=this.session.getLine(c.row);if(c.column==u.length){var h=u.search(/\s+$/);h>0&&(c.column=h)}}this.moveCursorTo(c.row,c.column)},i.prototype.moveCursorFileEnd=function(){var s=this.doc.getLength()-1,c=this.doc.getLine(s).length;this.moveCursorTo(s,c)},i.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},i.prototype.moveCursorLongWordRight=function(){var s=this.lead.row,c=this.lead.column,u=this.doc.getLine(s),h=u.substring(c);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var f=this.session.getFoldAt(s,c,1);if(f){this.moveCursorTo(f.end.row,f.end.column);return}if(this.session.nonTokenRe.exec(h)&&(c+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,h=u.substring(c)),c>=u.length){this.moveCursorTo(s,u.length),this.moveCursorRight(),s<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(h)&&(c+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(s,c)},i.prototype.moveCursorLongWordLeft=function(){var s=this.lead.row,c=this.lead.column,u;if(u=this.session.getFoldAt(s,c,-1)){this.moveCursorTo(u.start.row,u.start.column);return}var h=this.session.getFoldStringAt(s,c,-1);h==null&&(h=this.doc.getLine(s).substring(0,c));var f=d.stringReverse(h);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(f)&&(c-=this.session.nonTokenRe.lastIndex,f=f.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),c<=0){this.moveCursorTo(s,0),this.moveCursorLeft(),s>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(f)&&(c-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(s,c)},i.prototype.$shortWordEndIndex=function(s){var c=0,u,h=/\s/,f=this.session.tokenRe;if(f.lastIndex=0,this.session.tokenRe.exec(s))c=this.session.tokenRe.lastIndex;else{for(;(u=s[c])&&h.test(u);)c++;if(c<1){for(f.lastIndex=0;(u=s[c])&&!f.test(u);)if(f.lastIndex=0,c++,h.test(u))if(c>2){c--;break}else{for(;(u=s[c])&&h.test(u);)c++;if(c>2)break}}}return f.lastIndex=0,c},i.prototype.moveCursorShortWordRight=function(){var s=this.lead.row,c=this.lead.column,u=this.doc.getLine(s),h=u.substring(c),f=this.session.getFoldAt(s,c,1);if(f)return this.moveCursorTo(f.end.row,f.end.column);if(c==u.length){var m=this.doc.getLength();do s++,h=this.doc.getLine(s);while(s<m&&/^\s*$/.test(h));/^\s+/.test(h)||(h=""),c=0}var v=this.$shortWordEndIndex(h);this.moveCursorTo(s,c+v)},i.prototype.moveCursorShortWordLeft=function(){var s=this.lead.row,c=this.lead.column,u;if(u=this.session.getFoldAt(s,c,-1))return this.moveCursorTo(u.start.row,u.start.column);var h=this.session.getLine(s).substring(0,c);if(c===0){do s--,h=this.doc.getLine(s);while(s>0&&/^\s*$/.test(h));c=h.length,/\s+$/.test(h)||(h="")}var f=d.stringReverse(h),m=this.$shortWordEndIndex(f);return this.moveCursorTo(s,c-m)},i.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},i.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},i.prototype.moveCursorBy=function(s,c){var u=this.session.documentToScreenPosition(this.lead.row,this.lead.column),h;if(c===0&&(s!==0&&(this.session.$bidiHandler.isBidiRow(u.row,this.lead.row)?(h=this.session.$bidiHandler.getPosLeft(u.column),u.column=Math.round(h/this.session.$bidiHandler.charWidths[0])):h=u.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?u.column=this.$desiredColumn:this.$desiredColumn=u.column),s!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var f=this.session.lineWidgets[this.lead.row];s<0?s-=f.rowsAbove||0:s>0&&(s+=f.rowCount-(f.rowsAbove||0))}var m=this.session.screenToDocumentPosition(u.row+s,u.column,h);s!==0&&c===0&&m.row===this.lead.row&&(m.column,this.lead.column),this.moveCursorTo(m.row,m.column+c,c===0)},i.prototype.moveCursorToPosition=function(s){this.moveCursorTo(s.row,s.column)},i.prototype.moveCursorTo=function(s,c,u){var h=this.session.getFoldAt(s,c,1);h&&(s=h.start.row,c=h.start.column),this.$keepDesiredColumnOnChange=!0;var f=this.session.getLine(s);/[\uDC00-\uDFFF]/.test(f.charAt(c))&&f.charAt(c-1)&&(this.lead.row==s&&this.lead.column==c+1?c=c-1:c=c+1),this.lead.setPosition(s,c),this.$keepDesiredColumnOnChange=!1,u||(this.$desiredColumn=null)},i.prototype.moveCursorToScreen=function(s,c,u){var h=this.session.screenToDocumentPosition(s,c);this.moveCursorTo(h.row,h.column,u)},i.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},i.prototype.fromOrientedRange=function(s){this.setSelectionRange(s,s.cursor==s.start),this.$desiredColumn=s.desiredColumn||this.$desiredColumn},i.prototype.toOrientedRange=function(s){var c=this.getRange();return s?(s.start.column=c.start.column,s.start.row=c.start.row,s.end.column=c.end.column,s.end.row=c.end.row):s=c,s.cursor=this.isBackwards()?s.start:s.end,s.desiredColumn=this.$desiredColumn,s},i.prototype.getRangeOfMovements=function(s){var c=this.getCursor();try{s(this);var u=this.getCursor();return o.fromPoints(c,u)}catch{return o.fromPoints(c,c)}finally{this.moveCursorToPosition(c)}},i.prototype.toJSON=function(){if(this.rangeCount)var s=this.ranges.map(function(c){var u=c.clone();return u.isBackwards=c.cursor==c.start,u});else{var s=this.getRange();s.isBackwards=this.isBackwards()}return s},i.prototype.fromJSON=function(s){if(s.start==null)if(this.rangeList&&s.length>1){this.toSingleRange(s[0]);for(var c=s.length;c--;){var u=o.fromPoints(s[c].start,s[c].end);s[c].isBackwards&&(u.cursor=u.start),this.addRange(u,!0)}return}else s=s[0];this.rangeList&&this.toSingleRange(s),this.setSelectionRange(s,s.isBackwards)},i.prototype.isEqual=function(s){if((s.length||this.rangeCount)&&s.length!=this.rangeCount)return!1;if(!s.length||!this.ranges)return this.getRange().isEqual(s);for(var c=this.ranges.length;c--;)if(!this.ranges[c].isEqual(s[c]))return!1;return!0},i}();p.prototype.setSelectionAnchor=p.prototype.setAnchor,p.prototype.getSelectionAnchor=p.prototype.getAnchor,p.prototype.setSelectionRange=p.prototype.setRange,l.implement(p.prototype,g),r.Selection=p}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(n,r,a){var l=n("./lib/report_error").reportError,d=2e3,g=function(){function o(p){this.splitRegex,this.states=p,this.regExps={},this.matchMappings={};for(var i in this.states){for(var s=this.states[i],c=[],u=0,h=this.matchMappings[i]={defaultToken:"text"},f="g",m=[],v=0;v<s.length;v++){var y=s[v];if(y.defaultToken&&(h.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(S,b){return"\\"+(parseInt(b,10)+u+1)}):(_=1,x=this.removeCapturingGroups(y.regex)),!y.splitRegex&&typeof y.token!="string"&&m.push(y)),h[u]=v,u+=_,c.push(x),y.onMatch||(y.onMatch=null)}}c.length||(h[0]=0,c.push("$")),m.forEach(function(S){S.splitRegex=this.createSplitterRegexp(S.regex,f)},this),this.regExps[i]=new RegExp("("+c.join(")|(")+")|($)",f)}}return o.prototype.$setMaxTokenCount=function(p){d=p|0},o.prototype.$applyToken=function(p){var i=this.splitRegex.exec(p).slice(1),s=this.token.apply(this,i);if(typeof s=="string")return[{type:s,value:p}];for(var c=[],u=0,h=s.length;u<h;u++)i[u]&&(c[c.length]={type:s[u],value:i[u]});return c},o.prototype.$arrayTokens=function(p){if(!p)return[];var i=this.splitRegex.exec(p);if(!i)return"text";for(var s=[],c=this.tokenArray,u=0,h=c.length;u<h;u++)i[u+1]&&(s[s.length]={type:c[u],value:i[u+1]});return s},o.prototype.removeCapturingGroups=function(p){var i=p.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(s,c){return c?"(?:":s});return i},o.prototype.createSplitterRegexp=function(p,i){if(p.indexOf("(?=")!=-1){var s=0,c=!1,u={};p.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(h,f,m,v,y,x){return c?c=y!="]":y?c=!0:v?(s==u.stack&&(u.end=x+1,u.stack=-1),s--):m&&(s++,m.length!=1&&(u.stack=s,u.start=x)),h}),u.end!=null&&/^\)*$/.test(p.substr(u.end))&&(p=p.substring(0,u.start)+p.substr(u.end))}return p.charAt(0)!="^"&&(p="^"+p),p.charAt(p.length-1)!="$"&&(p+="$"),new RegExp(p,(i||"").replace("g",""))},o.prototype.getLineTokens=function(p,i){if(i&&typeof i!="string"){var s=i.slice(0);i=s[0],i==="#tmp"&&(s.shift(),i=s.shift())}else var s=[];var c=i||"start",u=this.states[c];u||(c="start",u=this.states[c]);var h=this.matchMappings[c],f=this.regExps[c];f.lastIndex=0;for(var m,v=[],y=0,x=0,_={type:null,value:""};m=f.exec(p);){var S=h.defaultToken,b=null,A=m[0],L=f.lastIndex;if(L-A.length>y){var E=p.substring(y,L-A.length);_.type==S?_.value+=E:(_.type&&v.push(_),_={type:S,value:E})}for(var M=0;M<m.length-2;M++)if(m[M+1]!==void 0){b=u[h[M]],b.onMatch?S=b.onMatch(A,c,s,p):S=b.token,b.next&&(typeof b.next=="string"?c=b.next:c=b.next(c,s),u=this.states[c],u||(this.reportError("state doesn't exist",c),c="start",u=this.states[c]),h=this.matchMappings[c],y=L,f=this.regExps[c],f.lastIndex=L),b.consumeLineEnd&&(y=L);break}if(A){if(typeof S=="string")(!b||b.merge!==!1)&&_.type===S?_.value+=A:(_.type&&v.push(_),_={type:S,value:A});else if(S){_.type&&v.push(_),_={type:null,value:""};for(var M=0;M<S.length;M++)v.push(S[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:i,line:p});y<p.length;)_.type&&v.push(_),_={value:p.substring(y,y+=500),type:"overflow"};c="start",s=[];break}}return _.type&&v.push(_),s.length>1&&s[0]!==c&&s.unshift("#tmp",c),{tokens:v,state:s.length?s:c}},o}();g.prototype.reportError=l,r.Tokenizer=g}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(n,r,a){var l=n("../lib/deep_copy").deepCopy,d;d=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},(function(){this.addRules=function(p,i){if(!i){for(var s in p)this.$rules[s]=p[s];return}for(var s in p){for(var c=p[s],u=0;u<c.length;u++){var h=c[u];(h.next||h.onMatch)&&(typeof h.next=="string"&&h.next.indexOf(i)!==0&&(h.next=i+h.next),h.nextState&&h.nextState.indexOf(i)!==0&&(h.nextState=i+h.nextState))}this.$rules[i+s]=c}},this.getRules=function(){return this.$rules},this.embedRules=function(p,i,s,c,u){var h=typeof p=="function"?new p().getRules():p;if(c)for(var f=0;f<c.length;f++)c[f]=i+c[f];else{c=[];for(var m in h)c.push(i+m)}if(this.addRules(h,i),s)for(var v=Array.prototype[u?"push":"unshift"],f=0;f<c.length;f++)v.apply(this.$rules[c[f]],l(s));this.$embeds||(this.$embeds=[]),this.$embeds.push(i)},this.getEmbeds=function(){return this.$embeds};var g=function(p,i){return(p!="start"||i.length)&&i.unshift(this.nextState,p),this.nextState},o=function(p,i){return i.shift(),i.shift()||"start"};this.normalizeRules=function(){var p=0,i=this.$rules;function s(c){var u=i[c];u.processed=!0;for(var h=0;h<u.length;h++){var f=u[h],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]||""),i[y]&&(y+=p++)),i[y]=v,f.next=y,s(y)}else v=="pop"&&(f.next=o);if(f.push&&(f.nextState=f.next||f.push,f.next=g,delete f.push),f.rules)for(var x in f.rules)i[x]?i[x].push&&i[x].push.apply(i[x],f.rules[x]):i[x]=f.rules[x];var _=typeof f=="string"?f:f.include;if(_&&(_==="$self"&&(_="start"),Array.isArray(_)?m=_.map(function(b){return i[b]}):m=i[_]),m){var S=[h,1].concat(m);f.noEscape&&(S=S.filter(function(b){return!b.next})),u.splice.apply(u,S),h--}f.keywordMap&&(f.token=this.createKeywordMapper(f.keywordMap,f.defaultToken||"text",f.caseInsensitive),delete f.defaultToken)}}Object.keys(i).forEach(s,this)},this.createKeywordMapper=function(p,i,s,c){var u=Object.create(null);return this.$keywordList=[],Object.keys(p).forEach(function(h){for(var f=p[h],m=f.split(c||"|"),v=m.length;v--;){var y=m[v];this.$keywordList.push(y),s&&(y=y.toLowerCase()),u[y]=h}},this),p=null,s?function(h){return u[h.toLowerCase()]||i}:function(h){return u[h]||i}},this.getKeywords=function(){return this.$keywords}}).call(d.prototype),r.TextHighlightRules=d}),ace.define("ace/mode/behaviour",["require","exports","module"],function(n,r,a){var l;l=function(){this.$behaviours={}},(function(){this.add=function(d,g,o){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[d]:this.$behaviours[d]={}}this.$behaviours[d][g]=o},this.addBehaviours=function(d){for(var g in d)for(var o in d[g])this.add(g,o,d[g][o])},this.remove=function(d){this.$behaviours&&this.$behaviours[d]&&delete this.$behaviours[d]},this.inherit=function(d,g){if(typeof d=="function")var o=new d().getBehaviours(g);else var o=d.getBehaviours(g);this.addBehaviours(o)},this.getBehaviours=function(d){if(d){for(var g={},o=0;o<d.length;o++)this.$behaviours[d[o]]&&(g[d[o]]=this.$behaviours[d[o]]);return g}else return this.$behaviours}}).call(l.prototype),r.Behaviour=l}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(n,r,a){var l=n("./range").Range,d=function(){function g(o,p,i){this.$session=o,this.$row=p,this.$rowTokens=o.getTokens(p);var s=o.getTokenAt(p,i);this.$tokenIndex=s?s.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 o;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,o||(o=this.$session.getLength()),this.$row>=o)return this.$row=o-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},g.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},g.prototype.getCurrentTokenRow=function(){return this.$row},g.prototype.getCurrentTokenColumn=function(){var o=this.$rowTokens,p=this.$tokenIndex,i=o[p].start;if(i!==void 0)return i;for(i=0;p>0;)p-=1,i+=o[p].value.length;return i},g.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},g.prototype.getCurrentTokenRange=function(){var o=this.$rowTokens[this.$tokenIndex],p=this.getCurrentTokenColumn();return new l(this.$row,p,this.$row,p+o.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,a){var l=n("../../lib/oop"),d=n("../behaviour").Behaviour,g=n("../../token_iterator").TokenIterator,o=n("../../lib/lang"),p=["text","paren.rparen","rparen","paren","punctuation.operator"],i=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],s,c={},u={'"':'"',"'":"'"},h=function(v){var y=-1;if(v.multiSelect&&(y=v.selection.index,c.rangeCount!=v.multiSelect.rangeCount&&(c={rangeCount:v.multiSelect.rangeCount})),c[y])return s=c[y];s=c[y]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},f=function(v,y,x,_){var S=v.end.row-v.start.row;return{text:x+y+_,selection:[0,v.start.column+1,S,v.end.column+(S?0:1)]}},m;m=function(v){v=v||{},this.add("braces","insertion",function(y,x,_,S,b){var A=_.getCursorPosition(),L=S.doc.getLine(A.row);if(b=="{"){h(_);var E=_.getSelectionRange(),M=S.doc.getTextRange(E),C=S.getTokenAt(A.row,A.column);if(M!==""&&M!=="{"&&_.getWrapBehavioursEnabled())return f(E,M,"{","}");if(C&&/(?:string)\.quasi|\.xml/.test(C.type)){var R=[/tag\-(?:open|name)/,/attribute\-name/];return R.some(function(N){return N.test(C.type)})||/(string)\.quasi/.test(C.type)&&C.value[A.column-C.start-1]!=="$"?void 0:(m.recordAutoInsert(_,S,"}"),{text:"{}",selection:[1,1]})}else if(m.isSaneInsertion(_,S))return/[\]\}\)]/.test(L[A.column])||_.inMultiSelectMode||v.braces?(m.recordAutoInsert(_,S,"}"),{text:"{}",selection:[1,1]}):(m.recordMaybeInsert(_,S,"{"),{text:"{",selection:[1,1]})}else if(b=="}"){h(_);var $=L.substring(A.column,A.column+1);if($=="}"){var w=S.$findOpeningBracket("}",{column:A.column+1,row:A.row});if(w!==null&&m.isAutoInsertedClosing(A,L,b))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(b==`
984
+ `||b==`\r
985
+ `){h(_);var k="";m.isMaybeInsertedClosing(A,L)&&(k=o.stringRepeat("}",s.maybeInsertedBrackets),m.clearMaybeInsertedClosing());var $=L.substring(A.column,A.column+1);if($==="}"){var T=S.findMatchingBracket({row:A.row,column:A.column+1},"}");if(!T)return null;var O=this.$getIndent(S.getLine(T.row))}else if(k)var O=this.$getIndent(L);else{m.clearMaybeInsertedClosing();return}var I=O+S.getTabString();return{text:`
986
+ `+I+`
987
+ `+O+k,selection:[1,I.length,1,I.length]}}else m.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(y,x,_,S,b){var A=S.doc.getTextRange(b);if(!b.isMultiLine()&&A=="{"){h(_);var L=S.doc.getLine(b.start.row),E=L.substring(b.end.column,b.end.column+1);if(E=="}")return b.end.column++,b;s.maybeInsertedBrackets--}}),this.add("parens","insertion",function(y,x,_,S,b){if(b=="("){h(_);var A=_.getSelectionRange(),L=S.doc.getTextRange(A);if(L!==""&&_.getWrapBehavioursEnabled())return f(A,L,"(",")");if(m.isSaneInsertion(_,S))return m.recordAutoInsert(_,S,")"),{text:"()",selection:[1,1]}}else if(b==")"){h(_);var E=_.getCursorPosition(),M=S.doc.getLine(E.row),C=M.substring(E.column,E.column+1);if(C==")"){var R=S.$findOpeningBracket(")",{column:E.column+1,row:E.row});if(R!==null&&m.isAutoInsertedClosing(E,M,b))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(y,x,_,S,b){var A=S.doc.getTextRange(b);if(!b.isMultiLine()&&A=="("){h(_);var L=S.doc.getLine(b.start.row),E=L.substring(b.start.column+1,b.start.column+2);if(E==")")return b.end.column++,b}}),this.add("brackets","insertion",function(y,x,_,S,b){if(b=="["){h(_);var A=_.getSelectionRange(),L=S.doc.getTextRange(A);if(L!==""&&_.getWrapBehavioursEnabled())return f(A,L,"[","]");if(m.isSaneInsertion(_,S))return m.recordAutoInsert(_,S,"]"),{text:"[]",selection:[1,1]}}else if(b=="]"){h(_);var E=_.getCursorPosition(),M=S.doc.getLine(E.row),C=M.substring(E.column,E.column+1);if(C=="]"){var R=S.$findOpeningBracket("]",{column:E.column+1,row:E.row});if(R!==null&&m.isAutoInsertedClosing(E,M,b))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(y,x,_,S,b){var A=S.doc.getTextRange(b);if(!b.isMultiLine()&&A=="["){h(_);var L=S.doc.getLine(b.start.row),E=L.substring(b.start.column+1,b.start.column+2);if(E=="]")return b.end.column++,b}}),this.add("string_dquotes","insertion",function(y,x,_,S,b){var A=S.$mode.$quotes||u;if(b.length==1&&A[b]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(b)!=-1)return;h(_);var L=b,E=_.getSelectionRange(),M=S.doc.getTextRange(E);if(M!==""&&(M.length!=1||!A[M])&&_.getWrapBehavioursEnabled())return f(E,M,L,L);if(!M){var C=_.getCursorPosition(),R=S.doc.getLine(C.row),$=R.substring(C.column-1,C.column),w=R.substring(C.column,C.column+1),k=S.getTokenAt(C.row,C.column),T=S.getTokenAt(C.row,C.column+1);if($=="\\"&&k&&/escape/.test(k.type))return null;var O=k&&/string|escape/.test(k.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 D=S.$mode.tokenRe;D.lastIndex=0;var B=D.test($);D.lastIndex=0;var j=D.test(w),U=S.$mode.$pairQuotesAfter,H=U&&U[L]&&U[L].test($);if(!H&&B||j||w&&!/[\s;,.})\]\\]/.test(w))return null;var V=R[C.column-2];if($==L&&(V==L||D.test(V)))return null;N=!0}return{text:N?L+L:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(y,x,_,S,b){var A=S.$mode.$quotes||u,L=S.doc.getTextRange(b);if(!b.isMultiLine()&&A.hasOwnProperty(L)){h(_);var E=S.doc.getLine(b.start.row),M=E.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,_,S,b){if(y==="doc-start"&&(b===`
988
+ `||b===`\r
989
+ `)&&_.selection.isEmpty()){var A=_.getCursorPosition();if(A.column===0)return;for(var L=S.doc.getLine(A.row),E=S.doc.getLine(A.row+1),M=S.getTokens(A.row),C=0,R=0;R<M.length;R++){C+=M[R].value.length;var $=M[R];if(C>=A.column){if(C===A.column){if(!/\.doc/.test($.type))return;if(/\*\//.test($.value)){var w=M[R+1];if(!w||!/\.doc/.test(w.type))return}}var k=A.column-(C-$.value.length),T=$.value.indexOf("*/"),O=$.value.indexOf("/**",T>-1?T+2:0);if(O!==-1&&k>O&&k<O+3||T!==-1&&O!==-1&&k>=T&&k<=O||!/\.doc/.test($.type))return;break}}var I=this.$getIndent(L);if(/\s*\*/.test(E))return/^\s*\*/.test(L)?{text:b+I+"* ",selection:[1,2+I.length,1,2+I.length]}:{text:b+I+" * ",selection:[1,3+I.length,1,3+I.length]};if(/\/\*\*/.test(L.substring(0,A.column)))return{text:b+I+" * "+b+" "+I+"*/",selection:[1,4+I.length,1,4+I.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 S=new g(y,x.row,x.column+1);if(!this.$matchTokenType(S.getCurrentToken()||"text",p))return!1}return _.stepForward(),_.getCurrentTokenRow()!==x.row||this.$matchTokenType(_.getCurrentToken()||"text",i)},m.$matchTokenType=function(v,y){return y.indexOf(v.type||v)>-1},m.recordAutoInsert=function(v,y,x){var _=v.getCursorPosition(),S=y.doc.getLine(_.row);this.isAutoInsertedClosing(_,S,s.autoInsertedLineEnd[0])||(s.autoInsertedBrackets=0),s.autoInsertedRow=_.row,s.autoInsertedLineEnd=x+S.substr(_.column),s.autoInsertedBrackets++},m.recordMaybeInsert=function(v,y,x){var _=v.getCursorPosition(),S=y.doc.getLine(_.row);this.isMaybeInsertedClosing(_,S)||(s.maybeInsertedBrackets=0),s.maybeInsertedRow=_.row,s.maybeInsertedLineStart=S.substr(0,_.column)+x,s.maybeInsertedLineEnd=S.substr(_.column),s.maybeInsertedBrackets++},m.isAutoInsertedClosing=function(v,y,x){return s.autoInsertedBrackets>0&&v.row===s.autoInsertedRow&&x===s.autoInsertedLineEnd[0]&&y.substr(v.column)===s.autoInsertedLineEnd},m.isMaybeInsertedClosing=function(v,y){return s.maybeInsertedBrackets>0&&v.row===s.maybeInsertedRow&&y.substr(v.column)===s.maybeInsertedLineEnd&&y.substr(0,v.column)==s.maybeInsertedLineStart},m.popAutoInsertedClosing=function(){s.autoInsertedLineEnd=s.autoInsertedLineEnd.substr(1),s.autoInsertedBrackets--},m.clearMaybeInsertedClosing=function(){s&&(s.maybeInsertedBrackets=0,s.maybeInsertedRow=-1)},l.inherits(m,d),r.CstyleBehaviour=m}),ace.define("ace/unicode",["require","exports","module"],function(n,r,a){for(var l=[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=[],o=0;o<l.length;o+=2)g.push(d+=l[o]),l[o+1]&&g.push(45,d+=l[o+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,a){var l=n("../config"),d=n("../tokenizer").Tokenizer,g=n("./text_highlight_rules").TextHighlightRules,o=n("./behaviour/cstyle").CstyleBehaviour,p=n("../unicode"),i=n("../lib/lang"),s=n("../token_iterator").TokenIterator,c=n("../range").Range,u;u=function(){this.HighlightRules=g},(function(){this.$defaultBehaviour=new o,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(h,f,m,v){var y=f.doc,x=!0,_=!0,S=1/0,b=f.getTabSize(),A=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var M=this.lineCommentStart.map(i.escapeRegExp).join("|"),L=this.lineCommentStart[0];else var M=i.escapeRegExp(this.lineCommentStart),L=this.lineCommentStart;M=new RegExp("^(\\s*)(?:"+M+") ?"),A=f.getUseSoftTabs();var $=function(j,U){var H=j.match(M);if(H){var V=H[1].length,q=H[0].length;!T(j,V,q)&&H[0][q-1]==" "&&q--,y.removeInLine(U,V,q)}},k=L+" ",R=function(j,U){(!x||/\S/.test(j))&&(T(j,S,S)?y.insertInLine({row:U,column:S},k):y.insertInLine({row:U,column:S},L))},w=function(j,U){return M.test(j)},T=function(j,U,H){for(var V=0;U--&&j.charAt(U)==" ";)V++;if(V%b!=0)return!1;for(var V=0;j.charAt(H++)==" ";)V++;return b>2?V%b!=b-1:V%b==0}}else{if(!this.blockComment)return!1;var L=this.blockComment.start,E=this.blockComment.end,M=new RegExp("^(\\s*)(?:"+i.escapeRegExp(L)+")"),C=new RegExp("(?:"+i.escapeRegExp(E)+")\\s*$"),R=function(N,D){w(N,D)||(!x||/\S/.test(N))&&(y.insertInLine({row:D,column:N.length},E),y.insertInLine({row:D,column:S},L))},$=function(N,D){var B;(B=N.match(C))&&y.removeInLine(D,N.length-B[0].length,N.length),(B=N.match(M))&&y.removeInLine(D,B[1].length,B[0].length)},w=function(N,D){if(M.test(N))return!0;for(var B=f.getTokens(D),j=0;j<B.length;j++)if(B[j].type==="comment")return!0}}function O(N){for(var D=m;D<=v;D++)N(y.getLine(D),D)}var I=1/0;O(function(N,D){var B=N.search(/\S/);B!==-1?(B<S&&(S=B),_&&!w(N,D)&&(_=!1)):I>N.length&&(I=N.length)}),S==1/0&&(S=I,x=!1,_=!1),A&&S%b!=0&&(S=Math.floor(S/b)*b),O(_?$:R)},this.toggleBlockComment=function(h,f,m,v){var y=this.blockComment;if(y){!y.start&&y[0]&&(y=y[0]);var x=new s(f,v.row,v.column),_=x.getCurrentToken();f.selection;var S=f.selection.toOrientedRange(),b,A;if(_&&/comment/.test(_.type)){for(var L,E;_&&/comment/.test(_.type);){var M=_.value.indexOf(y.start);if(M!=-1){var C=x.getCurrentTokenRow(),R=x.getCurrentTokenColumn()+M;L=new c(C,R,C,R+y.start.length);break}_=x.stepBackward()}for(var x=new s(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;E=new c(C,R,C,R+y.end.length);break}_=x.stepForward()}E&&f.remove(E),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);S.start.row==b&&(S.start.column+=A),S.end.row==b&&(S.end.column+=A),f.selection.fromOrientedRange(S)}},this.getNextLineIndent=function(h,f,m){return this.$getIndent(f)},this.checkOutdent=function(h,f,m){return!1},this.autoOutdent=function(h,f,m){},this.$getIndent=function(h){return h.match(/^\s*/)[0]},this.createWorker=function(h){return null},this.createModeDelegates=function(h){this.$embeds=[],this.$modes={};for(var f in h)if(h[f]){var m=h[f],v=m.prototype.$id,y=l.$modes[v];y||(l.$modes[v]=y=new m),l.$modes[f]||(l.$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],E=A[L];A[x[b]]=function(){return this.$delegator(L,arguments,E)}})(S)},S=this,f=0;f<x.length;f++)_(f)},this.$delegator=function(h,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[h].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 S=v.split(this.$embeds[_]);if(!S[0]&&S[1]){f[0]=S[1];var x=this.$modes[this.$embeds[_]];return x[h].apply(x,f)}}var b=m.apply(this,f);return m?b:void 0},this.transformAction=function(h,f,m,v,y){if(this.$behaviour){var x=this.$behaviour.getBehaviours();for(var _ in x)if(x[_][f]){var S=x[_][f].apply(this,arguments);if(S)return S}}},this.getKeywords=function(h){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 S=0,b=y[x].token.length;S<b;S++)if(/keyword|support|storage/.test(y[x].token[S])){var v=y[x].regex.match(/\(.+?\)/g)[S];m.push(v.substr(1,v.length-2))}}this.completionKeywords=m}return h?m.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(h,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(u.prototype),r.Mode=u}),ace.define("ace/apply_delta",["require","exports","module"],function(n,r,a){r.applyDelta=function(l,d,g){var o=d.start.row,p=d.start.column,i=l[o]||"";switch(d.action){case"insert":var s=d.lines;if(s.length===1)l[o]=i.substring(0,p)+d.lines[0]+i.substring(p);else{var c=[o,1].concat(d.lines);l.splice.apply(l,c),l[o]=i.substring(0,p)+l[o],l[o+d.lines.length-1]+=i.substring(p)}break;case"remove":var u=d.end.column,h=d.end.row;o===h?l[o]=i.substring(0,p)+i.substring(u):l.splice(o,h-o+1,i.substring(0,p)+l[h].substring(u));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(n,r,a){var l=n("./lib/oop"),d=n("./lib/event_emitter").EventEmitter,g=function(){function i(s,c,u){this.$onChange=this.onChange.bind(this),this.attach(s),typeof c!="number"?this.setPosition(c.row,c.column):this.setPosition(c,u)}return i.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},i.prototype.getDocument=function(){return this.document},i.prototype.onChange=function(s){if(!(s.start.row==s.end.row&&s.start.row!=this.row)&&!(s.start.row>this.row)){var c=p(s,{row:this.row,column:this.column},this.$insertRight);this.setPosition(c.row,c.column,!0)}},i.prototype.setPosition=function(s,c,u){var h;if(u?h={row:s,column:c}:h=this.$clipPositionToDocument(s,c),!(this.row==h.row&&this.column==h.column)){var f={row:this.row,column:this.column};this.row=h.row,this.column=h.column,this._signal("change",{old:f,value:h})}},i.prototype.detach=function(){this.document.off("change",this.$onChange)},i.prototype.attach=function(s){this.document=s||this.document,this.document.on("change",this.$onChange)},i.prototype.$clipPositionToDocument=function(s,c){var u={};return s>=this.document.getLength()?(u.row=Math.max(0,this.document.getLength()-1),u.column=this.document.getLine(u.row).length):s<0?(u.row=0,u.column=0):(u.row=s,u.column=Math.min(this.document.getLine(u.row).length,Math.max(0,c))),c<0&&(u.column=0),u},i}();g.prototype.$insertRight=!1,l.implement(g.prototype,d);function o(i,s,c){var u=c?i.column<=s.column:i.column<s.column;return i.row<s.row||i.row==s.row&&u}function p(i,s,c){var u=i.action=="insert",h=(u?1:-1)*(i.end.row-i.start.row),f=(u?1:-1)*(i.end.column-i.start.column),m=i.start,v=u?m:i.end;return o(s,m,c)?{row:s.row,column:s.column}:o(v,s,!c)?{row:s.row+h,column:s.column+(s.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,a){var l=n("./lib/oop"),d=n("./apply_delta").applyDelta,g=n("./lib/event_emitter").EventEmitter,o=n("./range").Range,p=n("./anchor").Anchor,i=function(){function s(c){this.$lines=[""],c.length===0?this.$lines=[""]:Array.isArray(c)?this.insertMergedLines({row:0,column:0},c):this.insert({row:0,column:0},c)}return s.prototype.setValue=function(c){var u=this.getLength()-1;this.remove(new o(0,0,u,this.getLine(u).length)),this.insert({row:0,column:0},c||"")},s.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},s.prototype.createAnchor=function(c,u){return new p(this,c,u)},s.prototype.$detectNewLine=function(c){var u=c.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=u?u[1]:`
990
+ `,this._signal("changeNewLineMode")},s.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
991
+ `;case"unix":return`
992
+ `;default:return this.$autoNewLine||`
993
+ `}},s.prototype.setNewLineMode=function(c){this.$newLineMode!==c&&(this.$newLineMode=c,this._signal("changeNewLineMode"))},s.prototype.getNewLineMode=function(){return this.$newLineMode},s.prototype.isNewLine=function(c){return c==`\r
994
+ `||c=="\r"||c==`
995
+ `},s.prototype.getLine=function(c){return this.$lines[c]||""},s.prototype.getLines=function(c,u){return this.$lines.slice(c,u+1)},s.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},s.prototype.getLength=function(){return this.$lines.length},s.prototype.getTextRange=function(c){return this.getLinesForRange(c).join(this.getNewLineCharacter())},s.prototype.getLinesForRange=function(c){var u;if(c.start.row===c.end.row)u=[this.getLine(c.start.row).substring(c.start.column,c.end.column)];else{u=this.getLines(c.start.row,c.end.row),u[0]=(u[0]||"").substring(c.start.column);var h=u.length-1;c.end.row-c.start.row==h&&(u[h]=u[h].substring(0,c.end.column))}return u},s.prototype.insertLines=function(c,u){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(c,u)},s.prototype.removeLines=function(c,u){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(c,u)},s.prototype.insertNewLine=function(c){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(c,["",""])},s.prototype.insert=function(c,u){return this.getLength()<=1&&this.$detectNewLine(u),this.insertMergedLines(c,this.$split(u))},s.prototype.insertInLine=function(c,u){var h=this.clippedPos(c.row,c.column),f=this.pos(c.row,c.column+u.length);return this.applyDelta({start:h,end:f,action:"insert",lines:[u]},!0),this.clonePos(f)},s.prototype.clippedPos=function(c,u){var h=this.getLength();c===void 0?c=h:c<0?c=0:c>=h&&(c=h-1,u=void 0);var f=this.getLine(c);return u==null&&(u=f.length),u=Math.min(Math.max(u,0),f.length),{row:c,column:u}},s.prototype.clonePos=function(c){return{row:c.row,column:c.column}},s.prototype.pos=function(c,u){return{row:c,column:u}},s.prototype.$clipPosition=function(c){var u=this.getLength();return c.row>=u?(c.row=Math.max(0,u-1),c.column=this.getLine(u-1).length):(c.row=Math.max(0,c.row),c.column=Math.min(Math.max(c.column,0),this.getLine(c.row).length)),c},s.prototype.insertFullLines=function(c,u){c=Math.min(Math.max(c,0),this.getLength());var h=0;c<this.getLength()?(u=u.concat([""]),h=0):(u=[""].concat(u),c--,h=this.$lines[c].length),this.insertMergedLines({row:c,column:h},u)},s.prototype.insertMergedLines=function(c,u){var h=this.clippedPos(c.row,c.column),f={row:h.row+u.length-1,column:(u.length==1?h.column:0)+u[u.length-1].length};return this.applyDelta({start:h,end:f,action:"insert",lines:u}),this.clonePos(f)},s.prototype.remove=function(c){var u=this.clippedPos(c.start.row,c.start.column),h=this.clippedPos(c.end.row,c.end.column);return this.applyDelta({start:u,end:h,action:"remove",lines:this.getLinesForRange({start:u,end:h})}),this.clonePos(u)},s.prototype.removeInLine=function(c,u,h){var f=this.clippedPos(c,u),m=this.clippedPos(c,h);return this.applyDelta({start:f,end:m,action:"remove",lines:this.getLinesForRange({start:f,end:m})},!0),this.clonePos(f)},s.prototype.removeFullLines=function(c,u){c=Math.min(Math.max(0,c),this.getLength()-1),u=Math.min(Math.max(0,u),this.getLength()-1);var h=u==this.getLength()-1&&c>0,f=u<this.getLength()-1,m=h?c-1:c,v=h?this.getLine(m).length:0,y=f?u+1:u,x=f?0:this.getLine(y).length,_=new o(m,v,y,x),S=this.$lines.slice(c,u+1);return this.applyDelta({start:_.start,end:_.end,action:"remove",lines:this.getLinesForRange(_)}),S},s.prototype.removeNewLine=function(c){c<this.getLength()-1&&c>=0&&this.applyDelta({start:this.pos(c,this.getLine(c).length),end:this.pos(c+1,0),action:"remove",lines:["",""]})},s.prototype.replace=function(c,u){if(c instanceof o||(c=o.fromPoints(c.start,c.end)),u.length===0&&c.isEmpty())return c.start;if(u==this.getTextRange(c))return c.end;this.remove(c);var h;return u?h=this.insert(c.start,u):h=c.start,h},s.prototype.applyDeltas=function(c){for(var u=0;u<c.length;u++)this.applyDelta(c[u])},s.prototype.revertDeltas=function(c){for(var u=c.length-1;u>=0;u--)this.revertDelta(c[u])},s.prototype.applyDelta=function(c,u){var h=c.action=="insert";(h?c.lines.length<=1&&!c.lines[0]:!o.comparePoints(c.start,c.end))||(h&&c.lines.length>2e4?this.$splitAndapplyLargeDelta(c,2e4):(d(this.$lines,c,u),this._signal("change",c)))},s.prototype.$safeApplyDelta=function(c){var u=this.$lines.length;(c.action=="remove"&&c.start.row<u&&c.end.row<u||c.action=="insert"&&c.start.row<=u)&&this.applyDelta(c)},s.prototype.$splitAndapplyLargeDelta=function(c,u){for(var h=c.lines,f=h.length-u+1,m=c.start.row,v=c.start.column,y=0,x=0;y<f;y=x){x+=u-1;var _=h.slice(y,x);_.push(""),this.applyDelta({start:this.pos(m+y,v),end:this.pos(m+x,v=0),action:c.action,lines:_},!0)}c.lines=h.slice(y),c.start.row=m+y,c.start.column=v,this.applyDelta(c,!0)},s.prototype.revertDelta=function(c){this.$safeApplyDelta({start:this.clonePos(c.start),end:this.clonePos(c.end),action:c.action=="insert"?"remove":"insert",lines:c.lines.slice()})},s.prototype.indexToPosition=function(c,u){for(var h=this.$lines||this.getAllLines(),f=this.getNewLineCharacter().length,m=u||0,v=h.length;m<v;m++)if(c-=h[m].length+f,c<0)return{row:m,column:c+h[m].length+f};return{row:v-1,column:c+h[v-1].length+f}},s.prototype.positionToIndex=function(c,u){for(var h=this.$lines||this.getAllLines(),f=this.getNewLineCharacter().length,m=0,v=Math.min(c.row,h.length),y=u||0;y<v;++y)m+=h[y].length+f;return m+c.column},s.prototype.$split=function(c){return c.split(/\r\n|\r|\n/)},s}();i.prototype.$autoNewLine="",i.prototype.$newLineMode="auto",l.implement(i.prototype,g),r.Document=i}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(n,r,a){var l=n("./lib/oop"),d=n("./lib/event_emitter").EventEmitter,g=function(){function o(p,i){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=p;var s=this;this.$worker=function(){if(s.running){for(var c=new Date,u=s.currentLine,h=-1,f=s.doc,m=u;s.lines[u];)u++;var v=f.getLength(),y=0;for(s.running=!1;u<v;){s.$tokenizeRow(u),h=u;do u++;while(s.lines[u]);if(y++,y%5===0&&new Date-c>20){s.running=setTimeout(s.$worker,20);break}}s.currentLine=u,h==-1&&(h=u),m<=h&&s.fireUpdateEvent(m,h)}}}return o.prototype.setTokenizer=function(p){this.tokenizer=p,this.lines=[],this.states=[],this.start(0)},o.prototype.setDocument=function(p){this.doc=p,this.lines=[],this.states=[],this.stop()},o.prototype.fireUpdateEvent=function(p,i){var s={first:p,last:i};this._signal("update",{data:s})},o.prototype.start=function(p){this.currentLine=Math.min(p||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},o.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},o.prototype.$updateOnChange=function(p){var i=p.start.row,s=p.end.row-i;if(s===0)this.lines[i]=null;else if(p.action=="remove")this.lines.splice(i,s+1,null),this.states.splice(i,s+1,null);else{var c=Array(s+1);c.unshift(i,1),this.lines.splice.apply(this.lines,c),this.states.splice.apply(this.states,c)}this.currentLine=Math.min(i,this.currentLine,this.doc.getLength()),this.stop()},o.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},o.prototype.getTokens=function(p){return this.lines[p]||this.$tokenizeRow(p)},o.prototype.getState=function(p){return this.currentLine==p&&this.$tokenizeRow(p),this.states[p]||"start"},o.prototype.$tokenizeRow=function(p){var i=this.doc.getLine(p),s=this.states[p-1],c=this.tokenizer.getLineTokens(i,s,p);return this.states[p]+""!=c.state+""?(this.states[p]=c.state,this.lines[p+1]=null,this.currentLine>p+1&&(this.currentLine=p+1)):this.currentLine==p&&(this.currentLine=p+1),this.lines[p]=c.tokens},o.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},o}();l.implement(g.prototype,d),r.BackgroundTokenizer=g}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(n,r,a){var l=n("./lib/lang"),d=n("./range").Range,g=function(){function o(p,i,s){s===void 0&&(s="text"),this.setRegexp(p),this.clazz=i,this.type=s}return o.prototype.setRegexp=function(p){this.regExp+""!=p+""&&(this.regExp=p,this.cache=[])},o.prototype.update=function(p,i,s,c){if(this.regExp)for(var u=c.firstRow,h=c.lastRow,f={},m=u;m<=h;m++){var v=this.cache[m];v==null&&(v=l.getMatchOffsets(s.getLine(m),this.regExp),v.length>this.MAX_RANGES&&(v=v.slice(0,this.MAX_RANGES)),v=v.map(function(S){return new d(m,S.offset,m,S.offset+S.length)}),this.cache[m]=v.length?v:"");for(var y=v.length;y--;){var x=v[y].toScreenRange(s),_=x.toString();f[_]||(f[_]=!0,i.drawSingleLineMarker(p,x,this.clazz,c))}}},o}();g.prototype.MAX_RANGES=500,r.SearchHighlight=g}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(n,r,a){var l=function(){function S(){this.$keepRedoStack,this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return S.prototype.addSession=function(b){this.$session=b},S.prototype.add=function(b,A,L){if(!this.$fromUndo&&b!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),A===!1||!this.lastDeltas){this.lastDeltas=[];var E=this.$undoStack.length;E>this.$undoDepth-1&&this.$undoStack.splice(0,E-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),b.id=this.$rev=++this.$maxRev}(b.action=="remove"||b.action=="insert")&&(this.$lastDelta=b),this.lastDeltas.push(b)}},S.prototype.addSelection=function(b,A){this.selections.push({value:b,rev:A||this.$rev})},S.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},S.prototype.markIgnored=function(b,A){A==null&&(A=this.$rev+1);for(var L=this.$undoStack,E=L.length;E--;){var M=L[E][0];if(M.id<=b)break;M.id<A&&(M.ignore=!0)}this.lastDeltas=null},S.prototype.getSelection=function(b,A){for(var L=this.selections,E=L.length;E--;){var M=L[E];if(M.rev<b)return A&&(M=L[E+1]),M}},S.prototype.getRevision=function(){return this.$rev},S.prototype.getDeltas=function(b,A){A==null&&(A=this.$rev+1);for(var L=this.$undoStack,E=null,M=0,C=L.length;C--;){var R=L[C][0];if(R.id<A&&!E&&(E=C+1),R.id<=b){M=C+1;break}}return L.slice(M,E)},S.prototype.getChangedRanges=function(b,A){A==null&&(A=this.$rev+1)},S.prototype.getChangedLines=function(b,A){A==null&&(A=this.$rev+1)},S.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 E=L.pop(),M=null;return E&&(M=b.undoChanges(E,A),this.$redoStack.push(E),this.$syncRev()),this.$fromUndo=!1,M}},S.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 E=this.$redoStack.pop(),M=null;return E&&(M=b.redoChanges(E,A),this.$undoStack.push(E),this.$syncRev()),this.$fromUndo=!1,M},S.prototype.$syncRev=function(){var b=this.$undoStack,A=b[b.length-1],L=A&&A[0].id||0;this.$redoStackBaseRev=L,this.$rev=L},S.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=[]},S.prototype.canUndo=function(){return this.$undoStack.length>0},S.prototype.canRedo=function(){return this.$redoStack.length>0},S.prototype.bookmark=function(b){b==null&&(b=this.$rev),this.mark=b},S.prototype.isAtBookmark=function(){return this.$rev===this.mark},S.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},S.prototype.fromJSON=function(b){this.reset(),this.$undoStack=b.$undoStack,this.$redoStack=b.$redoStack},S.prototype.$prettyPrint=function(b){return b?s(b):s(this.$undoStack)+`
996
+ ---
997
+ `+s(this.$redoStack)},S}();l.prototype.hasUndo=l.prototype.canUndo,l.prototype.hasRedo=l.prototype.canRedo,l.prototype.isClean=l.prototype.isAtBookmark,l.prototype.markClean=l.prototype.bookmark;function d(S,b){for(var A=b;A--;){var L=S[A];if(L&&!L[0].ignore){for(;A<b-1;){var E=h(S[A],S[A+1]);S[A]=E[0],S[A+1]=E[1],A++}return!0}}}var g=n("./range").Range,o=g.comparePoints;g.comparePoints;function p(S){return{row:S.row,column:S.column}}function i(S){return{start:p(S.start),end:p(S.end),action:S.action,lines:S.lines.slice()}}function s(S){if(S=S||this,Array.isArray(S))return S.map(s).join(`
998
+ `);var b="";return S.action?(b=S.action=="insert"?"+":"-",b+="["+S.lines+"]"):S.value&&(Array.isArray(S.value)?b=S.value.map(c).join(`
999
+ `):b=c(S.value)),S.start&&(b+=c(S)),(S.id||S.rev)&&(b+=" ("+(S.id||S.rev)+")"),b}function c(S){return S.start.row+":"+S.start.column+"=>"+S.end.row+":"+S.end.column}function u(S,b){var A=S.action=="insert",L=b.action=="insert";if(A&&L)if(o(b.start,S.end)>=0)m(b,S,-1);else if(o(b.start,S.start)<=0)m(S,b,1);else return null;else if(A&&!L)if(o(b.start,S.end)>=0)m(b,S,-1);else if(o(b.end,S.start)<=0)m(S,b,-1);else return null;else if(!A&&L)if(o(b.start,S.start)>=0)m(b,S,1);else if(o(b.start,S.start)<=0)m(S,b,1);else return null;else if(!A&&!L)if(o(b.start,S.start)>=0)m(b,S,1);else if(o(b.end,S.start)<=0)m(S,b,-1);else return null;return[b,S]}function h(S,b){for(var A=S.length;A--;)for(var L=0;L<b.length;L++)if(!u(S[A],b[L])){for(;A<S.length;){for(;L--;)u(b[L],S[A]);L=b.length,A++}return[S,b]}return S.selectionBefore=b.selectionBefore=S.selectionAfter=b.selectionAfter=null,[b,S]}function f(S,b){var A=S.action=="insert",L=b.action=="insert";if(A&&L)o(S.start,b.start)<0?m(b,S,1):m(S,b,1);else if(A&&!L)o(S.start,b.end)>=0?m(S,b,-1):(o(S.start,b.start)<=0||m(S,g.fromPoints(b.start,S.start),-1),m(b,S,1));else if(!A&&L)o(b.start,S.end)>=0?m(b,S,-1):(o(b.start,S.start)<=0||m(b,g.fromPoints(S.start,b.start),-1),m(S,b,1));else if(!A&&!L)if(o(b.start,S.end)>=0)m(b,S,-1);else if(o(b.end,S.start)<=0)m(S,b,-1);else{var E,M;return o(S.start,b.start)<0&&(E=S,S=y(S,b.start)),o(S.end,b.end)>0&&(M=y(S,b.end)),v(b.end,S.start,S.end,-1),M&&!E&&(S.lines=M.lines,S.start=M.start,S.end=M.end,M=S),[b,E,M].filter(Boolean)}return[b,S]}function m(S,b,A){v(S.start,b.start,b.end,A),v(S.end,b.start,b.end,A)}function v(S,b,A,L){S.row==(L==1?b:A).row&&(S.column+=L*(A.column-b.column)),S.row+=L*(A.row-b.row)}function y(S,b){var A=S.lines,L=S.end;S.end=p(b);var E=S.end.row-S.start.row,M=A.splice(E,A.length),C=E?b.column:b.column-S.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:S.action};return R}function x(S,b){b=i(b);for(var A=S.length;A--;){for(var L=S[A],E=0;E<L.length;E++){var M=L[E],C=f(M,b);b=C[0],C.length!=2&&(C[2]?(L.splice(E+1,1,C[1],C[2]),E++):C[1]||(L.splice(E,1),E--))}L.length||S.splice(A,1)}return S}function _(S,b){for(var A=0;A<b.length;A++)for(var L=b[A],E=0;E<L.length;E++)x(S,L[E])}r.UndoManager=l}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(n,r,a){var l=n("../range").Range,d=function(){function g(o,p){this.foldData=o,Array.isArray(p)?this.folds=p:p=this.folds=[p];var i=p[p.length-1];this.range=new l(p[0].start.row,p[0].start.column,i.end.row,i.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(s){s.setFoldLine(this)},this)}return g.prototype.shiftRow=function(o){this.start.row+=o,this.end.row+=o,this.folds.forEach(function(p){p.start.row+=o,p.end.row+=o})},g.prototype.addFold=function(o){if(o.sameRow){if(o.start.row<this.startRow||o.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(o),this.folds.sort(function(p,i){return-p.range.compareEnd(i.start.row,i.start.column)}),this.range.compareEnd(o.start.row,o.start.column)>0?(this.end.row=o.end.row,this.end.column=o.end.column):this.range.compareStart(o.end.row,o.end.column)<0&&(this.start.row=o.start.row,this.start.column=o.start.column)}else if(o.start.row==this.end.row)this.folds.push(o),this.end.row=o.end.row,this.end.column=o.end.column;else if(o.end.row==this.start.row)this.folds.unshift(o),this.start.row=o.start.row,this.start.column=o.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");o.foldLine=this},g.prototype.containsRow=function(o){return o>=this.start.row&&o<=this.end.row},g.prototype.walk=function(o,p,i){var s=0,c=this.folds,u,h,f,m=!0;p==null&&(p=this.end.row,i=this.end.column);for(var v=0;v<c.length;v++){if(u=c[v],h=u.range.compareStart(p,i),h==-1){o(null,p,i,s,m);return}if(f=o(null,u.start.row,u.start.column,s,m),f=!f&&o(u.placeholder,u.start.row,u.start.column,s),f||h===0)return;m=!u.sameRow,s=u.end.column}o(null,p,i,s,m)},g.prototype.getNextFoldTo=function(o,p){for(var i,s,c=0;c<this.folds.length;c++){if(i=this.folds[c],s=i.range.compareEnd(o,p),s==-1)return{fold:i,kind:"after"};if(s===0)return{fold:i,kind:"inside"}}return null},g.prototype.addRemoveChars=function(o,p,i){var s=this.getNextFoldTo(o,p),c,u;if(s){if(c=s.fold,s.kind=="inside"&&c.start.column!=p&&c.start.row!=o)window.console&&window.console.log(o,p,c);else if(c.start.row==o){u=this.folds;var h=u.indexOf(c);for(h===0&&(this.start.column+=i),h;h<u.length;h++){if(c=u[h],c.start.column+=i,!c.sameRow)return;c.end.column+=i}this.end.column+=i}}},g.prototype.split=function(o,p){var i=this.getNextFoldTo(o,p);if(!i||i.kind=="inside")return null;var s=i.fold,c=this.folds,u=this.foldData,h=c.indexOf(s),f=c[h-1];this.end.row=f.end.row,this.end.column=f.end.column,c=c.splice(h,c.length-h);var m=new g(u,c);return u.splice(u.indexOf(this)+1,0,m),m},g.prototype.merge=function(o){for(var p=o.folds,i=0;i<p.length;i++)this.addFold(p[i]);var s=this.foldData;s.splice(s.indexOf(o),1)},g.prototype.toString=function(){var o=[this.range.toString()+": ["];return this.folds.forEach(function(p){o.push(" "+p.toString())}),o.push("]"),o.join(`
1000
+ `)},g.prototype.idxToPosition=function(o){for(var p=0,i=0;i<this.folds.length;i++){var s=this.folds[i];if(o-=s.start.column-p,o<0)return{row:s.start.row,column:s.start.column+o};if(o-=s.placeholder.length,o<0)return s.start;p=s.end.column}return{row:this.end.row,column:this.end.column+o}},g}();r.FoldLine=d}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(n,r,a){var l=n("./range").Range,d=l.comparePoints,g=function(){function o(){this.ranges=[],this.$bias=1}return o.prototype.pointIndex=function(p,i,s){for(var c=this.ranges,u=s||0;u<c.length;u++){var h=c[u],f=d(p,h.end);if(!(f>0)){var m=d(p,h.start);return f===0?i&&m!==0?-u-2:u:m>0||m===0&&!i?u:-u-1}}return-u-1},o.prototype.add=function(p){var i=!p.isEmpty(),s=this.pointIndex(p.start,i);s<0&&(s=-s-1);var c=this.pointIndex(p.end,i,s);return c<0?c=-c-1:c++,this.ranges.splice(s,c-s,p)},o.prototype.addList=function(p){for(var i=[],s=p.length;s--;)i.push.apply(i,this.add(p[s]));return i},o.prototype.substractPoint=function(p){var i=this.pointIndex(p);if(i>=0)return this.ranges.splice(i,1)},o.prototype.merge=function(){var p=[],i=this.ranges;i=i.sort(function(f,m){return d(f.start,m.start)});for(var s=i[0],c,u=1;u<i.length;u++){c=s,s=i[u];var h=d(c.end,s.start);h<0||h==0&&!c.isEmpty()&&!s.isEmpty()||(d(c.end,s.end)<0&&(c.end.row=s.end.row,c.end.column=s.end.column),i.splice(u,1),p.push(s),s=c,u--)}return this.ranges=i,p},o.prototype.contains=function(p,i){return this.pointIndex({row:p,column:i})>=0},o.prototype.containsPoint=function(p){return this.pointIndex(p)>=0},o.prototype.rangeAtPoint=function(p){var i=this.pointIndex(p);if(i>=0)return this.ranges[i]},o.prototype.clipRows=function(p,i){var s=this.ranges;if(s[0].start.row>i||s[s.length-1].start.row<p)return[];var c=this.pointIndex({row:p,column:0});c<0&&(c=-c-1);var u=this.pointIndex({row:i,column:0},c);u<0&&(u=-u-1);for(var h=[],f=c;f<u;f++)h.push(s[f]);return h},o.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},o.prototype.attach=function(p){this.session&&this.detach(),this.session=p,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},o.prototype.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},o.prototype.$onChange=function(p){for(var i=p.start,s=p.end,c=i.row,u=s.row,h=this.ranges,f=0,m=h.length;f<m;f++){var v=h[f];if(v.end.row>=c)break}if(p.action=="insert")for(var y=u-c,x=-i.column+s.column;f<m;f++){var v=h[f];if(v.start.row>c)break;if(v.start.row==c&&v.start.column>=i.column&&(v.start.column==i.column&&this.$bias<=0||(v.start.column+=x,v.start.row+=y)),v.end.row==c&&v.end.column>=i.column){if(v.end.column==i.column&&this.$bias<0)continue;v.end.column==i.column&&x>0&&f<m-1&&v.end.column>v.start.column&&v.end.column==h[f+1].start.column&&(v.end.column-=x),v.end.column+=x,v.end.row+=y}}else for(var y=c-u,x=i.column-s.column;f<m;f++){var v=h[f];if(v.start.row>u)break;v.end.row<u&&(c<v.end.row||c==v.end.row&&i.column<v.end.column)?(v.end.row=c,v.end.column=i.column):v.end.row==u?v.end.column<=s.column?(y||v.end.column>i.column)&&(v.end.column=i.column,v.end.row=i.row):(v.end.column+=x,v.end.row+=y):v.end.row>u&&(v.end.row+=y),v.start.row<u&&(c<v.start.row||c==v.start.row&&i.column<v.start.column)?(v.start.row=c,v.start.column=i.column):v.start.row==u?v.start.column<=s.column?(y||v.start.column>i.column)&&(v.start.column=i.column,v.start.row=i.row):(v.start.column+=x,v.start.row+=y):v.start.row>u&&(v.start.row+=y)}if(y!=0&&f<m)for(;f<m;f++){var v=h[f];v.start.row+=y,v.end.row+=y}},o}();g.prototype.comparePoints=d,r.RangeList=g}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(n,r,a){var l=this&&this.__extends||function(){var c=function(u,h){return c=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])},c(u,h)};return function(u,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");c(u,h);function f(){this.constructor=u}u.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}}(),d=n("../range_list").RangeList,g=function(c){l(u,c);function u(h,f){var m=c.call(this)||this;return m.foldLine=null,m.placeholder=f,m.range=h,m.start=h.start,m.end=h.end,m.sameRow=h.start.row==h.end.row,m.subFolds=m.ranges=[],m}return u.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},u.prototype.setFoldLine=function(h){this.foldLine=h,this.subFolds.forEach(function(f){f.setFoldLine(h)})},u.prototype.clone=function(){var h=this.range.clone(),f=new u(h,this.placeholder);return this.subFolds.forEach(function(m){f.subFolds.push(m.clone())}),f.collapseChildren=this.collapseChildren,f},u.prototype.addSubFold=function(h){if(!this.range.isEqual(h)){p(h,this.start);for(var x=h.start.row,_=h.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(h))return v.addSubFold(h);y=1}for(var x=h.range.end.row,_=h.range.end.column,S=f,m=-1;S<this.subFolds.length&&(m=this.subFolds[S].range.compare(x,_),m==1);S++);m==0&&S++;for(var b=this.subFolds.splice(f,S-f,h),A=m==0?b.length-1:b.length,L=y;L<A;L++)h.addSubFold(b[L]);return h.setFoldLine(this.foldLine),h}},u.prototype.restoreRange=function(h){return s(h,this.start)},u}(d);function o(c,u){c.row-=u.row,c.row==0&&(c.column-=u.column)}function p(c,u){o(c.start,u),o(c.end,u)}function i(c,u){c.row==0&&(c.column+=u.column),c.row+=u.row}function s(c,u){i(c.start,u),i(c.end,u)}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,a){var l=n("../range").Range,d=n("./fold_line").FoldLine,g=n("./fold").Fold,o=n("../token_iterator").TokenIterator,p=n("../mouse/mouse_event").MouseEvent;function i(){this.getFoldAt=function(s,c,u){var h=this.getFoldLine(s);if(!h)return null;for(var f=h.folds,m=0;m<f.length;m++){var v=f[m].range;if(v.contains(s,c)){if(u==1&&v.isEnd(s,c)&&!v.isEmpty())continue;if(u==-1&&v.isStart(s,c)&&!v.isEmpty())continue;return f[m]}}},this.getFoldsInRange=function(s){var c=s.start,u=s.end,h=this.$foldData,f=[];c.column+=1,u.column-=1;for(var m=0;m<h.length;m++){var v=h[m].range.compareRange(s);if(v!=2){if(v==-2)break;for(var y=h[m].folds,x=0;x<y.length;x++){var _=y[x];if(v=_.range.compareRange(s),v==-2)break;if(v==2)continue;if(v==42)break;f.push(_)}}}return c.column-=1,u.column+=1,f},this.getFoldsInRangeList=function(s){if(Array.isArray(s)){var c=[];s.forEach(function(u){c=c.concat(this.getFoldsInRange(u))},this)}else var c=this.getFoldsInRange(s);return c},this.getAllFolds=function(){for(var s=[],c=this.$foldData,u=0;u<c.length;u++)for(var h=0;h<c[u].folds.length;h++)s.push(c[u].folds[h]);return s},this.getFoldStringAt=function(s,c,u,h){if(h=h||this.getFoldLine(s),!h)return null;for(var f={end:{column:0}},m,v,y=0;y<h.folds.length;y++){v=h.folds[y];var x=v.range.compareEnd(s,c);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)),u==-1?m.substring(0,c-f.end.column):u==1?m.substring(c-f.end.column):m},this.getFoldLine=function(s,c){var u=this.$foldData,h=0;for(c&&(h=u.indexOf(c)),h==-1&&(h=0),h;h<u.length;h++){var f=u[h];if(f.start.row<=s&&f.end.row>=s)return f;if(f.end.row>s)return null}return null},this.getNextFoldLine=function(s,c){var u=this.$foldData,h=0;for(c&&(h=u.indexOf(c)),h==-1&&(h=0),h;h<u.length;h++){var f=u[h];if(f.end.row>=s)return f}return null},this.getFoldedRowCount=function(s,c){for(var u=this.$foldData,h=c-s+1,f=0;f<u.length;f++){var m=u[f],v=m.end.row,y=m.start.row;if(v>=c){y<c&&(y>=s?h-=c-y:h=0);break}else v>=s&&(y>=s?h-=v-y:h-=v-s+1)}return h},this.$addFoldLine=function(s){return this.$foldData.push(s),this.$foldData.sort(function(c,u){return c.start.row-u.start.row}),s},this.addFold=function(s,c){var u=this.$foldData,h=!1,f;s instanceof g?f=s:(f=new g(c,s),f.collapseChildren=c.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),S=this.getFoldAt(y,x,-1);if(_&&S==_)return _.addSubFold(f);_&&!_.range.isStart(m,v)&&this.removeFold(_),S&&!S.range.isEnd(y,x)&&this.removeFold(S);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<u.length;A++){var L=u[A];if(y==L.start.row){L.addFold(f),h=!0;break}else if(m==L.end.row){if(L.addFold(f),h=!0,!f.sameRow){var E=u[A+1];if(E&&E.start.row==y){L.merge(E);break}}break}else if(y<=L.start.row)break}return h||(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(s){s.forEach(function(c){this.addFold(c)},this)},this.removeFold=function(s){var c=s.foldLine,u=c.start.row,h=c.end.row,f=this.$foldData,m=c.folds;if(m.length==1)f.splice(f.indexOf(c),1);else if(c.range.isEnd(s.end.row,s.end.column))m.pop(),c.end.row=m[m.length-1].end.row,c.end.column=m[m.length-1].end.column;else if(c.range.isStart(s.start.row,s.start.column))m.shift(),c.start.row=m[0].start.row,c.start.column=m[0].start.column;else if(s.sameRow)m.splice(m.indexOf(s),1);else{var v=c.split(s.start.row,s.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(u,h):this.$updateRowLengthCache(u,h)),this.$modified=!0,this._signal("changeFold",{data:s,action:"remove"})},this.removeFolds=function(s){for(var c=[],u=0;u<s.length;u++)c.push(s[u]);c.forEach(function(h){this.removeFold(h)},this),this.$modified=!0},this.expandFold=function(s){this.removeFold(s),s.subFolds.forEach(function(c){s.restoreRange(c),this.addFold(c)},this),s.collapseChildren>0&&this.foldAll(s.start.row+1,s.end.row,s.collapseChildren-1),s.subFolds=[]},this.expandFolds=function(s){s.forEach(function(c){this.expandFold(c)},this)},this.unfold=function(s,c){var u,h;if(s==null)u=new l(0,0,this.getLength(),0),c==null&&(c=!0);else if(typeof s=="number")u=new l(s,0,s,this.getLine(s).length);else if("row"in s)u=l.fromPoints(s,s);else{if(Array.isArray(s))return h=[],s.forEach(function(m){h=h.concat(this.unfold(m))},this),h;u=s}h=this.getFoldsInRangeList(u);for(var f=h;h.length==1&&l.comparePoints(h[0].start,u.start)<0&&l.comparePoints(h[0].end,u.end)>0;)this.expandFolds(h),h=this.getFoldsInRangeList(u);if(c!=!1?this.removeFolds(h):this.expandFolds(h),f.length)return f},this.isRowFolded=function(s,c){return!!this.getFoldLine(s,c)},this.getRowFoldEnd=function(s,c){var u=this.getFoldLine(s,c);return u?u.end.row:s},this.getRowFoldStart=function(s,c){var u=this.getFoldLine(s,c);return u?u.start.row:s},this.getFoldDisplayLine=function(s,c,u,h,f){h==null&&(h=s.start.row),f==null&&(f=0),c==null&&(c=s.end.row),u==null&&(u=this.getLine(c).length);var m=this.doc,v="";return s.walk(function(y,x,_,S){if(!(x<h)){if(x==h){if(_<f)return;S=Math.max(f,S)}y!=null?v+=y:v+=m.getLine(x).substring(S,_)}},c,u),v},this.getDisplayLine=function(s,c,u,h){var f=this.getFoldLine(s);if(f)return this.getFoldDisplayLine(f,s,c,u,h);var m;return m=this.doc.getLine(s),m.substring(h||0,c||m.length)},this.$cloneFoldData=function(){var s=[];return s=this.$foldData.map(function(c){var u=c.folds.map(function(h){return h.clone()});return new d(s,u)}),s},this.toggleFold=function(s){var c=this.selection,u=c.getRange(),h,f;if(u.isEmpty()){var m=u.start;if(h=this.getFoldAt(m.row,m.column),h){this.expandFold(h);return}else(f=this.findMatchingBracket(m))?u.comparePoint(f)==1?u.end=f:(u.start=f,u.start.column++,u.end.column--):(f=this.findMatchingBracket({row:m.row,column:m.column+1}))?(u.comparePoint(f)==1?u.end=f:u.start=f,u.start.column++):u=this.getCommentFoldRange(m.row,m.column)||u}else{var v=this.getFoldsInRange(u);if(s&&v.length){this.expandFolds(v);return}else v.length==1&&(h=v[0])}if(h||(h=this.getFoldAt(u.start.row,u.start.column)),h&&h.range.toString()==u.toString()){this.expandFold(h);return}var y="...";if(!u.isMultiLine()){if(y=this.getTextRange(u),y.length<4)return;y=y.trim().substring(0,2)+".."}this.addFold(y,u)},this.getCommentFoldRange=function(s,c,u){var h=new o(this,s,c),f=h.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 l;if(u!=1){do f=h.stepBackward();while(f&&v.test(f.type));f=h.stepForward()}y.start.row=h.getCurrentTokenRow(),y.start.column=h.getCurrentTokenColumn()+f.value.length,h=new o(this,s,c);var x=this.getState(h.$row);if(u!=-1){var _=-1;do if(f=h.stepForward(),_==-1){var S=this.getState(h.$row);x.toString()!==S.toString()&&(_=h.$row)}else if(h.$row>_)break;while(f&&v.test(f.type));f=h.stepBackward()}else f=h.getCurrentToken();return y.end.row=h.getCurrentTokenRow(),y.end.column=h.getCurrentTokenColumn(),y}},this.foldAll=function(s,c,u,h){u==null&&(u=1e5);var f=this.foldWidgets;if(f){c=c||this.getLength(),s=s||0;for(var m=s;m<c;m++)if(f[m]==null&&(f[m]=this.getFoldWidget(m)),f[m]=="start"&&!(h&&!h(m))){var v=this.getFoldWidgetRange(m);v&&v.isMultiLine()&&v.end.row<=c&&v.start.row>=s&&(m=v.end.row,v.collapseChildren=u,this.addFold("...",v))}}},this.foldToLevel=function(s){for(this.foldAll();s-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var s=this;this.foldAll(null,null,null,function(c){for(var u=s.getTokens(c),h=0;h<u.length;h++){var f=u[h];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(s){if(!this.$foldStyles[s])throw new Error("invalid fold style: "+s+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=s){this.$foldStyle=s,s=="manual"&&this.unfold();var c=this.$foldMode;this.$setFolding(null),this.$setFolding(c)}},this.$setFolding=function(s){if(this.$foldMode!=s){if(this.$foldMode=s,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),!s||this.$foldStyle=="manual"){this.foldWidgets=null;return}this.foldWidgets=[],this.getFoldWidget=s.getFoldWidget.bind(s,this,this.$foldStyle),this.getFoldWidgetRange=s.getFoldWidgetRange.bind(s,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(s,c){var u=this.foldWidgets;if(!u||c&&u[s])return{};for(var h=s-1,f;h>=0;){var m=u[h];if(m==null&&(m=u[h]=this.getFoldWidget(h)),m=="start"){var v=this.getFoldWidgetRange(h);if(f||(f=v),v&&v.end.row>=s)break}h--}return{range:h!==-1&&v,firstRange:f}},this.onFoldWidgetClick=function(s,c){c instanceof p&&(c=c.domEvent);var u={children:c.shiftKey,all:c.ctrlKey||c.metaKey,siblings:c.altKey},h=this.$toggleFoldWidget(s,u);if(!h){var f=c.target||c.srcElement;f&&/ace_fold-widget/.test(f.className)&&(f.className+=" ace_invalid")}},this.$toggleFoldWidget=function(s,c){if(this.getFoldWidget){var u=this.getFoldWidget(s),h=this.getLine(s),f=u==="end"?-1:1,m=this.getFoldAt(s,f===-1?0:h.length,f);if(m)return c.children||c.all?this.removeFold(m):this.expandFold(m),m;var v=this.getFoldWidgetRange(s,!0);if(v&&!v.isMultiLine()&&(m=this.getFoldAt(v.start.row,v.start.column,1),m&&v.isEqual(m.range)))return this.removeFold(m),m;if(c.siblings){var y=this.getParentFoldRangeData(s);if(y.range)var x=y.range.start.row+1,_=y.range.end.row;this.foldAll(x,_,c.all?1e4:0)}else c.children?(_=v?v.end.row:this.getLength(),this.foldAll(s+1,_,c.all?1e4:0)):v&&(c.all&&(v.collapseChildren=1e4),this.addFold("...",v));return v}},this.toggleFoldWidget=function(s){var c=this.selection.getCursor().row;c=this.getRowFoldStart(c);var u=this.$toggleFoldWidget(c,{});if(!u){var h=this.getParentFoldRangeData(c,!0);if(u=h.range||h.firstRange,u){c=u.start.row;var f=this.getFoldAt(c,this.getLine(c).length,1);f?this.removeFold(f):this.addFold("...",u)}}},this.updateFoldWidgets=function(s){var c=s.start.row,u=s.end.row-c;if(u===0)this.foldWidgets[c]=null;else if(s.action=="remove")this.foldWidgets.splice(c,u+1,null);else{var h=Array(u+1);h.unshift(c,1),this.foldWidgets.splice.apply(this.foldWidgets,h)}},this.tokenizerUpdateFoldWidgets=function(s){var c=s.data;c.first!=c.last&&this.foldWidgets.length>c.first&&this.foldWidgets.splice(c.first,this.foldWidgets.length)}}r.Folding=i}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(n,r,a){var l=n("../token_iterator").TokenIterator,d=n("../range").Range;function g(){this.findMatchingBracket=function(o,p){if(o.column==0)return null;var i=p||this.getLine(o.row).charAt(o.column-1);if(i=="")return null;var s=i.match(/([\(\[\{])|([\)\]\}])/);return s?s[1]?this.$findClosingBracket(s[1],o):this.$findOpeningBracket(s[2],o):null},this.getBracketRange=function(o){var p=this.getLine(o.row),i=!0,s,c=p.charAt(o.column-1),u=c&&c.match(/([\(\[\{])|([\)\]\}])/);if(u||(c=p.charAt(o.column),o={row:o.row,column:o.column+1},u=c&&c.match(/([\(\[\{])|([\)\]\}])/),i=!1),!u)return null;if(u[1]){var h=this.$findClosingBracket(u[1],o);if(!h)return null;s=d.fromPoints(o,h),i||(s.end.column++,s.start.column--),s.cursor=s.end}else{var h=this.$findOpeningBracket(u[2],o);if(!h)return null;s=d.fromPoints(h,o),i||(s.start.column++,s.end.column--),s.cursor=s.start}return s},this.getMatchingBracketRanges=function(o,p){var i=this.getLine(o.row),s=/([\(\[\{])|([\)\]\}])/,c=!p&&i.charAt(o.column-1),u=c&&c.match(s);if(u||(c=(p===void 0||p)&&i.charAt(o.column),o={row:o.row,column:o.column+1},u=c&&c.match(s)),!u)return null;var h=new d(o.row,o.column-1,o.row,o.column),f=u[1]?this.$findClosingBracket(u[1],o):this.$findOpeningBracket(u[2],o);if(!f)return[h];var m=new d(f.row,f.column,f.row,f.column+1);return[h,m]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(o,p,i){var s=this.$brackets[o],c=1,u=new l(this,p.row,p.column),h=u.getCurrentToken();if(h||(h=u.stepForward()),!!h){i||(i=new RegExp("(\\.?"+h.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var f=p.column-u.getCurrentTokenColumn()-2,m=h.value;;){for(;f>=0;){var v=m.charAt(f);if(v==s){if(c-=1,c==0)return{row:u.getCurrentTokenRow(),column:f+u.getCurrentTokenColumn()}}else v==o&&(c+=1);f-=1}do h=u.stepBackward();while(h&&!i.test(h.type));if(h==null)break;m=h.value,f=m.length-1}return null}},this.$findClosingBracket=function(o,p,i){var s=this.$brackets[o],c=1,u=new l(this,p.row,p.column),h=u.getCurrentToken();if(h||(h=u.stepForward()),!!h){i||(i=new RegExp("(\\.?"+h.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var f=p.column-u.getCurrentTokenColumn();;){for(var m=h.value,v=m.length;f<v;){var y=m.charAt(f);if(y==s){if(c-=1,c==0)return{row:u.getCurrentTokenRow(),column:f+u.getCurrentTokenColumn()}}else y==o&&(c+=1);f+=1}do h=u.stepForward();while(h&&!i.test(h.type));if(h==null)break;f=0}return null}},this.getMatchingTags=function(o){var p=new l(this,o.row,o.column),i=this.$findTagName(p);if(i){var s=p.stepBackward();return s.value==="<"?this.$findClosingTag(p,i):this.$findOpeningTag(p,i)}},this.$findTagName=function(o){var p=o.getCurrentToken(),i=!1,s=!1;if(p&&p.type.indexOf("tag-name")===-1)do s?p=o.stepBackward():p=o.stepForward(),p&&(p.value==="/>"?s=!0:p.type.indexOf("tag-name")!==-1&&(i=!0));while(p&&!i);return p},this.$findClosingTag=function(o,p){var i,s=p.value,c=p.value,u=0,h=new d(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+1);p=o.stepForward();var f=new d(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+p.value.length),m=!1;do{if(i=p,i.type.indexOf("tag-close")!==-1&&!m){var v=new d(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+1);m=!0}if(p=o.stepForward(),p){if(p.value===">"&&!m){var v=new d(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+1);m=!0}if(p.type.indexOf("tag-name")!==-1){if(s=p.value,c===s){if(i.value==="<")u++;else if(i.value==="</"&&(u--,u<0)){o.stepBackward();var y=new d(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+2);p=o.stepForward();var x=new d(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+p.value.length);if(p.type.indexOf("tag-close")===-1&&(p=o.stepForward()),p&&p.value===">")var _=new d(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+1);else return}}}else if(c===s&&p.value==="/>"&&(u--,u<0))var y=new d(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+2),x=y,_=x,v=new d(f.end.row,f.end.column,f.end.row,f.end.column+1)}}while(p&&u>=0);if(h&&v&&y&&_&&f&&x)return{openTag:new d(h.start.row,h.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(o,p){var i=o.getCurrentToken(),s=p.value,c=0,u=o.getCurrentTokenRow(),h=o.getCurrentTokenColumn(),f=h+2,m=new d(u,h,u,f);o.stepForward();var v=new d(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+p.value.length);if(p.type.indexOf("tag-close")===-1&&(p=o.stepForward()),!(!p||p.value!==">")){var y=new d(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+1);o.stepBackward(),o.stepBackward();do if(p=i,u=o.getCurrentTokenRow(),h=o.getCurrentTokenColumn(),f=h+p.value.length,i=o.stepBackward(),p){if(p.type.indexOf("tag-name")!==-1){if(s===p.value)if(i.value==="<"){if(c++,c>0){var x=new d(u,h,u,f),_=new d(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+1);do p=o.stepForward();while(p&&p.value!==">");var S=new d(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+1)}}else i.value==="</"&&c--}else if(p.value==="/>"){for(var b=0,A=i;A;){if(A.type.indexOf("tag-name")!==-1&&A.value===s){c--;break}else if(A.value==="<")break;A=o.stepBackward(),b++}for(var L=0;L<b;L++)o.stepForward()}}while(i&&c<=0);if(_&&S&&m&&y&&x&&v)return{openTag:new d(_.start.row,_.start.column,S.end.row,S.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,a){var l=n("./lib/oop"),d=n("./lib/lang"),g=n("./bidihandler").BidiHandler,o=n("./config"),p=n("./lib/event_emitter").EventEmitter,i=n("./selection").Selection,s=n("./mode/text").Mode,c=n("./range").Range,u=n("./document").Document,h=n("./background_tokenizer").BackgroundTokenizer,f=n("./search_highlight").SearchHighlight,m=n("./undomanager").UndoManager,v=function(){function C(R,$){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(`
1001
+ `)},this.bgTokenizer=new h(new s().getTokenizer(),this);var w=this;this.bgTokenizer.on("update",function(k){w._signal("tokenizerUpdate",k)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof R!="object"||!R.getLine)&&(R=new u(R)),this.setDocument(R),this.selection=new i(this),this.$bidiHandler=new g(this),o.resetOptions(this),this.setMode($),o._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 $=this.$docRowCache.length,w=this.$getRowCacheIndex(this.$docRowCache,R)+1;$>w&&(this.$docRowCache.splice(w,$),this.$screenRowCache.splice(w,$))},C.prototype.$getRowCacheIndex=function(R,$){for(var w=0,k=R.length-1;w<=k;){var T=w+k>>1,O=R[T];if($>O)w=T+1;else if($<O)k=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 $=R.data;this.$resetRowCache($.start.row)},C.prototype.onChange=function(R){this.$modified=!0,this.$bidiHandler.onChange(R),this.$resetRowCache(R.start.row);var $=this.$updateInternalDataOnChange(R);!this.$fromUndo&&this.$undoManager&&($&&$.length&&(this.$undoManager.add({action:"removeFolds",folds:$},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 $=new m;$.$undoStack=R.history.undo,$.$redoStack=R.history.redo,$.mark=R.history.mark,$.$rev=R.history.rev;var w=new C(R.value);return R.folds.forEach(function(k){w.addFold("...",c.fromPoints(k.start,k.end))}),w.setAnnotations(R.annotations),w.setBreakpoints(R.breakpoints),w.setMode(R.mode),w.setScrollLeft(R.scrollLeft),w.setScrollTop(R.scrollTop),w.setUndoManager($),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,$){var w=this.bgTokenizer.getTokens(R),k,T=0;if($==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>=$));O++);return k=w[O],k?(k.index=O,k.start=T-k.value.length,k):null},C.prototype.setUndoManager=function(R){if(this.$undoManager=R,this.$informUndoManager&&this.$informUndoManager.cancel(),R){var $=this;R.addSession(this),this.$syncInformUndoManager=function(){$.$informUndoManager.cancel(),$.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,$){this.$decorations[R]||(this.$decorations[R]=""),this.$decorations[R]+=" "+$,this._signal("changeBreakpoint",{})},C.prototype.removeGutterDecoration=function(R,$){this.$decorations[R]=(this.$decorations[R]||"").replace(" "+$,""),this._signal("changeBreakpoint",{})},C.prototype.getBreakpoints=function(){return this.$breakpoints},C.prototype.setBreakpoints=function(R){this.$breakpoints=[];for(var $=0;$<R.length;$++)this.$breakpoints[R[$]]="ace_breakpoint";this._signal("changeBreakpoint",{})},C.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},C.prototype.setBreakpoint=function(R,$){$===void 0&&($="ace_breakpoint"),$?this.$breakpoints[R]=$:delete this.$breakpoints[R],this._signal("changeBreakpoint",{})},C.prototype.clearBreakpoint=function(R){delete this.$breakpoints[R],this._signal("changeBreakpoint",{})},C.prototype.addMarker=function(R,$,w,k){var T=this.$markerId++,O={range:R,type:w||"line",renderer:typeof w=="function"?w:null,clazz:$,inFront:!!k,id:T};return k?(this.$frontMarkers[T]=O,this._signal("changeFrontMarker")):(this.$backMarkers[T]=O,this._signal("changeBackMarker")),T},C.prototype.addDynamicMarker=function(R,$){if(R.update){var w=this.$markerId++;return R.id=w,R.inFront=!!$,$?(this.$frontMarkers[w]=R,this._signal("changeFrontMarker")):(this.$backMarkers[w]=R,this._signal("changeBackMarker")),R}},C.prototype.removeMarker=function(R){var $=this.$frontMarkers[R]||this.$backMarkers[R];if($){var w=$.inFront?this.$frontMarkers:this.$backMarkers;delete w[R],this._signal($.inFront?"changeFrontMarker":"changeBackMarker")}},C.prototype.getMarkers=function(R){return R?this.$frontMarkers:this.$backMarkers},C.prototype.highlight=function(R){if(!this.$searchHighlight){var $=new f(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker($)}this.$searchHighlight.setRegexp(R)},C.prototype.highlightLines=function(R,$,w,k){typeof $!="number"&&(w=$,$=R),w||(w="ace_step");var T=new c(R,0,$,1/0);return T.id=this.addMarker(T,w,"fullLine",k),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 $=R.match(/^.*?(\r?\n)/m);$?this.$autoNewLine=$[1]:this.$autoNewLine=`
1002
+ `},C.prototype.getWordRange=function(R,$){var w=this.getLine(R),k=!1;if($>0&&(k=!!w.charAt($-1).match(this.tokenRe)),k||(k=!!w.charAt($).match(this.tokenRe)),k)var T=this.tokenRe;else if(/^\s+$/.test(w.slice($-1,$+1)))var T=/\s/;else var T=this.nonTokenRe;var O=$;if(O>0){do O--;while(O>=0&&w.charAt(O).match(T));O++}for(var I=$;I<w.length&&w.charAt(I).match(T);)I++;return new c(R,O,R,I)},C.prototype.getAWordRange=function(R,$){for(var w=this.getWordRange(R,$),k=this.getLine(w.end.row);k.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 $=R.data;this.bgTokenizer.start($.first),this._signal("tokenizerUpdate",R)},C.prototype.setMode=function(R,$){if(R&&typeof R=="object"){if(R.getTokenizer)return this.$onChangeMode(R);var w=R,k=w.path}else k=R||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new s),this.$modes[k]&&!w){this.$onChangeMode(this.$modes[k]),$&&$();return}this.$modeId=k,o.loadModule(["mode",k],(function(T){if(this.$modeId!==k)return $&&$();this.$modes[k]&&!w?this.$onChangeMode(this.$modes[k]):T&&T.Mode&&(T=new T.Mode(w),w||(this.$modes[k]=T,T.$id=k),this.$onChangeMode(T)),$&&$()}).bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},C.prototype.$onChangeMode=function(R,$){if($||(this.$modeId=R.$id),this.$mode!==R){var w=this.$mode;this.$mode=R,this.$stopWorker(),this.$useWorker&&this.$startWorker();var k=R.getTokenizer();if(k.on!==void 0){var T=this.onReloadTokenizer.bind(this);k.on("update",T)}this.bgTokenizer.setTokenizer(k),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=R.tokenRe,this.nonTokenRe=R.nonTokenRe,$||(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){o.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($){$&&$.screenWidth>R&&(R=$.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 $=this.doc.getAllLines(),w=this.$rowLengthCache,k=0,T=0,O=this.$foldData[T],I=O?O.start.row:1/0,N=$.length,D=0;D<N;D++){if(D>I){if(D=O.end.row+1,D>=N)break;O=this.$foldData[T++],I=O?O.start.row:1/0}w[D]==null&&(w[D]=this.$getStringScreenWidth($[D])[0]),w[D]>k&&(k=w[D])}this.screenWidth=k}},C.prototype.getLine=function(R){return this.doc.getLine(R)},C.prototype.getLines=function(R,$){return this.doc.getLines(R,$)},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,$){return this.doc.insert(R,$)},C.prototype.remove=function(R){return this.doc.remove(R)},C.prototype.removeFullLines=function(R,$){return this.doc.removeFullLines(R,$)},C.prototype.undoChanges=function(R,$){if(R.length){this.$fromUndo=!0;for(var w=R.length-1;w!=-1;w--){var k=R[w];k.action=="insert"||k.action=="remove"?this.doc.revertDelta(k):k.folds&&this.addFolds(k.folds)}!$&&this.$undoSelect&&(R.selectionBefore?this.selection.fromJSON(R.selectionBefore):this.selection.setRange(this.$getUndoSelection(R,!0))),this.$fromUndo=!1}},C.prototype.redoChanges=function(R,$){if(R.length){this.$fromUndo=!0;for(var w=0;w<R.length;w++){var k=R[w];(k.action=="insert"||k.action=="remove")&&this.doc.$safeApplyDelta(k)}!$&&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,$){function w(N){return $?N.action!=="insert":N.action==="insert"}for(var k,T,O=0;O<R.length;O++){var I=R[O];if(I.start){if(!k){w(I)?k=c.fromPoints(I.start,I.end):k=c.fromPoints(I.start,I.start);continue}w(I)?(T=I.start,k.compare(T.row,T.column)==-1&&k.setStart(T),T=I.end,k.compare(T.row,T.column)==1&&k.setEnd(T)):(T=I.start,k.compare(T.row,T.column)==-1&&(k=c.fromPoints(I.start,I.start)))}}return k},C.prototype.replace=function(R,$){return this.doc.replace(R,$)},C.prototype.moveText=function(R,$,w){var k=this.getTextRange(R),T=this.getFoldsInRange(R),O=c.fromPoints($,$);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,k),T.length){var D=R.start,B=O.start,I=B.row-D.row,N=B.column-D.column;this.addFolds(T.map(function(H){return H=H.clone(),H.start.row==D.row&&(H.start.column+=N),H.end.row==D.row&&(H.end.column+=N),H.start.row+=I,H.end.row+=I,H}))}return O},C.prototype.indentRows=function(R,$,w){w=w.replace(/\t/g,this.getTabString());for(var k=R;k<=$;k++)this.doc.insertInLine({row:k,column:0},w)},C.prototype.outdentRows=function(R){for(var $=R.collapseRows(),w=new c(0,0,0,0),k=this.getTabSize(),T=$.start.row;T<=$.end.row;++T){var O=this.getLine(T);w.start.row=T,w.end.row=T;for(var I=0;I<k&&O.charAt(I)==" ";++I);I<k&&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,$,w){if(R=this.getRowFoldStart(R),$=this.getRowFoldEnd($),w<0){var k=this.getRowFoldStart(R+w);if(k<0)return 0;var T=k-R}else if(w>0){var k=this.getRowFoldEnd($+w);if(k>this.doc.getLength()-1)return 0;var T=k-$}else{R=this.$clipRowToDocument(R),$=this.$clipRowToDocument($);var T=$-R+1}var O=new c(R,0,$,Number.MAX_VALUE),I=this.getFoldsInRange(O).map(function(D){return D=D.clone(),D.start.row+=T,D.end.row+=T,D}),N=w==0?this.doc.getLines(R,$):this.doc.removeFullLines(R,$);return this.doc.insertFullLines(R+T,N),I.length&&this.addFolds(I),T},C.prototype.moveLinesUp=function(R,$){return this.$moveLines(R,$,-1)},C.prototype.moveLinesDown=function(R,$){return this.$moveLines(R,$,1)},C.prototype.duplicateLines=function(R,$){return this.$moveLines(R,$,0)},C.prototype.$clipRowToDocument=function(R){return Math.max(0,Math.min(R,this.doc.getLength()-1))},C.prototype.$clipColumnToRow=function(R,$){return $<0?0:Math.min(this.doc.getLine(R).length,$)},C.prototype.$clipPositionToDocument=function(R,$){if($=Math.max(0,$),R<0)R=0,$=0;else{var w=this.doc.getLength();R>=w?(R=w-1,$=this.doc.getLine(w-1).length):$=Math.min(this.doc.getLine(R).length,$)}return{row:R,column:$}},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 $=this.doc.getLength()-1;return R.end.row>$?(R.end.row=$,R.end.column=this.doc.getLine($).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 $=this.getLength();this.$wrapData=Array($),this.$updateWrapData(0,$-1)}this._signal("changeWrapMode")}},C.prototype.getUseWrapMode=function(){return this.$useWrapMode},C.prototype.setWrapLimitRange=function(R,$){(this.$wrapLimitRange.min!==R||this.$wrapLimitRange.max!==$)&&(this.$wrapLimitRange={min:R,max:$},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},C.prototype.adjustWrapLimit=function(R,$){var w=this.$wrapLimitRange;w.max<0&&(w={min:$,max:$});var k=this.$constrainWrapLimit(R,w.min,w.max);return k!=this.$wrapLimit&&k>1?(this.$wrapLimit=k,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},C.prototype.$constrainWrapLimit=function(R,$,w){return $&&(R=Math.max($,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 $=this.$useWrapMode,w=R.action,k=R.start,T=R.end,O=k.row,I=T.row,N=I-O,D=null;if(this.$updating=!0,N!=0)if(w==="remove"){this[$?"$wrapData":"$rowLengthCache"].splice(O,N);var B=this.$foldData;D=this.getFoldsInRange(R),this.removeFolds(D);var j=this.getFoldLine(T.row),U=0;if(j){j.addRemoveChars(T.row,T.column,k.column-T.column),j.shiftRow(-N);var H=this.getFoldLine(O);H&&H!==j&&(H.merge(j),j=H),U=B.indexOf(j)+1}for(U;U<B.length;U++){var j=B[U];j.start.row>=T.row&&j.shiftRow(-N)}I=O}else{var V=Array(N);V.unshift(O,0);var q=$?this.$wrapData:this.$rowLengthCache;q.splice.apply(q,V);var B=this.$foldData,j=this.getFoldLine(O),U=0;if(j){var z=j.range.compareInside(k.row,k.column);z==0?(j=j.split(k.row,k.column),j&&(j.shiftRow(N),j.addRemoveChars(I,0,T.column-k.column))):z==-1&&(j.addRemoveChars(O,0,T.column-k.column),j.shiftRow(N)),U=B.indexOf(j)+1}for(U;U<B.length;U++){var j=B[U];j.start.row>=O&&j.shiftRow(N)}}else{N=Math.abs(R.start.column-R.end.column),w==="remove"&&(D=this.getFoldsInRange(R),this.removeFolds(D),N=-N);var j=this.getFoldLine(O);j&&j.addRemoveChars(O,k.column,N)}return $&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,$?this.$updateWrapData(O,I):this.$updateRowLengthCache(O,I),D},C.prototype.$updateRowLengthCache=function(R,$){this.$rowLengthCache[R]=null,this.$rowLengthCache[$]=null},C.prototype.$updateWrapData=function(R,$){var w=this.doc.getAllLines(),k=this.getTabSize(),T=this.$wrapData,O=this.$wrapLimit,I,N,D=R;for($=Math.min($,w.length-1);D<=$;)N=this.getFoldLine(D,N),N?(I=[],N.walk((function(B,j,U,H){var V;if(B!=null){V=this.$getDisplayTokens(B,I.length),V[0]=_;for(var q=1;q<V.length;q++)V[q]=S}else V=this.$getDisplayTokens(w[j].substring(H,U),I.length);I=I.concat(V)}).bind(this),N.end.row,w[N.end.row].length+1),T[N.start.row]=this.$computeWrapSplits(I,O,k),D=N.end.row+1):(I=this.$getDisplayTokens(w[D]),T[D]=this.$computeWrapSplits(I,O,k),D++)},C.prototype.$computeWrapSplits=function(R,$,w){if(R.length==0)return[];var k=[],T=R.length,O=0,I=0,N=this.$wrapAsCode,D=this.$indentedSoftWrap,B=$<=Math.max(2*w,8)||D===!1?0:Math.floor($/2);function j(){var z=0;if(B===0)return z;if(D)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==E)continue;break}}return N&&D!==!1&&(z+=w),Math.min(z,B)}function U(z){for(var Z=z-O,Y=O;Y<z;Y++){var Q=R[Y];(Q===12||Q===2)&&(Z-=1)}k.length||(H=j(),k.indent=H),I+=Z,k.push(I),O=z}for(var H=0;T-O>$-H;){var V=O+$-H;if(R[V-1]>=A&&R[V]>=A){U(V);continue}if(R[V]==_||R[V]==S){for(V;V!=O-1&&R[V]!=_;V--);if(V>O){U(V);continue}for(V=O+$,V;V<R.length&&R[V]==S;V++);if(V==R.length)break;U(V);continue}for(var q=Math.max(V-($-($>>2)),O-1);V>q&&R[V]<_;)V--;if(N){for(;V>q&&R[V]<_;)V--;for(;V>q&&R[V]==b;)V--}else for(;V>q&&R[V]<A;)V--;if(V>q){U(++V);continue}V=O+$,R[V]==x&&V--,U(V-H)}return k},C.prototype.$getDisplayTokens=function(R,$){var w=[],k;$=$||0;for(var T=0;T<R.length;T++){var O=R.charCodeAt(T);if(O==9){k=this.getScreenTabSize(w.length+$),w.push(L);for(var I=1;I<k;I++)w.push(E)}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,$,w){if($==0)return[0,0];$==null&&($=1/0),w=w||0;var k,T;for(T=0;T<R.length&&(k=R.charCodeAt(T),k==9?w+=this.getScreenTabSize(w):k>=4352&&M(k)?w+=2:w+=1,!(w>$));T++);return[w,T]},C.prototype.getRowLength=function(R){var $=1;return this.lineWidgets&&($+=this.lineWidgets[R]&&this.lineWidgets[R].rowCount||0),!this.$useWrapMode||!this.$wrapData[R]?$:this.$wrapData[R].length+$},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 $=this.screenToDocumentPosition(R,Number.MAX_VALUE),w=this.$wrapData[$.row];return w.length&&w[0]<$.column?w.indent:0}else return 0},C.prototype.getScreenLastRowColumn=function(R){var $=this.screenToDocumentPosition(R,Number.MAX_VALUE);return this.documentToScreenColumn($.row,$.column)},C.prototype.getDocumentLastRowColumn=function(R,$){var w=this.documentToScreenRow(R,$);return this.getScreenLastRowColumn(w)},C.prototype.getDocumentLastRowColumnPosition=function(R,$){var w=this.documentToScreenRow(R,$);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,$){return this.screenToDocumentPosition(R,$).row},C.prototype.screenToDocumentColumn=function(R,$){return this.screenToDocumentPosition(R,$).column},C.prototype.screenToDocumentPosition=function(R,$,w){if(R<0)return{row:0,column:0};var k,T=0,O=0,I,N=0,D=0,B=this.$screenRowCache,j=this.$getRowCacheIndex(B,R),U=B.length;if(U&&j>=0)var N=B[j],T=this.$docRowCache[j],H=R>B[U-1];else var H=!U;for(var V=this.getLength()-1,q=this.getNextFoldLine(T),z=q?q.start.row:1/0;N<=R&&(D=this.getRowLength(T),!(N+D>R||T>=V));)N+=D,T++,T>z&&(T=q.end.row+1,q=this.getNextFoldLine(T,q),z=q?q.start.row:1/0),H&&(this.$docRowCache.push(T),this.$screenRowCache.push(N));if(q&&q.start.row<=T)k=this.getFoldDisplayLine(q),T=q.start.row;else{if(N+D<=R||T>V)return{row:V,column:this.getLine(V).length};k=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],k=k.substring(O)))}return w!==void 0&&this.$bidiHandler.isBidiRow(N+Y,T,Y)&&($=this.$bidiHandler.offsetToCol(w)),O+=this.$getStringScreenWidth(k,$-Z)[1],this.$useWrapMode&&O>=I&&(O=I-1),q?q.idxToPosition(O):{row:T,column:O}},C.prototype.documentToScreenPosition=function(R,$){if(typeof $>"u")var w=this.$clipPositionToDocument(R.row,R.column);else w=this.$clipPositionToDocument(R,$);R=w.row,$=w.column;var k=0,T=null,O=null;O=this.getFoldAt(R,$,1),O&&(R=O.start.row,$=O.start.column);var I,N=0,D=this.$docRowCache,B=this.$getRowCacheIndex(D,R),j=D.length;if(j&&B>=0)var N=D[B],k=this.$screenRowCache[B],U=R>D[j-1];else var U=!j;for(var H=this.getNextFoldLine(N),V=H?H.start.row:1/0;N<R;){if(N>=V){if(I=H.end.row+1,I>R)break;H=this.getNextFoldLine(I,H),V=H?H.start.row:1/0}else I=N+1;k+=this.getRowLength(N),N=I,U&&(this.$docRowCache.push(N),this.$screenRowCache.push(k))}var q="";H&&N>=V?(q=this.getFoldDisplayLine(H,R,$),T=H.start.row):(q=this.getLine(R).substring(0,$),T=R);var z=0;if(this.$useWrapMode){var Z=this.$wrapData[T];if(Z){for(var Y=0;q.length>=Z[Y];)k++,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&&(k+=this.lineWidgets[N].rowsAbove),{row:k,column:z+this.$getStringScreenWidth(q)[0]}},C.prototype.documentToScreenColumn=function(R,$){return this.documentToScreenPosition(R,$).column},C.prototype.documentToScreenRow=function(R,$){return this.documentToScreenPosition(R,$).row},C.prototype.getScreenLength=function(){var R=0,$=null;if(this.$useWrapMode)for(var T=this.$wrapData.length,O=0,k=0,$=this.$foldData[k++],I=$?$.start.row:1/0;O<T;){var N=this.$wrapData[O];R+=N?N.length+1:1,O++,O>I&&(O=$.end.row+1,$=this.$foldData[k++],I=$?$.start.row:1/0)}else{R=this.getLength();for(var w=this.$foldData,k=0;k<w.length;k++)$=w[k],R-=$.end.row-$.start.row}return this.lineWidgets&&(R+=this.$getWidgetScreenLength()),R},C.prototype.$setFontMetrics=function(R){this.$enableVarChar&&(this.$getStringScreenWidth=function($,w,k){if(w===0)return[0,0];w||(w=1/0),k=k||0;var T,O;for(O=0;O<$.length&&(T=$.charAt(O),T===" "?k+=this.getScreenTabSize(k):k+=R.getCharacterWidth(T),!(k>w));O++);return[k,O]})},C.prototype.getPrecedingCharacter=function(){var R=this.selection.getCursor();if(R.column===0)return R.row===0?"":this.doc.getNewLineCharacter();var $=this.getLine(R.row);return $[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=o.$modes,v.prototype.getValue=v.prototype.toString,v.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},v.prototype.$overwrite=!1,v.prototype.$mode=null,v.prototype.$modeId=null,v.prototype.$scrollTop=0,v.prototype.$scrollLeft=0,v.prototype.$wrapLimit=80,v.prototype.$useWrapMode=!1,v.prototype.$wrapLimitRange={min:null,max:null},v.prototype.lineWidgets=null,v.prototype.isFullWidth=M,l.implement(v.prototype,p);var y=1,x=2,_=3,S=4,b=9,A=10,L=11,E=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),o.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,a){var l=n("./lib/lang"),d=n("./lib/oop"),g=n("./range").Range,o=function(){function i(){this.$options={}}return i.prototype.set=function(s){return d.mixin(this.$options,s),this},i.prototype.getOptions=function(){return l.copyObject(this.$options)},i.prototype.setOptions=function(s){this.$options=s},i.prototype.find=function(s){var c=this.$options,u=this.$matchIterator(s,c);if(!u)return!1;var h=null;return u.forEach(function(f,m,v,y){return h=new g(f,m,v,y),m==y&&c.start&&c.start.start&&c.skipCurrent!=!1&&h.isEqual(c.start)?(h=null,!1):!0}),h},i.prototype.findAll=function(s){var c=this.$options;if(!c.needle)return[];this.$assembleRegExp(c);var u=c.range,h=u?s.getLines(u.start.row,u.end.row):s.doc.getAllLines(),f=[],m=c.re;if(c.$isMultiLine){var v=m.length,y=h.length-v,x;e:for(var _=m.offset||0;_<=y;_++){for(var S=0;S<v;S++)if(h[_+S].search(m[S])==-1)continue e;var b=h[_],A=h[_+v-1],L=b.length-b.match(m[0])[0].length,E=A.match(m[v-1])[0].length;x&&x.end.row===_&&x.end.column>L||(f.push(x=new g(_,L,_+v-1,E)),v>2&&(_=_+v-2))}}else for(var M=0;M<h.length;M++)for(var C=l.getMatchOffsets(h[M],m),S=0;S<C.length;S++){var R=C[S];f.push(new g(M,R.offset,M,R.offset+R.length))}if(u){for(var $=u.start.column,w=u.end.column,M=0,S=f.length-1;M<S&&f[M].start.column<$&&f[M].start.row==0;)M++;for(var k=u.end.row-u.start.row;M<S&&f[S].end.column>w&&f[S].end.row==k;)S--;for(f=f.slice(M,S+1),M=0,S=f.length;M<S;M++)f[M].start.row+=u.start.row,f[M].end.row+=u.start.row}return f},i.prototype.replace=function(s,c){var u=this.$options,h=this.$assembleRegExp(u);if(u.$isMultiLine)return c;if(h){var f=h.exec(s);if(!f||f[0].length!=s.length)return null;if(u.regExp||(c=c.replace(/\$/g,"$$$$")),c=s.replace(h,c),u.preserveCase){c=c.split("");for(var m=Math.min(s.length,s.length);m--;){var v=s[m];v&&v.toLowerCase()!=v?c[m]=c[m].toUpperCase():c[m]=c[m].toLowerCase()}c=c.join("")}return c}},i.prototype.$assembleRegExp=function(s,c){if(s.needle instanceof RegExp)return s.re=s.needle;var u=s.needle;if(!s.needle)return s.re=!1;s.regExp||(u=l.escapeRegExp(u));var h=s.caseSensitive?"gm":"gmi";try{new RegExp(u,"u"),s.$supportsUnicodeFlag=!0,h+="u"}catch{s.$supportsUnicodeFlag=!1}if(s.wholeWord&&(u=p(u,s)),s.$isMultiLine=!c&&/[\n\r]/.test(u),s.$isMultiLine)return s.re=this.$assembleMultilineRegExp(u,h);try{var f=new RegExp(u,h)}catch{f=!1}return s.re=f},i.prototype.$assembleMultilineRegExp=function(s,c){for(var u=s.replace(/\r\n|\r|\n/g,`$
1003
+ ^`).split(`
1004
+ `),h=[],f=0;f<u.length;f++)try{h.push(new RegExp(u[f],c))}catch{return!1}return h},i.prototype.$matchIterator=function(s,c){var u=this.$assembleRegExp(c);if(!u)return!1;var h=c.backwards==!0,f=c.skipCurrent!=!1,m=u.unicode,v=c.range,y=c.start;y||(y=v?v[h?"end":"start"]:s.selection.getRange()),y.start&&(y=y[f!=h?"end":"start"]);var x=v?v.start.row:0,_=v?v.end.row:s.getLength()-1;if(h)var S=function(L){var E=y.row;if(!A(E,y.column,L)){for(E--;E>=x;E--)if(A(E,Number.MAX_VALUE,L))return;if(c.wrap!=!1){for(E=_,x=y.row;E>=x;E--)if(A(E,Number.MAX_VALUE,L))return}}};else var S=function(E){var M=y.row;if(!A(M,y.column,E)){for(M=M+1;M<=_;M++)if(A(M,0,E))return;if(c.wrap!=!1){for(M=x,_=y.row;M<=_;M++)if(A(M,0,E))return}}};if(c.$isMultiLine)var b=u.length,A=function(L,E,M){var C=h?L-b+1:L;if(!(C<0||C+b>s.getLength())){var R=s.getLine(C),$=R.search(u[0]);if(!(!h&&$<E||$===-1)){for(var w=1;w<b;w++)if(R=s.getLine(C+w),R.search(u[w])==-1)return;var k=R.match(u[b-1])[0].length;if(!(h&&k>E)&&M(C,$,C+b-1,k))return!0}}};else if(h)var A=function(E,M,C){var R=s.getLine(E),$=[],w,k=0;for(u.lastIndex=0;w=u.exec(R);){var T=w[0].length;if(k=w.index,!T){if(k>=R.length)break;u.lastIndex=k+=l.skipEmptyMatch(R,k,m)}if(w.index+T>M)break;$.push(w.index,T)}for(var O=$.length-1;O>=0;O-=2){var I=$[O-1],T=$[O];if(C(E,I,E,I+T))return!0}};else var A=function(E,M,C){var R=s.getLine(E),$,w;for(u.lastIndex=M;w=u.exec(R);){var k=w[0].length;if($=w.index,C(E,$,E,$+k))return!0;if(!k&&(u.lastIndex=$+=l.skipEmptyMatch(R,$,m),$>=R.length))return!1}};return{forEach:S}},i}();function p(i,s){var c=l.supportsLookbehind();function u(v,y){y===void 0&&(y=!0);var x=c&&s.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return x.test(v)||s.regExp?c&&s.$supportsUnicodeFlag?y?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var h=Array.from(i),f=h[0],m=h[h.length-1];return u(f)+i+u(m,!1)}r.Search=o}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(n,r,a){var l=this&&this.__extends||function(){var c=function(u,h){return c=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])},c(u,h)};return function(u,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");c(u,h);function f(){this.constructor=u}u.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}}(),d=n("../lib/keys"),g=n("../lib/useragent"),o=d.KEY_MODS,p=function(){function c(u,h){this.$init(u,h,!1)}return c.prototype.$init=function(u,h,f){this.platform=h||(g.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(u),this.$singleCommand=f},c.prototype.addCommand=function(u){this.commands[u.name]&&this.removeCommand(u),this.commands[u.name]=u,u.bindKey&&this._buildKeyHash(u)},c.prototype.removeCommand=function(u,h){var f=u&&(typeof u=="string"?u:u.name);u=this.commands[f],h||delete this.commands[f];var m=this.commandKeyBinding;for(var v in m){var y=m[v];if(y==u)delete m[v];else if(Array.isArray(y)){var x=y.indexOf(u);x!=-1&&(y.splice(x,1),y.length==1&&(m[v]=y[0]))}}},c.prototype.bindKey=function(u,h,f){if(typeof u=="object"&&u&&(f==null&&(f=u.position),u=u[this.platform]),!!u){if(typeof h=="function")return this.addCommand({exec:h,bindKey:u,name:h.name||u});u.split("|").forEach(function(m){var v="";if(m.indexOf(" ")!=-1){var y=m.split(/\s+/);m=y.pop(),y.forEach(function(S){var b=this.parseKeys(S),A=o[b.hashId]+b.key;v+=(v?" ":"")+A,this._addCommandToBinding(v,"chainKeys")},this),v+=" "}var x=this.parseKeys(m),_=o[x.hashId]+x.key;this._addCommandToBinding(v+_,h,f)},this)}},c.prototype._addCommandToBinding=function(u,h,f){var m=this.commandKeyBinding,v;if(!h)delete m[u];else if(!m[u]||this.$singleCommand)m[u]=h;else{Array.isArray(m[u])?(v=m[u].indexOf(h))!=-1&&m[u].splice(v,1):m[u]=[m[u]],typeof f!="number"&&(f=i(h));var y=m[u];for(v=0;v<y.length;v++){var x=y[v],_=i(x);if(_>f)break}y.splice(v,0,h)}},c.prototype.addCommands=function(u){u&&Object.keys(u).forEach(function(h){var f=u[h];if(f){if(typeof f=="string")return this.bindKey(f,h);typeof f=="function"&&(f={exec:f}),typeof f=="object"&&(f.name||(f.name=h),this.addCommand(f))}},this)},c.prototype.removeCommands=function(u){Object.keys(u).forEach(function(h){this.removeCommand(u[h])},this)},c.prototype.bindKeys=function(u){Object.keys(u).forEach(function(h){this.bindKey(h,u[h])},this)},c.prototype._buildKeyHash=function(u){this.bindKey(u.bindKey,u)},c.prototype.parseKeys=function(u){var h=u.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(_){return _}),f=h.pop(),m=d[f];if(d.FUNCTION_KEYS[m])f=d.FUNCTION_KEYS[m].toLowerCase();else if(h.length){if(h.length==1&&h[0]=="shift")return{key:f.toUpperCase(),hashId:-1}}else return{key:f,hashId:-1};for(var v=0,y=h.length;y--;){var x=d.KEY_MODS[h[y]];if(x==null)return typeof console<"u"&&console.error("invalid modifier "+h[y]+" in "+u),!1;v|=x}return{key:f,hashId:v}},c.prototype.findKeyCommand=function(u,h){var f=o[u]+h;return this.commandKeyBinding[f]},c.prototype.handleKeyboard=function(u,h,f,m){if(!(m<0)){var v=o[h]+f,y=this.commandKeyBinding[v];return u.$keyChain&&(u.$keyChain+=" "+v,y=this.commandKeyBinding[u.$keyChain]||y),y&&(y=="chainKeys"||y[y.length-1]=="chainKeys")?(u.$keyChain=u.$keyChain||v,{command:"null"}):(u.$keyChain&&((!h||h==4)&&f.length==1?u.$keyChain=u.$keyChain.slice(0,-v.length-1):(h==-1||m>0)&&(u.$keyChain="")),{command:y})}},c.prototype.getStatusText=function(u,h){return h.$keyChain||""},c}();function i(c){return typeof c=="object"&&c.bindKey&&c.bindKey.position||(c.isDefault?-100:0)}var s=function(c){l(u,c);function u(h,f){var m=c.call(this,h,f)||this;return m.$singleCommand=!0,m}return u}(p);s.call=function(c,u,h){p.prototype.$init.call(c,u,h,!0)},p.call=function(c,u,h){p.prototype.$init.call(c,u,h,!1)},r.HashHandler=s,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,a){var l=this&&this.__extends||function(){var i=function(s,c){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,h){u.__proto__=h}||function(u,h){for(var f in h)Object.prototype.hasOwnProperty.call(h,f)&&(u[f]=h[f])},i(s,c)};return function(s,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");i(s,c);function u(){this.constructor=s}s.prototype=c===null?Object.create(c):(u.prototype=c.prototype,new u)}}(),d=n("../lib/oop"),g=n("../keyboard/hash_handler").MultiHashHandler,o=n("../lib/event_emitter").EventEmitter,p=function(i){l(s,i);function s(c,u){var h=i.call(this,u,c)||this;return h.byName=h.commands,h.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)}),h}return s.prototype.exec=function(c,u,h){if(Array.isArray(c)){for(var f=c.length;f--;)if(this.exec(c[f],u,h))return!0;return!1}if(typeof c=="string"&&(c=this.commands[c]),!this.canExecute(c,u))return!1;var m={editor:u,command:c,args:h};return m.returnValue=this._emit("exec",m),this._signal("afterExec",m),m.returnValue!==!1},s.prototype.canExecute=function(c,u){return typeof c=="string"&&(c=this.commands[c]),!(!c||u&&u.$readOnly&&!c.readOnly||this.$checkCommandState!=!1&&c.isAvailable&&!c.isAvailable(u))},s.prototype.toggleRecording=function(c){if(!this.$inReplay)return c&&c._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=(function(u){this.macro.push([u.command,u.args])}).bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},s.prototype.replay=function(c){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(c);try{this.$inReplay=!0,this.macro.forEach(function(u){typeof u=="string"?this.exec(u,c):this.exec(u[0],c,u[1])},this)}finally{this.$inReplay=!1}}},s.prototype.trimMacro=function(c){return c.map(function(u){return typeof u[0]!="string"&&(u[0]=u[0].name),u[1]||(u=u[0]),u})},s}(g);d.implement(p.prototype,o),r.CommandManager=p}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(n,r,a){var l=n("../lib/lang"),d=n("../config"),g=n("../range").Range;function o(i,s){return{win:i,mac:s}}r.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:o("Ctrl-,","Command-,"),exec:function(i){d.loadModule("ace/ext/settings_menu",function(s){s.init(i),i.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:o("Alt-E","F4"),exec:function(i){d.loadModule("ace/ext/error_marker",function(s){s.showErrorMarker(i,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:o("Alt-Shift-E","Shift-F4"),exec:function(i){d.loadModule("ace/ext/error_marker",function(s){s.showErrorMarker(i,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:o("Ctrl-A","Command-A"),exec:function(i){i.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:o(null,"Ctrl-L"),exec:function(i){i.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:o("Ctrl-L","Command-L"),exec:function(i,s){typeof s=="number"&&!isNaN(s)&&i.gotoLine(s),i.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:o("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(i){i.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:o("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(i){i.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:o("F2","F2"),exec:function(i){i.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:o("Alt-F2","Alt-F2"),exec:function(i){i.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:o(null,"Ctrl-Command-Option-0"),exec:function(i){i.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:o(null,"Ctrl-Command-Option-0"),exec:function(i){i.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:o("Alt-0","Command-Option-0"),exec:function(i){i.session.foldAll(),i.session.unfold(i.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:o("Alt-Shift-0","Command-Option-Shift-0"),exec:function(i){i.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:o("Ctrl-K","Command-G"),exec:function(i){i.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:o("Ctrl-Shift-K","Command-Shift-G"),exec:function(i){i.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:o("Alt-K","Ctrl-G"),exec:function(i){i.selection.isEmpty()?i.selection.selectWord():i.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:o("Alt-Shift-K","Ctrl-Shift-G"),exec:function(i){i.selection.isEmpty()?i.selection.selectWord():i.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:o("Ctrl-F","Command-F"),exec:function(i){d.loadModule("ace/ext/searchbox",function(s){s.Search(i)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(i){i.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:o("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(i){i.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:o("Ctrl-Home","Command-Home|Command-Up"),exec:function(i){i.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:o("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(i){i.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:o("Up","Up|Ctrl-P"),exec:function(i,s){i.navigateUp(s.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:o("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(i){i.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:o("Ctrl-End","Command-End|Command-Down"),exec:function(i){i.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:o("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(i){i.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:o("Down","Down|Ctrl-N"),exec:function(i,s){i.navigateDown(s.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:o("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(i){i.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:o("Ctrl-Left","Option-Left"),exec:function(i){i.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:o("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(i){i.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:o("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(i){i.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:o("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(i){i.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:o("Left","Left|Ctrl-B"),exec:function(i,s){i.navigateLeft(s.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:o("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(i){i.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:o("Ctrl-Right","Option-Right"),exec:function(i){i.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:o("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(i){i.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:o("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(i){i.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:o("Shift-Right","Shift-Right"),exec:function(i){i.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:o("Right","Right|Ctrl-F"),exec:function(i,s){i.navigateRight(s.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(i){i.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:o(null,"Option-PageDown"),exec:function(i){i.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:o("PageDown","PageDown|Ctrl-V"),exec:function(i){i.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(i){i.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:o(null,"Option-PageUp"),exec:function(i){i.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(i){i.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:o("Ctrl-Up",null),exec:function(i){i.renderer.scrollBy(0,-2*i.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:o("Ctrl-Down",null),exec:function(i){i.renderer.scrollBy(0,2*i.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(i){i.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(i){i.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:o("Ctrl-Alt-E","Command-Option-E"),exec:function(i){i.commands.toggleRecording(i)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:o("Ctrl-Shift-E","Command-Shift-E"),exec:function(i){i.commands.replay(i)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:o("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(i){i.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:o("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(i){i.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:o("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(i){i.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:o(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(i){},readOnly:!0},{name:"cut",description:"Cut",exec:function(i){var s=i.$copyWithEmptySelection&&i.selection.isEmpty(),c=s?i.selection.getLineRange():i.selection.getRange();i._emit("cut",c),c.isEmpty()||i.session.remove(c),i.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(i,s){i.$handlePaste(s)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:o("Ctrl-D","Command-D"),exec:function(i){i.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:o("Ctrl-Shift-D","Command-Shift-D"),exec:function(i){i.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:o("Ctrl-Alt-S","Command-Alt-S"),exec:function(i){i.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:o("Ctrl-/","Command-/"),exec:function(i){i.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:o("Ctrl-Shift-/","Command-Shift-/"),exec:function(i){i.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:o("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(i){i.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:o("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(i){i.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:o("Ctrl-H","Command-Option-F"),exec:function(i){d.loadModule("ace/ext/searchbox",function(s){s.Search(i,!0)})}},{name:"undo",description:"Undo",bindKey:o("Ctrl-Z","Command-Z"),exec:function(i){i.undo()}},{name:"redo",description:"Redo",bindKey:o("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(i){i.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:o("Alt-Shift-Up","Command-Option-Up"),exec:function(i){i.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:o("Alt-Up","Option-Up"),exec:function(i){i.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:o("Alt-Shift-Down","Command-Option-Down"),exec:function(i){i.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:o("Alt-Down","Option-Down"),exec:function(i){i.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:o("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(i){i.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:o("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(i){i.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:o("Shift-Delete",null),exec:function(i){if(i.selection.isEmpty())i.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:o("Alt-Backspace","Command-Backspace"),exec:function(i){i.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:o("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(i){i.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:o("Ctrl-Shift-Backspace",null),exec:function(i){var s=i.selection.getRange();s.start.column=0,i.session.remove(s)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:o("Ctrl-Shift-Delete",null),exec:function(i){var s=i.selection.getRange();s.end.column=Number.MAX_VALUE,i.session.remove(s)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:o("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(i){i.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:o("Ctrl-Delete","Alt-Delete"),exec:function(i){i.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:o("Shift-Tab","Shift-Tab"),exec:function(i){i.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:o("Tab","Tab"),exec:function(i){i.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:o("Ctrl-[","Ctrl-["),exec:function(i){i.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:o("Ctrl-]","Ctrl-]"),exec:function(i){i.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(i,s){i.insert(s)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(i,s){i.insert(l.stringRepeat(s.text||"",s.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:o(null,"Ctrl-O"),exec:function(i){i.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:o("Alt-Shift-X","Ctrl-T"),exec:function(i){i.transposeLetters()},multiSelectAction:function(i){i.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:o("Ctrl-U","Ctrl-U"),exec:function(i){i.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:o("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(i){i.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:o(null,null),exec:function(i){i.autoIndent()},scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:o("Ctrl-Shift-L","Command-Shift-L"),exec:function(i){var s=i.selection.getRange();s.start.column=s.end.column=0,s.end.row++,i.selection.setRange(s,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:o("Ctrl+F3","F3"),exec:function(i){i.openLink()}},{name:"joinlines",description:"Join lines",bindKey:o(null,null),exec:function(i){for(var s=i.selection.isBackwards(),c=s?i.selection.getSelectionLead():i.selection.getSelectionAnchor(),u=s?i.selection.getSelectionAnchor():i.selection.getSelectionLead(),h=i.session.doc.getLine(c.row).length,f=i.session.doc.getTextRange(i.selection.getRange()),m=f.replace(/\n\s*/," ").length,v=i.session.doc.getLine(c.row),y=c.row+1;y<=u.row+1;y++){var x=l.stringTrimLeft(l.stringTrimRight(i.session.doc.getLine(y)));x.length!==0&&(x=" "+x),v+=x}u.row+1<i.session.doc.getLength()-1&&(v+=i.session.doc.getNewLineCharacter()),i.clearSelection(),i.session.doc.replace(new g(c.row,0,u.row+2,0),v),m>0?(i.selection.moveCursorTo(c.row,c.column),i.selection.selectTo(c.row,c.column+m)):(h=i.session.doc.getLine(c.row).length>h?h+1:h,i.selection.moveCursorTo(c.row,h))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:o(null,null),exec:function(i){var s=i.session.doc.getLength()-1,c=i.session.doc.getLine(s).length,u=i.selection.rangeList.ranges,h=[];u.length<1&&(u=[i.selection.getRange()]);for(var f=0;f<u.length;f++)f==u.length-1&&(u[f].end.row===s&&u[f].end.column===c||h.push(new g(u[f].end.row,u[f].end.column,s,c))),f===0?u[f].start.row===0&&u[f].start.column===0||h.push(new g(0,0,u[f].start.row,u[f].start.column)):h.push(new g(u[f-1].end.row,u[f-1].end.column,u[f].start.row,u[f].start.column));i.exitMultiSelectMode(),i.clearSelection();for(var f=0;f<h.length;f++)i.selection.addRange(h[f],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",description:"Add new line after the current line",exec:function(i){i.selection.clearSelection(),i.navigateLineEnd(),i.insert(`
1005
+ `)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(i){i.selection.clearSelection();var s=i.getCursorPosition();i.selection.moveTo(s.row-1,Number.MAX_VALUE),i.insert(`
1006
+ `),s.row===0&&i.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",exec:function(i){console.warn("This is an obsolete command. Please use `openCommandPalette` instead."),i.prompt({$type:"commands"})},readOnly:!0},{name:"openCommandPalette",description:"Open command palette",bindKey:o("F1","F1"),exec:function(i){i.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:o(null,null),exec:function(i){i.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(i){i.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(n,r,a){var l=n("./lib/dom"),d=function(){function g(o){this.session=o,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(o){var p;return this.lineWidgets?p=this.lineWidgets[o]&&this.lineWidgets[o].rowCount||0:p=0,!this.$useWrapMode||!this.$wrapData[o]?1+p:this.$wrapData[o].length+1+p},g.prototype.$getWidgetScreenLength=function(){var o=0;return this.lineWidgets.forEach(function(p){p&&p.rowCount&&!p.hidden&&(o+=p.rowCount)}),o},g.prototype.$onChangeEditor=function(o){this.attach(o.editor)},g.prototype.attach=function(o){o&&o.widgetManager&&o.widgetManager!=this&&o.widgetManager.detach(),this.editor!=o&&(this.detach(),this.editor=o,o&&(o.widgetManager=this,o.renderer.on("beforeRender",this.measureWidgets),o.renderer.on("afterRender",this.renderWidgets)))},g.prototype.detach=function(o){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 i=this.session.lineWidgets;i&&i.forEach(function(s){s&&s.el&&s.el.parentNode&&(s._inDocument=!1,s.el.parentNode.removeChild(s.el))})}},g.prototype.updateOnFold=function(o,p){var i=p.lineWidgets;if(!(!i||!o.action)){for(var s=o.data,c=s.start.row,u=s.end.row,h=o.action=="add",f=c+1;f<u;f++)i[f]&&(i[f].hidden=h);i[u]&&(h?i[c]?i[u].hidden=h:i[c]=i[u]:(i[c]==i[u]&&(i[c]=void 0),i[u].hidden=h))}},g.prototype.updateOnChange=function(o){var p=this.session.lineWidgets;if(p){var i=o.start.row,s=o.end.row-i;if(s!==0)if(o.action=="remove"){var c=p.splice(i+1,s);!p[i]&&c[c.length-1]&&(p[i]=c.pop()),c.forEach(function(h){h&&this.removeLineWidget(h)},this),this.$updateRows()}else{var u=new Array(s);p[i]&&p[i].column!=null&&o.start.column>p[i].column&&i++,u.unshift(i,0),p.splice.apply(p,u),this.$updateRows()}}},g.prototype.$updateRows=function(){var o=this.session.lineWidgets;if(o){var p=!0;o.forEach(function(i,s){if(i)for(p=!1,i.row=s;i.$oldWidget;)i.$oldWidget.row=s,i=i.$oldWidget}),p&&(this.session.lineWidgets=null)}},g.prototype.$registerLineWidget=function(o){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var p=this.session.lineWidgets[o.row];return p&&(o.$oldWidget=p,p.el&&p.el.parentNode&&(p.el.parentNode.removeChild(p.el),p._inDocument=!1)),this.session.lineWidgets[o.row]=o,o},g.prototype.addLineWidget=function(o){if(this.$registerLineWidget(o),o.session=this.session,!this.editor)return o;var p=this.editor.renderer;o.html&&!o.el&&(o.el=l.createElement("div"),o.el.innerHTML=o.html),o.text&&!o.el&&(o.el=l.createElement("div"),o.el.textContent=o.text),o.el&&(l.addCssClass(o.el,"ace_lineWidgetContainer"),o.className&&l.addCssClass(o.el,o.className),o.el.style.position="absolute",o.el.style.zIndex="5",p.container.appendChild(o.el),o._inDocument=!0,o.coverGutter||(o.el.style.zIndex="3"),o.pixelHeight==null&&(o.pixelHeight=o.el.offsetHeight)),o.rowCount==null&&(o.rowCount=o.pixelHeight/p.layerConfig.lineHeight);var i=this.session.getFoldAt(o.row,0);if(o.$fold=i,i){var s=this.session.lineWidgets;o.row==i.end.row&&!s[i.start.row]?s[i.start.row]=o:o.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:o.row}}}),this.$updateRows(),this.renderWidgets(null,p),this.onWidgetChanged(o),o},g.prototype.removeLineWidget=function(o){if(o._inDocument=!1,o.session=null,o.el&&o.el.parentNode&&o.el.parentNode.removeChild(o.el),o.editor&&o.editor.destroy)try{o.editor.destroy()}catch{}if(this.session.lineWidgets){var p=this.session.lineWidgets[o.row];if(p==o)this.session.lineWidgets[o.row]=o.$oldWidget,o.$oldWidget&&this.onWidgetChanged(o.$oldWidget);else for(;p;){if(p.$oldWidget==o){p.$oldWidget=o.$oldWidget;break}p=p.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:o.row}}}),this.$updateRows()},g.prototype.getWidgetsAtRow=function(o){for(var p=this.session.lineWidgets,i=p&&p[o],s=[];i;)s.push(i),i=i.$oldWidget;return s},g.prototype.onWidgetChanged=function(o){this.session._changedWidgets.push(o),this.editor&&this.editor.renderer.updateFull()},g.prototype.measureWidgets=function(o,p){var i=this.session._changedWidgets,s=p.layerConfig;if(!(!i||!i.length)){for(var c=1/0,u=0;u<i.length;u++){var h=i[u];if(!(!h||!h.el)&&h.session==this.session){if(!h._inDocument){if(this.session.lineWidgets[h.row]!=h)continue;h._inDocument=!0,p.container.appendChild(h.el)}h.h=h.el.offsetHeight,h.fixedWidth||(h.w=h.el.offsetWidth,h.screenWidth=Math.ceil(h.w/s.characterWidth));var f=h.h/s.lineHeight;h.coverLine&&(f-=this.session.getRowLineCount(h.row),f<0&&(f=0)),h.rowCount!=f&&(h.rowCount=f,h.row<c&&(c=h.row))}}c!=1/0&&(this.session._emit("changeFold",{data:{start:{row:c}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},g.prototype.renderWidgets=function(o,p){var i=p.layerConfig,s=this.session.lineWidgets;if(s){for(var c=Math.min(this.firstRow,i.firstRow),u=Math.max(this.lastRow,i.lastRow,s.length);c>0&&!s[c];)c--;this.firstRow=i.firstRow,this.lastRow=i.lastRow,p.$cursorLayer.config=i;for(var h=c;h<=u;h++){var f=s[h];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:h,column:0},!0).top;f.coverLine||(m+=i.lineHeight*this.session.getRowLineCount(f.row)),f.el.style.top=m-i.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=i.width+2*i.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,a){var l=n("../lib/keys"),d=n("../mouse/default_gutter_handler").GutterTooltip,g=function(){function p(i){this.editor=i,this.gutterLayer=i.renderer.$gutterLayer,this.element=i.renderer.$gutter,this.lines=i.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(i){if(this.annotationTooltip.isOpen){i.preventDefault(),i.keyCode===l.escape&&this.annotationTooltip.hideTooltip();return}if(i.target===this.element){if(i.keyCode!=l.enter)return;i.preventDefault();var s=this.editor.getCursorPosition().row;this.editor.isRowVisible(s)||this.editor.scrollToLine(s,!0,!0),setTimeout((function(){var c=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),u=this.$findNearestFoldWidget(c),h=this.$findNearestAnnotation(c);if(!(u===null&&h===null)){if(u===null&&h!==null){this.activeRowIndex=h,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}if(u!==null&&h===null){this.activeRowIndex=u,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}if(Math.abs(h-c)<Math.abs(u-c)){this.activeRowIndex=h,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}else{this.activeRowIndex=u,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}}}).bind(this),10);return}this.$handleGutterKeyboardInteraction(i),setTimeout((function(){this.editor._signal("gutterkeydown",new o(i,this))}).bind(this),10)},p.prototype.$handleGutterKeyboardInteraction=function(i){if(i.keyCode===l.tab){i.preventDefault();return}if(i.keyCode===l.escape){i.preventDefault(),this.$blurGutter(),this.element.focus(),this.lane=null;return}if(i.keyCode===l.up){switch(i.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetUp();break;case"annotation":this.$moveAnnotationUp();break}return}if(i.keyCode===l.down){switch(i.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetDown();break;case"annotation":this.$moveAnnotationDown();break}return}if(i.keyCode===l.left){i.preventDefault(),this.$switchLane("annotation");return}if(i.keyCode===l.right){i.preventDefault(),this.$switchLane("fold");return}if(i.keyCode===l.enter||i.keyCode===l.space){switch(i.preventDefault(),this.activeLane){case"fold":if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="start"){var s=this.$rowIndexToRow(this.activeRowIndex);this.editor.session.onFoldWidgetClick(this.$rowIndexToRow(this.activeRowIndex),i),setTimeout((function(){this.$rowIndexToRow(this.activeRowIndex)!==s&&(this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=this.$rowToRowIndex(s),this.$focusFoldWidget(this.activeRowIndex))}).bind(this),10);break}else if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="end")break;return;case"annotation":var c=this.lines.cells[this.activeRowIndex].element.childNodes[2],u=c.getBoundingClientRect(),h=this.annotationTooltip.getElement().style;h.left=u.right+"px",h.top=u.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(i){var s=this.editor.isRowFullyVisible(this.$rowIndexToRow(i)),c=this.$getFoldWidget(i).style.display!=="none";return s&&c},p.prototype.$isAnnotationVisible=function(i){var s=this.editor.isRowFullyVisible(this.$rowIndexToRow(i)),c=this.$getAnnotation(i).style.display!=="none";return s&&c},p.prototype.$getFoldWidget=function(i){var s=this.lines.get(i),c=s.element;return c.childNodes[1]},p.prototype.$getAnnotation=function(i){var s=this.lines.get(i),c=s.element;return c.childNodes[2]},p.prototype.$findNearestFoldWidget=function(i){if(this.$isFoldWidgetVisible(i))return i;for(var s=0;i-s>0||i+s<this.lines.getLength()-1;){if(s++,i-s>=0&&this.$isFoldWidgetVisible(i-s))return i-s;if(i+s<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(i+s))return i+s}return null},p.prototype.$findNearestAnnotation=function(i){if(this.$isAnnotationVisible(i))return i;for(var s=0;i-s>0||i+s<this.lines.getLength()-1;){if(s++,i-s>=0&&this.$isAnnotationVisible(i-s))return i-s;if(i+s<=this.lines.getLength()-1&&this.$isAnnotationVisible(i+s))return i+s}return null},p.prototype.$focusFoldWidget=function(i){if(i!=null){var s=this.$getFoldWidget(i);s.classList.add(this.editor.renderer.keyboardFocusClassName),s.focus()}},p.prototype.$focusAnnotation=function(i){if(i!=null){var s=this.$getAnnotation(i);s.classList.add(this.editor.renderer.keyboardFocusClassName),s.focus()}},p.prototype.$blurFoldWidget=function(i){var s=this.$getFoldWidget(i);s.classList.remove(this.editor.renderer.keyboardFocusClassName),s.blur()},p.prototype.$blurAnnotation=function(i){var s=this.$getAnnotation(i);s.classList.remove(this.editor.renderer.keyboardFocusClassName),s.blur()},p.prototype.$moveFoldWidgetUp=function(){for(var i=this.activeRowIndex;i>0;)if(i--,this.$isFoldWidgetVisible(i)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=i,this.$focusFoldWidget(this.activeRowIndex);return}},p.prototype.$moveFoldWidgetDown=function(){for(var i=this.activeRowIndex;i<this.lines.getLength()-1;)if(i++,this.$isFoldWidgetVisible(i)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=i,this.$focusFoldWidget(this.activeRowIndex);return}},p.prototype.$moveAnnotationUp=function(){for(var i=this.activeRowIndex;i>0;)if(i--,this.$isAnnotationVisible(i)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=i,this.$focusAnnotation(this.activeRowIndex);return}},p.prototype.$moveAnnotationDown=function(){for(var i=this.activeRowIndex;i<this.lines.getLength()-1;)if(i++,this.$isAnnotationVisible(i)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=i,this.$focusAnnotation(this.activeRowIndex);return}},p.prototype.$switchLane=function(i){switch(i){case"annotation":if(this.activeLane==="annotation")break;var s=this.$findNearestAnnotation(this.activeRowIndex);if(s==null)break;this.activeLane="annotation",this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=s,this.$focusAnnotation(this.activeRowIndex);break;case"fold":if(this.activeLane==="fold")break;var c=this.$findNearestFoldWidget(this.activeRowIndex);if(c==null)break;this.activeLane="fold",this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=c,this.$focusFoldWidget(this.activeRowIndex);break}},p.prototype.$rowIndexToRow=function(i){var s=this.lines.get(i);return s?s.row:null},p.prototype.$rowToRowIndex=function(i){for(var s=0;s<this.lines.getLength();s++){var c=this.lines.get(s);if(c.row==i)return s}return null},p}();r.GutterKeyboardHandler=g;var o=function(){function p(i,s){this.gutterKeyboardHandler=s,this.domEvent=i}return p.prototype.getKey=function(){return l.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=o}),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,a){var l=this&&this.__values||function($){var w=typeof Symbol=="function"&&Symbol.iterator,k=w&&$[w],T=0;if(k)return k.call($);if($&&typeof $.length=="number")return{next:function(){return $&&T>=$.length&&($=void 0),{value:$&&$[T++],done:!$}}};throw new TypeError(w?"Object is not iterable.":"Symbol.iterator is not defined.")},d=n("./lib/oop"),g=n("./lib/dom"),o=n("./lib/lang"),p=n("./lib/useragent"),i=n("./keyboard/textinput").TextInput,s=n("./mouse/mouse_handler").MouseHandler,c=n("./mouse/fold_handler").FoldHandler,u=n("./keyboard/keybinding").KeyBinding,h=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"),S=n("./token_iterator").TokenIterator,b=n("./line_widgets").LineWidgets,A=n("./keyboard/gutter_handler").GutterKeyboardHandler,L=n("./config").nls,E=n("./clipboard"),M=n("./lib/keys"),C=function(){function $(w,k,T){this.session,this.$toDestroy=[];var O=w.getContainerElement();this.container=O,this.renderer=w,this.id="editor"+ ++$.$uid,this.commands=new y(p.isMac?"mac":"win",x),typeof document=="object"&&(this.textInput=new i(w.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new s(this),new c(this)),this.keyBinding=new u(this),this.$search=new f().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=o.delayedCall((function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}).bind(this)),this.on("change",function(I,N){N._$emitInputEvent.schedule(31)}),this.setSession(k||T&&T.session||new h("")),_.resetOptions(this),T&&this.setOptions(T),_._signal("editor",this)}return $.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=o.delayedCall(this.endOperation.bind(this,!0)),this.on("change",(function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.docChanged=!0}).bind(this),!0),this.on("changeSelection",(function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.selectionChanged=!0}).bind(this),!0)},$.prototype.startOperation=function(w){if(this.curOp){if(!w||this.curOp.command)return;this.prevOp=this.curOp}w||(this.previousCommand=null,w={}),this.$opResetTimer.schedule(),this.curOp=this.session.curOp={command:w.command||{},args:w.args,scrollTop:this.renderer.scrollTop},this.curOp.selectionBefore=this.selection.toJSON()},$.prototype.endOperation=function(w){if(this.curOp&&this.session){if(w&&w.returnValue===!1||!this.session)return this.curOp=null;if(w==!0&&this.curOp.command&&this.curOp.command.name=="mouse"||(this._signal("beforeEndOperation"),!this.curOp))return;var k=this.curOp.command,T=k&&k.scrollIntoView;if(T){switch(T){case"center-animate":T="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var O=this.selection.getRange(),I=this.renderer.layerConfig;(O.start.row>=I.lastRow||O.end.row<=I.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}T=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}var N=this.selection.toJSON();this.curOp.selectionAfter=N,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(N),this.prevOp=this.curOp,this.curOp=null}},$.prototype.$historyTracker=function(w){if(this.$mergeUndoDeltas){var k=this.prevOp,T=this.$mergeableCommands,O=k.command&&w.command.name==k.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(k.args)),this.mergeNextCommand=!0}else O=O&&T.indexOf(w.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(O=!1),O?this.session.mergeUndoDeltas=!0:T.indexOf(w.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},$.prototype.setKeyboardHandler=function(w,k){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),k&&k()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(w),k&&k()},$.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},$.prototype.setSession=function(w){if(this.session!=w){this.curOp&&this.endOperation(),this.curOp={};var k=this.session;if(k){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:k}),this.curOp=null,k&&k._signal("changeEditor",{oldEditor:this}),w&&w._signal("changeEditor",{editor:this}),w&&!w.destroyed&&w.bgTokenizer.scheduleStart()}},$.prototype.getSession=function(){return this.session},$.prototype.setValue=function(w,k){return this.session.doc.setValue(w),k?k==1?this.navigateFileEnd():k==-1&&this.navigateFileStart():this.selectAll(),w},$.prototype.getValue=function(){return this.session.getValue()},$.prototype.getSelection=function(){return this.selection},$.prototype.resize=function(w){this.renderer.onResize(w)},$.prototype.setTheme=function(w,k){this.renderer.setTheme(w,k)},$.prototype.getTheme=function(){return this.renderer.getTheme()},$.prototype.setStyle=function(w){this.renderer.setStyle(w)},$.prototype.unsetStyle=function(w){this.renderer.unsetStyle(w)},$.prototype.getFontSize=function(){return this.getOption("fontSize")||g.computedStyle(this.container).fontSize},$.prototype.setFontSize=function(w){this.setOption("fontSize",w)},$.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var w=this;this.$highlightPending=!0,setTimeout(function(){w.$highlightPending=!1;var k=w.session;if(!(!k||k.destroyed)){k.$bracketHighlight&&(k.$bracketHighlight.markerIds.forEach(function(H){k.removeMarker(H)}),k.$bracketHighlight=null);var T=w.getCursorPosition(),O=w.getKeyboardHandler(),I=O&&O.$getDirectionForHighlight&&O.$getDirectionForHighlight(w),N=k.getMatchingBracketRanges(T,I);if(!N){var D=new S(k,T.row,T.column),B=D.getCurrentToken();if(B&&/\b(?:tag-open|tag-name)/.test(B.type)){var j=k.getMatchingTags(T);j&&(N=[j.openTagName.isEmpty()?j.openTag:j.openTagName,j.closeTagName.isEmpty()?j.closeTag:j.closeTagName])}}if(!N&&k.$mode.getMatching&&(N=k.$mode.getMatching(w.session)),!N){w.getHighlightIndentGuides()&&w.renderer.$textLayer.$highlightIndentGuide();return}var U="ace_bracket";Array.isArray(N)?N.length==1&&(U="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)])),k.$bracketHighlight={ranges:N,markerIds:N.map(function(H){return k.addMarker(H,U,"text")})},w.getHighlightIndentGuides()&&w.renderer.$textLayer.$highlightIndentGuide()}},50)}},$.prototype.focus=function(){this.textInput.focus()},$.prototype.isFocused=function(){return this.textInput.isFocused()},$.prototype.blur=function(){this.textInput.blur()},$.prototype.onFocus=function(w){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",w))},$.prototype.onBlur=function(w){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",w))},$.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},$.prototype.onDocumentChange=function(w){var k=this.session.$useWrapMode,T=w.start.row==w.end.row?w.end.row:1/0;this.renderer.updateLines(w.start.row,T,k),this._signal("change",w),this.$cursorChange()},$.prototype.onTokenizerUpdate=function(w){var k=w.data;this.renderer.updateLines(k.first,k.last)},$.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},$.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},$.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},$.prototype.$updateHighlightActiveLine=function(){var w=this.getSession(),k;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(k=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(k=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(k=!1)),w.$highlightLineMarker&&!k)w.removeMarker(w.$highlightLineMarker.id),w.$highlightLineMarker=null;else if(!w.$highlightLineMarker&&k){var T=new m(k.row,k.column,k.row,1/0);T.id=w.addMarker(T,"ace_active-line","screenLine"),w.$highlightLineMarker=T}else k&&(w.$highlightLineMarker.start.row=k.row,w.$highlightLineMarker.end.row=k.row,w.$highlightLineMarker.start.column=k.column,w._signal("changeBackMarker"))},$.prototype.onSelectionChange=function(w){var k=this.session;if(k.$selectionMarker&&k.removeMarker(k.$selectionMarker),k.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var T=this.selection.getRange(),O=this.getSelectionStyle();k.$selectionMarker=k.addMarker(T,"ace_selection",O)}var I=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(I),this._signal("changeSelection")},$.prototype.$getSelectionHighLightRegexp=function(){var w=this.session,k=this.getSelectionRange();if(!(k.isEmpty()||k.isMultiLine())){var T=k.start.column,O=k.end.column,I=w.getLine(k.start.row),N=I.substring(T,O);if(!(N.length>5e3||!/[\w\d]/.test(N))){var D=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:N}),B=I.substring(T-1,O+1);if(D.test(B))return D}}},$.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},$.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},$.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},$.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},$.prototype.onChangeMode=function(w){this.renderer.updateText(),this._emit("changeMode",w)},$.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},$.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},$.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},$.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},$.prototype.getCopyText=function(){var w=this.getSelectedText(),k=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)+k)}}var D={text:w};return this._signal("copy",D),E.lineMode=T?D.text:!1,D.text},$.prototype.onCopy=function(){this.commands.exec("copy",this)},$.prototype.onCut=function(){this.commands.exec("cut",this)},$.prototype.onPaste=function(w,k){var T={text:w,event:k};this.commands.exec("paste",this,T)},$.prototype.$handlePaste=function(w){typeof w=="string"&&(w={text:w}),this._signal("paste",w);var k=w.text,T=k===E.lineMode,O=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)T?O.insert({row:this.selection.lead.row,column:0},k):this.insert(k);else if(T)this.selection.rangeList.ranges.forEach(function(U){O.insert({row:U.start.row,column:0},k)});else{var I=k.split(/\r\n|\r|\n/),N=this.selection.rangeList.ranges,D=I.length==2&&(!I[0]||!I[1]);if(I.length!=N.length||D)return this.commands.exec("insertstring",this,k);for(var B=N.length;B--;){var j=N[B];j.isEmpty()||O.remove(j),O.insert(j.start,I[B])}}},$.prototype.execCommand=function(w,k){return this.commands.exec(w,this,k)},$.prototype.insert=function(w,k){var T=this.session,O=T.getMode(),I=this.getCursorPosition();if(this.getBehavioursEnabled()&&!k){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(`
1007
+ `)==-1){var D=m.fromPoints(I,I);D.end.column+=w.length,this.session.remove(D)}}else{var D=this.getSelectionRange();I=this.session.remove(D),this.clearSelection()}if(w==`
1008
+ `||w==`\r
1009
+ `){var H=T.getLine(I.row);if(I.column>H.search(/\S|$/)){var B=H.substr(I.column).search(/\S|$/);T.doc.removeInLine(I.row,I.column,I.column+B)}}this.clearSelection();var j=I.column,U=T.getState(I.row),H=T.getLine(I.row),V=O.checkOutdent(U,H,w);if(T.insert(I,w),N&&N.selection&&(N.selection.length==2?this.selection.setSelectionRange(new m(I.row,j+N.selection[0],I.row,j+N.selection[1])):this.selection.setSelectionRange(new m(I.row+N.selection[0],N.selection[1],I.row+N.selection[2],N.selection[3]))),this.$enableAutoIndent){if(T.getDocument().isNewLine(w)){var q=O.getNextLineIndent(U,H.slice(0,I.column),T.getTabString());T.insert({row:I.row+1,column:0},q)}V&&O.autoOutdent(U,T,I.row)}},$.prototype.autoIndent=function(){for(var w=this.session,k=w.getMode(),T=this.selection.isEmpty()?[new m(0,0,w.doc.getLength()-1,0)]:this.selection.getAllRanges(),O="",I="",N="",D=w.getTabString(),B=0;B<T.length;B++)for(var j=T[B].start.row,U=T[B].end.row,H=j;H<=U;H++){H>0&&(O=w.getState(H-1),I=w.getLine(H-1),N=k.getNextLineIndent(O,I,D));var V=w.getLine(H),q=k.$getIndent(V);if(N!==q){if(q.length>0){var z=new m(H,0,H,q.length);w.remove(z)}N.length>0&&w.insert({row:H,column:0},N)}k.autoOutdent(O,w,H)}},$.prototype.onTextInput=function(w,k){if(!k)return this.keyBinding.onTextInput(w);this.startOperation({command:{name:"insertstring"}});var T=this.applyComposition.bind(this,w,k);this.selection.rangeCount?this.forEachSelection(T):T(),this.endOperation()},$.prototype.applyComposition=function(w,k){if(k.extendLeft||k.extendRight){var T=this.selection.getRange();T.start.column-=k.extendLeft,T.end.column+=k.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),k.restoreStart||k.restoreEnd){var T=this.selection.getRange();T.start.column-=k.restoreStart,T.end.column-=k.restoreEnd,this.selection.setRange(T)}},$.prototype.onCommandKey=function(w,k,T){return this.keyBinding.onCommandKey(w,k,T)},$.prototype.setOverwrite=function(w){this.session.setOverwrite(w)},$.prototype.getOverwrite=function(){return this.session.getOverwrite()},$.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},$.prototype.setScrollSpeed=function(w){this.setOption("scrollSpeed",w)},$.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},$.prototype.setDragDelay=function(w){this.setOption("dragDelay",w)},$.prototype.getDragDelay=function(){return this.getOption("dragDelay")},$.prototype.setSelectionStyle=function(w){this.setOption("selectionStyle",w)},$.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},$.prototype.setHighlightActiveLine=function(w){this.setOption("highlightActiveLine",w)},$.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},$.prototype.setHighlightGutterLine=function(w){this.setOption("highlightGutterLine",w)},$.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},$.prototype.setHighlightSelectedWord=function(w){this.setOption("highlightSelectedWord",w)},$.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},$.prototype.setAnimatedScroll=function(w){this.renderer.setAnimatedScroll(w)},$.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},$.prototype.setShowInvisibles=function(w){this.renderer.setShowInvisibles(w)},$.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},$.prototype.setDisplayIndentGuides=function(w){this.renderer.setDisplayIndentGuides(w)},$.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},$.prototype.setHighlightIndentGuides=function(w){this.renderer.setHighlightIndentGuides(w)},$.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},$.prototype.setShowPrintMargin=function(w){this.renderer.setShowPrintMargin(w)},$.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},$.prototype.setPrintMarginColumn=function(w){this.renderer.setPrintMarginColumn(w)},$.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},$.prototype.setReadOnly=function(w){this.setOption("readOnly",w)},$.prototype.getReadOnly=function(){return this.getOption("readOnly")},$.prototype.setBehavioursEnabled=function(w){this.setOption("behavioursEnabled",w)},$.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},$.prototype.setWrapBehavioursEnabled=function(w){this.setOption("wrapBehavioursEnabled",w)},$.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},$.prototype.setShowFoldWidgets=function(w){this.setOption("showFoldWidgets",w)},$.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},$.prototype.setFadeFoldWidgets=function(w){this.setOption("fadeFoldWidgets",w)},$.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},$.prototype.remove=function(w){this.selection.isEmpty()&&(w=="left"?this.selection.selectLeft():this.selection.selectRight());var k=this.getSelectionRange();if(this.getBehavioursEnabled()){var T=this.session,O=T.getState(k.start.row),I=T.getMode().transformAction(O,"deletion",this,T,k);if(k.end.column===0){var N=T.getTextRange(k);if(N[N.length-1]==`
1010
+ `){var D=T.getLine(k.end.row);/^\s+$/.test(D)&&(k.end.column=D.length)}}I&&(k=I)}this.session.remove(k),this.clearSelection()},$.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},$.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},$.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},$.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var w=this.getSelectionRange();w.start.column==w.end.column&&w.start.row==w.end.row&&(w.end.column=0,w.end.row++),this.session.remove(w),this.clearSelection()},$.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var w=this.getCursorPosition();this.insert(`
1011
+ `),this.moveCursorToPosition(w)},$.prototype.setGhostText=function(w,k){this.session.widgetManager||(this.session.widgetManager=new b(this.session),this.session.widgetManager.attach(this)),this.renderer.setGhostText(w,k)},$.prototype.removeGhostText=function(){this.session.widgetManager&&this.renderer.removeGhostText()},$.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var w=this.getCursorPosition(),k=w.column;if(k!==0){var T=this.session.getLine(w.row),O,I;k<T.length?(O=T.charAt(k)+T.charAt(k-1),I=new m(w.row,k-1,w.row,k+1)):(O=T.charAt(k-1)+T.charAt(k-2),I=new m(w.row,k-2,w.row,k)),this.session.replace(I,O),this.session.selection.moveToPosition(I.end)}}},$.prototype.toLowerCase=function(){var w=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var k=this.getSelectionRange(),T=this.session.getTextRange(k);this.session.replace(k,T.toLowerCase()),this.selection.setSelectionRange(w)},$.prototype.toUpperCase=function(){var w=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var k=this.getSelectionRange(),T=this.session.getTextRange(k);this.session.replace(k,T.toUpperCase()),this.selection.setSelectionRange(w)},$.prototype.indent=function(){var w=this.session,k=this.getSelectionRange();if(k.start.row<k.end.row){var T=this.$getSelectedRows();w.indentRows(T.first,T.last," ");return}else if(k.start.column<k.end.column){var O=w.getTextRange(k);if(!/^\s+$/.test(O)){var T=this.$getSelectedRows();w.indentRows(T.first,T.last," ");return}}var I=w.getLine(k.start.row),N=k.start,D=w.getTabSize(),B=w.documentToScreenColumn(N.row,N.column);if(this.session.getUseSoftTabs())var j=D-B%D,U=o.stringRepeat(" ",j);else{for(var j=B%D;I[k.start.column-1]==" "&&j;)k.start.column--,j--;this.selection.setSelectionRange(k),U=" "}return this.insert(U)},$.prototype.blockIndent=function(){var w=this.$getSelectedRows();this.session.indentRows(w.first,w.last," ")},$.prototype.blockOutdent=function(){var w=this.session.getSelection();this.session.outdentRows(w.getRange())},$.prototype.sortLines=function(){for(var w=this.$getSelectedRows(),k=this.session,T=[],O=w.first;O<=w.last;O++)T.push(k.getLine(O));T.sort(function(D,B){return D.toLowerCase()<B.toLowerCase()?-1:D.toLowerCase()>B.toLowerCase()?1:0});for(var I=new m(0,0,0,0),O=w.first;O<=w.last;O++){var N=k.getLine(O);I.start.row=O,I.end.row=O,I.end.column=N.length,k.replace(I,T[O-w.first])}},$.prototype.toggleCommentLines=function(){var w=this.session.getState(this.getCursorPosition().row),k=this.$getSelectedRows();this.session.getMode().toggleCommentLines(w,this.session,k.first,k.last)},$.prototype.toggleBlockComment=function(){var w=this.getCursorPosition(),k=this.session.getState(w.row),T=this.getSelectionRange();this.session.getMode().toggleBlockComment(k,this.session,T,w)},$.prototype.getNumberAt=function(w,k){var T=/[\-]?[0-9]+(?:\.[0-9]+)?/g;T.lastIndex=0;for(var O=this.session.getLine(w);T.lastIndex<k;){var I=T.exec(O);if(I.index<=k&&I.index+I[0].length>=k){var N={value:I[0],start:I.index,end:I.index+I[0].length};return N}}return null},$.prototype.modifyNumber=function(w){var k=this.selection.getCursor().row,T=this.selection.getCursor().column,O=new m(k,T-1,k,T),I=this.session.getTextRange(O);if(!isNaN(parseFloat(I))&&isFinite(I)){var N=this.getNumberAt(k,T);if(N){var D=N.value.indexOf(".")>=0?N.start+N.value.indexOf(".")+1:N.end,B=N.start+N.value.length-D,j=parseFloat(N.value);j*=Math.pow(10,B),D!==N.end&&T<D?w*=Math.pow(10,N.end-T-1):w*=Math.pow(10,N.end-T),j+=w,j/=Math.pow(10,B);var U=j.toFixed(B),H=new m(k,N.start,k,N.end);this.session.replace(H,U),this.moveCursorTo(k,Math.max(N.start+1,T+U.length-N.value.length))}}else this.toggleWord()},$.prototype.toggleWord=function(){var w=this.selection.getCursor().row,k=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=k-O-1;N<0&&(N=0);var D=0,B=0,j=this;T.match(/[A-Za-z0-9_]+/)&&I.forEach(function(he,Ce){B=D+he.length,N>=D&&N<=B&&(T=he,j.selection.clearSelection(),j.moveCursorTo(w,D+O),j.selection.selectTo(w,B+O)),D=B});for(var U=this.$toggleWordPairs,H,V=0;V<U.length;V++)for(var q=U[V],z=0;z<=1;z++){var Z=+!z,Y=T.match(new RegExp("^\\s?_?("+o.escapeRegExp(q[z])+")\\s?$","i"));if(Y){var Q=T.match(new RegExp("([_]|^|\\s)("+o.escapeRegExp(Y[1])+")($|\\s)","g"));Q&&(H=T.replace(new RegExp(o.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(H),H="")}}},$.prototype.findLinkAt=function(w,k){var T,O,I=this.session.getLine(w),N=I.split(/((?:https?|ftp):\/\/[\S]+)/),D=k;D<0&&(D=0);var B=0,j=0,U;try{for(var H=l(N),V=H.next();!V.done;V=H.next()){var q=V.value;if(j=B+q.length,D>=B&&D<=j&&q.match(/((?:https?|ftp):\/\/[\S]+)/)){U=q.replace(/[\s:.,'";}\]]+$/,"");break}B=j}}catch(z){T={error:z}}finally{try{V&&!V.done&&(O=H.return)&&O.call(H)}finally{if(T)throw T.error}}return U},$.prototype.openLink=function(){var w=this.selection.getCursor(),k=this.findLinkAt(w.row,w.column);return k&&window.open(k,"_blank"),k!=null},$.prototype.removeLines=function(){var w=this.$getSelectedRows();this.session.removeFullLines(w.first,w.last),this.clearSelection()},$.prototype.duplicateSelection=function(){var w=this.selection,k=this.session,T=w.getRange(),O=w.isBackwards();if(T.isEmpty()){var I=T.start.row;k.duplicateLines(I,I)}else{var N=O?T.start:T.end,D=k.insert(N,k.getTextRange(T));T.start=N,T.end=D,w.setSelectionRange(T,O)}},$.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},$.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},$.prototype.moveText=function(w,k,T){return this.session.moveText(w,k,T)},$.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},$.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},$.prototype.$moveLines=function(w,k){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,k?0:w),k&&w==-1&&(O=0),N.moveBy(O,0),I.fromOrientedRange(N)}else{var D=I.rangeList.ranges;I.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var B=0,j=0,U=D.length,H=0;H<U;H++){var V=H;D[H].moveBy(B,0),T=this.$getSelectedRows(D[H]);for(var q=T.first,z=T.last;++H<U;){j&&D[H].moveBy(j,0);var Z=this.$getSelectedRows(D[H]);if(k&&Z.first!=z)break;if(!k&&Z.first>z+1)break;z=Z.last}for(H--,B=this.session.$moveLines(q,z,k?0:w),k&&w==-1&&(V=H+1);V<=H;)D[V].moveBy(B,0),V++;k||(B=0),j+=B}I.fromOrientedRange(I.ranges[0]),I.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},$.prototype.$getSelectedRows=function(w){return w=(w||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(w.start.row),last:this.session.getRowFoldEnd(w.end.row)}},$.prototype.onCompositionStart=function(w){this.renderer.showComposition(w)},$.prototype.onCompositionUpdate=function(w){this.renderer.setCompositionText(w)},$.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},$.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},$.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},$.prototype.isRowVisible=function(w){return w>=this.getFirstVisibleRow()&&w<=this.getLastVisibleRow()},$.prototype.isRowFullyVisible=function(w){return w>=this.renderer.getFirstFullyVisibleRow()&&w<=this.renderer.getLastFullyVisibleRow()},$.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},$.prototype.$moveByPage=function(w,k){var T=this.renderer,O=this.renderer.layerConfig,I=w*Math.floor(O.height/O.lineHeight);k===!0?this.selection.$moveSelection(function(){this.moveCursorBy(I,0)}):k===!1&&(this.selection.moveCursorBy(I,0),this.selection.clearSelection());var N=T.scrollTop;T.scrollBy(0,I*O.lineHeight),k!=null&&T.scrollCursorIntoView(null,.5),T.animateScrolling(N)},$.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},$.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},$.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},$.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},$.prototype.scrollPageDown=function(){this.$moveByPage(1)},$.prototype.scrollPageUp=function(){this.$moveByPage(-1)},$.prototype.scrollToRow=function(w){this.renderer.scrollToRow(w)},$.prototype.scrollToLine=function(w,k,T,O){this.renderer.scrollToLine(w,k,T,O)},$.prototype.centerSelection=function(){var w=this.getSelectionRange(),k={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(k,.5)},$.prototype.getCursorPosition=function(){return this.selection.getCursor()},$.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},$.prototype.getSelectionRange=function(){return this.selection.getRange()},$.prototype.selectAll=function(){this.selection.selectAll()},$.prototype.clearSelection=function(){this.selection.clearSelection()},$.prototype.moveCursorTo=function(w,k){this.selection.moveCursorTo(w,k)},$.prototype.moveCursorToPosition=function(w){this.selection.moveCursorToPosition(w)},$.prototype.jumpToMatching=function(w,k){var T=this.getCursorPosition(),O=new S(this.session,T.row,T.column),I=O.getCurrentToken(),N=0;I&&I.type.indexOf("tag-name")!==-1&&(I=O.stepBackward());var D=I||O.stepForward();if(D){var B,j=!1,U={},H=T.column-D.start,V,q={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(D.value.match(/[{}()\[\]]/g)){for(;H<D.value.length&&!j;H++)if(q[D.value[H]])switch(V=q[D.value[H]]+"."+D.type.replace("rparen","lparen"),isNaN(U[V])&&(U[V]=0),D.value[H]){case"(":case"[":case"{":U[V]++;break;case")":case"]":case"}":U[V]--,U[V]===-1&&(B="bracket",j=!0);break}}else D.type.indexOf("tag-name")!==-1&&(isNaN(U[D.value])&&(U[D.value]=0),I.value==="<"&&N>1?U[D.value]++:I.value==="</"&&U[D.value]--,U[D.value]===-1&&(B="tag",j=!0));j||(I=D,N++,D=O.stepForward(),H=0)}while(D&&!j);if(B){var z,Z;if(B==="bracket")z=this.session.getBracketRange(T),z||(z=new m(O.getCurrentTokenRow(),O.getCurrentTokenColumn()+H-1,O.getCurrentTokenRow(),O.getCurrentTokenColumn()+H-1),Z=z.start,(k||Z.row===T.row&&Math.abs(Z.column-T.column)<2)&&(z=this.session.getBracketRange(Z)));else if(B==="tag"){if(!D||D.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&&k?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))}}},$.prototype.gotoLine=function(w,k,T){this.selection.clearSelection(),this.session.unfold({row:w-1,column:k||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(w-1,k||0),this.isRowFullyVisible(w-1)||this.scrollToLine(w-1,!0,T)},$.prototype.navigateTo=function(w,k){this.selection.moveTo(w,k)},$.prototype.navigateUp=function(w){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var k=this.selection.anchor.getPosition();return this.moveCursorToPosition(k)}this.selection.clearSelection(),this.selection.moveCursorBy(-w||-1,0)},$.prototype.navigateDown=function(w){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var k=this.selection.anchor.getPosition();return this.moveCursorToPosition(k)}this.selection.clearSelection(),this.selection.moveCursorBy(w||1,0)},$.prototype.navigateLeft=function(w){if(this.selection.isEmpty())for(w=w||1;w--;)this.selection.moveCursorLeft();else{var k=this.getSelectionRange().start;this.moveCursorToPosition(k)}this.clearSelection()},$.prototype.navigateRight=function(w){if(this.selection.isEmpty())for(w=w||1;w--;)this.selection.moveCursorRight();else{var k=this.getSelectionRange().end;this.moveCursorToPosition(k)}this.clearSelection()},$.prototype.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},$.prototype.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},$.prototype.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},$.prototype.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},$.prototype.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},$.prototype.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},$.prototype.replace=function(w,k){k&&this.$search.set(k);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},$.prototype.replaceAll=function(w,k){k&&this.$search.set(k);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},$.prototype.$tryReplace=function(w,k){var T=this.session.getTextRange(w);return k=this.$search.replace(T,k),k!==null?(w.end=this.session.replace(w,k),w):null},$.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},$.prototype.find=function(w,k,T){k||(k={}),typeof w=="string"||w instanceof RegExp?k.needle=w:typeof w=="object"&&d.mixin(k,w);var O=this.selection.getRange();k.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(k),k.start||this.$search.set({start:O});var I=this.$search.find(this.session);if(k.preventScroll)return I;if(I)return this.revealRange(I,T),I;k.backwards?O.start=O.end:O.end=O.start,this.selection.setRange(O)},$.prototype.findNext=function(w,k){this.find({skipCurrent:!0,backwards:!1},w,k)},$.prototype.findPrevious=function(w,k){this.find(w,{skipCurrent:!0,backwards:!0},k)},$.prototype.revealRange=function(w,k){this.session.unfold(w),this.selection.setSelectionRange(w);var T=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(w.start,w.end,.5),k!==!1&&this.renderer.animateScrolling(T)},$.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},$.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},$.prototype.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(w){w.destroy()}),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},$.prototype.setAutoScrollEditorIntoView=function(w){if(w){var k,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}),D=this.renderer.on("beforeRender",function(){O&&(k=T.renderer.container.getBoundingClientRect())}),B=this.renderer.on("afterRender",function(){if(O&&k&&(T.isFocused()||T.searchBox&&T.searchBox.isFocused())){var j=T.renderer,U=j.$cursorLayer.$pixelPos,H=j.layerConfig,V=U.top-H.offset;U.top>=0&&V+k.top<0?O=!0:U.top<H.height&&U.top+k.top+H.lineHeight>window.innerHeight?O=!1:O=null,O!=null&&(I.style.top=V+"px",I.style.left=U.left+"px",I.style.height=H.lineHeight+"px",I.scrollIntoView(O)),O=k=null}});this.setAutoScrollEditorIntoView=function(j){j||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",N),this.renderer.off("afterRender",B),this.renderer.off("beforeRender",D))}}},$.prototype.$resetCursorStyle=function(){var w=this.$cursorStyle||"ace",k=this.renderer.$cursorLayer;k&&(k.setSmoothBlinking(/smooth/.test(w)),k.isBlinking=!this.$readOnly&&w!="wide",g.setCssClass(k.element,"ace_slim-cursors",/slim/.test(w)))},$.prototype.prompt=function(w,k,T){var O=this;_.loadModule("ace/ext/prompt",function(I){I.prompt(O,w,k,T)})},$}();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($){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:$})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function($){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function($){this.textInput.setReadOnly($),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function($){this.textInput.setCopyWithEmptySelection($)},initialValue:!1},cursorStyle:{set:function($){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function($){this.setAutoScrollEditorIntoView($)}},keyboardHandler:{set:function($){this.setKeyboardHandler($)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function($){this.session.setValue($)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function($){this.setSession($)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function($){this.renderer.$gutterLayer.setShowLineNumbers($),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),$&&this.$relativeLineNumbers?R.attach(this):R.detach(this)},initialValue:!0},relativeLineNumbers:{set:function($){this.$showLineNumbers&&$?R.attach(this):R.detach(this)}},placeholder:{set:function($){this.$updatePlaceholder||(this.$updatePlaceholder=(function(){var w=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(w&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),g.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(!w&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),g.addCssClass(this.container,"ace_hasPlaceholder");var k=g.createElement("div");k.className="ace_placeholder",k.textContent=this.$placeholder||"",this.renderer.placeholderNode=k,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!w&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}).bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function($){var w={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(O){O.blur(),O.renderer.scroller.focus()},readOnly:!0},k=function(O){if(O.target==this.renderer.scroller&&O.keyCode===M.enter){O.preventDefault();var I=this.getCursorPosition().row;this.isRowVisible(I)||this.scrollToLine(I,!0,!0),this.focus()}},T;$?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(p.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",L("editor.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",k.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.textInput.setAriaOptions({setLabel:!0})):(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",k.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},textInputAriaLabel:{set:function($){this.$textInputAriaLabel=$},initialValue:""},enableMobileMenu:{set:function($){this.$enableMobileMenu=$},initialValue:!0},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($,w){return(Math.abs($.selection.lead.row-w)||w+1+(w<9?"·":""))+""},getWidth:function($,w,k){return Math.max(w.toString().length,(k.lastRow+1).toString().length,2)*k.characterWidth},update:function($,w){w.renderer.$loop.schedule(w.renderer.CHANGE_GUTTER)},attach:function($){$.renderer.$gutterLayer.$renderer=this,$.on("changeSelection",this.update),this.update(null,$)},detach:function($){$.renderer.$gutterLayer.$renderer==this&&($.renderer.$gutterLayer.$renderer=null),$.off("changeSelection",this.update),this.update(null,$)}};r.Editor=C}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(n,r,a){var l=n("../lib/dom"),d=function(){function g(o,p){this.element=o,this.canvasHeight=p||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return g.prototype.moveContainer=function(o){l.translate(this.element,0,-(o.firstRowScreen*o.lineHeight%this.canvasHeight)-o.offset*this.$offsetCoefficient)},g.prototype.pageChanged=function(o,p){return Math.floor(o.firstRowScreen*o.lineHeight/this.canvasHeight)!==Math.floor(p.firstRowScreen*p.lineHeight/this.canvasHeight)},g.prototype.computeLineTop=function(o,p,i){var s=p.firstRowScreen*p.lineHeight,c=Math.floor(s/this.canvasHeight),u=i.documentToScreenRow(o,0)*p.lineHeight;return u-c*this.canvasHeight},g.prototype.computeLineHeight=function(o,p,i){return p.lineHeight*i.getRowLineCount(o)},g.prototype.getLength=function(){return this.cells.length},g.prototype.get=function(o){return this.cells[o]},g.prototype.shift=function(){this.$cacheCell(this.cells.shift())},g.prototype.pop=function(){this.$cacheCell(this.cells.pop())},g.prototype.push=function(o){if(Array.isArray(o)){this.cells.push.apply(this.cells,o);for(var p=l.createFragment(this.element),i=0;i<o.length;i++)p.appendChild(o[i].element);this.element.appendChild(p)}else this.cells.push(o),this.element.appendChild(o.element)},g.prototype.unshift=function(o){if(Array.isArray(o)){this.cells.unshift.apply(this.cells,o);for(var p=l.createFragment(this.element),i=0;i<o.length;i++)p.appendChild(o[i].element);this.element.firstChild?this.element.insertBefore(p,this.element.firstChild):this.element.appendChild(p)}else this.cells.unshift(o),this.element.insertAdjacentElement("afterbegin",o.element)},g.prototype.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},g.prototype.$cacheCell=function(o){o&&(o.element.remove(),this.cellCache.push(o))},g.prototype.createCell=function(o,p,i,s){var c=this.cellCache.pop();if(!c){var u=l.createElement("div");s&&s(u),this.element.appendChild(u),c={element:u,text:"",row:o}}return c.row=o,c},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,a){var l=n("../lib/dom"),d=n("../lib/oop"),g=n("../lib/lang"),o=n("../lib/event_emitter").EventEmitter,p=n("./lines").Lines,i=n("../config").nls,s=function(){function u(h){this.element=l.createElement("div"),this.element.className="ace_layer ace_gutter-layer",h.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 u.prototype.setSession=function(h){this.session&&this.session.off("change",this.$updateAnnotations),this.session=h,h&&h.on("change",this.$updateAnnotations)},u.prototype.addGutterDecoration=function(h,f){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(h,f)},u.prototype.removeGutterDecoration=function(h,f){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(h,f)},u.prototype.setAnnotations=function(h){this.$annotations=[];for(var f=0;f<h.length;f++){var m=h[f],v=m.row,y=this.$annotations[v];y||(y=this.$annotations[v]={text:[],type:[],displayText:[]});var x=m.text,_=m.text,S=m.type;x=x?g.escapeHTML(x):m.html||"",_=_||m.html||"",y.text.indexOf(x)===-1&&(y.text.push(x),y.type.push(S),y.displayText.push(_));var b=m.className;b?y.className=b:S=="error"?y.className=" ace_error":S=="warning"&&y.className!=" ace_error"?y.className=" ace_warning":S=="info"&&!y.className&&(y.className=" ace_info")}},u.prototype.$updateAnnotations=function(h){if(this.$annotations.length){var f=h.start.row,m=h.end.row-f;if(m!==0)if(h.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)}}},u.prototype.update=function(h){this.config=h;var f=this.session,m=h.firstRow,v=Math.min(h.lastRow+h.gutterOffset,f.getLength()-1);this.oldLastRow=v,this.config=h,this.$lines.moveContainer(h),this.$updateCursorRow();for(var y=f.getNextFoldLine(m),x=y?y.start.row:1/0,_=null,S=-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()>S+1;)this.$lines.pop();break}_=this.$lines.get(++S),_?_.row=b:(_=this.$lines.createCell(b,h,this.session,c),this.$lines.push(_)),this.$renderCell(_,h,y,b),b++}this._signal("afterRender"),this.$updateGutterWidth(h)},u.prototype.$updateGutterWidth=function(h){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,h):y.toString().length*h.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))},u.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var h=this.session.selection.getCursor();this.$cursorRow!==h.row&&(this.$cursorRow=h.row)}},u.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var h=this.session.selection.cursor.row;if(this.$cursorRow=h,!(this.$cursorCell&&this.$cursorCell.row==h)){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}}}}},u.prototype.scrollLines=function(h){var f=this.config;if(this.config=h,this.$updateCursorRow(),this.$lines.pageChanged(f,h))return this.update(h);this.$lines.moveContainer(h);var m=Math.min(h.lastRow+h.gutterOffset,this.session.getLength()-1),v=this.oldLastRow;if(this.oldLastRow=m,!f||v<h.firstRow)return this.update(h);if(m<f.firstRow)return this.update(h);if(f.firstRow<h.firstRow)for(var y=this.session.getFoldedRowCount(f.firstRow,h.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();h.firstRow<f.firstRow&&this.$lines.unshift(this.$renderLines(h,h.firstRow,f.firstRow-1)),m>v&&this.$lines.push(this.$renderLines(h,v+1,m)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(h)},u.prototype.$renderLines=function(h,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 S=this.$lines.createCell(y,h,this.session,c);this.$renderCell(S,h,x,y),v.push(S),y++}return v},u.prototype.$renderCell=function(h,f,m,v){var y=h.element,x=this.session,_=y.childNodes[0],S=y.childNodes[1],b=y.childNodes[2],A=b.firstChild,L=x.$firstLineNumber,E=x.$breakpoints,M=x.$decorations,C=x.gutterRenderer||this.$renderer,R=this.$showFoldWidgets&&x.foldWidgets,$=m?m.start.row:Number.MAX_VALUE,w=f.lineHeight+"px",k=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>=$&&this.$cursorRow<=m.end.row)&&(k+="ace_gutter-active-line ",this.$cursorCell!=h&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=h)),E[v]&&(k+=E[v]),M[v]&&(k+=M[v]),this.$annotations[v]&&v!==$&&(k+=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,D=I=="start"&&v==$&&v<m.end.row;if(D){N+=" ace_closed";for(var B="",j=!1,U=v+1;U<=m.end.row;U++)if(this.$annotations[U]){if(this.$annotations[U].className===" ace_error"){j=!0,B=" ace_error_fold";break}if(this.$annotations[U].className===" ace_warning"){j=!0,B=" ace_warning_fold";continue}}k+=B}else N+=" ace_open";S.className!=N&&(S.className=N),l.setStyle(S.style,"height",w),l.setStyle(S.style,"display","inline-block"),S.setAttribute("role","button"),S.setAttribute("tabindex","-1");var H=x.getFoldWidgetRange(v);H?S.setAttribute("aria-label",i("gutter.code-folding.range.aria-label","Toggle code folding, rows $0 through $1",[H.start.row+1,H.end.row+1])):m?S.setAttribute("aria-label",i("gutter.code-folding.closed.aria-label","Toggle code folding, rows $0 through $1",[m.start.row+1,m.end.row+1])):S.setAttribute("aria-label",i("gutter.code-folding.open.aria-label","Toggle code folding, row $0",[v+1])),D?(S.setAttribute("aria-expanded","false"),S.setAttribute("title",i("gutter.code-folding.closed.title","Unfold code"))):(S.setAttribute("aria-expanded","true"),S.setAttribute("title",i("gutter.code-folding.open.title","Fold code")))}else S&&(l.setStyle(S.style,"display","none"),S.setAttribute("tabindex","0"),S.removeAttribute("role"),S.removeAttribute("aria-label"));if(j&&this.$showFoldedAnnotations){b.className="ace_gutter_annotation",A.className=T,A.className+=B,l.setStyle(A.style,"height",w),l.setStyle(b.style,"display","block"),l.setStyle(b.style,"height",w);var V;switch(B){case" ace_error_fold":V=i("gutter.annotation.aria-label.error","Read annotations row $0",[O]);break;case" ace_warning_fold":V=i("gutter.annotation.aria-label.warning","Read annotations row $0",[O]);break}b.setAttribute("aria-label",V),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(" ","")),l.setStyle(A.style,"height",w),l.setStyle(b.style,"display","block"),l.setStyle(b.style,"height",w);var V;switch(this.$annotations[v].className){case" ace_error":V=i("gutter.annotation.aria-label.error","Read annotations row $0",[O]);break;case" ace_warning":V=i("gutter.annotation.aria-label.warning","Read annotations row $0",[O]);break;case" ace_info":V=i("gutter.annotation.aria-label.info","Read annotations row $0",[O]);break}b.setAttribute("aria-label",V),b.setAttribute("tabindex","-1"),b.setAttribute("role","button")}else l.setStyle(b.style,"display","none"),b.removeAttribute("aria-label"),b.removeAttribute("role"),b.setAttribute("tabindex","0");return O!==_.data&&(_.data=O),y.className!=k&&(y.className=k),l.setStyle(h.element.style,"height",this.$lines.computeLineHeight(v,f,x)+"px"),l.setStyle(h.element.style,"top",this.$lines.computeLineTop(v,f,x)+"px"),h.text=O,b.style.display==="none"&&S.style.display==="none"?h.element.setAttribute("aria-hidden",!0):h.element.setAttribute("aria-hidden",!1),h},u.prototype.setHighlightGutterLine=function(h){this.$highlightGutterLine=h},u.prototype.setShowLineNumbers=function(h){this.$renderer=!h&&{getWidth:function(){return 0},getText:function(){return""}}},u.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},u.prototype.setShowFoldWidgets=function(h){h?l.addCssClass(this.element,"ace_folding-enabled"):l.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=h,this.$padding=null},u.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},u.prototype.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var h=l.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(h.borderLeftWidth)||0)+(parseInt(h.paddingLeft)||0)+1,this.$padding.right=(parseInt(h.borderRightWidth)||0)+(parseInt(h.paddingRight)||0),this.$padding},u.prototype.getRegion=function(h){var f=this.$padding||this.$computePadding(),m=this.element.getBoundingClientRect();if(h.x<f.left+m.left)return"markers";if(this.$showFoldWidgets&&h.x>m.right-f.right)return"foldWidgets"},u}();s.prototype.$fixedWidth=!1,s.prototype.$highlightGutterLine=!0,s.prototype.$renderer="",s.prototype.$showLineNumbers=!0,s.prototype.$showFoldWidgets=!0,d.implement(s.prototype,o);function c(u){var h=document.createTextNode("");u.appendChild(h);var f=l.createElement("span");u.appendChild(f);var m=l.createElement("span");u.appendChild(m);var v=l.createElement("span");return m.appendChild(v),u}r.Gutter=s}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(n,r,a){var l=n("../range").Range,d=n("../lib/dom"),g=function(){function p(i){this.element=d.createElement("div"),this.element.className="ace_layer ace_marker-layer",i.appendChild(this.element)}return p.prototype.setPadding=function(i){this.$padding=i},p.prototype.setSession=function(i){this.session=i},p.prototype.setMarkers=function(i){this.markers=i},p.prototype.elt=function(i,s){var c=this.i!=-1&&this.element.childNodes[this.i];c?this.i++:(c=document.createElement("div"),this.element.appendChild(c),this.i=-1),c.style.cssText=s,c.className=i},p.prototype.update=function(i){if(i){this.config=i,this.i=0;var s;for(var c in this.markers){var u=this.markers[c];if(!u.range){u.update(s,this,this.session,i);continue}var h=u.range.clipRows(i.firstRow,i.lastRow);if(!h.isEmpty())if(h=h.toScreenRange(this.session),u.renderer){var f=this.$getTop(h.start.row,i),m=this.$padding+h.start.column*i.characterWidth;u.renderer(s,h,m,f,i)}else u.type=="fullLine"?this.drawFullLineMarker(s,h,u.clazz,i):u.type=="screenLine"?this.drawScreenLineMarker(s,h,u.clazz,i):h.isMultiLine()?u.type=="text"?this.drawTextMarker(s,h,u.clazz,i):this.drawMultiLineMarker(s,h,u.clazz,i):this.drawSingleLineMarker(s,h,u.clazz+" ace_start ace_br15",i)}if(this.i!=-1)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},p.prototype.$getTop=function(i,s){return(i-s.firstRowScreen)*s.lineHeight},p.prototype.drawTextMarker=function(i,s,c,u,h){for(var f=this.session,m=s.start.row,v=s.end.row,y=m,x=0,_=0,S=f.getScreenLastRowColumn(y),b=new l(y,s.start.column,y,_);y<=v;y++)b.start.row=b.end.row=y,b.start.column=y==m?s.start.column:f.getRowWrapIndent(y),b.end.column=S,x=_,_=S,S=y+1<v?f.getScreenLastRowColumn(y+1):y==v?0:s.end.column,this.drawSingleLineMarker(i,b,c+(y==m?" ace_start":"")+" ace_br"+o(y==m||y==m+1&&s.start.column,x<_,_>S,y==v),u,y==v?0:1,h)},p.prototype.drawMultiLineMarker=function(i,s,c,u,h){var f=this.$padding,m=u.lineHeight,v=this.$getTop(s.start.row,u),y=f+s.start.column*u.characterWidth;if(h=h||"",this.session.$bidiHandler.isBidiRow(s.start.row)){var x=s.clone();x.end.row=x.start.row,x.end.column=this.session.getLine(x.start.row).length,this.drawBidiSingleLineMarker(i,x,c+" ace_br1 ace_start",u,null,h)}else this.elt(c+" ace_br1 ace_start","height:"+m+"px;right:0;top:"+v+"px;left:"+y+"px;"+(h||""));if(this.session.$bidiHandler.isBidiRow(s.end.row)){var x=s.clone();x.start.row=x.end.row,x.start.column=0,this.drawBidiSingleLineMarker(i,x,c+" ace_br12",u,null,h)}else{v=this.$getTop(s.end.row,u);var _=s.end.column*u.characterWidth;this.elt(c+" ace_br12","height:"+m+"px;width:"+_+"px;top:"+v+"px;left:"+f+"px;"+(h||""))}if(m=(s.end.row-s.start.row-1)*u.lineHeight,!(m<=0)){v=this.$getTop(s.start.row+1,u);var S=(s.start.column?1:0)|(s.end.column?0:8);this.elt(c+(S?" ace_br"+S:""),"height:"+m+"px;right:0;top:"+v+"px;left:"+f+"px;"+(h||""))}},p.prototype.drawSingleLineMarker=function(i,s,c,u,h,f){if(this.session.$bidiHandler.isBidiRow(s.start.row))return this.drawBidiSingleLineMarker(i,s,c,u,h,f);var m=u.lineHeight,v=(s.end.column+(h||0)-s.start.column)*u.characterWidth,y=this.$getTop(s.start.row,u),x=this.$padding+s.start.column*u.characterWidth;this.elt(c,"height:"+m+"px;width:"+v+"px;top:"+y+"px;left:"+x+"px;"+(f||""))},p.prototype.drawBidiSingleLineMarker=function(i,s,c,u,h,f){var m=u.lineHeight,v=this.$getTop(s.start.row,u),y=this.$padding,x=this.session.$bidiHandler.getSelections(s.start.column,s.end.column);x.forEach(function(_){this.elt(c,"height:"+m+"px;width:"+(_.width+(h||0))+"px;top:"+v+"px;left:"+(y+_.left)+"px;"+(f||""))},this)},p.prototype.drawFullLineMarker=function(i,s,c,u,h){var f=this.$getTop(s.start.row,u),m=u.lineHeight;s.start.row!=s.end.row&&(m+=this.$getTop(s.end.row,u)-f),this.elt(c,"height:"+m+"px;top:"+f+"px;left:0;right:0;"+(h||""))},p.prototype.drawScreenLineMarker=function(i,s,c,u,h){var f=this.$getTop(s.start.row,u),m=u.lineHeight;this.elt(c,"height:"+m+"px;top:"+f+"px;left:0;right:0;"+(h||""))},p}();g.prototype.$padding=0;function o(p,i,s,c){return(p?1:0)|(i?2:0)|(s?4:0)|(c?8:0)}r.Marker=g}),ace.define("ace/layer/text_util",["require","exports","module"],function(n,r,a){var l=new Set(["text","rparen","lparen"]);r.isTextToken=function(d){return l.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,a){var l=n("../lib/oop"),d=n("../lib/dom"),g=n("../lib/lang"),o=n("./lines").Lines,p=n("../lib/event_emitter").EventEmitter,i=n("../config").nls,s=n("./text_util").isTextToken,c=function(){function u(h){this.dom=d,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",h.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new o(this.element)}return u.prototype.$updateEolChar=function(){var h=this.session.doc,f=h.getNewLineCharacter()==`
1012
+ `&&h.getNewLineMode()!="windows",m=f?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=m)return this.EOL_CHAR=m,!0},u.prototype.setPadding=function(h){this.$padding=h,this.element.style.margin="0 "+h+"px"},u.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},u.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},u.prototype.$setFontMetrics=function(h){this.$fontMetrics=h,this.$fontMetrics.on("changeCharacterSize",(function(f){this._signal("changeCharacterSize",f)}).bind(this)),this.$pollSizeChanges()},u.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},u.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},u.prototype.setSession=function(h){this.session=h,h&&this.$computeTabString()},u.prototype.setShowInvisibles=function(h){return this.showInvisibles==h?!1:(this.showInvisibles=h,typeof h=="string"?(this.showSpaces=/tab/i.test(h),this.showTabs=/space/i.test(h),this.showEOL=/eol/i.test(h)):this.showSpaces=this.showTabs=this.showEOL=h,this.$computeTabString(),!0)},u.prototype.setDisplayIndentGuides=function(h){return this.displayIndentGuides==h?!1:(this.displayIndentGuides=h,this.$computeTabString(),!0)},u.prototype.setHighlightIndentGuides=function(h){return this.$highlightIndentGuides===h?!1:(this.$highlightIndentGuides=h,h)},u.prototype.$computeTabString=function(){var h=this.session.getTabSize();this.tabSize=h;for(var f=this.$tabStrings=[0],m=1;m<h+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),S=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+S,v.textContent=b,this.$tabStrings[" "]=v}},u.prototype.updateLines=function(h,f,m){if(this.config.lastRow!=h.lastRow||this.config.firstRow!=h.firstRow)return this.update(h);this.config=h;for(var v=Math.max(f,h.firstRow),y=Math.min(m,h.lastRow),x=this.element.childNodes,_=0,b=h.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 S=!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 E=x[_++];if(E){this.dom.removeChildren(E),this.$renderLine(E,b,b==L?A:!1),S&&(E.style.top=this.$lines.computeLineTop(b,h,this.session)+"px");var M=h.lineHeight*this.session.getRowLength(b)+"px";E.style.height!=M&&(S=!0,E.style.height=M)}b++}if(S)for(;_<this.$lines.cells.length;){var C=this.$lines.cells[_++];C.element.style.top=this.$lines.computeLineTop(C.row,h,this.session)+"px"}},u.prototype.scrollLines=function(h){var f=this.config;if(this.config=h,this.$lines.pageChanged(f,h))return this.update(h);this.$lines.moveContainer(h);var m=h.lastRow,v=f?f.lastRow:-1;if(!f||v<h.firstRow)return this.update(h);if(m<f.firstRow)return this.update(h);if(!f||f.lastRow<h.firstRow)return this.update(h);if(h.lastRow<f.firstRow)return this.update(h);if(f.firstRow<h.firstRow)for(var y=this.session.getFoldedRowCount(f.firstRow,h.firstRow-1);y>0;y--)this.$lines.shift();if(f.lastRow>h.lastRow)for(var y=this.session.getFoldedRowCount(h.lastRow+1,f.lastRow);y>0;y--)this.$lines.pop();h.firstRow<f.firstRow&&this.$lines.unshift(this.$renderLinesFragment(h,h.firstRow,f.firstRow-1)),h.lastRow>f.lastRow&&this.$lines.push(this.$renderLinesFragment(h,f.lastRow+1,h.lastRow)),this.$highlightIndentGuide()},u.prototype.$renderLinesFragment=function(h,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 S=this.$lines.createCell(y,h,this.session),b=S.element;this.dom.removeChildren(b),d.setStyle(b.style,"height",this.$lines.computeLineHeight(y,h,this.session)+"px"),d.setStyle(b.style,"top",this.$lines.computeLineTop(y,h,this.session)+"px"),this.$renderLine(b,y,y==_?x:!1),this.$useLineGroups()?b.className="ace_line_group":b.className="ace_line",v.push(S),y++}return v},u.prototype.update=function(h){this.$lines.moveContainer(h),this.config=h;for(var f=h.firstRow,m=h.lastRow,v=this.$lines;v.getLength();)v.pop();v.push(this.$renderLinesFragment(h,f,m))},u.prototype.$renderToken=function(h,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),S,b=0;S=x.exec(v);){var A=S[1],L=S[2],E=S[3],M=S[4],C=S[5];if(!(!y.showSpaces&&L)){var R=b!=S.index?v.slice(b,S.index):"";if(b=S.index+S[0].length,R&&_.appendChild(this.dom.createTextNode(R,this.element)),A){var $=y.session.getScreenTabSize(f+S.index);_.appendChild(y.$tabStrings[$].cloneNode(!0)),f+=$-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(E){var w=this.dom.createElement("span");w.className="ace_invisible ace_invisible_space ace_invalid",w.textContent=g.stringRepeat(y.SPACE_CHAR,E.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)),s(m.type))h.appendChild(_);else{var k="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",i("inline-fold.closed.title","Unfold code"))),w.className=k,w.appendChild(_),h.appendChild(w)}return f+v.length},u.prototype.renderIndentGuide=function(h,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++)h.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),f.substr(v)}else if(f[0]==" "){for(var x=0;x<v;x++)h.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),f.substr(v)}return this.$highlightIndentGuide(),f},u.prototype.$highlightIndentGuide=function(){if(!(!this.$highlightIndentGuides||!this.displayIndentGuides)){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var h=this.session.doc.$lines;if(h){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&&h[f.row]!==""&&f.column===h[f.row].length){this.$highlightIndentGuideMarker.dir=1;for(var _=f.row+1;_<h.length;_++){var S=h[_],b=/^\s*/.exec(S)[0].length;if(S!==""&&(this.$highlightIndentGuideMarker.end=_,b<=m))break}}this.$renderHighlightIndentGuide()}}},u.prototype.$clearActiveIndentGuide=function(){for(var h=this.$lines.cells,f=0;f<h.length;f++){var m=h[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}}}},u.prototype.$setIndentGuideActive=function(h,f){var m=this.session.doc.getLine(h.row);if(m!==""){var v=h.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")}}},u.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var h=this.$lines.cells;this.$clearActiveIndentGuide();var f=this.$highlightIndentGuideMarker.indentLevel;if(f!==0)if(this.$highlightIndentGuideMarker.dir===1)for(var m=0;m<h.length;m++){var v=h[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=h.length-1;m>=0;m--){var v=h[m];if(this.$highlightIndentGuideMarker.end&&v.row<this.$highlightIndentGuideMarker.start){if(v.row<=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(v,f)}}}},u.prototype.$createLineElement=function(h){var f=this.dom.createElement("div");return f.className="ace_line",f.style.height=this.config.lineHeight+"px",f},u.prototype.$renderWrappedLine=function(h,f,m){var v=0,y=0,x=m[0],_=0,S=this.$createLineElement();h.appendChild(S);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(S,L,x),!L)continue;v-=L.length}if(v+L.length<x)_=this.$renderToken(S,_,A,L),v+=L.length;else{for(;v+L.length>=x;)_=this.$renderToken(S,_,A,L.substring(0,x-v)),L=L.substring(x-v),v=x,S=this.$createLineElement(),h.appendChild(S),S.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(S,_,A,L))}}m[m.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(S,_,null,"",!0)},u.prototype.$renderSimpleLine=function(h,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(h,x),!x))){if(m+x.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(h,m,y,x);m=this.$renderToken(h,m,y,x)}}},u.prototype.$renderOverflowMessage=function(h,f,m,v,y){m&&this.$renderToken(h,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...>",h.appendChild(x)},u.prototype.$renderLine=function(h,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=h;if(v.length){var x=this.session.getRowSplitData(f);if(x&&x.length){this.$renderWrappedLine(h,v,x);var y=h.lastChild}else{var y=h;this.$useLineGroups()&&(y=this.$createLineElement(),h.appendChild(y)),this.$renderSimpleLine(y,v)}}else this.$useLineGroups()&&(y=this.$createLineElement(),h.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(_)}},u.prototype.$getFoldLineTokens=function(h,f){var m=this.session,v=[];function y(_,S,b){for(var A=0,L=0;L+_[A].value.length<S;)if(L+=_[A].value.length,A++,A==_.length)return;if(L!=S){var E=_[A].value.substring(S-L);E.length>b-S&&(E=E.substring(0,b-S)),v.push({type:_[A].type,value:E}),L=S+E.length,A+=1}for(;L<b&&A<_.length;){var E=_[A].value;E.length+L>b?v.push({type:_[A].type,value:E.substring(0,b-L)}):v.push(_[A]),L+=E.length,A+=1}}var x=m.getTokens(h);return f.walk(function(_,S,b,A,L){_!=null?v.push({type:"fold",value:_}):(L&&(x=m.getTokens(S)),x.length&&y(x,A,b))},f.end.row,this.session.getLine(f.end.row).length),v},u.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},u}();c.prototype.EOF_CHAR="¶",c.prototype.EOL_CHAR_LF="¬",c.prototype.EOL_CHAR_CRLF="¤",c.prototype.EOL_CHAR=c.prototype.EOL_CHAR_LF,c.prototype.TAB_CHAR="—",c.prototype.SPACE_CHAR="·",c.prototype.$padding=0,c.prototype.MAX_LINE_LENGTH=1e4,c.prototype.showInvisibles=!1,c.prototype.showSpaces=!1,c.prototype.showTabs=!1,c.prototype.showEOL=!1,c.prototype.displayIndentGuides=!0,c.prototype.$highlightIndentGuides=!0,c.prototype.$tabStrings=[],c.prototype.destroy={},c.prototype.onChangeTabSize=c.prototype.$computeTabString,l.implement(c.prototype,p),r.Text=c}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(n,r,a){var l=n("../lib/dom"),d=function(){function g(o){this.element=l.createElement("div"),this.element.className="ace_layer ace_cursor-layer",o.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),l.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return g.prototype.$updateOpacity=function(o){for(var p=this.cursors,i=p.length;i--;)l.setStyle(p[i].style,"opacity",o?"":"0")},g.prototype.$startCssAnimation=function(){for(var o=this.cursors,p=o.length;p--;)o[p].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout((function(){this.$isAnimating&&l.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},g.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,l.removeCssClass(this.element,"ace_animate-blinking")},g.prototype.setPadding=function(o){this.$padding=o},g.prototype.setSession=function(o){this.session=o},g.prototype.setBlinking=function(o){o!=this.isBlinking&&(this.isBlinking=o,this.restartTimer())},g.prototype.setBlinkInterval=function(o){o!=this.blinkInterval&&(this.blinkInterval=o,this.restartTimer())},g.prototype.setSmoothBlinking=function(o){o!=this.smoothBlinking&&(this.smoothBlinking=o,l.setCssClass(this.element,"ace_smooth-blinking",o),this.$updateCursors(!0),this.restartTimer())},g.prototype.addCursor=function(){var o=l.createElement("div");return o.className="ace_cursor",this.element.appendChild(o),this.cursors.push(o),o},g.prototype.removeCursor=function(){if(this.cursors.length>1){var o=this.cursors.pop();return o.parentNode.removeChild(o),o}},g.prototype.hideCursor=function(){this.isVisible=!1,l.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},g.prototype.showCursor=function(){this.isVisible=!0,l.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},g.prototype.restartTimer=function(){var o=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,l.removeCssClass(this.element,"ace_smooth-blinking")),o(!0),!this.isBlinking||!this.blinkInterval||!this.isVisible){this.$stopCssAnimation();return}if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout((function(){this.$isSmoothBlinking&&l.addCssClass(this.element,"ace_smooth-blinking")}).bind(this))),l.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var p=(function(){this.timeoutId=setTimeout(function(){o(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){o(!0),p()},this.blinkInterval),p()}},g.prototype.getPixelPosition=function(o,p){if(!this.config||!this.session)return{left:0,top:0};o||(o=this.session.selection.getCursor());var i=this.session.documentToScreenPosition(o),s=this.$padding+(this.session.$bidiHandler.isBidiRow(i.row,o.row)?this.session.$bidiHandler.getPosLeft(i.column):i.column*this.config.characterWidth),c=(i.row-(p?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:s,top:c}},g.prototype.isCursorInView=function(o,p){return o.top>=0&&o.top<p.maxHeight},g.prototype.update=function(o){this.config=o;var p=this.session.$selectionMarkers,i=0,s=0;(p===void 0||p.length===0)&&(p=[{cursor:null}]);for(var i=0,c=p.length;i<c;i++){var u=this.getPixelPosition(p[i].cursor,!0);if(!((u.top>o.height+o.offset||u.top<0)&&i>1)){var h=this.cursors[s++]||this.addCursor(),f=h.style;this.drawCursor?this.drawCursor(h,u,o,p[i],this.session):this.isCursorInView(u,o)?(l.setStyle(f,"display","block"),l.translate(h,u.left,u.top),l.setStyle(f,"width",Math.round(o.characterWidth)+"px"),l.setStyle(f,"height",o.lineHeight+"px")):l.setStyle(f,"display","none")}}for(;this.cursors.length>s;)this.removeCursor();var m=this.session.getOverwrite();this.$setOverwrite(m),this.$pixelPos=u,this.restartTimer()},g.prototype.$setOverwrite=function(o){o!=this.overwrite&&(this.overwrite=o,o?l.addCssClass(this.element,"ace_overwrite-cursors"):l.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,a){var l=this&&this.__extends||function(){var h=function(f,m){return h=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])},h(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");h(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"),o=n("./lib/event"),p=n("./lib/event_emitter").EventEmitter,i=32768,s=function(){function h(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,o.addListener(this.element,"scroll",this.onScroll.bind(this)),o.addListener(this.element,"mousedown",o.preventDefault)}return h.prototype.setVisible=function(f){this.element.style.display=f?"":"none",this.isVisible=f,this.coeff=1},h}();d.implement(s.prototype,p);var c=function(h){l(f,h);function f(m,v){var y=h.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>i?(this.coeff=i/m,m=i):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}(s);c.prototype.setInnerHeight=c.prototype.setScrollHeight;var u=function(h){l(f,h);function f(m,v){var y=h.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}(s);r.ScrollBar=c,r.ScrollBarV=c,r.ScrollBarH=u,r.VScrollBar=c,r.HScrollBar=u}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(n,r,a){var l=this&&this.__extends||function(){var u=function(h,f){return u=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])},u(h,f)};return function(h,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");u(h,f);function m(){this.constructor=h}h.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}}(),d=n("./lib/oop"),g=n("./lib/dom"),o=n("./lib/event"),p=n("./lib/event_emitter").EventEmitter;g.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{
1013
+ position: absolute;
1014
+ background: rgba(128, 128, 128, 0.6);
1015
+ -moz-box-sizing: border-box;
1016
+ box-sizing: border-box;
1017
+ border: 1px solid #bbb;
1018
+ border-radius: 2px;
1019
+ z-index: 8;
1020
+ }
1021
+ .ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {
1022
+ position: absolute;
1023
+ z-index: 6;
1024
+ background: none;
1025
+ overflow: hidden!important;
1026
+ }
1027
+ .ace_editor>.ace_sb-v {
1028
+ z-index: 6;
1029
+ right: 0;
1030
+ top: 0;
1031
+ width: 12px;
1032
+ }
1033
+ .ace_editor>.ace_sb-v div {
1034
+ z-index: 8;
1035
+ right: 0;
1036
+ width: 100%;
1037
+ }
1038
+ .ace_editor>.ace_sb-h {
1039
+ bottom: 0;
1040
+ left: 0;
1041
+ height: 12px;
1042
+ }
1043
+ .ace_editor>.ace_sb-h div {
1044
+ bottom: 0;
1045
+ height: 100%;
1046
+ }
1047
+ .ace_editor>.ace_sb_grabbed {
1048
+ z-index: 8;
1049
+ background: #000;
1050
+ }`,"ace_scrollbar.css",!1);var i=function(){function u(h,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,h.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,o.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return u.prototype.setVisible=function(h){this.element.style.display=h?"":"none",this.isVisible=h,this.coeff=1},u}();d.implement(i.prototype,p);var s=function(u){l(h,u);function h(f,m){var v=u.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 h.prototype.onMouseDown=function(f,m){if(f==="mousedown"&&!(o.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)},S=m.clientY,b=this.thumbTop,A=function(){if(y!==void 0){var M=v.scrollTopFromThumbTop(b+y-S);M!==v.scrollTop&&v._emit("scroll",{data:M})}};o.capture(this.inner,x,_);var L=setInterval(A,20);return o.preventDefault(m)}var E=m.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(E)}),o.preventDefault(m)}},h.prototype.getHeight=function(){return this.height},h.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},h.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},h.prototype.setHeight=function(f){this.height=Math.max(0,f),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},h.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})))},h.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"},h}(i);s.prototype.setInnerHeight=s.prototype.setScrollHeight;var c=function(u){l(h,u);function h(f,m){var v=u.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 h.prototype.onMouseDown=function(f,m){if(f==="mousedown"&&!(o.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)},S=m.clientX,b=this.thumbLeft,A=function(){if(y!==void 0){var M=v.scrollLeftFromThumbLeft(b+y-S);M!==v.scrollLeft&&v._emit("scroll",{data:M})}};o.capture(this.inner,x,_);var L=setInterval(A,20);return o.preventDefault(m)}var E=m.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(E)}),o.preventDefault(m)}},h.prototype.getHeight=function(){return this.isVisible?this.height:0},h.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},h.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)},h.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})))},h.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"},h}(i);c.prototype.setInnerWidth=c.prototype.setScrollWidth,r.ScrollBar=s,r.ScrollBarV=s,r.ScrollBarH=c,r.VScrollBar=s,r.HScrollBar=c}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(n,r,a){var l=n("./lib/event"),d=function(){function g(o,p){this.onRender=o,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=p||window;var i=this;this._flush=function(s){i.pending=!1;var c=i.changes;if(c&&(l.blockIdle(100),i.changes=0,i.onRender(c)),i.changes){if(i.$recursionLimit--<0)return;i.schedule()}else i.$recursionLimit=2}}return g.prototype.schedule=function(o){this.changes=this.changes|o,this.changes&&!this.pending&&(l.nextFrame(this._flush),this.pending=!0)},g.prototype.clear=function(o){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,a){var l=n("../lib/oop"),d=n("../lib/dom"),g=n("../lib/lang"),o=n("../lib/event"),p=n("../lib/useragent"),i=n("../lib/event_emitter").EventEmitter,s=512,c=typeof ResizeObserver=="function",u=200,h=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",s),this.$characterSize={width:0,height:0},c?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=o.onIdle(function v(){m.checkForSizeChanges(),o.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/s};return v.width===0||v.height===0?null:v},f.prototype.$measureCharWidth=function(m){this.$main.textContent=g.stringRepeat(m,s);var v=this.$main.getBoundingClientRect();return v.width/s},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:(Number(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(u,0),m(0,u),m(u,u)],this.el)},f.prototype.transformCoordinates=function(m,v){if(m){var y=this.$getZoom(this.el);m=b(1/y,m)}function x(D,B,j){var U=D[1]*B[0]-D[0]*B[1];return[(-B[1]*j[0]+B[0]*j[1])/U,(+D[1]*j[0]-D[0]*j[1])/U]}function _(D,B){return[D[0]-B[0],D[1]-B[1]]}function S(D,B){return[D[0]+B[0],D[1]+B[1]]}function b(D,B){return[D*B[0],D*B[1]]}this.els||this.$initTransformMeasureNodes();function A(D){var B=D.getBoundingClientRect();return[B.left,B.top]}var L=A(this.els[0]),E=A(this.els[1]),M=A(this.els[2]),C=A(this.els[3]),R=x(_(C,E),_(C,M),_(S(E,M),S(C,L))),$=b(1+R[0],_(E,L)),w=b(1+R[1],_(M,L));if(v){var k=v,T=R[0]*k[0]/u+R[1]*k[1]/u+1,O=S(b(k[0],$),b(k[1],w));return S(b(1/T/u,O),L)}var I=_(m,L),N=x(_($,b(R[0],I)),_(w,b(R[1],I)),I);return b(u,N)},f}();h.prototype.$characterSize={width:0,height:0},l.implement(h.prototype,i),r.FontMetrics=h}),ace.define("ace/css/editor-css",["require","exports","module"],function(n,r,a){a.exports=`
1051
+ .ace_br1 {border-top-left-radius : 3px;}
1052
+ .ace_br2 {border-top-right-radius : 3px;}
1053
+ .ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}
1054
+ .ace_br4 {border-bottom-right-radius: 3px;}
1055
+ .ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}
1056
+ .ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}
1057
+ .ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}
1058
+ .ace_br8 {border-bottom-left-radius : 3px;}
1059
+ .ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}
1060
+ .ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}
1061
+ .ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}
1062
+ .ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
1063
+ .ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
1064
+ .ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
1065
+ .ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
1066
+
1067
+
1068
+ .ace_editor {
1069
+ position: relative;
1070
+ overflow: hidden;
1071
+ padding: 0;
1072
+ font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace;
1073
+ direction: ltr;
1074
+ text-align: left;
1075
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
1076
+ }
1077
+
1078
+ .ace_scroller {
1079
+ position: absolute;
1080
+ overflow: hidden;
1081
+ top: 0;
1082
+ bottom: 0;
1083
+ background-color: inherit;
1084
+ -ms-user-select: none;
1085
+ -moz-user-select: none;
1086
+ -webkit-user-select: none;
1087
+ user-select: none;
1088
+ cursor: text;
1089
+ }
1090
+
1091
+ .ace_content {
1092
+ position: absolute;
1093
+ box-sizing: border-box;
1094
+ min-width: 100%;
1095
+ contain: style size layout;
1096
+ font-variant-ligatures: no-common-ligatures;
1097
+ }
1098
+
1099
+ .ace_keyboard-focus:focus {
1100
+ box-shadow: inset 0 0 0 2px #5E9ED6;
1101
+ outline: none;
1102
+ }
1103
+
1104
+ .ace_dragging .ace_scroller:before{
1105
+ position: absolute;
1106
+ top: 0;
1107
+ left: 0;
1108
+ right: 0;
1109
+ bottom: 0;
1110
+ content: '';
1111
+ background: rgba(250, 250, 250, 0.01);
1112
+ z-index: 1000;
1113
+ }
1114
+ .ace_dragging.ace_dark .ace_scroller:before{
1115
+ background: rgba(0, 0, 0, 0.01);
1116
+ }
1117
+
1118
+ .ace_gutter {
1119
+ position: absolute;
1120
+ overflow : hidden;
1121
+ width: auto;
1122
+ top: 0;
1123
+ bottom: 0;
1124
+ left: 0;
1125
+ cursor: default;
1126
+ z-index: 4;
1127
+ -ms-user-select: none;
1128
+ -moz-user-select: none;
1129
+ -webkit-user-select: none;
1130
+ user-select: none;
1131
+ contain: style size layout;
1132
+ }
1133
+
1134
+ .ace_gutter-active-line {
1135
+ position: absolute;
1136
+ left: 0;
1137
+ right: 0;
1138
+ }
1139
+
1140
+ .ace_scroller.ace_scroll-left:after {
1141
+ content: "";
1142
+ position: absolute;
1143
+ top: 0;
1144
+ right: 0;
1145
+ bottom: 0;
1146
+ left: 0;
1147
+ box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
1148
+ pointer-events: none;
1149
+ }
1150
+
1151
+ .ace_gutter-cell, .ace_gutter-cell_svg-icons {
1152
+ position: absolute;
1153
+ top: 0;
1154
+ left: 0;
1155
+ right: 0;
1156
+ padding-left: 19px;
1157
+ padding-right: 6px;
1158
+ background-repeat: no-repeat;
1159
+ }
1160
+
1161
+ .ace_gutter-cell_svg-icons .ace_gutter_annotation {
1162
+ margin-left: -14px;
1163
+ float: left;
1164
+ }
1165
+
1166
+ .ace_gutter-cell .ace_gutter_annotation {
1167
+ margin-left: -19px;
1168
+ float: left;
1169
+ }
1170
+
1171
+ .ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold {
1172
+ 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==");
1173
+ background-repeat: no-repeat;
1174
+ background-position: 2px center;
1175
+ }
1176
+
1177
+ .ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {
1178
+ 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==");
1179
+ background-repeat: no-repeat;
1180
+ background-position: 2px center;
1181
+ }
1182
+
1183
+ .ace_gutter-cell.ace_info, .ace_icon.ace_info {
1184
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");
1185
+ background-repeat: no-repeat;
1186
+ background-position: 2px center;
1187
+ }
1188
+ .ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info {
1189
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");
1190
+ }
1191
+
1192
+ .ace_icon_svg.ace_error {
1193
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");
1194
+ background-color: crimson;
1195
+ }
1196
+ .ace_icon_svg.ace_warning {
1197
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");
1198
+ background-color: darkorange;
1199
+ }
1200
+ .ace_icon_svg.ace_info {
1201
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");
1202
+ background-color: royalblue;
1203
+ }
1204
+
1205
+ .ace_icon_svg.ace_error_fold {
1206
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
1207
+ background-color: crimson;
1208
+ }
1209
+ .ace_icon_svg.ace_warning_fold {
1210
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");
1211
+ background-color: darkorange;
1212
+ }
1213
+
1214
+ .ace_scrollbar {
1215
+ contain: strict;
1216
+ position: absolute;
1217
+ right: 0;
1218
+ bottom: 0;
1219
+ z-index: 6;
1220
+ }
1221
+
1222
+ .ace_scrollbar-inner {
1223
+ position: absolute;
1224
+ cursor: text;
1225
+ left: 0;
1226
+ top: 0;
1227
+ }
1228
+
1229
+ .ace_scrollbar-v{
1230
+ overflow-x: hidden;
1231
+ overflow-y: scroll;
1232
+ top: 0;
1233
+ }
1234
+
1235
+ .ace_scrollbar-h {
1236
+ overflow-x: scroll;
1237
+ overflow-y: hidden;
1238
+ left: 0;
1239
+ }
1240
+
1241
+ .ace_print-margin {
1242
+ position: absolute;
1243
+ height: 100%;
1244
+ }
1245
+
1246
+ .ace_text-input {
1247
+ position: absolute;
1248
+ z-index: 0;
1249
+ width: 0.5em;
1250
+ height: 1em;
1251
+ opacity: 0;
1252
+ background: transparent;
1253
+ -moz-appearance: none;
1254
+ appearance: none;
1255
+ border: none;
1256
+ resize: none;
1257
+ outline: none;
1258
+ overflow: hidden;
1259
+ font: inherit;
1260
+ padding: 0 1px;
1261
+ margin: 0 -1px;
1262
+ contain: strict;
1263
+ -ms-user-select: text;
1264
+ -moz-user-select: text;
1265
+ -webkit-user-select: text;
1266
+ user-select: text;
1267
+ /*with \`pre-line\` chrome inserts &nbsp; instead of space*/
1268
+ white-space: pre!important;
1269
+ }
1270
+ .ace_text-input.ace_composition {
1271
+ background: transparent;
1272
+ color: inherit;
1273
+ z-index: 1000;
1274
+ opacity: 1;
1275
+ }
1276
+ .ace_composition_placeholder { color: transparent }
1277
+ .ace_composition_marker {
1278
+ border-bottom: 1px solid;
1279
+ position: absolute;
1280
+ border-radius: 0;
1281
+ margin-top: 1px;
1282
+ }
1283
+
1284
+ [ace_nocontext=true] {
1285
+ transform: none!important;
1286
+ filter: none!important;
1287
+ clip-path: none!important;
1288
+ mask : none!important;
1289
+ contain: none!important;
1290
+ perspective: none!important;
1291
+ mix-blend-mode: initial!important;
1292
+ z-index: auto;
1293
+ }
1294
+
1295
+ .ace_layer {
1296
+ z-index: 1;
1297
+ position: absolute;
1298
+ overflow: hidden;
1299
+ /* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/
1300
+ word-wrap: normal;
1301
+ white-space: pre;
1302
+ height: 100%;
1303
+ width: 100%;
1304
+ box-sizing: border-box;
1305
+ /* setting pointer-events: auto; on node under the mouse, which changes
1306
+ during scroll, will break mouse wheel scrolling in Safari */
1307
+ pointer-events: none;
1308
+ }
1309
+
1310
+ .ace_gutter-layer {
1311
+ position: relative;
1312
+ width: auto;
1313
+ text-align: right;
1314
+ pointer-events: auto;
1315
+ height: 1000000px;
1316
+ contain: style size layout;
1317
+ }
1318
+
1319
+ .ace_text-layer {
1320
+ font: inherit !important;
1321
+ position: absolute;
1322
+ height: 1000000px;
1323
+ width: 1000000px;
1324
+ contain: style size layout;
1325
+ }
1326
+
1327
+ .ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {
1328
+ contain: style size layout;
1329
+ position: absolute;
1330
+ top: 0;
1331
+ left: 0;
1332
+ right: 0;
1333
+ }
1334
+
1335
+ .ace_hidpi .ace_text-layer,
1336
+ .ace_hidpi .ace_gutter-layer,
1337
+ .ace_hidpi .ace_content,
1338
+ .ace_hidpi .ace_gutter {
1339
+ contain: strict;
1340
+ }
1341
+ .ace_hidpi .ace_text-layer > .ace_line,
1342
+ .ace_hidpi .ace_text-layer > .ace_line_group {
1343
+ contain: strict;
1344
+ }
1345
+
1346
+ .ace_cjk {
1347
+ display: inline-block;
1348
+ text-align: center;
1349
+ }
1350
+
1351
+ .ace_cursor-layer {
1352
+ z-index: 4;
1353
+ }
1354
+
1355
+ .ace_cursor {
1356
+ z-index: 4;
1357
+ position: absolute;
1358
+ box-sizing: border-box;
1359
+ border-left: 2px solid;
1360
+ /* workaround for smooth cursor repaintng whole screen in chrome */
1361
+ transform: translatez(0);
1362
+ }
1363
+
1364
+ .ace_multiselect .ace_cursor {
1365
+ border-left-width: 1px;
1366
+ }
1367
+
1368
+ .ace_slim-cursors .ace_cursor {
1369
+ border-left-width: 1px;
1370
+ }
1371
+
1372
+ .ace_overwrite-cursors .ace_cursor {
1373
+ border-left-width: 0;
1374
+ border-bottom: 1px solid;
1375
+ }
1376
+
1377
+ .ace_hidden-cursors .ace_cursor {
1378
+ opacity: 0.2;
1379
+ }
1380
+
1381
+ .ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {
1382
+ opacity: 0;
1383
+ }
1384
+
1385
+ .ace_smooth-blinking .ace_cursor {
1386
+ transition: opacity 0.18s;
1387
+ }
1388
+
1389
+ .ace_animate-blinking .ace_cursor {
1390
+ animation-duration: 1000ms;
1391
+ animation-timing-function: step-end;
1392
+ animation-name: blink-ace-animate;
1393
+ animation-iteration-count: infinite;
1394
+ }
1395
+
1396
+ .ace_animate-blinking.ace_smooth-blinking .ace_cursor {
1397
+ animation-duration: 1000ms;
1398
+ animation-timing-function: ease-in-out;
1399
+ animation-name: blink-ace-animate-smooth;
1400
+ }
1401
+
1402
+ @keyframes blink-ace-animate {
1403
+ from, to { opacity: 1; }
1404
+ 60% { opacity: 0; }
1405
+ }
1406
+
1407
+ @keyframes blink-ace-animate-smooth {
1408
+ from, to { opacity: 1; }
1409
+ 45% { opacity: 1; }
1410
+ 60% { opacity: 0; }
1411
+ 85% { opacity: 0; }
1412
+ }
1413
+
1414
+ .ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {
1415
+ position: absolute;
1416
+ z-index: 3;
1417
+ }
1418
+
1419
+ .ace_marker-layer .ace_selection {
1420
+ position: absolute;
1421
+ z-index: 5;
1422
+ }
1423
+
1424
+ .ace_marker-layer .ace_bracket {
1425
+ position: absolute;
1426
+ z-index: 6;
1427
+ }
1428
+
1429
+ .ace_marker-layer .ace_error_bracket {
1430
+ position: absolute;
1431
+ border-bottom: 1px solid #DE5555;
1432
+ border-radius: 0;
1433
+ }
1434
+
1435
+ .ace_marker-layer .ace_active-line {
1436
+ position: absolute;
1437
+ z-index: 2;
1438
+ }
1439
+
1440
+ .ace_marker-layer .ace_selected-word {
1441
+ position: absolute;
1442
+ z-index: 4;
1443
+ box-sizing: border-box;
1444
+ }
1445
+
1446
+ .ace_line .ace_fold {
1447
+ box-sizing: border-box;
1448
+
1449
+ display: inline-block;
1450
+ height: 11px;
1451
+ margin-top: -2px;
1452
+ vertical-align: middle;
1453
+
1454
+ background-image:
1455
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
1456
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");
1457
+ background-repeat: no-repeat, repeat-x;
1458
+ background-position: center center, top left;
1459
+ color: transparent;
1460
+
1461
+ border: 1px solid black;
1462
+ border-radius: 2px;
1463
+
1464
+ cursor: pointer;
1465
+ pointer-events: auto;
1466
+ }
1467
+
1468
+ .ace_dark .ace_fold {
1469
+ }
1470
+
1471
+ .ace_fold:hover{
1472
+ background-image:
1473
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
1474
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");
1475
+ }
1476
+
1477
+ .ace_tooltip {
1478
+ background-color: #f5f5f5;
1479
+ border: 1px solid gray;
1480
+ border-radius: 1px;
1481
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
1482
+ color: black;
1483
+ max-width: 100%;
1484
+ padding: 3px 4px;
1485
+ position: fixed;
1486
+ z-index: 999999;
1487
+ box-sizing: border-box;
1488
+ cursor: default;
1489
+ white-space: pre-wrap;
1490
+ word-wrap: break-word;
1491
+ line-height: normal;
1492
+ font-style: normal;
1493
+ font-weight: normal;
1494
+ letter-spacing: normal;
1495
+ pointer-events: none;
1496
+ overflow: auto;
1497
+ max-width: min(60em, 66vw);
1498
+ overscroll-behavior: contain;
1499
+ }
1500
+ .ace_tooltip pre {
1501
+ white-space: pre-wrap;
1502
+ }
1503
+
1504
+ .ace_tooltip.ace_dark {
1505
+ background-color: #636363;
1506
+ color: #fff;
1507
+ }
1508
+
1509
+ .ace_tooltip:focus {
1510
+ outline: 1px solid #5E9ED6;
1511
+ }
1512
+
1513
+ .ace_icon {
1514
+ display: inline-block;
1515
+ width: 18px;
1516
+ vertical-align: top;
1517
+ }
1518
+
1519
+ .ace_icon_svg {
1520
+ display: inline-block;
1521
+ width: 12px;
1522
+ vertical-align: top;
1523
+ -webkit-mask-repeat: no-repeat;
1524
+ -webkit-mask-size: 12px;
1525
+ -webkit-mask-position: center;
1526
+ }
1527
+
1528
+ .ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {
1529
+ padding-right: 13px;
1530
+ }
1531
+
1532
+ .ace_fold-widget {
1533
+ box-sizing: border-box;
1534
+
1535
+ margin: 0 -12px 0 1px;
1536
+ display: none;
1537
+ width: 11px;
1538
+ vertical-align: top;
1539
+
1540
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");
1541
+ background-repeat: no-repeat;
1542
+ background-position: center;
1543
+
1544
+ border-radius: 3px;
1545
+
1546
+ border: 1px solid transparent;
1547
+ cursor: pointer;
1548
+ }
1549
+
1550
+ .ace_folding-enabled .ace_fold-widget {
1551
+ display: inline-block;
1552
+ }
1553
+
1554
+ .ace_fold-widget.ace_end {
1555
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");
1556
+ }
1557
+
1558
+ .ace_fold-widget.ace_closed {
1559
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");
1560
+ }
1561
+
1562
+ .ace_fold-widget:hover {
1563
+ border: 1px solid rgba(0, 0, 0, 0.3);
1564
+ background-color: rgba(255, 255, 255, 0.2);
1565
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
1566
+ }
1567
+
1568
+ .ace_fold-widget:active {
1569
+ border: 1px solid rgba(0, 0, 0, 0.4);
1570
+ background-color: rgba(0, 0, 0, 0.05);
1571
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
1572
+ }
1573
+ /**
1574
+ * Dark version for fold widgets
1575
+ */
1576
+ .ace_dark .ace_fold-widget {
1577
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");
1578
+ }
1579
+ .ace_dark .ace_fold-widget.ace_end {
1580
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");
1581
+ }
1582
+ .ace_dark .ace_fold-widget.ace_closed {
1583
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");
1584
+ }
1585
+ .ace_dark .ace_fold-widget:hover {
1586
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
1587
+ background-color: rgba(255, 255, 255, 0.1);
1588
+ }
1589
+ .ace_dark .ace_fold-widget:active {
1590
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
1591
+ }
1592
+
1593
+ .ace_inline_button {
1594
+ border: 1px solid lightgray;
1595
+ display: inline-block;
1596
+ margin: -1px 8px;
1597
+ padding: 0 5px;
1598
+ pointer-events: auto;
1599
+ cursor: pointer;
1600
+ }
1601
+ .ace_inline_button:hover {
1602
+ border-color: gray;
1603
+ background: rgba(200,200,200,0.2);
1604
+ display: inline-block;
1605
+ pointer-events: auto;
1606
+ }
1607
+
1608
+ .ace_fold-widget.ace_invalid {
1609
+ background-color: #FFB4B4;
1610
+ border-color: #DE5555;
1611
+ }
1612
+
1613
+ .ace_fade-fold-widgets .ace_fold-widget {
1614
+ transition: opacity 0.4s ease 0.05s;
1615
+ opacity: 0;
1616
+ }
1617
+
1618
+ .ace_fade-fold-widgets:hover .ace_fold-widget {
1619
+ transition: opacity 0.05s ease 0.05s;
1620
+ opacity:1;
1621
+ }
1622
+
1623
+ .ace_underline {
1624
+ text-decoration: underline;
1625
+ }
1626
+
1627
+ .ace_bold {
1628
+ font-weight: bold;
1629
+ }
1630
+
1631
+ .ace_nobold .ace_bold {
1632
+ font-weight: normal;
1633
+ }
1634
+
1635
+ .ace_italic {
1636
+ font-style: italic;
1637
+ }
1638
+
1639
+
1640
+ .ace_error-marker {
1641
+ background-color: rgba(255, 0, 0,0.2);
1642
+ position: absolute;
1643
+ z-index: 9;
1644
+ }
1645
+
1646
+ .ace_highlight-marker {
1647
+ background-color: rgba(255, 255, 0,0.2);
1648
+ position: absolute;
1649
+ z-index: 8;
1650
+ }
1651
+
1652
+ .ace_mobile-menu {
1653
+ position: absolute;
1654
+ line-height: 1.5;
1655
+ border-radius: 4px;
1656
+ -ms-user-select: none;
1657
+ -moz-user-select: none;
1658
+ -webkit-user-select: none;
1659
+ user-select: none;
1660
+ background: white;
1661
+ box-shadow: 1px 3px 2px grey;
1662
+ border: 1px solid #dcdcdc;
1663
+ color: black;
1664
+ }
1665
+ .ace_dark > .ace_mobile-menu {
1666
+ background: #333;
1667
+ color: #ccc;
1668
+ box-shadow: 1px 3px 2px grey;
1669
+ border: 1px solid #444;
1670
+
1671
+ }
1672
+ .ace_mobile-button {
1673
+ padding: 2px;
1674
+ cursor: pointer;
1675
+ overflow: hidden;
1676
+ }
1677
+ .ace_mobile-button:hover {
1678
+ background-color: #eee;
1679
+ opacity:1;
1680
+ }
1681
+ .ace_mobile-button:active {
1682
+ background-color: #ddd;
1683
+ }
1684
+
1685
+ .ace_placeholder {
1686
+ font-family: arial;
1687
+ transform: scale(0.9);
1688
+ transform-origin: left;
1689
+ white-space: pre;
1690
+ opacity: 0.7;
1691
+ margin: 0 10px;
1692
+ }
1693
+
1694
+ .ace_ghost_text {
1695
+ opacity: 0.5;
1696
+ font-style: italic;
1697
+ }
1698
+
1699
+ .ace_ghost_text > div {
1700
+ white-space: pre;
1701
+ }
1702
+
1703
+ .ghost_text_line_wrapped::after {
1704
+ content: "↩";
1705
+ position: absolute;
1706
+ }
1707
+
1708
+ .ace_lineWidgetContainer.ace_ghost_text {
1709
+ margin: 0px 4px
1710
+ }
1711
+
1712
+ .ace_screenreader-only {
1713
+ position:absolute;
1714
+ left:-10000px;
1715
+ top:auto;
1716
+ width:1px;
1717
+ height:1px;
1718
+ overflow:hidden;
1719
+ }`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(n,r,a){var l=n("../lib/dom"),d=n("../lib/oop"),g=n("../lib/event_emitter").EventEmitter,o=function(){function p(i,s){this.canvas=l.createElement("canvas"),this.renderer=s,this.pixelRatio=1,this.maxHeight=s.layerConfig.maxHeight,this.lineHeight=s.layerConfig.lineHeight,this.canvasHeight=i.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=i.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)"},i.element.appendChild(this.canvas)}return p.prototype.$updateDecorators=function(i){var s=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;if(i){this.maxHeight=i.maxHeight,this.lineHeight=i.lineHeight,this.canvasHeight=i.height;var c=(i.lastRow+1)*this.lineHeight;c<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight}var u=this.canvas.getContext("2d");function h(C,R){return C.priority<R.priority?-1:C.priority>R.priority?1:0}var f=this.renderer.session.$annotations;if(u.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(h);for(var v=this.renderer.session.$foldData,y=0;y<f.length;y++){var x=f[y].row,_=this.compensateFoldRows(x,v),S=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 E=(b+A)/2|0;E<this.halfMinDecorationHeight?E=this.halfMinDecorationHeight:E+this.halfMinDecorationHeight>this.canvasHeight&&(E=this.canvasHeight-this.halfMinDecorationHeight),b=Math.round(E-this.halfMinDecorationHeight),A=Math.round(E+this.halfMinDecorationHeight)}u.fillStyle=s[f[y].type]||null,u.fillRect(0,S,this.canvasWidth,A-b)}}var M=this.renderer.session.selection.getCursor();if(M){var _=this.compensateFoldRows(M.row,v),S=Math.round((M.row-_)*this.lineHeight*this.heightRatio);u.fillStyle="rgba(0, 0, 0, 0.5)",u.fillRect(0,S,this.canvasWidth,2)}},p.prototype.compensateFoldRows=function(i,s){var c=0;if(s&&s.length>0)for(var u=0;u<s.length;u++)i>s[u].start.row&&i<s[u].end.row?c+=i-s[u].start.row:i>=s[u].end.row&&(c+=s[u].end.row-s[u].start.row);return c},p}();d.implement(o.prototype,g),r.Decorator=o}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/scrollbar_custom","ace/scrollbar_custom","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/css/editor-css","ace/layer/decorators","ace/lib/useragent"],function(n,r,a){var l=n("./lib/oop"),d=n("./lib/dom"),g=n("./lib/lang"),o=n("./config"),p=n("./layer/gutter").Gutter,i=n("./layer/marker").Marker,s=n("./layer/text").Text,c=n("./layer/cursor").Cursor,u=n("./scrollbar").HScrollBar,h=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"),S=n("./layer/decorators").Decorator,b=n("./lib/useragent");d.importCssString(_,"ace_editor.css",!1);var A=function(){function L(E,M){var C=this;this.container=E||d.createElement("div"),d.addCssClass(this.container,"ace_editor"),d.HI_DPI&&d.addCssClass(this.container,"ace_hidpi"),this.setTheme(M),o.get("useStrictCSP")==null&&o.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 i(this.content);var R=this.$textLayer=new s(this.content);this.canvas=R.element,this.$markerFront=new i(this.content),this.$cursorLayer=new c(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new h(this.container,this),this.scrollBarH=new u(this.container,this),this.scrollBarV.on("scroll",function($){C.$scrollAnimation||C.session.setScrollTop($.data-C.scrollMargin.top)}),this.scrollBarH.on("scroll",function($){C.$scrollAnimation||C.session.setScrollLeft($.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($){C.updateCharacterSize(),C.onResize(!0,C.gutterWidth,C.$size.width,C.$size.height),C._signal("changeCharacterSize",$)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!b.isIOS,this.$loop=new v(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),o.resetOptions(this),o._signal("renderer",this)}return L.prototype.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),d.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},L.prototype.setSession=function(E){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=E,E&&this.scrollMargin.top&&E.getScrollTop()<=0&&E.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(E),this.$markerBack.setSession(E),this.$markerFront.setSession(E),this.$gutterLayer.setSession(E),this.$textLayer.setSession(E),E&&(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(E,M,C){if(M===void 0&&(M=1/0),this.$changedLines?(this.$changedLines.firstRow>E&&(this.$changedLines.firstRow=E),this.$changedLines.lastRow<M&&(this.$changedLines.lastRow=M)):this.$changedLines={firstRow:E,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(E){E?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(E,M,C,R){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=E?1:0;var $=this.container;R||(R=$.clientHeight||$.scrollHeight),!R&&this.$maxLines&&this.lineHeight>1&&(!$.style.height||$.style.height=="0px")&&($.style.height="1px",R=$.clientHeight||$.scrollHeight),C||(C=$.clientWidth||$.scrollWidth);var w=this.$updateCachedSize(E,M,C,R);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!C&&!R)return this.resizing=0;E&&(this.$gutterLayer.$padding=null),E?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(E,M,C,R){R-=this.$extraHeight||0;var $=0,w=this.$size,k={width:w.width,height:w.height,scrollerHeight:w.scrollerHeight,scrollerWidth:w.scrollerWidth};if(R&&(E||w.height!=R)&&(w.height=R,$|=this.CHANGE_SIZE,w.scrollerHeight=w.height,this.$horizScroll&&(w.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(w.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",$=$|this.CHANGE_SCROLL),C&&(E||w.width!=C)){$|=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()||E)&&($|=this.CHANGE_FULL)}return w.$dirty=!C||!R,$&&this._signal("resize",k),$},L.prototype.onGutterResize=function(E){var M=this.$showGutter?E: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 E=this.$size.scrollerWidth-this.$padding*2,M=Math.floor(E/this.characterWidth);return this.session.adjustWrapLimit(M,this.$showPrintMargin&&this.$printMarginColumn)},L.prototype.setAnimatedScroll=function(E){this.setOption("animatedScroll",E)},L.prototype.getAnimatedScroll=function(){return this.$animatedScroll},L.prototype.setShowInvisibles=function(E){this.setOption("showInvisibles",E),this.session.$bidiHandler.setShowInvisibles(E)},L.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},L.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},L.prototype.setDisplayIndentGuides=function(E){this.setOption("displayIndentGuides",E)},L.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},L.prototype.setHighlightIndentGuides=function(E){this.setOption("highlightIndentGuides",E)},L.prototype.setShowPrintMargin=function(E){this.setOption("showPrintMargin",E)},L.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},L.prototype.setPrintMarginColumn=function(E){this.setOption("printMarginColumn",E)},L.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},L.prototype.getShowGutter=function(){return this.getOption("showGutter")},L.prototype.setShowGutter=function(E){return this.setOption("showGutter",E)},L.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},L.prototype.setFadeFoldWidgets=function(E){this.setOption("fadeFoldWidgets",E)},L.prototype.setHighlightGutterLine=function(E){this.setOption("highlightGutterLine",E)},L.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},L.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var E=d.createElement("div");E.className="ace_layer ace_print-margin-layer",this.$printMarginEl=d.createElement("div"),this.$printMarginEl.className="ace_print-margin",E.appendChild(this.$printMarginEl),this.content.insertBefore(E,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 E=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,$=C.top,w=C.left;$-=R.offset;var k=M&&M.useTextareaForIME||b.isMobile?this.lineHeight:1;if($<0||$>R.height-k){d.translate(this.textarea,0,0);return}var T=1,O=this.$size.height-k;if(!M)$+=this.lineHeight;else if(M.useTextareaForIME){var I=this.textarea.value;T=this.characterWidth*this.session.$getStringScreenWidth(I)[0]}else $+=this.lineHeight+2;w-=this.scrollLeft,w>this.$size.scrollerWidth-T&&(w=this.$size.scrollerWidth-T),w+=this.gutterWidth+this.margin.left,d.setStyle(E,"height",k+"px"),d.setStyle(E,"width",T+"px"),d.translate(this.textarea,Math.min(w,this.$size.scrollerWidth-T),Math.min($,O))}}},L.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},L.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},L.prototype.getLastFullyVisibleRow=function(){var E=this.layerConfig,M=E.lastRow,C=this.session.documentToScreenRow(M,0)*E.lineHeight;return C-this.session.getScrollTop()>E.height-E.lineHeight?M-1:M},L.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},L.prototype.setPadding=function(E){this.$padding=E,this.$textLayer.setPadding(E),this.$cursorLayer.setPadding(E),this.$markerFront.setPadding(E),this.$markerBack.setPadding(E),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},L.prototype.setScrollMargin=function(E,M,C,R){var $=this.scrollMargin;$.top=E|0,$.bottom=M|0,$.right=R|0,$.left=C|0,$.v=$.top+$.bottom,$.h=$.left+$.right,$.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-$.top),this.updateFull()},L.prototype.setMargin=function(E,M,C,R){var $=this.margin;$.top=E|0,$.bottom=M|0,$.right=R|0,$.left=C|0,$.v=$.top+$.bottom,$.h=$.left+$.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},L.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},L.prototype.setHScrollBarAlwaysVisible=function(E){this.setOption("hScrollBarAlwaysVisible",E)},L.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},L.prototype.setVScrollBarAlwaysVisible=function(E){this.setOption("vScrollBarAlwaysVisible",E)},L.prototype.$updateScrollBarV=function(){var E=this.layerConfig.maxHeight,M=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(E-=(M-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>E-M&&(E=this.scrollTop+M,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(E+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(E,M){if(this.$changes&&(E|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!E&&!M){this.$changes|=E;return}if(this.$size.$dirty)return this.$changes|=E,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",E),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var C=this.layerConfig;if(E&this.CHANGE_FULL||E&this.CHANGE_SIZE||E&this.CHANGE_TEXT||E&this.CHANGE_LINES||E&this.CHANGE_SCROLL||E&this.CHANGE_H_SCROLL){if(E|=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,E=E|this.CHANGE_SCROLL,E|=this.$computeLayerConfig()|this.$loop.clear())}C=this.layerConfig,this.$updateScrollBarV(),E&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),d.translate(this.content,-this.scrollLeft,-C.offset);var $=C.width+2*this.$padding+"px",w=C.minHeight+"px";d.setStyle(this.content.style,"width",$),d.setStyle(this.content.style,"height",w)}if(E&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)),E&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",E);return}if(E&this.CHANGE_SCROLL){this.$changedLines=null,E&this.CHANGE_TEXT||E&this.CHANGE_LINES?this.$textLayer.update(C):this.$textLayer.scrollLines(C),this.$showGutter&&(E&this.CHANGE_GUTTER||E&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",E);return}E&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(C),this.$showGutter&&this.$gutterLayer.update(C),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(C)):E&this.CHANGE_LINES?((this.$updateLines()||E&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(C),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(C)):E&this.CHANGE_TEXT||E&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(C),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(C)):E&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(C),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(C)),E&this.CHANGE_CURSOR&&(this.$cursorLayer.update(C),this.$moveTextAreaToCursor()),E&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(C),E&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(C),this._signal("afterRender",E)},L.prototype.$autosize=function(){var E=this.session.getScreenLength()*this.lineHeight,M=this.$maxLines*this.lineHeight,C=Math.min(M,Math.max((this.$minLines||1)*this.lineHeight,E))+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,$=!R&&E>M;if(C!=this.desiredHeight||this.$size.height!=this.desiredHeight||$!=this.$vScroll){$!=this.$vScroll&&(this.$vScroll=$,this.scrollBarV.setVisible($));var w=this.container.clientWidth;this.container.style.height=C+"px",this.$updateCachedSize(!0,this.$gutterWidth,w,C),this.desiredHeight=C,this._signal("autosize")}},L.prototype.$computeLayerConfig=function(){var E=this.session,M=this.$size,C=M.height<=2*this.lineHeight,R=this.session.getScreenLength(),$=R*this.lineHeight,w=this.$getLongestLine(),k=!C&&(this.$hScrollBarAlwaysVisible||M.scrollerWidth-w-2*this.$padding<0),T=this.$horizScroll!==k;T&&(this.$horizScroll=k,this.scrollBarH.setVisible(k));var O=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var I=M.scrollerHeight+this.lineHeight,N=!this.$maxLines&&this.$scrollPastEnd?(M.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;$+=N;var D=this.scrollMargin;this.session.setScrollTop(Math.max(-D.top,Math.min(this.scrollTop,$-M.scrollerHeight+D.bottom))),this.session.setScrollLeft(Math.max(-D.left,Math.min(this.scrollLeft,w+2*this.$padding-M.scrollerWidth+D.right)));var B=!C&&(this.$vScrollBarAlwaysVisible||M.scrollerHeight-$+N<0||this.scrollTop>D.top),j=O!==B;j&&(this.$vScroll=B,this.scrollBarV.setVisible(B));var U=this.scrollTop%this.lineHeight,H=Math.ceil(I/this.lineHeight)-1,V=Math.max(0,Math.round((this.scrollTop-U)/this.lineHeight)),q=V+H,z,Z,Y=this.lineHeight;V=E.screenToDocumentRow(V,0);var Q=E.getFoldLine(V);Q&&(V=Q.start.row),z=E.documentToScreenRow(V,0),Z=E.getRowLength(V)*Y,q=Math.min(E.screenToDocumentRow(q,0),E.getLength()-1),I=M.scrollerHeight+E.getRowLength(q)*Y+Z,U=this.scrollTop-z*Y;var he=0;return(this.layerConfig.width!=w||T)&&(he=this.CHANGE_H_SCROLL),(T||j)&&(he|=this.$updateCachedSize(!0,this.gutterWidth,M.width,M.height),this._signal("scrollbarVisibilityChanged"),j&&(w=this.$getLongestLine())),this.layerConfig={width:w,padding:this.$padding,firstRow:V,firstRowScreen:z,lastRow:q,lineHeight:Y,characterWidth:this.characterWidth,minHeight:I,maxHeight:$,offset:U,gutterOffset:Y?Math.max(0,Math.ceil((U+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 E=this.$changedLines.firstRow,M=this.$changedLines.lastRow;this.$changedLines=null;var C=this.layerConfig;if(!(E>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,E,M),!0}}},L.prototype.$getLongestLine=function(){var E=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(E+=1),this.$textLayer&&E>this.$textLayer.MAX_LINE_LENGTH&&(E=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(E*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(E,M){this.$gutterLayer.addGutterDecoration(E,M)},L.prototype.removeGutterDecoration=function(E,M){this.$gutterLayer.removeGutterDecoration(E,M)},L.prototype.updateBreakpoints=function(E){this._rows=E,this.$loop.schedule(this.CHANGE_GUTTER)},L.prototype.setAnnotations=function(E){this.$gutterLayer.setAnnotations(E),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(E,M,C){this.scrollCursorIntoView(E,C),this.scrollCursorIntoView(M,C)},L.prototype.scrollCursorIntoView=function(E,M,C){if(this.$size.scrollerHeight!==0){var R=this.$cursorLayer.getPixelPosition(E),$=R.left,w=R.top,k=C&&C.top||0,T=C&&C.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var O=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;O+k>w?(M&&O+k>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;$-N<I?($-=N,$<this.$padding+N&&($=-this.scrollMargin.left),this.session.setScrollLeft($)):($+=N,I+this.$size.scrollerWidth<$+this.characterWidth?this.session.setScrollLeft(Math.round($+this.characterWidth-this.$size.scrollerWidth)):I<=this.$padding&&$-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(E){this.session.setScrollTop(E*this.lineHeight)},L.prototype.alignCursor=function(E,M){typeof E=="number"&&(E={row:E,column:0});var C=this.$cursorLayer.getPixelPosition(E),R=this.$size.scrollerHeight-this.lineHeight,$=C.top-R*(M||0);return this.session.setScrollTop($),$},L.prototype.$calcSteps=function(E,M){var C=0,R=this.STEPS,$=[],w=function(k,T,O){return O*(Math.pow(k-1,3)+1)+T};for(C=0;C<R;++C)$.push(w(C/this.STEPS,E,M-E));return $},L.prototype.scrollToLine=function(E,M,C,R){var $=this.$cursorLayer.getPixelPosition({row:E,column:0}),w=$.top;M&&(w-=this.$size.scrollerHeight/2);var k=this.scrollTop;this.session.setScrollTop(w),C!==!1&&this.animateScrolling(k,R)},L.prototype.animateScrolling=function(E,M){var C=this.scrollTop;if(!this.$animatedScroll)return;var R=this;if(E==C)return;if(this.$scrollAnimation){var $=this.$scrollAnimation.steps;if($.length&&(E=$[0],E==C))return}var w=R.$calcSteps(E,C);this.$scrollAnimation={from:E,to:C,steps:w},clearInterval(this.$timer),R.session.setScrollTop(w.shift()),R.session.$scrollTop=C;function k(){R.$timer=clearInterval(R.$timer),R.$scrollAnimation=null,R.$stopAnimation=!1,M&&M()}this.$timer=setInterval(function(){if(R.$stopAnimation){k();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):k()},10)},L.prototype.scrollToY=function(E){this.scrollTop!==E&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=E)},L.prototype.scrollToX=function(E){this.scrollLeft!==E&&(this.scrollLeft=E),this.$loop.schedule(this.CHANGE_H_SCROLL)},L.prototype.scrollTo=function(E,M){this.session.setScrollTop(M),this.session.setScrollLeft(E)},L.prototype.scrollBy=function(E,M){M&&this.session.setScrollTop(this.session.getScrollTop()+M),E&&this.session.setScrollLeft(this.session.getScrollLeft()+E)},L.prototype.isScrollableBy=function(E,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||E<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||E>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},L.prototype.pixelToScreenCoordinates=function(E,M){var C;if(this.$hasCssTransforms){C={top:0,left:0};var R=this.$fontMetrics.transformCoordinates([E,M]);E=R[1]-this.gutterWidth-this.margin.left,M=R[0]}else C=this.scroller.getBoundingClientRect();var $=E+this.scrollLeft-C.left-this.$padding,w=$/this.characterWidth,k=Math.floor((M+this.scrollTop-C.top)/this.lineHeight),T=this.$blockCursor?Math.floor(w):Math.round(w);return{row:k,column:T,side:w-T>0?1:-1,offsetX:$}},L.prototype.screenToTextCoordinates=function(E,M){var C;if(this.$hasCssTransforms){C={top:0,left:0};var R=this.$fontMetrics.transformCoordinates([E,M]);E=R[1]-this.gutterWidth-this.margin.left,M=R[0]}else C=this.scroller.getBoundingClientRect();var $=E+this.scrollLeft-C.left-this.$padding,w=$/this.characterWidth,k=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(k,0),$)},L.prototype.textToScreenCoordinates=function(E,M){var C=this.scroller.getBoundingClientRect(),R=this.session.documentToScreenPosition(E,M),$=this.$padding+(this.session.$bidiHandler.isBidiRow(R.row,E)?this.session.$bidiHandler.getPosLeft(R.column):Math.round(R.column*this.characterWidth)),w=R.row*this.lineHeight;return{pageX:C.left+$-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(E){this.$composition=E,E.cssText||(E.cssText=this.textarea.style.cssText),E.useTextareaForIME==null&&(E.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(d.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):E.markerId=this.session.addMarker(E.markerRange,"ace_composition_marker","text")},L.prototype.setCompositionText=function(E){var M=this.session.selection.cursor;this.addToken(E,"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 E=this.session.selection.cursor;this.removeExtraToken(E.row,E.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},L.prototype.setGhostText=function(E,M){var C=this.session.selection.cursor,R=M||{row:C.row,column:C.column};this.removeGhostText();var $=this.$calculateWrappedTextChunks(E,R);this.addToken($[0].text,"ghost_text",R.row,R.column),this.$ghostText={text:E,position:{row:R.row,column:R.column}};var w=d.createElement("div");if($.length>1){$.slice(1).forEach(function(D){var B=d.createElement("div");D.wrapped&&(B.className="ghost_text_line_wrapped"),B.appendChild(d.createTextNode(D.text)),w.appendChild(B)}),this.$ghostTextWidget={el:w,row:R.row,column:R.column,className:"ace_ghost_text"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var k=this.$cursorLayer.getPixelPosition(R,!0),T=this.container,O=T.getBoundingClientRect().height,I=$.length*this.lineHeight,N=I<O-k.top;if(N)return;I<O?this.scrollBy(0,($.length-1)*this.lineHeight):this.scrollToRow(R.row)}},L.prototype.$calculateWrappedTextChunks=function(E,M){var C=this.$size.scrollerWidth-this.$padding*2,R=Math.floor(C/this.characterWidth)-2;R=R<=0?60:R;for(var $=E.split(/\r?\n/),w=[],k=0;k<$.length;k++){var T=this.session.$getDisplayTokens($[k],M.column),O=this.session.$computeWrapSplits(T,R,this.session.$tabSize);if(O.length>0){var I=0;O.push($[k].length);for(var N=0;N<O.length;N++){var D=$[k].slice(I,O[N]);w.push({text:D,wrapped:!0}),I=O[N]}}else w.push({text:$[k],wrapped:!1})}return w},L.prototype.removeGhostText=function(){if(this.$ghostText){var E=this.$ghostText.position;this.removeExtraToken(E.row,E.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},L.prototype.addToken=function(E,M,C,R){var $=this.session;$.bgTokenizer.lines[C]=null;var w={type:M,value:E},k=$.getTokens(C);if(R==null||!k.length)k.push(w);else for(var T=0,O=0;O<k.length;O++){var I=k[O];if(T+=I.value.length,R<=T){var N=I.value.length-(T-R),D=I.value.slice(0,N),B=I.value.slice(N);k.splice(O,1,{type:I.type,value:D},w,{type:I.type,value:B});break}}this.updateLines(C,C)},L.prototype.removeExtraToken=function(E,M){this.session.bgTokenizer.lines[E]=null,this.updateLines(E,E)},L.prototype.setTheme=function(E,M){var C=this;if(this.$themeId=E,C._dispatchEvent("themeChange",{theme:E}),!E||typeof E=="string"){var R=E||this.$options.theme.initialValue;o.loadModule(["theme",R],$)}else $(E);function $(w){if(C.$themeId!=E)return M&&M();if(!w||!w.cssClass)throw new Error("couldn't load module "+E+" 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 k="padding"in w?w.padding:"padding"in(C.theme||{})?4:C.$padding;C.$padding&&k!=C.$padding&&C.setPadding(k),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(),b.isSafari&&C.scroller&&(C.scroller.style.background="red",C.scroller.style.background="")}},L.prototype.getTheme=function(){return this.$themeId},L.prototype.setStyle=function(E,M){d.setCssClass(this.container,E,M!==!1)},L.prototype.unsetStyle=function(E){d.removeCssClass(this.container,E)},L.prototype.setCursorStyle=function(E){d.setStyle(this.scroller.style,"cursor",E)},L.prototype.setMouseCursor=function(E){d.setStyle(this.scroller.style,"cursor",E)},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(E){var M=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,E===!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 S(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new h(this.container,this),this.scrollBarH=new u(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 E=this;this.$resizeTimer=g.delayedCall(function(){E.destroyed||E.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(M){var C=M[0].contentRect.width,R=M[0].contentRect.height;Math.abs(E.$size.width-C)>1||Math.abs(E.$size.height-R)>1?E.$resizeTimer.delay():E.$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,l.implement(A.prototype,x),o.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,a){var l=n("../lib/oop"),d=n("../lib/net"),g=n("../lib/event_emitter").EventEmitter,o=n("../config");function p(u){var h="importScripts('"+d.qualifyURL(u)+"');";try{return new Blob([h],{type:"application/javascript"})}catch{var f=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,m=new f;return m.append(h),m.getBlob("application/javascript")}}function i(u){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(o.get("loadWorkerFromBlob")){var h=p(u),f=window.URL||window.webkitURL,m=f.createObjectURL(h);return new Worker(m)}return new Worker(u)}var s=function(u){u.postMessage||(u=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=u,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(){l.implement(this,g),this.$createWorkerFromOldConfig=function(u,h,f,m,v){if(n.nameToUrl&&!n.toUrl&&(n.toUrl=n.nameToUrl),o.get("packaged")||!n.toUrl)m=m||o.moduleUrl(h,"worker");else{var y=this.$normalizePath;m=m||y(n.toUrl("ace/worker/worker.js",null,"_"));var x={};u.forEach(function(_){x[_]=y(n.toUrl(_,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=i(m),v&&this.send("importScripts",v),this.$worker.postMessage({init:!0,tlns:x,module:h,classname:f}),this.$worker},this.onMessage=function(u){var h=u.data;switch(h.type){case"event":this._signal(h.name,{data:h.data});break;case"call":var f=this.callbacks[h.id];f&&(f(h.data),delete this.callbacks[h.id]);break;case"error":this.reportError(h.data);break;case"log":window.console&&console.log&&console.log.apply(console,h.data);break}},this.reportError=function(u){window.console&&console.error&&console.error(u)},this.$normalizePath=function(u){return d.qualifyURL(u)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(u){u.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(u,h){this.$worker.postMessage({command:u,args:h})},this.call=function(u,h,f){if(f){var m=this.callbackId++;this.callbacks[m]=f,h.push(m)}this.send(u,h)},this.emit=function(u,h){try{h.data&&h.data.err&&(h.data.err={message:h.data.err.message,stack:h.data.err.stack,code:h.data.err.code}),this.$worker&&this.$worker.postMessage({event:u,data:{data:h.data}})}catch(f){console.error(f.stack)}},this.attachToDocument=function(u){this.$doc&&this.terminate(),this.$doc=u,this.call("setValue",[u.getValue()]),u.on("change",this.changeListener,!0)},this.changeListener=function(u){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),u.action=="insert"?this.deltaQueue.push(u.start,u.lines):this.deltaQueue.push(u.start,u.end)},this.$sendDeltaQueue=function(){var u=this.deltaQueue;u&&(this.deltaQueue=null,u.length>50&&u.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:u}))}}).call(s.prototype);var c=function(u,h,f){var m=null,v=!1,y=Object.create(g),x=[],_=new s({messageBuffer:x,terminate:function(){},postMessage:function(b){x.push(b),m&&(v?setTimeout(S):S())}});_.setEmitSync=function(b){v=b};var S=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})},o.loadModule(["worker",h],function(b){for(m=new b[f](y);x.length;)S()}),_};r.UIWorkerClient=c,r.WorkerClient=s,r.createWorker=i}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(n,r,a){var l=n("./range").Range,d=n("./lib/event_emitter").EventEmitter,g=n("./lib/oop"),o=function(){function p(i,s,c,u,h,f){var m=this;this.length=s,this.session=i,this.doc=i.getDocument(),this.mainClass=h,this.othersClass=f,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=u,this.$onCursorChange=function(){setTimeout(function(){m.onCursorChange()})},this.$pos=c;var v=i.getUndoManager().$undoStack||i.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=v.length,this.setup(),i.selection.on("changeCursor",this.$onCursorChange)}return p.prototype.setup=function(){var i=this,s=this.doc,c=this.session;this.selectionBefore=c.selection.toJSON(),c.selection.inMultiSelectMode&&c.selection.toSingleRange(),this.pos=s.createAnchor(this.$pos.row,this.$pos.column);var u=this.pos;u.$insertRight=!0,u.detach(),u.markerId=c.addMarker(new l(u.row,u.column,u.row,u.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(h){var f=s.createAnchor(h.row,h.column);f.$insertRight=!0,f.detach(),i.others.push(f)}),c.setUndoSelect(!1)},p.prototype.showOtherMarkers=function(){if(!this.othersActive){var i=this.session,s=this;this.othersActive=!0,this.others.forEach(function(c){c.markerId=i.addMarker(new l(c.row,c.column,c.row,c.column+s.length),s.othersClass,null,!1)})}},p.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var i=0;i<this.others.length;i++)this.session.removeMarker(this.others[i].markerId)}},p.prototype.onUpdate=function(i){if(this.$updating)return this.updateAnchors(i);var s=i;if(s.start.row===s.end.row&&s.start.row===this.pos.row){this.$updating=!0;var c=i.action==="insert"?s.end.column-s.start.column:s.start.column-s.end.column,u=s.start.column>=this.pos.column&&s.start.column<=this.pos.column+this.length+1,h=s.start.column-this.pos.column;if(this.updateAnchors(i),u&&(this.length+=c),u&&!this.session.$fromUndo){if(i.action==="insert")for(var f=this.others.length-1;f>=0;f--){var m=this.others[f],v={row:m.row,column:m.column+h};this.doc.insertMergedLines(v,i.lines)}else if(i.action==="remove")for(var f=this.others.length-1;f>=0;f--){var m=this.others[f],v={row:m.row,column:m.column+h};this.doc.remove(new l(v.row,v.column,v.row,v.column-c))}}this.$updating=!1,this.updateMarkers()}},p.prototype.updateAnchors=function(i){this.pos.onChange(i);for(var s=this.others.length;s--;)this.others[s].onChange(i);this.updateMarkers()},p.prototype.updateMarkers=function(){if(!this.$updating){var i=this,s=this.session,c=function(h,f){s.removeMarker(h.markerId),h.markerId=s.addMarker(new l(h.row,h.column,h.row,h.column+i.length),f,null,!1)};c(this.pos,this.mainClass);for(var u=this.others.length;u--;)c(this.others[u],this.othersClass)}},p.prototype.onCursorChange=function(i){if(!(this.$updating||!this.session)){var s=this.session.selection.getCursor();s.row===this.pos.row&&s.column>=this.pos.column&&s.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",i)):(this.hideOtherMarkers(),this._emit("cursorLeave",i))}},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 i=this.session.getUndoManager(),s=(i.$undoStack||i.$undostack).length-this.$undoStackDepth,c=0;c<s;c++)i.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},p}();g.implement(o.prototype,d),r.PlaceHolder=o}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(n,r,a){var l=n("../lib/event"),d=n("../lib/useragent");function g(p,i){return p.row==i.row&&p.column==i.column}function o(p){var i=p.domEvent,s=i.altKey,c=i.shiftKey,u=i.ctrlKey,h=p.getAccelKey(),f=p.getButton();if(u&&d.isMac&&(f=i.button),p.editor.inMultiSelectMode&&f==2){p.editor.textInput.onContextMenu(p.domEvent);return}if(!u&&!s&&!h){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(),S=p.inSelection()||v.isEmpty()&&g(x,_),b=p.x,A=p.y,L=function(B){b=B.clientX,A=B.clientY},E=m.session,M=m.renderer.pixelToScreenCoordinates(b,A),C=M,R;if(m.$mouseHandler.$enableJumpToDef)u&&s||h&&s?R=c?"block":"add":s&&m.$blockSelectEnabled&&(R="block");else if(h&&!s){if(R="add",!y&&c)return}else s&&m.$blockSelectEnabled&&(R="block");if(R&&d.isMac&&i.ctrlKey&&m.$mouseHandler.cancelContextMenu(),R=="add"){if(!y&&S)return;if(!y){var $=v.toOrientedRange();m.addSelectionMarker($)}var w=v.rangeList.rangeAtPoint(x);m.inVirtualSelectionMode=!0,c&&(w=null,$=v.ranges[0]||$,m.removeSelectionMarker($)),m.once("mouseup",function(){var B=v.toOrientedRange();w&&B.isEmpty()&&g(w.cursor,B.cursor)?v.substractPoint(B.cursor):(c?v.substractPoint($.cursor):$&&(m.removeSelectionMarker($),v.addRange($)),v.addRange(B)),m.inVirtualSelectionMode=!1})}else if(R=="block"){p.stop(),m.inVirtualSelectionMode=!0;var k,T=[],O=function(){var B=m.renderer.pixelToScreenCoordinates(b,A),j=E.screenToDocumentPosition(B.row,B.column,B.offsetX);g(C,B)&&g(j,v.lead)||(C=B,m.selection.moveToPosition(j),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&&!h?v.toSingleRange():!y&&h&&(k=v.toOrientedRange(),m.addSelectionMarker(k)),c?M=E.documentToScreenPosition(v.lead):v.moveToPosition(x),C={row:-1,column:-1};var I=function(B){O(),clearInterval(D),m.removeSelectionMarkers(T),T.length||(T=[v.toOrientedRange()]),k&&(m.removeSelectionMarker(k),v.toSingleRange(k));for(var j=0;j<T.length;j++)v.addRange(T[j]);m.inVirtualSelectionMode=!1,m.$mouseHandler.$clickSelection=null},N=O;l.capture(m.container,L,I);var D=setInterval(function(){N()},20);return p.preventDefault()}}}r.onMouseDown=o}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(n,r,a){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 l=n("../keyboard/hash_handler").HashHandler;r.keyboardHandler=new l(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,a){var l=n("./range_list").RangeList,d=n("./range").Range,g=n("./selection").Selection,o=n("./mouse/multi_select_handler").onMouseDown,p=n("./lib/event"),i=n("./lib/lang"),s=n("./commands/multi_select_commands");r.commands=s.defaultCommands.concat(s.multiSelectCommands);var c=n("./search").Search,u=new c;function h(_,S,b){return u.$options.wrap=!0,u.$options.needle=S,u.$options.backwards=b==-1,u.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(_,S){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(),S||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)),S||this.fromOrientedRange(_)}},this.toSingleRange=function(_){_=_||this.ranges[0];var S=this.rangeList.removeAll();S.length&&this.$onRemoveRange(S),_&&this.fromOrientedRange(_)},this.substractPoint=function(_){var S=this.rangeList.substractPoint(_);if(S)return this.$onRemoveRange(S),S[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 S=this.rangeList.ranges.pop();_.push(S),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)),S=S||this.ranges[0],S&&!S.isEqual(this.getRange())&&this.fromOrientedRange(S)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new l,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()],S=[],b=0;b<_.length;b++){var A=_[b],L=A.start.row,E=A.end.row;if(L===E)S.push(A.clone());else{for(S.push(new d(L,A.start.column,L,this.session.getLine(L).length));++L<E;)S.push(this.getLineRange(L,!0));S.push(new d(E,0,E,A.end.column))}b==0&&!this.isBackwards()&&(S=S.reverse())}this.toSingleRange();for(var b=S.length;b--;)this.addRange(S[b])},this.joinSelections=function(){var _=this.rangeList.ranges,S=_[_.length-1],b=d.fromPoints(_[0].start,S.end);this.toSingleRange(),this.setSelectionRange(b,S.cursor==S.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var _=this.rangeList.ranges,S=_[_.length-1],b=d.fromPoints(_[0].start,S.end);this.toSingleRange(),this.setSelectionRange(b,S.cursor==S.start)}else{var A=this.session.documentToScreenPosition(this.cursor),L=this.session.documentToScreenPosition(this.anchor),E=this.rectangularRangeBlock(A,L);E.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(_,S,b){var A=[],L=_.column<S.column;if(L)var E=_.column,M=S.column,C=_.offsetX,R=S.offsetX;else var E=S.column,M=_.column,C=S.offsetX,R=_.offsetX;var $=_.row<S.row;if($)var w=_.row,k=S.row;else var w=S.row,k=_.row;E<0&&(E=0),w<0&&(w=0),w==k&&(b=!0);for(var T,O=w;O<=k;O++){var I=d.fromPoints(this.session.screenToDocumentPosition(O,E,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($&&A.reverse(),!b){for(var N=A.length-1;A[N].isEmpty()&&N>0;)N--;if(N>0)for(var D=0;A[D].isEmpty();)D++;for(var B=N;B>=D;B--)A[B].isEmpty()&&A.splice(B,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 S=this.getSelectionStyle();return _.marker=this.session.addMarker(_,"ace_selection",S),this.session.$selectionMarkers.push(_),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,_},this.removeSelectionMarker=function(_){if(_.marker){this.session.removeMarker(_.marker);var S=this.session.$selectionMarkers.indexOf(_);S!=-1&&this.session.$selectionMarkers.splice(S,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(_){for(var S=this.session.$selectionMarkers,b=_.length;b--;){var A=_[b];if(A.marker){this.session.removeMarker(A.marker);var L=S.indexOf(A);L!=-1&&S.splice(L,1)}}this.session.selectionMarkerCount=S.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(s.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(s.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(_){var S=_.command,b=_.editor;if(b.multiSelect){if(S.multiSelectAction)S.multiSelectAction=="forEach"?A=b.forEachSelection(S,_.args):S.multiSelectAction=="forEachLine"?A=b.forEachSelection(S,_.args,!0):S.multiSelectAction=="single"?(b.exitMultiSelectMode(),A=S.exec(b,_.args||{})):A=S.multiSelectAction(b,_.args||{});else{var A=S.exec(b,_.args||{});b.multiSelect.addRange(b.multiSelect.toOrientedRange()),b.multiSelect.mergeOverlappingRanges()}return A}},this.forEachSelection=function(_,S,b){if(!this.inVirtualSelectionMode){var A=b&&b.keepOrder,L=b==!0||b&&b.$byLines,E=this.session,M=this.selection,C=M.rangeList,R=(A?M:C).ranges,$;if(!R.length)return _.exec?_.exec(this,S||{}):_(this,S||{});var w=M._eventRegistry;M._eventRegistry={};var k=new g(E);this.inVirtualSelectionMode=!0;for(var T=R.length;T--;){if(L)for(;T>0&&R[T].start.row==R[T-1].end.row;)T--;k.fromOrientedRange(R[T]),k.index=T,this.selection=E.selection=k;var O=_.exec?_.exec(this,S||{}):_(this,S||{});!$&&O!==void 0&&($=O),k.toOrientedRange(R[T])}k.detach(),this.selection=E.selection=M,this.inVirtualSelectionMode=!1,M._eventRegistry=w,M.mergeOverlappingRanges(),M.ranges[0]&&M.fromOrientedRange(M.ranges[0]);var I=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),I&&I.from==I.to&&this.renderer.animateScrolling(I.from),$}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var _="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var S=this.multiSelect.rangeList.ranges,b=[],A=0;A<S.length;A++)b.push(this.session.getTextRange(S[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(_,S){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var b=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&S==this.multiSelect.anchor)return;var A=S==this.multiSelect.anchor?b.cursor==b.start?b.end:b.start:b.cursor;A.row!=S.row||this.session.$clipPositionToDocument(A.row,A.column).column!=S.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(_,S,b){if(S=S||{},S.needle=_||S.needle,S.needle==null){var A=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();S.needle=this.session.getTextRange(A)}this.$search.set(S);var L=this.$search.findAll(this.session);if(!L.length)return 0;var E=this.multiSelect;b||E.toSingleRange(L[0]);for(var M=L.length;M--;)E.addRange(L[M],!0);return A&&E.rangeList.rangeAtPoint(A.start)&&E.addRange(A,!0),L.length},this.selectMoreLines=function(_,S){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 E=this.session.screenToDocumentPosition(L.row+_,L.column);if(b.isEmpty())var C=E;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(E,C);R.cursor=R.start}else{var R=d.fromPoints(C,E);R.cursor=R.end}if(R.desiredColumn=L.column,!this.selection.inMultiSelectMode)this.selection.addRange(b);else if(S)var $=b.cursor;this.selection.addRange(R),$&&this.selection.substractPoint($)},this.transposeSelections=function(_){for(var S=this.session,b=S.multiSelect,A=b.ranges,L=A.length;L--;){var E=A[L];if(E.isEmpty()){var M=S.getWordRange(E.start.row,E.start.column);E.start.row=M.start.row,E.start.column=M.start.column,E.end.row=M.end.row,E.end.column=M.end.column}}b.mergeOverlappingRanges();for(var C=[],L=A.length;L--;){var E=A[L];C.unshift(S.getTextRange(E))}_<0?C.unshift(C.pop()):C.push(C.shift());for(var L=A.length;L--;){var E=A[L],R=E.clone();S.replace(E,C[L]),E.start.row=R.start.row,E.start.column=R.start.column}b.fromOrientedRange(b.ranges[0])},this.selectMore=function(_,S,b){var A=this.session,L=A.multiSelect,E=L.toOrientedRange();if(!(E.isEmpty()&&(E=A.getWordRange(E.start.row,E.start.column),E.cursor=_==-1?E.start:E.end,this.multiSelect.addRange(E),b))){var M=A.getTextRange(E),C=h(A,M,_);C&&(C.cursor=_==-1?C.start:C.end,this.session.unfold(C),this.multiSelect.addRange(C),this.renderer.scrollCursorIntoView(null,.5)),S&&this.multiSelect.substractPoint(E.cursor)}},this.alignCursors=function(){var _=this.session,S=_.multiSelect,b=S.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 E=this.selection.getRange(),M=E.start.row,C=E.end.row,R=M==C;if(R){var $=this.session.getLength(),w;do w=this.session.getLine(C);while(/[=:]/.test(w)&&++C<$);do w=this.session.getLine(M);while(/[=:]/.test(w)&&--M>0);M<0&&(M=0),C>=$&&(C=$-1)}var k=this.session.removeFullLines(M,C);k=this.$reAlignText(k,R),this.session.insert({row:M,column:0},k.join(`
1720
+ `)+`
1721
+ `),R||(E.start.column=0,E.end.column=k[k.length-1].length),this.selection.setRange(E)}else{L.forEach(function(N){S.substractPoint(N.cursor)});var T=0,O=1/0,I=b.map(function(N){var D=N.cursor,B=_.getLine(D.row),j=B.substr(D.column).search(/\S/g);return j==-1&&(j=0),D.column>T&&(T=D.column),j<O&&(O=j),j});b.forEach(function(N,D){var B=N.cursor,j=T-B.column,U=I[D]-O;j>U?_.insert(B,i.stringRepeat(" ",j-U)):_.remove(new d(B.row,B.column,B.row,B.column-j+U)),N.start.column=N.end.column=T,N.start.row=N.end.row=B.row,N.cursor=N.end}),S.fromOrientedRange(b[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(_,S){var b=!0,A=!0,L,E,M;return _.map(function(k){var T=k.match(/(\s*)(.*?)(\s*)([=:].*)/);return T?L==null?(L=T[1].length,E=T[2].length,M=T[3].length,T):(L+E+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),E<T[2].length&&(E=T[2].length),M>T[3].length&&(M=T[3].length),T):[k]}).map(S?R:b?A?$:R:w);function C(k){return i.stringRepeat(" ",k)}function R(k){return k[2]?C(L)+k[2]+C(E-k[2].length+M)+k[4].replace(/^([=:])\s+/,"$1 "):k[0]}function $(k){return k[2]?C(L+E-k[2].length)+k[2]+C(M)+k[4].replace(/^([=:])\s+/,"$1 "):k[0]}function w(k){return k[2]?C(L)+k[2]+C(M)+k[4].replace(/^([=:])\s+/,"$1 "):k[0]}}}).call(m.prototype);function v(_,S){return _.row==S.row&&_.column==S.column}r.onSessionChange=function(_){var S=_.session;S&&!S.multiSelect&&(S.$selectionMarkers=[],S.selection.$initRangeList(),S.multiSelect=S.selection),this.multiSelect=S&&S.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)),S&&(S.multiSelect.on("addRange",this.$onAddRange),S.multiSelect.on("removeRange",this.$onRemoveRange),S.multiSelect.on("multiSelect",this.$onMultiSelect),S.multiSelect.on("singleSelect",this.$onSingleSelect),S.multiSelect.lead.on("change",this.$checkMultiselectChange),S.multiSelect.anchor.on("change",this.$checkMultiselectChange)),S&&this.inMultiSelectMode!=S.selection.inMultiSelectMode&&(S.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function y(_){_.$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",o),_.commands.addCommands(s.defaultCommands),x(_))}function x(_){if(!_.textInput)return;var S=_.textInput.getElement(),b=!1;p.addListener(S,"keydown",function(L){var E=L.keyCode==18&&!(L.ctrlKey||L.shiftKey||L.metaKey);_.$blockSelectEnabled&&E?b||(_.renderer.setMouseCursor("crosshair"),b=!0):b&&A()},_),p.addListener(S,"keyup",A,_),p.addListener(S,"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",o):this.off("mousedown",o)},value:!0},enableBlockSelect:{set:function(_){this.$blockSelectEnabled=_},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(n,r,a){var l=n("../../range").Range,d=r.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(g,o,p){var i=g.getLine(p);return this.foldingStartMarker.test(i)?"start":o=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(i)?"end":""},this.getFoldWidgetRange=function(g,o,p){return null},this.indentationBlock=function(g,o,p){var i=/\S/,s=g.getLine(o),c=s.search(i);if(c!=-1){for(var u=p||s.length,h=g.getLength(),f=o,m=o;++o<h;){var v=g.getLine(o).search(i);if(v!=-1){if(v<=c){var y=g.getTokenAt(o,0);if(!y||y.type!=="string")break}m=o}}if(m>f){var x=g.getLine(m).length;return new l(f,u,m,x)}}},this.openingBracketBlock=function(g,o,p,i,s){var c={row:p,column:i+1},u=g.$findClosingBracket(o,c,s);if(u){var h=g.foldWidgets[u.row];return h==null&&(h=g.getFoldWidget(u.row)),h=="start"&&u.row>c.row&&(u.row--,u.column=g.getLine(u.row).length),l.fromPoints(c,u)}},this.closingBracketBlock=function(g,o,p,i,s){var c={row:p,column:i},u=g.$findOpeningBracket(o,c);if(u)return u.column++,c.column--,l.fromPoints(u,c)}}).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,a){var l=n("../line_widgets").LineWidgets,d=n("../lib/dom"),g=n("../range").Range,o=n("../config").nls;function p(s,c,u){for(var h=0,f=s.length-1;h<=f;){var m=h+f>>1,v=u(c,s[m]);if(v>0)h=m+1;else if(v<0)f=m-1;else return m}return-(h+1)}function i(s,c,u){var h=s.getAnnotations().sort(g.comparePoints);if(h.length){var f=p(h,{row:c,column:-1},g.comparePoints);f<0&&(f=-f-1),f>=h.length?f=u>0?0:h.length-1:f===0&&u<0&&(f=h.length-1);var m=h[f];if(!(!m||!u)){if(m.row===c){do m=h[f+=u];while(m&&m.row===c);if(!m)return h.slice()}var v=[];c=m.row;do v[u<0?"unshift":"push"](m),m=h[f+=u];while(m&&m.row==c);return v.length&&v}}}r.showErrorMarker=function(s,c){var u=s.session;u.widgetManager||(u.widgetManager=new l(u),u.widgetManager.attach(s));var h=s.getCursorPosition(),f=h.row,m=u.widgetManager.getWidgetsAtRow(f).filter(function(E){return E.type=="errorMarker"})[0];m?m.destroy():f-=c;var v=i(u,f,c),y;if(v){var x=v[0];h.column=(x.pos&&typeof x.column!="number"?x.pos.sc:x.column)||0,h.row=x.row,y=s.renderer.$gutterLayer.$annotations[h.row]}else{if(m)return;y={text:[o("error-marker.good-state","Looks good!")],className:"ace_ok"}}s.session.unfold(h.row),s.selection.moveToPosition(h);var _={row:h.row,fixedWidth:!0,coverGutter:!0,el:d.createElement("div"),type:"errorMarker"},S=_.el.appendChild(d.createElement("div")),b=_.el.appendChild(d.createElement("div"));b.className="error_widget_arrow "+y.className;var A=s.renderer.$cursorLayer.getPixelPosition(h).left;b.style.left=A+s.renderer.gutterWidth-5+"px",_.el.className="error_widget_wrapper",S.className="error_widget "+y.className,S.innerHTML=y.text.join("<br>"),S.appendChild(d.createElement("div"));var L=function(E,M,C){if(M===0&&(C==="esc"||C==="return"))return _.destroy(),{command:"null"}};_.destroy=function(){s.$mouseHandler.isMousePressed||(s.keyBinding.removeKeyboardHandler(L),u.widgetManager.removeLineWidget(_),s.off("changeSelection",_.destroy),s.off("changeSession",_.destroy),s.off("mouseup",_.destroy),s.off("change",_.destroy))},s.keyBinding.addKeyboardHandler(L),s.on("changeSelection",_.destroy),s.on("changeSession",_.destroy),s.on("mouseup",_.destroy),s.on("change",_.destroy),s.session.widgetManager.addLineWidget(_),_.el.onmousedown=s.focus.bind(s),s.renderer.scrollCursorIntoView(null,.5,{bottom:_.el.offsetHeight})},d.importCssString(`
1722
+ .error_widget_wrapper {
1723
+ background: inherit;
1724
+ color: inherit;
1725
+ border:none
1726
+ }
1727
+ .error_widget {
1728
+ border-top: solid 2px;
1729
+ border-bottom: solid 2px;
1730
+ margin: 5px 0;
1731
+ padding: 10px 40px;
1732
+ white-space: pre-wrap;
1733
+ }
1734
+ .error_widget.ace_error, .error_widget_arrow.ace_error{
1735
+ border-color: #ff5a5a
1736
+ }
1737
+ .error_widget.ace_warning, .error_widget_arrow.ace_warning{
1738
+ border-color: #F1D817
1739
+ }
1740
+ .error_widget.ace_info, .error_widget_arrow.ace_info{
1741
+ border-color: #5a5a5a
1742
+ }
1743
+ .error_widget.ace_ok, .error_widget_arrow.ace_ok{
1744
+ border-color: #5aaa5a
1745
+ }
1746
+ .error_widget_arrow {
1747
+ position: absolute;
1748
+ border: solid 5px;
1749
+ border-top-color: transparent!important;
1750
+ border-right-color: transparent!important;
1751
+ border-left-color: transparent!important;
1752
+ top: -5px;
1753
+ }
1754
+ `,"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,a){n("./loader_build")(r);var l=n("./lib/dom"),d=n("./range").Range,g=n("./editor").Editor,o=n("./edit_session").EditSession,p=n("./undomanager").UndoManager,i=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(s,c){if(typeof s=="string"){var u=s;if(s=document.getElementById(u),!s)throw new Error("ace.edit can't find div #"+u)}if(s&&s.env&&s.env.editor instanceof g)return s.env.editor;var h="";if(s&&/input|textarea/i.test(s.tagName)){var f=s;h=f.value,s=l.createElement("pre"),f.parentNode.replaceChild(s,f)}else s&&(h=s.textContent,s.innerHTML="");var m=r.createEditSession(h),v=new g(new i(s),m,c),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(s,c){var u=new o(s,c);return u.setUndoManager(new p),u},r.Range=d,r.Editor=g,r.EditSession=o,r.UndoManager=p,r.VirtualRenderer=i,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 a in n)n.hasOwnProperty(a)&&(r.ace[a]=n[a]);r.ace.default=r.ace,e&&(e.exports=r.ace)})}()})(yp);var tk=yp.exports;const Xl=Dr(tk),nk="/assets/mode-yaml-ELgwiJiP.js",rk="data:text/javascript;base64,YWNlLmRlZmluZSgiYWNlL3RoZW1lL21vbm9rYWktY3NzIixbInJlcXVpcmUiLCJleHBvcnRzIiwibW9kdWxlIl0sZnVuY3Rpb24oZSx0LG4pe24uZXhwb3J0cz0iLmFjZS1tb25va2FpIC5hY2VfZ3V0dGVyIHtcbiAgYmFja2dyb3VuZDogIzJGMzEyOTtcbiAgY29sb3I6ICM4RjkwOEFcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfcHJpbnQtbWFyZ2luIHtcbiAgd2lkdGg6IDFweDtcbiAgYmFja2dyb3VuZDogIzU1NTY1MVxufVxuXG4uYWNlLW1vbm9rYWkge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjcyODIyO1xuICBjb2xvcjogI0Y4RjhGMlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9jdXJzb3Ige1xuICBjb2xvcjogI0Y4RjhGMFxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9zZWxlY3Rpb24ge1xuICBiYWNrZ3JvdW5kOiAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaS5hY2VfbXVsdGlzZWxlY3QgLmFjZV9zZWxlY3Rpb24uYWNlX3N0YXJ0IHtcbiAgYm94LXNoYWRvdzogMCAwIDNweCAwcHggIzI3MjgyMjtcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfbWFya2VyLWxheWVyIC5hY2Vfc3RlcCB7XG4gIGJhY2tncm91bmQ6IHJnYigxMDIsIDgyLCAwKVxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9icmFja2V0IHtcbiAgbWFyZ2luOiAtMXB4IDAgMCAtMXB4O1xuICBib3JkZXI6IDFweCBzb2xpZCAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX21hcmtlci1sYXllciAuYWNlX2FjdGl2ZS1saW5lIHtcbiAgYmFja2dyb3VuZDogIzIwMjAyMFxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9ndXR0ZXItYWN0aXZlLWxpbmUge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjcyNzI3XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX21hcmtlci1sYXllciAuYWNlX3NlbGVjdGVkLXdvcmQge1xuICBib3JkZXI6IDFweCBzb2xpZCAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2ludmlzaWJsZSB7XG4gIGNvbG9yOiAjNTI1MjRkXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2VudGl0eS5hY2VfbmFtZS5hY2VfdGFnLFxuLmFjZS1tb25va2FpIC5hY2Vfa2V5d29yZCxcbi5hY2UtbW9ub2thaSAuYWNlX21ldGEuYWNlX3RhZyxcbi5hY2UtbW9ub2thaSAuYWNlX3N0b3JhZ2Uge1xuICBjb2xvcjogI0Y5MjY3MlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9wdW5jdHVhdGlvbixcbi5hY2UtbW9ub2thaSAuYWNlX3B1bmN0dWF0aW9uLmFjZV90YWcge1xuICBjb2xvcjogI2ZmZlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9jb25zdGFudC5hY2VfY2hhcmFjdGVyLFxuLmFjZS1tb25va2FpIC5hY2VfY29uc3RhbnQuYWNlX2xhbmd1YWdlLFxuLmFjZS1tb25va2FpIC5hY2VfY29uc3RhbnQuYWNlX251bWVyaWMsXG4uYWNlLW1vbm9rYWkgLmFjZV9jb25zdGFudC5hY2Vfb3RoZXIge1xuICBjb2xvcjogI0FFODFGRlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9pbnZhbGlkIHtcbiAgY29sb3I6ICNGOEY4RjA7XG4gIGJhY2tncm91bmQtY29sb3I6ICNGOTI2NzJcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfaW52YWxpZC5hY2VfZGVwcmVjYXRlZCB7XG4gIGNvbG9yOiAjRjhGOEYwO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjQUU4MUZGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N1cHBvcnQuYWNlX2NvbnN0YW50LFxuLmFjZS1tb25va2FpIC5hY2Vfc3VwcG9ydC5hY2VfZnVuY3Rpb24ge1xuICBjb2xvcjogIzY2RDlFRlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9mb2xkIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI0E2RTIyRTtcbiAgYm9yZGVyLWNvbG9yOiAjRjhGOEYyXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N0b3JhZ2UuYWNlX3R5cGUsXG4uYWNlLW1vbm9rYWkgLmFjZV9zdXBwb3J0LmFjZV9jbGFzcyxcbi5hY2UtbW9ub2thaSAuYWNlX3N1cHBvcnQuYWNlX3R5cGUge1xuICBmb250LXN0eWxlOiBpdGFsaWM7XG4gIGNvbG9yOiAjNjZEOUVGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2VudGl0eS5hY2VfbmFtZS5hY2VfZnVuY3Rpb24sXG4uYWNlLW1vbm9rYWkgLmFjZV9lbnRpdHkuYWNlX290aGVyLFxuLmFjZS1tb25va2FpIC5hY2VfZW50aXR5LmFjZV9vdGhlci5hY2VfYXR0cmlidXRlLW5hbWUsXG4uYWNlLW1vbm9rYWkgLmFjZV92YXJpYWJsZSB7XG4gIGNvbG9yOiAjQTZFMjJFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3ZhcmlhYmxlLmFjZV9wYXJhbWV0ZXIge1xuICBmb250LXN0eWxlOiBpdGFsaWM7XG4gIGNvbG9yOiAjRkQ5NzFGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N0cmluZyB7XG4gIGNvbG9yOiAjRTZEQjc0XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2NvbW1lbnQge1xuICBjb2xvcjogIzc1NzE1RVxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9pbmRlbnQtZ3VpZGUge1xuICBiYWNrZ3JvdW5kOiB1cmwoZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFBRUFBQUFDQ0FZQUFBQ1pnYlluQUFBQUVrbEVRVlFJbVdQUTBGRDBaWEJ6ZC93UEFBalZBb3hlU2dOZUFBQUFBRWxGVGtTdVFtQ0MpIHJpZ2h0IHJlcGVhdC15XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2luZGVudC1ndWlkZS1hY3RpdmUge1xuICBiYWNrZ3JvdW5kOiB1cmwoZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFBRUFBQUFDQ0FZQUFBQ1pnYlluQUFBQUVrbEVRVlFJVzJQUTFkWDl6ekJ6NXN6L0FCQ2NCRkZlbnRMbEFBQUFBRWxGVGtTdVFtQ0MpIHJpZ2h0IHJlcGVhdC15O1xufVxuIn0pLGFjZS5kZWZpbmUoImFjZS90aGVtZS9tb25va2FpIixbInJlcXVpcmUiLCJleHBvcnRzIiwibW9kdWxlIiwiYWNlL3RoZW1lL21vbm9rYWktY3NzIiwiYWNlL2xpYi9kb20iXSxmdW5jdGlvbihlLHQsbil7dC5pc0Rhcms9ITAsdC5jc3NDbGFzcz0iYWNlLW1vbm9rYWkiLHQuY3NzVGV4dD1lKCIuL21vbm9rYWktY3NzIik7dmFyIHI9ZSgiLi4vbGliL2RvbSIpO3IuaW1wb3J0Q3NzU3RyaW5nKHQuY3NzVGV4dCx0LmNzc0NsYXNzLCExKX0pOyAgICAgICAgICAgICAgICAoZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICAgICAgYWNlLnJlcXVpcmUoWyJhY2UvdGhlbWUvbW9ub2thaSJdLCBmdW5jdGlvbihtKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0eXBlb2YgbW9kdWxlID09ICJvYmplY3QiICYmIHR5cGVvZiBleHBvcnRzID09ICJvYmplY3QiICYmIG1vZHVsZSkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgbW9kdWxlLmV4cG9ydHMgPSBtOwogICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgICB9KSgpOwogICAgICAgICAgICA=";Xl.config.setModuleUrl("ace/mode/yaml",nk);Xl.config.setModuleUrl("ace/theme/monokai",rk);var bp=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(a,l){return a[0]===n?(r=l,!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),a=this.__entries__[r];return a&&a[1]},t.prototype.set=function(n,r){var a=e(this.__entries__,n);~a?this.__entries__[a][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,a=e(r,n);~a&&r.splice(a,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 a=0,l=this.__entries__;a<l.length;a++){var d=l[a];n.call(r,d[1],d[0])}},t}()}(),ja=typeof window<"u"&&typeof document<"u"&&window.document===document,Us=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")()}(),ik=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Us):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),sk=2;function ok(e,t){var n=!1,r=!1,a=0;function l(){n&&(n=!1,e()),r&&g()}function d(){ik(l)}function g(){var o=Date.now();if(n){if(o-a<sk)return;r=!0}else n=!0,r=!1,setTimeout(d,t);a=o}return g}var ak=20,lk=["top","right","bottom","left","width","height","size","weight"],ck=typeof MutationObserver<"u",uk=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=ok(this.refresh.bind(this),ak)}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(){!ja||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ck?(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(){!ja||!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,a=lk.some(function(l){return!!~r.indexOf(l)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),wp=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var a=r[n];Object.defineProperty(e,a,{value:t[a],enumerable:!1,writable:!1,configurable:!0})}return e},Tr=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Us},_p=Ao(0,0,0,0);function js(e){return parseFloat(e)||0}function qu(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,a){var l=e["border-"+a+"-width"];return r+js(l)},0)}function hk(e){for(var t=["top","right","bottom","left"],n={},r=0,a=t;r<a.length;r++){var l=a[r],d=e["padding-"+l];n[l]=js(d)}return n}function dk(e){var t=e.getBBox();return Ao(0,0,t.width,t.height)}function fk(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return _p;var r=Tr(e).getComputedStyle(e),a=hk(r),l=a.left+a.right,d=a.top+a.bottom,g=js(r.width),o=js(r.height);if(r.boxSizing==="border-box"&&(Math.round(g+l)!==t&&(g-=qu(r,"left","right")+l),Math.round(o+d)!==n&&(o-=qu(r,"top","bottom")+d)),!gk(e)){var p=Math.round(g+l)-t,i=Math.round(o+d)-n;Math.abs(p)!==1&&(g-=p),Math.abs(i)!==1&&(o-=i)}return Ao(a.left,a.top,g,o)}var pk=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Tr(e).SVGGraphicsElement}:function(e){return e instanceof Tr(e).SVGElement&&typeof e.getBBox=="function"}}();function gk(e){return e===Tr(e).document.documentElement}function mk(e){return ja?pk(e)?dk(e):fk(e):_p}function vk(e){var t=e.x,n=e.y,r=e.width,a=e.height,l=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,d=Object.create(l.prototype);return wp(d,{x:t,y:n,width:r,height:a,top:n,right:t+r,bottom:a+n,left:t}),d}function Ao(e,t,n,r){return{x:e,y:t,width:n,height:r}}var yk=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Ao(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=mk(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}(),bk=function(){function e(t,n){var r=vk(n);wp(this,{target:t,contentRect:r})}return e}(),wk=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new bp,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 Tr(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new yk(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 Tr(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 bk(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 bp,$p=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=uk.getInstance(),r=new wk(t,n,this);Sp.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){$p.prototype[e]=function(){var t;return(t=Sp.get(this))[e].apply(t,arguments)}});var _k=function(){return typeof Us.ResizeObserver<"u"?Us.ResizeObserver:$p}();const Qu=["blur","input","change","changeSelectionStyle","changeSession","copy","focus","paste"],xp=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",...Qu],render(){return ao("div")},mounted(){const e=this._editor=qh(Xl.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)}),Qu.forEach(t=>{const n="on"+Ii(t);typeof this.$.vnode.props[n]=="function"&&e.on(t,this.$emit.bind(this,t))}),this._ro=new _k(()=>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)}}}),Sk={class:"block"},Cp=xe({__name:"InputForm",props:{yaml:{type:String,required:!0}},emits:["update-yaml"],setup(e,{emit:t}){const n=e,r=t,a=vl(n,"yaml");return Al(()=>{r("update-yaml",a.value)}),(l,d)=>(G(),re("div",Sk,[oe(le(xp),{class:"vue-ace-editor",value:a.value,"onUpdate:value":d[0]||(d[0]=g=>a.value=g),lang:"yaml",theme:"monokai",options:{fontSize:16,minLines:6,maxLines:1e4}},null,8,["value"])]))}}),$k={class:"block"},xk={class:"is-size-2 block"},Ck={class:"field is-grouped is-grouped-centered"},Ak={class:"control"},kk={class:"icon is-small"},Ek=F("span",null,"Edit",-1),Rk={key:0,class:"block"},Tk=F("hr",null,null,-1),Lk=xe({__name:"EditRule",props:{rule:{type:Object,required:!0}},setup(e){const t=e,n=Ir(),r=vl(t.rule.yaml),a=dS(),l=g=>{r.value=g},d=async()=>{const g=await a.perform({yaml:r.value});n.push({name:"Rule",params:{id:g.id}})};return(g,o)=>{var i,s;const p=Ze("font-awesome-icon");return G(),re(We,null,[F("div",$k,[F("h2",xk,"Edit rule: "+_e(e.rule.id),1),oe(Cp,{yaml:r.value,"onUpdate:yaml":o[0]||(o[0]=c=>r.value=c),onUpdateYaml:l},null,8,["yaml"]),F("div",Ck,[F("p",Ak,[F("a",{class:"button is-primary",onClick:d},[F("span",kk,[oe(p,{icon:"edit"})]),Ek])])])]),(i=le(a).last)!=null&&i.error?(G(),re("div",Rk,[Tk,oe(yt,{error:(s=le(a).last)==null?void 0:s.error},null,8,["error"])])):ge("",!0)],64)}}}),Mk=xe({__name:"EditRuleWrapper",props:{id:{type:String,required:!0}},setup(e){const t=e,n=Yf(),r=async()=>{await n.perform(t.id)};return ct(async()=>{await r()}),Qe(t,async()=>{await r()}),(a,l)=>{var d,g;return G(),re(We,null,[le(n).isRunning?(G(),$e(_n,{key:0})):ge("",!0),le(n).isError?(G(),$e(yt,{key:1,error:(d=le(n).last)==null?void 0:d.error},null,8,["error"])):ge("",!0),(g=le(n).last)!=null&&g.value?(G(),$e(Lk,{key:2,rule:le(n).last.value},null,8,["rule"])):ge("",!0)],64)}}}),Ok=xe({__name:"EditRule",props:{id:{type:String,required:!0}},setup(e){const t=e,n=()=>{wn(`Edit rule:${t.id} - Mihari`)};return ct(()=>{n()}),Qe(()=>t.id,()=>{n()}),(r,a)=>(G(),$e(Mk,{id:e.id},null,8,["id"]))}});function Ik(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 a=r.reduce(function(g,o){var p=o.match(/\n([\t ]+|(?!\s).)/g);return p?g.concat(p.map(function(i){var s,c;return(c=(s=i.match(/[\t ]/g))===null||s===void 0?void 0:s.length)!==null&&c!==void 0?c:0})):g},[]);if(a.length){var l=new RegExp(`
1755
+ [ ]{`+Math.min.apply(Math,a)+"}","g");r=r.map(function(g){return g.replace(l,`
1756
+ `)})}r[0]=r[0].replace(/^\r?\n/,"");var d=r[0];return t.forEach(function(g,o){var p=d.match(/(?:^|\n)( *)$/),i=p?p[1]:"",s=g;typeof g=="string"&&g.includes(`
1757
+ `)&&(s=String(g).split(`
1758
+ `).map(function(c,u){return u===0?c:""+i+c}).join(`
1759
+ `)),d+=s+r[o+1]}),d}var cs,Nk=new Uint8Array(16);function Fk(){if(!cs&&(cs=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!cs))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return cs(Nk)}const Dk=/^(?:[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 Pk(e){return typeof e=="string"&&Dk.test(e)}var gt=[];for(var qo=0;qo<256;++qo)gt.push((qo+256).toString(16).substr(1));function Wk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(gt[e[t+0]]+gt[e[t+1]]+gt[e[t+2]]+gt[e[t+3]]+"-"+gt[e[t+4]]+gt[e[t+5]]+"-"+gt[e[t+6]]+gt[e[t+7]]+"-"+gt[e[t+8]]+gt[e[t+9]]+"-"+gt[e[t+10]]+gt[e[t+11]]+gt[e[t+12]]+gt[e[t+13]]+gt[e[t+14]]+gt[e[t+15]]).toLowerCase();if(!Pk(n))throw TypeError("Stringified UUID is invalid");return n}function Bk(e,t,n){e=e||{};var r=e.random||(e.rng||Fk)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Wk(r)}function Hk(){const e=Bk(),t=Co();return Ik`---
1760
+ id: ${e}
1761
+ title: Title goes here
1762
+ description: Description goes here
1763
+ created_on: ${t.format("YYYY-MM-DD")}
1764
+ queries: []`}const zk={class:"block"},Uk=F("h2",{class:"is-size-2 block"},"New rule",-1),jk={class:"field is-grouped is-grouped-centered"},Vk={class:"control"},Gk={class:"icon is-small"},Kk=F("span",null,"Create",-1),Yk={key:0,class:"block"},Zk=F("hr",null,null,-1),Xk=xe({__name:"NewRule",setup(e){const t=Ir(),n=je(Hk()),r=hS(),a=d=>{n.value=d},l=async()=>{const d=await r.perform({yaml:n.value});t.push({name:"Rule",params:{id:d.id}})};return(d,g)=>{var p,i;const o=Ze("font-awesome-icon");return G(),re(We,null,[F("div",zk,[Uk,oe(Cp,{yaml:n.value,"onUpdate:yaml":g[0]||(g[0]=s=>n.value=s),onUpdateYaml:a},null,8,["yaml"]),F("div",jk,[F("p",Vk,[F("a",{class:"button is-primary",onClick:l},[F("span",Gk,[oe(o,{icon:"plus"})]),Kk])])])]),(p=le(r).last)!=null&&p.error?(G(),re("div",Yk,[Zk,oe(yt,{error:(i=le(r).last)==null?void 0:i.error},null,8,["error"])])):ge("",!0)],64)}}}),qk=xe({__name:"NewRule",setup(e){const t=()=>{wn("New rule - Mihari")};return ct(()=>{t()}),(n,r)=>(G(),$e(Xk))}}),Qk={class:"buttons is-pulled-right"},Jk=F("span",null,"Alerts:",-1),eE=F("span",null,"Artifacts:",-1),tE=["href"],nE=F("span",null,"JSON",-1),rE={class:"icon is-small"},iE=F("span",null,"Search",-1),sE={class:"icon is-small"},oE=F("span",null,"Edit",-1),aE={class:"icon is-small"},lE=F("span",null,"Delete",-1),cE={class:"icon is-small"},Ap=xe({__name:"ActionButtons",props:{rule:{type:Object,required:!0}},emits:["delete","set-error","set-message"],setup(e,{emit:t}){const n=e,r=t,a=Re(()=>`/api/rules/${n.rule.id}`),l=Re(()=>`rule.id:"${n.rule.id}"`),d=cS(),g=uS(),o=_o(),p=Vl(),i=async()=>{if(window.confirm(`Are you sure you want to delete ${n.rule.id}?`))try{await d.perform(n.rule.id),r("delete")}catch(u){Je.isAxiosError(u)&&r("set-error",u)}},s=async()=>{try{const c=await g.perform(n.rule.id);r("set-message",c)}catch(c){Je.isAxiosError(c)&&r("set-error",c)}};return ct(()=>{o.perform({q:l.value,page:1,limit:0}),p.perform({q:l.value,page:1,limit:0})}),(c,u)=>{const h=Ze("router-link"),f=Ze("font-awesome-icon");return G(),re("span",Qk,[oe(h,{class:"button is-warning is-small is-rounded",to:{name:"Alerts",query:{q:l.value}}},{default:rt(()=>{var m,v;return[Jk,F("span",null,_e((v=(m=le(o).last)==null?void 0:m.value)==null?void 0:v.total),1)]}),_:1},8,["to"]),oe(h,{class:"button is-success is-small is-rounded",to:{name:"Artifacts",query:{q:l.value}}},{default:rt(()=>{var m,v;return[eE,F("span",null,_e((v=(m=le(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:a.value,target:"_blank"},[nE,F("span",rE,[oe(f,{icon:"barcode"})])],8,tE),F("button",{class:"button is-primary is-light is-small",onClick:s},[iE,F("span",sE,[le(g).isRunning?(G(),$e(f,{key:0,icon:"spinner",spin:""})):(G(),$e(f,{key:1,icon:"magnifying-glass"}))])]),oe(h,{class:"button is-info is-light is-small",to:{name:"EditRule",params:{id:e.rule.id}}},{default:rt(()=>[oE,F("span",aE,[oe(f,{icon:"edit"})])]),_:1},8,["to"]),F("button",{class:"button is-light is-small",onClick:i},[lE,F("span",cE,[oe(f,{icon:"times"})])])])}}}),uE={class:"box"},hE={class:"block"},dE={class:"table is-fullwidth is-completely-borderless"},fE=F("th",null,"Title",-1),pE=F("th",null,"Description",-1),gE={key:0},mE=F("th",null,"Tags",-1),vE=F("p",{class:"block is-clearfix"},null,-1),yE={class:"help"},bE=xe({__name:"RuleItem",props:{rule:{type:Object,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=t,r=je(),a=je(),l=i=>{r.value=i},d=()=>{r.value=void 0},g=i=>{a.value=i},o=()=>{a.value=void 0},p=()=>{n("delete")};return(i,s)=>{const c=Ze("router-link");return G(),re("div",uE,[r.value?(G(),$e(yt,{key:0,class:"block",error:r.value,disposable:!0,onDispose:d},null,8,["error"])):ge("",!0),a.value?(G(),$e(So,{key:1,class:"block",message:a.value,disposable:!0,onDispose:o},null,8,["message"])):ge("",!0),F("div",hE,[F("p",null,[oe(Ap,{rule:e.rule,onSetError:l,onDelete:p,onSetMessage:g},null,8,["rule"])]),oe(c,{class:"is-size-4",to:{name:"Rule",params:{id:e.rule.id}}},{default:rt(()=>[it(_e(e.rule.id),1)]),_:1},8,["to"])]),F("table",dE,[F("tr",null,[fE,F("td",null,_e(e.rule.title),1)]),F("tr",null,[pE,F("td",null,_e(e.rule.description),1)]),e.rule.tags.length>0?(G(),re("tr",gE,[mE,F("td",null,[oe(ji,{tags:e.rule.tags,"navigate-to":"Rules"},null,8,["tags"])])])):ge("",!0)]),vE,F("p",yE,"Created at: "+_e(e.rule.createdAt),1)])}}}),wE={key:0,class:"block"},_E={class:"help"},SE={key:1,class:"block"},$E=F("div",{class:"notification is-warning is-light"},"There is no alert to show",-1),xE=[$E],CE=xe({__name:"RulesItem",props:{rules:{type:Object,required:!0}},emits:["refresh","update-page"],setup(e,{emit:t}){const n=e,r=t,a=g=>{r("update-page",g)},l=()=>{r("refresh")},d=Re(()=>n.rules.results.length>0);return(g,o)=>d.value?(G(),re("div",wE,[(G(!0),re(We,null,Nt(e.rules.results,p=>(G(),$e(bE,{rule:p,key:p.id,onRefresh:l,onDelete:l},null,8,["rule"]))),128)),oe(Gl,{currentPage:e.rules.currentPage,total:e.rules.total,pageSize:e.rules.pageSize,onUpdatePage:a},null,8,["currentPage","total","pageSize"]),F("p",_E,"("+_e(e.rules.total)+" results in total, "+_e(e.rules.results.length)+" shown)",1)])):(G(),re("div",SE,xE))}}),AE={class:"block"},kE={class:"field has-addons"},EE={class:"control is-expanded"},RE={class:"control"},TE={class:"icon is-small"},LE=F("span",null,"Search",-1),ME={class:"control"},OE={class:"icon is-small"},IE=F("span",null,"Help",-1),NE={key:0,class:"content mt-3"},FE=El('<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>&lt;</code>, <code>&lt;=</code>, <code>&gt;</code>, <code>&gt;=</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),DE={key:0,class:"block"},PE=xe({__name:"RulesWrapper",setup(e){const t=Ar("page","1"),n=Ar("q",""),r=je(!1),a=Kf(),l=async()=>{const i={q:n.value,page:parseInt(t.value)};return await a.perform(i)},d=i=>{t.value=i.toString()},g=async()=>{t.value="1",await l()},o=g,p=Pi(r);return ct(async()=>{await l()}),Qe(t,async()=>{await l()}),Qe(n,async()=>{window.scrollTo({top:0,behavior:"smooth"})}),(i,s)=>{var h,f;const c=Ze("font-awesome-icon"),u=Ze("router-link");return G(),re(We,null,[F("div",AE,[F("div",kE,[F("p",EE,[$l(F("input",{class:"input",type:"text","onUpdate:modelValue":s[0]||(s[0]=m=>ut(n)?n.value=m:null)},null,512),[[Ll,le(n)]])]),F("p",RE,[F("a",{class:"button is-primary",onClick:g},[F("span",TE,[oe(c,{icon:"search"})]),LE])]),F("p",ME,[F("a",{class:"button is-info",onClick:s[1]||(s[1]=m=>le(p)())},[F("span",OE,[oe(c,{icon:"question"})]),IE])])]),r.value?(G(),re("div",NE,[FE,F("ul",null,[F("li",null,[oe(u,{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)]),le(a).performCount>0?(G(),re("div",DE,[le(a).isRunning?(G(),$e(_n,{key:0})):ge("",!0),le(a).isError?(G(),$e(yt,{key:1,error:(h=le(a).last)==null?void 0:h.error},null,8,["error"])):ge("",!0),(f=le(a).last)!=null&&f.value?(G(),$e(CE,{key:2,rules:le(a).last.value,onUpdatePage:d,onRefresh:le(o)},null,8,["rules","onRefresh"])):ge("",!0)])):ge("",!0)],64)}}}),WE=xe({__name:"RulesView",setup(e){return wn("Rules - Mihari"),(t,n)=>(G(),$e(PE))}}),BE={class:"block"},HE=xe({__name:"YamlItem",props:{yaml:{type:String,required:!0}},setup(e){return(t,n)=>(G(),re("div",BE,[oe(le(xp),{class:"vue-ace-editor",value:e.yaml,lang:"yaml",theme:"monokai",options:{readOnly:!0,fontSize:16,maxLines:1e4,minLines:6}},null,8,["value"])]))}}),zE={class:"block"},UE={class:"is-size-2 block"},jE={class:"block is-clearfix"},VE=F("hr",null,null,-1),GE={class:"block"},KE=F("h2",{class:"is-size-2 block"},"Alerts",-1),YE=xe({__name:"RuleDetail",props:{rule:{type:Object,required:!0}},emits:["delete","refresh"],setup(e,{emit:t}){const n=t,r=je(),a=je(),l=()=>{n("delete")},d=i=>{r.value=i},g=()=>{r.value=void 0},o=i=>{i.queued?a.value=i:n("refresh")},p=()=>{a.value=void 0};return(i,s)=>(G(),re(We,null,[F("div",zE,[F("h2",UE,_e(e.rule.id),1),r.value?(G(),$e(yt,{key:0,class:"mt-3 mb-3",error:r.value,disposable:!0,onDispose:g},null,8,["error"])):ge("",!0),a.value?(G(),$e(So,{key:1,class:"block",message:a.value,disposable:!0,onDispose:p},null,8,["message"])):ge("",!0),F("p",jE,[oe(Ap,{rule:e.rule,onSetMessage:o,onDelete:l,onSetError:d},null,8,["rule"])]),oe(HE,{yaml:e.rule.yaml},null,8,["yaml"])]),VE,F("div",GE,[KE,oe(rp,{ruleId:e.rule.id},null,8,["ruleId"])])],64))}}),ZE=xe({__name:"RuleDetailWrapper",props:{id:{type:String,required:!0}},setup(e){const t=e,n=Yf(),r=Ir(),a=async()=>{await n.perform(t.id)},l=async()=>{await a()},d=()=>{r.push("/")};return ct(async()=>{await a()}),Qe(t,async()=>{await a()}),(g,o)=>{var p,i;return G(),re(We,null,[le(n).isRunning?(G(),$e(_n,{key:0})):ge("",!0),le(n).isError?(G(),$e(yt,{key:1,error:(p=le(n).last)==null?void 0:p.error},null,8,["error"])):ge("",!0),(i=le(n).last)!=null&&i.value?(G(),$e(YE,{key:2,rule:le(n).last.value,onRefresh:l,onDelete:d},null,8,["rule"])):ge("",!0)],64)}}}),XE=xe({__name:"RuleView",props:{id:{type:String,required:!0}},setup(e){const t=e,n=()=>{wn(`Rule:${t.id} - Mihari`)};return ct(()=>{n()}),Qe(()=>t.id,()=>{n()}),(r,a)=>(G(),$e(ZE,{id:e.id},null,8,["id"]))}}),qE=[{path:"/",name:"Alerts",component:sx},{path:"/alerts/:id",name:"Alert",component:wx,props:!0},{path:"/config",name:"Config",component:ek},{path:"/artifacts/",name:"Artifacts",component:vC},{path:"/artifacts/:id",name:"Artifact",component:P2,props:!0},{path:"/rules",name:"Rules",component:WE},{path:"/rules/new",name:"NewRule",component:qk},{path:"/rules/:id",name:"Rule",component:XE,props:!0},{path:"/rules/:id/edit",name:"EditRule",component:Ok,props:!0}],QE=zb({history:mb(),routes:qE});lm.add(pm,Tm,km,dm,Rm,mm,um,Sm,_m,Cm,xm,fm,Ah,wm,bm,vm,Em,Am,ym);const kp=Ky(P0);kp.component("font-awesome-icon",a0);kp.use(QE).mount("#app");