mihari 7.3.2 → 7.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (127) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +8 -0
  3. data/.rubocop.yml +0 -2
  4. data/.shadowenv.d/.gitignore +2 -0
  5. data/.shadowenv.d/000_unset_all.lisp +39 -0
  6. data/README.md +0 -8
  7. data/lib/mihari/analyzers/base.rb +2 -2
  8. data/lib/mihari/analyzers/binaryedge.rb +5 -5
  9. data/lib/mihari/analyzers/censys.rb +6 -6
  10. data/lib/mihari/analyzers/circl.rb +2 -2
  11. data/lib/mihari/analyzers/crtsh.rb +3 -3
  12. data/lib/mihari/analyzers/dnstwister.rb +2 -2
  13. data/lib/mihari/analyzers/feed.rb +12 -18
  14. data/lib/mihari/analyzers/fofa.rb +6 -6
  15. data/lib/mihari/analyzers/greynoise.rb +5 -5
  16. data/lib/mihari/analyzers/hunterhow.rb +4 -4
  17. data/lib/mihari/analyzers/onyphe.rb +5 -5
  18. data/lib/mihari/analyzers/otx.rb +2 -2
  19. data/lib/mihari/analyzers/passivetotal.rb +3 -3
  20. data/lib/mihari/analyzers/pulsedive.rb +3 -3
  21. data/lib/mihari/analyzers/securitytrails.rb +4 -4
  22. data/lib/mihari/analyzers/shodan.rb +5 -5
  23. data/lib/mihari/analyzers/urlscan.rb +5 -5
  24. data/lib/mihari/analyzers/virustotal.rb +4 -4
  25. data/lib/mihari/analyzers/virustotal_intelligence.rb +5 -5
  26. data/lib/mihari/analyzers/zoomeye.rb +5 -5
  27. data/lib/mihari/cli/application.rb +1 -1
  28. data/lib/mihari/clients/base.rb +5 -5
  29. data/lib/mihari/clients/binaryedge.rb +6 -6
  30. data/lib/mihari/clients/censys.rb +4 -4
  31. data/lib/mihari/clients/circl.rb +2 -2
  32. data/lib/mihari/clients/crtsh.rb +2 -2
  33. data/lib/mihari/clients/dnstwister.rb +1 -1
  34. data/lib/mihari/clients/fofa.rb +4 -4
  35. data/lib/mihari/clients/google_public_dns.rb +2 -2
  36. data/lib/mihari/clients/greynoise.rb +4 -4
  37. data/lib/mihari/clients/hunterhow.rb +10 -10
  38. data/lib/mihari/clients/misp.rb +1 -1
  39. data/lib/mihari/clients/mmdb.rb +1 -1
  40. data/lib/mihari/clients/onyphe.rb +4 -4
  41. data/lib/mihari/clients/otx.rb +1 -1
  42. data/lib/mihari/clients/passivetotal.rb +5 -5
  43. data/lib/mihari/clients/publsedive.rb +3 -3
  44. data/lib/mihari/clients/securitytrails.rb +6 -6
  45. data/lib/mihari/clients/shodan.rb +6 -6
  46. data/lib/mihari/clients/shodan_internet_db.rb +1 -1
  47. data/lib/mihari/clients/the_hive.rb +2 -2
  48. data/lib/mihari/clients/urlscan.rb +4 -4
  49. data/lib/mihari/clients/virustotal.rb +4 -4
  50. data/lib/mihari/clients/zoomeye.rb +12 -12
  51. data/lib/mihari/commands/alert.rb +1 -1
  52. data/lib/mihari/commands/artifact.rb +1 -1
  53. data/lib/mihari/commands/rule.rb +1 -1
  54. data/lib/mihari/commands/tag.rb +1 -1
  55. data/lib/mihari/concerns/autonomous_system_normalizable.rb +1 -4
  56. data/lib/mihari/concerns/configurable.rb +1 -1
  57. data/lib/mihari/concerns/database_connectable.rb +2 -2
  58. data/lib/mihari/concerns/retriable.rb +1 -1
  59. data/lib/mihari/config.rb +6 -2
  60. data/lib/mihari/constants.rb +2 -2
  61. data/lib/mihari/emitters/base.rb +2 -2
  62. data/lib/mihari/emitters/database.rb +1 -1
  63. data/lib/mihari/emitters/misp.rb +12 -4
  64. data/lib/mihari/emitters/slack.rb +9 -9
  65. data/lib/mihari/emitters/the_hive.rb +9 -4
  66. data/lib/mihari/emitters/webhook.rb +4 -4
  67. data/lib/mihari/enrichers/base.rb +1 -1
  68. data/lib/mihari/enrichers/google_public_dns.rb +1 -1
  69. data/lib/mihari/enrichers/mmdb.rb +1 -1
  70. data/lib/mihari/enrichers/shodan.rb +3 -3
  71. data/lib/mihari/enrichers/whois.rb +2 -2
  72. data/lib/mihari/entities/alert.rb +6 -6
  73. data/lib/mihari/entities/artifact.rb +17 -17
  74. data/lib/mihari/entities/autonomous_system.rb +1 -1
  75. data/lib/mihari/entities/config.rb +8 -4
  76. data/lib/mihari/entities/cpe.rb +2 -2
  77. data/lib/mihari/entities/dns.rb +3 -3
  78. data/lib/mihari/entities/geolocation.rb +3 -3
  79. data/lib/mihari/entities/ip_address.rb +3 -3
  80. data/lib/mihari/entities/messages.rb +3 -3
  81. data/lib/mihari/entities/pagination.rb +3 -3
  82. data/lib/mihari/entities/port.rb +2 -2
  83. data/lib/mihari/entities/reverse_dns.rb +2 -2
  84. data/lib/mihari/entities/rule.rb +8 -8
  85. data/lib/mihari/entities/tag.rb +3 -3
  86. data/lib/mihari/entities/vulnerability.rb +2 -2
  87. data/lib/mihari/entities/whois.rb +7 -7
  88. data/lib/mihari/errors.rb +1 -1
  89. data/lib/mihari/models/artifact.rb +2 -2
  90. data/lib/mihari/models/port.rb +1 -1
  91. data/lib/mihari/models/tag.rb +3 -0
  92. data/lib/mihari/rule.rb +10 -14
  93. data/lib/mihari/schemas/emitter.rb +2 -0
  94. data/lib/mihari/services/feed.rb +3 -3
  95. data/lib/mihari/services/getters.rb +1 -1
  96. data/lib/mihari/services/proxies.rb +1 -1
  97. data/lib/mihari/services/renderer.rb +2 -0
  98. data/lib/mihari/services/searchers.rb +1 -1
  99. data/lib/mihari/sidekiq/application.rb +2 -2
  100. data/lib/mihari/structs/censys.rb +4 -4
  101. data/lib/mihari/structs/google_public_dns.rb +3 -3
  102. data/lib/mihari/structs/greynoise.rb +2 -2
  103. data/lib/mihari/structs/onyphe.rb +3 -3
  104. data/lib/mihari/structs/shodan.rb +10 -10
  105. data/lib/mihari/structs/urlscan.rb +1 -1
  106. data/lib/mihari/structs/virustotal_intelligence.rb +2 -2
  107. data/lib/mihari/version.rb +1 -1
  108. data/lib/mihari/web/api.rb +1 -1
  109. data/lib/mihari/web/application.rb +1 -1
  110. data/lib/mihari/web/endpoints/alerts.rb +12 -12
  111. data/lib/mihari/web/endpoints/artifacts.rb +11 -11
  112. data/lib/mihari/web/endpoints/configs.rb +7 -2
  113. data/lib/mihari/web/endpoints/ip_addresses.rb +5 -5
  114. data/lib/mihari/web/endpoints/rules.rb +26 -26
  115. data/lib/mihari/web/endpoints/tags.rb +4 -4
  116. data/lib/mihari/web/public/assets/index-DsMIBgVm.js +1787 -0
  117. data/lib/mihari/web/public/assets/{index-ReF8ffd-.css → index-qLffdzXi.css} +1 -1
  118. data/lib/mihari/web/public/index.html +2 -2
  119. data/lib/mihari/web/public/redoc-static.html +2 -2
  120. data/lib/mihari.rb +1 -1
  121. data/mihari.gemspec +15 -15
  122. data/renovate.json +1 -3
  123. data/requirements.txt +1 -1
  124. metadata +37 -36
  125. data/.standard.yml +0 -4
  126. data/lib/mihari/web/public/assets/index-lRP933ks.js +0 -1787
  127. /data/lib/mihari/web/public/assets/{mode-yaml-BC4MIiYj.js → mode-yaml-ELgwiJiP.js} +0 -0
@@ -0,0 +1,1787 @@
1
+ var Jg=Object.defineProperty;var em=(e,t,n)=>t in e?Jg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Fe=(e,t,n)=>(em(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const s of l)if(s.type==="childList")for(const u of s.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&r(u)}).observe(document,{childList:!0,subtree:!0});function n(l){const s={};return l.integrity&&(s.integrity=l.integrity),l.referrerPolicy&&(s.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?s.credentials="include":l.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(l){if(l.ep)return;l.ep=!0;const s=n(l);fetch(l.href,s)}})();function Xc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function be(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Xc(Object(n),!0).forEach(function(r){dt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xc(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oo(e){"@babel/helpers - typeof";return oo=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},oo(e)}function tm(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qc(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 nm(e,t,n){return t&&qc(e.prototype,t),n&&qc(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function dt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gl(e,t){return im(e)||om(e,t)||Zh(e,t)||lm()}function hs(e){return rm(e)||sm(e)||Zh(e)||am()}function rm(e){if(Array.isArray(e))return Xa(e)}function im(e){if(Array.isArray(e))return e}function sm(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function om(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],l=!0,s=!1,u,d;try{for(n=n.call(e);!(l=(u=n.next()).done)&&(r.push(u.value),!(t&&r.length===t));l=!0);}catch(o){s=!0,d=o}finally{try{!l&&n.return!=null&&n.return()}finally{if(s)throw d}}return r}}function Zh(e,t){if(e){if(typeof e=="string")return Xa(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 Xa(e,t)}}function Xa(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 am(){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 lm(){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 Qc=function(){},Kl={},Xh={},qh=null,Qh={mark:Qc,measure:Qc};try{typeof window<"u"&&(Kl=window),typeof document<"u"&&(Xh=document),typeof MutationObserver<"u"&&(qh=MutationObserver),typeof performance<"u"&&(Qh=performance)}catch{}var cm=Kl.navigator||{},Jc=cm.userAgent,eu=Jc===void 0?"":Jc,zn=Kl,it=Xh,tu=qh,xs=Qh;zn.document;var kn=!!it.documentElement&&!!it.head&&typeof it.addEventListener=="function"&&typeof it.createElement=="function",Jh=~eu.indexOf("MSIE")||~eu.indexOf("Trident/"),Es,Rs,Ts,Ls,Ms,$n="___FONT_AWESOME___",qa=16,ef="fa",tf="svg-inline--fa",pr="data-fa-i2svg",Qa="data-fa-pseudo-element",um="data-fa-pseudo-element-pending",Yl="data-prefix",Zl="data-icon",nu="fontawesome-i2svg",hm="async",fm=["HTML","HEAD","STYLE","SCRIPT"],nf=function(){try{return!0}catch{return!1}}(),rt="classic",ut="sharp",Xl=[rt,ut];function fs(e){return new Proxy(e,{get:function(n,r){return r in n?n[r]:n[rt]}})}var Di=fs((Es={},dt(Es,rt,{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"}),dt(Es,ut,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"}),Es)),Fi=fs((Rs={},dt(Rs,rt,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),dt(Rs,ut,{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"}),Rs)),Pi=fs((Ts={},dt(Ts,rt,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),dt(Ts,ut,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"}),Ts)),dm=fs((Ls={},dt(Ls,rt,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),dt(Ls,ut,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"}),Ls)),pm=/fa(s|r|l|t|d|b|k|ss|sr|sl|st)?[\-\ ]/,rf="fa-layers-text",gm=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,mm=fs((Ms={},dt(Ms,rt,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),dt(Ms,ut,{900:"fass",400:"fasr",300:"fasl",100:"fast"}),Ms)),sf=[1,2,3,4,5,6,7,8,9,10],vm=sf.concat([11,12,13,14,15,16,17,18,19,20]),ym=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],sr={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Bi=new Set;Object.keys(Fi[rt]).map(Bi.add.bind(Bi));Object.keys(Fi[ut]).map(Bi.add.bind(Bi));var bm=[].concat(Xl,hs(Bi),["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",sr.GROUP,sr.SWAP_OPACITY,sr.PRIMARY,sr.SECONDARY]).concat(sf.map(function(e){return"".concat(e,"x")})).concat(vm.map(function(e){return"w-".concat(e)})),ki=zn.FontAwesomeConfig||{};function wm(e){var t=it.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function _m(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(it&&typeof it.querySelector=="function"){var $m=[["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"]];$m.forEach(function(e){var t=Gl(e,2),n=t[0],r=t[1],l=_m(wm(n));l!=null&&(ki[r]=l)})}var of={styleDefault:"solid",familyDefault:"classic",cssPrefix:ef,replacementClass:tf,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};ki.familyPrefix&&(ki.cssPrefix=ki.familyPrefix);var Yr=be(be({},of),ki);Yr.autoReplaceSvg||(Yr.observeMutations=!1);var xe={};Object.keys(of).forEach(function(e){Object.defineProperty(xe,e,{enumerable:!0,set:function(n){Yr[e]=n,xi.forEach(function(r){return r(xe)})},get:function(){return Yr[e]}})});Object.defineProperty(xe,"familyPrefix",{enumerable:!0,set:function(t){Yr.cssPrefix=t,xi.forEach(function(n){return n(xe)})},get:function(){return Yr.cssPrefix}});zn.FontAwesomeConfig=xe;var xi=[];function Sm(e){return xi.push(e),function(){xi.splice(xi.indexOf(e),1)}}var Tn=qa,rn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Cm(e){if(!(!e||!kn)){var t=it.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=it.head.childNodes,r=null,l=n.length-1;l>-1;l--){var s=n[l],u=(s.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(u)>-1&&(r=s)}return it.head.insertBefore(t,r),e}}var Am="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Wi(){for(var e=12,t="";e-- >0;)t+=Am[Math.random()*62|0];return t}function oi(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function ql(e){return e.classList?oi(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function af(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function km(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(af(e[n]),'" ')},"").trim()}function Io(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function Ql(e){return e.size!==rn.size||e.x!==rn.x||e.y!==rn.y||e.rotate!==rn.rotate||e.flipX||e.flipY}function xm(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,l={transform:"translate(".concat(n/2," 256)")},s="translate(".concat(t.x*32,", ").concat(t.y*32,") "),u="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),d="rotate(".concat(t.rotate," 0 0)"),o={transform:"".concat(s," ").concat(u," ").concat(d)},p={transform:"translate(".concat(r/2*-1," -256)")};return{outer:l,inner:o,path:p}}function Em(e){var t=e.transform,n=e.width,r=n===void 0?qa:n,l=e.height,s=l===void 0?qa:l,u=e.startCentered,d=u===void 0?!1:u,o="";return d&&Jh?o+="translate(".concat(t.x/Tn-r/2,"em, ").concat(t.y/Tn-s/2,"em) "):d?o+="translate(calc(-50% + ".concat(t.x/Tn,"em), calc(-50% + ").concat(t.y/Tn,"em)) "):o+="translate(".concat(t.x/Tn,"em, ").concat(t.y/Tn,"em) "),o+="scale(".concat(t.size/Tn*(t.flipX?-1:1),", ").concat(t.size/Tn*(t.flipY?-1:1),") "),o+="rotate(".concat(t.rotate,"deg) "),o}var Rm=`:root, :host {
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, none));
673
+ transform: rotate(var(--fa-rotate-angle, none));
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 lf(){var e=ef,t=tf,n=xe.cssPrefix,r=xe.replacementClass,l=Rm;if(n!==e||r!==t){var s=new RegExp("\\.".concat(e,"\\-"),"g"),u=new RegExp("\\--".concat(e,"\\-"),"g"),d=new RegExp("\\.".concat(t),"g");l=l.replace(s,".".concat(n,"-")).replace(u,"--".concat(n,"-")).replace(d,".".concat(r))}return l}var ru=!1;function Ca(){xe.autoAddCss&&!ru&&(Cm(lf()),ru=!0)}var Tm={mixout:function(){return{dom:{css:lf,insertCss:Ca}}},hooks:function(){return{beforeDOMElementCreation:function(){Ca()},beforeI2svg:function(){Ca()}}}},Sn=zn||{};Sn[$n]||(Sn[$n]={});Sn[$n].styles||(Sn[$n].styles={});Sn[$n].hooks||(Sn[$n].hooks={});Sn[$n].shims||(Sn[$n].shims=[]);var Yt=Sn[$n],cf=[],Lm=function e(){it.removeEventListener("DOMContentLoaded",e),ao=1,cf.map(function(t){return t()})},ao=!1;kn&&(ao=(it.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(it.readyState),ao||it.addEventListener("DOMContentLoaded",Lm));function Mm(e){kn&&(ao?setTimeout(e,0):cf.push(e))}function ds(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,l=e.children,s=l===void 0?[]:l;return typeof e=="string"?af(e):"<".concat(t," ").concat(km(r),">").concat(s.map(ds).join(""),"</").concat(t,">")}function iu(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Om=function(t,n){return function(r,l,s,u){return t.call(n,r,l,s,u)}},Aa=function(t,n,r,l){var s=Object.keys(t),u=s.length,d=l!==void 0?Om(n,l):n,o,p,a;for(r===void 0?(o=1,a=t[s[0]]):(o=0,a=r);o<u;o++)p=s[o],a=d(a,t[p],p,t);return a};function Im(e){for(var t=[],n=0,r=e.length;n<r;){var l=e.charCodeAt(n++);if(l>=55296&&l<=56319&&n<r){var s=e.charCodeAt(n++);(s&64512)==56320?t.push(((l&1023)<<10)+(s&1023)+65536):(t.push(l),n--)}else t.push(l)}return t}function Ja(e){var t=Im(e);return t.length===1?t[0].toString(16):null}function Nm(e,t){var n=e.length,r=e.charCodeAt(t),l;return r>=55296&&r<=56319&&n>t+1&&(l=e.charCodeAt(t+1),l>=56320&&l<=57343)?(r-55296)*1024+l-56320+65536:r}function su(e){return Object.keys(e).reduce(function(t,n){var r=e[n],l=!!r.icon;return l?t[r.iconName]=r.icon:t[n]=r,t},{})}function el(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,l=r===void 0?!1:r,s=su(t);typeof Yt.hooks.addPack=="function"&&!l?Yt.hooks.addPack(e,su(t)):Yt.styles[e]=be(be({},Yt.styles[e]||{}),s),e==="fas"&&el("fa",t)}var Os,Is,Ns,Ir=Yt.styles,Dm=Yt.shims,Fm=(Os={},dt(Os,rt,Object.values(Pi[rt])),dt(Os,ut,Object.values(Pi[ut])),Os),Jl=null,uf={},hf={},ff={},df={},pf={},Pm=(Is={},dt(Is,rt,Object.keys(Di[rt])),dt(Is,ut,Object.keys(Di[ut])),Is);function Bm(e){return~bm.indexOf(e)}function Wm(e,t){var n=t.split("-"),r=n[0],l=n.slice(1).join("-");return r===e&&l!==""&&!Bm(l)?l:null}var gf=function(){var t=function(s){return Aa(Ir,function(u,d,o){return u[o]=Aa(d,s,{}),u},{})};uf=t(function(l,s,u){if(s[3]&&(l[s[3]]=u),s[2]){var d=s[2].filter(function(o){return typeof o=="number"});d.forEach(function(o){l[o.toString(16)]=u})}return l}),hf=t(function(l,s,u){if(l[u]=u,s[2]){var d=s[2].filter(function(o){return typeof o=="string"});d.forEach(function(o){l[o]=u})}return l}),pf=t(function(l,s,u){var d=s[2];return l[u]=u,d.forEach(function(o){l[o]=u}),l});var n="far"in Ir||xe.autoFetchSvg,r=Aa(Dm,function(l,s){var u=s[0],d=s[1],o=s[2];return d==="far"&&!n&&(d="fas"),typeof u=="string"&&(l.names[u]={prefix:d,iconName:o}),typeof u=="number"&&(l.unicodes[u.toString(16)]={prefix:d,iconName:o}),l},{names:{},unicodes:{}});ff=r.names,df=r.unicodes,Jl=No(xe.styleDefault,{family:xe.familyDefault})};Sm(function(e){Jl=No(e.styleDefault,{family:xe.familyDefault})});gf();function ec(e,t){return(uf[e]||{})[t]}function Hm(e,t){return(hf[e]||{})[t]}function or(e,t){return(pf[e]||{})[t]}function mf(e){return ff[e]||{prefix:null,iconName:null}}function Um(e){var t=df[e],n=ec("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function jn(){return Jl}var tc=function(){return{prefix:null,iconName:null,rest:[]}};function No(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?rt:n,l=Di[r][e],s=Fi[r][e]||Fi[r][l],u=e in Yt.styles?e:null;return s||u||null}var ou=(Ns={},dt(Ns,rt,Object.keys(Pi[rt])),dt(Ns,ut,Object.keys(Pi[ut])),Ns);function Do(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,l=r===void 0?!1:r,s=(t={},dt(t,rt,"".concat(xe.cssPrefix,"-").concat(rt)),dt(t,ut,"".concat(xe.cssPrefix,"-").concat(ut)),t),u=null,d=rt;(e.includes(s[rt])||e.some(function(p){return ou[rt].includes(p)}))&&(d=rt),(e.includes(s[ut])||e.some(function(p){return ou[ut].includes(p)}))&&(d=ut);var o=e.reduce(function(p,a){var i=Wm(xe.cssPrefix,a);if(Ir[a]?(a=Fm[d].includes(a)?dm[d][a]:a,u=a,p.prefix=a):Pm[d].indexOf(a)>-1?(u=a,p.prefix=No(a,{family:d})):i?p.iconName=i:a!==xe.replacementClass&&a!==s[rt]&&a!==s[ut]&&p.rest.push(a),!l&&p.prefix&&p.iconName){var c=u==="fa"?mf(p.iconName):{},h=or(p.prefix,p.iconName);c.prefix&&(u=null),p.iconName=c.iconName||h||p.iconName,p.prefix=c.prefix||p.prefix,p.prefix==="far"&&!Ir.far&&Ir.fas&&!xe.autoFetchSvg&&(p.prefix="fas")}return p},tc());return(e.includes("fa-brands")||e.includes("fab"))&&(o.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(o.prefix="fad"),!o.prefix&&d===ut&&(Ir.fass||xe.autoFetchSvg)&&(o.prefix="fass",o.iconName=or(o.prefix,o.iconName)||o.iconName),(o.prefix==="fa"||u==="fa")&&(o.prefix=jn()||"fas"),o}var Vm=function(){function e(){tm(this,e),this.definitions={}}return nm(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,l=new Array(r),s=0;s<r;s++)l[s]=arguments[s];var u=l.reduce(this._pullDefinitions,{});Object.keys(u).forEach(function(d){n.definitions[d]=be(be({},n.definitions[d]||{}),u[d]),el(d,u[d]);var o=Pi[rt][d];o&&el(o,u[d]),gf()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(n,r){var l=r.prefix&&r.iconName&&r.icon?{0:r}:r;return Object.keys(l).map(function(s){var u=l[s],d=u.prefix,o=u.iconName,p=u.icon,a=p[2];n[d]||(n[d]={}),a.length>0&&a.forEach(function(i){typeof i=="string"&&(n[d][i]=p)}),n[d][o]=p}),n}}]),e}(),au=[],Nr={},Pr={},zm=Object.keys(Pr);function jm(e,t){var n=t.mixoutsTo;return au=e,Nr={},Object.keys(Pr).forEach(function(r){zm.indexOf(r)===-1&&delete Pr[r]}),au.forEach(function(r){var l=r.mixout?r.mixout():{};if(Object.keys(l).forEach(function(u){typeof l[u]=="function"&&(n[u]=l[u]),oo(l[u])==="object"&&Object.keys(l[u]).forEach(function(d){n[u]||(n[u]={}),n[u][d]=l[u][d]})}),r.hooks){var s=r.hooks();Object.keys(s).forEach(function(u){Nr[u]||(Nr[u]=[]),Nr[u].push(s[u])})}r.provides&&r.provides(Pr)}),n}function tl(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),l=2;l<n;l++)r[l-2]=arguments[l];var s=Nr[e]||[];return s.forEach(function(u){t=u.apply(null,[t].concat(r))}),t}function gr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var l=Nr[e]||[];l.forEach(function(s){s.apply(null,n)})}function Cn(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Pr[e]?Pr[e].apply(null,t):void 0}function nl(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,n=e.prefix||jn();if(t)return t=or(n,t)||t,iu(vf.definitions,n,t)||iu(Yt.styles,n,t)}var vf=new Vm,Gm=function(){xe.autoReplaceSvg=!1,xe.observeMutations=!1,gr("noAuto")},Km={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return kn?(gr("beforeI2svg",t),Cn("pseudoElements2svg",t),Cn("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;xe.autoReplaceSvg===!1&&(xe.autoReplaceSvg=!0),xe.observeMutations=!0,Mm(function(){Zm({autoReplaceSvgRoot:n}),gr("watch",t)})}},Ym={icon:function(t){if(t===null)return null;if(oo(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:or(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],r=No(t[0]);return{prefix:r,iconName:or(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(xe.cssPrefix,"-"))>-1||t.match(pm))){var l=Do(t.split(" "),{skipLookups:!0});return{prefix:l.prefix||jn(),iconName:or(l.prefix,l.iconName)||l.iconName}}if(typeof t=="string"){var s=jn();return{prefix:s,iconName:or(s,t)||t}}}},Wt={noAuto:Gm,config:xe,dom:Km,parse:Ym,library:vf,findIconDefinition:nl,toHtml:ds},Zm=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?it:n;(Object.keys(Yt.styles).length>0||xe.autoFetchSvg)&&kn&&xe.autoReplaceSvg&&Wt.dom.i2svg({node:r})};function Fo(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return ds(r)})}}),Object.defineProperty(e,"node",{get:function(){if(kn){var r=it.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function Xm(e){var t=e.children,n=e.main,r=e.mask,l=e.attributes,s=e.styles,u=e.transform;if(Ql(u)&&n.found&&!r.found){var d=n.width,o=n.height,p={x:d/o/2,y:.5};l.style=Io(be(be({},s),{},{"transform-origin":"".concat(p.x+u.x/16,"em ").concat(p.y+u.y/16,"em")}))}return[{tag:"svg",attributes:l,children:t}]}function qm(e){var t=e.prefix,n=e.iconName,r=e.children,l=e.attributes,s=e.symbol,u=s===!0?"".concat(t,"-").concat(xe.cssPrefix,"-").concat(n):s;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:be(be({},l),{},{id:u}),children:r}]}]}function nc(e){var t=e.icons,n=t.main,r=t.mask,l=e.prefix,s=e.iconName,u=e.transform,d=e.symbol,o=e.title,p=e.maskId,a=e.titleId,i=e.extra,c=e.watchable,h=c===void 0?!1:c,f=r.found?r:n,g=f.width,m=f.height,v=l==="fak",y=[xe.replacementClass,s?"".concat(xe.cssPrefix,"-").concat(s):""].filter(function(x){return i.classes.indexOf(x)===-1}).filter(function(x){return x!==""||!!x}).concat(i.classes).join(" "),k={children:[],attributes:be(be({},i.attributes),{},{"data-prefix":l,"data-icon":s,class:y,role:i.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(g," ").concat(m)})},C=v&&!~i.classes.indexOf("fa-fw")?{width:"".concat(g/m*16*.0625,"em")}:{};h&&(k.attributes[pr]=""),o&&(k.children.push({tag:"title",attributes:{id:k.attributes["aria-labelledby"]||"title-".concat(a||Wi())},children:[o]}),delete k.attributes.title);var S=be(be({},k),{},{prefix:l,iconName:s,main:n,mask:r,maskId:p,transform:u,symbol:d,styles:be(be({},C),i.styles)}),b=r.found&&n.found?Cn("generateAbstractMask",S)||{children:[],attributes:{}}:Cn("generateAbstractIcon",S)||{children:[],attributes:{}},E=b.children,L=b.attributes;return S.children=E,S.attributes=L,d?qm(S):Xm(S)}function lu(e){var t=e.content,n=e.width,r=e.height,l=e.transform,s=e.title,u=e.extra,d=e.watchable,o=d===void 0?!1:d,p=be(be(be({},u.attributes),s?{title:s}:{}),{},{class:u.classes.join(" ")});o&&(p[pr]="");var a=be({},u.styles);Ql(l)&&(a.transform=Em({transform:l,startCentered:!0,width:n,height:r}),a["-webkit-transform"]=a.transform);var i=Io(a);i.length>0&&(p.style=i);var c=[];return c.push({tag:"span",attributes:p,children:[t]}),s&&c.push({tag:"span",attributes:{class:"sr-only"},children:[s]}),c}function Qm(e){var t=e.content,n=e.title,r=e.extra,l=be(be(be({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),s=Io(r.styles);s.length>0&&(l.style=s);var u=[];return u.push({tag:"span",attributes:l,children:[t]}),n&&u.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),u}var ka=Yt.styles;function rl(e){var t=e[0],n=e[1],r=e.slice(4),l=Gl(r,1),s=l[0],u=null;return Array.isArray(s)?u={tag:"g",attributes:{class:"".concat(xe.cssPrefix,"-").concat(sr.GROUP)},children:[{tag:"path",attributes:{class:"".concat(xe.cssPrefix,"-").concat(sr.SECONDARY),fill:"currentColor",d:s[0]}},{tag:"path",attributes:{class:"".concat(xe.cssPrefix,"-").concat(sr.PRIMARY),fill:"currentColor",d:s[1]}}]}:u={tag:"path",attributes:{fill:"currentColor",d:s}},{found:!0,width:t,height:n,icon:u}}var Jm={found:!1,width:512,height:512};function ev(e,t){!nf&&!xe.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function il(e,t){var n=t;return t==="fa"&&xe.styleDefault!==null&&(t=jn()),new Promise(function(r,l){if(Cn("missingIconAbstract"),n==="fa"){var s=mf(e)||{};e=s.iconName||e,t=s.prefix||t}if(e&&t&&ka[t]&&ka[t][e]){var u=ka[t][e];return r(rl(u))}ev(e,t),r(be(be({},Jm),{},{icon:xe.showMissingIcons&&e?Cn("missingIconAbstract")||{}:{}}))})}var cu=function(){},sl=xe.measurePerformance&&xs&&xs.mark&&xs.measure?xs:{mark:cu,measure:cu},Si='FA "6.5.1"',tv=function(t){return sl.mark("".concat(Si," ").concat(t," begins")),function(){return yf(t)}},yf=function(t){sl.mark("".concat(Si," ").concat(t," ends")),sl.measure("".concat(Si," ").concat(t),"".concat(Si," ").concat(t," begins"),"".concat(Si," ").concat(t," ends"))},rc={begin:tv,end:yf},Zs=function(){};function uu(e){var t=e.getAttribute?e.getAttribute(pr):null;return typeof t=="string"}function nv(e){var t=e.getAttribute?e.getAttribute(Yl):null,n=e.getAttribute?e.getAttribute(Zl):null;return t&&n}function rv(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(xe.replacementClass)}function iv(){if(xe.autoReplaceSvg===!0)return Xs.replace;var e=Xs[xe.autoReplaceSvg];return e||Xs.replace}function sv(e){return it.createElementNS("http://www.w3.org/2000/svg",e)}function ov(e){return it.createElement(e)}function bf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?sv:ov:n;if(typeof e=="string")return it.createTextNode(e);var l=r(e.tag);Object.keys(e.attributes||[]).forEach(function(u){l.setAttribute(u,e.attributes[u])});var s=e.children||[];return s.forEach(function(u){l.appendChild(bf(u,{ceFn:r}))}),l}function av(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var Xs={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(l){n.parentNode.insertBefore(bf(l),n)}),n.getAttribute(pr)===null&&xe.keepOriginalSource){var r=it.createComment(av(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~ql(n).indexOf(xe.replacementClass))return Xs.replace(t);var l=new RegExp("".concat(xe.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var s=r[0].attributes.class.split(" ").reduce(function(d,o){return o===xe.replacementClass||o.match(l)?d.toSvg.push(o):d.toNode.push(o),d},{toNode:[],toSvg:[]});r[0].attributes.class=s.toSvg.join(" "),s.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",s.toNode.join(" "))}var u=r.map(function(d){return ds(d)}).join(`
761
+ `);n.setAttribute(pr,""),n.innerHTML=u}};function hu(e){e()}function wf(e,t){var n=typeof t=="function"?t:Zs;if(e.length===0)n();else{var r=hu;xe.mutateApproach===hm&&(r=zn.requestAnimationFrame||hu),r(function(){var l=iv(),s=rc.begin("mutate");e.map(l),s(),n()})}}var ic=!1;function _f(){ic=!0}function ol(){ic=!1}var lo=null;function fu(e){if(tu&&xe.observeMutations){var t=e.treeCallback,n=t===void 0?Zs:t,r=e.nodeCallback,l=r===void 0?Zs:r,s=e.pseudoElementsCallback,u=s===void 0?Zs:s,d=e.observeMutationsRoot,o=d===void 0?it:d;lo=new tu(function(p){if(!ic){var a=jn();oi(p).forEach(function(i){if(i.type==="childList"&&i.addedNodes.length>0&&!uu(i.addedNodes[0])&&(xe.searchPseudoElements&&u(i.target),n(i.target)),i.type==="attributes"&&i.target.parentNode&&xe.searchPseudoElements&&u(i.target.parentNode),i.type==="attributes"&&uu(i.target)&&~ym.indexOf(i.attributeName))if(i.attributeName==="class"&&nv(i.target)){var c=Do(ql(i.target)),h=c.prefix,f=c.iconName;i.target.setAttribute(Yl,h||a),f&&i.target.setAttribute(Zl,f)}else rv(i.target)&&l(i.target)})}}),kn&&lo.observe(o,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function lv(){lo&&lo.disconnect()}function cv(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,l){var s=l.split(":"),u=s[0],d=s.slice(1);return u&&d.length>0&&(r[u]=d.join(":").trim()),r},{})),n}function uv(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",l=Do(ql(e));return l.prefix||(l.prefix=jn()),t&&n&&(l.prefix=t,l.iconName=n),l.iconName&&l.prefix||(l.prefix&&r.length>0&&(l.iconName=Hm(l.prefix,e.innerText)||ec(l.prefix,Ja(e.innerText))),!l.iconName&&xe.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(l.iconName=e.firstChild.data)),l}function hv(e){var t=oi(e.attributes).reduce(function(l,s){return l.name!=="class"&&l.name!=="style"&&(l[s.name]=s.value),l},{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return xe.autoA11y&&(n?t["aria-labelledby"]="".concat(xe.replacementClass,"-title-").concat(r||Wi()):(t["aria-hidden"]="true",t.focusable="false")),t}function fv(){return{iconName:null,title:null,titleId:null,prefix:null,transform:rn,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function du(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=uv(e),r=n.iconName,l=n.prefix,s=n.rest,u=hv(e),d=tl("parseNodeAttributes",{},e),o=t.styleParser?cv(e):[];return be({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:l,transform:rn,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:s,styles:o,attributes:u}},d)}var dv=Yt.styles;function $f(e){var t=xe.autoReplaceSvg==="nest"?du(e,{styleParser:!1}):du(e);return~t.extra.classes.indexOf(rf)?Cn("generateLayersText",e,t):Cn("generateSvgReplacementMutation",e,t)}var Gn=new Set;Xl.map(function(e){Gn.add("fa-".concat(e))});Object.keys(Di[rt]).map(Gn.add.bind(Gn));Object.keys(Di[ut]).map(Gn.add.bind(Gn));Gn=hs(Gn);function pu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!kn)return Promise.resolve();var n=it.documentElement.classList,r=function(i){return n.add("".concat(nu,"-").concat(i))},l=function(i){return n.remove("".concat(nu,"-").concat(i))},s=xe.autoFetchSvg?Gn:Xl.map(function(a){return"fa-".concat(a)}).concat(Object.keys(dv));s.includes("fa")||s.push("fa");var u=[".".concat(rf,":not([").concat(pr,"])")].concat(s.map(function(a){return".".concat(a,":not([").concat(pr,"])")})).join(", ");if(u.length===0)return Promise.resolve();var d=[];try{d=oi(e.querySelectorAll(u))}catch{}if(d.length>0)r("pending"),l("complete");else return Promise.resolve();var o=rc.begin("onTree"),p=d.reduce(function(a,i){try{var c=$f(i);c&&a.push(c)}catch(h){nf||h.name==="MissingIcon"&&console.error(h)}return a},[]);return new Promise(function(a,i){Promise.all(p).then(function(c){wf(c,function(){r("active"),r("complete"),l("pending"),typeof t=="function"&&t(),o(),a()})}).catch(function(c){o(),i(c)})})}function pv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;$f(e).then(function(n){n&&wf([n],t)})}function gv(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:nl(t||{}),l=n.mask;return l&&(l=(l||{}).icon?l:nl(l||{})),e(r,be(be({},n),{},{mask:l}))}}var mv=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,l=r===void 0?rn:r,s=n.symbol,u=s===void 0?!1:s,d=n.mask,o=d===void 0?null:d,p=n.maskId,a=p===void 0?null:p,i=n.title,c=i===void 0?null:i,h=n.titleId,f=h===void 0?null:h,g=n.classes,m=g===void 0?[]:g,v=n.attributes,y=v===void 0?{}:v,k=n.styles,C=k===void 0?{}:k;if(t){var S=t.prefix,b=t.iconName,E=t.icon;return Fo(be({type:"icon"},t),function(){return gr("beforeDOMElementCreation",{iconDefinition:t,params:n}),xe.autoA11y&&(c?y["aria-labelledby"]="".concat(xe.replacementClass,"-title-").concat(f||Wi()):(y["aria-hidden"]="true",y.focusable="false")),nc({icons:{main:rl(E),mask:o?rl(o.icon):{found:!1,width:null,height:null,icon:{}}},prefix:S,iconName:b,transform:be(be({},rn),l),symbol:u,title:c,maskId:a,titleId:f,extra:{attributes:y,styles:C,classes:m}})})}},vv={mixout:function(){return{icon:gv(mv)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=pu,n.nodeCallback=pv,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,l=r===void 0?it:r,s=n.callback,u=s===void 0?function(){}:s;return pu(l,u)},t.generateSvgReplacementMutation=function(n,r){var l=r.iconName,s=r.title,u=r.titleId,d=r.prefix,o=r.transform,p=r.symbol,a=r.mask,i=r.maskId,c=r.extra;return new Promise(function(h,f){Promise.all([il(l,d),a.iconName?il(a.iconName,a.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(g){var m=Gl(g,2),v=m[0],y=m[1];h([n,nc({icons:{main:v,mask:y},prefix:d,iconName:l,transform:o,symbol:p,maskId:i,title:s,titleId:u,extra:c,watchable:!0})])}).catch(f)})},t.generateAbstractIcon=function(n){var r=n.children,l=n.attributes,s=n.main,u=n.transform,d=n.styles,o=Io(d);o.length>0&&(l.style=o);var p;return Ql(u)&&(p=Cn("generateAbstractTransformGrouping",{main:s,transform:u,containerWidth:s.width,iconWidth:s.width})),r.push(p||s.icon),{children:r,attributes:l}}}},yv={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=r.classes,s=l===void 0?[]:l;return Fo({type:"layer"},function(){gr("beforeDOMElementCreation",{assembler:n,params:r});var u=[];return n(function(d){Array.isArray(d)?d.map(function(o){u=u.concat(o.abstract)}):u=u.concat(d.abstract)}),[{tag:"span",attributes:{class:["".concat(xe.cssPrefix,"-layers")].concat(hs(s)).join(" ")},children:u}]})}}}},bv={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=r.title,s=l===void 0?null:l,u=r.classes,d=u===void 0?[]:u,o=r.attributes,p=o===void 0?{}:o,a=r.styles,i=a===void 0?{}:a;return Fo({type:"counter",content:n},function(){return gr("beforeDOMElementCreation",{content:n,params:r}),Qm({content:n.toString(),title:s,extra:{attributes:p,styles:i,classes:["".concat(xe.cssPrefix,"-layers-counter")].concat(hs(d))}})})}}}},wv={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=r.transform,s=l===void 0?rn:l,u=r.title,d=u===void 0?null:u,o=r.classes,p=o===void 0?[]:o,a=r.attributes,i=a===void 0?{}:a,c=r.styles,h=c===void 0?{}:c;return Fo({type:"text",content:n},function(){return gr("beforeDOMElementCreation",{content:n,params:r}),lu({content:n,transform:be(be({},rn),s),title:d,extra:{attributes:i,styles:h,classes:["".concat(xe.cssPrefix,"-layers-text")].concat(hs(p))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var l=r.title,s=r.transform,u=r.extra,d=null,o=null;if(Jh){var p=parseInt(getComputedStyle(n).fontSize,10),a=n.getBoundingClientRect();d=a.width/p,o=a.height/p}return xe.autoA11y&&!l&&(u.attributes["aria-hidden"]="true"),Promise.resolve([n,lu({content:n.innerHTML,width:d,height:o,transform:s,title:l,extra:u,watchable:!0})])}}},_v=new RegExp('"',"ug"),gu=[1105920,1112319];function $v(e){var t=e.replace(_v,""),n=Nm(t,0),r=n>=gu[0]&&n<=gu[1],l=t.length===2?t[0]===t[1]:!1;return{value:Ja(l?t[0]:t),isSecondary:r||l}}function mu(e,t){var n="".concat(um).concat(t.replace(":","-"));return new Promise(function(r,l){if(e.getAttribute(n)!==null)return r();var s=oi(e.children),u=s.filter(function(E){return E.getAttribute(Qa)===t})[0],d=zn.getComputedStyle(e,t),o=d.getPropertyValue("font-family").match(gm),p=d.getPropertyValue("font-weight"),a=d.getPropertyValue("content");if(u&&!o)return e.removeChild(u),r();if(o&&a!=="none"&&a!==""){var i=d.getPropertyValue("content"),c=~["Sharp"].indexOf(o[2])?ut:rt,h=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(o[2])?Fi[c][o[2].toLowerCase()]:mm[c][p],f=$v(i),g=f.value,m=f.isSecondary,v=o[0].startsWith("FontAwesome"),y=ec(h,g),k=y;if(v){var C=Um(g);C.iconName&&C.prefix&&(y=C.iconName,h=C.prefix)}if(y&&!m&&(!u||u.getAttribute(Yl)!==h||u.getAttribute(Zl)!==k)){e.setAttribute(n,k),u&&e.removeChild(u);var S=fv(),b=S.extra;b.attributes[Qa]=t,il(y,h).then(function(E){var L=nc(be(be({},S),{},{icons:{main:E,mask:tc()},prefix:h,iconName:k,extra:b,watchable:!0})),x=it.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(x,e.firstChild):e.appendChild(x),x.outerHTML=L.map(function(M){return ds(M)}).join(`
762
+ `),e.removeAttribute(n),r()}).catch(l)}else r()}else r()})}function Sv(e){return Promise.all([mu(e,"::before"),mu(e,"::after")])}function Cv(e){return e.parentNode!==document.head&&!~fm.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Qa)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function vu(e){if(kn)return new Promise(function(t,n){var r=oi(e.querySelectorAll("*")).filter(Cv).map(Sv),l=rc.begin("searchPseudoElements");_f(),Promise.all(r).then(function(){l(),ol(),t()}).catch(function(){l(),ol(),n()})})}var Av={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=vu,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,l=r===void 0?it:r;xe.searchPseudoElements&&vu(l)}}},yu=!1,kv={mixout:function(){return{dom:{unwatch:function(){_f(),yu=!0}}}},hooks:function(){return{bootstrap:function(){fu(tl("mutationObserverCallbacks",{}))},noAuto:function(){lv()},watch:function(n){var r=n.observeMutationsRoot;yu?ol():fu(tl("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},bu=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,l){var s=l.toLowerCase().split("-"),u=s[0],d=s.slice(1).join("-");if(u&&d==="h")return r.flipX=!0,r;if(u&&d==="v")return r.flipY=!0,r;if(d=parseFloat(d),isNaN(d))return r;switch(u){case"grow":r.size=r.size+d;break;case"shrink":r.size=r.size-d;break;case"left":r.x=r.x-d;break;case"right":r.x=r.x+d;break;case"up":r.y=r.y-d;break;case"down":r.y=r.y+d;break;case"rotate":r.rotate=r.rotate+d;break}return r},n)},xv={mixout:function(){return{parse:{transform:function(n){return bu(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var l=r.getAttribute("data-fa-transform");return l&&(n.transform=bu(l)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,l=n.transform,s=n.containerWidth,u=n.iconWidth,d={transform:"translate(".concat(s/2," 256)")},o="translate(".concat(l.x*32,", ").concat(l.y*32,") "),p="scale(".concat(l.size/16*(l.flipX?-1:1),", ").concat(l.size/16*(l.flipY?-1:1),") "),a="rotate(".concat(l.rotate," 0 0)"),i={transform:"".concat(o," ").concat(p," ").concat(a)},c={transform:"translate(".concat(u/2*-1," -256)")},h={outer:d,inner:i,path:c};return{tag:"g",attributes:be({},h.outer),children:[{tag:"g",attributes:be({},h.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:be(be({},r.icon.attributes),h.path)}]}]}}}},xa={x:0,y:0,width:"100%",height:"100%"};function wu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function Ev(e){return e.tag==="g"?e.children:[e]}var Rv={hooks:function(){return{parseNodeAttributes:function(n,r){var l=r.getAttribute("data-fa-mask"),s=l?Do(l.split(" ").map(function(u){return u.trim()})):tc();return s.prefix||(s.prefix=jn()),n.mask=s,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,l=n.attributes,s=n.main,u=n.mask,d=n.maskId,o=n.transform,p=s.width,a=s.icon,i=u.width,c=u.icon,h=xm({transform:o,containerWidth:i,iconWidth:p}),f={tag:"rect",attributes:be(be({},xa),{},{fill:"white"})},g=a.children?{children:a.children.map(wu)}:{},m={tag:"g",attributes:be({},h.inner),children:[wu(be({tag:a.tag,attributes:be(be({},a.attributes),h.path)},g))]},v={tag:"g",attributes:be({},h.outer),children:[m]},y="mask-".concat(d||Wi()),k="clip-".concat(d||Wi()),C={tag:"mask",attributes:be(be({},xa),{},{id:y,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[f,v]},S={tag:"defs",children:[{tag:"clipPath",attributes:{id:k},children:Ev(c)},C]};return r.push(S,{tag:"rect",attributes:be({fill:"currentColor","clip-path":"url(#".concat(k,")"),mask:"url(#".concat(y,")")},xa)}),{children:r,attributes:l}}}},Tv={provides:function(t){var n=!1;zn.matchMedia&&(n=zn.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],l={fill:"currentColor"},s={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:be(be({},l),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var u=be(be({},s),{},{attributeName:"opacity"}),d={tag:"circle",attributes:be(be({},l),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||d.children.push({tag:"animate",attributes:be(be({},s),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:be(be({},u),{},{values:"1;0;1;1;0;1;"})}),r.push(d),r.push({tag:"path",attributes:be(be({},l),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:be(be({},u),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:be(be({},l),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:be(be({},u),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},Lv={hooks:function(){return{parseNodeAttributes:function(n,r){var l=r.getAttribute("data-fa-symbol"),s=l===null?!1:l===""?!0:l;return n.symbol=s,n}}}},Mv=[Tm,vv,yv,bv,wv,Av,kv,xv,Rv,Tv,Lv];jm(Mv,{mixoutsTo:Wt});Wt.noAuto;Wt.config;var Ov=Wt.library;Wt.dom;var al=Wt.parse;Wt.findIconDefinition;Wt.toHtml;var Iv=Wt.icon;Wt.layer;Wt.text;Wt.counter;var Nv={prefix:"fas",iconName:"lightbulb",icon:[384,512,[128161],"f0eb","M272 384c9.6-31.9 29.5-59.1 49.2-86.2l0 0c5.2-7.1 10.4-14.2 15.4-21.4c19.8-28.5 31.4-63 31.4-100.3C368 78.8 289.2 0 192 0S16 78.8 16 176c0 37.3 11.6 71.9 31.4 100.3c5 7.2 10.2 14.3 15.4 21.4l0 0c19.8 27.1 39.7 54.4 49.2 86.2H272zM192 512c44.2 0 80-35.8 80-80V416H112v16c0 44.2 35.8 80 80 80zM112 176c0 8.8-7.2 16-16 16s-16-7.2-16-16c0-61.9 50.1-112 112-112c8.8 0 16 7.2 16 16s-7.2 16-16 16c-44.2 0-80 35.8-80 80z"]},Dv={prefix:"fas",iconName:"pen-to-square",icon:[512,512,["edit"],"f044","M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160V416c0 53 43 96 96 96H352c53 0 96-43 96-96V320c0-17.7-14.3-32-32-32s-32 14.3-32 32v96c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H96z"]},Fv=Dv,Pv={prefix:"fas",iconName:"question",icon:[320,512,[10067,10068,61736],"3f","M80 160c0-35.3 28.7-64 64-64h32c35.3 0 64 28.7 64 64v3.6c0 21.8-11.1 42.1-29.4 53.8l-42.2 27.1c-25.2 16.2-40.4 44.1-40.4 74V320c0 17.7 14.3 32 32 32s32-14.3 32-32v-1.4c0-8.2 4.2-15.8 11-20.2l42.2-27.1c36.6-23.6 58.8-64.1 58.8-107.7V160c0-70.7-57.3-128-128-128H144C73.3 32 16 89.3 16 160c0 17.7 14.3 32 32 32s32-14.3 32-32zm80 320a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]},Bv={prefix:"fas",iconName:"arrow-right",icon:[448,512,[8594],"f061","M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"]},Wv={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},Hv=Wv,Uv={prefix:"fas",iconName:"ticket",icon:[576,512,[127903],"f145","M64 64C28.7 64 0 92.7 0 128v64c0 8.8 7.4 15.7 15.7 18.6C34.5 217.1 48 235 48 256s-13.5 38.9-32.3 45.4C7.4 304.3 0 311.2 0 320v64c0 35.3 28.7 64 64 64H512c35.3 0 64-28.7 64-64V320c0-8.8-7.4-15.7-15.7-18.6C541.5 294.9 528 277 528 256s13.5-38.9 32.3-45.4c8.3-2.9 15.7-9.8 15.7-18.6V128c0-35.3-28.7-64-64-64H64zm64 112l0 160c0 8.8 7.2 16 16 16H432c8.8 0 16-7.2 16-16V176c0-8.8-7.2-16-16-16H144c-8.8 0-16 7.2-16 16zM96 160c0-17.7 14.3-32 32-32H448c17.7 0 32 14.3 32 32V352c0 17.7-14.3 32-32 32H128c-17.7 0-32-14.3-32-32V160z"]},Vv={prefix:"fas",iconName:"bell",icon:[448,512,[128276,61602],"f0f3","M224 0c-17.7 0-32 14.3-32 32V51.2C119 66 64 130.6 64 208v18.8c0 47-17.3 92.4-48.5 127.6l-7.4 8.3c-8.4 9.4-10.4 22.9-5.3 34.4S19.4 416 32 416H416c12.6 0 24-7.4 29.2-18.9s3.1-25-5.3-34.4l-7.4-8.3C401.3 319.2 384 273.9 384 226.8V208c0-77.4-55-142-128-156.8V32c0-17.7-14.3-32-32-32zm45.3 493.3c12-12 18.7-28.3 18.7-45.3H224 160c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7z"]},zv={prefix:"fas",iconName:"file",icon:[384,512,[128196,128459,61462],"f15b","M0 64C0 28.7 28.7 0 64 0H224V128c0 17.7 14.3 32 32 32H384V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V64zm384 64H256V0L384 128z"]},Sf={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},jv=Sf,Gv={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"]},Kv={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},Yv=Kv,Zv={prefix:"fas",iconName:"spinner",icon:[512,512,[],"f110","M304 48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zm0 416a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM48 304a48 48 0 1 0 0-96 48 48 0 1 0 0 96zm464-48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM142.9 437A48 48 0 1 0 75 369.1 48 48 0 1 0 142.9 437zm0-294.2A48 48 0 1 0 75 75a48 48 0 1 0 67.9 67.9zM369.1 437A48 48 0 1 0 437 369.1 48 48 0 1 0 369.1 437z"]},Xv={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},qv={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24V296c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},Qv={prefix:"fas",iconName:"exclamation",icon:[64,512,[10069,10071,61738],"21","M64 64c0-17.7-14.3-32-32-32S0 46.3 0 64V320c0 17.7 14.3 32 32 32s32-14.3 32-32V64zM32 480a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]},Jv={prefix:"fas",iconName:"barcode",icon:[512,512,[],"f02a","M24 32C10.7 32 0 42.7 0 56V456c0 13.3 10.7 24 24 24H40c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24H24zm88 0c-8.8 0-16 7.2-16 16V464c0 8.8 7.2 16 16 16s16-7.2 16-16V48c0-8.8-7.2-16-16-16zm72 0c-13.3 0-24 10.7-24 24V456c0 13.3 10.7 24 24 24h16c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24H184zm96 0c-13.3 0-24 10.7-24 24V456c0 13.3 10.7 24 24 24h16c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24H280zM448 56V456c0 13.3 10.7 24 24 24h16c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24H472c-13.3 0-24 10.7-24 24zm-64-8V464c0 8.8 7.2 16 16 16s16-7.2 16-16V48c0-8.8-7.2-16-16-16s-16 7.2-16 16z"]};/**
763
+ * @vue/shared v3.4.21
764
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
765
+ * @license MIT
766
+ **/function Po(e,t){const n=new Set(e.split(","));return t?r=>n.has(r.toLowerCase()):r=>n.has(r)}const Ze={},Br=[],Mt=()=>{},ey=()=>!1,ps=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),sc=e=>e.startsWith("onUpdate:"),ot=Object.assign,oc=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ty=Object.prototype.hasOwnProperty,Ve=(e,t)=>ty.call(e,t),_e=Array.isArray,Wr=e=>ai(e)==="[object Map]",kr=e=>ai(e)==="[object Set]",_u=e=>ai(e)==="[object Date]",ny=e=>ai(e)==="[object RegExp]",Ie=e=>typeof e=="function",at=e=>typeof e=="string",Kn=e=>typeof e=="symbol",qe=e=>e!==null&&typeof e=="object",ac=e=>(qe(e)||Ie(e))&&Ie(e.then)&&Ie(e.catch),Cf=Object.prototype.toString,ai=e=>Cf.call(e),ry=e=>ai(e).slice(8,-1),Af=e=>ai(e)==="[object Object]",lc=e=>at(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Hr=Po(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Bo=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},iy=/-(\w)/g,xt=Bo(e=>e.replace(iy,(t,n)=>n?n.toUpperCase():"")),sy=/\B([A-Z])/g,Pt=Bo(e=>e.replace(sy,"-$1").toLowerCase()),li=Bo(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ei=Bo(e=>e?`on${li(e)}`:""),Qt=(e,t)=>!Object.is(e,t),Ur=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},co=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Hi=e=>{const t=parseFloat(e);return isNaN(t)?e:t},uo=e=>{const t=at(e)?Number(e):NaN;return isNaN(t)?e:t};let $u;const kf=()=>$u||($u=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),oy="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error",ay=Po(oy);function gs(e){if(_e(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],l=at(r)?hy(r):gs(r);if(l)for(const s in l)t[s]=l[s]}return t}else if(at(e)||qe(e))return e}const ly=/;(?![^(]*\))/g,cy=/:([^]+)/,uy=/\/\*[^]*?\*\//g;function hy(e){const t={};return e.replace(uy,"").split(ly).forEach(n=>{if(n){const r=n.split(cy);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function ci(e){let t="";if(at(e))t=e;else if(_e(e))for(let n=0;n<e.length;n++){const r=ci(e[n]);r&&(t+=r+" ")}else if(qe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function fy(e){if(!e)return null;let{class:t,style:n}=e;return t&&!at(t)&&(e.class=ci(t)),n&&(e.style=gs(n)),e}const dy="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",py=Po(dy);function xf(e){return!!e||e===""}function gy(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Yn(e[r],t[r]);return n}function Yn(e,t){if(e===t)return!0;let n=_u(e),r=_u(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Kn(e),r=Kn(t),n||r)return e===t;if(n=_e(e),r=_e(t),n||r)return n&&r?gy(e,t):!1;if(n=qe(e),r=qe(t),n||r){if(!n||!r)return!1;const l=Object.keys(e).length,s=Object.keys(t).length;if(l!==s)return!1;for(const u in e){const d=e.hasOwnProperty(u),o=t.hasOwnProperty(u);if(d&&!o||!d&&o||!Yn(e[u],t[u]))return!1}}return String(e)===String(t)}function Wo(e,t){return e.findIndex(n=>Yn(n,t))}const $e=e=>at(e)?e:e==null?"":_e(e)||qe(e)&&(e.toString===Cf||!Ie(e.toString))?JSON.stringify(e,Ef,2):String(e),Ef=(e,t)=>t&&t.__v_isRef?Ef(e,t.value):Wr(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,l],s)=>(n[Ea(r,s)+" =>"]=l,n),{})}:kr(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Ea(n))}:Kn(t)?Ea(t):qe(t)&&!_e(t)&&!Af(t)?String(t):t,Ea=(e,t="")=>{var n;return Kn(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
767
+ * @vue/reactivity v3.4.21
768
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
769
+ * @license MIT
770
+ **/let Dt;class cc{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Dt,!t&&Dt&&(this.index=(Dt.scopes||(Dt.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Dt;try{return Dt=this,t()}finally{Dt=n}}}on(){Dt=this}off(){Dt=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const l=this.parent.scopes.pop();l&&l!==this&&(this.parent.scopes[this.index]=l,l.index=this.index)}this.parent=void 0,this._active=!1}}}function Rf(e){return new cc(e)}function Tf(e,t=Dt){t&&t.active&&t.effects.push(e)}function uc(){return Dt}function Lf(e){Dt&&Dt.cleanups.push(e)}let lr;class Zr{constructor(t,n,r,l){this.fn=t,this.trigger=n,this.scheduler=r,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,Tf(this,l)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,xr();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(my(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Er()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Vn,n=lr;try{return Vn=!0,lr=this,this._runnings++,Su(this),this.fn()}finally{Cu(this),this._runnings--,lr=n,Vn=t}}stop(){var t;this.active&&(Su(this),Cu(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function my(e){return e.value}function Su(e){e._trackId++,e._depsLength=0}function Cu(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Mf(e.deps[t],e);e.deps.length=e._depsLength}}function Mf(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}function vy(e,t){e.effect instanceof Zr&&(e=e.effect.fn);const n=new Zr(e,Mt,()=>{n.dirty&&n.run()});t&&(ot(n,t),t.scope&&Tf(n,t.scope)),(!t||!t.lazy)&&n.run();const r=n.run.bind(n);return r.effect=n,r}function yy(e){e.effect.stop()}let Vn=!0,ll=0;const Of=[];function xr(){Of.push(Vn),Vn=!1}function Er(){const e=Of.pop();Vn=e===void 0?!0:e}function hc(){ll++}function fc(){for(ll--;!ll&&cl.length;)cl.shift()()}function If(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const r=e.deps[e._depsLength];r!==t?(r&&Mf(r,e),e.deps[e._depsLength++]=t):e._depsLength++}}const cl=[];function Nf(e,t,n){hc();for(const r of e.keys()){let l;r._dirtyLevel<t&&(l??(l=e.get(r)===r._trackId))&&(r._shouldSchedule||(r._shouldSchedule=r._dirtyLevel===0),r._dirtyLevel=t),r._shouldSchedule&&(l??(l=e.get(r)===r._trackId))&&(r.trigger(),(!r._runnings||r.allowRecurse)&&r._dirtyLevel!==2&&(r._shouldSchedule=!1,r.scheduler&&cl.push(r.scheduler)))}fc()}const Df=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},ho=new WeakMap,cr=Symbol(""),ul=Symbol("");function It(e,t,n){if(Vn&&lr){let r=ho.get(e);r||ho.set(e,r=new Map);let l=r.get(n);l||r.set(n,l=Df(()=>r.delete(n))),If(lr,l)}}function vn(e,t,n,r,l,s){const u=ho.get(e);if(!u)return;let d=[];if(t==="clear")d=[...u.values()];else if(n==="length"&&_e(e)){const o=Number(r);u.forEach((p,a)=>{(a==="length"||!Kn(a)&&a>=o)&&d.push(p)})}else switch(n!==void 0&&d.push(u.get(n)),t){case"add":_e(e)?lc(n)&&d.push(u.get("length")):(d.push(u.get(cr)),Wr(e)&&d.push(u.get(ul)));break;case"delete":_e(e)||(d.push(u.get(cr)),Wr(e)&&d.push(u.get(ul)));break;case"set":Wr(e)&&d.push(u.get(cr));break}hc();for(const o of d)o&&Nf(o,4);fc()}function by(e,t){var n;return(n=ho.get(e))==null?void 0:n.get(t)}const wy=Po("__proto__,__v_isRef,__isVue"),Ff=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Kn)),Au=_y();function _y(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=We(this);for(let s=0,u=this.length;s<u;s++)It(r,"get",s+"");const l=r[t](...n);return l===-1||l===!1?r[t](...n.map(We)):l}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){xr(),hc();const r=We(this)[t].apply(this,n);return fc(),Er(),r}}),e}function $y(e){const t=We(this);return It(t,"has",e),t.hasOwnProperty(e)}class Pf{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){const l=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!l;if(n==="__v_isReadonly")return l;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(l?s?zf:Vf:s?Uf:Hf).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const u=_e(t);if(!l){if(u&&Ve(Au,n))return Reflect.get(Au,n,r);if(n==="hasOwnProperty")return $y}const d=Reflect.get(t,n,r);return(Kn(n)?Ff.has(n):wy(n))||(l||It(t,"get",n),s)?d:yt(d)?u&&lc(n)?d:d.value:qe(d)?l?Vo(d):ui(d):d}}class Bf extends Pf{constructor(t=!1){super(!1,t)}set(t,n,r,l){let s=t[n];if(!this._isShallow){const o=mr(s);if(!Ui(r)&&!mr(r)&&(s=We(s),r=We(r)),!_e(t)&&yt(s)&&!yt(r))return o?!1:(s.value=r,!0)}const u=_e(t)&&lc(n)?Number(n)<t.length:Ve(t,n),d=Reflect.set(t,n,r,l);return t===We(l)&&(u?Qt(r,s)&&vn(t,"set",n,r):vn(t,"add",n,r)),d}deleteProperty(t,n){const r=Ve(t,n);t[n];const l=Reflect.deleteProperty(t,n);return l&&r&&vn(t,"delete",n,void 0),l}has(t,n){const r=Reflect.has(t,n);return(!Kn(n)||!Ff.has(n))&&It(t,"has",n),r}ownKeys(t){return It(t,"iterate",_e(t)?"length":cr),Reflect.ownKeys(t)}}class Wf extends Pf{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Sy=new Bf,Cy=new Wf,Ay=new Bf(!0),ky=new Wf(!0),dc=e=>e,Ho=e=>Reflect.getPrototypeOf(e);function Ds(e,t,n=!1,r=!1){e=e.__v_raw;const l=We(e),s=We(t);n||(Qt(t,s)&&It(l,"get",t),It(l,"get",s));const{has:u}=Ho(l),d=r?dc:n?mc:Vi;if(u.call(l,t))return d(e.get(t));if(u.call(l,s))return d(e.get(s));e!==l&&e.get(t)}function Fs(e,t=!1){const n=this.__v_raw,r=We(n),l=We(e);return t||(Qt(e,l)&&It(r,"has",e),It(r,"has",l)),e===l?n.has(e):n.has(e)||n.has(l)}function Ps(e,t=!1){return e=e.__v_raw,!t&&It(We(e),"iterate",cr),Reflect.get(e,"size",e)}function ku(e){e=We(e);const t=We(this);return Ho(t).has.call(t,e)||(t.add(e),vn(t,"add",e,e)),this}function xu(e,t){t=We(t);const n=We(this),{has:r,get:l}=Ho(n);let s=r.call(n,e);s||(e=We(e),s=r.call(n,e));const u=l.call(n,e);return n.set(e,t),s?Qt(t,u)&&vn(n,"set",e,t):vn(n,"add",e,t),this}function Eu(e){const t=We(this),{has:n,get:r}=Ho(t);let l=n.call(t,e);l||(e=We(e),l=n.call(t,e)),r&&r.call(t,e);const s=t.delete(e);return l&&vn(t,"delete",e,void 0),s}function Ru(){const e=We(this),t=e.size!==0,n=e.clear();return t&&vn(e,"clear",void 0,void 0),n}function Bs(e,t){return function(r,l){const s=this,u=s.__v_raw,d=We(u),o=t?dc:e?mc:Vi;return!e&&It(d,"iterate",cr),u.forEach((p,a)=>r.call(l,o(p),o(a),s))}}function Ws(e,t,n){return function(...r){const l=this.__v_raw,s=We(l),u=Wr(s),d=e==="entries"||e===Symbol.iterator&&u,o=e==="keys"&&u,p=l[e](...r),a=n?dc:t?mc:Vi;return!t&&It(s,"iterate",o?ul:cr),{next(){const{value:i,done:c}=p.next();return c?{value:i,done:c}:{value:d?[a(i[0]),a(i[1])]:a(i),done:c}},[Symbol.iterator](){return this}}}}function Ln(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function xy(){const e={get(s){return Ds(this,s)},get size(){return Ps(this)},has:Fs,add:ku,set:xu,delete:Eu,clear:Ru,forEach:Bs(!1,!1)},t={get(s){return Ds(this,s,!1,!0)},get size(){return Ps(this)},has:Fs,add:ku,set:xu,delete:Eu,clear:Ru,forEach:Bs(!1,!0)},n={get(s){return Ds(this,s,!0)},get size(){return Ps(this,!0)},has(s){return Fs.call(this,s,!0)},add:Ln("add"),set:Ln("set"),delete:Ln("delete"),clear:Ln("clear"),forEach:Bs(!0,!1)},r={get(s){return Ds(this,s,!0,!0)},get size(){return Ps(this,!0)},has(s){return Fs.call(this,s,!0)},add:Ln("add"),set:Ln("set"),delete:Ln("delete"),clear:Ln("clear"),forEach:Bs(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=Ws(s,!1,!1),n[s]=Ws(s,!0,!1),t[s]=Ws(s,!1,!0),r[s]=Ws(s,!0,!0)}),[e,n,t,r]}const[Ey,Ry,Ty,Ly]=xy();function Uo(e,t){const n=t?e?Ly:Ty:e?Ry:Ey;return(r,l,s)=>l==="__v_isReactive"?!e:l==="__v_isReadonly"?e:l==="__v_raw"?r:Reflect.get(Ve(n,l)&&l in r?n:r,l,s)}const My={get:Uo(!1,!1)},Oy={get:Uo(!1,!0)},Iy={get:Uo(!0,!1)},Ny={get:Uo(!0,!0)},Hf=new WeakMap,Uf=new WeakMap,Vf=new WeakMap,zf=new WeakMap;function Dy(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Fy(e){return e.__v_skip||!Object.isExtensible(e)?0:Dy(ry(e))}function ui(e){return mr(e)?e:zo(e,!1,Sy,My,Hf)}function pc(e){return zo(e,!1,Ay,Oy,Uf)}function Vo(e){return zo(e,!0,Cy,Iy,Vf)}function Py(e){return zo(e,!0,ky,Ny,zf)}function zo(e,t,n,r,l){if(!qe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=l.get(e);if(s)return s;const u=Fy(e);if(u===0)return e;const d=new Proxy(e,u===2?r:n);return l.set(e,d),d}function ur(e){return mr(e)?ur(e.__v_raw):!!(e&&e.__v_isReactive)}function mr(e){return!!(e&&e.__v_isReadonly)}function Ui(e){return!!(e&&e.__v_isShallow)}function gc(e){return ur(e)||mr(e)}function We(e){const t=e&&e.__v_raw;return t?We(t):e}function jo(e){return Object.isExtensible(e)&&co(e,"__v_skip",!0),e}const Vi=e=>qe(e)?ui(e):e,mc=e=>qe(e)?Vo(e):e;class jf{constructor(t,n,r,l){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Zr(()=>t(this._value),()=>Vr(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!l,this.__v_isReadonly=r}get value(){const t=We(this);return(!t._cacheable||t.effect.dirty)&&Qt(t._value,t._value=t.effect.run())&&Vr(t,4),vc(t),t.effect._dirtyLevel>=2&&Vr(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function By(e,t,n=!1){let r,l;const s=Ie(e);return s?(r=e,l=Mt):(r=e.get,l=e.set),new jf(r,l,s||!l,n)}function vc(e){var t;Vn&&lr&&(e=We(e),If(lr,(t=e.dep)!=null?t:e.dep=Df(()=>e.dep=void 0,e instanceof jf?e:void 0)))}function Vr(e,t=4,n){e=We(e);const r=e.dep;r&&Nf(r,t)}function yt(e){return!!(e&&e.__v_isRef===!0)}function ze(e){return Kf(e,!1)}function Gf(e){return Kf(e,!0)}function Kf(e,t){return yt(e)?e:new Wy(e,t)}class Wy{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:We(t),this._value=n?t:Vi(t)}get value(){return vc(this),this._value}set value(t){const n=this.__v_isShallow||Ui(t)||mr(t);t=n?t:We(t),Qt(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Vi(t),Vr(this,4))}}function Hy(e){Vr(e,4)}function yn(e){return yt(e)?e.value:e}function Uy(e){return Ie(e)?e():yn(e)}const Vy={get:(e,t,n)=>yn(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const l=e[t];return yt(l)&&!yt(n)?(l.value=n,!0):Reflect.set(e,t,n,r)}};function yc(e){return ur(e)?e:new Proxy(e,Vy)}class zy{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>vc(this),()=>Vr(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function Go(e){return new zy(e)}function jy(e){const t=_e(e)?new Array(e.length):{};for(const n in e)t[n]=Yf(e,n);return t}class Gy{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return by(We(this._object),this._key)}}class Ky{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Ko(e,t,n){return yt(e)?e:Ie(e)?new Ky(e):qe(e)&&arguments.length>1?Yf(e,t,n):ze(e)}function Yf(e,t,n){const r=e[t];return yt(r)?r:new Gy(e,t,n)}const Yy={GET:"get",HAS:"has",ITERATE:"iterate"},Zy={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"};/**
771
+ * @vue/runtime-core v3.4.21
772
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
773
+ * @license MIT
774
+ **/function Xy(e,t){}const qy={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER"},Qy={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."};function bn(e,t,n,r){try{return r?e(...r):e()}catch(l){Rr(l,t,n)}}function Bt(e,t,n,r){if(Ie(e)){const s=bn(e,t,n,r);return s&&ac(s)&&s.catch(u=>{Rr(u,t,n)}),s}const l=[];for(let s=0;s<e.length;s++)l.push(Bt(e[s],t,n,r));return l}function Rr(e,t,n,r=!0){const l=t?t.vnode:null;if(t){let s=t.parent;const u=t.proxy,d=`https://vuejs.org/error-reference/#runtime-${n}`;for(;s;){const p=s.ec;if(p){for(let a=0;a<p.length;a++)if(p[a](e,u,d)===!1)return}s=s.parent}const o=t.appContext.config.errorHandler;if(o){bn(o,null,10,[e,u,d]);return}}Jy(e,n,l,r)}function Jy(e,t,n,r=!0){console.error(e)}let zi=!1,hl=!1;const _t=[];let nn=0;const zr=[];let Fn=null,ir=0;const Zf=Promise.resolve();let bc=null;function hi(e){const t=bc||Zf;return e?t.then(this?e.bind(this):e):t}function e0(e){let t=nn+1,n=_t.length;for(;t<n;){const r=t+n>>>1,l=_t[r],s=ji(l);s<e||s===e&&l.pre?t=r+1:n=r}return t}function Yo(e){(!_t.length||!_t.includes(e,zi&&e.allowRecurse?nn+1:nn))&&(e.id==null?_t.push(e):_t.splice(e0(e.id),0,e),Xf())}function Xf(){!zi&&!hl&&(hl=!0,bc=Zf.then(qf))}function t0(e){const t=_t.indexOf(e);t>nn&&_t.splice(t,1)}function fo(e){_e(e)?zr.push(...e):(!Fn||!Fn.includes(e,e.allowRecurse?ir+1:ir))&&zr.push(e),Xf()}function Tu(e,t,n=zi?nn+1:0){for(;n<_t.length;n++){const r=_t[n];if(r&&r.pre){if(e&&r.id!==e.uid)continue;_t.splice(n,1),n--,r()}}}function po(e){if(zr.length){const t=[...new Set(zr)].sort((n,r)=>ji(n)-ji(r));if(zr.length=0,Fn){Fn.push(...t);return}for(Fn=t,ir=0;ir<Fn.length;ir++)Fn[ir]();Fn=null,ir=0}}const ji=e=>e.id==null?1/0:e.id,n0=(e,t)=>{const n=ji(e)-ji(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function qf(e){hl=!1,zi=!0,_t.sort(n0);try{for(nn=0;nn<_t.length;nn++){const t=_t[nn];t&&t.active!==!1&&bn(t,null,14)}}finally{nn=0,_t.length=0,po(),zi=!1,bc=null,(_t.length||zr.length)&&qf()}}let Lr,Hs=[];function Qf(e,t){var n,r;Lr=e,Lr?(Lr.enabled=!0,Hs.forEach(({event:l,args:s})=>Lr.emit(l,...s)),Hs=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(s=>{Qf(s,t)}),setTimeout(()=>{Lr||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Hs=[])},3e3)):Hs=[]}function r0(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Ze;let l=n;const s=t.startsWith("update:"),u=s&&t.slice(7);if(u&&u in r){const a=`${u==="modelValue"?"model":u}Modifiers`,{number:i,trim:c}=r[a]||Ze;c&&(l=n.map(h=>at(h)?h.trim():h)),i&&(l=n.map(Hi))}let d,o=r[d=Ei(t)]||r[d=Ei(xt(t))];!o&&s&&(o=r[d=Ei(Pt(t))]),o&&Bt(o,e,6,l);const p=r[d+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[d])return;e.emitted[d]=!0,Bt(p,e,6,l)}}function Jf(e,t,n=!1){const r=t.emitsCache,l=r.get(e);if(l!==void 0)return l;const s=e.emits;let u={},d=!1;if(!Ie(e)){const o=p=>{const a=Jf(p,t,!0);a&&(d=!0,ot(u,a))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return!s&&!d?(qe(e)&&r.set(e,null),null):(_e(s)?s.forEach(o=>u[o]=null):ot(u,s),qe(e)&&r.set(e,u),u)}function Zo(e,t){return!e||!ps(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ve(e,t[0].toLowerCase()+t.slice(1))||Ve(e,Pt(t))||Ve(e,t))}let ht=null,Xo=null;function Gi(e){const t=ht;return ht=e,Xo=e&&e.type.__scopeId||null,t}function qo(e){Xo=e}function Qo(){Xo=null}const i0=e=>Je;function Je(e,t=ht,n){if(!t||e._n)return e;const r=(...l)=>{r._d&&bl(-1);const s=Gi(t);let u;try{u=e(...l)}finally{Gi(s),r._d&&bl(1)}return u};return r._n=!0,r._c=!0,r._d=!0,r}function qs(e){const{type:t,vnode:n,proxy:r,withProxy:l,props:s,propsOptions:[u],slots:d,attrs:o,emit:p,render:a,renderCache:i,data:c,setupState:h,ctx:f,inheritAttrs:g}=e;let m,v;const y=Gi(e);try{if(n.shapeFlag&4){const C=l||r,S=C;m=Ft(a.call(S,C,i,s,h,c,f)),v=o}else{const C=t;m=Ft(C.length>1?C(s,{attrs:o,slots:d,emit:p}):C(s,null)),v=t.props?o:o0(o)}}catch(C){Mi.length=0,Rr(C,e,1),m=oe($t)}let k=m;if(v&&g!==!1){const C=Object.keys(v),{shapeFlag:S}=k;C.length&&S&7&&(u&&C.some(sc)&&(v=a0(v,u)),k=an(k,v))}return n.dirs&&(k=an(k),k.dirs=k.dirs?k.dirs.concat(n.dirs):n.dirs),n.transition&&(k.transition=n.transition),m=k,Gi(y),m}function s0(e,t=!0){let n;for(let r=0;r<e.length;r++){const l=e[r];if(Zn(l)){if(l.type!==$t||l.children==="v-if"){if(n)return;n=l}}else return}return n}const o0=e=>{let t;for(const n in e)(n==="class"||n==="style"||ps(n))&&((t||(t={}))[n]=e[n]);return t},a0=(e,t)=>{const n={};for(const r in e)(!sc(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function l0(e,t,n){const{props:r,children:l,component:s}=e,{props:u,children:d,patchFlag:o}=t,p=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&o>=0){if(o&1024)return!0;if(o&16)return r?Lu(r,u,p):!!u;if(o&8){const a=t.dynamicProps;for(let i=0;i<a.length;i++){const c=a[i];if(u[c]!==r[c]&&!Zo(p,c))return!0}}}else return(l||d)&&(!d||!d.$stable)?!0:r===u?!1:r?u?Lu(r,u,p):!0:!!u;return!1}function Lu(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let l=0;l<r.length;l++){const s=r[l];if(t[s]!==e[s]&&!Zo(n,s))return!0}return!1}function wc({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 _c="components",c0="directives";function re(e,t){return $c(_c,e,!0,t)||e}const ed=Symbol.for("v-ndc");function u0(e){return at(e)?$c(_c,e,!1)||e:e||ed}function h0(e){return $c(c0,e)}function $c(e,t,n=!0,r=!1){const l=ht||ft;if(l){const s=l.type;if(e===_c){const d=Cl(s,!1);if(d&&(d===t||d===xt(t)||d===li(xt(t))))return s}const u=Mu(l[e]||s[e],t)||Mu(l.appContext[e],t);return!u&&r?s:u}}function Mu(e,t){return e&&(e[t]||e[xt(t)]||e[li(xt(t))])}const td=e=>e.__isSuspense;let fl=0;const f0={name:"Suspense",__isSuspense:!0,process(e,t,n,r,l,s,u,d,o,p){if(e==null)p0(t,n,r,l,s,u,d,o,p);else{if(s&&s.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}g0(e,t,n,r,l,u,d,o,p)}},hydrate:m0,create:Sc,normalize:v0},d0=f0;function Ki(e,t){const n=e.props&&e.props[t];Ie(n)&&n()}function p0(e,t,n,r,l,s,u,d,o){const{p,o:{createElement:a}}=o,i=a("div"),c=e.suspense=Sc(e,l,r,t,i,n,s,u,d,o);p(null,c.pendingBranch=e.ssContent,i,null,r,c,s,u),c.deps>0?(Ki(e,"onPending"),Ki(e,"onFallback"),p(null,e.ssFallback,t,n,r,null,s,u),jr(c,e.ssFallback)):c.resolve(!1,!0)}function g0(e,t,n,r,l,s,u,d,{p:o,um:p,o:{createElement:a}}){const i=t.suspense=e.suspense;i.vnode=t,t.el=e.el;const c=t.ssContent,h=t.ssFallback,{activeBranch:f,pendingBranch:g,isInFallback:m,isHydrating:v}=i;if(g)i.pendingBranch=c,Kt(c,g)?(o(g,c,i.hiddenContainer,null,l,i,s,u,d),i.deps<=0?i.resolve():m&&(v||(o(f,h,n,r,l,null,s,u,d),jr(i,h)))):(i.pendingId=fl++,v?(i.isHydrating=!1,i.activeBranch=g):p(g,l,i),i.deps=0,i.effects.length=0,i.hiddenContainer=a("div"),m?(o(null,c,i.hiddenContainer,null,l,i,s,u,d),i.deps<=0?i.resolve():(o(f,h,n,r,l,null,s,u,d),jr(i,h))):f&&Kt(c,f)?(o(f,c,n,r,l,i,s,u,d),i.resolve(!0)):(o(null,c,i.hiddenContainer,null,l,i,s,u,d),i.deps<=0&&i.resolve()));else if(f&&Kt(c,f))o(f,c,n,r,l,i,s,u,d),jr(i,c);else if(Ki(t,"onPending"),i.pendingBranch=c,c.shapeFlag&512?i.pendingId=c.component.suspenseId:i.pendingId=fl++,o(null,c,i.hiddenContainer,null,l,i,s,u,d),i.deps<=0)i.resolve();else{const{timeout:y,pendingId:k}=i;y>0?setTimeout(()=>{i.pendingId===k&&i.fallback(h)},y):y===0&&i.fallback(h)}}function Sc(e,t,n,r,l,s,u,d,o,p,a=!1){const{p:i,m:c,um:h,n:f,o:{parentNode:g,remove:m}}=p;let v;const y=y0(e);y&&t!=null&&t.pendingBranch&&(v=t.pendingId,t.deps++);const k=e.props?uo(e.props.timeout):void 0,C=s,S={vnode:e,parent:t,parentComponent:n,namespace:u,container:r,hiddenContainer:l,deps:0,pendingId:fl++,timeout:typeof k=="number"?k:-1,activeBranch:null,pendingBranch:null,isInFallback:!a,isHydrating:a,isUnmounted:!1,effects:[],resolve(b=!1,E=!1){const{vnode:L,activeBranch:x,pendingBranch:M,pendingId:_,effects:A,parentComponent:$,container:w}=S;let R=!1;S.isHydrating?S.isHydrating=!1:b||(R=x&&M.transition&&M.transition.mode==="out-in",R&&(x.transition.afterLeave=()=>{_===S.pendingId&&(c(M,w,s===C?f(x):s,0),fo(A))}),x&&(g(x.el)!==S.hiddenContainer&&(s=f(x)),h(x,$,S,!0)),R||c(M,w,s,0)),jr(S,M),S.pendingBranch=null,S.isInFallback=!1;let T=S.parent,O=!1;for(;T;){if(T.pendingBranch){T.effects.push(...A),O=!0;break}T=T.parent}!O&&!R&&fo(A),S.effects=[],y&&t&&t.pendingBranch&&v===t.pendingId&&(t.deps--,t.deps===0&&!E&&t.resolve()),Ki(L,"onResolve")},fallback(b){if(!S.pendingBranch)return;const{vnode:E,activeBranch:L,parentComponent:x,container:M,namespace:_}=S;Ki(E,"onFallback");const A=f(L),$=()=>{S.isInFallback&&(i(null,b,M,A,x,null,_,d,o),jr(S,b))},w=b.transition&&b.transition.mode==="out-in";w&&(L.transition.afterLeave=$),S.isInFallback=!0,h(L,x,null,!0),w||$()},move(b,E,L){S.activeBranch&&c(S.activeBranch,b,E,L),S.container=b},next(){return S.activeBranch&&f(S.activeBranch)},registerDep(b,E){const L=!!S.pendingBranch;L&&S.deps++;const x=b.vnode.el;b.asyncDep.catch(M=>{Rr(M,b,0)}).then(M=>{if(b.isUnmounted||S.isUnmounted||S.pendingId!==b.suspenseId)return;b.asyncResolved=!0;const{vnode:_}=b;$l(b,M,!1),x&&(_.el=x);const A=!x&&b.subTree.el;E(b,_,g(x||b.subTree.el),x?null:f(b.subTree),S,u,o),A&&m(A),wc(b,_.el),L&&--S.deps===0&&S.resolve()})},unmount(b,E){S.isUnmounted=!0,S.activeBranch&&h(S.activeBranch,n,b,E),S.pendingBranch&&h(S.pendingBranch,n,b,E)}};return S}function m0(e,t,n,r,l,s,u,d,o){const p=t.suspense=Sc(t,r,n,e.parentNode,document.createElement("div"),null,l,s,u,d,!0),a=o(e,p.pendingBranch=t.ssContent,n,p,s,u);return p.deps===0&&p.resolve(!1,!0),a}function v0(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Ou(r?n.default:n),e.ssFallback=r?Ou(n.fallback):oe($t)}function Ou(e){let t;if(Ie(e)){const n=br&&e._c;n&&(e._d=!1,Z()),e=e(),n&&(e._d=!0,t=Ot,Nd())}return _e(e)&&(e=s0(e)),e=Ft(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function nd(e,t){t&&t.pendingBranch?_e(e)?t.effects.push(...e):t.effects.push(e):fo(e)}function jr(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let l=t.el;for(;!l&&t.component;)t=t.component.subTree,l=t.el;n.el=l,r&&r.subTree===n&&(r.vnode.el=l,wc(r,l))}function y0(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}const rd=Symbol.for("v-scx"),id=()=>Vt(rd);function sd(e,t){return ms(e,null,t)}function od(e,t){return ms(e,null,{flush:"post"})}function ad(e,t){return ms(e,null,{flush:"sync"})}const Us={};function st(e,t,n){return ms(e,t,n)}function ms(e,t,{immediate:n,deep:r,flush:l,once:s,onTrack:u,onTrigger:d}=Ze){if(t&&s){const b=t;t=(...E)=>{b(...E),S()}}const o=ft,p=b=>r===!0?b:ar(b,r===!1?1:void 0);let a,i=!1,c=!1;if(yt(e)?(a=()=>e.value,i=Ui(e)):ur(e)?(a=()=>p(e),i=!0):_e(e)?(c=!0,i=e.some(b=>ur(b)||Ui(b)),a=()=>e.map(b=>{if(yt(b))return b.value;if(ur(b))return p(b);if(Ie(b))return bn(b,o,2)})):Ie(e)?t?a=()=>bn(e,o,2):a=()=>(h&&h(),Bt(e,o,3,[f])):a=Mt,t&&r){const b=a;a=()=>ar(b())}let h,f=b=>{h=k.onStop=()=>{bn(b,o,4),h=k.onStop=void 0}},g;if(ys)if(f=Mt,t?n&&Bt(t,o,3,[a(),c?[]:void 0,f]):a(),l==="sync"){const b=id();g=b.__watcherHandles||(b.__watcherHandles=[])}else return Mt;let m=c?new Array(e.length).fill(Us):Us;const v=()=>{if(!(!k.active||!k.dirty))if(t){const b=k.run();(r||i||(c?b.some((E,L)=>Qt(E,m[L])):Qt(b,m)))&&(h&&h(),Bt(t,o,3,[b,m===Us?void 0:c&&m[0]===Us?[]:m,f]),m=b)}else k.run()};v.allowRecurse=!!t;let y;l==="sync"?y=v:l==="post"?y=()=>mt(v,o&&o.suspense):(v.pre=!0,o&&(v.id=o.uid),y=()=>Yo(v));const k=new Zr(a,Mt,y),C=uc(),S=()=>{k.stop(),C&&oc(C.effects,k)};return t?n?v():m=k.run():l==="post"?mt(k.run.bind(k),o&&o.suspense):k.run(),g&&g.push(S),S}function b0(e,t,n){const r=this.proxy,l=at(e)?e.includes(".")?ld(r,e):()=>r[e]:e.bind(r,r);let s;Ie(t)?s=t:(s=t.handler,n=t);const u=wr(this),d=ms(l,s.bind(r),n);return u(),d}function ld(e,t){const n=t.split(".");return()=>{let r=e;for(let l=0;l<n.length&&r;l++)r=r[n[l]];return r}}function ar(e,t,n=0,r){if(!qe(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if(r=r||new Set,r.has(e))return e;if(r.add(e),yt(e))ar(e.value,t,n,r);else if(_e(e))for(let l=0;l<e.length;l++)ar(e[l],t,n,r);else if(kr(e)||Wr(e))e.forEach(l=>{ar(l,t,n,r)});else if(Af(e))for(const l in e)ar(e[l],t,n,r);return e}function Jo(e,t){if(ht===null)return e;const n=oa(ht)||ht.proxy,r=e.dirs||(e.dirs=[]);for(let l=0;l<t.length;l++){let[s,u,d,o=Ze]=t[l];s&&(Ie(s)&&(s={mounted:s,updated:s}),s.deep&&ar(u),r.push({dir:s,instance:n,value:u,oldValue:void 0,arg:d,modifiers:o}))}return e}function tn(e,t,n,r){const l=e.dirs,s=t&&t.dirs;for(let u=0;u<l.length;u++){const d=l[u];s&&(d.oldValue=s[u].value);let o=d.dir[r];o&&(xr(),Bt(o,n,8,[e.el,d,e,t]),Er())}}const Pn=Symbol("_leaveCb"),Vs=Symbol("_enterCb");function Cc(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return lt(()=>{e.isMounted=!0}),fi(()=>{e.isUnmounting=!0}),e}const Ut=[Function,Array],Ac={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ut,onEnter:Ut,onAfterEnter:Ut,onEnterCancelled:Ut,onBeforeLeave:Ut,onLeave:Ut,onAfterLeave:Ut,onLeaveCancelled:Ut,onBeforeAppear:Ut,onAppear:Ut,onAfterAppear:Ut,onAppearCancelled:Ut},w0={name:"BaseTransition",props:Ac,setup(e,{slots:t}){const n=Gt(),r=Cc();return()=>{const l=t.default&&ea(t.default(),!0);if(!l||!l.length)return;let s=l[0];if(l.length>1){for(const c of l)if(c.type!==$t){s=c;break}}const u=We(e),{mode:d}=u;if(r.isLeaving)return Ra(s);const o=Iu(s);if(!o)return Ra(s);const p=Xr(o,u,r,n);vr(o,p);const a=n.subTree,i=a&&Iu(a);if(i&&i.type!==$t&&!Kt(o,i)){const c=Xr(i,u,r,n);if(vr(i,c),d==="out-in")return r.isLeaving=!0,c.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Ra(s);d==="in-out"&&o.type!==$t&&(c.delayLeave=(h,f,g)=>{const m=ud(r,i);m[String(i.key)]=i,h[Pn]=()=>{f(),h[Pn]=void 0,delete p.delayedLeave},p.delayedLeave=g})}return s}}},cd=w0;function ud(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Xr(e,t,n,r){const{appear:l,mode:s,persisted:u=!1,onBeforeEnter:d,onEnter:o,onAfterEnter:p,onEnterCancelled:a,onBeforeLeave:i,onLeave:c,onAfterLeave:h,onLeaveCancelled:f,onBeforeAppear:g,onAppear:m,onAfterAppear:v,onAppearCancelled:y}=t,k=String(e.key),C=ud(n,e),S=(L,x)=>{L&&Bt(L,r,9,x)},b=(L,x)=>{const M=x[1];S(L,x),_e(L)?L.every(_=>_.length<=1)&&M():L.length<=1&&M()},E={mode:s,persisted:u,beforeEnter(L){let x=d;if(!n.isMounted)if(l)x=g||d;else return;L[Pn]&&L[Pn](!0);const M=C[k];M&&Kt(e,M)&&M.el[Pn]&&M.el[Pn](),S(x,[L])},enter(L){let x=o,M=p,_=a;if(!n.isMounted)if(l)x=m||o,M=v||p,_=y||a;else return;let A=!1;const $=L[Vs]=w=>{A||(A=!0,w?S(_,[L]):S(M,[L]),E.delayedLeave&&E.delayedLeave(),L[Vs]=void 0)};x?b(x,[L,$]):$()},leave(L,x){const M=String(e.key);if(L[Vs]&&L[Vs](!0),n.isUnmounting)return x();S(i,[L]);let _=!1;const A=L[Pn]=$=>{_||(_=!0,x(),$?S(f,[L]):S(h,[L]),L[Pn]=void 0,C[M]===e&&delete C[M])};C[M]=e,c?b(c,[L,A]):A()},clone(L){return Xr(L,t,n,r)}};return E}function Ra(e){if(vs(e))return e=an(e),e.children=null,e}function Iu(e){return vs(e)?e.children?e.children[0]:void 0:e}function vr(e,t){e.shapeFlag&6&&e.component?vr(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ea(e,t=!1,n){let r=[],l=0;for(let s=0;s<e.length;s++){let u=e[s];const d=n==null?u.key:String(n)+String(u.key!=null?u.key:s);u.type===Ne?(u.patchFlag&128&&l++,r=r.concat(ea(u.children,t,d))):(t||u.type!==$t)&&r.push(d!=null?an(u,{key:d}):u)}if(l>1)for(let s=0;s<r.length;s++)r[s].patchFlag=-2;return r}/*! #__NO_SIDE_EFFECTS__ */function Ce(e,t){return Ie(e)?ot({name:e.name},t,{setup:e}):e}const hr=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function _0(e){Ie(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:l=200,timeout:s,suspensible:u=!0,onError:d}=e;let o=null,p,a=0;const i=()=>(a++,o=null,c()),c=()=>{let h;return o||(h=o=t().catch(f=>{if(f=f instanceof Error?f:new Error(String(f)),d)return new Promise((g,m)=>{d(f,()=>g(i()),()=>m(f),a+1)});throw f}).then(f=>h!==o&&o?o:(f&&(f.__esModule||f[Symbol.toStringTag]==="Module")&&(f=f.default),p=f,f)))};return Ce({name:"AsyncComponentWrapper",__asyncLoader:c,get __asyncResolved(){return p},setup(){const h=ft;if(p)return()=>Ta(p,h);const f=y=>{o=null,Rr(y,h,13,!r)};if(u&&h.suspense||ys)return c().then(y=>()=>Ta(y,h)).catch(y=>(f(y),()=>r?oe(r,{error:y}):null));const g=ze(!1),m=ze(),v=ze(!!l);return l&&setTimeout(()=>{v.value=!1},l),s!=null&&setTimeout(()=>{if(!g.value&&!m.value){const y=new Error(`Async component timed out after ${s}ms.`);f(y),m.value=y}},s),c().then(()=>{g.value=!0,h.parent&&vs(h.parent.vnode)&&(h.parent.effect.dirty=!0,Yo(h.parent.update))}).catch(y=>{f(y),m.value=y}),()=>{if(g.value&&p)return Ta(p,h);if(m.value&&r)return oe(r,{error:m.value});if(n&&!v.value)return oe(n)}}})}function Ta(e,t){const{ref:n,props:r,children:l,ce:s}=t.vnode,u=oe(e,r,l);return u.ref=n,u.ce=s,delete t.vnode.ce,u}const vs=e=>e.type.__isKeepAlive,$0={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Gt(),r=n.ctx;if(!r.renderer)return()=>{const y=t.default&&t.default();return y&&y.length===1?y[0]:y};const l=new Map,s=new Set;let u=null;const d=n.suspense,{renderer:{p:o,m:p,um:a,o:{createElement:i}}}=r,c=i("div");r.activate=(y,k,C,S,b)=>{const E=y.component;p(y,k,C,0,d),o(E.vnode,y,k,C,E,d,S,y.slotScopeIds,b),mt(()=>{E.isDeactivated=!1,E.a&&Ur(E.a);const L=y.props&&y.props.onVnodeMounted;L&&Lt(L,E.parent,y)},d)},r.deactivate=y=>{const k=y.component;p(y,c,null,1,d),mt(()=>{k.da&&Ur(k.da);const C=y.props&&y.props.onVnodeUnmounted;C&&Lt(C,k.parent,y),k.isDeactivated=!0},d)};function h(y){La(y),a(y,n,d,!0)}function f(y){l.forEach((k,C)=>{const S=Cl(k.type);S&&(!y||!y(S))&&g(C)})}function g(y){const k=l.get(y);!u||!Kt(k,u)?h(k):u&&La(u),l.delete(y),s.delete(y)}st(()=>[e.include,e.exclude],([y,k])=>{y&&f(C=>Ci(y,C)),k&&f(C=>!Ci(k,C))},{flush:"post",deep:!0});let m=null;const v=()=>{m!=null&&l.set(m,Ma(n.subTree))};return lt(v),na(v),fi(()=>{l.forEach(y=>{const{subTree:k,suspense:C}=n,S=Ma(k);if(y.type===S.type&&y.key===S.key){La(S);const b=S.component.da;b&&mt(b,C);return}h(y)})}),()=>{if(m=null,!t.default)return null;const y=t.default(),k=y[0];if(y.length>1)return u=null,y;if(!Zn(k)||!(k.shapeFlag&4)&&!(k.shapeFlag&128))return u=null,k;let C=Ma(k);const S=C.type,b=Cl(hr(C)?C.type.__asyncResolved||{}:S),{include:E,exclude:L,max:x}=e;if(E&&(!b||!Ci(E,b))||L&&b&&Ci(L,b))return u=C,k;const M=C.key==null?S:C.key,_=l.get(M);return C.el&&(C=an(C),k.shapeFlag&128&&(k.ssContent=C)),m=M,_?(C.el=_.el,C.component=_.component,C.transition&&vr(C,C.transition),C.shapeFlag|=512,s.delete(M),s.add(M)):(s.add(M),x&&s.size>parseInt(x,10)&&g(s.values().next().value)),C.shapeFlag|=256,u=C,td(k.type)?k:C}}},S0=$0;function Ci(e,t){return _e(e)?e.some(n=>Ci(n,t)):at(e)?e.split(",").includes(t):ny(e)?e.test(t):!1}function hd(e,t){dd(e,"a",t)}function fd(e,t){dd(e,"da",t)}function dd(e,t,n=ft){const r=e.__wdc||(e.__wdc=()=>{let l=n;for(;l;){if(l.isDeactivated)return;l=l.parent}return e()});if(ta(t,r,n),n){let l=n.parent;for(;l&&l.parent;)vs(l.parent.vnode)&&C0(r,t,n,l),l=l.parent}}function C0(e,t,n,r){const l=ta(t,e,r,!0);ra(()=>{oc(r[t],l)},n)}function La(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Ma(e){return e.shapeFlag&128?e.ssContent:e}function ta(e,t,n=ft,r=!1){if(n){const l=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...u)=>{if(n.isUnmounted)return;xr();const d=wr(n),o=Bt(t,n,e,u);return d(),Er(),o});return r?l.unshift(s):l.push(s),s}}const xn=e=>(t,n=ft)=>(!ys||e==="sp")&&ta(e,(...r)=>t(...r),n),pd=xn("bm"),lt=xn("m"),gd=xn("bu"),na=xn("u"),fi=xn("bum"),ra=xn("um"),md=xn("sp"),vd=xn("rtg"),yd=xn("rtc");function bd(e,t=ft){ta("ec",e,t)}function Nt(e,t,n,r){let l;const s=n&&n[r];if(_e(e)||at(e)){l=new Array(e.length);for(let u=0,d=e.length;u<d;u++)l[u]=t(e[u],u,void 0,s&&s[u])}else if(typeof e=="number"){l=new Array(e);for(let u=0;u<e;u++)l[u]=t(u+1,u,void 0,s&&s[u])}else if(qe(e))if(e[Symbol.iterator])l=Array.from(e,(u,d)=>t(u,d,void 0,s&&s[d]));else{const u=Object.keys(e);l=new Array(u.length);for(let d=0,o=u.length;d<o;d++){const p=u[d];l[d]=t(e[p],p,d,s&&s[d])}}else l=[];return n&&(n[r]=l),l}function A0(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(_e(r))for(let l=0;l<r.length;l++)e[r[l].name]=r[l].fn;else r&&(e[r.name]=r.key?(...l)=>{const s=r.fn(...l);return s&&(s.key=r.key),s}:r.fn)}return e}function k0(e,t,n={},r,l){if(ht.isCE||ht.parent&&hr(ht.parent)&&ht.parent.isCE)return t!=="default"&&(n.name=t),oe("slot",n,r&&r());let s=e[t];s&&s._c&&(s._d=!1),Z();const u=s&&wd(s(n)),d=Se(Ne,{key:n.key||u&&u.key||`_${t}`},u||(r?r():[]),u&&e._===1?64:-2);return!l&&d.scopeId&&(d.slotScopeIds=[d.scopeId+"-s"]),s&&s._c&&(s._d=!0),d}function wd(e){return e.some(t=>Zn(t)?!(t.type===$t||t.type===Ne&&!wd(t.children)):!0)?e:null}function x0(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:Ei(r)]=e[r];return n}const dl=e=>e?Hd(e)?oa(e)||e.proxy:dl(e.parent):null,Ri=ot(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>dl(e.parent),$root:e=>dl(e.root),$emit:e=>e.emit,$options:e=>kc(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Yo(e.update)}),$nextTick:e=>e.n||(e.n=hi.bind(e.proxy)),$watch:e=>b0.bind(e)}),Oa=(e,t)=>e!==Ze&&!e.__isScriptSetup&&Ve(e,t),pl={get({_:e},t){const{ctx:n,setupState:r,data:l,props:s,accessCache:u,type:d,appContext:o}=e;let p;if(t[0]!=="$"){const h=u[t];if(h!==void 0)switch(h){case 1:return r[t];case 2:return l[t];case 4:return n[t];case 3:return s[t]}else{if(Oa(r,t))return u[t]=1,r[t];if(l!==Ze&&Ve(l,t))return u[t]=2,l[t];if((p=e.propsOptions[0])&&Ve(p,t))return u[t]=3,s[t];if(n!==Ze&&Ve(n,t))return u[t]=4,n[t];gl&&(u[t]=0)}}const a=Ri[t];let i,c;if(a)return t==="$attrs"&&It(e,"get",t),a(e);if((i=d.__cssModules)&&(i=i[t]))return i;if(n!==Ze&&Ve(n,t))return u[t]=4,n[t];if(c=o.config.globalProperties,Ve(c,t))return c[t]},set({_:e},t,n){const{data:r,setupState:l,ctx:s}=e;return Oa(l,t)?(l[t]=n,!0):r!==Ze&&Ve(r,t)?(r[t]=n,!0):Ve(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:l,propsOptions:s}},u){let d;return!!n[u]||e!==Ze&&Ve(e,u)||Oa(t,u)||(d=s[0])&&Ve(d,u)||Ve(r,u)||Ve(Ri,u)||Ve(l.config.globalProperties,u)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ve(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},E0=ot({},pl,{get(e,t){if(t!==Symbol.unscopables)return pl.get(e,t,e)},has(e,t){return t[0]!=="_"&&!ay(t)}});function R0(){return null}function T0(){return null}function L0(e){}function M0(e){}function O0(){return null}function I0(){}function N0(e,t){return null}function D0(){return _d().slots}function F0(){return _d().attrs}function _d(){const e=Gt();return e.setupContext||(e.setupContext=zd(e))}function Yi(e){return _e(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function P0(e,t){const n=Yi(e);for(const r in t){if(r.startsWith("__skip"))continue;let l=n[r];l?_e(l)||Ie(l)?l=n[r]={type:l,default:t[r]}:l.default=t[r]:l===null&&(l=n[r]={default:t[r]}),l&&t[`__skip_${r}`]&&(l.skipFactory=!0)}return n}function B0(e,t){return!e||!t?e||t:_e(e)&&_e(t)?e.concat(t):ot({},Yi(e),Yi(t))}function W0(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function H0(e){const t=Gt();let n=e();return _l(),ac(n)&&(n=n.catch(r=>{throw wr(t),r})),[n,()=>wr(t)]}let gl=!0;function U0(e){const t=kc(e),n=e.proxy,r=e.ctx;gl=!1,t.beforeCreate&&Nu(t.beforeCreate,e,"bc");const{data:l,computed:s,methods:u,watch:d,provide:o,inject:p,created:a,beforeMount:i,mounted:c,beforeUpdate:h,updated:f,activated:g,deactivated:m,beforeDestroy:v,beforeUnmount:y,destroyed:k,unmounted:C,render:S,renderTracked:b,renderTriggered:E,errorCaptured:L,serverPrefetch:x,expose:M,inheritAttrs:_,components:A,directives:$,filters:w}=t;if(p&&V0(p,r,null),u)for(const O in u){const I=u[O];Ie(I)&&(r[O]=I.bind(n))}if(l){const O=l.call(n,n);qe(O)&&(e.data=ui(O))}if(gl=!0,s)for(const O in s){const I=s[O],N=Ie(I)?I.bind(n,n):Ie(I.get)?I.get.bind(n,n):Mt,P=!Ie(I)&&Ie(I.set)?I.set.bind(n):Mt,W=Le({get:N,set:P});Object.defineProperty(r,O,{enumerable:!0,configurable:!0,get:()=>W.value,set:j=>W.value=j})}if(d)for(const O in d)$d(d[O],r,n,O);if(o){const O=Ie(o)?o.call(n):o;Reflect.ownKeys(O).forEach(I=>{Ti(I,O[I])})}a&&Nu(a,e,"c");function T(O,I){_e(I)?I.forEach(N=>O(N.bind(n))):I&&O(I.bind(n))}if(T(pd,i),T(lt,c),T(gd,h),T(na,f),T(hd,g),T(fd,m),T(bd,L),T(yd,b),T(vd,E),T(fi,y),T(ra,C),T(md,x),_e(M))if(M.length){const O=e.exposed||(e.exposed={});M.forEach(I=>{Object.defineProperty(O,I,{get:()=>n[I],set:N=>n[I]=N})})}else e.exposed||(e.exposed={});S&&e.render===Mt&&(e.render=S),_!=null&&(e.inheritAttrs=_),A&&(e.components=A),$&&(e.directives=$)}function V0(e,t,n=Mt){_e(e)&&(e=ml(e));for(const r in e){const l=e[r];let s;qe(l)?"default"in l?s=Vt(l.from||r,l.default,!0):s=Vt(l.from||r):s=Vt(l),yt(s)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:u=>s.value=u}):t[r]=s}}function Nu(e,t,n){Bt(_e(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function $d(e,t,n,r){const l=r.includes(".")?ld(n,r):()=>n[r];if(at(e)){const s=t[e];Ie(s)&&st(l,s)}else if(Ie(e))st(l,e.bind(n));else if(qe(e))if(_e(e))e.forEach(s=>$d(s,t,n,r));else{const s=Ie(e.handler)?e.handler.bind(n):t[e.handler];Ie(s)&&st(l,s,e)}}function kc(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:l,optionsCache:s,config:{optionMergeStrategies:u}}=e.appContext,d=s.get(t);let o;return d?o=d:!l.length&&!n&&!r?o=t:(o={},l.length&&l.forEach(p=>go(o,p,u,!0)),go(o,t,u)),qe(t)&&s.set(t,o),o}function go(e,t,n,r=!1){const{mixins:l,extends:s}=t;s&&go(e,s,n,!0),l&&l.forEach(u=>go(e,u,n,!0));for(const u in t)if(!(r&&u==="expose")){const d=z0[u]||n&&n[u];e[u]=d?d(e[u],t[u]):t[u]}return e}const z0={data:Du,props:Fu,emits:Fu,methods:Ai,computed:Ai,beforeCreate:kt,created:kt,beforeMount:kt,mounted:kt,beforeUpdate:kt,updated:kt,beforeDestroy:kt,beforeUnmount:kt,destroyed:kt,unmounted:kt,activated:kt,deactivated:kt,errorCaptured:kt,serverPrefetch:kt,components:Ai,directives:Ai,watch:G0,provide:Du,inject:j0};function Du(e,t){return t?e?function(){return ot(Ie(e)?e.call(this,this):e,Ie(t)?t.call(this,this):t)}:t:e}function j0(e,t){return Ai(ml(e),ml(t))}function ml(e){if(_e(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function kt(e,t){return e?[...new Set([].concat(e,t))]:t}function Ai(e,t){return e?ot(Object.create(null),e,t):t}function Fu(e,t){return e?_e(e)&&_e(t)?[...new Set([...e,...t])]:ot(Object.create(null),Yi(e),Yi(t??{})):t}function G0(e,t){if(!e)return t;if(!t)return e;const n=ot(Object.create(null),e);for(const r in t)n[r]=kt(e[r],t[r]);return n}function Sd(){return{app:null,config:{isNativeTag:ey,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 K0=0;function Y0(e,t){return function(r,l=null){Ie(r)||(r=ot({},r)),l!=null&&!qe(l)&&(l=null);const s=Sd(),u=new WeakSet;let d=!1;const o=s.app={_uid:K0++,_component:r,_props:l,_container:null,_context:s,_instance:null,version:Gd,get config(){return s.config},set config(p){},use(p,...a){return u.has(p)||(p&&Ie(p.install)?(u.add(p),p.install(o,...a)):Ie(p)&&(u.add(p),p(o,...a))),o},mixin(p){return s.mixins.includes(p)||s.mixins.push(p),o},component(p,a){return a?(s.components[p]=a,o):s.components[p]},directive(p,a){return a?(s.directives[p]=a,o):s.directives[p]},mount(p,a,i){if(!d){const c=oe(r,l);return c.appContext=s,i===!0?i="svg":i===!1&&(i=void 0),a&&t?t(c,p):e(c,p,i),d=!0,o._container=p,p.__vue_app__=o,oa(c.component)||c.component.proxy}},unmount(){d&&(e(null,o._container),delete o._container.__vue_app__)},provide(p,a){return s.provides[p]=a,o},runWithContext(p){const a=Gr;Gr=o;try{return p()}finally{Gr=a}}};return o}}let Gr=null;function Ti(e,t){if(ft){let n=ft.provides;const r=ft.parent&&ft.parent.provides;r===n&&(n=ft.provides=Object.create(r)),n[e]=t}}function Vt(e,t,n=!1){const r=ft||ht;if(r||Gr){const l=r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:Gr._context.provides;if(l&&e in l)return l[e];if(arguments.length>1)return n&&Ie(t)?t.call(r&&r.proxy):t}}function Z0(){return!!(ft||ht||Gr)}function X0(e,t,n,r=!1){const l={},s={};co(s,ia,1),e.propsDefaults=Object.create(null),Cd(e,t,l,s);for(const u in e.propsOptions[0])u in l||(l[u]=void 0);n?e.props=r?l:pc(l):e.type.props?e.props=l:e.props=s,e.attrs=s}function q0(e,t,n,r){const{props:l,attrs:s,vnode:{patchFlag:u}}=e,d=We(l),[o]=e.propsOptions;let p=!1;if((r||u>0)&&!(u&16)){if(u&8){const a=e.vnode.dynamicProps;for(let i=0;i<a.length;i++){let c=a[i];if(Zo(e.emitsOptions,c))continue;const h=t[c];if(o)if(Ve(s,c))h!==s[c]&&(s[c]=h,p=!0);else{const f=xt(c);l[f]=vl(o,d,f,h,e,!1)}else h!==s[c]&&(s[c]=h,p=!0)}}}else{Cd(e,t,l,s)&&(p=!0);let a;for(const i in d)(!t||!Ve(t,i)&&((a=Pt(i))===i||!Ve(t,a)))&&(o?n&&(n[i]!==void 0||n[a]!==void 0)&&(l[i]=vl(o,d,i,void 0,e,!0)):delete l[i]);if(s!==d)for(const i in s)(!t||!Ve(t,i))&&(delete s[i],p=!0)}p&&vn(e,"set","$attrs")}function Cd(e,t,n,r){const[l,s]=e.propsOptions;let u=!1,d;if(t)for(let o in t){if(Hr(o))continue;const p=t[o];let a;l&&Ve(l,a=xt(o))?!s||!s.includes(a)?n[a]=p:(d||(d={}))[a]=p:Zo(e.emitsOptions,o)||(!(o in r)||p!==r[o])&&(r[o]=p,u=!0)}if(s){const o=We(n),p=d||Ze;for(let a=0;a<s.length;a++){const i=s[a];n[i]=vl(l,o,i,p[i],e,!Ve(p,i))}}return u}function vl(e,t,n,r,l,s){const u=e[n];if(u!=null){const d=Ve(u,"default");if(d&&r===void 0){const o=u.default;if(u.type!==Function&&!u.skipFactory&&Ie(o)){const{propsDefaults:p}=l;if(n in p)r=p[n];else{const a=wr(l);r=p[n]=o.call(null,t),a()}}else r=o}u[0]&&(s&&!d?r=!1:u[1]&&(r===""||r===Pt(n))&&(r=!0))}return r}function Ad(e,t,n=!1){const r=t.propsCache,l=r.get(e);if(l)return l;const s=e.props,u={},d=[];let o=!1;if(!Ie(e)){const a=i=>{o=!0;const[c,h]=Ad(i,t,!0);ot(u,c),h&&d.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!s&&!o)return qe(e)&&r.set(e,Br),Br;if(_e(s))for(let a=0;a<s.length;a++){const i=xt(s[a]);Pu(i)&&(u[i]=Ze)}else if(s)for(const a in s){const i=xt(a);if(Pu(i)){const c=s[a],h=u[i]=_e(c)||Ie(c)?{type:c}:ot({},c);if(h){const f=Hu(Boolean,h.type),g=Hu(String,h.type);h[0]=f>-1,h[1]=g<0||f<g,(f>-1||Ve(h,"default"))&&d.push(i)}}}const p=[u,d];return qe(e)&&r.set(e,p),p}function Pu(e){return e[0]!=="$"&&!Hr(e)}function Bu(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Wu(e,t){return Bu(e)===Bu(t)}function Hu(e,t){return _e(t)?t.findIndex(n=>Wu(n,e)):Ie(t)&&Wu(t,e)?0:-1}const kd=e=>e[0]==="_"||e==="$stable",xc=e=>_e(e)?e.map(Ft):[Ft(e)],Q0=(e,t,n)=>{if(t._n)return t;const r=Je((...l)=>xc(t(...l)),n);return r._c=!1,r},xd=(e,t,n)=>{const r=e._ctx;for(const l in e){if(kd(l))continue;const s=e[l];if(Ie(s))t[l]=Q0(l,s,r);else if(s!=null){const u=xc(s);t[l]=()=>u}}},Ed=(e,t)=>{const n=xc(t);e.slots.default=()=>n},J0=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=We(t),co(t,"_",n)):xd(t,e.slots={})}else e.slots={},t&&Ed(e,t);co(e.slots,ia,1)},eb=(e,t,n)=>{const{vnode:r,slots:l}=e;let s=!0,u=Ze;if(r.shapeFlag&32){const d=t._;d?n&&d===1?s=!1:(ot(l,t),!n&&d===1&&delete l._):(s=!t.$stable,xd(t,l)),u=t}else t&&(Ed(e,t),u={default:1});if(s)for(const d in l)!kd(d)&&u[d]==null&&delete l[d]};function mo(e,t,n,r,l=!1){if(_e(e)){e.forEach((c,h)=>mo(c,t&&(_e(t)?t[h]:t),n,r,l));return}if(hr(r)&&!l)return;const s=r.shapeFlag&4?oa(r.component)||r.component.proxy:r.el,u=l?null:s,{i:d,r:o}=e,p=t&&t.r,a=d.refs===Ze?d.refs={}:d.refs,i=d.setupState;if(p!=null&&p!==o&&(at(p)?(a[p]=null,Ve(i,p)&&(i[p]=null)):yt(p)&&(p.value=null)),Ie(o))bn(o,d,12,[u,a]);else{const c=at(o),h=yt(o);if(c||h){const f=()=>{if(e.f){const g=c?Ve(i,o)?i[o]:a[o]:o.value;l?_e(g)&&oc(g,s):_e(g)?g.includes(s)||g.push(s):c?(a[o]=[s],Ve(i,o)&&(i[o]=a[o])):(o.value=[s],e.k&&(a[e.k]=o.value))}else c?(a[o]=u,Ve(i,o)&&(i[o]=u)):h&&(o.value=u,e.k&&(a[e.k]=u))};u?(f.id=-1,mt(f,n)):f()}}}let Mn=!1;const tb=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",nb=e=>e.namespaceURI.includes("MathML"),zs=e=>{if(tb(e))return"svg";if(nb(e))return"mathml"},js=e=>e.nodeType===8;function rb(e){const{mt:t,p:n,o:{patchProp:r,createText:l,nextSibling:s,parentNode:u,remove:d,insert:o,createComment:p}}=e,a=(k,C)=>{if(!C.hasChildNodes()){n(null,k,C),po(),C._vnode=k;return}Mn=!1,i(C.firstChild,k,null,null,null),po(),C._vnode=k,Mn&&console.error("Hydration completed but contains mismatches.")},i=(k,C,S,b,E,L=!1)=>{const x=js(k)&&k.data==="[",M=()=>g(k,C,S,b,E,x),{type:_,ref:A,shapeFlag:$,patchFlag:w}=C;let R=k.nodeType;C.el=k,w===-2&&(L=!1,C.dynamicChildren=null);let T=null;switch(_){case yr:R!==3?C.children===""?(o(C.el=l(""),u(k),k),T=k):T=M():(k.data!==C.children&&(Mn=!0,k.data=C.children),T=s(k));break;case $t:y(k)?(T=s(k),v(C.el=k.content.firstChild,k,S)):R!==8||x?T=M():T=s(k);break;case fr:if(x&&(k=s(k),R=k.nodeType),R===1||R===3){T=k;const O=!C.children.length;for(let I=0;I<C.staticCount;I++)O&&(C.children+=T.nodeType===1?T.outerHTML:T.data),I===C.staticCount-1&&(C.anchor=T),T=s(T);return x?s(T):T}else M();break;case Ne:x?T=f(k,C,S,b,E,L):T=M();break;default:if($&1)(R!==1||C.type.toLowerCase()!==k.tagName.toLowerCase())&&!y(k)?T=M():T=c(k,C,S,b,E,L);else if($&6){C.slotScopeIds=E;const O=u(k);if(x?T=m(k):js(k)&&k.data==="teleport start"?T=m(k,k.data,"teleport end"):T=s(k),t(C,O,null,S,b,zs(O),L),hr(C)){let I;x?(I=oe(Ne),I.anchor=T?T.previousSibling:O.lastChild):I=k.nodeType===3?et(""):oe("div"),I.el=k,C.component.subTree=I}}else $&64?R!==8?T=M():T=C.type.hydrate(k,C,S,b,E,L,e,h):$&128&&(T=C.type.hydrate(k,C,S,b,zs(u(k)),E,L,e,i))}return A!=null&&mo(A,null,b,C),T},c=(k,C,S,b,E,L)=>{L=L||!!C.dynamicChildren;const{type:x,props:M,patchFlag:_,shapeFlag:A,dirs:$,transition:w}=C,R=x==="input"||x==="option";if(R||_!==-1){$&&tn(C,null,S,"created");let T=!1;if(y(k)){T=Md(b,w)&&S&&S.vnode.props&&S.vnode.props.appear;const I=k.content.firstChild;T&&w.beforeEnter(I),v(I,k,S),C.el=k=I}if(A&16&&!(M&&(M.innerHTML||M.textContent))){let I=h(k.firstChild,C,k,S,b,E,L);for(;I;){Mn=!0;const N=I;I=I.nextSibling,d(N)}}else A&8&&k.textContent!==C.children&&(Mn=!0,k.textContent=C.children);if(M)if(R||!L||_&48)for(const I in M)(R&&(I.endsWith("value")||I==="indeterminate")||ps(I)&&!Hr(I)||I[0]===".")&&r(k,I,null,M[I],void 0,void 0,S);else M.onClick&&r(k,"onClick",null,M.onClick,void 0,void 0,S);let O;(O=M&&M.onVnodeBeforeMount)&&Lt(O,S,C),$&&tn(C,null,S,"beforeMount"),((O=M&&M.onVnodeMounted)||$||T)&&nd(()=>{O&&Lt(O,S,C),T&&w.enter(k),$&&tn(C,null,S,"mounted")},b)}return k.nextSibling},h=(k,C,S,b,E,L,x)=>{x=x||!!C.dynamicChildren;const M=C.children,_=M.length;for(let A=0;A<_;A++){const $=x?M[A]:M[A]=Ft(M[A]);if(k)k=i(k,$,b,E,L,x);else{if($.type===yr&&!$.children)continue;Mn=!0,n(null,$,S,null,b,E,zs(S),L)}}return k},f=(k,C,S,b,E,L)=>{const{slotScopeIds:x}=C;x&&(E=E?E.concat(x):x);const M=u(k),_=h(s(k),C,M,S,b,E,L);return _&&js(_)&&_.data==="]"?s(C.anchor=_):(Mn=!0,o(C.anchor=p("]"),M,_),_)},g=(k,C,S,b,E,L)=>{if(Mn=!0,C.el=null,L){const _=m(k);for(;;){const A=s(k);if(A&&A!==_)d(A);else break}}const x=s(k),M=u(k);return d(k),n(null,C,M,x,S,b,zs(M),E),x},m=(k,C="[",S="]")=>{let b=0;for(;k;)if(k=s(k),k&&js(k)&&(k.data===C&&b++,k.data===S)){if(b===0)return s(k);b--}return k},v=(k,C,S)=>{const b=C.parentNode;b&&b.replaceChild(k,C);let E=S;for(;E;)E.vnode.el===C&&(E.vnode.el=E.subTree.el=k),E=E.parent},y=k=>k.nodeType===1&&k.tagName.toLowerCase()==="template";return[a,i]}const mt=nd;function Rd(e){return Ld(e)}function Td(e){return Ld(e,rb)}function Ld(e,t){const n=kf();n.__VUE__=!0;const{insert:r,remove:l,patchProp:s,createElement:u,createText:d,createComment:o,setText:p,setElementText:a,parentNode:i,nextSibling:c,setScopeId:h=Mt,insertStaticContent:f}=e,g=(F,B,K,J=null,te=null,ce=null,pe=void 0,ue=null,fe=!!B.dynamicChildren)=>{if(F===B)return;F&&!Kt(F,B)&&(J=U(F),j(F,te,ce,!0),F=null),B.patchFlag===-2&&(fe=!1,B.dynamicChildren=null);const{type:ae,ref:ve,shapeFlag:Ee}=B;switch(ae){case yr:m(F,B,K,J);break;case $t:v(F,B,K,J);break;case fr:F==null&&y(B,K,J,pe);break;case Ne:A(F,B,K,J,te,ce,pe,ue,fe);break;default:Ee&1?S(F,B,K,J,te,ce,pe,ue,fe):Ee&6?$(F,B,K,J,te,ce,pe,ue,fe):(Ee&64||Ee&128)&&ae.process(F,B,K,J,te,ce,pe,ue,fe,z)}ve!=null&&te&&mo(ve,F&&F.ref,ce,B||F,!B)},m=(F,B,K,J)=>{if(F==null)r(B.el=d(B.children),K,J);else{const te=B.el=F.el;B.children!==F.children&&p(te,B.children)}},v=(F,B,K,J)=>{F==null?r(B.el=o(B.children||""),K,J):B.el=F.el},y=(F,B,K,J)=>{[F.el,F.anchor]=f(F.children,B,K,J,F.el,F.anchor)},k=({el:F,anchor:B},K,J)=>{let te;for(;F&&F!==B;)te=c(F),r(F,K,J),F=te;r(B,K,J)},C=({el:F,anchor:B})=>{let K;for(;F&&F!==B;)K=c(F),l(F),F=K;l(B)},S=(F,B,K,J,te,ce,pe,ue,fe)=>{B.type==="svg"?pe="svg":B.type==="math"&&(pe="mathml"),F==null?b(B,K,J,te,ce,pe,ue,fe):x(F,B,te,ce,pe,ue,fe)},b=(F,B,K,J,te,ce,pe,ue)=>{let fe,ae;const{props:ve,shapeFlag:Ee,transition:Ae,dirs:q}=F;if(fe=F.el=u(F.type,ce,ve&&ve.is,ve),Ee&8?a(fe,F.children):Ee&16&&L(F.children,fe,null,J,te,Ia(F,ce),pe,ue),q&&tn(F,null,J,"created"),E(fe,F,F.scopeId,pe,J),ve){for(const ge in ve)ge!=="value"&&!Hr(ge)&&s(fe,ge,null,ve[ge],ce,F.children,J,te,Q);"value"in ve&&s(fe,"value",null,ve.value,ce),(ae=ve.onVnodeBeforeMount)&&Lt(ae,J,F)}q&&tn(F,null,J,"beforeMount");const le=Md(te,Ae);le&&Ae.beforeEnter(fe),r(fe,B,K),((ae=ve&&ve.onVnodeMounted)||le||q)&&mt(()=>{ae&&Lt(ae,J,F),le&&Ae.enter(fe),q&&tn(F,null,J,"mounted")},te)},E=(F,B,K,J,te)=>{if(K&&h(F,K),J)for(let ce=0;ce<J.length;ce++)h(F,J[ce]);if(te){let ce=te.subTree;if(B===ce){const pe=te.vnode;E(F,pe,pe.scopeId,pe.slotScopeIds,te.parent)}}},L=(F,B,K,J,te,ce,pe,ue,fe=0)=>{for(let ae=fe;ae<F.length;ae++){const ve=F[ae]=ue?Bn(F[ae]):Ft(F[ae]);g(null,ve,B,K,J,te,ce,pe,ue)}},x=(F,B,K,J,te,ce,pe)=>{const ue=B.el=F.el;let{patchFlag:fe,dynamicChildren:ae,dirs:ve}=B;fe|=F.patchFlag&16;const Ee=F.props||Ze,Ae=B.props||Ze;let q;if(K&&tr(K,!1),(q=Ae.onVnodeBeforeUpdate)&&Lt(q,K,B,F),ve&&tn(B,F,K,"beforeUpdate"),K&&tr(K,!0),ae?M(F.dynamicChildren,ae,ue,K,J,Ia(B,te),ce):pe||I(F,B,ue,null,K,J,Ia(B,te),ce,!1),fe>0){if(fe&16)_(ue,B,Ee,Ae,K,J,te);else if(fe&2&&Ee.class!==Ae.class&&s(ue,"class",null,Ae.class,te),fe&4&&s(ue,"style",Ee.style,Ae.style,te),fe&8){const le=B.dynamicProps;for(let ge=0;ge<le.length;ge++){const ke=le[ge],Oe=Ee[ke],He=Ae[ke];(He!==Oe||ke==="value")&&s(ue,ke,Oe,He,te,F.children,K,J,Q)}}fe&1&&F.children!==B.children&&a(ue,B.children)}else!pe&&ae==null&&_(ue,B,Ee,Ae,K,J,te);((q=Ae.onVnodeUpdated)||ve)&&mt(()=>{q&&Lt(q,K,B,F),ve&&tn(B,F,K,"updated")},J)},M=(F,B,K,J,te,ce,pe)=>{for(let ue=0;ue<B.length;ue++){const fe=F[ue],ae=B[ue],ve=fe.el&&(fe.type===Ne||!Kt(fe,ae)||fe.shapeFlag&70)?i(fe.el):K;g(fe,ae,ve,null,J,te,ce,pe,!0)}},_=(F,B,K,J,te,ce,pe)=>{if(K!==J){if(K!==Ze)for(const ue in K)!Hr(ue)&&!(ue in J)&&s(F,ue,K[ue],null,pe,B.children,te,ce,Q);for(const ue in J){if(Hr(ue))continue;const fe=J[ue],ae=K[ue];fe!==ae&&ue!=="value"&&s(F,ue,ae,fe,pe,B.children,te,ce,Q)}"value"in J&&s(F,"value",K.value,J.value,pe)}},A=(F,B,K,J,te,ce,pe,ue,fe)=>{const ae=B.el=F?F.el:d(""),ve=B.anchor=F?F.anchor:d("");let{patchFlag:Ee,dynamicChildren:Ae,slotScopeIds:q}=B;q&&(ue=ue?ue.concat(q):q),F==null?(r(ae,K,J),r(ve,K,J),L(B.children||[],K,ve,te,ce,pe,ue,fe)):Ee>0&&Ee&64&&Ae&&F.dynamicChildren?(M(F.dynamicChildren,Ae,K,te,ce,pe,ue),(B.key!=null||te&&B===te.subTree)&&Ec(F,B,!0)):I(F,B,K,ve,te,ce,pe,ue,fe)},$=(F,B,K,J,te,ce,pe,ue,fe)=>{B.slotScopeIds=ue,F==null?B.shapeFlag&512?te.ctx.activate(B,K,J,pe,fe):w(B,K,J,te,ce,pe,fe):R(F,B,fe)},w=(F,B,K,J,te,ce,pe)=>{const ue=F.component=Wd(F,J,te);if(vs(F)&&(ue.ctx.renderer=z),Ud(ue),ue.asyncDep){if(te&&te.registerDep(ue,T),!F.el){const fe=ue.subTree=oe($t);v(null,fe,B,K)}}else T(ue,F,B,K,te,ce,pe)},R=(F,B,K)=>{const J=B.component=F.component;if(l0(F,B,K))if(J.asyncDep&&!J.asyncResolved){O(J,B,K);return}else J.next=B,t0(J.update),J.effect.dirty=!0,J.update();else B.el=F.el,J.vnode=B},T=(F,B,K,J,te,ce,pe)=>{const ue=()=>{if(F.isMounted){let{next:ve,bu:Ee,u:Ae,parent:q,vnode:le}=F;{const Qe=Od(F);if(Qe){ve&&(ve.el=le.el,O(F,ve,pe)),Qe.asyncDep.then(()=>{F.isUnmounted||ue()});return}}let ge=ve,ke;tr(F,!1),ve?(ve.el=le.el,O(F,ve,pe)):ve=le,Ee&&Ur(Ee),(ke=ve.props&&ve.props.onVnodeBeforeUpdate)&&Lt(ke,q,ve,le),tr(F,!0);const Oe=qs(F),He=F.subTree;F.subTree=Oe,g(He,Oe,i(He.el),U(He),F,te,ce),ve.el=Oe.el,ge===null&&wc(F,Oe.el),Ae&&mt(Ae,te),(ke=ve.props&&ve.props.onVnodeUpdated)&&mt(()=>Lt(ke,q,ve,le),te)}else{let ve;const{el:Ee,props:Ae}=B,{bm:q,m:le,parent:ge}=F,ke=hr(B);if(tr(F,!1),q&&Ur(q),!ke&&(ve=Ae&&Ae.onVnodeBeforeMount)&&Lt(ve,ge,B),tr(F,!0),Ee&&he){const Oe=()=>{F.subTree=qs(F),he(Ee,F.subTree,F,te,null)};ke?B.type.__asyncLoader().then(()=>!F.isUnmounted&&Oe()):Oe()}else{const Oe=F.subTree=qs(F);g(null,Oe,K,J,F,te,ce),B.el=Oe.el}if(le&&mt(le,te),!ke&&(ve=Ae&&Ae.onVnodeMounted)){const Oe=B;mt(()=>Lt(ve,ge,Oe),te)}(B.shapeFlag&256||ge&&hr(ge.vnode)&&ge.vnode.shapeFlag&256)&&F.a&&mt(F.a,te),F.isMounted=!0,B=K=J=null}},fe=F.effect=new Zr(ue,Mt,()=>Yo(ae),F.scope),ae=F.update=()=>{fe.dirty&&fe.run()};ae.id=F.uid,tr(F,!0),ae()},O=(F,B,K)=>{B.component=F;const J=F.vnode.props;F.vnode=B,F.next=null,q0(F,B.props,J,K),eb(F,B.children,K),xr(),Tu(F),Er()},I=(F,B,K,J,te,ce,pe,ue,fe=!1)=>{const ae=F&&F.children,ve=F?F.shapeFlag:0,Ee=B.children,{patchFlag:Ae,shapeFlag:q}=B;if(Ae>0){if(Ae&128){P(ae,Ee,K,J,te,ce,pe,ue,fe);return}else if(Ae&256){N(ae,Ee,K,J,te,ce,pe,ue,fe);return}}q&8?(ve&16&&Q(ae,te,ce),Ee!==ae&&a(K,Ee)):ve&16?q&16?P(ae,Ee,K,J,te,ce,pe,ue,fe):Q(ae,te,ce,!0):(ve&8&&a(K,""),q&16&&L(Ee,K,J,te,ce,pe,ue,fe))},N=(F,B,K,J,te,ce,pe,ue,fe)=>{F=F||Br,B=B||Br;const ae=F.length,ve=B.length,Ee=Math.min(ae,ve);let Ae;for(Ae=0;Ae<Ee;Ae++){const q=B[Ae]=fe?Bn(B[Ae]):Ft(B[Ae]);g(F[Ae],q,K,null,te,ce,pe,ue,fe)}ae>ve?Q(F,te,ce,!0,!1,Ee):L(B,K,J,te,ce,pe,ue,fe,Ee)},P=(F,B,K,J,te,ce,pe,ue,fe)=>{let ae=0;const ve=B.length;let Ee=F.length-1,Ae=ve-1;for(;ae<=Ee&&ae<=Ae;){const q=F[ae],le=B[ae]=fe?Bn(B[ae]):Ft(B[ae]);if(Kt(q,le))g(q,le,K,null,te,ce,pe,ue,fe);else break;ae++}for(;ae<=Ee&&ae<=Ae;){const q=F[Ee],le=B[Ae]=fe?Bn(B[Ae]):Ft(B[Ae]);if(Kt(q,le))g(q,le,K,null,te,ce,pe,ue,fe);else break;Ee--,Ae--}if(ae>Ee){if(ae<=Ae){const q=Ae+1,le=q<ve?B[q].el:J;for(;ae<=Ae;)g(null,B[ae]=fe?Bn(B[ae]):Ft(B[ae]),K,le,te,ce,pe,ue,fe),ae++}}else if(ae>Ae)for(;ae<=Ee;)j(F[ae],te,ce,!0),ae++;else{const q=ae,le=ae,ge=new Map;for(ae=le;ae<=Ae;ae++){const Xe=B[ae]=fe?Bn(B[ae]):Ft(B[ae]);Xe.key!=null&&ge.set(Xe.key,ae)}let ke,Oe=0;const He=Ae-le+1;let Qe=!1,nt=0;const Ke=new Array(He);for(ae=0;ae<He;ae++)Ke[ae]=0;for(ae=q;ae<=Ee;ae++){const Xe=F[ae];if(Oe>=He){j(Xe,te,ce,!0);continue}let wt;if(Xe.key!=null)wt=ge.get(Xe.key);else for(ke=le;ke<=Ae;ke++)if(Ke[ke-le]===0&&Kt(Xe,B[ke])){wt=ke;break}wt===void 0?j(Xe,te,ce,!0):(Ke[wt-le]=ae+1,wt>=nt?nt=wt:Qe=!0,g(Xe,B[wt],K,null,te,ce,pe,ue,fe),Oe++)}const je=Qe?ib(Ke):Br;for(ke=je.length-1,ae=He-1;ae>=0;ae--){const Xe=le+ae,wt=B[Xe],vi=Xe+1<ve?B[Xe+1].el:J;Ke[ae]===0?g(null,wt,K,vi,te,ce,pe,ue,fe):Qe&&(ke<0||ae!==je[ke]?W(wt,K,vi,2):ke--)}}},W=(F,B,K,J,te=null)=>{const{el:ce,type:pe,transition:ue,children:fe,shapeFlag:ae}=F;if(ae&6){W(F.component.subTree,B,K,J);return}if(ae&128){F.suspense.move(B,K,J);return}if(ae&64){pe.move(F,B,K,z);return}if(pe===Ne){r(ce,B,K);for(let Ee=0;Ee<fe.length;Ee++)W(fe[Ee],B,K,J);r(F.anchor,B,K);return}if(pe===fr){k(F,B,K);return}if(J!==2&&ae&1&&ue)if(J===0)ue.beforeEnter(ce),r(ce,B,K),mt(()=>ue.enter(ce),te);else{const{leave:Ee,delayLeave:Ae,afterLeave:q}=ue,le=()=>r(ce,B,K),ge=()=>{Ee(ce,()=>{le(),q&&q()})};Ae?Ae(ce,le,ge):ge()}else r(ce,B,K)},j=(F,B,K,J=!1,te=!1)=>{const{type:ce,props:pe,ref:ue,children:fe,dynamicChildren:ae,shapeFlag:ve,patchFlag:Ee,dirs:Ae}=F;if(ue!=null&&mo(ue,null,K,F,!0),ve&256){B.ctx.deactivate(F);return}const q=ve&1&&Ae,le=!hr(F);let ge;if(le&&(ge=pe&&pe.onVnodeBeforeUnmount)&&Lt(ge,B,F),ve&6)G(F.component,K,J);else{if(ve&128){F.suspense.unmount(K,J);return}q&&tn(F,null,B,"beforeUnmount"),ve&64?F.type.remove(F,B,K,te,z,J):ae&&(ce!==Ne||Ee>0&&Ee&64)?Q(ae,B,K,!1,!0):(ce===Ne&&Ee&384||!te&&ve&16)&&Q(fe,B,K),J&&V(F)}(le&&(ge=pe&&pe.onVnodeUnmounted)||q)&&mt(()=>{ge&&Lt(ge,B,F),q&&tn(F,null,B,"unmounted")},K)},V=F=>{const{type:B,el:K,anchor:J,transition:te}=F;if(B===Ne){H(K,J);return}if(B===fr){C(F);return}const ce=()=>{l(K),te&&!te.persisted&&te.afterLeave&&te.afterLeave()};if(F.shapeFlag&1&&te&&!te.persisted){const{leave:pe,delayLeave:ue}=te,fe=()=>pe(K,ce);ue?ue(F.el,ce,fe):fe()}else ce()},H=(F,B)=>{let K;for(;F!==B;)K=c(F),l(F),F=K;l(B)},G=(F,B,K)=>{const{bum:J,scope:te,update:ce,subTree:pe,um:ue}=F;J&&Ur(J),te.stop(),ce&&(ce.active=!1,j(pe,F,B,K)),ue&&mt(ue,B),mt(()=>{F.isUnmounted=!0},B),B&&B.pendingBranch&&!B.isUnmounted&&F.asyncDep&&!F.asyncResolved&&F.suspenseId===B.pendingId&&(B.deps--,B.deps===0&&B.resolve())},Q=(F,B,K,J=!1,te=!1,ce=0)=>{for(let pe=ce;pe<F.length;pe++)j(F[pe],B,K,J,te)},U=F=>F.shapeFlag&6?U(F.component.subTree):F.shapeFlag&128?F.suspense.next():c(F.anchor||F.el);let X=!1;const Y=(F,B,K)=>{F==null?B._vnode&&j(B._vnode,null,null,!0):g(B._vnode||null,F,B,null,null,null,K),X||(X=!0,Tu(),po(),X=!1),B._vnode=F},z={p:g,um:j,m:W,r:V,mt:w,mc:L,pc:I,pbc:M,n:U,o:e};let ee,he;return t&&([ee,he]=t(z)),{render:Y,hydrate:ee,createApp:Y0(Y,ee)}}function Ia({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function tr({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Md(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ec(e,t,n=!1){const r=e.children,l=t.children;if(_e(r)&&_e(l))for(let s=0;s<r.length;s++){const u=r[s];let d=l[s];d.shapeFlag&1&&!d.dynamicChildren&&((d.patchFlag<=0||d.patchFlag===32)&&(d=l[s]=Bn(l[s]),d.el=u.el),n||Ec(u,d)),d.type===yr&&(d.el=u.el)}}function ib(e){const t=e.slice(),n=[0];let r,l,s,u,d;const o=e.length;for(r=0;r<o;r++){const p=e[r];if(p!==0){if(l=n[n.length-1],e[l]<p){t[r]=l,n.push(r);continue}for(s=0,u=n.length-1;s<u;)d=s+u>>1,e[n[d]]<p?s=d+1:u=d;p<e[n[s]]&&(s>0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,u=n[s-1];s-- >0;)n[s]=u,u=t[u];return n}function Od(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Od(t)}const sb=e=>e.__isTeleport,Li=e=>e&&(e.disabled||e.disabled===""),Uu=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Vu=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,yl=(e,t)=>{const n=e&&e.to;return at(n)?t?t(n):null:n},ob={name:"Teleport",__isTeleport:!0,process(e,t,n,r,l,s,u,d,o,p){const{mc:a,pc:i,pbc:c,o:{insert:h,querySelector:f,createText:g,createComment:m}}=p,v=Li(t.props);let{shapeFlag:y,children:k,dynamicChildren:C}=t;if(e==null){const S=t.el=g(""),b=t.anchor=g("");h(S,n,r),h(b,n,r);const E=t.target=yl(t.props,f),L=t.targetAnchor=g("");E&&(h(L,E),u==="svg"||Uu(E)?u="svg":(u==="mathml"||Vu(E))&&(u="mathml"));const x=(M,_)=>{y&16&&a(k,M,_,l,s,u,d,o)};v?x(n,b):E&&x(E,L)}else{t.el=e.el;const S=t.anchor=e.anchor,b=t.target=e.target,E=t.targetAnchor=e.targetAnchor,L=Li(e.props),x=L?n:b,M=L?S:E;if(u==="svg"||Uu(b)?u="svg":(u==="mathml"||Vu(b))&&(u="mathml"),C?(c(e.dynamicChildren,C,x,l,s,u,d),Ec(e,t,!0)):o||i(e,t,x,M,l,s,u,d,!1),v)L?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Gs(t,n,S,p,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const _=t.target=yl(t.props,f);_&&Gs(t,_,null,p,0)}else L&&Gs(t,b,E,p,1)}Id(t)},remove(e,t,n,r,{um:l,o:{remove:s}},u){const{shapeFlag:d,children:o,anchor:p,targetAnchor:a,target:i,props:c}=e;if(i&&s(a),u&&s(p),d&16){const h=u||!Li(c);for(let f=0;f<o.length;f++){const g=o[f];l(g,t,n,h,!!g.dynamicChildren)}}},move:Gs,hydrate:ab};function Gs(e,t,n,{o:{insert:r},m:l},s=2){s===0&&r(e.targetAnchor,t,n);const{el:u,anchor:d,shapeFlag:o,children:p,props:a}=e,i=s===2;if(i&&r(u,t,n),(!i||Li(a))&&o&16)for(let c=0;c<p.length;c++)l(p[c],t,n,2);i&&r(d,t,n)}function ab(e,t,n,r,l,s,{o:{nextSibling:u,parentNode:d,querySelector:o}},p){const a=t.target=yl(t.props,o);if(a){const i=a._lpa||a.firstChild;if(t.shapeFlag&16)if(Li(t.props))t.anchor=p(u(e),t,d(e),n,r,l,s),t.targetAnchor=i;else{t.anchor=u(e);let c=i;for(;c;)if(c=u(c),c&&c.nodeType===8&&c.data==="teleport anchor"){t.targetAnchor=c,a._lpa=t.targetAnchor&&u(t.targetAnchor);break}p(i,t,a,n,r,l,s)}Id(t)}return t.anchor&&u(t.anchor)}const lb=ob;function Id(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n&&n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const Ne=Symbol.for("v-fgt"),yr=Symbol.for("v-txt"),$t=Symbol.for("v-cmt"),fr=Symbol.for("v-stc"),Mi=[];let Ot=null;function Z(e=!1){Mi.push(Ot=e?null:[])}function Nd(){Mi.pop(),Ot=Mi[Mi.length-1]||null}let br=1;function bl(e){br+=e}function Dd(e){return e.dynamicChildren=br>0?Ot||Br:null,Nd(),br>0&&Ot&&Ot.push(e),e}function se(e,t,n,r,l,s){return Dd(D(e,t,n,r,l,s,!0))}function Se(e,t,n,r,l){return Dd(oe(e,t,n,r,l,!0))}function Zn(e){return e?e.__v_isVNode===!0:!1}function Kt(e,t){return e.type===t.type&&e.key===t.key}function cb(e){}const ia="__vInternal",Fd=({key:e})=>e??null,Qs=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?at(e)||yt(e)||Ie(e)?{i:ht,r:e,k:t,f:!!n}:e:null);function D(e,t=null,n=null,r=0,l=null,s=e===Ne?0:1,u=!1,d=!1){const o={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Fd(t),ref:t&&Qs(t),scopeId:Xo,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:l,dynamicChildren:null,appContext:null,ctx:ht};return d?(Rc(o,n),s&128&&e.normalize(o)):n&&(o.shapeFlag|=at(n)?8:16),br>0&&!u&&Ot&&(o.patchFlag>0||s&6)&&o.patchFlag!==32&&Ot.push(o),o}const oe=ub;function ub(e,t=null,n=null,r=0,l=null,s=!1){if((!e||e===ed)&&(e=$t),Zn(e)){const d=an(e,t,!0);return n&&Rc(d,n),br>0&&!s&&Ot&&(d.shapeFlag&6?Ot[Ot.indexOf(e)]=d:Ot.push(d)),d.patchFlag|=-2,d}if(vb(e)&&(e=e.__vccOpts),t){t=Pd(t);let{class:d,style:o}=t;d&&!at(d)&&(t.class=ci(d)),qe(o)&&(gc(o)&&!_e(o)&&(o=ot({},o)),t.style=gs(o))}const u=at(e)?1:td(e)?128:sb(e)?64:qe(e)?4:Ie(e)?2:0;return D(e,t,n,r,l,u,s,!0)}function Pd(e){return e?gc(e)||ia in e?ot({},e):e:null}function an(e,t,n=!1){const{props:r,ref:l,patchFlag:s,children:u}=e,d=t?Bd(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&Fd(d),ref:t&&t.ref?n&&l?_e(l)?l.concat(Qs(t)):[l,Qs(t)]:Qs(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:u,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ne?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&an(e.ssContent),ssFallback:e.ssFallback&&an(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function et(e=" ",t=0){return oe(yr,null,e,t)}function sa(e,t){const n=oe(fr,null,e);return n.staticCount=t,n}function me(e="",t=!1){return t?(Z(),Se($t,null,e)):oe($t,null,e)}function Ft(e){return e==null||typeof e=="boolean"?oe($t):_e(e)?oe(Ne,null,e.slice()):typeof e=="object"?Bn(e):oe(yr,null,String(e))}function Bn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:an(e)}function Rc(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(_e(t))n=16;else if(typeof t=="object")if(r&65){const l=t.default;l&&(l._c&&(l._d=!1),Rc(e,l()),l._c&&(l._d=!0));return}else{n=32;const l=t._;!l&&!(ia in t)?t._ctx=ht:l===3&&ht&&(ht.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ie(t)?(t={default:t,_ctx:ht},n=32):(t=String(t),r&64?(n=16,t=[et(t)]):n=8);e.children=t,e.shapeFlag|=n}function Bd(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const l in r)if(l==="class")t.class!==r.class&&(t.class=ci([t.class,r.class]));else if(l==="style")t.style=gs([t.style,r.style]);else if(ps(l)){const s=t[l],u=r[l];u&&s!==u&&!(_e(s)&&s.includes(u))&&(t[l]=s?[].concat(s,u):u)}else l!==""&&(t[l]=r[l])}return t}function Lt(e,t,n,r=null){Bt(e,t,7,[n,r])}const hb=Sd();let fb=0;function Wd(e,t,n){const r=e.type,l=(t?t.appContext:e.appContext)||hb,s={uid:fb++,vnode:e,type:r,parent:t,appContext:l,root:null,next:null,subTree:null,effect:null,update:null,scope:new cc(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(l.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ad(r,l),emitsOptions:Jf(r,l),emit:null,emitted:null,propsDefaults:Ze,inheritAttrs:r.inheritAttrs,ctx:Ze,data:Ze,props:Ze,attrs:Ze,slots:Ze,refs:Ze,setupState:Ze,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 s.ctx={_:s},s.root=t?t.root:s,s.emit=r0.bind(null,s),e.ce&&e.ce(s),s}let ft=null;const Gt=()=>ft||ht;let vo,wl;{const e=kf(),t=(n,r)=>{let l;return(l=e[n])||(l=e[n]=[]),l.push(r),s=>{l.length>1?l.forEach(u=>u(s)):l[0](s)}};vo=t("__VUE_INSTANCE_SETTERS__",n=>ft=n),wl=t("__VUE_SSR_SETTERS__",n=>ys=n)}const wr=e=>{const t=ft;return vo(e),e.scope.on(),()=>{e.scope.off(),vo(t)}},_l=()=>{ft&&ft.scope.off(),vo(null)};function Hd(e){return e.vnode.shapeFlag&4}let ys=!1;function Ud(e,t=!1){t&&wl(t);const{props:n,children:r}=e.vnode,l=Hd(e);X0(e,n,l,t),J0(e,r);const s=l?db(e,t):void 0;return t&&wl(!1),s}function db(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=jo(new Proxy(e.ctx,pl));const{setup:r}=n;if(r){const l=e.setupContext=r.length>1?zd(e):null,s=wr(e);xr();const u=bn(r,e,0,[e.props,l]);if(Er(),s(),ac(u)){if(u.then(_l,_l),t)return u.then(d=>{$l(e,d,t)}).catch(d=>{Rr(d,e,0)});e.asyncDep=u}else $l(e,u,t)}else Vd(e,t)}function $l(e,t,n){Ie(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:qe(t)&&(e.setupState=yc(t)),Vd(e,n)}let yo,Sl;function pb(e){yo=e,Sl=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,E0))}}const gb=()=>!yo;function Vd(e,t,n){const r=e.type;if(!e.render){if(!t&&yo&&!r.render){const l=r.template||kc(e).template;if(l){const{isCustomElement:s,compilerOptions:u}=e.appContext.config,{delimiters:d,compilerOptions:o}=r,p=ot(ot({isCustomElement:s,delimiters:d},u),o);r.render=yo(l,p)}}e.render=r.render||Mt,Sl&&Sl(e)}{const l=wr(e);xr();try{U0(e)}finally{Er(),l()}}}function mb(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return It(e,"get","$attrs"),t[n]}}))}function zd(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return mb(e)},slots:e.slots,emit:e.emit,expose:t}}function oa(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(yc(jo(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ri)return Ri[n](e)},has(t,n){return n in t||n in Ri}}))}function Cl(e,t=!0){return Ie(e)?e.displayName||e.name:e.name||t&&e.__name}function vb(e){return Ie(e)&&"__vccOpts"in e}const Le=(e,t)=>By(e,t,ys);function yb(e,t,n=Ze){const r=Gt(),l=xt(t),s=Pt(t),u=Go((o,p)=>{let a;return ad(()=>{const i=e[t];Qt(a,i)&&(a=i,p())}),{get(){return o(),n.get?n.get(a):a},set(i){const c=r.vnode.props;!(c&&(t in c||l in c||s in c)&&(`onUpdate:${t}`in c||`onUpdate:${l}`in c||`onUpdate:${s}`in c))&&Qt(i,a)&&(a=i,p()),r.emit(`update:${t}`,n.set?n.set(i):i)}}}),d=t==="modelValue"?"modelModifiers":`${t}Modifiers`;return u[Symbol.iterator]=()=>{let o=0;return{next(){return o<2?{value:o++?e[d]||{}:u,done:!1}:{done:!0}}}},u}function di(e,t,n){const r=arguments.length;return r===2?qe(t)&&!_e(t)?Zn(t)?oe(e,null,[t]):oe(e,t):oe(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Zn(n)&&(n=[n]),oe(e,t,n))}function bb(){}function wb(e,t,n,r){const l=n[r];if(l&&jd(l,e))return l;const s=t();return s.memo=e.slice(),n[r]=s}function jd(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r<n.length;r++)if(Qt(n[r],t[r]))return!1;return br>0&&Ot&&Ot.push(e),!0}const Gd="3.4.21",_b=Mt,$b=Qy,Sb=Lr,Cb=Qf,Ab={createComponentInstance:Wd,setupComponent:Ud,renderComponentRoot:qs,setCurrentRenderingInstance:Gi,isVNode:Zn,normalizeVNode:Ft},kb=Ab,xb=null,Eb=null,Rb=null;/**
775
+ * @vue/runtime-dom v3.4.21
776
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
777
+ * @license MIT
778
+ **/const Tb="http://www.w3.org/2000/svg",Lb="http://www.w3.org/1998/Math/MathML",Wn=typeof document<"u"?document:null,zu=Wn&&Wn.createElement("template"),Mb={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const l=t==="svg"?Wn.createElementNS(Tb,e):t==="mathml"?Wn.createElementNS(Lb,e):Wn.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&l.setAttribute("multiple",r.multiple),l},createText:e=>Wn.createTextNode(e),createComment:e=>Wn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Wn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,l,s){const u=n?n.previousSibling:t.lastChild;if(l&&(l===s||l.nextSibling))for(;t.insertBefore(l.cloneNode(!0),n),!(l===s||!(l=l.nextSibling)););else{zu.innerHTML=r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e;const d=zu.content;if(r==="svg"||r==="mathml"){const o=d.firstChild;for(;o.firstChild;)d.appendChild(o.firstChild);d.removeChild(o)}t.insertBefore(d,n)}return[u?u.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},On="transition",yi="animation",qr=Symbol("_vtc"),Tc=(e,{slots:t})=>di(cd,Yd(e),t);Tc.displayName="Transition";const Kd={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Ob=Tc.props=ot({},Ac,Kd),nr=(e,t=[])=>{_e(e)?e.forEach(n=>n(...t)):e&&e(...t)},ju=e=>e?_e(e)?e.some(t=>t.length>1):e.length>1:!1;function Yd(e){const t={};for(const A in e)A in Kd||(t[A]=e[A]);if(e.css===!1)return t;const{name:n="v",type:r,duration:l,enterFromClass:s=`${n}-enter-from`,enterActiveClass:u=`${n}-enter-active`,enterToClass:d=`${n}-enter-to`,appearFromClass:o=s,appearActiveClass:p=u,appearToClass:a=d,leaveFromClass:i=`${n}-leave-from`,leaveActiveClass:c=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,f=Ib(l),g=f&&f[0],m=f&&f[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:k,onLeave:C,onLeaveCancelled:S,onBeforeAppear:b=v,onAppear:E=y,onAppearCancelled:L=k}=t,x=(A,$,w)=>{Dn(A,$?a:d),Dn(A,$?p:u),w&&w()},M=(A,$)=>{A._isLeaving=!1,Dn(A,i),Dn(A,h),Dn(A,c),$&&$()},_=A=>($,w)=>{const R=A?E:y,T=()=>x($,A,w);nr(R,[$,T]),Gu(()=>{Dn($,A?o:s),dn($,A?a:d),ju(R)||Ku($,r,g,T)})};return ot(t,{onBeforeEnter(A){nr(v,[A]),dn(A,s),dn(A,u)},onBeforeAppear(A){nr(b,[A]),dn(A,o),dn(A,p)},onEnter:_(!1),onAppear:_(!0),onLeave(A,$){A._isLeaving=!0;const w=()=>M(A,$);dn(A,i),Xd(),dn(A,c),Gu(()=>{A._isLeaving&&(Dn(A,i),dn(A,h),ju(C)||Ku(A,r,m,w))}),nr(C,[A,w])},onEnterCancelled(A){x(A,!1),nr(k,[A])},onAppearCancelled(A){x(A,!0),nr(L,[A])},onLeaveCancelled(A){M(A),nr(S,[A])}})}function Ib(e){if(e==null)return null;if(qe(e))return[Na(e.enter),Na(e.leave)];{const t=Na(e);return[t,t]}}function Na(e){return uo(e)}function dn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[qr]||(e[qr]=new Set)).add(t)}function Dn(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[qr];n&&(n.delete(t),n.size||(e[qr]=void 0))}function Gu(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Nb=0;function Ku(e,t,n,r){const l=e._endId=++Nb,s=()=>{l===e._endId&&r()};if(n)return setTimeout(s,n);const{type:u,timeout:d,propCount:o}=Zd(e,t);if(!u)return r();const p=u+"end";let a=0;const i=()=>{e.removeEventListener(p,c),s()},c=h=>{h.target===e&&++a>=o&&i()};setTimeout(()=>{a<o&&i()},d+1),e.addEventListener(p,c)}function Zd(e,t){const n=window.getComputedStyle(e),r=f=>(n[f]||"").split(", "),l=r(`${On}Delay`),s=r(`${On}Duration`),u=Yu(l,s),d=r(`${yi}Delay`),o=r(`${yi}Duration`),p=Yu(d,o);let a=null,i=0,c=0;t===On?u>0&&(a=On,i=u,c=s.length):t===yi?p>0&&(a=yi,i=p,c=o.length):(i=Math.max(u,p),a=i>0?u>p?On:yi:null,c=a?a===On?s.length:o.length:0);const h=a===On&&/\b(transform|all)(,|$)/.test(r(`${On}Property`).toString());return{type:a,timeout:i,propCount:c,hasTransform:h}}function Yu(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>Zu(n)+Zu(e[r])))}function Zu(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Xd(){return document.body.offsetHeight}function Db(e,t,n){const r=e[qr];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const bo=Symbol("_vod"),qd=Symbol("_vsh"),Qd={beforeMount(e,{value:t},{transition:n}){e[bo]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):bi(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),bi(e,!0),r.enter(e)):r.leave(e,()=>{bi(e,!1)}):bi(e,t))},beforeUnmount(e,{value:t}){bi(e,t)}};function bi(e,t){e.style.display=t?e[bo]:"none",e[qd]=!t}function Fb(){Qd.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const Jd=Symbol("");function Pb(e){const t=Gt();if(!t)return;const n=t.ut=(l=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(s=>kl(s,l))},r=()=>{const l=e(t.proxy);Al(t.subTree,l),n(l)};od(r),lt(()=>{const l=new MutationObserver(r);l.observe(t.subTree.el.parentNode,{childList:!0}),ra(()=>l.disconnect())})}function Al(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Al(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)kl(e.el,t);else if(e.type===Ne)e.children.forEach(n=>Al(n,t));else if(e.type===fr){let{el:n,anchor:r}=e;for(;n&&(kl(n,t),n!==r);)n=n.nextSibling}}function kl(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const l in t)n.setProperty(`--${l}`,t[l]),r+=`--${l}: ${t[l]};`;n[Jd]=r}}const Bb=/(^|;)\s*display\s*:/;function Wb(e,t,n){const r=e.style,l=at(n);let s=!1;if(n&&!l){if(t)if(at(t))for(const u of t.split(";")){const d=u.slice(0,u.indexOf(":")).trim();n[d]==null&&Js(r,d,"")}else for(const u in t)n[u]==null&&Js(r,u,"");for(const u in n)u==="display"&&(s=!0),Js(r,u,n[u])}else if(l){if(t!==n){const u=r[Jd];u&&(n+=";"+u),r.cssText=n,s=Bb.test(n)}}else t&&e.removeAttribute("style");bo in e&&(e[bo]=s?r.display:"",e[qd]&&(r.display="none"))}const Xu=/\s*!important$/;function Js(e,t,n){if(_e(n))n.forEach(r=>Js(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Hb(e,t);Xu.test(n)?e.setProperty(Pt(r),n.replace(Xu,""),"important"):e[r]=n}}const qu=["Webkit","Moz","ms"],Da={};function Hb(e,t){const n=Da[t];if(n)return n;let r=xt(t);if(r!=="filter"&&r in e)return Da[t]=r;r=li(r);for(let l=0;l<qu.length;l++){const s=qu[l]+r;if(s in e)return Da[t]=s}return t}const Qu="http://www.w3.org/1999/xlink";function Ub(e,t,n,r,l){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Qu,t.slice(6,t.length)):e.setAttributeNS(Qu,t,n);else{const s=py(t);n==null||s&&!xf(n)?e.removeAttribute(t):e.setAttribute(t,s?"":n)}}function Vb(e,t,n,r,l,s,u){if(t==="innerHTML"||t==="textContent"){r&&u(r,l,s),e[t]=n??"";return}const d=e.tagName;if(t==="value"&&d!=="PROGRESS"&&!d.includes("-")){const p=d==="OPTION"?e.getAttribute("value")||"":e.value,a=n??"";(p!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let o=!1;if(n===""||n==null){const p=typeof e[t];p==="boolean"?n=xf(n):n==null&&p==="string"?(n="",o=!0):p==="number"&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(t)}function pn(e,t,n,r){e.addEventListener(t,n,r)}function zb(e,t,n,r){e.removeEventListener(t,n,r)}const Ju=Symbol("_vei");function jb(e,t,n,r,l=null){const s=e[Ju]||(e[Ju]={}),u=s[t];if(r&&u)u.value=r;else{const[d,o]=Gb(t);if(r){const p=s[t]=Zb(r,l);pn(e,d,p,o)}else u&&(zb(e,d,u,o),s[t]=void 0)}}const eh=/(?:Once|Passive|Capture)$/;function Gb(e){let t;if(eh.test(e)){t={};let r;for(;r=e.match(eh);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Pt(e.slice(2)),t]}let Fa=0;const Kb=Promise.resolve(),Yb=()=>Fa||(Kb.then(()=>Fa=0),Fa=Date.now());function Zb(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Bt(Xb(r,n.value),t,5,[r])};return n.value=e,n.attached=Yb(),n}function Xb(e,t){if(_e(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>l=>!l._stopped&&r&&r(l))}else return t}const th=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,qb=(e,t,n,r,l,s,u,d,o)=>{const p=l==="svg";t==="class"?Db(e,r,p):t==="style"?Wb(e,n,r):ps(t)?sc(t)||jb(e,t,n,r,u):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Qb(e,t,r,p))?Vb(e,t,r,s,u,d,o):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Ub(e,t,r,p))};function Qb(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&th(t)&&Ie(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const l=e.tagName;if(l==="IMG"||l==="VIDEO"||l==="CANVAS"||l==="SOURCE")return!1}return th(t)&&at(n)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function ep(e,t){const n=Ce(e);class r extends aa{constructor(s){super(n,s,t)}}return r.def=n,r}/*! #__NO_SIDE_EFFECTS__ */const Jb=e=>ep(e,hp),ew=typeof HTMLElement<"u"?HTMLElement:class{};class aa extends ew{constructor(t,n={},r){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&r?r(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),hi(()=>{this._connected||(xl(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let r=0;r<this.attributes.length;r++)this._setAttr(this.attributes[r].name);this._ob=new MutationObserver(r=>{for(const l of r)this._setAttr(l.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(r,l=!1)=>{const{props:s,styles:u}=r;let d;if(s&&!_e(s))for(const o in s){const p=s[o];(p===Number||p&&p.type===Number)&&(o in this._props&&(this._props[o]=uo(this._props[o])),(d||(d=Object.create(null)))[xt(o)]=!0)}this._numberProps=d,l&&this._resolveProps(r),this._applyStyles(u),this._update()},n=this._def.__asyncLoader;n?n().then(r=>t(r,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,r=_e(n)?n:Object.keys(n||{});for(const l of Object.keys(this))l[0]!=="_"&&r.includes(l)&&this._setProp(l,this[l],!0,!1);for(const l of r.map(xt))Object.defineProperty(this,l,{get(){return this._getProp(l)},set(s){this._setProp(l,s)}})}_setAttr(t){let n=this.getAttribute(t);const r=xt(t);this._numberProps&&this._numberProps[r]&&(n=uo(n)),this._setProp(r,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,l=!0){n!==this._props[t]&&(this._props[t]=n,l&&this._instance&&this._update(),r&&(n===!0?this.setAttribute(Pt(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Pt(t),n+""):n||this.removeAttribute(Pt(t))))}_update(){xl(this._createVNode(),this.shadowRoot)}_createVNode(){const t=oe(this._def,ot({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const r=(s,u)=>{this.dispatchEvent(new CustomEvent(s,{detail:u}))};n.emit=(s,...u)=>{r(s,u),Pt(s)!==s&&r(Pt(s),u)};let l=this;for(;l=l&&(l.parentNode||l.host);)if(l instanceof aa){n.parent=l._instance,n.provides=l._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const r=document.createElement("style");r.textContent=n,this.shadowRoot.appendChild(r)})}}function tw(e="$style"){{const t=Gt();if(!t)return Ze;const n=t.type.__cssModules;if(!n)return Ze;const r=n[e];return r||Ze}}const tp=new WeakMap,np=new WeakMap,wo=Symbol("_moveCb"),nh=Symbol("_enterCb"),rp={name:"TransitionGroup",props:ot({},Ob,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Gt(),r=Cc();let l,s;return na(()=>{if(!l.length)return;const u=e.moveClass||`${e.name||"v"}-move`;if(!aw(l[0].el,n.vnode.el,u))return;l.forEach(iw),l.forEach(sw);const d=l.filter(ow);Xd(),d.forEach(o=>{const p=o.el,a=p.style;dn(p,u),a.transform=a.webkitTransform=a.transitionDuration="";const i=p[wo]=c=>{c&&c.target!==p||(!c||/transform$/.test(c.propertyName))&&(p.removeEventListener("transitionend",i),p[wo]=null,Dn(p,u))};p.addEventListener("transitionend",i)})}),()=>{const u=We(e),d=Yd(u);let o=u.tag||Ne;l=s,s=t.default?ea(t.default()):[];for(let p=0;p<s.length;p++){const a=s[p];a.key!=null&&vr(a,Xr(a,d,r,n))}if(l)for(let p=0;p<l.length;p++){const a=l[p];vr(a,Xr(a,d,r,n)),tp.set(a,a.el.getBoundingClientRect())}return oe(o,null,s)}}},nw=e=>delete e.mode;rp.props;const rw=rp;function iw(e){const t=e.el;t[wo]&&t[wo](),t[nh]&&t[nh]()}function sw(e){np.set(e,e.el.getBoundingClientRect())}function ow(e){const t=tp.get(e),n=np.get(e),r=t.left-n.left,l=t.top-n.top;if(r||l){const s=e.el.style;return s.transform=s.webkitTransform=`translate(${r}px,${l}px)`,s.transitionDuration="0s",e}}function aw(e,t,n){const r=e.cloneNode(),l=e[qr];l&&l.forEach(d=>{d.split(/\s+/).forEach(o=>o&&r.classList.remove(o))}),n.split(/\s+/).forEach(d=>d&&r.classList.add(d)),r.style.display="none";const s=t.nodeType===1?t:t.parentNode;s.appendChild(r);const{hasTransform:u}=Zd(r);return s.removeChild(r),u}const Xn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return _e(t)?n=>Ur(t,n):t};function lw(e){e.target.composing=!0}function rh(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const zt=Symbol("_assign"),_r={created(e,{modifiers:{lazy:t,trim:n,number:r}},l){e[zt]=Xn(l);const s=r||l.props&&l.props.type==="number";pn(e,t?"change":"input",u=>{if(u.target.composing)return;let d=e.value;n&&(d=d.trim()),s&&(d=Hi(d)),e[zt](d)}),n&&pn(e,"change",()=>{e.value=e.value.trim()}),t||(pn(e,"compositionstart",lw),pn(e,"compositionend",rh),pn(e,"change",rh))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:l}},s){if(e[zt]=Xn(s),e.composing)return;const u=l||e.type==="number"?Hi(e.value):e.value,d=t??"";u!==d&&(document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===d)||(e.value=d))}},Lc={deep:!0,created(e,t,n){e[zt]=Xn(n),pn(e,"change",()=>{const r=e._modelValue,l=Qr(e),s=e.checked,u=e[zt];if(_e(r)){const d=Wo(r,l),o=d!==-1;if(s&&!o)u(r.concat(l));else if(!s&&o){const p=[...r];p.splice(d,1),u(p)}}else if(kr(r)){const d=new Set(r);s?d.add(l):d.delete(l),u(d)}else u(sp(e,s))})},mounted:ih,beforeUpdate(e,t,n){e[zt]=Xn(n),ih(e,t,n)}};function ih(e,{value:t,oldValue:n},r){e._modelValue=t,_e(t)?e.checked=Wo(t,r.props.value)>-1:kr(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=Yn(t,sp(e,!0)))}const Mc={created(e,{value:t},n){e.checked=Yn(t,n.props.value),e[zt]=Xn(n),pn(e,"change",()=>{e[zt](Qr(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[zt]=Xn(r),t!==n&&(e.checked=Yn(t,r.props.value))}},ip={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const l=kr(t);pn(e,"change",()=>{const s=Array.prototype.filter.call(e.options,u=>u.selected).map(u=>n?Hi(Qr(u)):Qr(u));e[zt](e.multiple?l?new Set(s):s:s[0]),e._assigning=!0,hi(()=>{e._assigning=!1})}),e[zt]=Xn(r)},mounted(e,{value:t,modifiers:{number:n}}){sh(e,t,n)},beforeUpdate(e,t,n){e[zt]=Xn(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||sh(e,t,n)}};function sh(e,t,n){const r=e.multiple,l=_e(t);if(!(r&&!l&&!kr(t))){for(let s=0,u=e.options.length;s<u;s++){const d=e.options[s],o=Qr(d);if(r)if(l){const p=typeof o;p==="string"||p==="number"?d.selected=t.includes(n?Hi(o):o):d.selected=Wo(t,o)>-1}else d.selected=t.has(o);else if(Yn(Qr(d),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Qr(e){return"_value"in e?e._value:e.value}function sp(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const op={created(e,t,n){Ks(e,t,n,null,"created")},mounted(e,t,n){Ks(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Ks(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Ks(e,t,n,r,"updated")}};function ap(e,t){switch(e){case"SELECT":return ip;case"TEXTAREA":return _r;default:switch(t){case"checkbox":return Lc;case"radio":return Mc;default:return _r}}}function Ks(e,t,n,r,l){const u=ap(e.tagName,n.props&&n.props.type)[l];u&&u(e,t,n,r)}function cw(){_r.getSSRProps=({value:e})=>({value:e}),Mc.getSSRProps=({value:e},t)=>{if(t.props&&Yn(t.props.value,e))return{checked:!0}},Lc.getSSRProps=({value:e},t)=>{if(_e(e)){if(t.props&&Wo(e,t.props.value)>-1)return{checked:!0}}else if(kr(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},op.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=ap(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const uw=["ctrl","shift","alt","meta"],hw={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>uw.some(n=>e[`${n}Key`]&&!t.includes(n))},fw=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(l,...s)=>{for(let u=0;u<t.length;u++){const d=hw[t[u]];if(d&&d(l,t))return}return e(l,...s)})},dw={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},pw=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=l=>{if(!("key"in l))return;const s=Pt(l.key);if(t.some(u=>u===s||dw[u]===s))return e(l)})},lp=ot({patchProp:qb},Mb);let Oi,oh=!1;function cp(){return Oi||(Oi=Rd(lp))}function up(){return Oi=oh?Oi:Td(lp),oh=!0,Oi}const xl=(...e)=>{cp().render(...e)},hp=(...e)=>{up().hydrate(...e)},fp=(...e)=>{const t=cp().createApp(...e),{mount:n}=t;return t.mount=r=>{const l=pp(r);if(!l)return;const s=t._component;!Ie(s)&&!s.render&&!s.template&&(s.template=l.innerHTML),l.innerHTML="";const u=n(l,!1,dp(l));return l instanceof Element&&(l.removeAttribute("v-cloak"),l.setAttribute("data-v-app","")),u},t},gw=(...e)=>{const t=up().createApp(...e),{mount:n}=t;return t.mount=r=>{const l=pp(r);if(l)return n(l,!0,dp(l))},t};function dp(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function pp(e){return at(e)?document.querySelector(e):e}let ah=!1;const mw=()=>{ah||(ah=!0,cw(),Fb())};/**
779
+ * vue v3.4.21
780
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
781
+ * @license MIT
782
+ **/const vw=()=>{},yw=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:cd,BaseTransitionPropsValidators:Ac,Comment:$t,DeprecationTypes:Rb,EffectScope:cc,ErrorCodes:qy,ErrorTypeStrings:$b,Fragment:Ne,KeepAlive:S0,ReactiveEffect:Zr,Static:fr,Suspense:d0,Teleport:lb,Text:yr,TrackOpTypes:Yy,Transition:Tc,TransitionGroup:rw,TriggerOpTypes:Zy,VueElement:aa,assertNumber:Xy,callWithAsyncErrorHandling:Bt,callWithErrorHandling:bn,camelize:xt,capitalize:li,cloneVNode:an,compatUtils:Eb,compile:vw,computed:Le,createApp:fp,createBlock:Se,createCommentVNode:me,createElementBlock:se,createElementVNode:D,createHydrationRenderer:Td,createPropsRestProxy:W0,createRenderer:Rd,createSSRApp:gw,createSlots:A0,createStaticVNode:sa,createTextVNode:et,createVNode:oe,customRef:Go,defineAsyncComponent:_0,defineComponent:Ce,defineCustomElement:ep,defineEmits:T0,defineExpose:L0,defineModel:I0,defineOptions:M0,defineProps:R0,defineSSRCustomElement:Jb,defineSlots:O0,devtools:Sb,effect:vy,effectScope:Rf,getCurrentInstance:Gt,getCurrentScope:uc,getTransitionRawChildren:ea,guardReactiveProps:Pd,h:di,handleError:Rr,hasInjectionContext:Z0,hydrate:hp,initCustomFormatter:bb,initDirectivesForSSR:mw,inject:Vt,isMemoSame:jd,isProxy:gc,isReactive:ur,isReadonly:mr,isRef:yt,isRuntimeOnly:gb,isShallow:Ui,isVNode:Zn,markRaw:jo,mergeDefaults:P0,mergeModels:B0,mergeProps:Bd,nextTick:hi,normalizeClass:ci,normalizeProps:fy,normalizeStyle:gs,onActivated:hd,onBeforeMount:pd,onBeforeUnmount:fi,onBeforeUpdate:gd,onDeactivated:fd,onErrorCaptured:bd,onMounted:lt,onRenderTracked:yd,onRenderTriggered:vd,onScopeDispose:Lf,onServerPrefetch:md,onUnmounted:ra,onUpdated:na,openBlock:Z,popScopeId:Qo,provide:Ti,proxyRefs:yc,pushScopeId:qo,queuePostFlushCb:fo,reactive:ui,readonly:Vo,ref:ze,registerRuntimeCompiler:pb,render:xl,renderList:Nt,renderSlot:k0,resolveComponent:re,resolveDirective:h0,resolveDynamicComponent:u0,resolveFilter:xb,resolveTransitionHooks:Xr,setBlockTracking:bl,setDevtoolsHook:Cb,setTransitionHooks:vr,shallowReactive:pc,shallowReadonly:Py,shallowRef:Gf,ssrContextKey:rd,ssrUtils:kb,stop:yy,toDisplayString:$e,toHandlerKey:Ei,toHandlers:x0,toRaw:We,toRef:Ko,toRefs:jy,toValue:Uy,transformVNodeArgs:cb,triggerRef:Hy,unref:yn,useAttrs:F0,useCssModule:tw,useCssVars:Pb,useModel:yb,useSSRContext:id,useSlots:D0,useTransitionState:Cc,vModelCheckbox:Lc,vModelDynamic:op,vModelRadio:Mc,vModelSelect:ip,vModelText:_r,vShow:Qd,version:Gd,warn:_b,watch:st,watchEffect:sd,watchPostEffect:od,watchSyncEffect:ad,withAsyncContext:H0,withCtx:Je,withDefaults:N0,withDirectives:Jo,withKeys:pw,withMemo:wb,withModifiers:fw,withScopeId:i0},Symbol.toStringTag,{value:"Module"}));function lh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function gn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lh(Object(n),!0).forEach(function(r){Tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _o(e){"@babel/helpers - typeof";return _o=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},_o(e)}function Tt(e,t,n){return t=$w(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bw(e,t){if(e==null)return{};var n={},r=Object.keys(e),l,s;for(s=0;s<r.length;s++)l=r[s],!(t.indexOf(l)>=0)&&(n[l]=e[l]);return n}function ww(e,t){if(e==null)return{};var n=bw(e,t),r,l;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(l=0;l<s.length;l++)r=s[l],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _w(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $w(e){var t=_w(e,"string");return typeof t=="symbol"?t:String(t)}var Sw=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},gp={exports:{}};(function(e){(function(t){var n=function(v,y,k){if(!p(y)||i(y)||c(y)||h(y)||o(y))return y;var C,S=0,b=0;if(a(y))for(C=[],b=y.length;S<b;S++)C.push(n(v,y[S],k));else{C={};for(var E in y)Object.prototype.hasOwnProperty.call(y,E)&&(C[v(E,k)]=n(v,y[E],k))}return C},r=function(v,y){y=y||{};var k=y.separator||"_",C=y.split||/(?=[A-Z])/;return v.split(C).join(k)},l=function(v){return f(v)?v:(v=v.replace(/[\-_\s]+(.)?/g,function(y,k){return k?k.toUpperCase():""}),v.substr(0,1).toLowerCase()+v.substr(1))},s=function(v){var y=l(v);return y.substr(0,1).toUpperCase()+y.substr(1)},u=function(v,y){return r(v,y).toLowerCase()},d=Object.prototype.toString,o=function(v){return typeof v=="function"},p=function(v){return v===Object(v)},a=function(v){return d.call(v)=="[object Array]"},i=function(v){return d.call(v)=="[object Date]"},c=function(v){return d.call(v)=="[object RegExp]"},h=function(v){return d.call(v)=="[object Boolean]"},f=function(v){return v=v-0,v===v},g=function(v,y){var k=y&&"process"in y?y.process:y;return typeof k!="function"?v:function(C,S){return k(C,v,S)}},m={camelize:l,decamelize:u,pascalize:s,depascalize:u,camelizeKeys:function(v,y){return n(g(l,y),v)},decamelizeKeys:function(v,y){return n(g(u,y),v,y)},pascalizeKeys:function(v,y){return n(g(s,y),v)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=m:t.humps=m})(Sw)})(gp);var Cw=gp.exports,Aw=["class","style"];function kw(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),l=Cw.camelize(n.slice(0,r)),s=n.slice(r+1).trim();return t[l]=s,t},{})}function xw(e){return e.split(/\s+/).reduce(function(t,n){return t[n]=!0,t},{})}function mp(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 mp(o)}),l=Object.keys(e.attributes||{}).reduce(function(o,p){var a=e.attributes[p];switch(p){case"class":o.class=xw(a);break;case"style":o.style=kw(a);break;default:o.attrs[p]=a}return o},{attrs:{},class:{},style:{}});n.class;var s=n.style,u=s===void 0?{}:s,d=ww(n,Aw);return di(e.tag,gn(gn(gn({},t),{},{class:l.class,style:gn(gn({},l.style),u)},l.attrs),d),r)}var vp=!1;try{vp=!0}catch{}function Ew(){if(!vp&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Pa(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Tt({},e,t):{}}function Rw(e){var t,n=(t={"fa-spin":e.spin,"fa-pulse":e.pulse,"fa-fw":e.fixedWidth,"fa-border":e.border,"fa-li":e.listItem,"fa-inverse":e.inverse,"fa-flip":e.flip===!0,"fa-flip-horizontal":e.flip==="horizontal"||e.flip==="both","fa-flip-vertical":e.flip==="vertical"||e.flip==="both"},Tt(t,"fa-".concat(e.size),e.size!==null),Tt(t,"fa-rotate-".concat(e.rotation),e.rotation!==null),Tt(t,"fa-pull-".concat(e.pull),e.pull!==null),Tt(t,"fa-swap-opacity",e.swapOpacity),Tt(t,"fa-bounce",e.bounce),Tt(t,"fa-shake",e.shake),Tt(t,"fa-beat",e.beat),Tt(t,"fa-fade",e.fade),Tt(t,"fa-beat-fade",e.beatFade),Tt(t,"fa-flash",e.flash),Tt(t,"fa-spin-pulse",e.spinPulse),Tt(t,"fa-spin-reverse",e.spinReverse),t);return Object.keys(n).map(function(r){return n[r]?r:null}).filter(function(r){return r})}function ch(e){if(e&&_o(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(al.icon)return al.icon(e);if(e===null)return null;if(_o(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}var Tw=Ce({name:"FontAwesomeIcon",props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:[Boolean,String],default:!1,validator:function(t){return[!0,!1,"horizontal","vertical","both"].indexOf(t)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},maskId:{type:String,default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(t){return["right","left"].indexOf(t)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(t){return[90,180,270].indexOf(Number.parseInt(t,10))>-1}},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(t){return["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(t)>-1}},spin:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},titleId:{type:String,default:null},inverse:{type:Boolean,default:!1},bounce:{type:Boolean,default:!1},shake:{type:Boolean,default:!1},beat:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},beatFade:{type:Boolean,default:!1},flash:{type:Boolean,default:!1},spinPulse:{type:Boolean,default:!1},spinReverse:{type:Boolean,default:!1}},setup:function(t,n){var r=n.attrs,l=Le(function(){return ch(t.icon)}),s=Le(function(){return Pa("classes",Rw(t))}),u=Le(function(){return Pa("transform",typeof t.transform=="string"?al.transform(t.transform):t.transform)}),d=Le(function(){return Pa("mask",ch(t.mask))}),o=Le(function(){return Iv(l.value,gn(gn(gn(gn({},s.value),u.value),d.value),{},{symbol:t.symbol,title:t.title,titleId:t.titleId,maskId:t.maskId}))});st(o,function(a){if(!a)return Ew("Could not find one or more icon(s)",l.value,d.value)},{immediate:!0});var p=Le(function(){return o.value?mp(o.value.abstract[0],{},r):null});return function(){return p.value}}});const Lw=Ce({name:"NavbarItem"}),Re=(e,t)=>{const n=e.__vccOpts||e;for(const[r,l]of t)n[r]=l;return n},la=e=>(qo("data-v-907b90b2"),e=e(),Qo(),e),Mw={role:"navigation","aria-label":"main navigation",class:"navbar is-fixed-top"},Ow=la(()=>D("div",{class:"navbar-brand"},[D("a",{class:"navbar-item"},[D("h1",{class:"title"},"Mihari")])],-1)),Iw={class:"navbar-menu"},Nw=la(()=>D("div",{class:"navbar-start"},null,-1)),Dw={class:"navbar-end"},Fw=la(()=>D("a",{class:"navbar-item"},[D("a",{href:"/redoc-static.html",target:"_blank",class:"navbar-item"},"API")],-1)),Pw=la(()=>D("a",{class:"navbar-item"},[D("a",{href:"https://github.com/ninoseki/mihari",target:"_blank",class:"navbar-item"},"GitHub")],-1));function Bw(e,t,n,r,l,s){const u=re("router-link");return Z(),se("nav",Mw,[Ow,D("div",Iw,[Nw,D("div",Dw,[oe(u,{class:"navbar-item",to:{name:"Alerts"}},{default:Je(()=>[et("Alerts")]),_:1}),oe(u,{class:"navbar-item",to:{name:"Artifacts"}},{default:Je(()=>[et("Artifacts")]),_:1}),oe(u,{class:"navbar-item",to:{name:"Rules"}},{default:Je(()=>[et("Rules")]),_:1}),oe(u,{class:"navbar-item",to:{name:"NewRule"}},{default:Je(()=>[et("New Rule")]),_:1}),oe(u,{class:"navbar-item",to:{name:"Config"}},{default:Je(()=>[et("Config")]),_:1}),Fw,Pw])])])}const Ww=Re(Lw,[["render",Bw],["__scopeId","data-v-907b90b2"]]),Hw=Ce({name:"App",components:{Navbar:Ww}}),Uw={class:"section is-medium"},Vw={class:"container"};function zw(e,t,n,r,l,s){const u=re("Navbar"),d=re("router-view");return Z(),se(Ne,null,[oe(u),D("section",Uw,[D("div",Vw,[oe(d)])])],64)}const jw=Re(Hw,[["render",zw]]);/*!
783
+ * vue-router v4.3.0
784
+ * (c) 2024 Eduardo San Martin Morote
785
+ * @license MIT
786
+ */const Mr=typeof document<"u";function Gw(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Ye=Object.assign;function Ba(e,t){const n={};for(const r in t){const l=t[r];n[r]=Jt(l)?l.map(e):e(l)}return n}const Ii=()=>{},Jt=Array.isArray,yp=/#/g,Kw=/&/g,Yw=/\//g,Zw=/=/g,Xw=/\?/g,bp=/\+/g,qw=/%5B/g,Qw=/%5D/g,wp=/%5E/g,Jw=/%60/g,_p=/%7B/g,e1=/%7C/g,$p=/%7D/g,t1=/%20/g;function Oc(e){return encodeURI(""+e).replace(e1,"|").replace(qw,"[").replace(Qw,"]")}function n1(e){return Oc(e).replace(_p,"{").replace($p,"}").replace(wp,"^")}function El(e){return Oc(e).replace(bp,"%2B").replace(t1,"+").replace(yp,"%23").replace(Kw,"%26").replace(Jw,"`").replace(_p,"{").replace($p,"}").replace(wp,"^")}function r1(e){return El(e).replace(Zw,"%3D")}function i1(e){return Oc(e).replace(yp,"%23").replace(Xw,"%3F")}function s1(e){return e==null?"":i1(e).replace(Yw,"%2F")}function Zi(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const o1=/\/$/,a1=e=>e.replace(o1,"");function Wa(e,t,n="/"){let r,l={},s="",u="";const d=t.indexOf("#");let o=t.indexOf("?");return d<o&&d>=0&&(o=-1),o>-1&&(r=t.slice(0,o),s=t.slice(o+1,d>-1?d:t.length),l=e(s)),d>-1&&(r=r||t.slice(0,d),u=t.slice(d,t.length)),r=h1(r??t,n),{fullPath:r+(s&&"?")+s+u,path:r,query:l,hash:Zi(u)}}function l1(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function uh(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function c1(e,t,n){const r=t.matched.length-1,l=n.matched.length-1;return r>-1&&r===l&&Jr(t.matched[r],n.matched[l])&&Sp(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Jr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Sp(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!u1(e[n],t[n]))return!1;return!0}function u1(e,t){return Jt(e)?hh(e,t):Jt(t)?hh(t,e):e===t}function hh(e,t){return Jt(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function h1(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),l=r[r.length-1];(l===".."||l===".")&&r.push("");let s=n.length-1,u,d;for(u=0;u<r.length;u++)if(d=r[u],d!==".")if(d==="..")s>1&&s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(u).join("/")}var Xi;(function(e){e.pop="pop",e.push="push"})(Xi||(Xi={}));var Ni;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ni||(Ni={}));function f1(e){if(!e)if(Mr){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),a1(e)}const d1=/^[^#]+#/;function p1(e,t){return e.replace(d1,"#")+t}function g1(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const ca=()=>({left:window.scrollX,top:window.scrollY});function m1(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),l=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!l)return;t=g1(l,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function fh(e,t){return(history.state?history.state.position-t:-1)+e}const Rl=new Map;function v1(e,t){Rl.set(e,t)}function y1(e){const t=Rl.get(e);return Rl.delete(e),t}let b1=()=>location.protocol+"//"+location.host;function Cp(e,t){const{pathname:n,search:r,hash:l}=t,s=e.indexOf("#");if(s>-1){let d=l.includes(e.slice(s))?e.slice(s).length:1,o=l.slice(d);return o[0]!=="/"&&(o="/"+o),uh(o,"")}return uh(n,e)+r+l}function w1(e,t,n,r){let l=[],s=[],u=null;const d=({state:c})=>{const h=Cp(e,location),f=n.value,g=t.value;let m=0;if(c){if(n.value=h,t.value=c,u&&u===f){u=null;return}m=g?c.position-g.position:0}else r(h);l.forEach(v=>{v(n.value,f,{delta:m,type:Xi.pop,direction:m?m>0?Ni.forward:Ni.back:Ni.unknown})})};function o(){u=n.value}function p(c){l.push(c);const h=()=>{const f=l.indexOf(c);f>-1&&l.splice(f,1)};return s.push(h),h}function a(){const{history:c}=window;c.state&&c.replaceState(Ye({},c.state,{scroll:ca()}),"")}function i(){for(const c of s)c();s=[],window.removeEventListener("popstate",d),window.removeEventListener("beforeunload",a)}return window.addEventListener("popstate",d),window.addEventListener("beforeunload",a,{passive:!0}),{pauseListeners:o,listen:p,destroy:i}}function dh(e,t,n,r=!1,l=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:l?ca():null}}function _1(e){const{history:t,location:n}=window,r={value:Cp(e,n)},l={value:t.state};l.value||s(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(o,p,a){const i=e.indexOf("#"),c=i>-1?(n.host&&document.querySelector("base")?e:e.slice(i))+o:b1()+e+o;try{t[a?"replaceState":"pushState"](p,"",c),l.value=p}catch(h){console.error(h),n[a?"replace":"assign"](c)}}function u(o,p){const a=Ye({},t.state,dh(l.value.back,o,l.value.forward,!0),p,{position:l.value.position});s(o,a,!0),r.value=o}function d(o,p){const a=Ye({},l.value,t.state,{forward:o,scroll:ca()});s(a.current,a,!0);const i=Ye({},dh(r.value,o,null),{position:a.position+1},p);s(o,i,!1),r.value=o}return{location:r,state:l,push:d,replace:u}}function $1(e){e=f1(e);const t=_1(e),n=w1(e,t.state,t.location,t.replace);function r(s,u=!0){u||n.pauseListeners(),history.go(s)}const l=Ye({location:"",base:e,go:r,createHref:p1.bind(null,e)},t,n);return Object.defineProperty(l,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(l,"state",{enumerable:!0,get:()=>t.state.value}),l}function S1(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),$1(e)}function C1(e){return typeof e=="string"||e&&typeof e=="object"}function Ap(e){return typeof e=="string"||typeof e=="symbol"}const In={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},kp=Symbol("");var ph;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(ph||(ph={}));function ei(e,t){return Ye(new Error,{type:e,[kp]:!0},t)}function fn(e,t){return e instanceof Error&&kp in e&&(t==null||!!(e.type&t))}const gh="[^/]+?",A1={sensitive:!1,strict:!1,start:!0,end:!0},k1=/[.+*?^${}()[\]/\\]/g;function x1(e,t){const n=Ye({},A1,t),r=[];let l=n.start?"^":"";const s=[];for(const p of e){const a=p.length?[]:[90];n.strict&&!p.length&&(l+="/");for(let i=0;i<p.length;i++){const c=p[i];let h=40+(n.sensitive?.25:0);if(c.type===0)i||(l+="/"),l+=c.value.replace(k1,"\\$&"),h+=40;else if(c.type===1){const{value:f,repeatable:g,optional:m,regexp:v}=c;s.push({name:f,repeatable:g,optional:m});const y=v||gh;if(y!==gh){h+=10;try{new RegExp(`(${y})`)}catch(C){throw new Error(`Invalid custom RegExp for param "${f}" (${y}): `+C.message)}}let k=g?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;i||(k=m&&p.length<2?`(?:/${k})`:"/"+k),m&&(k+="?"),l+=k,h+=20,m&&(h+=-8),g&&(h+=-20),y===".*"&&(h+=-50)}a.push(h)}r.push(a)}if(n.strict&&n.end){const p=r.length-1;r[p][r[p].length-1]+=.7000000000000001}n.strict||(l+="/?"),n.end?l+="$":n.strict&&(l+="(?:/|$)");const u=new RegExp(l,n.sensitive?"":"i");function d(p){const a=p.match(u),i={};if(!a)return null;for(let c=1;c<a.length;c++){const h=a[c]||"",f=s[c-1];i[f.name]=h&&f.repeatable?h.split("/"):h}return i}function o(p){let a="",i=!1;for(const c of e){(!i||!a.endsWith("/"))&&(a+="/"),i=!1;for(const h of c)if(h.type===0)a+=h.value;else if(h.type===1){const{value:f,repeatable:g,optional:m}=h,v=f in p?p[f]:"";if(Jt(v)&&!g)throw new Error(`Provided param "${f}" is an array but it is not repeatable (* or + modifiers)`);const y=Jt(v)?v.join("/"):v;if(!y)if(m)c.length<2&&(a.endsWith("/")?a=a.slice(0,-1):i=!0);else throw new Error(`Missing required param "${f}"`);a+=y}}return a||"/"}return{re:u,score:r,keys:s,parse:d,stringify:o}}function E1(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 R1(e,t){let n=0;const r=e.score,l=t.score;for(;n<r.length&&n<l.length;){const s=E1(r[n],l[n]);if(s)return s;n++}if(Math.abs(l.length-r.length)===1){if(mh(r))return 1;if(mh(l))return-1}return l.length-r.length}function mh(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const T1={type:0,value:""},L1=/[a-zA-Z0-9_]/;function M1(e){if(!e)return[[]];if(e==="/")return[[T1]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${p}": ${h}`)}let n=0,r=n;const l=[];let s;function u(){s&&l.push(s),s=[]}let d=0,o,p="",a="";function i(){p&&(n===0?s.push({type:0,value:p}):n===1||n===2||n===3?(s.length>1&&(o==="*"||o==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:p,regexp:a,repeatable:o==="*"||o==="+",optional:o==="*"||o==="?"})):t("Invalid state to consume buffer"),p="")}function c(){p+=o}for(;d<e.length;){if(o=e[d++],o==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:o==="/"?(p&&i(),u()):o===":"?(i(),n=1):c();break;case 4:c(),n=r;break;case 1:o==="("?n=2:L1.test(o)?c():(i(),n=0,o!=="*"&&o!=="?"&&o!=="+"&&d--);break;case 2:o===")"?a[a.length-1]=="\\"?a=a.slice(0,-1)+o:n=3:a+=o;break;case 3:i(),n=0,o!=="*"&&o!=="?"&&o!=="+"&&d--,a="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${p}"`),i(),u(),l}function O1(e,t,n){const r=x1(M1(e.path),n),l=Ye(r,{record:e,parent:t,children:[],alias:[]});return t&&!l.record.aliasOf==!t.record.aliasOf&&t.children.push(l),l}function I1(e,t){const n=[],r=new Map;t=bh({strict:!1,end:!0,sensitive:!1},t);function l(a){return r.get(a)}function s(a,i,c){const h=!c,f=N1(a);f.aliasOf=c&&c.record;const g=bh(t,a),m=[f];if("alias"in a){const k=typeof a.alias=="string"?[a.alias]:a.alias;for(const C of k)m.push(Ye({},f,{components:c?c.record.components:f.components,path:C,aliasOf:c?c.record:f}))}let v,y;for(const k of m){const{path:C}=k;if(i&&C[0]!=="/"){const S=i.record.path,b=S[S.length-1]==="/"?"":"/";k.path=i.record.path+(C&&b+C)}if(v=O1(k,i,g),c?c.alias.push(v):(y=y||v,y!==v&&y.alias.push(v),h&&a.name&&!yh(v)&&u(a.name)),f.children){const S=f.children;for(let b=0;b<S.length;b++)s(S[b],v,c&&c.children[b])}c=c||v,(v.record.components&&Object.keys(v.record.components).length||v.record.name||v.record.redirect)&&o(v)}return y?()=>{u(y)}:Ii}function u(a){if(Ap(a)){const i=r.get(a);i&&(r.delete(a),n.splice(n.indexOf(i),1),i.children.forEach(u),i.alias.forEach(u))}else{const i=n.indexOf(a);i>-1&&(n.splice(i,1),a.record.name&&r.delete(a.record.name),a.children.forEach(u),a.alias.forEach(u))}}function d(){return n}function o(a){let i=0;for(;i<n.length&&R1(a,n[i])>=0&&(a.record.path!==n[i].record.path||!xp(a,n[i]));)i++;n.splice(i,0,a),a.record.name&&!yh(a)&&r.set(a.record.name,a)}function p(a,i){let c,h={},f,g;if("name"in a&&a.name){if(c=r.get(a.name),!c)throw ei(1,{location:a});g=c.record.name,h=Ye(vh(i.params,c.keys.filter(y=>!y.optional).concat(c.parent?c.parent.keys.filter(y=>y.optional):[]).map(y=>y.name)),a.params&&vh(a.params,c.keys.map(y=>y.name))),f=c.stringify(h)}else if(a.path!=null)f=a.path,c=n.find(y=>y.re.test(f)),c&&(h=c.parse(f),g=c.record.name);else{if(c=i.name?r.get(i.name):n.find(y=>y.re.test(i.path)),!c)throw ei(1,{location:a,currentLocation:i});g=c.record.name,h=Ye({},i.params,a.params),f=c.stringify(h)}const m=[];let v=c;for(;v;)m.unshift(v.record),v=v.parent;return{name:g,path:f,params:h,matched:m,meta:F1(m)}}return e.forEach(a=>s(a)),{addRoute:s,resolve:p,removeRoute:u,getRoutes:d,getRecordMatcher:l}}function vh(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function N1(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:D1(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function D1(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function yh(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function F1(e){return e.reduce((t,n)=>Ye(t,n.meta),{})}function bh(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function xp(e,t){return t.children.some(n=>n===e||xp(e,n))}function P1(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let l=0;l<r.length;++l){const s=r[l].replace(bp," "),u=s.indexOf("="),d=Zi(u<0?s:s.slice(0,u)),o=u<0?null:Zi(s.slice(u+1));if(d in t){let p=t[d];Jt(p)||(p=t[d]=[p]),p.push(o)}else t[d]=o}return t}function wh(e){let t="";for(let n in e){const r=e[n];if(n=r1(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(Jt(r)?r.map(s=>s&&El(s)):[r&&El(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function B1(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Jt(r)?r.map(l=>l==null?null:""+l):r==null?r:""+r)}return t}const W1=Symbol(""),_h=Symbol(""),ua=Symbol(""),Ic=Symbol(""),Tl=Symbol("");function wi(){let e=[];function t(r){return e.push(r),()=>{const l=e.indexOf(r);l>-1&&e.splice(l,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Hn(e,t,n,r,l,s=u=>u()){const u=r&&(r.enterCallbacks[l]=r.enterCallbacks[l]||[]);return()=>new Promise((d,o)=>{const p=c=>{c===!1?o(ei(4,{from:n,to:t})):c instanceof Error?o(c):C1(c)?o(ei(2,{from:t,to:c})):(u&&r.enterCallbacks[l]===u&&typeof c=="function"&&u.push(c),d())},a=s(()=>e.call(r&&r.instances[l],t,n,p));let i=Promise.resolve(a);e.length<3&&(i=i.then(p)),i.catch(c=>o(c))})}function Ha(e,t,n,r,l=s=>s()){const s=[];for(const u of e)for(const d in u.components){let o=u.components[d];if(!(t!=="beforeRouteEnter"&&!u.instances[d]))if(H1(o)){const a=(o.__vccOpts||o)[t];a&&s.push(Hn(a,n,r,u,d,l))}else{let p=o();s.push(()=>p.then(a=>{if(!a)return Promise.reject(new Error(`Couldn't resolve component "${d}" at "${u.path}"`));const i=Gw(a)?a.default:a;u.components[d]=i;const h=(i.__vccOpts||i)[t];return h&&Hn(h,n,r,u,d,l)()}))}}return s}function H1(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function $h(e){const t=Vt(ua),n=Vt(Ic),r=Le(()=>t.resolve(yn(e.to))),l=Le(()=>{const{matched:o}=r.value,{length:p}=o,a=o[p-1],i=n.matched;if(!a||!i.length)return-1;const c=i.findIndex(Jr.bind(null,a));if(c>-1)return c;const h=Sh(o[p-2]);return p>1&&Sh(a)===h&&i[i.length-1].path!==h?i.findIndex(Jr.bind(null,o[p-2])):c}),s=Le(()=>l.value>-1&&j1(n.params,r.value.params)),u=Le(()=>l.value>-1&&l.value===n.matched.length-1&&Sp(n.params,r.value.params));function d(o={}){return z1(o)?t[yn(e.replace)?"replace":"push"](yn(e.to)).catch(Ii):Promise.resolve()}return{route:r,href:Le(()=>r.value.href),isActive:s,isExactActive:u,navigate:d}}const U1=Ce({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:$h,setup(e,{slots:t}){const n=ui($h(e)),{options:r}=Vt(ua),l=Le(()=>({[Ch(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Ch(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=t.default&&t.default(n);return e.custom?s:di("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:l.value},s)}}}),V1=U1;function z1(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function j1(e,t){for(const n in t){const r=t[n],l=e[n];if(typeof r=="string"){if(r!==l)return!1}else if(!Jt(l)||l.length!==r.length||r.some((s,u)=>s!==l[u]))return!1}return!0}function Sh(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ch=(e,t,n)=>e??t??n,G1=Ce({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Vt(Tl),l=Le(()=>e.route||r.value),s=Vt(_h,0),u=Le(()=>{let p=yn(s);const{matched:a}=l.value;let i;for(;(i=a[p])&&!i.components;)p++;return p}),d=Le(()=>l.value.matched[u.value]);Ti(_h,Le(()=>u.value+1)),Ti(W1,d),Ti(Tl,l);const o=ze();return st(()=>[o.value,d.value,e.name],([p,a,i],[c,h,f])=>{a&&(a.instances[i]=p,h&&h!==a&&p&&p===c&&(a.leaveGuards.size||(a.leaveGuards=h.leaveGuards),a.updateGuards.size||(a.updateGuards=h.updateGuards))),p&&a&&(!h||!Jr(a,h)||!c)&&(a.enterCallbacks[i]||[]).forEach(g=>g(p))},{flush:"post"}),()=>{const p=l.value,a=e.name,i=d.value,c=i&&i.components[a];if(!c)return Ah(n.default,{Component:c,route:p});const h=i.props[a],f=h?h===!0?p.params:typeof h=="function"?h(p):h:null,m=di(c,Ye({},f,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(i.instances[a]=null)},ref:o}));return Ah(n.default,{Component:m,route:p})||m}}});function Ah(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const K1=G1;function Y1(e){const t=I1(e.routes,e),n=e.parseQuery||P1,r=e.stringifyQuery||wh,l=e.history,s=wi(),u=wi(),d=wi(),o=Gf(In);let p=In;Mr&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const a=Ba.bind(null,U=>""+U),i=Ba.bind(null,s1),c=Ba.bind(null,Zi);function h(U,X){let Y,z;return Ap(U)?(Y=t.getRecordMatcher(U),z=X):z=U,t.addRoute(z,Y)}function f(U){const X=t.getRecordMatcher(U);X&&t.removeRoute(X)}function g(){return t.getRoutes().map(U=>U.record)}function m(U){return!!t.getRecordMatcher(U)}function v(U,X){if(X=Ye({},X||o.value),typeof U=="string"){const B=Wa(n,U,X.path),K=t.resolve({path:B.path},X),J=l.createHref(B.fullPath);return Ye(B,K,{params:c(K.params),hash:Zi(B.hash),redirectedFrom:void 0,href:J})}let Y;if(U.path!=null)Y=Ye({},U,{path:Wa(n,U.path,X.path).path});else{const B=Ye({},U.params);for(const K in B)B[K]==null&&delete B[K];Y=Ye({},U,{params:i(B)}),X.params=i(X.params)}const z=t.resolve(Y,X),ee=U.hash||"";z.params=a(c(z.params));const he=l1(r,Ye({},U,{hash:n1(ee),path:z.path})),F=l.createHref(he);return Ye({fullPath:he,hash:ee,query:r===wh?B1(U.query):U.query||{}},z,{redirectedFrom:void 0,href:F})}function y(U){return typeof U=="string"?Wa(n,U,o.value.path):Ye({},U)}function k(U,X){if(p!==U)return ei(8,{from:X,to:U})}function C(U){return E(U)}function S(U){return C(Ye(y(U),{replace:!0}))}function b(U){const X=U.matched[U.matched.length-1];if(X&&X.redirect){const{redirect:Y}=X;let z=typeof Y=="function"?Y(U):Y;return typeof z=="string"&&(z=z.includes("?")||z.includes("#")?z=y(z):{path:z},z.params={}),Ye({query:U.query,hash:U.hash,params:z.path!=null?{}:U.params},z)}}function E(U,X){const Y=p=v(U),z=o.value,ee=U.state,he=U.force,F=U.replace===!0,B=b(Y);if(B)return E(Ye(y(B),{state:typeof B=="object"?Ye({},ee,B.state):ee,force:he,replace:F}),X||Y);const K=Y;K.redirectedFrom=X;let J;return!he&&c1(r,z,Y)&&(J=ei(16,{to:K,from:z}),W(z,z,!0,!1)),(J?Promise.resolve(J):M(K,z)).catch(te=>fn(te)?fn(te,2)?te:P(te):I(te,K,z)).then(te=>{if(te){if(fn(te,2))return E(Ye({replace:F},y(te.to),{state:typeof te.to=="object"?Ye({},ee,te.to.state):ee,force:he}),X||K)}else te=A(K,z,!0,F,ee);return _(K,z,te),te})}function L(U,X){const Y=k(U,X);return Y?Promise.reject(Y):Promise.resolve()}function x(U){const X=H.values().next().value;return X&&typeof X.runWithContext=="function"?X.runWithContext(U):U()}function M(U,X){let Y;const[z,ee,he]=Z1(U,X);Y=Ha(z.reverse(),"beforeRouteLeave",U,X);for(const B of z)B.leaveGuards.forEach(K=>{Y.push(Hn(K,U,X))});const F=L.bind(null,U,X);return Y.push(F),Q(Y).then(()=>{Y=[];for(const B of s.list())Y.push(Hn(B,U,X));return Y.push(F),Q(Y)}).then(()=>{Y=Ha(ee,"beforeRouteUpdate",U,X);for(const B of ee)B.updateGuards.forEach(K=>{Y.push(Hn(K,U,X))});return Y.push(F),Q(Y)}).then(()=>{Y=[];for(const B of he)if(B.beforeEnter)if(Jt(B.beforeEnter))for(const K of B.beforeEnter)Y.push(Hn(K,U,X));else Y.push(Hn(B.beforeEnter,U,X));return Y.push(F),Q(Y)}).then(()=>(U.matched.forEach(B=>B.enterCallbacks={}),Y=Ha(he,"beforeRouteEnter",U,X,x),Y.push(F),Q(Y))).then(()=>{Y=[];for(const B of u.list())Y.push(Hn(B,U,X));return Y.push(F),Q(Y)}).catch(B=>fn(B,8)?B:Promise.reject(B))}function _(U,X,Y){d.list().forEach(z=>x(()=>z(U,X,Y)))}function A(U,X,Y,z,ee){const he=k(U,X);if(he)return he;const F=X===In,B=Mr?history.state:{};Y&&(z||F?l.replace(U.fullPath,Ye({scroll:F&&B&&B.scroll},ee)):l.push(U.fullPath,ee)),o.value=U,W(U,X,Y,F),P()}let $;function w(){$||($=l.listen((U,X,Y)=>{if(!G.listening)return;const z=v(U),ee=b(z);if(ee){E(Ye(ee,{replace:!0}),z).catch(Ii);return}p=z;const he=o.value;Mr&&v1(fh(he.fullPath,Y.delta),ca()),M(z,he).catch(F=>fn(F,12)?F:fn(F,2)?(E(F.to,z).then(B=>{fn(B,20)&&!Y.delta&&Y.type===Xi.pop&&l.go(-1,!1)}).catch(Ii),Promise.reject()):(Y.delta&&l.go(-Y.delta,!1),I(F,z,he))).then(F=>{F=F||A(z,he,!1),F&&(Y.delta&&!fn(F,8)?l.go(-Y.delta,!1):Y.type===Xi.pop&&fn(F,20)&&l.go(-1,!1)),_(z,he,F)}).catch(Ii)}))}let R=wi(),T=wi(),O;function I(U,X,Y){P(U);const z=T.list();return z.length?z.forEach(ee=>ee(U,X,Y)):console.error(U),Promise.reject(U)}function N(){return O&&o.value!==In?Promise.resolve():new Promise((U,X)=>{R.add([U,X])})}function P(U){return O||(O=!U,w(),R.list().forEach(([X,Y])=>U?Y(U):X()),R.reset()),U}function W(U,X,Y,z){const{scrollBehavior:ee}=e;if(!Mr||!ee)return Promise.resolve();const he=!Y&&y1(fh(U.fullPath,0))||(z||!Y)&&history.state&&history.state.scroll||null;return hi().then(()=>ee(U,X,he)).then(F=>F&&m1(F)).catch(F=>I(F,U,X))}const j=U=>l.go(U);let V;const H=new Set,G={currentRoute:o,listening:!0,addRoute:h,removeRoute:f,hasRoute:m,getRoutes:g,resolve:v,options:e,push:C,replace:S,go:j,back:()=>j(-1),forward:()=>j(1),beforeEach:s.add,beforeResolve:u.add,afterEach:d.add,onError:T.add,isReady:N,install(U){const X=this;U.component("RouterLink",V1),U.component("RouterView",K1),U.config.globalProperties.$router=X,Object.defineProperty(U.config.globalProperties,"$route",{enumerable:!0,get:()=>yn(o)}),Mr&&!V&&o.value===In&&(V=!0,C(l.location).catch(ee=>{}));const Y={};for(const ee in In)Object.defineProperty(Y,ee,{get:()=>o.value[ee],enumerable:!0});U.provide(ua,X),U.provide(Ic,pc(Y)),U.provide(Tl,o);const z=U.unmount;H.add(U),U.unmount=function(){H.delete(U),H.size<1&&(p=In,$&&$(),$=null,o.value=In,V=!1,O=!1),z()}}};function Q(U){return U.reduce((X,Y)=>X.then(()=>x(Y)),Promise.resolve())}return G}function Z1(e,t){const n=[],r=[],l=[],s=Math.max(t.matched.length,e.matched.length);for(let u=0;u<s;u++){const d=t.matched[u];d&&(e.matched.find(p=>Jr(p,d))?r.push(d):n.push(d));const o=e.matched[u];o&&(t.matched.find(p=>Jr(p,o))||l.push(o))}return[n,r,l]}function pi(){return Vt(ua)}function X1(){return Vt(Ic)}function Ep(e){return uc()?(Lf(e),!0):!1}function qi(e){return typeof e=="function"?e():yn(e)}const Rp=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const q1=e=>e!=null,Q1=()=>{};function J1(e){return e||Gt()}function e_(...e){if(e.length!==1)return Ko(...e);const t=e[0];return typeof t=="function"?Vo(Go(()=>({get:t,set:Q1}))):ze(t)}function t_(e,t){J1(t)&&fi(e,t)}function n_(e){var t;const n=qi(e);return(t=n==null?void 0:n.$el)!=null?t:n}const r_=Rp?window:void 0,i_=Rp?window.document:void 0;function s_(){const e=ze(!1),t=Gt();return t&&lt(()=>{e.value=!0},t),e}function o_(e){const t=s_();return Le(()=>(t.value,!!e()))}function a_(e,t,n={}){const{window:r=r_,...l}=n;let s;const u=o_(()=>r&&"MutationObserver"in r),d=()=>{s&&(s.disconnect(),s=void 0)},o=Le(()=>{const c=qi(e),h=(Array.isArray(c)?c:[c]).map(n_).filter(q1);return new Set(h)}),p=st(()=>o.value,c=>{d(),u.value&&r&&c.size&&(s=new MutationObserver(t),c.forEach(h=>s.observe(h,l)))},{immediate:!0,flush:"post"}),a=()=>s==null?void 0:s.takeRecords(),i=()=>{d(),p()};return Ep(i),{isSupported:u,stop:i,takeRecords:a}}function En(e=null,t={}){var n,r,l;const{document:s=i_,restoreOnUnmount:u=i=>i}=t,d=(n=s==null?void 0:s.title)!=null?n:"",o=e_((r=e??(s==null?void 0:s.title))!=null?r:null),p=e&&typeof e=="function";function a(i){if(!("titleTemplate"in t))return i;const c=t.titleTemplate||"%s";return typeof c=="function"?c(i):qi(c).replace(/%s/g,i)}return st(o,(i,c)=>{i!==c&&s&&(s.title=a(typeof i=="string"?i:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&s&&!p&&a_((l=s.head)==null?void 0:l.querySelector("title"),()=>{s&&s.title!==o.value&&(o.value=a(s.title))},{childList:!0}),t_(()=>{if(u){const i=u(d,o.value||"");i!=null&&s&&(s.title=i)}}),o}/*! CAF: shared.mjs
787
+ v15.0.1 (c) 2022 Kyle Simpson
788
+ MIT License: http://getify.mit-license.org
789
+ */const mn=Symbol("Cleanup Function"),Nc=Symbol("Timeout Token"),Dr=Symbol("Signal Reason"),vt=Symbol("Unset"),[eo,l_]=function(){var t=new AbortController,n=!!Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t.signal),"reason");try{t.abort()}catch{}return[n,Fc(t.signal.reason)]}();class $r{constructor(t=new AbortController){var n;this.controller=t,this.signal=t.signal,this.signal[Dr]=vt;var r=(l,s)=>{var u=()=>{if(s&&this.signal){let d=bs(this.signal);this._trackSignalReason(d),s(d!==vt?d:void 0)}s=null};this.signal.addEventListener("abort",u,!1),n=()=>{this.signal&&(this.signal.removeEventListener("abort",u,!1),this.signal.pr&&(this.signal.pr[mn]=null)),u=null}};this.signal.pr=new Promise(r),this.signal.pr[mn]=n,this.signal.pr.catch(n),r=n=null}abort(...t){var n=t.length>0?t[0]:vt;this._trackSignalReason(n),this.controller&&(eo&&n!==vt?this.controller.abort(n):this.controller.abort())}discard(){this.signal&&(this.signal.pr&&(this.signal.pr[mn]&&this.signal.pr[mn](),this.signal.pr=null),delete this.signal[Dr],eo||(this.signal.reason=null),this.signal=null),this.controller=null}_trackSignalReason(t){this.signal&&t!==vt&&(eo||"reason"in this.signal||(this.signal.reason=t),this.signal[Dr]===vt&&(this.signal[Dr]=t))}}function bs(e){return e&&e.aborted?eo&&l_?Fc(e.reason)?vt:e.reason:Dr in e?e[Dr]:vt:vt}function Tp(e){if(e.pr)return e.pr;var t,n=new Promise(function(l,s){t=()=>{if(s&&e){let u=bs(e);s(u!==vt?u:void 0)}s=null},e.addEventListener("abort",t,!1)});return n[mn]=function(){e&&(e.removeEventListener("abort",t,!1),e=null),n&&(n=n[mn]=t=null)},n.catch(n[mn]),n}function Dc(e){e instanceof AbortController&&(e=new $r(e));var t=e&&e instanceof $r?e.signal:e;return{tokenOrSignal:e,signal:t,signalPr:Tp(t)}}function Ll(){var e;return{pr:new Promise(t=>e=t),resolve:e}}function rr(e){return typeof e=="function"}function c_(e){return e&&typeof e=="object"&&typeof e.then=="function"}function Fc(e){return typeof e=="object"&&e instanceof Error&&e.name=="AbortError"}function ha(e,t){Fc(t)||t===vt?e.abort():e.abort(t)}/*! CAF: caf.mjs
790
+ v15.0.1 (c) 2022 Kyle Simpson
791
+ MIT License: http://getify.mit-license.org
792
+ */const Ml=Object.assign(u_,{cancelToken:$r,delay:Lp,timeout:h_,signalRace:f_,signalAll:d_,tokenCycle:p_});function u_(e){return function(n,...r){var l,s;if({tokenOrSignal:n,signal:l,signalPr:s}=Dc(n),l.aborted)return s;var u=s.catch(function(i){var c=bs(l);c=c!==vt?c:i;try{var h=d.return();throw h.value!==void 0?h.value:c!==vt?c:void 0}finally{d=o=u=p=null}}),{it:d,result:o}=g_.call(this,e,l,...r),p=Promise.race([o,u]);if(n!==l&&n[Nc]){let a=function(c){ha(n,c),rr(n.discard)&&n.discard(),n=a=null};p.then(a,a)}else p.catch(()=>{}),n=null;return r=null,p}}function Lp(e,t){var n,r;return typeof e=="number"&&typeof t!="number"&&([t,e]=[e,t]),e&&({tokenOrSignal:e,signal:n,signalPr:r}=Dc(e)),n&&n.aborted?r:new Promise(function(s,u){n&&(r.catch(function(){if(u&&n&&d){let p=bs(n);clearTimeout(d),u(p!==vt?p:`delay (${t}) interrupted`),s=u=d=n=null}}),r=null);var d=setTimeout(function(){s(`delayed: ${t}`),s=u=d=n=null},t)})}function h_(e,t="Timeout"){e=Number(e)||0;var n=new $r;return Lp(n.signal,e).then(()=>r(t),r),Object.defineProperty(n,Nc,{value:!0,writable:!1,enumerable:!1,configurable:!1}),n;function r(...l){ha(n,l.length>0?l[0]:vt),n.discard(),n=null}}function Mp(e){return e.reduce(function(n,r){var l=Tp(r);return n[0].push(l),r.pr||n[1].push(l),n},[[],[]])}function Op(e,t,n){e.then(function(l){ha(t,l),t.discard(),t=null}).then(function(){for(let l of n)l[mn]&&l[mn]();n=null})}function Ip(e){return e.catch(t=>t)}function f_(e){var t=new $r,[n,r]=Mp(e);return Op(Ip(Promise.race(n)),t,r),t.signal}function d_(e){var t=new $r,[n,r]=Mp(e);return Op(Promise.all(n.map(Ip)),t,r),t.signal}function p_(){var e;return function(...n){return e&&(ha(e,n.length>0?n[0]:vt),e.discard()),e=new $r}}function g_(e,...t){var n=e.apply(this,t);return e=t=null,{it:n,result:function r(l){try{var s=n.next(l);l=null}catch(u){return Promise.reject(u)}return function u(d){var o=Promise.resolve(d.value);return d.done?n=null:(o=o.then(r,function(a){return Promise.resolve(n.throw(a)).then(u)})).catch(function(){n=null}),d=null,o}(s)}()}}/*! CAF: cag.mjs
793
+ v15.0.1 (c) 2022 Kyle Simpson
794
+ MIT License: http://getify.mit-license.org
795
+ */Il=Ml(Il);Object.assign(Dp,{onEvent:Fp,onceEvent:Il});var Ol=new WeakSet;const Ua=Symbol("unset"),Np=Symbol("returned"),kh=Symbol("canceled");function Dp(e){return function(n,...r){var l,s;if({tokenOrSignal:n,signal:l,signalPr:s}=Dc(n),l.aborted){let i=bs(l);throw i=i!==vt?i:"Aborted",i}var u=Ll(),{it:d,ait:o}=v_(e,u.pr,a,l,...r),p=o.return;return o.return=function(c){try{return u.pr.resolved=!0,u.resolve(Np),Promise.resolve(d.return(c))}finally{p.call(o),a()}},o;function a(){n&&n!==l&&n[Nc]&&n.abort(),o&&(o.return=p,n=u=d=o=p=null)}}}function Fp(e,t,n,r=!1){var l,s,u=!1,d=Dp(function*({pwait:i}){u||o();try{for(;;){if(l.length==0){let{pr:c,resolve:h}=Ll();l.push(c),s.push(h)}yield yield i(l.shift())}}finally{rr(t.removeEventListener)?t.removeEventListener(n,p,r):rr(t.removeListener)?t.removeListener(n,p):rr(t.off)&&t.off(n,p),l.length=s.length=0}})(e,t,n,r);return d.start=o,d;function o(){u||(u=!0,l=[],s=[],rr(t.addEventListener)?t.addEventListener(n,p,r):rr(t.addListener)?t.addListener(n,p):rr(t.on)&&t.on(n,p))}function p(a){if(s.length>0)s.shift()(a);else{let{pr:i,resolve:c}=Ll();l.push(i),c(a)}}}function*Il(e,t,n,r=!1){try{var l=Fp(e,t,n,r);return(yield l.next()).value}finally{l.return()}}function m_(e){var t=Promise.resolve(e);return Ol.add(t),t}function v_(e,t,n,r,...l){var s=e.call(this,{signal:r,pwait:m_},...l);e=l=null;var u=r.pr.catch(d=>{throw{[kh]:!0,reason:d}});return u.catch(()=>{}),{it:s,ait:async function*(){var o,p=Ua;try{for(;!t.resolved;)if(p!==Ua?(o=p,p=Ua,o=s.throw(o)):o=s.next(o),c_(o.value))if(Ol.has(o.value)){Ol.delete(o.value);try{if((o=await Promise.race([t,u,o.value]))===Np)return}catch(a){if(a[kh]){let i=s.return();throw i.value!==void 0?i.value:a.reason}p=a}}else o=yield o.value;else{if(o.done)return o.value;o=yield o.value}}finally{s=t=null,n()}}()}}const y_=e=>e._runningInstances.length>=e._maxConcurrency,b_=e=>{const t=e._activeInstances[0];t&&t.cancel()},w_=e=>{e._enqueuedInstances.forEach(t=>{t.isEnqueued=!1,t.isDropped=!0})};function _i(e,t){return t?__(()=>e()._instances,t):Le(()=>[])}function __(e,t,n){return Le(()=>e().filter(r=>{const l=r[t];return n?l===n:l}))}function $_(e){return Le(()=>e().length)}function xh(e){return Le(()=>{const t=e();return t[t.length-1]})}function S_(e){return Le(()=>e()[0])}const Pp=e=>e;function Bp(e){return ui(e)}function C_(){const e={},t=new Promise((n,r)=>{e.resolve=n,e.reject=r});return e.promise=t,e}function Ct(e){return x_(function*(t,...n){return e(t,...n)})}function A_(e,t,n){const r=Pp({id:n.id,isDropped:!1,isEnqueued:!1,hasStarted:!1,isRunning:!1,isFinished:!1,isCanceling:!1,isCanceled:Le(()=>l.isCanceling&&l.isFinished),isActive:Le(()=>l.isRunning&&!l.isCanceling),isSuccessful:!1,isNotDropped:Le(()=>!l.isDropped),isError:Le(()=>!!l.error),status:Le(()=>{const u=l,d=[[u.isRunning,"running"],[u.isEnqueued,"enqueued"],[u.isCanceled,"canceled"],[u.isCanceling,"canceling"],[u.isDropped,"dropped"],[u.isError,"error"],[u.isSuccessful,"success"]].find(([o])=>o);return d&&d[1]}),error:null,value:null,cancel({force:u}={force:!1}){if(u||(l.isCanceling=!0,l.isEnqueued&&(l.isFinished=!0),l.isEnqueued=!1),l.token&&l._canAbort){l.token.abort("cancel");try{l.token.discard()}catch{}l.token=void 0,l._canAbort=!1}},canceledOn(u){return u.pr.catch(()=>{l.cancel()}),l},_run(){k_(l,e,t,n)},_handled:!0,_deferredObject:C_(),_shouldThrow:!1,_canAbort:!0,then(u,d){return l._shouldThrow=!0,l._deferredObject.promise.then(u,d)},catch(u,d=!0){return l._shouldThrow=d,l._deferredObject.promise.catch(u)},finally(u){return l._shouldThrow=!0,l._deferredObject.promise.finally(u)}}),l=Bp(r),{modifiers:s}=n;return s.drop?l.isDropped=!0:s.enqueue?l.isEnqueued=!0:l._run(),l}function k_(e,t,n,r){const l=new Ml.cancelToken,s=Ml(t,l);e.token=l,e.hasStarted=!0,e.isRunning=!0,e.isEnqueued=!1;function u(){e.isRunning=!1,e.isFinished=!0}s.call(e,l,...n).then(d=>{e.value=d,e.isSuccessful=!0,u(),e._deferredObject.resolve(d),e._canAbort=!1,r.onFinish(e)}).catch(d=>{d!=="cancel"&&(e.error=d),u(),e._shouldThrow&&e._deferredObject.reject(d),r.onFinish(e)})}function x_(e,t={cancelOnUnmount:!0}){const n=Gt(),r=Rf(),l=Pp({_isRestartable:!1,_isDropping:!1,_isEnqueuing:!1,_isKeepingLatest:!1,_maxConcurrency:1,_hasConcurrency:Le(()=>s._isRestartable||s._isDropping||s._isEnqueuing||s._isKeepingLatest),isIdle:Le(()=>!s.isRunning),isRunning:Le(()=>!!s._instances.find(u=>u.isRunning)),isError:Le(()=>!!(s.last&&s.last.isError)),_instances:[],_successfulInstances:_i(()=>s,"isSuccessful"),_runningInstances:_i(()=>s,"isRunning"),_enqueuedInstances:_i(()=>s,"isEnqueued"),_notDroppedInstances:_i(()=>s,"isNotDropped"),_activeInstances:_i(()=>s,"isActive"),performCount:$_(()=>s._instances),last:xh(()=>s._notDroppedInstances),lastSuccessful:xh(()=>s._successfulInstances),firstEnqueued:S_(()=>s._enqueuedInstances),cancelAll({force:u}={force:!1}){s._instances.forEach(d=>{try{(u||!d.isDropped&&!d.isFinished)&&d.cancel({force:u})}catch(o){if(o!=="cancel")throw o}})},perform(...u){const d={enqueue:!1,drop:!1};s._hasConcurrency&&y_(s)&&(s._isDropping&&(d.drop=!0),s._isRestartable&&b_(s),s._isKeepingLatest&&w_(s),(s._isEnqueuing||s._isKeepingLatest)&&(d.enqueue=!0));const o=()=>E_(s),p=()=>A_(e,u,{modifiers:d,onFinish:o,scope:r,id:s._instances.length+1}),a=r.active?r.run(p):p();return r.active||console.warn("Task instance has been created in inactive scope. Perhaps youre creating task out of setup?"),s._instances=[...s._instances,a],a},clear(){this.cancelAll({force:!0}),this._instances=[]},destroy(){r.stop(),this.clear()},restartable(){return s._resetModifierFlags(),s._isRestartable=!0,s},drop(){return s._resetModifierFlags(),s._isDropping=!0,s},enqueue(){return s._resetModifierFlags(),s._isEnqueuing=!0,s},keepLatest(){return s._resetModifierFlags(),s._isKeepingLatest=!0,s},_resetModifierFlags(){s._isKeepingLatest=!1,s._isRestartable=!1,s._isEnqueuing=!1,s._isDropping=!1},maxConcurrency(u){return s._maxConcurrency=u,s}}),s=Bp(l);return n&&t.cancelOnUnmount&&fi(()=>{s._instances&&s.destroy()}),s}function E_(e){if(e._isEnqueuing||e._isKeepingLatest){const{firstEnqueued:t}=e;t&&t._run()}}function Wp(e,t){return function(){return e.apply(t,arguments)}}const{toString:R_}=Object.prototype,{getPrototypeOf:Pc}=Object,fa=(e=>t=>{const n=R_.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),hn=e=>(e=e.toLowerCase(),t=>fa(t)===e),da=e=>t=>typeof t===e,{isArray:gi}=Array,Qi=da("undefined");function T_(e){return e!==null&&!Qi(e)&&e.constructor!==null&&!Qi(e.constructor)&&jt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Hp=hn("ArrayBuffer");function L_(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Hp(e.buffer),t}const M_=da("string"),jt=da("function"),Up=da("number"),pa=e=>e!==null&&typeof e=="object",O_=e=>e===!0||e===!1,to=e=>{if(fa(e)!=="object")return!1;const t=Pc(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},I_=hn("Date"),N_=hn("File"),D_=hn("Blob"),F_=hn("FileList"),P_=e=>pa(e)&&jt(e.pipe),B_=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||jt(e.append)&&((t=fa(e))==="formdata"||t==="object"&&jt(e.toString)&&e.toString()==="[object FormData]"))},W_=hn("URLSearchParams"),H_=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ws(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,l;if(typeof e!="object"&&(e=[e]),gi(e))for(r=0,l=e.length;r<l;r++)t.call(null,e[r],r,e);else{const s=n?Object.getOwnPropertyNames(e):Object.keys(e),u=s.length;let d;for(r=0;r<u;r++)d=s[r],t.call(null,e[d],d,e)}}function Vp(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,l;for(;r-- >0;)if(l=n[r],t===l.toLowerCase())return l;return null}const zp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,jp=e=>!Qi(e)&&e!==zp;function Nl(){const{caseless:e}=jp(this)&&this||{},t={},n=(r,l)=>{const s=e&&Vp(t,l)||l;to(t[s])&&to(r)?t[s]=Nl(t[s],r):to(r)?t[s]=Nl({},r):gi(r)?t[s]=r.slice():t[s]=r};for(let r=0,l=arguments.length;r<l;r++)arguments[r]&&ws(arguments[r],n);return t}const U_=(e,t,n,{allOwnKeys:r}={})=>(ws(t,(l,s)=>{n&&jt(l)?e[s]=Wp(l,n):e[s]=l},{allOwnKeys:r}),e),V_=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),z_=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},j_=(e,t,n,r)=>{let l,s,u;const d={};if(t=t||{},e==null)return t;do{for(l=Object.getOwnPropertyNames(e),s=l.length;s-- >0;)u=l[s],(!r||r(u,e,t))&&!d[u]&&(t[u]=e[u],d[u]=!0);e=n!==!1&&Pc(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},G_=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},K_=e=>{if(!e)return null;if(gi(e))return e;let t=e.length;if(!Up(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Y_=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Pc(Uint8Array)),Z_=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let l;for(;(l=r.next())&&!l.done;){const s=l.value;t.call(e,s[0],s[1])}},X_=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},q_=hn("HTMLFormElement"),Q_=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,l){return r.toUpperCase()+l}),Eh=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),J_=hn("RegExp"),Gp=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ws(n,(l,s)=>{let u;(u=t(l,s,e))!==!1&&(r[s]=u||l)}),Object.defineProperties(e,r)},e$=e=>{Gp(e,(t,n)=>{if(jt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(jt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},t$=(e,t)=>{const n={},r=l=>{l.forEach(s=>{n[s]=!0})};return gi(e)?r(e):r(String(e).split(t)),n},n$=()=>{},r$=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Va="abcdefghijklmnopqrstuvwxyz",Rh="0123456789",Kp={DIGIT:Rh,ALPHA:Va,ALPHA_DIGIT:Va+Va.toUpperCase()+Rh},i$=(e=16,t=Kp.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function s$(e){return!!(e&&jt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const o$=e=>{const t=new Array(10),n=(r,l)=>{if(pa(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[l]=r;const s=gi(r)?[]:{};return ws(r,(u,d)=>{const o=n(u,l+1);!Qi(o)&&(s[d]=o)}),t[l]=void 0,s}}return r};return n(e,0)},a$=hn("AsyncFunction"),l$=e=>e&&(pa(e)||jt(e))&&jt(e.then)&&jt(e.catch),ie={isArray:gi,isArrayBuffer:Hp,isBuffer:T_,isFormData:B_,isArrayBufferView:L_,isString:M_,isNumber:Up,isBoolean:O_,isObject:pa,isPlainObject:to,isUndefined:Qi,isDate:I_,isFile:N_,isBlob:D_,isRegExp:J_,isFunction:jt,isStream:P_,isURLSearchParams:W_,isTypedArray:Y_,isFileList:F_,forEach:ws,merge:Nl,extend:U_,trim:H_,stripBOM:V_,inherits:z_,toFlatObject:j_,kindOf:fa,kindOfTest:hn,endsWith:G_,toArray:K_,forEachEntry:Z_,matchAll:X_,isHTMLForm:q_,hasOwnProperty:Eh,hasOwnProp:Eh,reduceDescriptors:Gp,freezeMethods:e$,toObjectSet:t$,toCamelCase:Q_,noop:n$,toFiniteNumber:r$,findKey:Vp,global:zp,isContextDefined:jp,ALPHABET:Kp,generateString:i$,isSpecCompliantForm:s$,toJSONObject:o$,isAsyncFn:a$,isThenable:l$};function Ue(e,t,n,r,l){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),l&&(this.response=l)}ie.inherits(Ue,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ie.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Yp=Ue.prototype,Zp={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Zp[e]={value:e}});Object.defineProperties(Ue,Zp);Object.defineProperty(Yp,"isAxiosError",{value:!0});Ue.from=(e,t,n,r,l,s)=>{const u=Object.create(Yp);return ie.toFlatObject(e,u,function(o){return o!==Error.prototype},d=>d!=="isAxiosError"),Ue.call(u,e.message,t,n,r,l),u.cause=e,u.name=e.name,s&&Object.assign(u,s),u};const c$=null;function Dl(e){return ie.isPlainObject(e)||ie.isArray(e)}function Xp(e){return ie.endsWith(e,"[]")?e.slice(0,-2):e}function Th(e,t,n){return e?e.concat(t).map(function(l,s){return l=Xp(l),!n&&s?"["+l+"]":l}).join(n?".":""):t}function u$(e){return ie.isArray(e)&&!e.some(Dl)}const h$=ie.toFlatObject(ie,{},null,function(t){return/^is[A-Z]/.test(t)});function ga(e,t,n){if(!ie.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ie.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,m){return!ie.isUndefined(m[g])});const r=n.metaTokens,l=n.visitor||a,s=n.dots,u=n.indexes,o=(n.Blob||typeof Blob<"u"&&Blob)&&ie.isSpecCompliantForm(t);if(!ie.isFunction(l))throw new TypeError("visitor must be a function");function p(f){if(f===null)return"";if(ie.isDate(f))return f.toISOString();if(!o&&ie.isBlob(f))throw new Ue("Blob is not supported. Use a Buffer instead.");return ie.isArrayBuffer(f)||ie.isTypedArray(f)?o&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function a(f,g,m){let v=f;if(f&&!m&&typeof f=="object"){if(ie.endsWith(g,"{}"))g=r?g:g.slice(0,-2),f=JSON.stringify(f);else if(ie.isArray(f)&&u$(f)||(ie.isFileList(f)||ie.endsWith(g,"[]"))&&(v=ie.toArray(f)))return g=Xp(g),v.forEach(function(k,C){!(ie.isUndefined(k)||k===null)&&t.append(u===!0?Th([g],C,s):u===null?g:g+"[]",p(k))}),!1}return Dl(f)?!0:(t.append(Th(m,g,s),p(f)),!1)}const i=[],c=Object.assign(h$,{defaultVisitor:a,convertValue:p,isVisitable:Dl});function h(f,g){if(!ie.isUndefined(f)){if(i.indexOf(f)!==-1)throw Error("Circular reference detected in "+g.join("."));i.push(f),ie.forEach(f,function(v,y){(!(ie.isUndefined(v)||v===null)&&l.call(t,v,ie.isString(y)?y.trim():y,g,c))===!0&&h(v,g?g.concat(y):[y])}),i.pop()}}if(!ie.isObject(e))throw new TypeError("data must be an object");return h(e),t}function Lh(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Bc(e,t){this._pairs=[],e&&ga(e,this,t)}const qp=Bc.prototype;qp.append=function(t,n){this._pairs.push([t,n])};qp.toString=function(t){const n=t?function(r){return t.call(this,r,Lh)}:Lh;return this._pairs.map(function(l){return n(l[0])+"="+n(l[1])},"").join("&")};function f$(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Qp(e,t,n){if(!t)return e;const r=n&&n.encode||f$,l=n&&n.serialize;let s;if(l?s=l(t,n):s=ie.isURLSearchParams(t)?t.toString():new Bc(t,n).toString(r),s){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Mh{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ie.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Jp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},d$=typeof URLSearchParams<"u"?URLSearchParams:Bc,p$=typeof FormData<"u"?FormData:null,g$=typeof Blob<"u"?Blob:null,m$={isBrowser:!0,classes:{URLSearchParams:d$,FormData:p$,Blob:g$},protocols:["http","https","file","blob","url","data"]},eg=typeof window<"u"&&typeof document<"u",v$=(e=>eg&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),y$=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",b$=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:eg,hasStandardBrowserEnv:v$,hasStandardBrowserWebWorkerEnv:y$},Symbol.toStringTag,{value:"Module"})),sn={...b$,...m$};function w$(e,t){return ga(e,new sn.classes.URLSearchParams,Object.assign({visitor:function(n,r,l,s){return sn.isNode&&ie.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function _$(e){return ie.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function $$(e){const t={},n=Object.keys(e);let r;const l=n.length;let s;for(r=0;r<l;r++)s=n[r],t[s]=e[s];return t}function tg(e){function t(n,r,l,s){let u=n[s++];if(u==="__proto__")return!0;const d=Number.isFinite(+u),o=s>=n.length;return u=!u&&ie.isArray(l)?l.length:u,o?(ie.hasOwnProp(l,u)?l[u]=[l[u],r]:l[u]=r,!d):((!l[u]||!ie.isObject(l[u]))&&(l[u]=[]),t(n,r,l[u],s)&&ie.isArray(l[u])&&(l[u]=$$(l[u])),!d)}if(ie.isFormData(e)&&ie.isFunction(e.entries)){const n={};return ie.forEachEntry(e,(r,l)=>{t(_$(r),l,n,0)}),n}return null}function S$(e,t,n){if(ie.isString(e))try{return(t||JSON.parse)(e),ie.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Wc={transitional:Jp,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",l=r.indexOf("application/json")>-1,s=ie.isObject(t);if(s&&ie.isHTMLForm(t)&&(t=new FormData(t)),ie.isFormData(t))return l?JSON.stringify(tg(t)):t;if(ie.isArrayBuffer(t)||ie.isBuffer(t)||ie.isStream(t)||ie.isFile(t)||ie.isBlob(t))return t;if(ie.isArrayBufferView(t))return t.buffer;if(ie.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let d;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return w$(t,this.formSerializer).toString();if((d=ie.isFileList(t))||r.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return ga(d?{"files[]":t}:t,o&&new o,this.formSerializer)}}return s||l?(n.setContentType("application/json",!1),S$(t)):t}],transformResponse:[function(t){const n=this.transitional||Wc.transitional,r=n&&n.forcedJSONParsing,l=this.responseType==="json";if(t&&ie.isString(t)&&(r&&!this.responseType||l)){const u=!(n&&n.silentJSONParsing)&&l;try{return JSON.parse(t)}catch(d){if(u)throw d.name==="SyntaxError"?Ue.from(d,Ue.ERR_BAD_RESPONSE,this,null,this.response):d}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:sn.classes.FormData,Blob:sn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ie.forEach(["delete","get","head","post","put","patch"],e=>{Wc.headers[e]={}});const Hc=Wc,C$=ie.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),A$=e=>{const t={};let n,r,l;return e&&e.split(`
796
+ `).forEach(function(u){l=u.indexOf(":"),n=u.substring(0,l).trim().toLowerCase(),r=u.substring(l+1).trim(),!(!n||t[n]&&C$[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Oh=Symbol("internals");function $i(e){return e&&String(e).trim().toLowerCase()}function no(e){return e===!1||e==null?e:ie.isArray(e)?e.map(no):String(e)}function k$(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const x$=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function za(e,t,n,r,l){if(ie.isFunction(r))return r.call(this,t,n);if(l&&(t=n),!!ie.isString(t)){if(ie.isString(r))return t.indexOf(r)!==-1;if(ie.isRegExp(r))return r.test(t)}}function E$(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function R$(e,t){const n=ie.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(l,s,u){return this[r].call(this,t,l,s,u)},configurable:!0})})}let ma=class{constructor(t){t&&this.set(t)}set(t,n,r){const l=this;function s(d,o,p){const a=$i(o);if(!a)throw new Error("header name must be a non-empty string");const i=ie.findKey(l,a);(!i||l[i]===void 0||p===!0||p===void 0&&l[i]!==!1)&&(l[i||o]=no(d))}const u=(d,o)=>ie.forEach(d,(p,a)=>s(p,a,o));return ie.isPlainObject(t)||t instanceof this.constructor?u(t,n):ie.isString(t)&&(t=t.trim())&&!x$(t)?u(A$(t),n):t!=null&&s(n,t,r),this}get(t,n){if(t=$i(t),t){const r=ie.findKey(this,t);if(r){const l=this[r];if(!n)return l;if(n===!0)return k$(l);if(ie.isFunction(n))return n.call(this,l,r);if(ie.isRegExp(n))return n.exec(l);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=$i(t),t){const r=ie.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||za(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let l=!1;function s(u){if(u=$i(u),u){const d=ie.findKey(r,u);d&&(!n||za(r,r[d],d,n))&&(delete r[d],l=!0)}}return ie.isArray(t)?t.forEach(s):s(t),l}clear(t){const n=Object.keys(this);let r=n.length,l=!1;for(;r--;){const s=n[r];(!t||za(this,this[s],s,t,!0))&&(delete this[s],l=!0)}return l}normalize(t){const n=this,r={};return ie.forEach(this,(l,s)=>{const u=ie.findKey(r,s);if(u){n[u]=no(l),delete n[s];return}const d=t?E$(s):String(s).trim();d!==s&&delete n[s],n[d]=no(l),r[d]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ie.forEach(this,(r,l)=>{r!=null&&r!==!1&&(n[l]=t&&ie.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
797
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(l=>r.set(l)),r}static accessor(t){const r=(this[Oh]=this[Oh]={accessors:{}}).accessors,l=this.prototype;function s(u){const d=$i(u);r[d]||(R$(l,u),r[d]=!0)}return ie.isArray(t)?t.forEach(s):s(t),this}};ma.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ie.reduceDescriptors(ma.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ie.freezeMethods(ma);const wn=ma;function ja(e,t){const n=this||Hc,r=t||n,l=wn.from(r.headers);let s=r.data;return ie.forEach(e,function(d){s=d.call(n,s,l.normalize(),t?t.status:void 0)}),l.normalize(),s}function ng(e){return!!(e&&e.__CANCEL__)}function _s(e,t,n){Ue.call(this,e??"canceled",Ue.ERR_CANCELED,t,n),this.name="CanceledError"}ie.inherits(_s,Ue,{__CANCEL__:!0});function T$(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Ue("Request failed with status code "+n.status,[Ue.ERR_BAD_REQUEST,Ue.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const L$=sn.hasStandardBrowserEnv?{write(e,t,n,r,l,s){const u=[e+"="+encodeURIComponent(t)];ie.isNumber(n)&&u.push("expires="+new Date(n).toGMTString()),ie.isString(r)&&u.push("path="+r),ie.isString(l)&&u.push("domain="+l),s===!0&&u.push("secure"),document.cookie=u.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function M$(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function O$(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function rg(e,t){return e&&!M$(t)?O$(e,t):t}const I$=sn.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function l(s){let u=s;return t&&(n.setAttribute("href",u),u=n.href),n.setAttribute("href",u),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=l(window.location.href),function(u){const d=ie.isString(u)?l(u):u;return d.protocol===r.protocol&&d.host===r.host}}():function(){return function(){return!0}}();function N$(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function D$(e,t){e=e||10;const n=new Array(e),r=new Array(e);let l=0,s=0,u;return t=t!==void 0?t:1e3,function(o){const p=Date.now(),a=r[s];u||(u=p),n[l]=o,r[l]=p;let i=s,c=0;for(;i!==l;)c+=n[i++],i=i%e;if(l=(l+1)%e,l===s&&(s=(s+1)%e),p-u<t)return;const h=a&&p-a;return h?Math.round(c*1e3/h):void 0}}function Ih(e,t){let n=0;const r=D$(50,250);return l=>{const s=l.loaded,u=l.lengthComputable?l.total:void 0,d=s-n,o=r(d),p=s<=u;n=s;const a={loaded:s,total:u,progress:u?s/u:void 0,bytes:d,rate:o||void 0,estimated:o&&u&&p?(u-s)/o:void 0,event:l};a[t?"download":"upload"]=!0,e(a)}}const F$=typeof XMLHttpRequest<"u",P$=F$&&function(e){return new Promise(function(n,r){let l=e.data;const s=wn.from(e.headers).normalize();let{responseType:u,withXSRFToken:d}=e,o;function p(){e.cancelToken&&e.cancelToken.unsubscribe(o),e.signal&&e.signal.removeEventListener("abort",o)}let a;if(ie.isFormData(l)){if(sn.hasStandardBrowserEnv||sn.hasStandardBrowserWebWorkerEnv)s.setContentType(!1);else if((a=s.getContentType())!==!1){const[g,...m]=a?a.split(";").map(v=>v.trim()).filter(Boolean):[];s.setContentType([g||"multipart/form-data",...m].join("; "))}}let i=new XMLHttpRequest;if(e.auth){const g=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(g+":"+m))}const c=rg(e.baseURL,e.url);i.open(e.method.toUpperCase(),Qp(c,e.params,e.paramsSerializer),!0),i.timeout=e.timeout;function h(){if(!i)return;const g=wn.from("getAllResponseHeaders"in i&&i.getAllResponseHeaders()),v={data:!u||u==="text"||u==="json"?i.responseText:i.response,status:i.status,statusText:i.statusText,headers:g,config:e,request:i};T$(function(k){n(k),p()},function(k){r(k),p()},v),i=null}if("onloadend"in i?i.onloadend=h:i.onreadystatechange=function(){!i||i.readyState!==4||i.status===0&&!(i.responseURL&&i.responseURL.indexOf("file:")===0)||setTimeout(h)},i.onabort=function(){i&&(r(new Ue("Request aborted",Ue.ECONNABORTED,e,i)),i=null)},i.onerror=function(){r(new Ue("Network Error",Ue.ERR_NETWORK,e,i)),i=null},i.ontimeout=function(){let m=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const v=e.transitional||Jp;e.timeoutErrorMessage&&(m=e.timeoutErrorMessage),r(new Ue(m,v.clarifyTimeoutError?Ue.ETIMEDOUT:Ue.ECONNABORTED,e,i)),i=null},sn.hasStandardBrowserEnv&&(d&&ie.isFunction(d)&&(d=d(e)),d||d!==!1&&I$(c))){const g=e.xsrfHeaderName&&e.xsrfCookieName&&L$.read(e.xsrfCookieName);g&&s.set(e.xsrfHeaderName,g)}l===void 0&&s.setContentType(null),"setRequestHeader"in i&&ie.forEach(s.toJSON(),function(m,v){i.setRequestHeader(v,m)}),ie.isUndefined(e.withCredentials)||(i.withCredentials=!!e.withCredentials),u&&u!=="json"&&(i.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&i.addEventListener("progress",Ih(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&i.upload&&i.upload.addEventListener("progress",Ih(e.onUploadProgress)),(e.cancelToken||e.signal)&&(o=g=>{i&&(r(!g||g.type?new _s(null,e,i):g),i.abort(),i=null)},e.cancelToken&&e.cancelToken.subscribe(o),e.signal&&(e.signal.aborted?o():e.signal.addEventListener("abort",o)));const f=N$(c);if(f&&sn.protocols.indexOf(f)===-1){r(new Ue("Unsupported protocol "+f+":",Ue.ERR_BAD_REQUEST,e));return}i.send(l||null)})},Fl={http:c$,xhr:P$};ie.forEach(Fl,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Nh=e=>`- ${e}`,B$=e=>ie.isFunction(e)||e===null||e===!1,ig={getAdapter:e=>{e=ie.isArray(e)?e:[e];const{length:t}=e;let n,r;const l={};for(let s=0;s<t;s++){n=e[s];let u;if(r=n,!B$(n)&&(r=Fl[(u=String(n)).toLowerCase()],r===void 0))throw new Ue(`Unknown adapter '${u}'`);if(r)break;l[u||"#"+s]=r}if(!r){const s=Object.entries(l).map(([d,o])=>`adapter ${d} `+(o===!1?"is not supported by the environment":"is not available in the build"));let u=t?s.length>1?`since :
798
+ `+s.map(Nh).join(`
799
+ `):" "+Nh(s[0]):"as no adapter specified";throw new Ue("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return r},adapters:Fl};function Ga(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new _s(null,e)}function Dh(e){return Ga(e),e.headers=wn.from(e.headers),e.data=ja.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ig.getAdapter(e.adapter||Hc.adapter)(e).then(function(r){return Ga(e),r.data=ja.call(e,e.transformResponse,r),r.headers=wn.from(r.headers),r},function(r){return ng(r)||(Ga(e),r&&r.response&&(r.response.data=ja.call(e,e.transformResponse,r.response),r.response.headers=wn.from(r.response.headers))),Promise.reject(r)})}const Fh=e=>e instanceof wn?e.toJSON():e;function ti(e,t){t=t||{};const n={};function r(p,a,i){return ie.isPlainObject(p)&&ie.isPlainObject(a)?ie.merge.call({caseless:i},p,a):ie.isPlainObject(a)?ie.merge({},a):ie.isArray(a)?a.slice():a}function l(p,a,i){if(ie.isUndefined(a)){if(!ie.isUndefined(p))return r(void 0,p,i)}else return r(p,a,i)}function s(p,a){if(!ie.isUndefined(a))return r(void 0,a)}function u(p,a){if(ie.isUndefined(a)){if(!ie.isUndefined(p))return r(void 0,p)}else return r(void 0,a)}function d(p,a,i){if(i in t)return r(p,a);if(i in e)return r(void 0,p)}const o={url:s,method:s,data:s,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:d,headers:(p,a)=>l(Fh(p),Fh(a),!0)};return ie.forEach(Object.keys(Object.assign({},e,t)),function(a){const i=o[a]||l,c=i(e[a],t[a],a);ie.isUndefined(c)&&i!==d||(n[a]=c)}),n}const sg="1.6.7",Uc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Uc[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Ph={};Uc.transitional=function(t,n,r){function l(s,u){return"[Axios v"+sg+"] Transitional option '"+s+"'"+u+(r?". "+r:"")}return(s,u,d)=>{if(t===!1)throw new Ue(l(u," has been removed"+(n?" in "+n:"")),Ue.ERR_DEPRECATED);return n&&!Ph[u]&&(Ph[u]=!0,console.warn(l(u," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,u,d):!0}};function W$(e,t,n){if(typeof e!="object")throw new Ue("options must be an object",Ue.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let l=r.length;for(;l-- >0;){const s=r[l],u=t[s];if(u){const d=e[s],o=d===void 0||u(d,s,e);if(o!==!0)throw new Ue("option "+s+" must be "+o,Ue.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ue("Unknown option "+s,Ue.ERR_BAD_OPTION)}}const Pl={assertOptions:W$,validators:Uc},Nn=Pl.validators;let $o=class{constructor(t){this.defaults=t,this.interceptors={request:new Mh,response:new Mh}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let l;Error.captureStackTrace?Error.captureStackTrace(l={}):l=new Error;const s=l.stack?l.stack.replace(/^.+\n/,""):"";r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
800
+ `+s):r.stack=s}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ti(this.defaults,n);const{transitional:r,paramsSerializer:l,headers:s}=n;r!==void 0&&Pl.assertOptions(r,{silentJSONParsing:Nn.transitional(Nn.boolean),forcedJSONParsing:Nn.transitional(Nn.boolean),clarifyTimeoutError:Nn.transitional(Nn.boolean)},!1),l!=null&&(ie.isFunction(l)?n.paramsSerializer={serialize:l}:Pl.assertOptions(l,{encode:Nn.function,serialize:Nn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let u=s&&ie.merge(s.common,s[n.method]);s&&ie.forEach(["delete","get","head","post","put","patch","common"],f=>{delete s[f]}),n.headers=wn.concat(u,s);const d=[];let o=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(o=o&&g.synchronous,d.unshift(g.fulfilled,g.rejected))});const p=[];this.interceptors.response.forEach(function(g){p.push(g.fulfilled,g.rejected)});let a,i=0,c;if(!o){const f=[Dh.bind(this),void 0];for(f.unshift.apply(f,d),f.push.apply(f,p),c=f.length,a=Promise.resolve(n);i<c;)a=a.then(f[i++],f[i++]);return a}c=d.length;let h=n;for(i=0;i<c;){const f=d[i++],g=d[i++];try{h=f(h)}catch(m){g.call(this,m);break}}try{a=Dh.call(this,h)}catch(f){return Promise.reject(f)}for(i=0,c=p.length;i<c;)a=a.then(p[i++],p[i++]);return a}getUri(t){t=ti(this.defaults,t);const n=rg(t.baseURL,t.url);return Qp(n,t.params,t.paramsSerializer)}};ie.forEach(["delete","get","head","options"],function(t){$o.prototype[t]=function(n,r){return this.request(ti(r||{},{method:t,url:n,data:(r||{}).data}))}});ie.forEach(["post","put","patch"],function(t){function n(r){return function(s,u,d){return this.request(ti(d||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:u}))}}$o.prototype[t]=n(),$o.prototype[t+"Form"]=n(!0)});const ro=$o;let H$=class og{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(l=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](l);r._listeners=null}),this.promise.then=l=>{let s;const u=new Promise(d=>{r.subscribe(d),s=d}).then(l);return u.cancel=function(){r.unsubscribe(s)},u},t(function(s,u,d){r.reason||(r.reason=new _s(s,u,d),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new og(function(l){t=l}),cancel:t}}};const U$=H$;function V$(e){return function(n){return e.apply(null,n)}}function z$(e){return ie.isObject(e)&&e.isAxiosError===!0}const Bl={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Bl).forEach(([e,t])=>{Bl[t]=e});const j$=Bl;function ag(e){const t=new ro(e),n=Wp(ro.prototype.request,t);return ie.extend(n,ro.prototype,t,{allOwnKeys:!0}),ie.extend(n,t,null,{allOwnKeys:!0}),n.create=function(l){return ag(ti(e,l))},n}const tt=ag(Hc);tt.Axios=ro;tt.CanceledError=_s;tt.CancelToken=U$;tt.isCancel=ng;tt.VERSION=sg;tt.toFormData=ga;tt.AxiosError=Ue;tt.Cancel=tt.CanceledError;tt.all=function(t){return Promise.all(t)};tt.spread=V$;tt.isAxiosError=z$;tt.mergeConfig=ti;tt.AxiosHeaders=wn;tt.formToJSON=e=>tg(ie.isHTMLForm(e)?new FormData(e):e);tt.getAdapter=ig.getAdapter;tt.HttpStatusCode=j$;tt.default=tt;const{Axios:eO,AxiosError:G$,CanceledError:tO,isCancel:nO,CancelToken:rO,VERSION:iO,all:sO,Cancel:oO,isAxiosError:aO,spread:lO,toFormData:cO,AxiosHeaders:uO,HttpStatusCode:hO,formToJSON:fO,getAdapter:dO,mergeConfig:pO}=tt;var Ge;(function(e){e.assertEqual=l=>l;function t(l){}e.assertIs=t;function n(l){throw new Error}e.assertNever=n,e.arrayToEnum=l=>{const s={};for(const u of l)s[u]=u;return s},e.getValidEnumValues=l=>{const s=e.objectKeys(l).filter(d=>typeof l[l[d]]!="number"),u={};for(const d of s)u[d]=l[d];return e.objectValues(u)},e.objectValues=l=>e.objectKeys(l).map(function(s){return l[s]}),e.objectKeys=typeof Object.keys=="function"?l=>Object.keys(l):l=>{const s=[];for(const u in l)Object.prototype.hasOwnProperty.call(l,u)&&s.push(u);return s},e.find=(l,s)=>{for(const u of l)if(s(u))return u},e.isInteger=typeof Number.isInteger=="function"?l=>Number.isInteger(l):l=>typeof l=="number"&&isFinite(l)&&Math.floor(l)===l;function r(l,s=" | "){return l.map(u=>typeof u=="string"?`'${u}'`:u).join(s)}e.joinValues=r,e.jsonStringifyReplacer=(l,s)=>typeof s=="bigint"?s.toString():s})(Ge||(Ge={}));var Wl;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Wl||(Wl={}));const ye=Ge.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Un=e=>{switch(typeof e){case"undefined":return ye.undefined;case"string":return ye.string;case"number":return isNaN(e)?ye.nan:ye.number;case"boolean":return ye.boolean;case"function":return ye.function;case"bigint":return ye.bigint;case"symbol":return ye.symbol;case"object":return Array.isArray(e)?ye.array:e===null?ye.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?ye.promise:typeof Map<"u"&&e instanceof Map?ye.map:typeof Set<"u"&&e instanceof Set?ye.set:typeof Date<"u"&&e instanceof Date?ye.date:ye.object;default:return ye.unknown}},de=Ge.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),K$=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Xt extends Error{constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const n=t||function(s){return s.message},r={_errors:[]},l=s=>{for(const u of s.issues)if(u.code==="invalid_union")u.unionErrors.map(l);else if(u.code==="invalid_return_type")l(u.returnTypeError);else if(u.code==="invalid_arguments")l(u.argumentsError);else if(u.path.length===0)r._errors.push(n(u));else{let d=r,o=0;for(;o<u.path.length;){const p=u.path[o];o===u.path.length-1?(d[p]=d[p]||{_errors:[]},d[p]._errors.push(n(u))):d[p]=d[p]||{_errors:[]},d=d[p],o++}}};return l(this),r}toString(){return this.message}get message(){return JSON.stringify(this.issues,Ge.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const l of this.issues)l.path.length>0?(n[l.path[0]]=n[l.path[0]]||[],n[l.path[0]].push(t(l))):r.push(t(l));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Xt.create=e=>new Xt(e);const Ji=(e,t)=>{let n;switch(e.code){case de.invalid_type:e.received===ye.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case de.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Ge.jsonStringifyReplacer)}`;break;case de.unrecognized_keys:n=`Unrecognized key(s) in object: ${Ge.joinValues(e.keys,", ")}`;break;case de.invalid_union:n="Invalid input";break;case de.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Ge.joinValues(e.options)}`;break;case de.invalid_enum_value:n=`Invalid enum value. Expected ${Ge.joinValues(e.options)}, received '${e.received}'`;break;case de.invalid_arguments:n="Invalid function arguments";break;case de.invalid_return_type:n="Invalid function return type";break;case de.invalid_date:n="Invalid date";break;case de.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:Ge.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case de.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case de.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case de.custom:n="Invalid input";break;case de.invalid_intersection_types:n="Intersection results could not be merged";break;case de.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case de.not_finite:n="Number must be finite";break;default:n=t.defaultError,Ge.assertNever(e)}return{message:n}};let lg=Ji;function Y$(e){lg=e}function So(){return lg}const Co=e=>{const{data:t,path:n,errorMaps:r,issueData:l}=e,s=[...n,...l.path||[]],u={...l,path:s};let d="";const o=r.filter(p=>!!p).slice().reverse();for(const p of o)d=p(u,{data:t,defaultError:d}).message;return{...l,path:s,message:l.message||d}},Z$=[];function we(e,t){const n=Co({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,So(),Ji].filter(r=>!!r)});e.common.issues.push(n)}class St{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const l of n){if(l.status==="aborted")return De;l.status==="dirty"&&t.dirty(),r.push(l.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const l of n)r.push({key:await l.key,value:await l.value});return St.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const l of n){const{key:s,value:u}=l;if(s.status==="aborted"||u.status==="aborted")return De;s.status==="dirty"&&t.dirty(),u.status==="dirty"&&t.dirty(),s.value!=="__proto__"&&(typeof u.value<"u"||l.alwaysSet)&&(r[s.value]=u.value)}return{status:t.value,value:r}}}const De=Object.freeze({status:"aborted"}),cg=e=>({status:"dirty",value:e}),Et=e=>({status:"valid",value:e}),Hl=e=>e.status==="aborted",Ul=e=>e.status==="dirty",es=e=>e.status==="valid",Ao=e=>typeof Promise<"u"&&e instanceof Promise;var Te;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Te||(Te={}));class ln{constructor(t,n,r,l){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=l}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Bh=(e,t)=>{if(es(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Xt(e.common.issues);return this._error=n,this._error}}};function Pe(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:l}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:l}:{errorMap:(u,d)=>u.code!=="invalid_type"?{message:d.defaultError}:typeof d.data>"u"?{message:r??d.defaultError}:{message:n??d.defaultError},description:l}}class Be{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return Un(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Un(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new St,ctx:{common:t.parent.common,data:t.data,parsedType:Un(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(Ao(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const l={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Un(t)},s=this._parseSync({data:t,path:l.path,parent:l});return Bh(l,s)}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Un(t)},l=this._parse({data:t,path:r.path,parent:r}),s=await(Ao(l)?l:Promise.resolve(l));return Bh(r,s)}refine(t,n){const r=l=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(l):n;return this._refinement((l,s)=>{const u=t(l),d=()=>s.addIssue({code:de.custom,...r(l)});return typeof Promise<"u"&&u instanceof Promise?u.then(o=>o?!0:(d(),!1)):u?!0:(d(),!1)})}refinement(t,n){return this._refinement((r,l)=>t(r)?!0:(l.addIssue(typeof n=="function"?n(r,l):n),!1))}_refinement(t){return new en({schema:this,typeName:Me.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return _n.create(this,this._def)}nullable(){return Ar.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return qt.create(this,this._def)}promise(){return ri.create(this,this._def)}or(t){return is.create([this,t],this._def)}and(t){return ss.create(this,t,this._def)}transform(t){return new en({...Pe(this._def),schema:this,typeName:Me.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new us({...Pe(this._def),innerType:this,defaultValue:n,typeName:Me.ZodDefault})}brand(){return new hg({typeName:Me.ZodBranded,type:this,...Pe(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Ro({...Pe(this._def),innerType:this,catchValue:n,typeName:Me.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return $s.create(this,t)}readonly(){return Lo.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const X$=/^c[^\s-]{8,}$/i,q$=/^[a-z][a-z0-9]*$/,Q$=/^[0-9A-HJKMNP-TV-Z]{26}$/,J$=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,eS=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,tS="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Ka;const nS=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,rS=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,iS=e=>e.precision?e.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):e.precision===0?e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function sS(e,t){return!!((t==="v4"||!t)&&nS.test(e)||(t==="v6"||!t)&&rS.test(e))}class Zt extends Be{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==ye.string){const s=this._getOrReturnCtx(t);return we(s,{code:de.invalid_type,expected:ye.string,received:s.parsedType}),De}const r=new St;let l;for(const s of this._def.checks)if(s.kind==="min")t.data.length<s.value&&(l=this._getOrReturnCtx(t,l),we(l,{code:de.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="max")t.data.length>s.value&&(l=this._getOrReturnCtx(t,l),we(l,{code:de.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="length"){const u=t.data.length>s.value,d=t.data.length<s.value;(u||d)&&(l=this._getOrReturnCtx(t,l),u?we(l,{code:de.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):d&&we(l,{code:de.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),r.dirty())}else if(s.kind==="email")eS.test(t.data)||(l=this._getOrReturnCtx(t,l),we(l,{validation:"email",code:de.invalid_string,message:s.message}),r.dirty());else if(s.kind==="emoji")Ka||(Ka=new RegExp(tS,"u")),Ka.test(t.data)||(l=this._getOrReturnCtx(t,l),we(l,{validation:"emoji",code:de.invalid_string,message:s.message}),r.dirty());else if(s.kind==="uuid")J$.test(t.data)||(l=this._getOrReturnCtx(t,l),we(l,{validation:"uuid",code:de.invalid_string,message:s.message}),r.dirty());else if(s.kind==="cuid")X$.test(t.data)||(l=this._getOrReturnCtx(t,l),we(l,{validation:"cuid",code:de.invalid_string,message:s.message}),r.dirty());else if(s.kind==="cuid2")q$.test(t.data)||(l=this._getOrReturnCtx(t,l),we(l,{validation:"cuid2",code:de.invalid_string,message:s.message}),r.dirty());else if(s.kind==="ulid")Q$.test(t.data)||(l=this._getOrReturnCtx(t,l),we(l,{validation:"ulid",code:de.invalid_string,message:s.message}),r.dirty());else if(s.kind==="url")try{new URL(t.data)}catch{l=this._getOrReturnCtx(t,l),we(l,{validation:"url",code:de.invalid_string,message:s.message}),r.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(t.data)||(l=this._getOrReturnCtx(t,l),we(l,{validation:"regex",code:de.invalid_string,message:s.message}),r.dirty())):s.kind==="trim"?t.data=t.data.trim():s.kind==="includes"?t.data.includes(s.value,s.position)||(l=this._getOrReturnCtx(t,l),we(l,{code:de.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),r.dirty()):s.kind==="toLowerCase"?t.data=t.data.toLowerCase():s.kind==="toUpperCase"?t.data=t.data.toUpperCase():s.kind==="startsWith"?t.data.startsWith(s.value)||(l=this._getOrReturnCtx(t,l),we(l,{code:de.invalid_string,validation:{startsWith:s.value},message:s.message}),r.dirty()):s.kind==="endsWith"?t.data.endsWith(s.value)||(l=this._getOrReturnCtx(t,l),we(l,{code:de.invalid_string,validation:{endsWith:s.value},message:s.message}),r.dirty()):s.kind==="datetime"?iS(s).test(t.data)||(l=this._getOrReturnCtx(t,l),we(l,{code:de.invalid_string,validation:"datetime",message:s.message}),r.dirty()):s.kind==="ip"?sS(t.data,s.version)||(l=this._getOrReturnCtx(t,l),we(l,{validation:"ip",code:de.invalid_string,message:s.message}),r.dirty()):Ge.assertNever(s);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(l=>t.test(l),{validation:n,code:de.invalid_string,...Te.errToObj(r)})}_addCheck(t){return new Zt({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Te.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Te.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Te.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Te.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Te.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Te.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Te.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Te.errToObj(t)})}datetime(t){var n;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,...Te.errToObj(t==null?void 0:t.message)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...Te.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...Te.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...Te.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...Te.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...Te.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...Te.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...Te.errToObj(n)})}nonempty(t){return this.min(1,Te.errToObj(t))}trim(){return new Zt({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Zt({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Zt({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Zt.create=e=>{var t;return new Zt({checks:[],typeName:Me.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Pe(e)})};function oS(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,l=n>r?n:r,s=parseInt(e.toFixed(l).replace(".","")),u=parseInt(t.toFixed(l).replace(".",""));return s%u/Math.pow(10,l)}class qn extends Be{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==ye.number){const s=this._getOrReturnCtx(t);return we(s,{code:de.invalid_type,expected:ye.number,received:s.parsedType}),De}let r;const l=new St;for(const s of this._def.checks)s.kind==="int"?Ge.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{code:de.invalid_type,expected:"integer",received:"float",message:s.message}),l.dirty()):s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(r=this._getOrReturnCtx(t,r),we(r,{code:de.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),l.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(r=this._getOrReturnCtx(t,r),we(r,{code:de.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),l.dirty()):s.kind==="multipleOf"?oS(t.data,s.value)!==0&&(r=this._getOrReturnCtx(t,r),we(r,{code:de.not_multiple_of,multipleOf:s.value,message:s.message}),l.dirty()):s.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{code:de.not_finite,message:s.message}),l.dirty()):Ge.assertNever(s);return{status:l.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Te.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Te.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Te.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Te.toString(n))}setLimit(t,n,r,l){return new qn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Te.toString(l)}]})}_addCheck(t){return new qn({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Te.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Te.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Te.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Te.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Te.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Te.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:Te.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Te.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Te.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Ge.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}qn.create=e=>new qn({checks:[],typeName:Me.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Pe(e)});class Qn extends Be{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==ye.bigint){const s=this._getOrReturnCtx(t);return we(s,{code:de.invalid_type,expected:ye.bigint,received:s.parsedType}),De}let r;const l=new St;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(r=this._getOrReturnCtx(t,r),we(r,{code:de.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),l.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(r=this._getOrReturnCtx(t,r),we(r,{code:de.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),l.dirty()):s.kind==="multipleOf"?t.data%s.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),we(r,{code:de.not_multiple_of,multipleOf:s.value,message:s.message}),l.dirty()):Ge.assertNever(s);return{status:l.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Te.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Te.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Te.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Te.toString(n))}setLimit(t,n,r,l){return new Qn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Te.toString(l)}]})}_addCheck(t){return new Qn({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Te.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Te.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Te.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Te.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Te.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Qn.create=e=>{var t;return new Qn({checks:[],typeName:Me.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Pe(e)})};class ts extends Be{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==ye.boolean){const r=this._getOrReturnCtx(t);return we(r,{code:de.invalid_type,expected:ye.boolean,received:r.parsedType}),De}return Et(t.data)}}ts.create=e=>new ts({typeName:Me.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Pe(e)});class Sr extends Be{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==ye.date){const s=this._getOrReturnCtx(t);return we(s,{code:de.invalid_type,expected:ye.date,received:s.parsedType}),De}if(isNaN(t.data.getTime())){const s=this._getOrReturnCtx(t);return we(s,{code:de.invalid_date}),De}const r=new St;let l;for(const s of this._def.checks)s.kind==="min"?t.data.getTime()<s.value&&(l=this._getOrReturnCtx(t,l),we(l,{code:de.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),r.dirty()):s.kind==="max"?t.data.getTime()>s.value&&(l=this._getOrReturnCtx(t,l),we(l,{code:de.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),r.dirty()):Ge.assertNever(s);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Sr({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:Te.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:Te.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}Sr.create=e=>new Sr({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Me.ZodDate,...Pe(e)});class ko extends Be{_parse(t){if(this._getType(t)!==ye.symbol){const r=this._getOrReturnCtx(t);return we(r,{code:de.invalid_type,expected:ye.symbol,received:r.parsedType}),De}return Et(t.data)}}ko.create=e=>new ko({typeName:Me.ZodSymbol,...Pe(e)});class ns extends Be{_parse(t){if(this._getType(t)!==ye.undefined){const r=this._getOrReturnCtx(t);return we(r,{code:de.invalid_type,expected:ye.undefined,received:r.parsedType}),De}return Et(t.data)}}ns.create=e=>new ns({typeName:Me.ZodUndefined,...Pe(e)});class rs extends Be{_parse(t){if(this._getType(t)!==ye.null){const r=this._getOrReturnCtx(t);return we(r,{code:de.invalid_type,expected:ye.null,received:r.parsedType}),De}return Et(t.data)}}rs.create=e=>new rs({typeName:Me.ZodNull,...Pe(e)});class ni extends Be{constructor(){super(...arguments),this._any=!0}_parse(t){return Et(t.data)}}ni.create=e=>new ni({typeName:Me.ZodAny,...Pe(e)});class dr extends Be{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Et(t.data)}}dr.create=e=>new dr({typeName:Me.ZodUnknown,...Pe(e)});class An extends Be{_parse(t){const n=this._getOrReturnCtx(t);return we(n,{code:de.invalid_type,expected:ye.never,received:n.parsedType}),De}}An.create=e=>new An({typeName:Me.ZodNever,...Pe(e)});class xo extends Be{_parse(t){if(this._getType(t)!==ye.undefined){const r=this._getOrReturnCtx(t);return we(r,{code:de.invalid_type,expected:ye.void,received:r.parsedType}),De}return Et(t.data)}}xo.create=e=>new xo({typeName:Me.ZodVoid,...Pe(e)});class qt extends Be{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),l=this._def;if(n.parsedType!==ye.array)return we(n,{code:de.invalid_type,expected:ye.array,received:n.parsedType}),De;if(l.exactLength!==null){const u=n.data.length>l.exactLength.value,d=n.data.length<l.exactLength.value;(u||d)&&(we(n,{code:u?de.too_big:de.too_small,minimum:d?l.exactLength.value:void 0,maximum:u?l.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:l.exactLength.message}),r.dirty())}if(l.minLength!==null&&n.data.length<l.minLength.value&&(we(n,{code:de.too_small,minimum:l.minLength.value,type:"array",inclusive:!0,exact:!1,message:l.minLength.message}),r.dirty()),l.maxLength!==null&&n.data.length>l.maxLength.value&&(we(n,{code:de.too_big,maximum:l.maxLength.value,type:"array",inclusive:!0,exact:!1,message:l.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((u,d)=>l.type._parseAsync(new ln(n,u,n.path,d)))).then(u=>St.mergeArray(r,u));const s=[...n.data].map((u,d)=>l.type._parseSync(new ln(n,u,n.path,d)));return St.mergeArray(r,s)}get element(){return this._def.type}min(t,n){return new qt({...this._def,minLength:{value:t,message:Te.toString(n)}})}max(t,n){return new qt({...this._def,maxLength:{value:t,message:Te.toString(n)}})}length(t,n){return new qt({...this._def,exactLength:{value:t,message:Te.toString(n)}})}nonempty(t){return this.min(1,t)}}qt.create=(e,t)=>new qt({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Me.ZodArray,...Pe(t)});function Or(e){if(e instanceof ct){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=_n.create(Or(r))}return new ct({...e._def,shape:()=>t})}else return e instanceof qt?new qt({...e._def,type:Or(e.element)}):e instanceof _n?_n.create(Or(e.unwrap())):e instanceof Ar?Ar.create(Or(e.unwrap())):e instanceof cn?cn.create(e.items.map(t=>Or(t))):e}class ct extends Be{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=Ge.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==ye.object){const p=this._getOrReturnCtx(t);return we(p,{code:de.invalid_type,expected:ye.object,received:p.parsedType}),De}const{status:r,ctx:l}=this._processInputParams(t),{shape:s,keys:u}=this._getCached(),d=[];if(!(this._def.catchall instanceof An&&this._def.unknownKeys==="strip"))for(const p in l.data)u.includes(p)||d.push(p);const o=[];for(const p of u){const a=s[p],i=l.data[p];o.push({key:{status:"valid",value:p},value:a._parse(new ln(l,i,l.path,p)),alwaysSet:p in l.data})}if(this._def.catchall instanceof An){const p=this._def.unknownKeys;if(p==="passthrough")for(const a of d)o.push({key:{status:"valid",value:a},value:{status:"valid",value:l.data[a]}});else if(p==="strict")d.length>0&&(we(l,{code:de.unrecognized_keys,keys:d}),r.dirty());else if(p!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const p=this._def.catchall;for(const a of d){const i=l.data[a];o.push({key:{status:"valid",value:a},value:p._parse(new ln(l,i,l.path,a)),alwaysSet:a in l.data})}}return l.common.async?Promise.resolve().then(async()=>{const p=[];for(const a of o){const i=await a.key;p.push({key:i,value:await a.value,alwaysSet:a.alwaysSet})}return p}).then(p=>St.mergeObjectSync(r,p)):St.mergeObjectSync(r,o)}get shape(){return this._def.shape()}strict(t){return Te.errToObj,new ct({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var l,s,u,d;const o=(u=(s=(l=this._def).errorMap)===null||s===void 0?void 0:s.call(l,n,r).message)!==null&&u!==void 0?u:r.defaultError;return n.code==="unrecognized_keys"?{message:(d=Te.errToObj(t).message)!==null&&d!==void 0?d:o}:{message:o}}}:{}})}strip(){return new ct({...this._def,unknownKeys:"strip"})}passthrough(){return new ct({...this._def,unknownKeys:"passthrough"})}extend(t){return new ct({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new ct({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Me.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new ct({...this._def,catchall:t})}pick(t){const n={};return Ge.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new ct({...this._def,shape:()=>n})}omit(t){const n={};return Ge.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new ct({...this._def,shape:()=>n})}deepPartial(){return Or(this)}partial(t){const n={};return Ge.objectKeys(this.shape).forEach(r=>{const l=this.shape[r];t&&!t[r]?n[r]=l:n[r]=l.optional()}),new ct({...this._def,shape:()=>n})}required(t){const n={};return Ge.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let s=this.shape[r];for(;s instanceof _n;)s=s._def.innerType;n[r]=s}}),new ct({...this._def,shape:()=>n})}keyof(){return ug(Ge.objectKeys(this.shape))}}ct.create=(e,t)=>new ct({shape:()=>e,unknownKeys:"strip",catchall:An.create(),typeName:Me.ZodObject,...Pe(t)});ct.strictCreate=(e,t)=>new ct({shape:()=>e,unknownKeys:"strict",catchall:An.create(),typeName:Me.ZodObject,...Pe(t)});ct.lazycreate=(e,t)=>new ct({shape:e,unknownKeys:"strip",catchall:An.create(),typeName:Me.ZodObject,...Pe(t)});class is extends Be{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function l(s){for(const d of s)if(d.result.status==="valid")return d.result;for(const d of s)if(d.result.status==="dirty")return n.common.issues.push(...d.ctx.common.issues),d.result;const u=s.map(d=>new Xt(d.ctx.common.issues));return we(n,{code:de.invalid_union,unionErrors:u}),De}if(n.common.async)return Promise.all(r.map(async s=>{const u={...n,common:{...n.common,issues:[]},parent:null};return{result:await s._parseAsync({data:n.data,path:n.path,parent:u}),ctx:u}})).then(l);{let s;const u=[];for(const o of r){const p={...n,common:{...n.common,issues:[]},parent:null},a=o._parseSync({data:n.data,path:n.path,parent:p});if(a.status==="valid")return a;a.status==="dirty"&&!s&&(s={result:a,ctx:p}),p.common.issues.length&&u.push(p.common.issues)}if(s)return n.common.issues.push(...s.ctx.common.issues),s.result;const d=u.map(o=>new Xt(o));return we(n,{code:de.invalid_union,unionErrors:d}),De}}get options(){return this._def.options}}is.create=(e,t)=>new is({options:e,typeName:Me.ZodUnion,...Pe(t)});const io=e=>e instanceof as?io(e.schema):e instanceof en?io(e.innerType()):e instanceof ls?[e.value]:e instanceof Jn?e.options:e instanceof cs?Object.keys(e.enum):e instanceof us?io(e._def.innerType):e instanceof ns?[void 0]:e instanceof rs?[null]:null;class va extends Be{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ye.object)return we(n,{code:de.invalid_type,expected:ye.object,received:n.parsedType}),De;const r=this.discriminator,l=n.data[r],s=this.optionsMap.get(l);return s?n.common.async?s._parseAsync({data:n.data,path:n.path,parent:n}):s._parseSync({data:n.data,path:n.path,parent:n}):(we(n,{code:de.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),De)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const l=new Map;for(const s of n){const u=io(s.shape[t]);if(!u)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const d of u){if(l.has(d))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(d)}`);l.set(d,s)}}return new va({typeName:Me.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:l,...Pe(r)})}}function Vl(e,t){const n=Un(e),r=Un(t);if(e===t)return{valid:!0,data:e};if(n===ye.object&&r===ye.object){const l=Ge.objectKeys(t),s=Ge.objectKeys(e).filter(d=>l.indexOf(d)!==-1),u={...e,...t};for(const d of s){const o=Vl(e[d],t[d]);if(!o.valid)return{valid:!1};u[d]=o.data}return{valid:!0,data:u}}else if(n===ye.array&&r===ye.array){if(e.length!==t.length)return{valid:!1};const l=[];for(let s=0;s<e.length;s++){const u=e[s],d=t[s],o=Vl(u,d);if(!o.valid)return{valid:!1};l.push(o.data)}return{valid:!0,data:l}}else return n===ye.date&&r===ye.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class ss extends Be{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),l=(s,u)=>{if(Hl(s)||Hl(u))return De;const d=Vl(s.value,u.value);return d.valid?((Ul(s)||Ul(u))&&n.dirty(),{status:n.value,value:d.data}):(we(r,{code:de.invalid_intersection_types}),De)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([s,u])=>l(s,u)):l(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}ss.create=(e,t,n)=>new ss({left:e,right:t,typeName:Me.ZodIntersection,...Pe(n)});class cn extends Be{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ye.array)return we(r,{code:de.invalid_type,expected:ye.array,received:r.parsedType}),De;if(r.data.length<this._def.items.length)return we(r,{code:de.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),De;!this._def.rest&&r.data.length>this._def.items.length&&(we(r,{code:de.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const s=[...r.data].map((u,d)=>{const o=this._def.items[d]||this._def.rest;return o?o._parse(new ln(r,u,r.path,d)):null}).filter(u=>!!u);return r.common.async?Promise.all(s).then(u=>St.mergeArray(n,u)):St.mergeArray(n,s)}get items(){return this._def.items}rest(t){return new cn({...this._def,rest:t})}}cn.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new cn({items:e,typeName:Me.ZodTuple,rest:null,...Pe(t)})};class os extends Be{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ye.object)return we(r,{code:de.invalid_type,expected:ye.object,received:r.parsedType}),De;const l=[],s=this._def.keyType,u=this._def.valueType;for(const d in r.data)l.push({key:s._parse(new ln(r,d,r.path,d)),value:u._parse(new ln(r,r.data[d],r.path,d))});return r.common.async?St.mergeObjectAsync(n,l):St.mergeObjectSync(n,l)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof Be?new os({keyType:t,valueType:n,typeName:Me.ZodRecord,...Pe(r)}):new os({keyType:Zt.create(),valueType:t,typeName:Me.ZodRecord,...Pe(n)})}}class Eo extends Be{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ye.map)return we(r,{code:de.invalid_type,expected:ye.map,received:r.parsedType}),De;const l=this._def.keyType,s=this._def.valueType,u=[...r.data.entries()].map(([d,o],p)=>({key:l._parse(new ln(r,d,r.path,[p,"key"])),value:s._parse(new ln(r,o,r.path,[p,"value"]))}));if(r.common.async){const d=new Map;return Promise.resolve().then(async()=>{for(const o of u){const p=await o.key,a=await o.value;if(p.status==="aborted"||a.status==="aborted")return De;(p.status==="dirty"||a.status==="dirty")&&n.dirty(),d.set(p.value,a.value)}return{status:n.value,value:d}})}else{const d=new Map;for(const o of u){const p=o.key,a=o.value;if(p.status==="aborted"||a.status==="aborted")return De;(p.status==="dirty"||a.status==="dirty")&&n.dirty(),d.set(p.value,a.value)}return{status:n.value,value:d}}}}Eo.create=(e,t,n)=>new Eo({valueType:t,keyType:e,typeName:Me.ZodMap,...Pe(n)});class Cr extends Be{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ye.set)return we(r,{code:de.invalid_type,expected:ye.set,received:r.parsedType}),De;const l=this._def;l.minSize!==null&&r.data.size<l.minSize.value&&(we(r,{code:de.too_small,minimum:l.minSize.value,type:"set",inclusive:!0,exact:!1,message:l.minSize.message}),n.dirty()),l.maxSize!==null&&r.data.size>l.maxSize.value&&(we(r,{code:de.too_big,maximum:l.maxSize.value,type:"set",inclusive:!0,exact:!1,message:l.maxSize.message}),n.dirty());const s=this._def.valueType;function u(o){const p=new Set;for(const a of o){if(a.status==="aborted")return De;a.status==="dirty"&&n.dirty(),p.add(a.value)}return{status:n.value,value:p}}const d=[...r.data.values()].map((o,p)=>s._parse(new ln(r,o,r.path,p)));return r.common.async?Promise.all(d).then(o=>u(o)):u(d)}min(t,n){return new Cr({...this._def,minSize:{value:t,message:Te.toString(n)}})}max(t,n){return new Cr({...this._def,maxSize:{value:t,message:Te.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Cr.create=(e,t)=>new Cr({valueType:e,minSize:null,maxSize:null,typeName:Me.ZodSet,...Pe(t)});class Kr extends Be{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ye.function)return we(n,{code:de.invalid_type,expected:ye.function,received:n.parsedType}),De;function r(d,o){return Co({data:d,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,So(),Ji].filter(p=>!!p),issueData:{code:de.invalid_arguments,argumentsError:o}})}function l(d,o){return Co({data:d,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,So(),Ji].filter(p=>!!p),issueData:{code:de.invalid_return_type,returnTypeError:o}})}const s={errorMap:n.common.contextualErrorMap},u=n.data;if(this._def.returns instanceof ri){const d=this;return Et(async function(...o){const p=new Xt([]),a=await d._def.args.parseAsync(o,s).catch(h=>{throw p.addIssue(r(o,h)),p}),i=await Reflect.apply(u,this,a);return await d._def.returns._def.type.parseAsync(i,s).catch(h=>{throw p.addIssue(l(i,h)),p})})}else{const d=this;return Et(function(...o){const p=d._def.args.safeParse(o,s);if(!p.success)throw new Xt([r(o,p.error)]);const a=Reflect.apply(u,this,p.data),i=d._def.returns.safeParse(a,s);if(!i.success)throw new Xt([l(a,i.error)]);return i.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Kr({...this._def,args:cn.create(t).rest(dr.create())})}returns(t){return new Kr({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new Kr({args:t||cn.create([]).rest(dr.create()),returns:n||dr.create(),typeName:Me.ZodFunction,...Pe(r)})}}class as extends Be{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}as.create=(e,t)=>new as({getter:e,typeName:Me.ZodLazy,...Pe(t)});class ls extends Be{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return we(n,{received:n.data,code:de.invalid_literal,expected:this._def.value}),De}return{status:"valid",value:t.data}}get value(){return this._def.value}}ls.create=(e,t)=>new ls({value:e,typeName:Me.ZodLiteral,...Pe(t)});function ug(e,t){return new Jn({values:e,typeName:Me.ZodEnum,...Pe(t)})}class Jn extends Be{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return we(n,{expected:Ge.joinValues(r),received:n.parsedType,code:de.invalid_type}),De}if(this._def.values.indexOf(t.data)===-1){const n=this._getOrReturnCtx(t),r=this._def.values;return we(n,{received:n.data,code:de.invalid_enum_value,options:r}),De}return Et(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t){return Jn.create(t)}exclude(t){return Jn.create(this.options.filter(n=>!t.includes(n)))}}Jn.create=ug;class cs extends Be{_parse(t){const n=Ge.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==ye.string&&r.parsedType!==ye.number){const l=Ge.objectValues(n);return we(r,{expected:Ge.joinValues(l),received:r.parsedType,code:de.invalid_type}),De}if(n.indexOf(t.data)===-1){const l=Ge.objectValues(n);return we(r,{received:r.data,code:de.invalid_enum_value,options:l}),De}return Et(t.data)}get enum(){return this._def.values}}cs.create=(e,t)=>new cs({values:e,typeName:Me.ZodNativeEnum,...Pe(t)});class ri extends Be{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ye.promise&&n.common.async===!1)return we(n,{code:de.invalid_type,expected:ye.promise,received:n.parsedType}),De;const r=n.parsedType===ye.promise?n.data:Promise.resolve(n.data);return Et(r.then(l=>this._def.type.parseAsync(l,{path:n.path,errorMap:n.common.contextualErrorMap})))}}ri.create=(e,t)=>new ri({type:e,typeName:Me.ZodPromise,...Pe(t)});class en extends Be{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Me.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),l=this._def.effect||null,s={addIssue:u=>{we(r,u),u.fatal?n.abort():n.dirty()},get path(){return r.path}};if(s.addIssue=s.addIssue.bind(s),l.type==="preprocess"){const u=l.transform(r.data,s);return r.common.issues.length?{status:"dirty",value:r.data}:r.common.async?Promise.resolve(u).then(d=>this._def.schema._parseAsync({data:d,path:r.path,parent:r})):this._def.schema._parseSync({data:u,path:r.path,parent:r})}if(l.type==="refinement"){const u=d=>{const o=l.refinement(d,s);if(r.common.async)return Promise.resolve(o);if(o instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return d};if(r.common.async===!1){const d=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return d.status==="aborted"?De:(d.status==="dirty"&&n.dirty(),u(d.value),{status:n.value,value:d.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(d=>d.status==="aborted"?De:(d.status==="dirty"&&n.dirty(),u(d.value).then(()=>({status:n.value,value:d.value}))))}if(l.type==="transform")if(r.common.async===!1){const u=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!es(u))return u;const d=l.transform(u.value,s);if(d instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:d}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(u=>es(u)?Promise.resolve(l.transform(u.value,s)).then(d=>({status:n.value,value:d})):u);Ge.assertNever(l)}}en.create=(e,t,n)=>new en({schema:e,typeName:Me.ZodEffects,effect:t,...Pe(n)});en.createWithPreprocess=(e,t,n)=>new en({schema:t,effect:{type:"preprocess",transform:e},typeName:Me.ZodEffects,...Pe(n)});class _n extends Be{_parse(t){return this._getType(t)===ye.undefined?Et(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}_n.create=(e,t)=>new _n({innerType:e,typeName:Me.ZodOptional,...Pe(t)});class Ar extends Be{_parse(t){return this._getType(t)===ye.null?Et(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Ar.create=(e,t)=>new Ar({innerType:e,typeName:Me.ZodNullable,...Pe(t)});class us extends Be{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===ye.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}us.create=(e,t)=>new us({innerType:e,typeName:Me.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Pe(t)});class Ro extends Be{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},l=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Ao(l)?l.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Xt(r.common.issues)},input:r.data})})):{status:"valid",value:l.status==="valid"?l.value:this._def.catchValue({get error(){return new Xt(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Ro.create=(e,t)=>new Ro({innerType:e,typeName:Me.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Pe(t)});class To extends Be{_parse(t){if(this._getType(t)!==ye.nan){const r=this._getOrReturnCtx(t);return we(r,{code:de.invalid_type,expected:ye.nan,received:r.parsedType}),De}return{status:"valid",value:t.data}}}To.create=e=>new To({typeName:Me.ZodNaN,...Pe(e)});const aS=Symbol("zod_brand");class hg extends Be{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class $s extends Be{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?De:s.status==="dirty"?(n.dirty(),cg(s.value)):this._def.out._parseAsync({data:s.value,path:r.path,parent:r})})();{const l=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return l.status==="aborted"?De:l.status==="dirty"?(n.dirty(),{status:"dirty",value:l.value}):this._def.out._parseSync({data:l.value,path:r.path,parent:r})}}static create(t,n){return new $s({in:t,out:n,typeName:Me.ZodPipeline})}}class Lo extends Be{_parse(t){const n=this._def.innerType._parse(t);return es(n)&&(n.value=Object.freeze(n.value)),n}}Lo.create=(e,t)=>new Lo({innerType:e,typeName:Me.ZodReadonly,...Pe(t)});const fg=(e,t={},n)=>e?ni.create().superRefine((r,l)=>{var s,u;if(!e(r)){const d=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,o=(u=(s=d.fatal)!==null&&s!==void 0?s:n)!==null&&u!==void 0?u:!0,p=typeof d=="string"?{message:d}:d;l.addIssue({code:"custom",...p,fatal:o})}}):ni.create(),lS={object:ct.lazycreate};var Me;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Me||(Me={}));const cS=(e,t={message:`Input not instance of ${e.name}`})=>fg(n=>n instanceof e,t),dg=Zt.create,pg=qn.create,uS=To.create,hS=Qn.create,gg=ts.create,fS=Sr.create,dS=ko.create,pS=ns.create,gS=rs.create,mS=ni.create,vS=dr.create,yS=An.create,bS=xo.create,wS=qt.create,_S=ct.create,$S=ct.strictCreate,SS=is.create,CS=va.create,AS=ss.create,kS=cn.create,xS=os.create,ES=Eo.create,RS=Cr.create,TS=Kr.create,LS=as.create,MS=ls.create,OS=Jn.create,IS=cs.create,NS=ri.create,Wh=en.create,DS=_n.create,FS=Ar.create,PS=en.createWithPreprocess,BS=$s.create,WS=()=>dg().optional(),HS=()=>pg().optional(),US=()=>gg().optional(),VS={string:e=>Zt.create({...e,coerce:!0}),number:e=>qn.create({...e,coerce:!0}),boolean:e=>ts.create({...e,coerce:!0}),bigint:e=>Qn.create({...e,coerce:!0}),date:e=>Sr.create({...e,coerce:!0})},zS=De;var ne=Object.freeze({__proto__:null,defaultErrorMap:Ji,setErrorMap:Y$,getErrorMap:So,makeIssue:Co,EMPTY_PATH:Z$,addIssueToContext:we,ParseStatus:St,INVALID:De,DIRTY:cg,OK:Et,isAborted:Hl,isDirty:Ul,isValid:es,isAsync:Ao,get util(){return Ge},get objectUtil(){return Wl},ZodParsedType:ye,getParsedType:Un,ZodType:Be,ZodString:Zt,ZodNumber:qn,ZodBigInt:Qn,ZodBoolean:ts,ZodDate:Sr,ZodSymbol:ko,ZodUndefined:ns,ZodNull:rs,ZodAny:ni,ZodUnknown:dr,ZodNever:An,ZodVoid:xo,ZodArray:qt,ZodObject:ct,ZodUnion:is,ZodDiscriminatedUnion:va,ZodIntersection:ss,ZodTuple:cn,ZodRecord:os,ZodMap:Eo,ZodSet:Cr,ZodFunction:Kr,ZodLazy:as,ZodLiteral:ls,ZodEnum:Jn,ZodNativeEnum:cs,ZodPromise:ri,ZodEffects:en,ZodTransformer:en,ZodOptional:_n,ZodNullable:Ar,ZodDefault:us,ZodCatch:Ro,ZodNaN:To,BRAND:aS,ZodBranded:hg,ZodPipeline:$s,ZodReadonly:Lo,custom:fg,Schema:Be,ZodSchema:Be,late:lS,get ZodFirstPartyTypeKind(){return Me},coerce:VS,any:mS,array:wS,bigint:hS,boolean:gg,date:fS,discriminatedUnion:CS,effect:Wh,enum:OS,function:TS,instanceof:cS,intersection:AS,lazy:LS,literal:MS,map:ES,nan:uS,nativeEnum:IS,never:yS,null:gS,nullable:FS,number:pg,object:_S,oboolean:US,onumber:HS,optional:DS,ostring:WS,pipeline:BS,preprocess:PS,promise:NS,record:xS,set:RS,strictObject:$S,string:dg,symbol:dS,transformer:Wh,tuple:kS,undefined:pS,union:SS,unknown:vS,void:bS,NEVER:zS,ZodIssueCode:de,quotelessJson:K$,ZodError:Xt});const ya=ne.object({total:ne.number(),currentPage:ne.number(),pageSize:ne.number()}),jS=ne.object({key:ne.string(),value:ne.string().nullish()}),GS=ne.object({name:ne.string(),configured:ne.boolean(),items:ne.array(jS).nullish(),type:ne.string()}),KS=ne.object({results:ne.array(GS)}),ba=ne.object({id:ne.number(),name:ne.string()}),YS=ya.extend({results:ne.array(ba)}),ZS=ne.object({resource:ne.string(),value:ne.string()}),Hh=ne.object({name:ne.string().nullish()}),XS=ne.object({createdOn:ne.string().nullish(),updatedOn:ne.string().nullish(),expiresOn:ne.string().nullish(),registrar:Hh.nullish(),contacts:ne.array(Hh)}),qS=ne.object({number:ne.number()}),QS=ne.object({country:ne.string(),countryCode:ne.string()}),JS=ne.object({name:ne.string()}),eC=ne.object({name:ne.string()}),tC=ne.object({name:ne.string()}),nC=ne.object({number:ne.number()}),Vc=ne.object({id:ne.number(),data:ne.string(),dataType:ne.string(),source:ne.string(),query:ne.string().nullish(),metadata:ne.any().nullish(),createdAt:ne.string(),autonomousSystem:qS.nullish(),whoisRecord:XS.nullish(),geolocation:QS.nullish(),dnsRecords:ne.array(ZS).nullish(),reverseDnsNames:ne.array(JS).nullish(),cpes:ne.array(eC).nullish(),ports:ne.array(nC).nullish(),vulnerabilities:ne.array(tC).nullish(),tags:ne.array(ba)}),mg=ne.object({id:ne.number(),ruleId:ne.string(),createdAt:ne.string(),tags:ne.array(ba),artifacts:ne.array(Vc)}),rC=ya.extend({results:ne.array(mg)});ne.object({q:ne.string(),page:ne.number().nullish(),limit:ne.number().nullish()});ne.object({countryCode:ne.string(),asn:ne.string().nullish(),loc:ne.string().nullish()});ne.object({lat:ne.number(),long:ne.number()});ne.object({name:ne.string(),code:ne.string(),lat:ne.number(),long:ne.number()});ne.union([ne.literal("ip"),ne.literal("domain"),ne.literal("url"),ne.literal("hash"),ne.literal("mail")]);ne.object({name:ne.string(),type:ne.string(),baseURL:ne.string(),favicon:ne.function().returns(ne.string()),href:ne.function().args(ne.string()).returns(ne.string())});const so=ne.object({id:ne.string(),title:ne.string(),description:ne.string(),yaml:ne.string(),createdAt:ne.string(),updatedAt:ne.string(),tags:ne.array(ba)});ne.object({yaml:ne.string()});ne.object({yaml:ne.string()});ne.object({analyzer:ne.string(),query:ne.string()});const iC=ya.extend({results:ne.array(so)}),sC=ya.extend({results:ne.array(Vc)}),Fr=ne.object({message:ne.string()});Fr.extend({detail:ne.any().nullish()});const Uh=Fr.extend({queued:ne.boolean()});ne.union([ne.literal("Alerts"),ne.literal("Rules"),ne.literal("Artifacts")]);const pt=tt.create(),At={async getConfigs(){const e=await pt.get("/api/configs");return KS.parse(e.data)},async getAlerts(e){e.page=e.page||1;const t=await pt.get("/api/alerts",{params:e});return rC.parse(t.data)},async getAlert(e){const t=await pt.get(`/api/alerts/${e}`);return mg.parse(t.data)},async getTags(){const e=await pt.get("/api/tags");return YS.parse(e.data)},async deleteAlert(e){const t=await pt.delete(`/api/alerts/${e}`);return Fr.parse(t.data)},async getArtifact(e){const t=await pt.get(`/api/artifacts/${e}`);return Vc.parse(t.data)},async getArtifacts(e){e.page=e.page||1;const t=await pt.get("/api/artifacts",{params:e});return sC.parse(t.data)},async enrichArtifact(e){const t=await pt.post(`/api/artifacts/${e}/enrich`);return Uh.parse(t.data)},async deleteArtifact(e){const t=await pt.delete(`/api/artifacts/${e}`);return Fr.parse(t.data)},async getRules(e){e.page=e.page||1;const t=await pt.get("/api/rules",{params:e});return iC.parse(t.data)},async getRule(e){const t=await pt.get(`/api/rules/${e}`);return so.parse(t.data)},async searchRule(e){const t=await pt.post(`/api/rules/${e}/search`);return Uh.parse(t.data)},async createRule(e){const t=await pt.post("/api/rules/",e);return so.parse(t.data)},async updateRule(e){const t=await pt.put("/api/rules/",e);return so.parse(t.data)},async deleteRule(e){const t=await pt.delete(`/api/rules/${e}`);return Fr.parse(t.data)},async deleteTag(e){const t=await pt.delete(`/api/tags/${e}`);return Fr.parse(t.data)},async getIpInfo(e){return(await pt.get(`/api/ip_addresses/${e}`)).data}};function Ss(){return Ct(async(e,t)=>await At.getAlerts(t))}function oC(){return Ct(async(e,t)=>await At.deleteAlert(t))}function aC(){return Ct(async(e,t)=>await At.deleteTag(t))}function lC(){return Ct(async(e,t)=>await At.getArtifact(t))}function vg(){return Ct(async(e,t)=>await At.deleteArtifact(t))}function cC(){return Ct(async(e,t)=>await At.enrichArtifact(t))}function uC(){return Ct(async()=>await At.getConfigs())}function hC(){return Ct(async(e,t)=>await At.getIpInfo(t))}function yg(){return Ct(async(e,t)=>await At.getRules(t))}function bg(){return Ct(async(e,t)=>await At.getRule(t))}function fC(){return Ct(async(e,t)=>await At.deleteRule(t))}function dC(){return Ct(async(e,t)=>await At.searchRule(t))}function pC(){return Ct(async(e,t)=>await At.createRule(t))}function gC(){return Ct(async(e,t)=>await At.updateRule(t))}function zc(){return Ct(async(e,t)=>await At.getArtifacts(t))}function mC(){return Ct(async(e,t)=>await At.getAlert(t))}const vC=Ce({name:"AlertActionButtons",props:{alert:{type:Object,required:!0}},emits:["delete","set-error"],setup(e,t){const n=Le(()=>`/api/alerts/${e.alert.id}`),r=oC();return{href:n,deleteAlert:async()=>{if(window.confirm(`Are you sure you want to delete ${e.alert.id}?`))try{await r.perform(e.alert.id),t.emit("delete")}catch(u){tt.isAxiosError(u)&&t.emit("set-error",u)}}}}}),yC={class:"buttons is-pulled-right"},bC=["href"],wC=D("span",null,"JSON",-1),_C={class:"icon is-small"},$C=D("span",null,"Delete",-1),SC={class:"icon is-small"};function CC(e,t,n,r,l,s){const u=re("font-awesome-icon");return Z(),se("span",yC,[D("a",{class:"button is-link is-light is-small",href:e.href,target:"_blank"},[wC,D("span",_C,[oe(u,{icon:"barcode"})])],8,bC),D("button",{class:"button is-light is-small",onClick:t[0]||(t[0]=(...d)=>e.deleteAlert&&e.deleteAlert(...d))},[$C,D("span",SC,[oe(u,{icon:"times"})])])])}const wg=Re(vC,[["render",CC]]);var Cs=AC;function AC(e,t,n){return t==null||t>=e.length?e:(n==null&&(n="..."),e.slice(0,Math.max(0,t-n.length))+n)}const kC=Ce({name:"ArtifactTag",props:{artifact:{type:Object,required:!0}},emits:["delete"],setup(e,t){const n=ze(!1),r=ze(!1),l=vg();return{deleteArtifact:async()=>{window.confirm(`Are you sure you want to delete ${e.artifact.data}?`)&&(await l.perform(e.artifact.id),n.value=!0,t.emit("delete"))},hideDeleteButton:()=>{r.value=!1},isDeleteButtonEnabled:r,isDeleted:n,showDeleteButton:()=>{r.value=!0},truncate:Cs}}}),xC={key:0,class:"control"};function EC(e,t,n,r,l,s){const u=re("router-link");return e.isDeleted?me("",!0):(Z(),se("div",xC,[D("div",{class:"tags has-addons are-medium",onMouseover:t[1]||(t[1]=(...d)=>e.showDeleteButton&&e.showDeleteButton(...d)),onMouseleave:t[2]||(t[2]=(...d)=>e.hideDeleteButton&&e.hideDeleteButton(...d))},[oe(u,{class:"tag is-link is-light",to:{name:"Artifact",params:{id:e.artifact.id}}},{default:Je(()=>[et($e(e.truncate(e.artifact.data,32)),1)]),_:1},8,["to"]),e.isDeleteButtonEnabled?(Z(),se("span",{key:0,class:"tag is-delete",onClick:t[0]||(t[0]=(...d)=>e.deleteArtifact&&e.deleteArtifact(...d))})):me("",!0)],32)]))}const RC=Re(kC,[["render",EC]]),TC=Ce({name:"ArtifactTags",components:{ArtifactTag:RC},props:{artifacts:{type:Array,required:!0}},emits:["delete"],setup(e,t){const n=ze(0),r=()=>{n.value+=1};return st(n,()=>{n.value>=e.artifacts.length&&t.emit("delete")}),{onDelete:r}}}),LC={class:"field is-grouped is-grouped-multiline"};function MC(e,t,n,r,l,s){const u=re("ArtifactTag");return Z(),se("div",LC,[(Z(!0),se(Ne,null,Nt(e.artifacts,d=>(Z(),Se(u,{key:d.id,artifact:d,onDelete:e.onDelete},null,8,["artifact","onDelete"]))),128))])}const _g=Re(TC,[["render",MC]]);var er=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Tr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function $g(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var l=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,l.get?l:{enumerable:!0,get:function(){return e[r]}})}),n}var Sg={exports:{}};const OC=$g(yw);(function(e,t){(function(n,r){e.exports=r(OC)})(er,function(n){return function(){var r={789:function(d){d.exports=n}},l={};function s(d){var o=l[d];if(o!==void 0)return o.exports;var p=l[d]={exports:{}};return r[d](p,p.exports,s),p.exports}s.d=function(d,o){for(var p in o)s.o(o,p)&&!s.o(d,p)&&Object.defineProperty(d,p,{enumerable:!0,get:o[p]})},s.o=function(d,o){return Object.prototype.hasOwnProperty.call(d,o)},s.r=function(d){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var u={};return function(){function d(_,A){(A==null||A>_.length)&&(A=_.length);for(var $=0,w=new Array(A);$<A;$++)w[$]=_[$];return w}function o(_,A){if(_){if(typeof _=="string")return d(_,A);var $=Object.prototype.toString.call(_).slice(8,-1);return $==="Object"&&_.constructor&&($=_.constructor.name),$==="Map"||$==="Set"?Array.from(_):$==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($)?d(_,A):void 0}}function p(_){return function(A){if(Array.isArray(A))return d(A)}(_)||function(A){if(typeof Symbol<"u"&&A[Symbol.iterator]!=null||A["@@iterator"]!=null)return Array.from(A)}(_)||o(_)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
801
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function a(_,A,$){return A in _?Object.defineProperty(_,A,{value:$,enumerable:!0,configurable:!0,writable:!0}):_[A]=$,_}s.r(u),s.d(u,{default:function(){return M}});var i=s(789),c=(0,i.defineComponent)({props:{data:{required:!0,type:String},onClick:Function},render:function(){var _=this.data,A=this.onClick;return(0,i.createVNode)("span",{class:"vjs-tree-brackets",onClick:A},[_])}}),h=(0,i.defineComponent)({emits:["change","update:modelValue"],props:{checked:{type:Boolean,default:!1},isMultiple:Boolean,onChange:Function},setup:function(_,A){var $=A.emit;return{uiType:(0,i.computed)(function(){return _.isMultiple?"checkbox":"radio"}),model:(0,i.computed)({get:function(){return _.checked},set:function(w){return $("update:modelValue",w)}})}},render:function(){var _=this.uiType,A=this.model,$=this.$emit;return(0,i.createVNode)("label",{class:["vjs-check-controller",A?"is-checked":""],onClick:function(w){return w.stopPropagation()}},[(0,i.createVNode)("span",{class:"vjs-check-controller-inner is-".concat(_)},null),(0,i.createVNode)("input",{checked:A,class:"vjs-check-controller-original is-".concat(_),type:_,onChange:function(){return $("change",A)}},null)])}}),f=(0,i.defineComponent)({props:{nodeType:{required:!0,type:String},onClick:Function},render:function(){var _=this.nodeType,A=this.onClick,$=_==="objectStart"||_==="arrayStart";return $||_==="objectCollapsed"||_==="arrayCollapsed"?(0,i.createVNode)("span",{class:"vjs-carets vjs-carets-".concat($?"open":"close"),onClick:A},[(0,i.createVNode)("svg",{viewBox:"0 0 1024 1024",focusable:"false","data-icon":"caret-down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[(0,i.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}});function g(_){return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},g(_)}function m(_){return Object.prototype.toString.call(_).slice(8,-1).toLowerCase()}function v(_){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"root",$=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,w=arguments.length>3?arguments[3]:void 0,R=w||{},T=R.key,O=R.index,I=R.type,N=I===void 0?"content":I,P=R.showComma,W=P!==void 0&&P,j=R.length,V=j===void 0?1:j,H=m(_);if(H==="array"){var G=y(_.map(function(X,Y,z){return v(X,"".concat(A,"[").concat(Y,"]"),$+1,{index:Y,showComma:Y!==z.length-1,length:V,type:N})}));return[v("[",A,$,{showComma:!1,key:T,length:_.length,type:"arrayStart"})[0]].concat(G,v("]",A,$,{showComma:W,length:_.length,type:"arrayEnd"})[0])}if(H==="object"){var Q=Object.keys(_),U=y(Q.map(function(X,Y,z){return v(_[X],/^[a-zA-Z_]\w*$/.test(X)?"".concat(A,".").concat(X):"".concat(A,'["').concat(X,'"]'),$+1,{key:X,showComma:Y!==z.length-1,length:V,type:N})}));return[v("{",A,$,{showComma:!1,key:T,index:O,length:Q.length,type:"objectStart"})[0]].concat(U,v("}",A,$,{showComma:W,length:Q.length,type:"objectEnd"})[0])}return[{content:_,level:$,key:T,index:O,path:A,showComma:W,length:V,type:N}]}function y(_){if(typeof Array.prototype.flat=="function")return _.flat();for(var A=p(_),$=[];A.length;){var w=A.shift();Array.isArray(w)?A.unshift.apply(A,p(w)):$.push(w)}return $}function k(_){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new WeakMap;if(_==null)return _;if(_ instanceof Date)return new Date(_);if(_ instanceof RegExp)return new RegExp(_);if(g(_)!=="object")return _;if(A.get(_))return A.get(_);if(Array.isArray(_)){var $=_.map(function(T){return k(T,A)});return A.set(_,$),$}var w={};for(var R in _)w[R]=k(_[R],A);return A.set(_,w),w}function C(_,A){var $=Object.keys(_);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(_);A&&(w=w.filter(function(R){return Object.getOwnPropertyDescriptor(_,R).enumerable})),$.push.apply($,w)}return $}function S(_){for(var A=1;A<arguments.length;A++){var $=arguments[A]!=null?arguments[A]:{};A%2?C(Object($),!0).forEach(function(w){a(_,w,$[w])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors($)):C(Object($)).forEach(function(w){Object.defineProperty(_,w,Object.getOwnPropertyDescriptor($,w))})}return _}var b={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},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}},E=(0,i.defineComponent)({name:"TreeNode",props:S(S({},b),{},{node:{type:Object,required:!0},collapsed:Boolean,checked:Boolean,style:Object,onSelectedChange:{type:Function}}),emits:["nodeClick","bracketsClick","iconClick","selectedChange","valueChange"],setup:function(_,A){var $=A.emit,w=(0,i.computed)(function(){return m(_.node.content)}),R=(0,i.computed)(function(){return"vjs-value vjs-value-".concat(w.value)}),T=(0,i.computed)(function(){return _.showDoubleQuotes?'"'.concat(_.node.key,'"'):_.node.key}),O=(0,i.computed)(function(){return _.selectableType==="multiple"}),I=(0,i.computed)(function(){return _.selectableType==="single"}),N=(0,i.computed)(function(){return _.nodeSelectable(_.node)&&(O.value||I.value)}),P=(0,i.reactive)({editing:!1}),W=function(Y){var z,ee,he=(ee=(z=Y.target)===null||z===void 0?void 0:z.value)==="null"?null:ee==="undefined"?void 0:ee==="true"||ee!=="false"&&(ee[0]+ee[ee.length-1]==='""'||ee[0]+ee[ee.length-1]==="''"?ee.slice(1,-1):typeof Number(ee)=="number"&&!isNaN(Number(ee))||ee==="NaN"?Number(ee):ee);$("valueChange",he,_.node.path)},j=(0,i.computed)(function(){var Y,z=(Y=_.node)===null||Y===void 0?void 0:Y.content;return z===null?z="null":z===void 0&&(z="undefined"),w.value==="string"?'"'.concat(z,'"'):z+""}),V=function(){var Y=_.renderNodeValue;return Y?Y({node:_.node,defaultValue:j.value}):j.value},H=function(){$("bracketsClick",!_.collapsed,_.node.path)},G=function(){$("iconClick",!_.collapsed,_.node.path)},Q=function(){$("selectedChange",_.node)},U=function(){$("nodeClick",_.node),N.value&&_.selectOnClickNode&&$("selectedChange",_.node)},X=function(Y){if(_.editable&&!P.editing){P.editing=!0;var z=function ee(he){var F;he.target!==Y.target&&((F=he.target)===null||F===void 0?void 0:F.parentElement)!==Y.target&&(P.editing=!1,document.removeEventListener("click",ee))};document.removeEventListener("click",z),document.addEventListener("click",z)}};return function(){var Y,z=_.node;return(0,i.createVNode)("div",{class:{"vjs-tree-node":!0,"has-selector":_.showSelectController,"has-carets":_.showIcon,"is-highlight":_.highlightSelectedNode&&_.checked},onClick:U,style:_.style},[_.showLineNumber&&(0,i.createVNode)("span",{class:"vjs-node-index"},[z.id+1]),_.showSelectController&&N.value&&z.type!=="objectEnd"&&z.type!=="arrayEnd"&&(0,i.createVNode)(h,{isMultiple:O.value,checked:_.checked,onChange:Q},null),(0,i.createVNode)("div",{class:"vjs-indent"},[Array.from(Array(z.level)).map(function(ee,he){return(0,i.createVNode)("div",{key:he,class:{"vjs-indent-unit":!0,"has-line":_.showLine}},null)}),_.showIcon&&(0,i.createVNode)(f,{nodeType:z.type,onClick:G},null)]),z.key&&(0,i.createVNode)("span",{class:"vjs-key"},[(Y=_.renderNodeKey,Y?Y({node:_.node,defaultKey:T.value||""}):T.value),(0,i.createVNode)("span",{class:"vjs-colon"},[":".concat(_.showKeyValueSpace?" ":"")])]),(0,i.createVNode)("span",null,[z.type!=="content"&&z.content?(0,i.createVNode)(c,{data:z.content.toString(),onClick:H},null):(0,i.createVNode)("span",{class:R.value,onClick:!_.editable||_.editableTrigger&&_.editableTrigger!=="click"?void 0:X,onDblclick:_.editable&&_.editableTrigger==="dblclick"?X:void 0},[_.editable&&P.editing?(0,i.createVNode)("input",{value:j.value,onChange:W,style:{padding:"3px 8px",border:"1px solid #eee",boxShadow:"none",boxSizing:"border-box",borderRadius:5,fontFamily:"inherit"}},null):V()]),z.showComma&&(0,i.createVNode)("span",null,[","]),_.showLength&&_.collapsed&&(0,i.createVNode)("span",{class:"vjs-comment"},[(0,i.createTextVNode)(" // "),z.length,(0,i.createTextVNode)(" items ")])])])}}});function L(_,A){var $=Object.keys(_);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(_);A&&(w=w.filter(function(R){return Object.getOwnPropertyDescriptor(_,R).enumerable})),$.push.apply($,w)}return $}function x(_){for(var A=1;A<arguments.length;A++){var $=arguments[A]!=null?arguments[A]:{};A%2?L(Object($),!0).forEach(function(w){a(_,w,$[w])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors($)):L(Object($)).forEach(function(w){Object.defineProperty(_,w,Object.getOwnPropertyDescriptor($,w))})}return _}var M=(0,i.defineComponent)({name:"Tree",props:x(x({},b),{},{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}}),slots:["renderNodeKey","renderNodeValue"],emits:["nodeClick","bracketsClick","iconClick","selectedChange","update:selectedValue","update:data"],setup:function(_,A){var $=A.emit,w=A.slots,R=(0,i.ref)(),T=(0,i.computed)(function(){return v(_.data,_.rootPath)}),O=function(z,ee){return T.value.reduce(function(he,F){var B,K=F.level>=z||F.length>=ee,J=(B=_.pathCollapsible)===null||B===void 0?void 0:B.call(_,F);return F.type!=="objectStart"&&F.type!=="arrayStart"||!K&&!J?he:x(x({},he),{},a({},F.path,1))},{})},I=(0,i.reactive)({translateY:0,visibleData:null,hiddenPaths:O(_.deep,_.collapsedNodeLength)}),N=(0,i.computed)(function(){for(var z=null,ee=[],he=T.value.length,F=0;F<he;F++){var B=x(x({},T.value[F]),{},{id:F}),K=I.hiddenPaths[B.path];if(z&&z.path===B.path){var J=z.type==="objectStart",te=x(x(x({},B),z),{},{showComma:B.showComma,content:J?"{...}":"[...]",type:J?"objectCollapsed":"arrayCollapsed"});z=null,ee.push(te)}else{if(K&&!z){z=B;continue}if(z)continue;ee.push(B)}}return ee}),P=(0,i.computed)(function(){var z=_.selectedValue;return z&&_.selectableType==="multiple"&&Array.isArray(z)?z:[z]}),W=(0,i.computed)(function(){return!_.selectableType||_.selectOnClickNode||_.showSelectController?"":"When selectableType is not null, selectOnClickNode and showSelectController cannot be false at the same time, because this will cause the selection to fail."}),j=function(){var z=N.value;if(_.virtual){var ee,he=_.height/_.itemHeight,F=((ee=R.value)===null||ee===void 0?void 0:ee.scrollTop)||0,B=Math.floor(F/_.itemHeight),K=B<0?0:B+he>z.length?z.length-he:B;K<0&&(K=0);var J=K+he;I.translateY=K*_.itemHeight,I.visibleData=z.filter(function(te,ce){return ce>=K&&ce<J})}else I.visibleData=z},V=function(){j()},H=function(z){var ee,he,F=z.path,B=_.selectableType;if(B==="multiple"){var K=P.value.findIndex(function(pe){return pe===F}),J=p(P.value);K!==-1?J.splice(K,1):J.push(F),$("update:selectedValue",J),$("selectedChange",J,p(P.value))}else if(B==="single"&&P.value[0]!==F){var te=(ee=P.value,he=1,function(pe){if(Array.isArray(pe))return pe}(ee)||function(pe,ue){var fe=pe==null?null:typeof Symbol<"u"&&pe[Symbol.iterator]||pe["@@iterator"];if(fe!=null){var ae,ve,Ee=[],Ae=!0,q=!1;try{for(fe=fe.call(pe);!(Ae=(ae=fe.next()).done)&&(Ee.push(ae.value),!ue||Ee.length!==ue);Ae=!0);}catch(le){q=!0,ve=le}finally{try{Ae||fe.return==null||fe.return()}finally{if(q)throw ve}}return Ee}}(ee,he)||o(ee,he)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
802
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}())[0],ce=F;$("update:selectedValue",ce),$("selectedChange",ce,te)}},G=function(z){$("nodeClick",z)},Q=function(z,ee){if(z)I.hiddenPaths=x(x({},I.hiddenPaths),{},a({},ee,1));else{var he=x({},I.hiddenPaths);delete he[ee],I.hiddenPaths=he}},U=function(z,ee){_.collapsedOnClickBrackets&&Q(z,ee),$("bracketsClick",z)},X=function(z,ee){Q(z,ee),$("iconClick",z)},Y=function(z,ee){var he=k(_.data),F=_.rootPath;new Function("data","val","data".concat(ee.slice(F.length),"=val"))(he,z),$("update:data",he)};return(0,i.watchEffect)(function(){W.value&&function(z){throw new Error("[VueJSONPretty] ".concat(z))}(W.value)}),(0,i.watchEffect)(function(){N.value&&j()}),(0,i.watch)(function(){return _.deep},function(z){z&&(I.hiddenPaths=O(z,_.collapsedNodeLength))}),(0,i.watch)(function(){return _.collapsedNodeLength},function(z){z&&(I.hiddenPaths=O(_.deep,z))}),function(){var z,ee,he=(z=_.renderNodeKey)!==null&&z!==void 0?z:w.renderNodeKey,F=(ee=_.renderNodeValue)!==null&&ee!==void 0?ee:w.renderNodeValue,B=I.visibleData&&I.visibleData.map(function(K){return(0,i.createVNode)(E,{key:K.id,node:K,collapsed:!!I.hiddenPaths[K.path],showDoubleQuotes:_.showDoubleQuotes,showLength:_.showLength,checked:P.value.includes(K.path),selectableType:_.selectableType,showLine:_.showLine,showLineNumber:_.showLineNumber,showSelectController:_.showSelectController,selectOnClickNode:_.selectOnClickNode,nodeSelectable:_.nodeSelectable,highlightSelectedNode:_.highlightSelectedNode,editable:_.editable,editableTrigger:_.editableTrigger,showIcon:_.showIcon,showKeyValueSpace:_.showKeyValueSpace,renderNodeKey:he,renderNodeValue:F,onNodeClick:G,onBracketsClick:U,onIconClick:X,onSelectedChange:H,onValueChange:Y,style:_.itemHeight&&_.itemHeight!==20?{lineHeight:"".concat(_.itemHeight,"px")}:{}},null)});return(0,i.createVNode)("div",{ref:R,class:{"vjs-tree":!0,"is-virtual":_.virtual},onScroll:_.virtual?V:void 0,style:_.showLineNumber?x({paddingLeft:"".concat(12*Number(T.value.length.toString().length),"px")},_.style):_.style},[_.virtual?(0,i.createVNode)("div",{class:"vjs-tree-list",style:{height:"".concat(_.height,"px")}},[(0,i.createVNode)("div",{class:"vjs-tree-list-holder",style:{height:"".concat(N.value.length*_.itemHeight,"px")}},[(0,i.createVNode)("div",{class:"vjs-tree-list-holder-inner",style:{transform:"translateY(".concat(I.translateY,"px)")}},[B])])]):B])}}})}(),u}()})})(Sg);var IC=Sg.exports;const Cg=Tr(IC),NC=Ce({name:"ErrorItem",props:{error:{type:G$,required:!0},disposable:{type:Boolean,default:!1}},components:{VueJsonPretty:Cg},emits:["dispose"],setup(e,t){const n=Le(()=>{var l;if(e.error.response)return(l=e.error.response)==null?void 0:l.data});return{dispose:()=>{t.emit("dispose")},data:n}}}),DC={class:"notification is-danger is-light"},FC={key:1},PC={key:2},BC={key:0,class:"message"},WC={class:"message-body"};function HC(e,t,n,r,l,s){var d;const u=re("VueJsonPretty");return Z(),se(Ne,null,[D("div",DC,[e.disposable?(Z(),se("button",{key:0,class:"delete",onClick:t[0]||(t[0]=(...o)=>e.dispose&&e.dispose(...o))})):me("",!0),e.data?(Z(),se("p",FC,$e(e.data.message),1)):(Z(),se("p",PC,$e(e.error),1))]),(d=e.data)!=null&&d.detail?(Z(),se("article",BC,[D("div",WC,[oe(u,{data:e.data.detail},null,8,["data"])])])):me("",!0)],64)}const bt=Re(NC,[["render",HC]]),UC=Ce({name:"TagItem",props:{tag:{type:Object,required:!0},deletable:{type:Boolean,default:!1},navigateTo:{type:String,required:!0}},setup(e){const t=ze(!1),n=ze(!1),r=aC();return{isDeleted:t,deleteTag:async()=>{window.confirm(`Are you sure you want to delete ${e.tag.name} (ID: ${e.tag.id})?`)&&(await r.perform(e.tag.id),t.value=!0)},showDeleteButton:()=>{n.value=!0},hideDeleteButton:()=>{n.value=!1},isDeleteButtonEnabled:n,getQuery:o=>`tag:"${o}"`}}}),VC={key:0,class:"control"};function zC(e,t,n,r,l,s){const u=re("router-link");return e.isDeleted?me("",!0):(Z(),se("div",VC,[D("div",{class:"tags has-addons are-medium",onMouseover:t[1]||(t[1]=(...d)=>e.showDeleteButton&&e.showDeleteButton(...d)),onMouseleave:t[2]||(t[2]=(...d)=>e.hideDeleteButton&&e.hideDeleteButton(...d))},[oe(u,{class:"tag is-info is-light",to:{name:e.navigateTo,query:{q:e.getQuery(e.tag.name)}}},{default:Je(()=>[et($e(e.tag.name),1)]),_:1},8,["to"]),e.isDeleteButtonEnabled&&e.deletable?(Z(),se("a",{key:0,class:"tag is-delete",onClick:t[0]||(t[0]=(...d)=>e.deleteTag&&e.deleteTag(...d))})):me("",!0)],32)]))}const jC=Re(UC,[["render",zC]]),GC=Ce({name:"TagsItem",components:{Tag:jC},props:{tags:{type:Array,required:!0},deletable:{type:Boolean,default:!1},navigateTo:{type:String,required:!0}},setup(){}}),KC={class:"field is-grouped is-grouped-multiline"};function YC(e,t,n,r,l,s){const u=re("Tag");return Z(),se("div",KC,[(Z(!0),se(Ne,null,Nt(e.tags,d=>(Z(),Se(u,{tag:d,key:d.name,deletable:e.deletable,"navigate-to":e.navigateTo},null,8,["tag","deletable","navigate-to"]))),128))])}const As=Re(GC,[["render",YC]]);var Ag={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(er,function(){var n=1e3,r=6e4,l=36e5,s="millisecond",u="second",d="minute",o="hour",p="day",a="week",i="month",c="quarter",h="year",f="date",g="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(w){var R=["th","st","nd","rd"],T=w%100;return"["+w+(R[(T-20)%10]||R[T]||R[0])+"]"}},k=function(w,R,T){var O=String(w);return!O||O.length>=R?w:""+Array(R+1-O.length).join(T)+w},C={s:k,z:function(w){var R=-w.utcOffset(),T=Math.abs(R),O=Math.floor(T/60),I=T%60;return(R<=0?"+":"-")+k(O,2,"0")+":"+k(I,2,"0")},m:function w(R,T){if(R.date()<T.date())return-w(T,R);var O=12*(T.year()-R.year())+(T.month()-R.month()),I=R.clone().add(O,i),N=T-I<0,P=R.clone().add(O+(N?-1:1),i);return+(-(O+(T-I)/(N?I-P:P-I))||0)},a:function(w){return w<0?Math.ceil(w)||0:Math.floor(w)},p:function(w){return{M:i,y:h,w:a,d:p,D:f,h:o,m:d,s:u,ms:s,Q:c}[w]||String(w||"").toLowerCase().replace(/s$/,"")},u:function(w){return w===void 0}},S="en",b={};b[S]=y;var E="$isDayjsObject",L=function(w){return w instanceof A||!(!w||!w[E])},x=function w(R,T,O){var I;if(!R)return S;if(typeof R=="string"){var N=R.toLowerCase();b[N]&&(I=N),T&&(b[N]=T,I=N);var P=R.split("-");if(!I&&P.length>1)return w(P[0])}else{var W=R.name;b[W]=R,I=W}return!O&&I&&(S=I),I||!O&&S},M=function(w,R){if(L(w))return w.clone();var T=typeof R=="object"?R:{};return T.date=w,T.args=arguments,new A(T)},_=C;_.l=x,_.i=L,_.w=function(w,R){return M(w,{locale:R.$L,utc:R.$u,x:R.$x,$offset:R.$offset})};var A=function(){function w(T){this.$L=x(T.locale,null,!0),this.parse(T),this.$x=this.$x||T.x||{},this[E]=!0}var R=w.prototype;return R.parse=function(T){this.$d=function(O){var I=O.date,N=O.utc;if(I===null)return new Date(NaN);if(_.u(I))return new Date;if(I instanceof Date)return new Date(I);if(typeof I=="string"&&!/Z$/i.test(I)){var P=I.match(m);if(P){var W=P[2]-1||0,j=(P[7]||"0").substring(0,3);return N?new Date(Date.UTC(P[1],W,P[3]||1,P[4]||0,P[5]||0,P[6]||0,j)):new Date(P[1],W,P[3]||1,P[4]||0,P[5]||0,P[6]||0,j)}}return new Date(I)}(T),this.init()},R.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},R.$utils=function(){return _},R.isValid=function(){return this.$d.toString()!==g},R.isSame=function(T,O){var I=M(T);return this.startOf(O)<=I&&I<=this.endOf(O)},R.isAfter=function(T,O){return M(T)<this.startOf(O)},R.isBefore=function(T,O){return this.endOf(O)<M(T)},R.$g=function(T,O,I){return _.u(T)?this[O]:this.set(I,T)},R.unix=function(){return Math.floor(this.valueOf()/1e3)},R.valueOf=function(){return this.$d.getTime()},R.startOf=function(T,O){var I=this,N=!!_.u(O)||O,P=_.p(T),W=function(Y,z){var ee=_.w(I.$u?Date.UTC(I.$y,z,Y):new Date(I.$y,z,Y),I);return N?ee:ee.endOf(p)},j=function(Y,z){return _.w(I.toDate()[Y].apply(I.toDate("s"),(N?[0,0,0,0]:[23,59,59,999]).slice(z)),I)},V=this.$W,H=this.$M,G=this.$D,Q="set"+(this.$u?"UTC":"");switch(P){case h:return N?W(1,0):W(31,11);case i:return N?W(1,H):W(0,H+1);case a:var U=this.$locale().weekStart||0,X=(V<U?V+7:V)-U;return W(N?G-X:G+(6-X),H);case p:case f:return j(Q+"Hours",0);case o:return j(Q+"Minutes",1);case d:return j(Q+"Seconds",2);case u:return j(Q+"Milliseconds",3);default:return this.clone()}},R.endOf=function(T){return this.startOf(T,!1)},R.$set=function(T,O){var I,N=_.p(T),P="set"+(this.$u?"UTC":""),W=(I={},I[p]=P+"Date",I[f]=P+"Date",I[i]=P+"Month",I[h]=P+"FullYear",I[o]=P+"Hours",I[d]=P+"Minutes",I[u]=P+"Seconds",I[s]=P+"Milliseconds",I)[N],j=N===p?this.$D+(O-this.$W):O;if(N===i||N===h){var V=this.clone().set(f,1);V.$d[W](j),V.init(),this.$d=V.set(f,Math.min(this.$D,V.daysInMonth())).$d}else W&&this.$d[W](j);return this.init(),this},R.set=function(T,O){return this.clone().$set(T,O)},R.get=function(T){return this[_.p(T)]()},R.add=function(T,O){var I,N=this;T=Number(T);var P=_.p(O),W=function(H){var G=M(N);return _.w(G.date(G.date()+Math.round(H*T)),N)};if(P===i)return this.set(i,this.$M+T);if(P===h)return this.set(h,this.$y+T);if(P===p)return W(1);if(P===a)return W(7);var j=(I={},I[d]=r,I[o]=l,I[u]=n,I)[P]||1,V=this.$d.getTime()+T*j;return _.w(V,this)},R.subtract=function(T,O){return this.add(-1*T,O)},R.format=function(T){var O=this,I=this.$locale();if(!this.isValid())return I.invalidDate||g;var N=T||"YYYY-MM-DDTHH:mm:ssZ",P=_.z(this),W=this.$H,j=this.$m,V=this.$M,H=I.weekdays,G=I.months,Q=I.meridiem,U=function(z,ee,he,F){return z&&(z[ee]||z(O,N))||he[ee].slice(0,F)},X=function(z){return _.s(W%12||12,z,"0")},Y=Q||function(z,ee,he){var F=z<12?"AM":"PM";return he?F.toLowerCase():F};return N.replace(v,function(z,ee){return ee||function(he){switch(he){case"YY":return String(O.$y).slice(-2);case"YYYY":return _.s(O.$y,4,"0");case"M":return V+1;case"MM":return _.s(V+1,2,"0");case"MMM":return U(I.monthsShort,V,G,3);case"MMMM":return U(G,V);case"D":return O.$D;case"DD":return _.s(O.$D,2,"0");case"d":return String(O.$W);case"dd":return U(I.weekdaysMin,O.$W,H,2);case"ddd":return U(I.weekdaysShort,O.$W,H,3);case"dddd":return H[O.$W];case"H":return String(W);case"HH":return _.s(W,2,"0");case"h":return X(1);case"hh":return X(2);case"a":return Y(W,j,!0);case"A":return Y(W,j,!1);case"m":return String(j);case"mm":return _.s(j,2,"0");case"s":return String(O.$s);case"ss":return _.s(O.$s,2,"0");case"SSS":return _.s(O.$ms,3,"0");case"Z":return P}return null}(z)||P.replace(":","")})},R.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},R.diff=function(T,O,I){var N,P=this,W=_.p(O),j=M(T),V=(j.utcOffset()-this.utcOffset())*r,H=this-j,G=function(){return _.m(P,j)};switch(W){case h:N=G()/12;break;case i:N=G();break;case c:N=G()/3;break;case a:N=(H-V)/6048e5;break;case p:N=(H-V)/864e5;break;case o:N=H/l;break;case d:N=H/r;break;case u:N=H/n;break;default:N=H}return I?N:_.a(N)},R.daysInMonth=function(){return this.endOf(i).$D},R.$locale=function(){return b[this.$L]},R.locale=function(T,O){if(!T)return this.$L;var I=this.clone(),N=x(T,O,!0);return N&&(I.$L=N),I},R.clone=function(){return _.w(this.$d,this)},R.toDate=function(){return new Date(this.valueOf())},R.toJSON=function(){return this.isValid()?this.toISOString():null},R.toISOString=function(){return this.$d.toISOString()},R.toString=function(){return this.$d.toUTCString()},w}(),$=A.prototype;return M.prototype=$,[["$ms",s],["$s",u],["$m",d],["$H",o],["$W",p],["$M",i],["$y",h],["$D",f]].forEach(function(w){$[w[1]]=function(R){return this.$g(R,w[0],w[1])}}),M.extend=function(w,R){return w.$i||(w(R,A,M),w.$i=!0),M},M.locale=x,M.isDayjs=L,M.unix=function(w){return M(1e3*w)},M.en=b[S],M.Ls=b,M.p={},M})})(Ag);var ZC=Ag.exports;const mi=Tr(ZC);var kg={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(er,function(){return function(n,r,l){n=n||{};var s=r.prototype,u={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 d(p,a,i,c){return s.fromToBase(p,a,i,c)}l.en.relativeTime=u,s.fromToBase=function(p,a,i,c,h){for(var f,g,m,v=i.$locale().relativeTime||u,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"}],k=y.length,C=0;C<k;C+=1){var S=y[C];S.d&&(f=c?l(p).diff(i,S.d,!0):i.diff(p,S.d,!0));var b=(n.rounding||Math.round)(Math.abs(f));if(m=f>0,b<=S.r||!S.r){b<=1&&C>0&&(S=y[C-1]);var E=v[S.l];h&&(b=h(""+b)),g=typeof E=="string"?E.replace("%d",b):E(b,a,S.l,m);break}}if(a)return g;var L=m?v.future:v.past;return typeof L=="function"?L(g):L.replace("%s",g)},s.to=function(p,a){return d(p,a,this,!0)},s.from=function(p,a){return d(p,a,this)};var o=function(p){return p.$u?l.utc():l()};s.toNow=function(p){return this.to(o(this),p)},s.fromNow=function(p){return this.from(o(this),p)}}})})(kg);var XC=kg.exports;const qC=Tr(XC);var xg={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(er,function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},r={};return function(l,s,u){var d,o=function(c,h,f){f===void 0&&(f={});var g=new Date(c),m=function(v,y){y===void 0&&(y={});var k=y.timeZoneName||"short",C=v+"|"+k,S=r[C];return S||(S=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:v,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:k}),r[C]=S),S}(h,f);return m.formatToParts(g)},p=function(c,h){for(var f=o(c,h),g=[],m=0;m<f.length;m+=1){var v=f[m],y=v.type,k=v.value,C=n[y];C>=0&&(g[C]=parseInt(k,10))}var S=g[3],b=S===24?0:S,E=g[0]+"-"+g[1]+"-"+g[2]+" "+b+":"+g[4]+":"+g[5]+":000",L=+c;return(u.utc(E).valueOf()-(L-=L%1e3))/6e4},a=s.prototype;a.tz=function(c,h){c===void 0&&(c=d);var f=this.utcOffset(),g=this.toDate(),m=g.toLocaleString("en-US",{timeZone:c}),v=Math.round((g-new Date(m))/1e3/60),y=u(m,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(g.getTimezoneOffset()/15)-v,!0);if(h){var k=y.utcOffset();y=y.add(f-k,"minute")}return y.$x.$timezone=c,y},a.offsetName=function(c){var h=this.$x.$timezone||u.tz.guess(),f=o(this.valueOf(),h,{timeZoneName:c}).find(function(g){return g.type.toLowerCase()==="timezonename"});return f&&f.value};var i=a.startOf;a.startOf=function(c,h){if(!this.$x||!this.$x.$timezone)return i.call(this,c,h);var f=u(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return i.call(f,c,h).tz(this.$x.$timezone,!0)},u.tz=function(c,h,f){var g=f&&h,m=f||h||d,v=p(+u(),m);if(typeof c!="string")return u(c).tz(m);var y=function(b,E,L){var x=b-60*E*1e3,M=p(x,L);if(E===M)return[x,E];var _=p(x-=60*(M-E)*1e3,L);return M===_?[x,M]:[b-60*Math.min(M,_)*1e3,Math.max(M,_)]}(u.utc(c,g).valueOf(),v,m),k=y[0],C=y[1],S=u(k).utcOffset(C);return S.$x.$timezone=m,S},u.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},u.tz.setDefault=function(c){d=c}}})})(xg);var QC=xg.exports;const JC=Tr(QC);var Eg={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(er,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,l=/([+-]|\d\d)/g;return function(s,u,d){var o=u.prototype;d.utc=function(g){var m={date:g,utc:!0,args:arguments};return new u(m)},o.utc=function(g){var m=d(this.toDate(),{locale:this.$L,utc:!0});return g?m.add(this.utcOffset(),n):m},o.local=function(){return d(this.toDate(),{locale:this.$L,utc:!1})};var p=o.parse;o.parse=function(g){g.utc&&(this.$u=!0),this.$utils().u(g.$offset)||(this.$offset=g.$offset),p.call(this,g)};var a=o.init;o.init=function(){if(this.$u){var g=this.$d;this.$y=g.getUTCFullYear(),this.$M=g.getUTCMonth(),this.$D=g.getUTCDate(),this.$W=g.getUTCDay(),this.$H=g.getUTCHours(),this.$m=g.getUTCMinutes(),this.$s=g.getUTCSeconds(),this.$ms=g.getUTCMilliseconds()}else a.call(this)};var i=o.utcOffset;o.utcOffset=function(g,m){var v=this.$utils().u;if(v(g))return this.$u?0:v(this.$offset)?i.call(this):this.$offset;if(typeof g=="string"&&(g=function(S){S===void 0&&(S="");var b=S.match(r);if(!b)return null;var E=(""+b[0]).match(l)||["-",0,0],L=E[0],x=60*+E[1]+ +E[2];return x===0?0:L==="+"?x:-x}(g),g===null))return this;var y=Math.abs(g)<=16?60*g:g,k=this;if(m)return k.$offset=y,k.$u=g===0,k;if(g!==0){var C=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(k=this.local().add(y+C,n)).$offset=y,k.$x.$localOffset=C}else k=this.utc();return k};var c=o.format;o.format=function(g){var m=g||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,m)},o.valueOf=function(){var g=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*g},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var h=o.toDate;o.toDate=function(g){return g==="s"&&this.$offset?d(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():h.call(this)};var f=o.diff;o.diff=function(g,m,v){if(g&&this.$u===g.$u)return f.call(this,g,m,v);var y=this.local(),k=d(g).local();return f.call(y,k,m,v)}}})})(Eg);var eA=Eg.exports;const tA=Tr(eA),nA=[{name:"Afghanistan",lat:33.93911,long:67.709953,code:"AF"},{name:"Albania",lat:41.153332,long:20.168331,code:"AL"},{name:"Algeria",lat:28.033886,long:1.659626,code:"DZ"},{name:"American Samoa",lat:-14.270972,long:-170.132217,code:"AS"},{name:"Andorra",lat:42.546245,long:1.601554,code:"AD"},{name:"Angola",lat:-11.202692,long:17.873887,code:"AO"},{name:"Anguilla",lat:18.220554,long:-63.068615,code:"AI"},{name:"Antarctica",lat:-75.250973,long:-.071389,code:"AQ"},{name:"Antigua and Barbuda",lat:17.060816,long:-61.796428,code:"AG"},{name:"Argentina",lat:-38.416097,long:-63.616672,code:"AR"},{name:"Armenia",lat:40.069099,long:45.038189,code:"AM"},{name:"Aruba",lat:12.52111,long:-69.968338,code:"AW"},{name:"Australia",lat:-25.274398,long:133.775136,code:"AU"},{name:"Austria",lat:47.516231,long:14.550072,code:"AT"},{name:"Azerbaijan",lat:40.143105,long:47.576927,code:"AZ"},{name:"Bahamas",lat:25.03428,long:-77.39628,code:"BS"},{name:"Bahrain",lat:25.930414,long:50.637772,code:"BH"},{name:"Bangladesh",lat:23.684994,long:90.356331,code:"BD"},{name:"Barbados",lat:13.193887,long:-59.543198,code:"BB"},{name:"Belarus",lat:53.709807,long:27.953389,code:"BY"},{name:"Belgium",lat:50.503887,long:4.469936,code:"BE"},{name:"Belize",lat:17.189877,long:-88.49765,code:"BZ"},{name:"Benin",lat:9.30769,long:2.315834,code:"BJ"},{name:"Bermuda",lat:32.321384,long:-64.75737,code:"BM"},{name:"Bhutan",lat:27.514162,long:90.433601,code:"BT"},{name:"Bolivia",lat:-16.290154,long:-63.588653,code:"BO"},{name:"Bosnia",lat:43.915886,long:17.679076,code:"BA"},{name:"Botswana",lat:-22.328474,long:24.684866,code:"BW"},{name:"Bouvet Island",lat:-54.423199,long:3.413194,code:"BV"},{name:"Brazil",lat:-14.235004,long:-51.92528,code:"BR"},{name:"British Indian Ocean Territory",lat:-6.343194,long:71.876519,code:"IO"},{name:"Brunei",lat:4.535277,long:114.727669,code:"BN"},{name:"Bulgaria",lat:42.733883,long:25.48583,code:"BG"},{name:"Burkina Faso",lat:12.238333,long:-1.561593,code:"BF"},{name:"Burundi",lat:-3.373056,long:29.918886,code:"BI"},{name:"Cabo Verde",lat:16.002082,long:-24.013197,code:"CV"},{name:"Cambodia",lat:12.565679,long:104.990963,code:"KH"},{name:"Cameroon",lat:7.369722,long:12.354722,code:"CM"},{name:"Canada",lat:56.130366,long:-106.346771,code:"CA"},{name:"Cayman Islands",lat:19.513469,long:-80.566956,code:"KY"},{name:"Central African Republic",lat:6.611111,long:20.939444,code:"CF"},{name:"Caribbean Netherlands",lat:12.2,long:-68.26,code:"BQ"},{name:"Chad",lat:15.454166,long:18.732207,code:"TD"},{name:"Chile",lat:-35.675147,long:-71.542969,code:"CL"},{name:"China",lat:35.86166,long:104.195397,code:"CN"},{name:"Christmas Island",lat:-10.447525,long:105.690449,code:"CX"},{name:"Cocos (Keeling) Islands",lat:-12.164165,long:96.870956,code:"CC"},{name:"Colombia",lat:4.570868,long:-74.297333,code:"CO"},{name:"Comoros",lat:-11.875001,long:43.872219,code:"KM"},{name:"Congo",lat:-.228021,long:15.827659,code:"CG"},{name:"DRC",lat:-4.038333,long:21.758664,code:"CD"},{name:"Cook Islands",lat:-21.236736,long:-159.777671,code:"CK"},{name:"Costa Rica",lat:9.748917,long:-83.753428,code:"CR"},{name:'Côte d"Ivoire',lat:7.539989,long:-5.54708,code:"CI"},{name:"Croatia",lat:45.1,long:15.2,code:"HR"},{name:"Cuba",lat:21.521757,long:-77.781167,code:"CU"},{name:"Curaçao",lat:12.15,long:-68.97,code:"CW"},{name:"Cyprus",lat:35.126413,long:33.429859,code:"CY"},{name:"Czechia",lat:49.817492,long:15.472962,code:"CZ"},{name:"Denmark",lat:56.26392,long:9.501785,code:"DK"},{name:"Djibouti",lat:11.825138,long:42.590275,code:"DJ"},{name:"Dominica",lat:15.414999,long:-61.370976,code:"DM"},{name:"Dominican Republic",lat:18.735693,long:-70.162651,code:"DO"},{name:"Ecuador",lat:-1.831239,long:-78.183406,code:"EC"},{name:"Egypt",lat:26.820553,long:30.802498,code:"EG"},{name:"El Salvador",lat:13.794185,long:-88.89653,code:"SV"},{name:"Equatorial Guinea",lat:1.650801,long:10.267895,code:"GQ"},{name:"Eritrea",lat:15.179384,long:39.782334,code:"ER"},{name:"Estonia",lat:58.595272,long:25.013607,code:"EE"},{name:"Ethiopia",lat:9.145,long:40.489673,code:"ET"},{name:"Falkland Islands (Malvinas)",lat:-51.796253,long:-59.523613,code:"FK"},{name:"Faroe Islands",lat:61.892635,long:-6.911806,code:"FO"},{name:"Fiji",lat:-16.578193,long:179.414413,code:"FJ"},{name:"Finland",lat:61.92411,long:25.748151,code:"FI"},{name:"France",lat:46.227638,long:2.213749,code:"FR"},{name:"French Guiana",lat:3.933889,long:-53.125782,code:"GF"},{name:"French Polynesia",lat:-17.679742,long:-149.406843,code:"PF"},{name:"French Southern Territories",lat:-49.280366,long:69.348557,code:"TF"},{name:"Gabon",lat:-.803689,long:11.609444,code:"GA"},{name:"Gambia",lat:13.443182,long:-15.310139,code:"GM"},{name:"Georgia",lat:42.315407,long:43.356892,code:"GE"},{name:"Germany",lat:51.165691,long:10.451526,code:"DE"},{name:"Ghana",lat:7.946527,long:-1.023194,code:"GH"},{name:"Gibraltar",lat:36.137741,long:-5.345374,code:"GI"},{name:"Greece",lat:39.074208,long:21.824312,code:"GR"},{name:"Greenland",lat:71.706936,long:-42.604303,code:"GL"},{name:"Grenada",lat:12.262776,long:-61.604171,code:"GD"},{name:"Guadeloupe",lat:16.995971,long:-62.067641,code:"GP"},{name:"Guam",lat:13.444304,long:144.793731,code:"GU"},{name:"Guatemala",lat:15.783471,long:-90.230759,code:"GT"},{name:"Guernsey",lat:49.465691,long:-2.585278,code:"GG"},{name:"Guinea",lat:9.945587,long:-9.696645,code:"GN"},{name:"Guinea-Bissau",lat:11.803749,long:-15.180413,code:"GW"},{name:"Guyana",lat:4.860416,long:-58.93018,code:"GY"},{name:"Haiti",lat:18.971187,long:-72.285215,code:"HT"},{name:"Heard Island and McDonald Islands",lat:-53.08181,long:73.504158,code:"HM"},{name:"Holy See (Vatican City State)",lat:41.902916,long:12.453389,code:"VA"},{name:"Honduras",lat:15.199999,long:-86.241905,code:"HN"},{name:"Hong Kong",lat:22.396428,long:114.109497,code:"HK"},{name:"Hungary",lat:47.162494,long:19.503304,code:"HU"},{name:"Iceland",lat:64.963051,long:-19.020835,code:"IS"},{name:"India",lat:20.593684,long:78.96288,code:"IN"},{name:"Indonesia",lat:-.789275,long:113.921327,code:"ID"},{name:"Iran",lat:32.427908,long:53.688046,code:"IR"},{name:"Iraq",lat:33.223191,long:43.679291,code:"IQ"},{name:"Ireland",lat:53.41291,long:-8.24389,code:"IE"},{name:"Isle of Man",lat:54.236107,long:-4.548056,code:"IM"},{name:"Israel",lat:31.046051,long:34.851612,code:"IL"},{name:"Italy",lat:41.87194,long:12.56738,code:"IT"},{name:"Jamaica",lat:18.109581,long:-77.297508,code:"JM"},{name:"Japan",lat:36.204824,long:138.252924,code:"JP"},{name:"Channel Islands",lat:49.214439,long:-2.13125,code:"JE"},{name:"Jordan",lat:30.585164,long:36.238414,code:"JO"},{name:"Kazakhstan",lat:48.019573,long:66.923684,code:"KZ"},{name:"Kenya",lat:-.023559,long:37.906193,code:"KE"},{name:"Kiribati",lat:-3.370417,long:-168.734039,code:"KI"},{name:"Kosovo",lat:42.602636,long:20.902977,code:"XK"},{name:"N. Korea",lat:40.339852,long:127.510093,code:"KP"},{name:"S. Korea",lat:35.907757,long:127.766922,code:"KR"},{name:"Kuwait",lat:29.31166,long:47.481766,code:"KW"},{name:"Kyrgyzstan",lat:41.20438,long:74.766098,code:"KG"},{name:'Lao People"s Democratic Republic',lat:19.85627,long:102.495496,code:"LA"},{name:"Latvia",lat:56.879635,long:24.603189,code:"LV"},{name:"Lebanon",lat:33.854721,long:35.862285,code:"LB"},{name:"Lesotho",lat:-29.609988,long:28.233608,code:"LS"},{name:"Liberia",lat:6.428055,long:-9.429499,code:"LR"},{name:"Libyan Arab Jamahiriya",lat:26.3351,long:17.228331,code:"LY"},{name:"Liechtenstein",lat:47.166,long:9.555373,code:"LI"},{name:"Lithuania",lat:55.169438,long:23.881275,code:"LT"},{name:"Luxembourg",lat:49.815273,long:6.129583,code:"LU"},{name:"Macao",lat:22.198745,long:113.543873,code:"MO"},{name:"Macedonia",lat:41.608635,long:21.745275,code:"MK"},{name:"Madagascar",lat:-18.766947,long:46.869107,code:"MG"},{name:"Malawi",lat:-13.254308,long:34.301525,code:"MW"},{name:"Malaysia",lat:4.210484,long:101.975766,code:"MY"},{name:"Maldives",lat:3.202778,long:73.22068,code:"MV"},{name:"Mali",lat:17.570692,long:-3.996166,code:"ML"},{name:"Malta",lat:35.937496,long:14.375416,code:"MT"},{name:"Marshall Islands",lat:7.131474,long:171.184478,code:"MH"},{name:"Martinique",lat:14.641528,long:-61.024174,code:"MQ"},{name:"Mauritania",lat:21.00789,long:-10.940835,code:"MR"},{name:"Mauritius",lat:-20.348404,long:57.552152,code:"MU"},{name:"Mayotte",lat:-12.8275,long:45.166244,code:"YT"},{name:"Mexico",lat:23.634501,long:-102.552784,code:"MX"},{name:"Micronesia",lat:7.425554,long:150.550812,code:"FM"},{name:"Moldova",lat:47.411631,long:28.369885,code:"MD"},{name:"Monaco",lat:43.750298,long:7.412841,code:"MC"},{name:"Mongolia",lat:46.862496,long:103.846656,code:"MN"},{name:"Montenegro",lat:42.708678,long:19.37439,code:"ME"},{name:"Montserrat",lat:16.742498,long:-62.187366,code:"MS"},{name:"Morocco",lat:31.791702,long:-7.09262,code:"MA"},{name:"Mozambique",lat:-18.665695,long:35.529562,code:"MZ"},{name:"Myanmar",lat:21.913965,long:95.956223,code:"MM"},{name:"Burma",lat:22,long:98,code:"BU"},{name:"Namibia",lat:-22.95764,long:18.49041,code:"NA"},{name:"Nauru",lat:-.522778,long:166.931503,code:"NR"},{name:"Nepal",lat:28.394857,long:84.124008,code:"NP"},{name:"Netherlands",lat:52.132633,long:5.291266,code:"NL"},{name:"Netherlands Antilles",lat:12.226079,long:-69.060087,code:"AN"},{name:"New Caledonia",lat:-20.904305,long:165.618042,code:"NC"},{name:"New Zealand",lat:-40.900557,long:174.885971,code:"NZ"},{name:"Nicaragua",lat:12.865416,long:-85.207229,code:"NI"},{name:"Niger",lat:17.607789,long:8.081666,code:"NE"},{name:"Nigeria",lat:9.081999,long:8.675277,code:"NG"},{name:"Niue",lat:-19.054445,long:-169.867233,code:"NU"},{name:"Norfolk Island",lat:-29.040835,long:167.954712,code:"NF"},{name:"Northern Mariana Islands",lat:17.33083,long:145.38469,code:"MP"},{name:"Norway",lat:60.472024,long:8.468946,code:"NO"},{name:"Oman",lat:21.512583,long:55.923255,code:"OM"},{name:"Pakistan",lat:30.375321,long:69.345116,code:"PK"},{name:"Palau",lat:7.51498,long:134.58252,code:"PW"},{name:"Palestine",lat:31.952162,long:35.233154,code:"PS"},{name:"Panama",lat:8.537981,long:-80.782127,code:"PA"},{name:"Papua New Guinea",lat:-6.314993,long:143.95555,code:"PG"},{name:"Paraguay",lat:-23.442503,long:-58.443832,code:"PY"},{name:"Peru",lat:-9.189967,long:-75.015152,code:"PE"},{name:"Philippines",lat:12.879721,long:121.774017,code:"PH"},{name:"Pitcairn",lat:-24.703615,long:-127.439308,code:"PN"},{name:"Poland",lat:51.919438,long:19.145136,code:"PL"},{name:"Portugal",lat:39.399872,long:-8.224454,code:"PT"},{name:"Puerto Rico",lat:18.220833,long:-66.590149,code:"PR"},{name:"Qatar",lat:25.354826,long:51.183884,code:"QA"},{name:"Réunion",lat:-21.115141,long:55.536384,code:"RE"},{name:"Romania",lat:45.943161,long:24.96676,code:"RO"},{name:"Russia",lat:61.52401,long:105.318756,code:"RU"},{name:"Rwanda",lat:-1.940278,long:29.873888,code:"RW"},{name:"St. Barth",lat:17.89,long:-62.82,code:"BL"},{name:"Saint Helena",lat:-24.143474,long:-10.030696,code:"SH"},{name:"Saint Kitts and Nevis",lat:17.357822,long:-62.782998,code:"KN"},{name:"Saint Lucia",lat:13.909444,long:-60.978893,code:"LC"},{name:"Saint Pierre Miquelon",lat:46.941936,long:-56.27111,code:"PM"},{name:"Saint Martin",lat:18.11,long:-63.03,code:"MF"},{name:"Sint Maarten",lat:18.02,long:-63.06,code:"SX"},{name:"Saint Vincent and the Grenadines",lat:12.984305,long:-61.287228,code:"VC"},{name:"Samoa",lat:-13.759029,long:-172.104629,code:"WS"},{name:"San Marino",lat:43.94236,long:12.457777,code:"SM"},{name:"Sao Tome and Principe",lat:.18636,long:6.613081,code:"ST"},{name:"Saudi Arabia",lat:23.885942,long:45.079162,code:"SA"},{name:"Senegal",lat:14.497401,long:-14.452362,code:"SN"},{name:"Serbia",lat:44.016521,long:21.005859,code:"RS"},{name:"Seychelles",lat:-4.679574,long:55.491977,code:"SC"},{name:"Sierra Leone",lat:8.460555,long:-11.779889,code:"SL"},{name:"Singapore",lat:1.352083,long:103.819836,code:"SG"},{name:"Slovakia",lat:48.669026,long:19.699024,code:"SK"},{name:"Slovenia",lat:46.151241,long:14.995463,code:"SI"},{name:"Solomon Islands",lat:-9.64571,long:160.156194,code:"SB"},{name:"Somalia",lat:5.152149,long:46.199616,code:"SO"},{name:"South Africa",lat:-30.559482,long:22.937506,code:"ZA"},{name:"South Georgia and the South Sandwich Islands",lat:-54.429579,long:-36.587909,code:"GS"},{name:"South Sudan",lat:6.8769,long:31.3069,code:"SS"},{name:"Spain",lat:40.463667,long:-3.74922,code:"ES"},{name:"Sri Lanka",lat:7.873054,long:80.771797,code:"LK"},{name:"Sudan",lat:12.862807,long:30.217636,code:"SD"},{name:"Suriname",lat:3.919305,long:-56.027783,code:"SR"},{name:"Svalbard and Jan Mayen",lat:77.553604,long:23.670272,code:"SJ"},{name:"Swaziland",lat:-26.522503,long:31.465866,code:"SZ"},{name:"Sweden",lat:60.128161,long:18.643501,code:"SE"},{name:"Switzerland",lat:46.818188,long:8.227512,code:"CH"},{name:"Syrian Arab Republic",lat:34.802075,long:38.996815,code:"SY"},{name:"Taiwan",lat:23.69781,long:120.960515,code:"TW"},{name:"Tajikistan",lat:38.861034,long:71.276093,code:"TJ"},{name:"Tanzania",lat:-6.369028,long:34.888822,code:"TZ"},{name:"Thailand",lat:15.870032,long:100.992541,code:"TH"},{name:"Timor-Leste",lat:-8.874217,long:125.727539,code:"TL"},{name:"Togo",lat:8.619543,long:.824782,code:"TG"},{name:"Tokelau",lat:-8.967363,long:-171.855881,code:"TK"},{name:"Tonga",lat:-21.178986,long:-175.198242,code:"TO"},{name:"Trinidad and Tobago",lat:10.691803,long:-61.222503,code:"TT"},{name:"Tunisia",lat:33.886917,long:9.537499,code:"TN"},{name:"Turkey",lat:38.963745,long:35.243322,code:"TR"},{name:"Turkmenistan",lat:38.969719,long:59.556278,code:"TM"},{name:"Turks and Caicos Islands",lat:21.694025,long:-71.797928,code:"TC"},{name:"Tuvalu",lat:-7.109535,long:177.64933,code:"TV"},{name:"Uganda",lat:1.373333,long:32.290275,code:"UG"},{name:"Ukraine",lat:48.379433,long:31.16558,code:"UA"},{name:"UAE",lat:23.424076,long:53.847818,code:"AE"},{name:"UK",lat:55.378051,long:-3.435973,code:"GB"},{name:"USA",lat:37.09024,long:-95.712891,code:"US"},{name:"United States Minor Outlying Islands",lat:0,long:0,code:"UM"},{name:"Uruguay",lat:-32.522779,long:-55.765835,code:"UY"},{name:"Uzbekistan",lat:41.377491,long:64.585262,code:"UZ"},{name:"Vanuatu",lat:-15.376706,long:166.959158,code:"VU"},{name:"Venezuela",lat:6.42375,long:-66.58973,code:"VE"},{name:"Vietnam",lat:14.058324,long:108.277199,code:"VN"},{name:"British Virgin Islands",lat:18.420695,long:-64.639968,code:"VG"},{name:"U.S. Virgin Islands",lat:18.335765,long:-64.896335,code:"VI"},{name:"Wallis and Futuna",lat:-13.768752,long:-177.156097,code:"WF"},{name:"Western Sahara",lat:24.215527,long:-12.885834,code:"EH"},{name:"Yemen",lat:15.552727,long:48.516388,code:"YE"},{name:"Zambia",lat:-13.133897,long:27.849332,code:"ZM"},{name:"Zimbabwe",lat:-19.015438,long:29.154857,code:"ZW"}];function rA(e){return nA.find(n=>n.code===e)}mi.extend(qC);mi.extend(JC);mi.extend(tA);function Rg(e){return mi(e).local().format("YYYY-MM-DD HH:mm:ss")}function Tg(e){return mi(e).local().fromNow()}function Lg(e){const t=rA(e);if(t)return{lat:t.lat,long:t.long}}function iA(e){if(e.loc){const t=e.loc.split(",");if(t.length===2){const n=t[0],r=t[1];return{lat:parseFloat(n),long:parseFloat(r)}}}return Lg(e.countryCode)}const sA=Ce({name:"AlertItem",components:{Artifacts:_g,Tags:As,ActionButtons:wg,ErrorMessage:bt},props:{alert:{type:Object,required:!0}},emits:["delete"],setup(e,t){const n=ze(!1),r=ze();return{onDelete:()=>{t.emit("delete")},getLocalDatetime:Rg,getHumanizedRelativeTime:Tg,onSetError:o=>{r.value=o},onDisposeError:()=>{r.value=void 0},error:r,isDeleted:n,onArtifactsDeleted:()=>{n.value=!0}}}}),oA={key:0,class:"box"},aA={class:"table is-fullwidth is-completely-borderless"},lA=D("th",null,"Rule",-1),cA=D("th",null,"Artifacts",-1),uA={key:0},hA=D("th",null,"Tags",-1),fA={class:"help"};function dA(e,t,n,r,l,s){const u=re("ErrorMessage"),d=re("ActionButtons"),o=re("router-link"),p=re("Artifacts"),a=re("Tags");return e.isDeleted?me("",!0):(Z(),se("div",oA,[e.error?(Z(),Se(u,{key:0,class:"block",error:e.error,disposable:!0,onDispose:e.onDisposeError},null,8,["error","onDispose"])):me("",!0),D("p",null,[oe(d,{alert:e.alert,onDelete:e.onDelete,onSetError:e.onSetError},null,8,["alert","onDelete","onSetError"])]),oe(o,{class:"is-size-4",to:{name:"Alert",params:{id:e.alert.id}}},{default:Je(()=>[et($e(e.alert.id),1)]),_:1},8,["to"]),D("table",aA,[D("tr",null,[lA,D("td",null,[oe(o,{to:{name:"Rule",params:{id:e.alert.ruleId}}},{default:Je(()=>[et($e(e.alert.ruleId),1)]),_:1},8,["to"])])]),D("tr",null,[cA,D("td",null,[oe(p,{artifacts:e.alert.artifacts,onDelete:e.onArtifactsDeleted},null,8,["artifacts","onDelete"])])]),e.alert.tags.length>0?(Z(),se("tr",uA,[hA,D("td",null,[oe(a,{tags:e.alert.tags,"navigate-to":"Alerts"},null,8,["tags"])])])):me("",!0)]),D("p",fA,"Created at: "+$e(e.alert.createdAt),1)]))}const pA=Re(sA,[["render",dA]]),gA=Ce({name:"PaginationItem",props:{currentPage:{type:Number,required:!0},pageSize:{type:Number,required:!0},total:{type:Number,required:!0}},emits:["update-page"],setup(e,t){const n=a=>a===e.currentPage+1||a===e.currentPage-1,r=Le(()=>Math.ceil(e.total/e.pageSize)),l=Le(()=>r.value===1),s=Le(()=>e.currentPage>1),u=Le(()=>e.currentPage-1===1),d=Le(()=>e.currentPage<r.value),o=Le(()=>e.currentPage+1===r.value);return{updatePage:a=>{t.emit("update-page",a)},isNextPage:n,hasNextPage:d,hasOnlyOnePage:l,hasPreviousPage:s,isNextPageLast:o,isPreviousPageFirst:u,totalPageCount:r}}}),mA={key:0,class:"message is-warning"},vA=D("div",{class:"message-body"},"There is no result to show.",-1),yA=[vA],bA={key:1,class:"pagination",role:"navigation","aria-label":"pagination"},wA={key:0,class:"pagination-list"},_A={key:1,class:"pagination-list"},$A={key:0},SA={key:1},CA=D("span",{class:"pagination-ellipsis"},"…",-1),AA=[CA],kA={key:2},xA={key:3},EA={key:4},RA=D("span",{class:"pagination-ellipsis"},"…",-1),TA=[RA],LA={key:5};function MA(e,t,n,r,l,s){return e.total===0?(Z(),se("article",mA,yA)):(Z(),se("nav",bA,[e.hasOnlyOnePage?(Z(),se("ul",wA,[D("li",null,[D("a",{class:"pagination-link mt-2 is-current",onClick:t[0]||(t[0]=u=>e.updatePage(1))},"1")])])):(Z(),se("ul",_A,[e.hasPreviousPage&&!e.isPreviousPageFirst?(Z(),se("li",$A,[D("a",{class:"pagination-link mt-2",onClick:t[1]||(t[1]=u=>e.updatePage(1))}," 1")])):me("",!0),e.hasPreviousPage&&!e.isPreviousPageFirst&&!e.isNextPage(2)?(Z(),se("li",SA,AA)):me("",!0),e.hasPreviousPage?(Z(),se("li",kA,[D("a",{class:"pagination-link mt-2",onClick:t[2]||(t[2]=u=>e.updatePage(e.currentPage-1))},$e(e.currentPage-1),1)])):me("",!0),D("li",null,[D("a",{class:"pagination-link mt-2 is-current",onClick:t[3]||(t[3]=u=>e.updatePage(e.currentPage))},$e(e.currentPage),1)]),e.hasNextPage?(Z(),se("li",xA,[D("a",{class:"pagination-link mt-2",onClick:t[4]||(t[4]=u=>e.updatePage(e.currentPage+1))},$e(e.currentPage+1),1)])):me("",!0),e.hasNextPage&&!e.isNextPageLast&&!e.isNextPage(e.totalPageCount-1)?(Z(),se("li",EA,TA)):me("",!0),e.hasNextPage&&!e.isNextPageLast?(Z(),se("li",LA,[D("a",{class:"pagination-link mt-2",onClick:t[5]||(t[5]=u=>e.updatePage(e.totalPageCount))},$e(e.totalPageCount),1)])):me("",!0)]))]))}const jc=Re(gA,[["render",MA]]),OA=Ce({name:"AlertsItem",components:{Alert:pA,Pagination:jc},props:{page:{type:String,required:!0},alerts:{type:Object,required:!0}},emits:["update-page","refresh"],setup(e,t){const n=s=>{t.emit("update-page",s)},r=()=>{t.emit("refresh")},l=Le(()=>e.alerts.results.length>0);return{onUpdatePage:n,onDelete:r,hasAlerts:l}}}),IA={key:0},NA={class:"help"},DA={key:1},FA=D("div",{class:"notification is-warning is-light"},"There is no alert to show",-1),PA=[FA];function BA(e,t,n,r,l,s){const u=re("Alert"),d=re("Pagination");return e.hasAlerts?(Z(),se("div",IA,[(Z(!0),se(Ne,null,Nt(e.alerts.results,o=>(Z(),Se(u,{alert:o,key:o.id,onDelete:e.onDelete},null,8,["alert","onDelete"]))),128)),oe(d,{total:e.alerts.total,currentPage:e.alerts.currentPage,pageSize:e.alerts.pageSize,onUpdatePage:e.onUpdatePage},null,8,["total","currentPage","pageSize","onUpdatePage"]),D("p",NA,"("+$e(e.alerts.total)+" results in total, "+$e(e.alerts.results.length)+" shown)",1)])):(Z(),se("div",DA,PA))}const Mg=Re(OA,[["render",BA]]),WA=Ce({name:"LoadingItem"}),HA={class:"has-text-centered"},UA={class:"fa-3x"};function VA(e,t,n,r,l,s){const u=re("font-awesome-icon");return Z(),se("div",HA,[D("div",UA,[oe(u,{icon:"spinner",spin:""})])])}const Rn=Re(WA,[["render",VA]]),zA=Ce({name:"AlertsWithPagination",props:{ruleId:{type:String,required:!0},excludeAlertId:{type:Number,required:!1}},components:{Alerts:Mg,Loading:Rn,ErrorMessage:bt},setup(e){const t=ze(1),n=Le(()=>e.excludeAlertId?`rule.id:"${e.ruleId}" AND NOT id:${e.excludeAlertId}`:`rule.id:"${e.ruleId}"`),r=Ss(),l=async()=>{const u={q:n.value,page:t.value};return await r.perform(u)},s=u=>{t.value=u};return lt(async()=>{await l()}),st([e,t],async()=>{await l()}),{page:t,getAlertsTask:r,onUpdatePage:s}}});function jA(e,t,n,r,l,s){var p,a;const u=re("Loading"),d=re("ErrorMessage"),o=re("Alerts");return Z(),se(Ne,null,[e.getAlertsTask.isRunning?(Z(),Se(u,{key:0})):me("",!0),e.getAlertsTask.isError?(Z(),Se(d,{key:1,error:(p=e.getAlertsTask.last)==null?void 0:p.error},null,8,["error"])):me("",!0),(a=e.getAlertsTask.last)!=null&&a.value?(Z(),Se(o,{key:2,page:e.page.toString(),alerts:e.getAlertsTask.last.value,onUpdatePage:e.onUpdatePage},null,8,["page","alerts","onUpdatePage"])):me("",!0)],64)}const Og=Re(zA,[["render",jA]]),GA=Ce({name:"AlertDetail",components:{Artifacts:_g,Tags:As,Alerts:Og,ActionButtons:wg,ErrorMessage:bt},props:{alert:{type:Object,required:!0}},emits:["delete"],setup(e,t){const n=ze(),r=d=>{n.value=d},l=()=>{n.value=void 0},s=()=>{t.emit("delete")};return{onDelete:s,getLocalDatetime:Rg,getHumanizedRelativeTime:Tg,onSetError:r,onDisposeError:l,error:n,onArtifactsDeleted:s}}}),KA={class:"block"},YA={class:"is-size-2"},ZA={class:"is-clearfix"},XA={class:"table is-fullwidth is-completely-borderless"},qA=D("th",null,"Rule",-1),QA=D("th",null,"Artifacts",-1),JA={key:0},ek=D("th",null,"Tags",-1),tk={class:"help"},nk=D("hr",null,null,-1),rk={class:"block"},ik=D("h2",{class:"is-size-2 block"},"Related Alerts",-1);function sk(e,t,n,r,l,s){const u=re("ErrorMessage"),d=re("ActionButtons"),o=re("router-link"),p=re("Artifacts"),a=re("Tags"),i=re("Alerts");return Z(),se(Ne,null,[e.error?(Z(),Se(u,{key:0,class:"block",error:e.error,disposable:!0,onDispose:e.onDisposeError},null,8,["error","onDispose"])):me("",!0),D("div",KA,[D("h2",YA,$e(e.alert.id),1),D("p",ZA,[oe(d,{alert:e.alert,onDelete:e.onDelete,onSetError:e.onSetError},null,8,["alert","onDelete","onSetError"])]),D("table",XA,[D("tr",null,[qA,D("td",null,[oe(o,{to:{name:"Rule",params:{id:e.alert.ruleId}}},{default:Je(()=>[et($e(e.alert.ruleId),1)]),_:1},8,["to"])])]),D("tr",null,[QA,D("td",null,[oe(p,{artifacts:e.alert.artifacts,onDelete:e.onArtifactsDeleted},null,8,["artifacts","onDelete"])])]),e.alert.tags.length>0?(Z(),se("tr",JA,[ek,D("td",null,[oe(a,{tags:e.alert.tags,"navigate-to":"Alerts"},null,8,["tags"])])])):me("",!0)]),D("p",tk,"Created at: "+$e(e.alert.createdAt),1)]),nk,D("div",rk,[ik,oe(i,{"rule-id":e.alert.ruleId,"exclude-alert-id":e.alert.id},null,8,["rule-id","exclude-alert-id"])])],64)}const ok=Re(GA,[["render",sk]]),ak=Ce({name:"AlertDetailWrapper",components:{Alert:ok,Loading:Rn,ErrorMessage:bt},props:{id:{type:Number,required:!0}},setup(e){const t=pi(),n=mC(),r=()=>{t.push("/")};return lt(async()=>{await n.perform(e.id)}),{getAlertTask:n,onDelete:r}}});function lk(e,t,n,r,l,s){var p,a;const u=re("Loading"),d=re("ErrorMessage"),o=re("Alert");return Z(),se(Ne,null,[e.getAlertTask.isRunning?(Z(),Se(u,{key:0})):me("",!0),e.getAlertTask.isError?(Z(),Se(d,{key:1,error:(p=e.getAlertTask.last)==null?void 0:p.error},null,8,["error"])):me("",!0),(a=e.getAlertTask.last)!=null&&a.value?(Z(),Se(o,{key:2,alert:e.getAlertTask.last.value,onDelete:e.onDelete},null,8,["alert","onDelete"])):me("",!0)],64)}const ck=Re(ak,[["render",lk]]),uk=Ce({name:"AlertView",components:{Alert:ck},props:{id:{type:String,required:!0}},setup(e){const t=()=>{En(`Alert:${e.id} - Mihari`)};lt(()=>{t()}),st(()=>e.id,()=>{t()})}});function hk(e,t,n,r,l,s){const u=re("Alert",!0);return Z(),Se(u,{id:parseInt(e.id)},null,8,["id"])}const fk=Re(uk,[["render",hk]]),Ya=new WeakMap;function ii(e,t,n={}){const{mode:r="replace",route:l=X1(),router:s=pi(),transform:u=i=>i}=n;Ya.has(s)||Ya.set(s,new Map);const d=Ya.get(s);let o=l.query[e];Ep(()=>{o=void 0});let p;const a=Go((i,c)=>(p=c,{get(){return i(),u(o!==void 0?o:qi(t))},set(h){o!==h&&(o=h===t||h===null?void 0:h,d.set(e,h===t||h===null?void 0:h),c(),hi(()=>{if(d.size===0)return;const f=Object.fromEntries(d.entries());d.clear();const{params:g,query:m,hash:v}=l;s[qi(r)]({params:g,query:{...m,...f},hash:v})}))}}));return st(()=>l.query[e],i=>{o=i,p()},{flush:"sync"}),a}const dk=Ce({name:"AlertsWrapper",components:{Alerts:Mg,Loading:Rn,ErrorMessage:bt},setup(){const e=ii("page","1"),t=ii("q",""),n=ze(!1),r=Ss(),l=async()=>{const p={q:t.value,page:parseInt(e.value)};return await r.perform(p)},s=p=>{e.value=p.toString()},u=async()=>{e.value="1",await l()},d=u,o=()=>{n.value=!n.value};return lt(async()=>{await l()}),st(e,async()=>{await l()}),st(t,async()=>{window.scrollTo({top:0,behavior:"smooth"})}),{getAlertsTask:r,page:e,q:t,search:u,showHelp:n,toggleShowHelp:o,onUpdatePage:s,onRefresh:d}}}),pk={class:"block"},gk={class:"field has-addons"},mk={class:"control is-expanded"},vk={class:"control"},yk={class:"icon is-small"},bk=D("span",null,"Search",-1),wk={class:"control"},_k={class:"icon is-small"},$k=D("span",null,"Help",-1),Sk={key:0,class:"content"},Ck=sa('<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),Ak={key:0,class:"block"};function kk(e,t,n,r,l,s){var i,c;const u=re("font-awesome-icon"),d=re("router-link"),o=re("Loading"),p=re("ErrorMessage"),a=re("Alerts");return Z(),se(Ne,null,[D("div",pk,[D("div",gk,[D("p",mk,[Jo(D("input",{class:"input",type:"text","onUpdate:modelValue":t[0]||(t[0]=h=>e.q=h)},null,512),[[_r,e.q]])]),D("p",vk,[D("a",{class:"button is-primary",onClick:t[1]||(t[1]=(...h)=>e.search&&e.search(...h))},[D("span",yk,[oe(u,{icon:"search"})]),bk])]),D("p",wk,[D("a",{class:"button is-info",onClick:t[2]||(t[2]=(...h)=>e.toggleShowHelp&&e.toggleShowHelp(...h))},[D("span",_k,[oe(u,{icon:"question"})]),$k])])]),e.showHelp?(Z(),se("div",Sk,[Ck,D("ul",null,[D("li",null,[oe(d,{to:{name:"Alerts",query:{q:"rule.id:foo AND artifact.data:example.com"}}},{default:Je(()=>[et("rule.id:foo AND artifact.data:example.com")]),_:1},8,["to"])]),D("li",null,[oe(d,{to:{name:"Alerts",query:{q:"tag:foo AND created_at >= 2020-01-01"}}},{default:Je(()=>[et("tag:foo AND created_at >= 2020-01-01")]),_:1})])])])):me("",!0)]),e.getAlertsTask.performCount>0?(Z(),se("div",Ak,[e.getAlertsTask.isRunning?(Z(),Se(o,{key:0})):me("",!0),e.getAlertsTask.isError?(Z(),Se(p,{key:1,error:(i=e.getAlertsTask.last)==null?void 0:i.error},null,8,["error"])):me("",!0),(c=e.getAlertsTask.last)!=null&&c.value?(Z(),Se(a,{key:2,alerts:e.getAlertsTask.last.value,page:e.page,onUpdatePage:e.onUpdatePage,onRefresh:e.onRefresh},null,8,["alerts","page","onUpdatePage","onRefresh"])):me("",!0)])):me("",!0)],64)}const xk=Re(dk,[["render",kk]]),Ek=Ce({name:"OverviewCards",setup(){const e=Ss(),t=yg(),n=zc();return lt(()=>{e.perform({q:"",page:1,limit:0}),t.perform({q:"",page:1,limit:0}),n.perform({q:"",page:1,limit:0})}),{getAlertsTask:e,getArtifactsTask:n,getRulesTask:t}}}),Rk={class:"columns"},Tk={class:"column is-one-third"},Lk={class:"card tile is-child"},Mk={class:"card-content"},Ok={class:"level is-mobile"},Ik={class:"level-item"},Nk={class:"is-widget-label"},Dk=D("h3",{class:"subtitle is-spaced"},"Rules",-1),Fk={class:"title"},Pk={class:"level-item has-widget-icon"},Bk={class:"is-widget-icon"},Wk={class:"icon has-text-info is-large"},Hk={class:"column is-one-third"},Uk={class:"card tile is-child"},Vk={class:"card-content"},zk={class:"level is-mobile"},jk={class:"level-item"},Gk={class:"is-widget-label"},Kk=D("h3",{class:"subtitle is-spaced"},"Alerts",-1),Yk={class:"title"},Zk={class:"level-item has-widget-icon"},Xk={class:"is-widget-icon"},qk={class:"icon has-text-info is-large"},Qk={class:"column is-one-third"},Jk={class:"card tile is-child"},e2={class:"card-content"},t2={class:"level is-mobile"},n2={class:"level-item"},r2={class:"is-widget-label"},i2=D("h3",{class:"subtitle is-spaced"},"Artifacts",-1),s2={class:"title"},o2={class:"level-item has-widget-icon"},a2={class:"is-widget-icon"},l2={class:"icon has-text-info is-large"};function c2(e,t,n,r,l,s){var d,o,p,a,i,c;const u=re("font-awesome-icon");return Z(),se("div",Rk,[D("div",Tk,[D("div",Lk,[D("div",Mk,[D("div",Ok,[D("div",Ik,[D("div",Nk,[Dk,D("h1",Fk,$e(((o=(d=e.getRulesTask.last)==null?void 0:d.value)==null?void 0:o.total)??"N/A"),1)])]),D("div",Pk,[D("div",Bk,[D("span",Wk,[oe(u,{icon:"file",size:"2x"})])])])])])])]),D("div",Hk,[D("div",Uk,[D("div",Vk,[D("div",zk,[D("div",jk,[D("div",Gk,[Kk,D("h1",Yk,$e(((a=(p=e.getAlertsTask.last)==null?void 0:p.value)==null?void 0:a.total)??"N/A"),1)])]),D("div",Zk,[D("div",Xk,[D("span",qk,[oe(u,{icon:"bell",size:"2x"})])])])])])])]),D("div",Qk,[D("div",Jk,[D("div",e2,[D("div",t2,[D("div",n2,[D("div",r2,[i2,D("h1",s2,$e(((c=(i=e.getArtifactsTask.last)==null?void 0:i.value)==null?void 0:c.total)??"N/A"),1)])]),D("div",o2,[D("div",a2,[D("span",l2,[oe(u,{icon:"ticket",size:"2x"})])])])])])])])])}const u2=Re(Ek,[["render",c2]]),h2=Ce({name:"AlertsView",components:{Alerts:xk,OverviewCards:u2},setup(){En("Alerts - Mihari")}}),f2=D("hr",null,null,-1);function d2(e,t,n,r,l,s){const u=re("OverviewCards"),d=re("Alerts",!0);return Z(),se(Ne,null,[oe(u),f2,oe(d)],64)}const p2=Re(h2,[["render",d2]]),g2=Ce({name:"ArtifactActionButtons",props:{artifact:{type:Object,required:!0}},components:{VueJsonPretty:Cg},emits:["delete","set-error","set-message"],setup(e,t){const n=Le(()=>`/api/artifacts/${e.artifact.id}`),r=ze(!1),l=vg(),s=cC();return{deleteArtifact:async()=>{if(window.confirm(`Are you sure you want to delete ${e.artifact.data}?`))try{await l.perform(e.artifact.id),t.emit("delete")}catch(a){tt.isAxiosError(a)&&t.emit("set-error",a)}},enrichArtifact:async()=>{try{const p=await s.perform(e.artifact.id);t.emit("set-message",p)}catch(p){tt.isAxiosError(p)&&t.emit("set-error",p)}},enrichArtifactTask:s,toggleShowMetadata:()=>{r.value=!r.value},href:n,showMetadata:r,truncate:Cs}}}),ks=e=>(qo("data-v-631975a4"),e=e(),Qo(),e),m2={class:"buttons is-pulled-right"},v2=["href"],y2=ks(()=>D("span",null,"JSON",-1)),b2={class:"icon is-small"},w2=ks(()=>D("span",null,"Metadata",-1)),_2={class:"icon is-small"},$2=ks(()=>D("span",null,"Enrich",-1)),S2={class:"icon is-small"},C2=ks(()=>D("span",null,"Delete",-1)),A2={class:"icon is-small"},k2={key:0},x2={class:"modal is-active"},E2={class:"modal-card"},R2={class:"modal-card-head"},T2=ks(()=>D("p",{class:"modal-card-title"},"Metadata",-1)),L2={class:"modal-card-body"};function M2(e,t,n,r,l,s){const u=re("font-awesome-icon"),d=re("VueJsonPretty");return Z(),se(Ne,null,[D("span",m2,[D("a",{class:"button is-link is-light is-small",href:e.href,target:"_blank"},[y2,D("span",b2,[oe(u,{icon:"barcode"})])],8,v2),e.artifact.metadata?(Z(),se("button",{key:0,class:"button is-info is-light is-small",onClick:t[0]||(t[0]=(...o)=>e.toggleShowMetadata&&e.toggleShowMetadata(...o))},[w2,D("span",_2,[oe(u,{icon:"info-circle"})])])):me("",!0),D("button",{class:"button is-primary is-light is-small",onClick:t[1]||(t[1]=(...o)=>e.enrichArtifact&&e.enrichArtifact(...o))},[$2,D("span",S2,[e.enrichArtifactTask.isRunning?(Z(),Se(u,{key:0,icon:"spinner",spin:""})):(Z(),Se(u,{key:1,icon:"lightbulb"}))])]),D("button",{class:"button is-light is-small",onClick:t[2]||(t[2]=(...o)=>e.deleteArtifact&&e.deleteArtifact(...o))},[C2,D("span",A2,[oe(u,{icon:"times"})])])]),e.artifact.metadata&&e.showMetadata?(Z(),se("div",k2,[D("div",x2,[D("div",{class:"modal-background",onClick:t[3]||(t[3]=(...o)=>e.toggleShowMetadata&&e.toggleShowMetadata(...o))}),D("div",E2,[D("header",R2,[T2,D("button",{class:"delete","aria-label":"close",onClick:t[4]||(t[4]=(...o)=>e.toggleShowMetadata&&e.toggleShowMetadata(...o))})]),D("section",L2,[oe(d,{data:e.artifact.metadata},null,8,["data"])])])])])):me("",!0)],64)}const Ig=Re(g2,[["render",M2],["__scopeId","data-v-631975a4"]]),O2=Ce({name:"AS",props:{autonomousSystem:{type:Object,required:!0}},setup(){return{getQuery:t=>`asn:${t}`}}}),I2={class:"tags are-medium"};function N2(e,t,n,r,l,s){const u=re("router-link");return Z(),se("div",I2,[oe(u,{class:"tag",to:{name:"Artifacts",query:{q:e.getQuery(e.autonomousSystem.number)}}},{default:Je(()=>[et($e(e.autonomousSystem.number),1)]),_:1},8,["to"])])}const D2=Re(O2,[["render",N2]]),F2=Ce({name:"CPEsItem",props:{cpes:{type:Array,required:!0}},setup(){return{getQuery:t=>`cpe:"${t}"`}}}),P2={class:"tags are-medium"};function B2(e,t,n,r,l,s){const u=re("router-link");return Z(),se("div",P2,[(Z(!0),se(Ne,null,Nt(e.cpes,d=>(Z(),Se(u,{class:"tag",key:d.name,to:{name:"Artifacts",query:{q:e.getQuery(d.name)}}},{default:Je(()=>[et($e(d.name),1)]),_:2},1032,["to"]))),128))])}const W2=Re(F2,[["render",B2]]),H2=Ce({name:"DnsRecords",props:{dnsRecords:{type:Array,required:!0}},setup(){return{truncate:Cs,getQuery:({resource:t,value:n})=>`dns_record.value:"${n}" AND dns_record.resource:"${t}"`}}}),U2={class:"field is-grouped is-grouped-multiline"},V2={class:"tags has-addons are-medium"},z2={class:"tag is-dark"};function j2(e,t,n,r,l,s){const u=re("router-link");return Z(),se("div",U2,[(Z(!0),se(Ne,null,Nt(e.dnsRecords,(d,o)=>(Z(),se("div",{class:"control",key:o},[D("div",V2,[D("span",z2,$e(d.resource),1),oe(u,{class:"tag",to:{name:"Artifacts",query:{q:e.getQuery({resource:d.resource,value:d.value})}}},{default:Je(()=>[et($e(e.truncate(d.value,50)),1)]),_:2},1032,["to"])])]))),128))])}const G2=Re(H2,[["render",j2]]),K2=Ce({name:"PortsItem",props:{ports:{type:Array,required:!0}},setup(){return{getQuery:t=>`port:${t}`}}}),Y2={class:"tags are-medium"};function Z2(e,t,n,r,l,s){const u=re("router-link");return Z(),se("div",Y2,[(Z(!0),se(Ne,null,Nt(e.ports,d=>(Z(),Se(u,{class:"tag",key:d.number,to:{name:"Artifacts",query:{q:e.getQuery(d.number)}}},{default:Je(()=>[et($e(d.number),1)]),_:2},1032,["to"]))),128))])}const X2=Re(K2,[["render",Z2]]),q2=Ce({name:"ReverseDnsNames",props:{reverseDnsNames:{type:Array,required:!0}},setup(){return{getQuery:t=>`reverse_dns_name:"${t}"`}}}),Q2={class:"tags are-medium"};function J2(e,t,n,r,l,s){const u=re("router-link");return Z(),se("div",Q2,[(Z(!0),se(Ne,null,Nt(e.reverseDnsNames,d=>(Z(),Se(u,{class:"tag",key:d.name,to:{name:"Artifacts",query:{q:e.getQuery(d.name)}}},{default:Je(()=>[et($e(d.name),1)]),_:2},1032,["to"]))),128))])}const ex=Re(q2,[["render",J2]]),tx=Ce({name:"VulnerabilitiesItem",props:{vulnerabilities:{type:Array,required:!0}},setup(){return{getQuery:t=>`vuln:"${t}"`}}}),nx={class:"tags are-medium"};function rx(e,t,n,r,l,s){const u=re("router-link");return Z(),se("div",nx,[(Z(!0),se(Ne,null,Nt(e.vulnerabilities,d=>(Z(),Se(u,{class:"tag",key:d.name,to:{name:"Artifacts",query:{q:e.getQuery(d.name)}}},{default:Je(()=>[et($e(d.name),1)]),_:2},1032,["to"]))),128))])}const ix=Re(tx,[["render",rx]]),sx=Ce({name:"WhoisRecord",props:{whoisRecord:{type:Object,required:!0}}}),ox={class:"field is-grouped is-grouped-multiline"},ax={class:"control"},lx={class:"tags has-addons are-medium"},cx=D("span",{class:"tag is-dark"},"Registrar",-1),ux={class:"tag is-light"},hx={class:"control"},fx={class:"tags has-addons are-medium"},dx=D("span",{class:"tag is-dark"},"Created on",-1),px={class:"tag is-light"},gx={class:"control"},mx={class:"tags has-addons are-medium"},vx=D("span",{class:"tag is-dark"},"Updated on",-1),yx={class:"tag is-light"},bx={class:"control"},wx={class:"tags has-addons are-medium"},_x=D("span",{class:"tag is-dark"},"Expires on",-1),$x={class:"tag is-light"};function Sx(e,t,n,r,l,s){var u;return Z(),se("div",ox,[D("div",ax,[D("div",lx,[cx,D("span",ux,$e(((u=e.whoisRecord.registrar)==null?void 0:u.name)||"N/A"),1)])]),D("div",hx,[D("div",fx,[dx,D("span",px,$e(e.whoisRecord.createdOn||"N/A"),1)])]),D("div",gx,[D("div",mx,[vx,D("span",yx,$e(e.whoisRecord.updatedOn||"N/A"),1)])]),D("div",bx,[D("div",wx,[_x,D("span",$x,$e(e.whoisRecord.expiresOn||"N/A"),1)])])])}const Cx=Re(sx,[["render",Sx]]),Ax=Ce({name:"LinkItem",props:{data:{type:String,required:!0},link:{type:Object,required:!0}}}),kx=["href"],xx=["src"];function Ex(e,t,n,r,l,s){return Z(),se("a",{href:e.link.href(e.data),class:"tag is-white",target:"_blank"},[D("img",{src:e.link.favicon(),alt:"favicon"},null,8,xx),D("span",null,$e(e.link.name),1)],8,kx)}const Rx=Re(Ax,[["render",Ex],["__scopeId","data-v-3ffdcc00"]]);class Ht{constructor(){Fe(this,"baseURL");this.baseURL="https://example.com"}favicon(){return"https://t0.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url="+this.baseURL}}class Tx extends Ht{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://app.any.run",this.name="ANY.RUN",this.type="hash"}href(n){return this.baseURL+`/submissions/#filehash:${n}`}}class Lx extends Ht{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://search.censys.io",this.name="Censys",this.type="ip"}href(n){return this.baseURL+`/hosts/${n}`}}class Mx extends Ht{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://crt.sh",this.name="crt.sh",this.type="domain"}href(n){return this.baseURL+`/?q=${n}`}}class Ox extends Ht{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://dnslytics.com",this.name="DNSlytics",this.type="ip"}href(n){return this.baseURL+`/ip/${n}`}}class Ix extends Ht{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://dnslytics.com",this.name="DNSlytics",this.type="domain"}href(n){return this.baseURL+`/domain/${n}`}}class Nx extends Ht{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://emailrep.io",this.name="EmailRep",this.type="mail"}href(n){return this.baseURL+`/${n}`}}class Dx extends Ht{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://viz.greynoise.io",this.name="GreyNoise",this.type="ip"}href(n){return this.baseURL+`/ip/${n}`}}class Fx extends Ht{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://analyze.intezer.com",this.name="Intezer",this.type="hash"}href(n){return this.baseURL+`/#/files/${n}`}}class Ng extends Ht{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://otx.alienvault.com",this.name="OTX",this.type="ip"}href(n){return this.baseURL+`/indicator/ip/${n}`}}class Px extends Ng{constructor(){super();Fe(this,"type");this.type="domain"}href(n){return this.baseURL+`/indicator/domain/${n}`}}class Dg extends Ht{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://securitytrails.com",this.name="SecurityTrails",this.type="domain"}}class Bx extends Dg{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/domain/${t}/dns`}}class Wx extends Dg{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/list/ip/${t}`}}class Hx extends Ht{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://www.shodan.io",this.name="Shodan",this.type="ip"}href(n){return this.baseURL+`/host/${n}`}}class Gc extends Ht{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://urlscan.io",this.name="urlscan.io",this.type="domain"}}class Ux extends Gc{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/domain/${t}`}}class Vx extends Gc{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/ip/${t}`}}class zx extends Gc{constructor(){super(),this.type="url"}href(t){const n=encodeURIComponent(`page.url:"${t}" OR task.url:"${t}"`);return this.baseURL+`/search/#${n}`}}var Fg={exports:{}};const jx={},Gx=Object.freeze(Object.defineProperty({__proto__:null,default:jx},Symbol.toStringTag,{value:"Module"})),Vh=$g(Gx);/**
803
+ * [js-sha256]{@link https://github.com/emn178/js-sha256}
804
+ *
805
+ * @version 0.11.0
806
+ * @author Chen, Yi-Cyuan [emn178@gmail.com]
807
+ * @copyright Chen, Yi-Cyuan 2014-2024
808
+ * @license MIT
809
+ */(function(e){(function(){var t="input is invalid type",n=typeof window=="object",r=n?window:{};r.JS_SHA256_NO_WINDOW&&(n=!1);var l=!n&&typeof self=="object",s=!r.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;s?r=er:l&&(r=self);var u=!r.JS_SHA256_NO_COMMON_JS&&!0&&e.exports,d=!r.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",o="0123456789abcdef".split(""),p=[-2147483648,8388608,32768,128],a=[24,16,8,0],i=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],c=["hex","array","digest","arrayBuffer"],h=[];(r.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(b){return Object.prototype.toString.call(b)==="[object Array]"}),d&&(r.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(b){return typeof b=="object"&&b.buffer&&b.buffer.constructor===ArrayBuffer});var f=function(b,E){return function(L){return new k(E,!0).update(L)[b]()}},g=function(b){var E=f("hex",b);s&&(E=m(E,b)),E.create=function(){return new k(b)},E.update=function(M){return E.create().update(M)};for(var L=0;L<c.length;++L){var x=c[L];E[x]=f(x,b)}return E},m=function(b,E){var L=Vh,x=Vh.Buffer,M=E?"sha224":"sha256",_;x.from&&!r.JS_SHA256_NO_BUFFER_FROM?_=x.from:_=function($){return new x($)};var A=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===x?L.createHash(M).update(_($)).digest("hex"):b($)};return A},v=function(b,E){return function(L,x){return new C(L,E,!0).update(x)[b]()}},y=function(b){var E=v("hex",b);E.create=function(M){return new C(M,b)},E.update=function(M,_){return E.create(M).update(_)};for(var L=0;L<c.length;++L){var x=c[L];E[x]=v(x,b)}return E};function k(b,E){E?(h[0]=h[16]=h[1]=h[2]=h[3]=h[4]=h[5]=h[6]=h[7]=h[8]=h[9]=h[10]=h[11]=h[12]=h[13]=h[14]=h[15]=0,this.blocks=h):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],b?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=b}k.prototype.update=function(b){if(!this.finalized){var E,L=typeof b;if(L!=="string"){if(L==="object"){if(b===null)throw new Error(t);if(d&&b.constructor===ArrayBuffer)b=new Uint8Array(b);else if(!Array.isArray(b)&&(!d||!ArrayBuffer.isView(b)))throw new Error(t)}else throw new Error(t);E=!0}for(var x,M=0,_,A=b.length,$=this.blocks;M<A;){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),E)for(_=this.start;M<A&&_<64;++M)$[_>>>2]|=b[M]<<a[_++&3];else for(_=this.start;M<A&&_<64;++M)x=b.charCodeAt(M),x<128?$[_>>>2]|=x<<a[_++&3]:x<2048?($[_>>>2]|=(192|x>>>6)<<a[_++&3],$[_>>>2]|=(128|x&63)<<a[_++&3]):x<55296||x>=57344?($[_>>>2]|=(224|x>>>12)<<a[_++&3],$[_>>>2]|=(128|x>>>6&63)<<a[_++&3],$[_>>>2]|=(128|x&63)<<a[_++&3]):(x=65536+((x&1023)<<10|b.charCodeAt(++M)&1023),$[_>>>2]|=(240|x>>>18)<<a[_++&3],$[_>>>2]|=(128|x>>>12&63)<<a[_++&3],$[_>>>2]|=(128|x>>>6&63)<<a[_++&3],$[_>>>2]|=(128|x&63)<<a[_++&3]);this.lastByteIndex=_,this.bytes+=_-this.start,_>=64?(this.block=$[16],this.start=_-64,this.hash(),this.hashed=!0):this.start=_}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},k.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var b=this.blocks,E=this.lastByteIndex;b[16]=this.block,b[E>>>2]|=p[E&3],this.block=b[16],E>=56&&(this.hashed||this.hash(),b[0]=this.block,b[16]=b[1]=b[2]=b[3]=b[4]=b[5]=b[6]=b[7]=b[8]=b[9]=b[10]=b[11]=b[12]=b[13]=b[14]=b[15]=0),b[14]=this.hBytes<<3|this.bytes>>>29,b[15]=this.bytes<<3,this.hash()}},k.prototype.hash=function(){var b=this.h0,E=this.h1,L=this.h2,x=this.h3,M=this.h4,_=this.h5,A=this.h6,$=this.h7,w=this.blocks,R,T,O,I,N,P,W,j,V,H,G;for(R=16;R<64;++R)N=w[R-15],T=(N>>>7|N<<25)^(N>>>18|N<<14)^N>>>3,N=w[R-2],O=(N>>>17|N<<15)^(N>>>19|N<<13)^N>>>10,w[R]=w[R-16]+T+w[R-7]+O<<0;for(G=E&L,R=0;R<64;R+=4)this.first?(this.is224?(j=300032,N=w[0]-1413257819,$=N-150054599<<0,x=N+24177077<<0):(j=704751109,N=w[0]-210244248,$=N-1521486534<<0,x=N+143694565<<0),this.first=!1):(T=(b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10),O=(M>>>6|M<<26)^(M>>>11|M<<21)^(M>>>25|M<<7),j=b&E,I=j^b&L^G,W=M&_^~M&A,N=$+O+W+i[R]+w[R],P=T+I,$=x+N<<0,x=N+P<<0),T=(x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10),O=($>>>6|$<<26)^($>>>11|$<<21)^($>>>25|$<<7),V=x&b,I=V^x&E^j,W=$&M^~$&_,N=A+O+W+i[R+1]+w[R+1],P=T+I,A=L+N<<0,L=N+P<<0,T=(L>>>2|L<<30)^(L>>>13|L<<19)^(L>>>22|L<<10),O=(A>>>6|A<<26)^(A>>>11|A<<21)^(A>>>25|A<<7),H=L&x,I=H^L&b^V,W=A&$^~A&M,N=_+O+W+i[R+2]+w[R+2],P=T+I,_=E+N<<0,E=N+P<<0,T=(E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10),O=(_>>>6|_<<26)^(_>>>11|_<<21)^(_>>>25|_<<7),G=E&L,I=G^E&x^H,W=_&A^~_&$,N=M+O+W+i[R+3]+w[R+3],P=T+I,M=b+N<<0,b=N+P<<0,this.chromeBugWorkAround=!0;this.h0=this.h0+b<<0,this.h1=this.h1+E<<0,this.h2=this.h2+L<<0,this.h3=this.h3+x<<0,this.h4=this.h4+M<<0,this.h5=this.h5+_<<0,this.h6=this.h6+A<<0,this.h7=this.h7+$<<0},k.prototype.hex=function(){this.finalize();var b=this.h0,E=this.h1,L=this.h2,x=this.h3,M=this.h4,_=this.h5,A=this.h6,$=this.h7,w=o[b>>>28&15]+o[b>>>24&15]+o[b>>>20&15]+o[b>>>16&15]+o[b>>>12&15]+o[b>>>8&15]+o[b>>>4&15]+o[b&15]+o[E>>>28&15]+o[E>>>24&15]+o[E>>>20&15]+o[E>>>16&15]+o[E>>>12&15]+o[E>>>8&15]+o[E>>>4&15]+o[E&15]+o[L>>>28&15]+o[L>>>24&15]+o[L>>>20&15]+o[L>>>16&15]+o[L>>>12&15]+o[L>>>8&15]+o[L>>>4&15]+o[L&15]+o[x>>>28&15]+o[x>>>24&15]+o[x>>>20&15]+o[x>>>16&15]+o[x>>>12&15]+o[x>>>8&15]+o[x>>>4&15]+o[x&15]+o[M>>>28&15]+o[M>>>24&15]+o[M>>>20&15]+o[M>>>16&15]+o[M>>>12&15]+o[M>>>8&15]+o[M>>>4&15]+o[M&15]+o[_>>>28&15]+o[_>>>24&15]+o[_>>>20&15]+o[_>>>16&15]+o[_>>>12&15]+o[_>>>8&15]+o[_>>>4&15]+o[_&15]+o[A>>>28&15]+o[A>>>24&15]+o[A>>>20&15]+o[A>>>16&15]+o[A>>>12&15]+o[A>>>8&15]+o[A>>>4&15]+o[A&15];return this.is224||(w+=o[$>>>28&15]+o[$>>>24&15]+o[$>>>20&15]+o[$>>>16&15]+o[$>>>12&15]+o[$>>>8&15]+o[$>>>4&15]+o[$&15]),w},k.prototype.toString=k.prototype.hex,k.prototype.digest=function(){this.finalize();var b=this.h0,E=this.h1,L=this.h2,x=this.h3,M=this.h4,_=this.h5,A=this.h6,$=this.h7,w=[b>>>24&255,b>>>16&255,b>>>8&255,b&255,E>>>24&255,E>>>16&255,E>>>8&255,E&255,L>>>24&255,L>>>16&255,L>>>8&255,L&255,x>>>24&255,x>>>16&255,x>>>8&255,x&255,M>>>24&255,M>>>16&255,M>>>8&255,M&255,_>>>24&255,_>>>16&255,_>>>8&255,_&255,A>>>24&255,A>>>16&255,A>>>8&255,A&255];return this.is224||w.push($>>>24&255,$>>>16&255,$>>>8&255,$&255),w},k.prototype.array=k.prototype.digest,k.prototype.arrayBuffer=function(){this.finalize();var b=new ArrayBuffer(this.is224?28:32),E=new DataView(b);return E.setUint32(0,this.h0),E.setUint32(4,this.h1),E.setUint32(8,this.h2),E.setUint32(12,this.h3),E.setUint32(16,this.h4),E.setUint32(20,this.h5),E.setUint32(24,this.h6),this.is224||E.setUint32(28,this.h7),b};function C(b,E,L){var x,M=typeof b;if(M==="string"){var _=[],A=b.length,$=0,w;for(x=0;x<A;++x)w=b.charCodeAt(x),w<128?_[$++]=w:w<2048?(_[$++]=192|w>>>6,_[$++]=128|w&63):w<55296||w>=57344?(_[$++]=224|w>>>12,_[$++]=128|w>>>6&63,_[$++]=128|w&63):(w=65536+((w&1023)<<10|b.charCodeAt(++x)&1023),_[$++]=240|w>>>18,_[$++]=128|w>>>12&63,_[$++]=128|w>>>6&63,_[$++]=128|w&63);b=_}else if(M==="object"){if(b===null)throw new Error(t);if(d&&b.constructor===ArrayBuffer)b=new Uint8Array(b);else if(!Array.isArray(b)&&(!d||!ArrayBuffer.isView(b)))throw new Error(t)}else throw new Error(t);b.length>64&&(b=new k(E,!0).update(b).array());var R=[],T=[];for(x=0;x<64;++x){var O=b[x]||0;R[x]=92^O,T[x]=54^O}k.call(this,E,L),this.update(T),this.oKeyPad=R,this.inner=!0,this.sharedMemory=L}C.prototype=new k,C.prototype.finalize=function(){if(k.prototype.finalize.call(this),this.inner){this.inner=!1;var b=this.array();k.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(b),k.prototype.finalize.call(this)}};var S=g();S.sha256=S,S.sha224=g(!0),S.sha256.hmac=y(),S.sha224.hmac=y(!0),u?e.exports=S:(r.sha256=S.sha256,r.sha224=S.sha224)})()})(Fg);var Kx=Fg.exports,Yx=function(t,n){if(n=n.split(":")[0],t=+t,!t)return!1;switch(n){case"http":case"ws":return t!==80;case"https":case"wss":return t!==443;case"ftp":return t!==21;case"gopher":return t!==70;case"file":return!1}return t!==0},Kc={},Zx=Object.prototype.hasOwnProperty,Xx;function zh(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return null}}function jh(e){try{return encodeURIComponent(e)}catch{return null}}function qx(e){for(var t=/([^=?#&]+)=?([^&]*)/g,n={},r;r=t.exec(e);){var l=zh(r[1]),s=zh(r[2]);l===null||s===null||l in n||(n[l]=s)}return n}function Qx(e,t){t=t||"";var n=[],r,l;typeof t!="string"&&(t="?");for(l in e)if(Zx.call(e,l)){if(r=e[l],!r&&(r===null||r===Xx||isNaN(r))&&(r=""),l=jh(l),r=jh(r),l===null||r===null)continue;n.push(l+"="+r)}return n.length?t+n.join("&"):""}Kc.stringify=Qx;Kc.parse=qx;var Pg=Yx,wa=Kc,Jx=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,Bg=/[\n\r\t]/g,eE=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,Wg=/:\d+$/,tE=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,nE=/^[a-zA-Z]:/;function Yc(e){return(e||"").toString().replace(Jx,"")}var zl=[["#","hash"],["?","query"],function(t,n){return on(n.protocol)?t.replace(/\\/g,"/"):t},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],Gh={hash:1,query:1};function Hg(e){var t;typeof window<"u"?t=window:typeof er<"u"?t=er:typeof self<"u"?t=self:t={};var n=t.location||{};e=e||n;var r={},l=typeof e,s;if(e.protocol==="blob:")r=new un(unescape(e.pathname),{});else if(l==="string"){r=new un(e,{});for(s in Gh)delete r[s]}else if(l==="object"){for(s in e)s in Gh||(r[s]=e[s]);r.slashes===void 0&&(r.slashes=eE.test(e.href))}return r}function on(e){return e==="file:"||e==="ftp:"||e==="http:"||e==="https:"||e==="ws:"||e==="wss:"}function Ug(e,t){e=Yc(e),e=e.replace(Bg,""),t=t||{};var n=tE.exec(e),r=n[1]?n[1].toLowerCase():"",l=!!n[2],s=!!n[3],u=0,d;return l?s?(d=n[2]+n[3]+n[4],u=n[2].length+n[3].length):(d=n[2]+n[4],u=n[2].length):s?(d=n[3]+n[4],u=n[3].length):d=n[4],r==="file:"?u>=2&&(d=d.slice(2)):on(r)?d=n[4]:r?l&&(d=d.slice(2)):u>=2&&on(t.protocol)&&(d=n[4]),{protocol:r,slashes:l||on(r),slashesCount:u,rest:d}}function rE(e,t){if(e==="")return t;for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),r=n.length,l=n[r-1],s=!1,u=0;r--;)n[r]==="."?n.splice(r,1):n[r]===".."?(n.splice(r,1),u++):u&&(r===0&&(s=!0),n.splice(r,1),u--);return s&&n.unshift(""),(l==="."||l==="..")&&n.push(""),n.join("/")}function un(e,t,n){if(e=Yc(e),e=e.replace(Bg,""),!(this instanceof un))return new un(e,t,n);var r,l,s,u,d,o,p=zl.slice(),a=typeof t,i=this,c=0;for(a!=="object"&&a!=="string"&&(n=t,t=null),n&&typeof n!="function"&&(n=wa.parse),t=Hg(t),l=Ug(e||"",t),r=!l.protocol&&!l.slashes,i.slashes=l.slashes||r&&t.slashes,i.protocol=l.protocol||t.protocol||"",e=l.rest,(l.protocol==="file:"&&(l.slashesCount!==2||nE.test(e))||!l.slashes&&(l.protocol||l.slashesCount<2||!on(i.protocol)))&&(p[3]=[/(.*)/,"pathname"]);c<p.length;c++){if(u=p[c],typeof u=="function"){e=u(e,i);continue}s=u[0],o=u[1],s!==s?i[o]=e:typeof s=="string"?(d=s==="@"?e.lastIndexOf(s):e.indexOf(s),~d&&(typeof u[2]=="number"?(i[o]=e.slice(0,d),e=e.slice(d+u[2])):(i[o]=e.slice(d),e=e.slice(0,d)))):(d=s.exec(e))&&(i[o]=d[1],e=e.slice(0,d.index)),i[o]=i[o]||r&&u[3]&&t[o]||"",u[4]&&(i[o]=i[o].toLowerCase())}n&&(i.query=n(i.query)),r&&t.slashes&&i.pathname.charAt(0)!=="/"&&(i.pathname!==""||t.pathname!=="")&&(i.pathname=rE(i.pathname,t.pathname)),i.pathname.charAt(0)!=="/"&&on(i.protocol)&&(i.pathname="/"+i.pathname),Pg(i.port,i.protocol)||(i.host=i.hostname,i.port=""),i.username=i.password="",i.auth&&(d=i.auth.indexOf(":"),~d?(i.username=i.auth.slice(0,d),i.username=encodeURIComponent(decodeURIComponent(i.username)),i.password=i.auth.slice(d+1),i.password=encodeURIComponent(decodeURIComponent(i.password))):i.username=encodeURIComponent(decodeURIComponent(i.auth)),i.auth=i.password?i.username+":"+i.password:i.username),i.origin=i.protocol!=="file:"&&on(i.protocol)&&i.host?i.protocol+"//"+i.host:"null",i.href=i.toString()}function iE(e,t,n){var r=this;switch(e){case"query":typeof t=="string"&&t.length&&(t=(n||wa.parse)(t)),r[e]=t;break;case"port":r[e]=t,Pg(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,Wg.test(t)?(t=t.split(":"),r.port=t.pop(),r.hostname=t.join(":")):(r.hostname=t,r.port="");break;case"protocol":r.protocol=t.toLowerCase(),r.slashes=!n;break;case"pathname":case"hash":if(t){var l=e==="pathname"?"/":"#";r[e]=t.charAt(0)!==l?l+t:t}else r[e]=t;break;case"username":case"password":r[e]=encodeURIComponent(t);break;case"auth":var s=t.indexOf(":");~s?(r.username=t.slice(0,s),r.username=encodeURIComponent(decodeURIComponent(r.username)),r.password=t.slice(s+1),r.password=encodeURIComponent(decodeURIComponent(r.password))):r.username=encodeURIComponent(decodeURIComponent(t))}for(var u=0;u<zl.length;u++){var d=zl[u];d[4]&&(r[d[1]]=r[d[1]].toLowerCase())}return r.auth=r.password?r.username+":"+r.password:r.username,r.origin=r.protocol!=="file:"&&on(r.protocol)&&r.host?r.protocol+"//"+r.host:"null",r.href=r.toString(),r}function sE(e){(!e||typeof e!="function")&&(e=wa.stringify);var t,n=this,r=n.host,l=n.protocol;l&&l.charAt(l.length-1)!==":"&&(l+=":");var s=l+(n.protocol&&n.slashes||on(n.protocol)?"//":"");return n.username?(s+=n.username,n.password&&(s+=":"+n.password),s+="@"):n.password?(s+=":"+n.password,s+="@"):n.protocol!=="file:"&&on(n.protocol)&&!r&&n.pathname!=="/"&&(s+="@"),(r[r.length-1]===":"||Wg.test(n.hostname)&&!n.port)&&(r+=":"),s+=r+n.pathname,t=typeof n.query=="object"?e(n.query):n.query,t&&(s+=t.charAt(0)!=="?"?"?"+t:t),n.hash&&(s+=n.hash),s}un.prototype={set:iE,toString:sE};un.extractProtocol=Ug;un.location=Hg;un.trimLeft=Yc;un.qs=wa;var oE=un;const aE=Tr(oE);class _a extends Ht{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.name="VirusTotal",this.baseURL="https://www.virustotal.com",this.type="domain"}}class lE extends _a{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/gui/domain/${t}/detection`}}class cE extends _a{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/gui/ip-address/${t}/details`}}class uE extends _a{constructor(){super(),this.type="url"}href(t){const n=Kx.sha256(this.normalizeURL(t));return this.baseURL+`/gui/url/${n}/details`}normalizeURL(t){return new aE(t).pathname==="/"&&!t.endsWith("/")?`${t}/`:t}}class hE extends _a{constructor(){super(),this.type="hash"}href(t){return this.baseURL+`/gui/file/${t}/details`}}const fE=[new Tx,new Lx,new Mx,new Ix,new Ox,new Nx,new Dx,new Fx,new Px,new Ng,new Bx,new Wx,new Hx,new Ux,new Vx,new zx,new lE,new hE,new cE,new uE],dE=Ce({name:"LinksItem",components:{LinkComponent:Rx},props:{data:{type:String,required:!0},type:{type:String,required:!0}},setup(e){return{selectedLinks:Le(()=>fE.filter(n=>n.type===e.type))}}}),pE={class:"tags are-medium"};function gE(e,t,n,r,l,s){const u=re("LinkComponent");return Z(),se("div",pE,[(Z(!0),se(Ne,null,Nt(e.selectedLinks,d=>(Z(),Se(u,{data:e.data,link:d,key:d.name},null,8,["data","link"]))),128))])}const mE=Re(dE,[["render",gE]]),vE=Ce({name:"MessageItem",props:{message:{type:Object,required:!0},disposable:{type:Boolean,default:!1}},emits:["dispose"],setup(e,t){return{dispose:()=>{t.emit("dispose")}}}}),yE={class:"notification is-info is-light"};function bE(e,t,n,r,l,s){return Z(),se("div",yE,[e.disposable?(Z(),se("button",{key:0,class:"delete",onClick:t[0]||(t[0]=(...u)=>e.dispose&&e.dispose(...u))})):me("",!0),D("p",null,$e(e.message.message),1)])}const $a=Re(vE,[["render",bE]]),wE=Ce({name:"ArtifactDetail",props:{artifact:{type:Object,required:!0}},components:{AS:D2,DnsRecords:G2,Links:mE,ReverseDnsNames:ex,Tags:As,ActionButtons:Ig,WhoisRecord:Cx,CPEs:W2,Ports:X2,ErrorMessage:bt,Message:$a,Vulnerabilities:ix},emits:["refresh","delete"],setup(e,t){const n=ze(),r=ze(),l=ze(),s=ze(),u=g=>{l.value=g},d=()=>{l.value=void 0},o=()=>{t.emit("delete")},p=g=>{g.queued?s.value=g:t.emit("refresh")},a=()=>{s.value=void 0},i=Le(()=>{if(e.artifact.dataType==="domain")return`https://urlscan.io/liveshot/?url=${`http://${e.artifact.data}`}`;if(e.artifact.dataType==="url")return`https://urlscan.io/liveshot/?url=${e.artifact.data}`}),c=g=>{if(g)return`https://maps.google.co.jp/maps?output=embed&q=${g.lat},${g.long}&z=3`},h=hC(),f=Ss();return lt(async()=>{if(e.artifact.dataType==="ip"){let g;if(e.artifact.geolocation)g=Lg(e.artifact.geolocation.countryCode);else{const m=await h.perform(e.artifact.data);g=iA(m),r.value=m.countryCode}n.value=c(g)}}),{countryCode:r,getAlertsTask:f,googleMapSrc:n,truncate:Cs,urlscanLiveshotSrc:i,onDelete:o,onSetError:u,error:l,onDisposeError:d,message:s,onDisposeMessage:a,onSetMessage:p}}}),Rt=e=>(qo("data-v-7f05c3bb"),e=e(),Qo(),e),_E={class:"block"},$E={class:"is-size-2"},SE={class:"is-clearfix"},CE={class:"columns"},AE={key:0,class:"column is-half"},kE={key:0},xE={class:"is-size-4"},EE={class:"has-text-grey"},RE=["src"],TE={key:1},LE=Rt(()=>D("h4",{class:"is-size-4"},"Live screenshot",-1)),ME=Rt(()=>D("p",{class:"help"},"Hover to expand",-1)),OE=["src"],IE={class:"column"},NE=Rt(()=>D("h4",{class:"is-size-4"},"Information",-1)),DE={class:"table is-fullwidth is-completely-borderless"},FE=Rt(()=>D("th",null,"Data",-1)),PE=Rt(()=>D("th",null,"Data type",-1)),BE=Rt(()=>D("th",null,"Source",-1)),WE=Rt(()=>D("th",null,"Query",-1)),HE={key:0},UE=Rt(()=>D("th",null,"Tags",-1)),VE={class:"help"},zE={class:"block"},jE={class:"block"},GE={key:0,class:"block"},KE=Rt(()=>D("h4",{class:"is-size-4 mb-2"},"AS",-1)),YE={key:1,class:"block"},ZE=Rt(()=>D("h4",{class:"is-size-4 mb-2"},"Reverse DNS",-1)),XE={key:2,class:"block"},qE=Rt(()=>D("h4",{class:"is-size-4 mb-2"},"DNS records",-1)),QE={key:3,class:"block"},JE=Rt(()=>D("h4",{class:"is-size-4 mb-2"},"CPEs",-1)),eR={key:4,class:"block"},tR=Rt(()=>D("h4",{class:"is-size-4 mb-2"},"Vulnerabilities",-1)),nR={key:5,class:"block"},rR=Rt(()=>D("h4",{class:"is-size-4 mb-2"},"Ports",-1)),iR={key:6,class:"block"},sR=Rt(()=>D("h4",{class:"is-size-4 mb-2"},"Whois record",-1));function oR(e,t,n,r,l,s){var y;const u=re("ErrorMessage"),d=re("Message"),o=re("ActionButtons"),p=re("Tags"),a=re("Links"),i=re("AS"),c=re("ReverseDnsNames"),h=re("DnsRecords"),f=re("CPEs"),g=re("Vulnerabilities"),m=re("Ports"),v=re("WhoisRecord");return Z(),se(Ne,null,[e.error?(Z(),Se(u,{key:0,class:"block",error:e.error,disposable:!0,onDispose:e.onDisposeError},null,8,["error","onDispose"])):me("",!0),e.message?(Z(),Se(d,{key:1,class:"block",message:e.message,disposable:!0,onDispose:e.onDisposeMessage},null,8,["message","onDispose"])):me("",!0),D("div",_E,[D("h2",$E,$e(e.artifact.id),1),D("p",SE,[oe(o,{artifact:e.artifact,onDelete:e.onDelete,onSetError:e.onSetError,onSetMessage:e.onSetMessage},null,8,["artifact","onDelete","onSetError","onSetMessage"])])]),D("div",CE,[e.googleMapSrc||e.urlscanLiveshotSrc?(Z(),se("div",AE,[e.googleMapSrc?(Z(),se("div",kE,[D("h4",xE,[et(" Geolocation "),D("span",EE,$e(e.countryCode||((y=e.artifact.geolocation)==null?void 0:y.countryCode)),1)]),D("iframe",{class:"mb-4",src:e.googleMapSrc,width:"100%",height:"240px"},null,8,RE)])):me("",!0),e.urlscanLiveshotSrc?(Z(),se("div",TE,[LE,ME,D("img",{src:e.urlscanLiveshotSrc,class:"liveshot",alt:"liveshot"},null,8,OE)])):me("",!0)])):me("",!0),D("div",IE,[NE,D("table",DE,[D("tr",null,[FE,D("td",null,$e(e.truncate(e.artifact.data,64)),1)]),D("tr",null,[PE,D("td",null,$e(e.artifact.dataType),1)]),D("tr",null,[BE,D("td",null,$e(e.artifact.source),1)]),D("tr",null,[WE,D("td",null,$e(e.truncate(e.artifact.query||"N/A",64)),1)]),e.artifact.tags.length>0?(Z(),se("tr",HE,[UE,D("td",null,[oe(p,{tags:e.artifact.tags,"navigate-to":"Artifacts"},null,8,["tags"]),et("/td>")])])):me("",!0)]),D("p",VE,"Created at: "+$e(e.artifact.createdAt),1)])]),D("div",zE,[oe(a,{data:e.artifact.data,type:e.artifact.dataType},null,8,["data","type"])]),D("div",jE,[e.artifact.autonomousSystem?(Z(),se("div",GE,[KE,oe(i,{autonomousSystem:e.artifact.autonomousSystem},null,8,["autonomousSystem"])])):me("",!0),e.artifact.reverseDnsNames?(Z(),se("div",YE,[ZE,oe(c,{reverseDnsNames:e.artifact.reverseDnsNames},null,8,["reverseDnsNames"])])):me("",!0),e.artifact.dnsRecords?(Z(),se("div",XE,[qE,oe(h,{dnsRecords:e.artifact.dnsRecords},null,8,["dnsRecords"])])):me("",!0),e.artifact.cpes?(Z(),se("div",QE,[JE,oe(f,{cpes:e.artifact.cpes},null,8,["cpes"])])):me("",!0),e.artifact.vulnerabilities?(Z(),se("div",eR,[tR,oe(g,{vulnerabilities:e.artifact.vulnerabilities},null,8,["vulnerabilities"])])):me("",!0),e.artifact.ports?(Z(),se("div",nR,[rR,oe(m,{ports:e.artifact.ports},null,8,["ports"])])):me("",!0),e.artifact.whoisRecord?(Z(),se("div",iR,[sR,oe(v,{whoisRecord:e.artifact.whoisRecord},null,8,["whoisRecord"])])):me("",!0)])],64)}const aR=Re(wE,[["render",oR],["__scopeId","data-v-7f05c3bb"]]),lR=Ce({name:"ArtifactDetailWrapper",components:{Artifact:aR,Loading:Rn,ErrorMessage:bt},props:{id:{type:Number,required:!0}},setup(e){const t=lC(),n=pi(),r=async()=>{await t.perform(e.id)},l=async()=>{await r()},s=async()=>{n.push("/")};return lt(async()=>{await r()}),st(e,async()=>{await r()}),{getArtifactTask:t,onRefresh:l,onDelete:s}}});function cR(e,t,n,r,l,s){var p,a;const u=re("Loading"),d=re("ErrorMessage"),o=re("Artifact");return Z(),se(Ne,null,[e.getArtifactTask.isRunning?(Z(),Se(u,{key:0})):me("",!0),e.getArtifactTask.isError?(Z(),Se(d,{key:1,error:(p=e.getArtifactTask.last)==null?void 0:p.error},null,8,["error"])):me("",!0),(a=e.getArtifactTask.last)!=null&&a.value?(Z(),Se(o,{key:2,artifact:e.getArtifactTask.last.value,onRefresh:e.onRefresh,onDelete:e.onDelete},null,8,["artifact","onRefresh","onDelete"])):me("",!0)],64)}const uR=Re(lR,[["render",cR]]),hR=Ce({name:"ArtifactView",components:{Artifact:uR},props:{id:{type:String,required:!0}},setup(e){const t=()=>{En(`Artifact:${e.id} - Mihari`)};lt(()=>{t()}),st(()=>e.id,()=>{t()})}});function fR(e,t,n,r,l,s){const u=re("Artifact",!0);return Z(),Se(u,{id:parseInt(e.id)},null,8,["id"])}const dR=Re(hR,[["render",fR]]),pR=Ce({name:"ArtifactsItem",props:{artifact:{type:Object,required:!0}},components:{ErrorMessage:bt,ActionButtons:Ig,Message:$a,Tags:As},emits:["delete"],setup(e,t){const n=ze(),r=ze();return{onSetError:p=>{n.value=p},onDisposeError:()=>{n.value=void 0},onDelete:()=>{t.emit("delete")},error:n,truncate:Cs,message:r,onSetMessage:p=>{p.queued&&(r.value=p)},onDisposeMessage:()=>{r.value=void 0}}}}),gR={class:"box"},mR={class:"block"},vR={class:"table is-fullwidth is-completely-borderless"},yR=D("th",null,"Data",-1),bR=D("th",null,"Data Type",-1),wR=D("th",null,"Source",-1),_R=D("th",null,"Query",-1),$R={key:0},SR=D("th",null,"Tags",-1),CR=D("p",{class:"block is-clearfix"},null,-1),AR={class:"help"};function kR(e,t,n,r,l,s){const u=re("ErrorMessage"),d=re("Message"),o=re("ActionButtons"),p=re("router-link"),a=re("Tags");return Z(),se("div",gR,[e.error?(Z(),Se(u,{key:0,class:"block",error:e.error,disposable:!0,onDispose:e.onDisposeError},null,8,["error","onDispose"])):me("",!0),e.message?(Z(),Se(d,{key:1,class:"block",message:e.message,disposable:!0,onDispose:e.onDisposeMessage},null,8,["message","onDispose"])):me("",!0),D("div",mR,[D("p",null,[oe(o,{artifact:e.artifact,onDelete:e.onDelete,onSetError:e.onSetError,onSetMessage:e.onSetMessage},null,8,["artifact","onDelete","onSetError","onSetMessage"])]),oe(p,{class:"is-size-4",to:{name:"Artifact",params:{id:e.artifact.id}}},{default:Je(()=>[et($e(e.artifact.id),1)]),_:1},8,["to"])]),D("table",vR,[D("tr",null,[yR,D("td",null,$e(e.artifact.data),1)]),D("tr",null,[bR,D("td",null,$e(e.artifact.dataType),1)]),D("tr",null,[wR,D("td",null,$e(e.artifact.source),1)]),D("tr",null,[_R,D("td",null,$e(e.truncate(e.artifact.query||"N/A",64)),1)]),e.artifact.tags.length>0?(Z(),se("tr",$R,[SR,D("td",null,[oe(a,{tags:e.artifact.tags,"navigate-to":"Artifacts"},null,8,["tags"])])])):me("",!0)]),CR,D("p",AR,"Created at: "+$e(e.artifact.createdAt),1)])}const xR=Re(pR,[["render",kR]]),ER=Ce({name:"ArtifactsItem",props:{artifacts:{type:Object,required:!0}},components:{Artifact:xR,Pagination:jc},emits:["update-page","refresh"],setup(e,t){const n=Le(()=>e.artifacts.results.length>0);return{onUpdatePage:s=>{t.emit("update-page",s)},onDelete:()=>{t.emit("refresh")},hasArtifacts:n}}}),RR={key:0},TR={class:"help"},LR={key:1},MR=D("div",{class:"notification is-warning is-light"},"There is no artifact to show",-1),OR=[MR];function IR(e,t,n,r,l,s){const u=re("Artifact"),d=re("Pagination");return e.hasArtifacts?(Z(),se("div",RR,[(Z(!0),se(Ne,null,Nt(e.artifacts.results,o=>(Z(),Se(u,{artifact:o,key:o.id,onDelete:e.onDelete},null,8,["artifact","onDelete"]))),128)),oe(d,{total:e.artifacts.total,currentPage:e.artifacts.currentPage,pageSize:e.artifacts.pageSize,onUpdatePage:e.onUpdatePage},null,8,["total","currentPage","pageSize","onUpdatePage"]),D("p",TR," ("+$e(e.artifacts.total)+" results in total, "+$e(e.artifacts.results.length)+" shown) ",1)])):(Z(),se("div",LR,OR))}const NR=Re(ER,[["render",IR]]),DR=Ce({name:"ArtifactsWrapper",components:{Artifacts:NR,Loading:Rn,ErrorMessage:bt},setup(){const e=ii("page","1"),t=ii("q",""),n=ze(!1),r=zc(),l=async()=>{const p={q:t.value,page:parseInt(e.value)};return await r.perform(p)},s=p=>{console.log(p),e.value=p.toString()},u=async()=>{e.value="1",await l()},d=u,o=()=>{n.value=!n.value};return lt(async()=>{await l()}),st(e,async()=>{await l()}),st(t,async()=>{window.scrollTo({top:0,behavior:"smooth"})}),{getArtifactsTask:r,page:e,q:t,search:u,showHelp:n,toggleShowHelp:o,onUpdatePage:s,onRefresh:d}}}),FR={class:"block"},PR={class:"field has-addons"},BR={class:"control is-expanded"},WR={class:"control"},HR={class:"icon is-small"},UR=D("span",null,"Search",-1),VR={class:"control"},zR={class:"icon is-small"},jR=D("span",null,"Help",-1),GR={key:0,class:"content mt-3"},KR=sa('<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),YR=[KR],ZR={key:0,class:"block"};function XR(e,t,n,r,l,s){var a,i;const u=re("font-awesome-icon"),d=re("Loading"),o=re("ErrorMessage"),p=re("Artifacts");return Z(),se(Ne,null,[D("div",FR,[D("div",PR,[D("p",BR,[Jo(D("input",{class:"input",type:"text","onUpdate:modelValue":t[0]||(t[0]=c=>e.q=c)},null,512),[[_r,e.q]])]),D("p",WR,[D("a",{class:"button is-primary",onClick:t[1]||(t[1]=(...c)=>e.search&&e.search(...c))},[D("span",HR,[oe(u,{icon:"search"})]),UR])]),D("p",VR,[D("a",{class:"button is-info",onClick:t[2]||(t[2]=(...c)=>e.toggleShowHelp&&e.toggleShowHelp(...c))},[D("span",zR,[oe(u,{icon:"question"})]),jR])])]),e.showHelp?(Z(),se("div",GR,YR)):me("",!0)]),e.getArtifactsTask.performCount>0?(Z(),se("div",ZR,[e.getArtifactsTask.isRunning?(Z(),Se(d,{key:0})):me("",!0),e.getArtifactsTask.isError?(Z(),Se(o,{key:1,error:(a=e.getArtifactsTask.last)==null?void 0:a.error},null,8,["error"])):me("",!0),(i=e.getArtifactsTask.last)!=null&&i.value?(Z(),Se(p,{key:2,artifacts:e.getArtifactsTask.last.value,onUpdatePage:e.onUpdatePage,onRefresh:e.onRefresh},null,8,["artifacts","onUpdatePage","onRefresh"])):me("",!0)])):me("",!0)],64)}const qR=Re(DR,[["render",XR]]),QR=Ce({name:"ArtifactsView",components:{Artifacts:qR},setup(){const e=()=>{En("Artifacts - Mihari")};lt(()=>{e()})}});function JR(e,t,n,r,l,s){const u=re("Artifacts",!0);return Z(),Se(u)}const eT=Re(QR,[["render",JR]]),tT=Ce({name:"ConfigsItem",props:{configs:{type:Object,required:!0}}}),nT={class:"box"},rT={class:"table-container"},iT={class:"table is-fullwidth"},sT=D("thead",null,[D("tr",null,[D("th",null,"Name"),D("th",null,"Type"),D("th",null,"Configured?"),D("th",null,"Items")])],-1),oT={key:0,class:"button is-success is-small ml-1"},aT={class:"icon is-small"},lT=D("span",null,"Yes",-1),cT={key:1,class:"button is-warning is-small ml-1"},uT={class:"icon is-small"},hT=D("span",null,"No",-1),fT={class:"field is-grouped is-grouped-multiline"},dT={class:"tags has-addons"},pT={class:"tag is-dark"};function gT(e,t,n,r,l,s){const u=re("font-awesome-icon");return Z(),se("div",nT,[D("div",rT,[D("table",iT,[sT,D("tbody",null,[(Z(!0),se(Ne,null,Nt(e.configs.results,d=>(Z(),se("tr",{key:d.name},[D("td",null,$e(d.name),1),D("td",null,$e(d.type),1),D("td",null,[d.configured?(Z(),se("button",oT,[D("span",aT,[oe(u,{icon:"check"})]),lT])):(Z(),se("button",cT,[D("span",uT,[oe(u,{icon:"exclamation"})]),hT]))]),D("td",null,[D("div",fT,[(Z(!0),se(Ne,null,Nt(d.items,(o,p)=>(Z(),se("div",{class:"control",key:p},[D("div",dT,[D("span",pT,$e(o.key),1),D("span",{class:ci(["tag",{"is-success":o.value,"is-warning":!o.value}])},$e(o.value||"N/A"),3)])]))),128))])])]))),128))])])])])}const mT=Re(tT,[["render",gT]]),vT=Ce({name:"ConfigsWrapper",components:{Configs:mT,Loading:Rn,ErrorMessage:bt},setup(){const e=uC();return lt(async()=>{await e.perform()}),{getConfigsTask:e}}});function yT(e,t,n,r,l,s){var p,a;const u=re("Loading"),d=re("ErrorMessage"),o=re("Configs");return Z(),se(Ne,null,[e.getConfigsTask.isRunning?(Z(),Se(u,{key:0})):me("",!0),e.getConfigsTask.isError?(Z(),Se(d,{key:1,error:(p=e.getConfigsTask.last)==null?void 0:p.error},null,8,["error"])):me("",!0),(a=e.getConfigsTask.last)!=null&&a.value?(Z(),Se(o,{key:2,configs:e.getConfigsTask.last.value},null,8,["configs"])):me("",!0)],64)}const bT=Re(vT,[["render",yT]]),wT=Ce({name:"ConfigView",components:{Configs:bT},setup(){En("Configuration - Mihari")}});function _T(e,t,n,r,l,s){const u=re("Configs");return Z(),Se(u)}const $T=Re(wT,[["render",_T]]);var Vg={exports:{}};(function(e,t){(function(){var n="ace",r=function(){return this}();!r&&typeof window<"u"&&(r=window);var l=function(a,i,c){if(typeof a!="string"){l.original?l.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(c=i),l.modules[a]||(l.payloads[a]=c,l.modules[a]=null)};l.modules={},l.payloads={};var s=function(a,i,c){if(typeof i=="string"){var h=o(a,i);if(h!=null)return c&&c(),h}else if(Object.prototype.toString.call(i)==="[object Array]"){for(var f=[],g=0,m=i.length;g<m;++g){var v=o(a,i[g]);if(v==null&&u.original)return;f.push(v)}return c&&c.apply(null,f)||!0}},u=function(a,i){var c=s("",a,i);return c==null&&u.original?u.original.apply(this,arguments):c},d=function(a,i){if(i.indexOf("!")!==-1){var c=i.split("!");return d(a,c[0])+"!"+d(a,c[1])}if(i.charAt(0)=="."){var h=a.split("/").slice(0,-1).join("/");for(i=h+"/"+i;i.indexOf(".")!==-1&&f!=i;){var f=i;i=i.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return i},o=function(a,i){i=d(a,i);var c=l.modules[i];if(!c){if(c=l.payloads[i],typeof c=="function"){var h={},f={id:i,uri:"",exports:h,packaged:!0},g=function(v,y){return s(i,v,y)},m=c(g,h,f);h=m||f.exports,l.modules[i]=h,delete l.payloads[i]}c=l.modules[i]=h||c}return c};function p(a){var i=r;a&&(r[a]||(r[a]={}),i=r[a]),(!i.define||!i.define.packaged)&&(l.original=i.define,i.define=l,i.define.packaged=!0),(!i.require||!i.require.packaged)&&(u.original=i.require,i.require=u,i.require.packaged=!0)}p(n)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(n,r,l){function s(u,d,o){Object.defineProperty(u,d,{value:o,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||s(String.prototype,"startsWith",function(u,d){return d=d||0,this.lastIndexOf(u,d)===d}),String.prototype.endsWith||s(String.prototype,"endsWith",function(u,d){var o=this;(d===void 0||d>o.length)&&(d=o.length),d-=u.length;var p=o.indexOf(u,d);return p!==-1&&p===d}),String.prototype.repeat||s(String.prototype,"repeat",function(u){for(var d="",o=this;u>0;)u&1&&(d+=o),(u>>=1)&&(o+=o);return d}),String.prototype.includes||s(String.prototype,"includes",function(u,d){return this.indexOf(u,d)!=-1}),Object.assign||(Object.assign=function(u){if(u==null)throw new TypeError("Cannot convert undefined or null to object");for(var d=Object(u),o=1;o<arguments.length;o++){var p=arguments[o];p!=null&&Object.keys(p).forEach(function(a){d[a]=p[a]})}return d}),Object.values||(Object.values=function(u){return Object.keys(u).map(function(d){return u[d]})}),Array.prototype.find||s(Array.prototype,"find",function(u){for(var d=this.length,o=arguments[1],p=0;p<d;p++){var a=this[p];if(u.call(o,a,p,this))return a}}),Array.prototype.findIndex||s(Array.prototype,"findIndex",function(u){for(var d=this.length,o=arguments[1],p=0;p<d;p++){var a=this[p];if(u.call(o,a,p,this))return p}}),Array.prototype.includes||s(Array.prototype,"includes",function(u,d){return this.indexOf(u,d)!=-1}),Array.prototype.fill||s(Array.prototype,"fill",function(u){for(var d=this,o=d.length>>>0,p=arguments[1],a=p>>0,i=a<0?Math.max(o+a,0):Math.min(a,o),c=arguments[2],h=c===void 0?o:c>>0,f=h<0?Math.max(o+h,0):Math.min(h,o);i<f;)d[i]=u,i++;return d}),Array.of||s(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(n,r,l){n("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(n,r,l){r.deepCopy=function s(u){if(typeof u!="object"||!u)return u;var d;if(Array.isArray(u)){d=[];for(var o=0;o<u.length;o++)d[o]=s(u[o]);return d}if(Object.prototype.toString.call(u)!=="[object Object]")return u;d={};for(var o in u)d[o]=s(u[o]);return d}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(n,r,l){r.last=function(d){return d[d.length-1]},r.stringReverse=function(d){return d.split("").reverse().join("")},r.stringRepeat=function(d,o){for(var p="";o>0;)o&1&&(p+=d),(o>>=1)&&(d+=d);return p};var s=/^\s\s*/,u=/\s\s*$/;r.stringTrimLeft=function(d){return d.replace(s,"")},r.stringTrimRight=function(d){return d.replace(u,"")},r.copyObject=function(d){var o={};for(var p in d)o[p]=d[p];return o},r.copyArray=function(d){for(var o=[],p=0,a=d.length;p<a;p++)d[p]&&typeof d[p]=="object"?o[p]=this.copyObject(d[p]):o[p]=d[p];return o},r.deepCopy=n("./deep_copy").deepCopy,r.arrayToMap=function(d){for(var o={},p=0;p<d.length;p++)o[d[p]]=1;return o},r.createMap=function(d){var o=Object.create(null);for(var p in d)o[p]=d[p];return o},r.arrayRemove=function(d,o){for(var p=0;p<=d.length;p++)o===d[p]&&d.splice(p,1)},r.escapeRegExp=function(d){return d.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},r.escapeHTML=function(d){return(""+d).replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},r.getMatchOffsets=function(d,o){var p=[];return d.replace(o,function(a){p.push({offset:arguments[arguments.length-2],length:a.length})}),p},r.deferredCall=function(d){var o=null,p=function(){o=null,d()},a=function(i){return a.cancel(),o=setTimeout(p,i||0),a};return a.schedule=a,a.call=function(){return this.cancel(),d(),a},a.cancel=function(){return clearTimeout(o),o=null,a},a.isPending=function(){return o},a},r.delayedCall=function(d,o){var p=null,a=function(){p=null,d()},i=function(c){p==null&&(p=setTimeout(a,c||o))};return i.delay=function(c){p&&clearTimeout(p),p=setTimeout(a,c||o)},i.schedule=i,i.call=function(){this.cancel(),d()},i.cancel=function(){p&&clearTimeout(p),p=null},i.isPending=function(){return p},i},r.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},r.skipEmptyMatch=function(d,o,p){return p&&d.codePointAt(o)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(n,r,l){r.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},r.getOS=function(){return r.isMac?r.OS.MAC:r.isLinux?r.OS.LINUX:r.OS.WINDOWS};var s=typeof navigator=="object"?navigator:{},u=(/mac|win|linux/i.exec(s.platform)||["other"])[0].toLowerCase(),d=s.userAgent||"",o=s.appName||"";r.isWin=u=="win",r.isMac=u=="mac",r.isLinux=u=="linux",r.isIE=o=="Microsoft Internet Explorer"||o.indexOf("MSAppHost")>=0?parseFloat((d.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((d.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),r.isOldIE=r.isIE&&r.isIE<9,r.isGecko=r.isMozilla=d.match(/ Gecko\/\d+/),r.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",r.isWebKit=parseFloat(d.split("WebKit/")[1])||void 0,r.isChrome=parseFloat(d.split(" Chrome/")[1])||void 0,r.isSafari=parseFloat(d.split(" Safari/")[1])&&!r.isChrome||void 0,r.isEdge=parseFloat(d.split(" Edge/")[1])||void 0,r.isAIR=d.indexOf("AdobeAIR")>=0,r.isAndroid=d.indexOf("Android")>=0,r.isChromeOS=d.indexOf(" CrOS ")>=0,r.isIOS=/iPad|iPhone|iPod/.test(d)&&!window.MSStream,r.isIOS&&(r.isMac=!0),r.isMobile=r.isIOS||r.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(n,r,l){var s=n("./useragent"),u="http://www.w3.org/1999/xhtml";r.buildDom=function c(h,f,g){if(typeof h=="string"&&h){var m=document.createTextNode(h);return f&&f.appendChild(m),m}if(!Array.isArray(h))return h&&h.appendChild&&f&&f.appendChild(h),h;if(typeof h[0]!="string"||!h[0]){for(var v=[],y=0;y<h.length;y++){var k=c(h[y],f,g);k&&v.push(k)}return v}var C=document.createElement(h[0]),S=h[1],b=1;S&&typeof S=="object"&&!Array.isArray(S)&&(b=2);for(var y=b;y<h.length;y++)c(h[y],C,g);return b==2&&Object.keys(S).forEach(function(E){var L=S[E];E==="class"?C.className=Array.isArray(L)?L.join(" "):L:typeof L=="function"||E=="value"||E[0]=="$"?C[E]=L:E==="ref"?g&&(g[L]=C):E==="style"?typeof L=="string"&&(C.style.cssText=L):L!=null&&C.setAttribute(E,L)}),f&&f.appendChild(C),C},r.getDocumentHead=function(c){return c||(c=document),c.head||c.getElementsByTagName("head")[0]||c.documentElement},r.createElement=function(c,h){return document.createElementNS?document.createElementNS(h||u,c):document.createElement(c)},r.removeChildren=function(c){c.innerHTML=""},r.createTextNode=function(c,h){var f=h?h.ownerDocument:document;return f.createTextNode(c)},r.createFragment=function(c){var h=c?c.ownerDocument:document;return h.createDocumentFragment()},r.hasCssClass=function(c,h){var f=(c.className+"").split(/\s+/g);return f.indexOf(h)!==-1},r.addCssClass=function(c,h){r.hasCssClass(c,h)||(c.className+=" "+h)},r.removeCssClass=function(c,h){for(var f=c.className.split(/\s+/g);;){var g=f.indexOf(h);if(g==-1)break;f.splice(g,1)}c.className=f.join(" ")},r.toggleCssClass=function(c,h){for(var f=c.className.split(/\s+/g),g=!0;;){var m=f.indexOf(h);if(m==-1)break;g=!1,f.splice(m,1)}return g&&f.push(h),c.className=f.join(" "),g},r.setCssClass=function(c,h,f){f?r.addCssClass(c,h):r.removeCssClass(c,h)},r.hasCssString=function(c,h){var f=0,g;if(h=h||document,g=h.querySelectorAll("style")){for(;f<g.length;)if(g[f++].id===c)return!0}},r.removeElementById=function(c,h){h=h||document,h.getElementById(c)&&h.getElementById(c).remove()};var d,o=[];r.useStrictCSP=function(c){d=c,c==!1?p():o||(o=[])};function p(){var c=o;o=null,c&&c.forEach(function(h){a(h[0],h[1])})}function a(c,h,f){if(!(typeof document>"u")){if(o){if(f)p();else if(f===!1)return o.push([c,h])}if(!d){var g=f;!f||!f.getRootNode?g=document:(g=f.getRootNode(),(!g||g==f)&&(g=document));var m=g.ownerDocument||g;if(h&&r.hasCssString(h,g))return null;h&&(c+=`
810
+ /*# sourceURL=ace/css/`+h+" */");var v=r.createElement("style");v.appendChild(m.createTextNode(c)),h&&(v.id=h),g==m&&(g=r.getDocumentHead(m)),g.insertBefore(v,g.firstChild)}}}if(r.importCssString=a,r.importCssStylsheet=function(c,h){r.buildDom(["link",{rel:"stylesheet",href:c}],r.getDocumentHead(h))},r.scrollbarWidth=function(c){var h=r.createElement("ace_inner");h.style.width="100%",h.style.minWidth="0px",h.style.height="200px",h.style.display="block";var f=r.createElement("ace_outer"),g=f.style;g.position="absolute",g.left="-10000px",g.overflow="hidden",g.width="200px",g.minWidth="0px",g.height="150px",g.display="block",f.appendChild(h);var m=c&&c.documentElement||document&&document.documentElement;if(!m)return 0;m.appendChild(f);var v=h.offsetWidth;g.overflow="scroll";var y=h.offsetWidth;return v===y&&(y=f.clientWidth),m.removeChild(f),v-y},r.computedStyle=function(c,h){return window.getComputedStyle(c,"")||{}},r.setStyle=function(c,h,f){c[h]!==f&&(c[h]=f)},r.HAS_CSS_ANIMATION=!1,r.HAS_CSS_TRANSFORMS=!1,r.HI_DPI=s.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,s.isChromeOS&&(r.HI_DPI=!1),typeof document<"u"){var i=document.createElement("div");r.HI_DPI&&i.style.transform!==void 0&&(r.HAS_CSS_TRANSFORMS=!0),!s.isEdge&&typeof i.style.animationName<"u"&&(r.HAS_CSS_ANIMATION=!0),i=null}r.HAS_CSS_TRANSFORMS?r.translate=function(c,h,f){c.style.transform="translate("+Math.round(h)+"px, "+Math.round(f)+"px)"}:r.translate=function(c,h,f){c.style.top=Math.round(f)+"px",c.style.left=Math.round(h)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(n,r,l){/*
811
+ * based on code from:
812
+ *
813
+ * @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
814
+ * Available via the MIT or new BSD license.
815
+ * see: http://github.com/jrburke/requirejs for details
816
+ */var s=n("./dom");r.get=function(u,d){var o=new XMLHttpRequest;o.open("GET",u,!0),o.onreadystatechange=function(){o.readyState===4&&d(o.responseText)},o.send(null)},r.loadScript=function(u,d){var o=s.getDocumentHead(),p=document.createElement("script");p.src=u,o.appendChild(p),p.onload=p.onreadystatechange=function(a,i){(i||!p.readyState||p.readyState=="loaded"||p.readyState=="complete")&&(p=p.onload=p.onreadystatechange=null,i||d())}},r.qualifyURL=function(u){var d=document.createElement("a");return d.href=u,d.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(n,r,l){r.inherits=function(s,u){s.super_=u,s.prototype=Object.create(u.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}})},r.mixin=function(s,u){for(var d in u)s[d]=u[d];return s},r.implement=function(s,u){r.mixin(s,u)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(n,r,l){var s={},u=function(){this.propagationStopped=!0},d=function(){this.defaultPrevented=!0};s._emit=s._dispatchEvent=function(o,p){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var a=this._eventRegistry[o]||[],i=this._defaultHandlers[o];if(!(!a.length&&!i)){(typeof p!="object"||!p)&&(p={}),p.type||(p.type=o),p.stopPropagation||(p.stopPropagation=u),p.preventDefault||(p.preventDefault=d),a=a.slice();for(var c=0;c<a.length&&(a[c](p,this),!p.propagationStopped);c++);if(i&&!p.defaultPrevented)return i(p,this)}},s._signal=function(o,p){var a=(this._eventRegistry||{})[o];if(a){a=a.slice();for(var i=0;i<a.length;i++)a[i](p,this)}},s.once=function(o,p){var a=this;if(this.on(o,function i(){a.off(o,i),p.apply(null,arguments)}),!p)return new Promise(function(i){p=i})},s.setDefaultHandler=function(o,p){var a=this._defaultHandlers;if(a||(a=this._defaultHandlers={_disabled_:{}}),a[o]){var i=a[o],c=a._disabled_[o];c||(a._disabled_[o]=c=[]),c.push(i);var h=c.indexOf(p);h!=-1&&c.splice(h,1)}a[o]=p},s.removeDefaultHandler=function(o,p){var a=this._defaultHandlers;if(a){var i=a._disabled_[o];if(a[o]==p)i&&this.setDefaultHandler(o,i.pop());else if(i){var c=i.indexOf(p);c!=-1&&i.splice(c,1)}}},s.on=s.addEventListener=function(o,p,a){this._eventRegistry=this._eventRegistry||{};var i=this._eventRegistry[o];return i||(i=this._eventRegistry[o]=[]),i.indexOf(p)==-1&&i[a?"unshift":"push"](p),p},s.off=s.removeListener=s.removeEventListener=function(o,p){this._eventRegistry=this._eventRegistry||{};var a=this._eventRegistry[o];if(a){var i=a.indexOf(p);i!==-1&&a.splice(i,1)}},s.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=s}),ace.define("ace/lib/report_error",["require","exports","module"],function(n,r,l){r.reportError=function(u,d){var o=new Error(u);o.data=d,typeof console=="object"&&console.error&&console.error(o),setTimeout(function(){throw o})}}),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/report_error"],function(n,r,l){"no use strict";var s=n("./oop"),u=n("./event_emitter").EventEmitter,d=n("./report_error").reportError,o={setOptions:function(c){Object.keys(c).forEach(function(h){this.setOption(h,c[h])},this)},getOptions:function(c){var h={};if(c)Array.isArray(c)||(h=c,c=Object.keys(h));else{var f=this.$options;c=Object.keys(f).filter(function(g){return!f[g].hidden})}return c.forEach(function(g){h[g]=this.getOption(g)},this),h},setOption:function(c,h){if(this["$"+c]!==h){var f=this.$options[c];if(!f)return p('misspelled option "'+c+'"');if(f.forwardTo)return this[f.forwardTo]&&this[f.forwardTo].setOption(c,h);f.handlesSet||(this["$"+c]=h),f&&f.set&&f.set.call(this,h)}},getOption:function(c){var h=this.$options[c];return h?h.forwardTo?this[h.forwardTo]&&this[h.forwardTo].getOption(c):h&&h.get?h.get.call(this):this["$"+c]:p('misspelled option "'+c+'"')}};function p(c){typeof console<"u"&&console.warn&&console.warn.apply(console,arguments)}var a,i=function(){function c(){this.$defaultOptions={}}return c.prototype.defineOptions=function(h,f,g){return h.$options||(this.$defaultOptions[f]=h.$options={}),Object.keys(g).forEach(function(m){var v=g[m];typeof v=="string"&&(v={forwardTo:v}),v.name||(v.name=m),h.$options[v.name]=v,"initialValue"in v&&(h["$"+v.name]=v.initialValue)}),s.implement(h,o),this},c.prototype.resetOptions=function(h){Object.keys(h.$options).forEach(function(f){var g=h.$options[f];"value"in g&&h.setOption(f,g.value)})},c.prototype.setDefaultValue=function(h,f,g){if(!h){for(h in this.$defaultOptions)if(this.$defaultOptions[h][f])break;if(!this.$defaultOptions[h][f])return!1}var m=this.$defaultOptions[h]||(this.$defaultOptions[h]={});m[f]&&(m.forwardTo?this.setDefaultValue(m.forwardTo,f,g):m[f].value=g)},c.prototype.setDefaultValues=function(h,f){Object.keys(f).forEach(function(g){this.setDefaultValue(h,g,f[g])},this)},c.prototype.setMessages=function(h){a=h},c.prototype.nls=function(h,f){a&&!a[h]&&p("No message found for '"+h+"' in the provided messages, falling back to default English message.");var g=a&&a[h]||h;return f&&(g=g.replace(/\$(\$|[\d]+)/g,function(m,v){return v=="$"?"$":f[v]})),g},c}();i.prototype.warn=p,i.prototype.reportError=d,s.implement(i.prototype,u),r.AppConfig=i}),ace.define("ace/theme/textmate-css",["require","exports","module"],function(n,r,l){l.exports=`.ace-tm .ace_gutter {
817
+ background: #f0f0f0;
818
+ color: #333;
819
+ }
820
+
821
+ .ace-tm .ace_print-margin {
822
+ width: 1px;
823
+ background: #e8e8e8;
824
+ }
825
+
826
+ .ace-tm .ace_fold {
827
+ background-color: #6B72E6;
828
+ }
829
+
830
+ .ace-tm {
831
+ background-color: #FFFFFF;
832
+ color: black;
833
+ }
834
+
835
+ .ace-tm .ace_cursor {
836
+ color: black;
837
+ }
838
+
839
+ .ace-tm .ace_invisible {
840
+ color: rgb(191, 191, 191);
841
+ }
842
+
843
+ .ace-tm .ace_storage,
844
+ .ace-tm .ace_keyword {
845
+ color: blue;
846
+ }
847
+
848
+ .ace-tm .ace_constant {
849
+ color: rgb(197, 6, 11);
850
+ }
851
+
852
+ .ace-tm .ace_constant.ace_buildin {
853
+ color: rgb(88, 72, 246);
854
+ }
855
+
856
+ .ace-tm .ace_constant.ace_language {
857
+ color: rgb(88, 92, 246);
858
+ }
859
+
860
+ .ace-tm .ace_constant.ace_library {
861
+ color: rgb(6, 150, 14);
862
+ }
863
+
864
+ .ace-tm .ace_invalid {
865
+ background-color: rgba(255, 0, 0, 0.1);
866
+ color: red;
867
+ }
868
+
869
+ .ace-tm .ace_support.ace_function {
870
+ color: rgb(60, 76, 114);
871
+ }
872
+
873
+ .ace-tm .ace_support.ace_constant {
874
+ color: rgb(6, 150, 14);
875
+ }
876
+
877
+ .ace-tm .ace_support.ace_type,
878
+ .ace-tm .ace_support.ace_class {
879
+ color: rgb(109, 121, 222);
880
+ }
881
+
882
+ .ace-tm .ace_keyword.ace_operator {
883
+ color: rgb(104, 118, 135);
884
+ }
885
+
886
+ .ace-tm .ace_string {
887
+ color: rgb(3, 106, 7);
888
+ }
889
+
890
+ .ace-tm .ace_comment {
891
+ color: rgb(76, 136, 107);
892
+ }
893
+
894
+ .ace-tm .ace_comment.ace_doc {
895
+ color: rgb(0, 102, 255);
896
+ }
897
+
898
+ .ace-tm .ace_comment.ace_doc.ace_tag {
899
+ color: rgb(128, 159, 191);
900
+ }
901
+
902
+ .ace-tm .ace_constant.ace_numeric {
903
+ color: rgb(0, 0, 205);
904
+ }
905
+
906
+ .ace-tm .ace_variable {
907
+ color: rgb(49, 132, 149);
908
+ }
909
+
910
+ .ace-tm .ace_xml-pe {
911
+ color: rgb(104, 104, 91);
912
+ }
913
+
914
+ .ace-tm .ace_entity.ace_name.ace_function {
915
+ color: #0000A2;
916
+ }
917
+
918
+
919
+ .ace-tm .ace_heading {
920
+ color: rgb(12, 7, 255);
921
+ }
922
+
923
+ .ace-tm .ace_list {
924
+ color:rgb(185, 6, 144);
925
+ }
926
+
927
+ .ace-tm .ace_meta.ace_tag {
928
+ color:rgb(0, 22, 142);
929
+ }
930
+
931
+ .ace-tm .ace_string.ace_regex {
932
+ color: rgb(255, 0, 0)
933
+ }
934
+
935
+ .ace-tm .ace_marker-layer .ace_selection {
936
+ background: rgb(181, 213, 255);
937
+ }
938
+ .ace-tm.ace_multiselect .ace_selection.ace_start {
939
+ box-shadow: 0 0 3px 0px white;
940
+ }
941
+ .ace-tm .ace_marker-layer .ace_step {
942
+ background: rgb(252, 255, 0);
943
+ }
944
+
945
+ .ace-tm .ace_marker-layer .ace_stack {
946
+ background: rgb(164, 229, 101);
947
+ }
948
+
949
+ .ace-tm .ace_marker-layer .ace_bracket {
950
+ margin: -1px 0 0 -1px;
951
+ border: 1px solid rgb(192, 192, 192);
952
+ }
953
+
954
+ .ace-tm .ace_marker-layer .ace_active-line {
955
+ background: rgba(0, 0, 0, 0.07);
956
+ }
957
+
958
+ .ace-tm .ace_gutter-active-line {
959
+ background-color : #dcdcdc;
960
+ }
961
+
962
+ .ace-tm .ace_marker-layer .ace_selected-word {
963
+ background: rgb(250, 250, 255);
964
+ border: 1px solid rgb(200, 200, 250);
965
+ }
966
+
967
+ .ace-tm .ace_indent-guide {
968
+ background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
969
+ }
970
+
971
+ .ace-tm .ace_indent-guide-active {
972
+ background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
973
+ }
974
+ `}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(n,r,l){r.isDark=!1,r.cssClass="ace-tm",r.cssText=n("./textmate-css"),r.$id="ace/theme/textmate";var s=n("../lib/dom");s.importCssString(r.cssText,r.cssClass,!1)}),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/net","ace/lib/dom","ace/lib/app_config","ace/theme/textmate"],function(n,r,l){"no use strict";var s=n("./lib/lang"),u=n("./lib/net"),d=n("./lib/dom"),o=n("./lib/app_config").AppConfig;l.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(h){if(!p.hasOwnProperty(h))throw new Error("Unknown config key: "+h);return p[h]},r.set=function(h,f){if(p.hasOwnProperty(h))p[h]=f;else if(this.setDefaultValue("",h,f)==!1)throw new Error("Unknown config key: "+h);h=="useStrictCSP"&&d.useStrictCSP(f)},r.all=function(){return s.copyObject(p)},r.$modes={},r.moduleUrl=function(h,f){if(p.$moduleUrls[h])return p.$moduleUrls[h];var g=h.split("/");f=f||g[g.length-2]||"";var m=f=="snippets"?"/":"-",v=g[g.length-1];if(f=="worker"&&m=="-"){var y=new RegExp("^"+f+"[\\-_]|[\\-_]"+f+"$","g");v=v.replace(y,"")}(!v||v==f)&&g.length>1&&(v=g[g.length-2]);var k=p[f+"Path"];return k==null?k=p.basePath:m=="/"&&(f=m=""),k&&k.slice(-1)!="/"&&(k+="/"),k+f+m+v+this.get("suffix")},r.setModuleUrl=function(h,f){return p.$moduleUrls[h]=f};var a=function(h,f){if(h==="ace/theme/textmate"||h==="./theme/textmate")return f(null,n("./theme/textmate"));if(i)return i(h,f);console.error("loader is not configured")},i;r.setLoader=function(h){i=h},r.dynamicModules=Object.create(null),r.$loading={},r.$loaded={},r.loadModule=function(h,f){var g;if(Array.isArray(h))var m=h[0],v=h[1];else if(typeof h=="string")var v=h;var y=function(k){if(k&&!r.$loading[v])return f&&f(k);if(r.$loading[v]||(r.$loading[v]=[]),r.$loading[v].push(f),!(r.$loading[v].length>1)){var C=function(){a(v,function(S,b){b&&(r.$loaded[v]=b),r._emit("load.module",{name:v,module:b});var E=r.$loading[v];r.$loading[v]=null,E.forEach(function(L){L&&L(b)})})};if(!r.get("packaged"))return C();u.loadScript(r.moduleUrl(v,m),C),c()}};if(r.dynamicModules[v])r.dynamicModules[v]().then(function(k){k.default?y(k.default):y(k)});else{try{g=this.$require(v)}catch{}y(g||r.$loaded[v])}},r.$require=function(h){if(typeof l.require=="function"){var f="require";return l[f](h)}},r.setModuleLoader=function(h,f){r.dynamicModules[h]=f};var c=function(){!p.basePath&&!p.workerPath&&!p.modePath&&!p.themePath&&!Object.keys(p.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),c=function(){})};r.version="1.32.7"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(n,r,l){n("./lib/fixoldbrowsers");var s=n("./config");s.setLoader(function(p,a){n([p],function(i){a(null,i)})});var u=function(){return this||typeof window<"u"&&window}();l.exports=function(p){s.init=d,s.$require=n,p.require=n},d(!0);function d(p){if(!(!u||!u.document)){s.set("packaged",p||n.packaged||l.packaged||u.define&&(void 0).packaged);var a={},i="",c=document.currentScript||document._currentScript,h=c&&c.ownerDocument||document;c&&c.src&&(i=c.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var f=h.getElementsByTagName("script"),g=0;g<f.length;g++){var m=f[g],v=m.src||m.getAttribute("src");if(v){for(var y=m.attributes,k=0,C=y.length;k<C;k++){var S=y[k];S.name.indexOf("data-ace-")===0&&(a[o(S.name.replace(/^data-ace-/,""))]=S.value)}var b=v.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);b&&(i=b[1])}}i&&(a.base=a.base||i,a.packaged=!0),a.basePath=a.base,a.workerPath=a.workerPath||a.base,a.modePath=a.modePath||a.base,a.themePath=a.themePath||a.base,delete a.base;for(var E in a)typeof a[E]<"u"&&s.set(E,a[E])}}function o(p){return p.replace(/-(.)/g,function(a,i){return i.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(n,r,l){var s=function(){function u(d,o,p,a){this.start={row:d,column:o},this.end={row:p,column:a}}return u.prototype.isEqual=function(d){return this.start.row===d.start.row&&this.end.row===d.end.row&&this.start.column===d.start.column&&this.end.column===d.end.column},u.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},u.prototype.contains=function(d,o){return this.compare(d,o)==0},u.prototype.compareRange=function(d){var o,p=d.end,a=d.start;return o=this.compare(p.row,p.column),o==1?(o=this.compare(a.row,a.column),o==1?2:o==0?1:0):o==-1?-2:(o=this.compare(a.row,a.column),o==-1?-1:o==1?42:0)},u.prototype.comparePoint=function(d){return this.compare(d.row,d.column)},u.prototype.containsRange=function(d){return this.comparePoint(d.start)==0&&this.comparePoint(d.end)==0},u.prototype.intersects=function(d){var o=this.compareRange(d);return o==-1||o==0||o==1},u.prototype.isEnd=function(d,o){return this.end.row==d&&this.end.column==o},u.prototype.isStart=function(d,o){return this.start.row==d&&this.start.column==o},u.prototype.setStart=function(d,o){typeof d=="object"?(this.start.column=d.column,this.start.row=d.row):(this.start.row=d,this.start.column=o)},u.prototype.setEnd=function(d,o){typeof d=="object"?(this.end.column=d.column,this.end.row=d.row):(this.end.row=d,this.end.column=o)},u.prototype.inside=function(d,o){return this.compare(d,o)==0?!(this.isEnd(d,o)||this.isStart(d,o)):!1},u.prototype.insideStart=function(d,o){return this.compare(d,o)==0?!this.isEnd(d,o):!1},u.prototype.insideEnd=function(d,o){return this.compare(d,o)==0?!this.isStart(d,o):!1},u.prototype.compare=function(d,o){return!this.isMultiLine()&&d===this.start.row?o<this.start.column?-1:o>this.end.column?1:0:d<this.start.row?-1:d>this.end.row?1:this.start.row===d?o>=this.start.column?0:-1:this.end.row===d?o<=this.end.column?0:1:0},u.prototype.compareStart=function(d,o){return this.start.row==d&&this.start.column==o?-1:this.compare(d,o)},u.prototype.compareEnd=function(d,o){return this.end.row==d&&this.end.column==o?1:this.compare(d,o)},u.prototype.compareInside=function(d,o){return this.end.row==d&&this.end.column==o?1:this.start.row==d&&this.start.column==o?-1:this.compare(d,o)},u.prototype.clipRows=function(d,o){if(this.end.row>o)var p={row:o+1,column:0};else if(this.end.row<d)var p={row:d,column:0};if(this.start.row>o)var a={row:o+1,column:0};else if(this.start.row<d)var a={row:d,column:0};return u.fromPoints(a||this.start,p||this.end)},u.prototype.extend=function(d,o){var p=this.compare(d,o);if(p==0)return this;if(p==-1)var a={row:d,column:o};else var i={row:d,column:o};return u.fromPoints(a||this.start,i||this.end)},u.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},u.prototype.isMultiLine=function(){return this.start.row!==this.end.row},u.prototype.clone=function(){return u.fromPoints(this.start,this.end)},u.prototype.collapseRows=function(){return this.end.column==0?new u(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new u(this.start.row,0,this.end.row,0)},u.prototype.toScreenRange=function(d){var o=d.documentToScreenPosition(this.start),p=d.documentToScreenPosition(this.end);return new u(o.row,o.column,p.row,p.column)},u.prototype.moveBy=function(d,o){this.start.row+=d,this.start.column+=o,this.end.row+=d,this.end.column+=o},u}();s.fromPoints=function(u,d){return new s(u.row,u.column,d.row,d.column)},s.comparePoints=function(u,d){return u.row-d.row||u.column-d.column},r.Range=s}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(n,r,l){/*! @license
975
+ ==========================================================================
976
+ SproutCore -- JavaScript Application Framework
977
+ copyright 2006-2009, Sprout Systems Inc., Apple Inc. and contributors.
978
+
979
+ Permission is hereby granted, free of charge, to any person obtaining a
980
+ copy of this software and associated documentation files (the "Software"),
981
+ to deal in the Software without restriction, including without limitation
982
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
983
+ and/or sell copies of the Software, and to permit persons to whom the
984
+ Software is furnished to do so, subject to the following conditions:
985
+
986
+ The above copyright notice and this permission notice shall be included in
987
+ all copies or substantial portions of the Software.
988
+
989
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
990
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
991
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
992
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
993
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
994
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
995
+ DEALINGS IN THE SOFTWARE.
996
+
997
+ SproutCore and the SproutCore logo are trademarks of Sprout Systems, Inc.
998
+
999
+ For more information about SproutCore, visit http://www.sproutcore.com
1000
+
1001
+
1002
+ ==========================================================================
1003
+ @license */var s=n("./oop"),u=function(){var 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",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}};d.PRINTABLE_KEYS[173]="-";var o,p;for(p in d.FUNCTION_KEYS)o=d.FUNCTION_KEYS[p].toLowerCase(),d[o]=parseInt(p,10);for(p in d.PRINTABLE_KEYS)o=d.PRINTABLE_KEYS[p].toLowerCase(),d[o]=parseInt(p,10);return s.mixin(d,d.MODIFIER_KEYS),s.mixin(d,d.PRINTABLE_KEYS),s.mixin(d,d.FUNCTION_KEYS),d.enter=d.return,d.escape=d.esc,d.del=d.delete,function(){for(var a=["cmd","ctrl","alt","shift"],i=Math.pow(2,a.length);i--;)d.KEY_MODS[i]=a.filter(function(c){return i&d.KEY_MODS[c]}).join("-")+"-"}(),d.KEY_MODS[0]="",d.KEY_MODS[-1]="input-",d}();s.mixin(r,u),r.default=r,r.keyCodeToString=function(d){var o=u[d];return typeof o!="string"&&(o=String.fromCharCode(d)),o.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(n,r,l){var s=n("./keys"),u=n("./useragent"),d=null,o=0,p;function a(){p=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return p={passive:!1},!0}})}catch{}}function i(){return p==null&&a(),p}function c(k,C,S){this.elem=k,this.type=C,this.callback=S}c.prototype.destroy=function(){f(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var h=r.addListener=function(k,C,S,b){k.addEventListener(C,S,i()),b&&b.$toDestroy.push(new c(k,C,S))},f=r.removeListener=function(k,C,S){k.removeEventListener(C,S,i())};r.stopEvent=function(k){return r.stopPropagation(k),r.preventDefault(k),!1},r.stopPropagation=function(k){k.stopPropagation&&k.stopPropagation()},r.preventDefault=function(k){k.preventDefault&&k.preventDefault()},r.getButton=function(k){return k.type=="dblclick"?0:k.type=="contextmenu"||u.isMac&&k.ctrlKey&&!k.altKey&&!k.shiftKey?2:k.button},r.capture=function(k,C,S){var b=k&&k.ownerDocument||document;function E(L){C&&C(L),S&&S(L),f(b,"mousemove",C),f(b,"mouseup",E),f(b,"dragstart",E)}return h(b,"mousemove",C),h(b,"mouseup",E),h(b,"dragstart",E),E},r.addMouseWheelListener=function(k,C,S){h(k,"wheel",function(b){var E=.15,L=b.deltaX||0,x=b.deltaY||0;switch(b.deltaMode){case b.DOM_DELTA_PIXEL:b.wheelX=L*E,b.wheelY=x*E;break;case b.DOM_DELTA_LINE:var M=15;b.wheelX=L*M,b.wheelY=x*M;break;case b.DOM_DELTA_PAGE:var _=150;b.wheelX=L*_,b.wheelY=x*_;break}C(b)},S)},r.addMultiMouseDownListener=function(k,C,S,b,E){var L=0,x,M,_,A={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,u.isIE){var R=Math.abs(w.clientX-x)>5||Math.abs(w.clientY-M)>5;(!_||R)&&(L=1),_&&clearTimeout(_),_=setTimeout(function(){_=null},C[L-1]||600),L==1&&(x=w.clientX,M=w.clientY)}if(w._clicks=L,S[b]("mousedown",w),L>4)L=0;else if(L>1)return S[b](A[L],w)}Array.isArray(k)||(k=[k]),k.forEach(function(w){h(w,"mousedown",$,E)})};function g(k){return 0|(k.ctrlKey?1:0)|(k.altKey?2:0)|(k.shiftKey?4:0)|(k.metaKey?8:0)}r.getModifierString=function(k){return s.KEY_MODS[g(k)]};function m(k,C,S){var b=g(C);if(!u.isMac&&d){if(C.getModifierState&&(C.getModifierState("OS")||C.getModifierState("Win"))&&(b|=8),d.altGr)if((3&b)!=3)d.altGr=0;else return;if(S===18||S===17){var E=C.location;if(S===17&&E===1)d[S]==1&&(o=C.timeStamp);else if(S===18&&b===3&&E===2){var L=C.timeStamp-o;L<50&&(d.altGr=!0)}}}if(S in s.MODIFIER_KEYS&&(S=-1),!(!b&&S===13&&C.location===3&&(k(C,b,-S),C.defaultPrevented))){if(u.isChromeOS&&b&8){if(k(C,b,S),C.defaultPrevented)return;b&=-9}return!b&&!(S in s.FUNCTION_KEYS)&&!(S in s.PRINTABLE_KEYS)?!1:k(C,b,S)}}r.addCommandKeyListener=function(k,C,S){var b=null;h(k,"keydown",function(E){d[E.keyCode]=(d[E.keyCode]||0)+1;var L=m(C,E,E.keyCode);return b=E.defaultPrevented,L},S),h(k,"keypress",function(E){b&&(E.ctrlKey||E.altKey||E.shiftKey||E.metaKey)&&(r.stopEvent(E),b=null)},S),h(k,"keyup",function(E){d[E.keyCode]=null},S),d||(v(),h(window,"focus",v))};function v(){d=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!u.isOldIE){var y=1;r.nextTick=function(k,C){C=C||window;var S="zero-timeout-message-"+y++,b=function(E){E.data==S&&(r.stopPropagation(E),f(C,"message",b),k())};h(C,"message",b),C.postMessage(S,"*")}}r.$idleBlocked=!1,r.onIdle=function(k,C){return setTimeout(function S(){r.$idleBlocked?setTimeout(S,100):k()},C)},r.$idleBlockId=null,r.blockIdle=function(k){r.$idleBlockId&&clearTimeout(r.$idleBlockId),r.$idleBlocked=!0,r.$idleBlockId=setTimeout(function(){r.$idleBlocked=!1},k||100)},r.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),r.nextFrame?r.nextFrame=r.nextFrame.bind(window):r.nextFrame=function(k){setTimeout(k,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(n,r,l){var s;l.exports={lineMode:!1,pasteCancelled:function(){return s&&s>Date.now()-50?!0:s=!1},cancel:function(){s=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/config","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(n,r,l){var s=n("../lib/event"),u=n("../config").nls,d=n("../lib/useragent"),o=n("../lib/dom"),p=n("../lib/lang"),a=n("../clipboard"),i=d.isChrome<18,c=d.isIE,h=d.isChrome>63,f=400,g=n("../lib/keys"),m=g.KEY_MODS,v=d.isIOS,y=v?/\s/:/\n/,k=d.isMobile,C;C=function(S,b){var E=o.createElement("textarea");E.className="ace_text-input",E.setAttribute("wrap","off"),E.setAttribute("autocorrect","off"),E.setAttribute("autocapitalize","off"),E.setAttribute("spellcheck","false"),E.style.opacity="0",S.insertBefore(E,S.firstChild);var L=!1,x=!1,M=!1,_=!1,A="";k||(E.style.fontSize="1px");var $=!1,w=!1,R="",T=0,O=0,I=0,N=Number.MAX_SAFE_INTEGER,P=Number.MIN_SAFE_INTEGER,W=0;try{var j=document.activeElement===E}catch{}this.setNumberOfExtraLines=function(q){if(N=Number.MAX_SAFE_INTEGER,P=Number.MIN_SAFE_INTEGER,q<0){W=0;return}W=q},this.setAriaOptions=function(q){if(q.activeDescendant?(E.setAttribute("aria-haspopup","true"),E.setAttribute("aria-autocomplete",q.inline?"both":"list"),E.setAttribute("aria-activedescendant",q.activeDescendant)):(E.setAttribute("aria-haspopup","false"),E.setAttribute("aria-autocomplete","both"),E.removeAttribute("aria-activedescendant")),q.role&&E.setAttribute("role",q.role),q.setLabel&&(E.setAttribute("aria-roledescription",u("editor")),b.session)){var le=b.session.selection.cursor.row;E.setAttribute("aria-label",u("Cursor at row $0",[le+1]))}},this.setAriaOptions({role:"textbox"}),s.addListener(E,"blur",function(q){w||(b.onBlur(q),j=!1)},b),s.addListener(E,"focus",function(q){if(!w){if(j=!0,d.isEdge)try{if(!document.hasFocus())return}catch{}b.onFocus(q),d.isEdge?setTimeout(H):H()}},b),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:b.renderer.enableKeyboardAccessibility}),A||h||this.$focusScroll=="browser")return E.focus({preventScroll:!0});var q=E.style.top;E.style.position="fixed",E.style.top="0px";try{var le=E.getBoundingClientRect().top!=0}catch{return}var ge=[];if(le)for(var ke=E.parentElement;ke&&ke.nodeType==1;)ge.push(ke),ke.setAttribute("ace_nocontext","true"),!ke.parentElement&&ke.getRootNode?ke=ke.getRootNode().host:ke=ke.parentElement;E.focus({preventScroll:!0}),le&&ge.forEach(function(Oe){Oe.removeAttribute("ace_nocontext")}),setTimeout(function(){E.style.position="",E.style.top=="0px"&&(E.style.top=q)},0)},this.blur=function(){E.blur()},this.isFocused=function(){return j},b.on("beforeEndOperation",function(){var q=b.curOp,le=q&&q.command&&q.command.name;if(le!="insertstring"){var ge=le&&(q.docChanged||q.selectionChanged);M&&ge&&(R=E.value="",ce()),H()}});var V=function(q,le){for(var ge=le,ke=1;ke<=q-N&&ke<2*W+1;ke++)ge+=b.session.getLine(q-ke).length+1;return ge},H=v?function(q){if(!(!j||L&&!q||_)){q||(q="");var le=`
1004
+ ab`+q+`cde fg
1005
+ `;le!=E.value&&(E.value=R=le);var ge=4,ke=4+(q.length||(b.selection.isEmpty()?0:1));(T!=ge||O!=ke)&&E.setSelectionRange(ge,ke),T=ge,O=ke}}:function(){if(!(M||_)&&!(!j&&!X)){M=!0;var q=0,le=0,ge="";if(b.session){var ke=b.selection,Oe=ke.getRange(),He=ke.cursor.row;He===P+1?(N=P+1,P=N+2*W):He===N-1?(P=N-1,N=P-2*W):(He<N-1||He>P+1)&&(N=He>W?He-W:0,P=He>W?He+W:2*W);for(var Qe=[],nt=N;nt<=P;nt++)Qe.push(b.session.getLine(nt));if(ge=Qe.join(`
1006
+ `),q=V(Oe.start.row,Oe.start.column),le=V(Oe.end.row,Oe.end.column),Oe.start.row<N){var Ke=b.session.getLine(N-1);q=Oe.start.row<N-1?0:q,le+=Ke.length+1,ge=Ke+`
1007
+ `+ge}else if(Oe.end.row>P){var je=b.session.getLine(P+1);le=Oe.end.row>P+1?je.length:Oe.end.column,le+=ge.length+1,ge=ge+`
1008
+ `+je}else k&&He>0&&(ge=`
1009
+ `+ge,le+=1,q+=1);ge.length>f&&(q<f&&le<f?ge=ge.slice(0,f):(ge=`
1010
+ `,q==le?q=le=0:(q=0,le=1)));var Xe=ge+`
1011
+
1012
+ `;Xe!=R&&(E.value=R=Xe,T=O=Xe.length)}if(X&&(T=E.selectionStart,O=E.selectionEnd),O!=le||T!=q||E.selectionEnd!=O)try{E.setSelectionRange(q,le),T=q,O=le}catch{}M=!1}};this.resetSelection=H,j&&b.onFocus();var G=function(q){return q.selectionStart===0&&q.selectionEnd>=R.length&&q.value===R&&R&&q.selectionEnd!==O},Q=function(q){M||(L?L=!1:G(E)?(b.selectAll(),H()):k&&E.selectionStart!=T&&H())},U=null;this.setInputHandler=function(q){U=q},this.getInputHandler=function(){return U};var X=!1,Y=function(q,le){if(X&&(X=!1),x)return H(),q&&b.onPaste(q),x=!1,"";for(var ge=E.selectionStart,ke=E.selectionEnd,Oe=T,He=R.length-O,Qe=q,nt=q.length-ge,Ke=q.length-ke,je=0;Oe>0&&R[je]==q[je];)je++,Oe--;for(Qe=Qe.slice(je),je=1;He>0&&R.length-je>T-1&&R[R.length-je]==q[q.length-je];)je++,He--;nt-=je-1,Ke-=je-1;var Xe=Qe.length-je+1;if(Xe<0&&(Oe=-Xe,Xe=0),Qe=Qe.slice(0,Xe),!le&&!Qe&&!nt&&!Oe&&!He&&!Ke)return"";_=!0;var wt=!1;return d.isAndroid&&Qe==". "&&(Qe=" ",wt=!0),Qe&&!Oe&&!He&&!nt&&!Ke||$?b.onTextInput(Qe):b.onTextInput(Qe,{extendLeft:Oe,extendRight:He,restoreStart:nt,restoreEnd:Ke}),_=!1,R=q,T=ge,O=ke,I=Ke,wt?`
1013
+ `:Qe},z=function(q){if(M)return te();if(q&&q.inputType){if(q.inputType=="historyUndo")return b.execCommand("undo");if(q.inputType=="historyRedo")return b.execCommand("redo")}var le=E.value,ge=Y(le,!0);(le.length>f+100||y.test(ge)||k&&T<1&&T==O)&&H()},ee=function(q,le,ge){var ke=q.clipboardData||window.clipboardData;if(!(!ke||i)){var Oe=c||ge?"Text":"text/plain";try{return le?ke.setData(Oe,le)!==!1:ke.getData(Oe)}catch(He){if(!ge)return ee(He,le,!0)}}},he=function(q,le){var ge=b.getCopyText();if(!ge)return s.preventDefault(q);ee(q,ge)?(v&&(H(ge),L=ge,setTimeout(function(){L=!1},10)),le?b.onCut():b.onCopy(),s.preventDefault(q)):(L=!0,E.value=ge,E.select(),setTimeout(function(){L=!1,H(),le?b.onCut():b.onCopy()}))},F=function(q){he(q,!0)},B=function(q){he(q,!1)},K=function(q){var le=ee(q);a.pasteCancelled()||(typeof le=="string"?(le&&b.onPaste(le,q),d.isIE&&setTimeout(H),s.preventDefault(q)):(E.value="",x=!0))};s.addCommandKeyListener(E,function(q,le,ge){if(!M)return b.onCommandKey(q,le,ge)},b),s.addListener(E,"select",Q,b),s.addListener(E,"input",z,b),s.addListener(E,"cut",F,b),s.addListener(E,"copy",B,b),s.addListener(E,"paste",K,b),(!("oncut"in E)||!("oncopy"in E)||!("onpaste"in E))&&s.addListener(S,"keydown",function(q){if(!(d.isMac&&!q.metaKey||!q.ctrlKey))switch(q.keyCode){case 67:B(q);break;case 86:K(q);break;case 88:F(q);break}},b);var J=function(q){if(!(M||!b.onCompositionStart||b.$readOnly)&&(M={},!$)){q.data&&(M.useTextareaForIME=!1),setTimeout(te,0),b._signal("compositionStart"),b.on("mousedown",pe);var le=b.getSelectionRange();le.end.row=le.start.row,le.end.column=le.start.column,M.markerRange=le,M.selectionStart=T,b.onCompositionStart(M),M.useTextareaForIME?(R=E.value="",T=0,O=0):(E.msGetInputContext&&(M.context=E.msGetInputContext()),E.getInputContext&&(M.context=E.getInputContext()))}},te=function(){if(!(!M||!b.onCompositionUpdate||b.$readOnly)){if($)return pe();if(M.useTextareaForIME)b.onCompositionUpdate(E.value);else{var q=E.value;Y(q),M.markerRange&&(M.context&&(M.markerRange.start.column=M.selectionStart=M.context.compositionStartOffset),M.markerRange.end.column=M.markerRange.start.column+O-M.selectionStart+I)}}},ce=function(q){!b.onCompositionEnd||b.$readOnly||(M=!1,b.onCompositionEnd(),b.off("mousedown",pe),q&&z())};function pe(){w=!0,E.blur(),E.focus(),w=!1}var ue=p.delayedCall(te,50).schedule.bind(null,null);function fe(q){q.keyCode==27&&E.value.length<E.selectionStart&&(M||(R=E.value),T=O=-1,H()),ue()}s.addListener(E,"compositionstart",J,b),s.addListener(E,"compositionupdate",te,b),s.addListener(E,"keyup",fe,b),s.addListener(E,"keydown",ue,b),s.addListener(E,"compositionend",ce,b),this.getElement=function(){return E},this.setCommandMode=function(q){$=q,E.readOnly=!1},this.setReadOnly=function(q){$||(E.readOnly=q)},this.setCopyWithEmptySelection=function(q){},this.onContextMenu=function(q){X=!0,H(),b._emit("nativecontextmenu",{target:b,domEvent:q}),this.moveToMouse(q,!0)},this.moveToMouse=function(q,le){A||(A=E.style.cssText),E.style.cssText=(le?"z-index:100000;":"")+(d.isIE?"opacity:0.1;":"")+"text-indent: -"+(T+O)*b.renderer.characterWidth*.5+"px;";var ge=b.container.getBoundingClientRect(),ke=o.computedStyle(b.container),Oe=ge.top+(parseInt(ke.borderTopWidth)||0),He=ge.left+(parseInt(ge.borderLeftWidth)||0),Qe=ge.bottom-Oe-E.clientHeight-2,nt=function(Ke){o.translate(E,Ke.clientX-He-2,Math.min(Ke.clientY-Oe-2,Qe))};nt(q),q.type=="mousedown"&&(b.renderer.$isMousePressed=!0,clearTimeout(ae),d.isWin&&s.capture(b.container,nt,ve))},this.onContextMenuClose=ve;var ae;function ve(){clearTimeout(ae),ae=setTimeout(function(){A&&(E.style.cssText=A,A=""),b.renderer.$isMousePressed=!1,b.renderer.$keepTextAreaAtCursor&&b.renderer.$moveTextAreaToCursor()},0)}var Ee=function(q){b.textInput.onContextMenu(q),ve()};s.addListener(E,"mouseup",Ee,b),s.addListener(E,"mousedown",function(q){q.preventDefault(),ve()},b),s.addListener(b.renderer.scroller,"contextmenu",Ee,b),s.addListener(E,"contextmenu",Ee,b),v&&Ae(S,b,E);function Ae(q,le,ge){var ke=null,Oe=!1;ge.addEventListener("keydown",function(Qe){ke&&clearTimeout(ke),Oe=!0},!0),ge.addEventListener("keyup",function(Qe){ke=setTimeout(function(){Oe=!1},100)},!0);var He=function(Qe){if(document.activeElement===ge&&!(Oe||M||le.$mouseHandler.isMousePressed)&&!L){var nt=ge.selectionStart,Ke=ge.selectionEnd,je=null,Xe=0;if(nt==0?je=g.up:nt==1?je=g.home:Ke>O&&R[Ke]==`
1014
+ `?je=g.end:nt<T&&R[nt-1]==" "?(je=g.left,Xe=m.option):nt<T||nt==T&&O!=T&&nt==Ke?je=g.left:Ke>O&&R.slice(0,Ke).split(`
1015
+ `).length>2?je=g.down:Ke>O&&R[Ke-1]==" "?(je=g.right,Xe=m.option):(Ke>O||Ke==O&&O!=T&&nt==Ke)&&(je=g.right),nt!==Ke&&(Xe|=m.shift),je){var wt=le.onCommandKey({},Xe,je);if(!wt&&le.commands){je=g.keyCodeToString(je);var vi=le.commands.findKeyCommand(Xe,je);vi&&le.execCommand(vi)}T=nt,O=Ke,H("")}}};document.addEventListener("selectionchange",He),le.on("destroy",function(){document.removeEventListener("selectionchange",He)})}this.destroy=function(){E.parentElement&&E.parentElement.removeChild(E)}},r.TextInput=C,r.$setUserAgentForTests=function(S,b){k=S,v=b}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(n,r,l){var s=n("../lib/useragent"),u=0,d=550,o=function(){function i(c){c.$clickSelection=null;var h=c.editor;h.setDefaultHandler("mousedown",this.onMouseDown.bind(c)),h.setDefaultHandler("dblclick",this.onDoubleClick.bind(c)),h.setDefaultHandler("tripleclick",this.onTripleClick.bind(c)),h.setDefaultHandler("quadclick",this.onQuadClick.bind(c)),h.setDefaultHandler("mousewheel",this.onMouseWheel.bind(c));var f=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];f.forEach(function(g){c[g]=this[g]},this),c.selectByLines=this.extendSelectionBy.bind(c,"getLineRange"),c.selectByWords=this.extendSelectionBy.bind(c,"getWordRange")}return i.prototype.onMouseDown=function(c){var h=c.inSelection(),f=c.getDocumentPosition();this.mousedownEvent=c;var g=this.editor,m=c.getButton();if(m!==0){var v=g.getSelectionRange(),y=v.isEmpty();(y||m==1)&&g.selection.moveToPosition(f),m==2&&(g.textInput.onContextMenu(c.domEvent),s.isMozilla||c.preventDefault());return}if(this.mousedownEvent.time=Date.now(),h&&!g.isFocused()&&(g.focus(),this.$focusTimeout&&!this.$clickSelection&&!g.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(c);return}return this.captureMouse(c),this.startSelect(f,c.domEvent._clicks>1),c.preventDefault()},i.prototype.startSelect=function(c,h){c=c||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var f=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?f.selection.selectToPosition(c):h||f.selection.moveToPosition(c),h||this.select(),f.setStyle("ace_selecting"),this.setState("select"))},i.prototype.select=function(){var c,h=this.editor,f=h.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var g=this.$clickSelection.comparePoint(f);if(g==-1)c=this.$clickSelection.end;else if(g==1)c=this.$clickSelection.start;else{var m=a(this.$clickSelection,f);f=m.cursor,c=m.anchor}h.selection.setSelectionAnchor(c.row,c.column)}h.selection.selectToPosition(f),h.renderer.scrollCursorIntoView()},i.prototype.extendSelectionBy=function(c){var h,f=this.editor,g=f.renderer.screenToTextCoordinates(this.x,this.y),m=f.selection[c](g.row,g.column);if(this.$clickSelection){var v=this.$clickSelection.comparePoint(m.start),y=this.$clickSelection.comparePoint(m.end);if(v==-1&&y<=0)h=this.$clickSelection.end,(m.end.row!=g.row||m.end.column!=g.column)&&(g=m.start);else if(y==1&&v>=0)h=this.$clickSelection.start,(m.start.row!=g.row||m.start.column!=g.column)&&(g=m.end);else if(v==-1&&y==1)g=m.end,h=m.start;else{var k=a(this.$clickSelection,g);g=k.cursor,h=k.anchor}f.selection.setSelectionAnchor(h.row,h.column)}f.selection.selectToPosition(g),f.renderer.scrollCursorIntoView()},i.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},i.prototype.focusWait=function(){var c=p(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),h=Date.now();(c>u||h-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},i.prototype.onDoubleClick=function(c){var h=c.getDocumentPosition(),f=this.editor,g=f.session,m=g.getBracketRange(h);m?(m.isEmpty()&&(m.start.column--,m.end.column++),this.setState("select")):(m=f.selection.getWordRange(h.row,h.column),this.setState("selectByWords")),this.$clickSelection=m,this.select()},i.prototype.onTripleClick=function(c){var h=c.getDocumentPosition(),f=this.editor;this.setState("selectByLines");var g=f.getSelectionRange();g.isMultiLine()&&g.contains(h.row,h.column)?(this.$clickSelection=f.selection.getLineRange(g.start.row),this.$clickSelection.end=f.selection.getLineRange(g.end.row).end):this.$clickSelection=f.selection.getLineRange(h.row),this.select()},i.prototype.onQuadClick=function(c){var h=this.editor;h.selectAll(),this.$clickSelection=h.getSelectionRange(),this.setState("selectAll")},i.prototype.onMouseWheel=function(c){if(!c.getAccelKey()){c.getShiftKey()&&c.wheelY&&!c.wheelX&&(c.wheelX=c.wheelY,c.wheelY=0);var h=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var f=this.$lastScroll,g=c.domEvent.timeStamp,m=g-f.t,v=m?c.wheelX/m:f.vx,y=m?c.wheelY/m:f.vy;m<d&&(v=(v+f.vx)/2,y=(y+f.vy)/2);var k=Math.abs(v/y),C=!1;if(k>=1&&h.renderer.isScrollableBy(c.wheelX*c.speed,0)&&(C=!0),k<=1&&h.renderer.isScrollableBy(0,c.wheelY*c.speed)&&(C=!0),C)f.allowed=g;else if(g-f.allowed<d){var S=Math.abs(v)<=1.5*Math.abs(f.vx)&&Math.abs(y)<=1.5*Math.abs(f.vy);S?(C=!0,f.allowed=g):f.allowed=0}if(f.t=g,f.vx=v,f.vy=y,C)return h.renderer.scrollBy(c.wheelX*c.speed,c.wheelY*c.speed),c.stop()}},i}();o.prototype.selectEnd=o.prototype.selectByLinesEnd,o.prototype.selectAllEnd=o.prototype.selectByLinesEnd,o.prototype.selectByWordsEnd=o.prototype.selectByLinesEnd,r.DefaultHandlers=o;function p(i,c,h,f){return Math.sqrt(Math.pow(h-i,2)+Math.pow(f-c,2))}function a(i,c){if(i.start.row==i.end.row)var h=2*c.column-i.start.column-i.end.column;else if(i.start.row==i.end.row-1&&!i.start.column&&!i.end.column)var h=c.column-4;else var h=2*c.row-i.start.row-i.end.row;return h<0?{cursor:i.start,anchor:i.end}:{cursor:i.end,anchor:i.start}}}),ace.define("ace/lib/scroll",["require","exports","module"],function(n,r,l){r.preventParentScroll=function(u){u.stopPropagation();var d=u.currentTarget,o=d.scrollHeight>d.clientHeight;o||u.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(n,r,l){var s=this&&this.__extends||function(){var g=function(m,v){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,k){y.__proto__=k}||function(y,k){for(var C in k)Object.prototype.hasOwnProperty.call(k,C)&&(y[C]=k[C])},g(m,v)};return function(m,v){if(typeof v!="function"&&v!==null)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");g(m,v);function y(){this.constructor=m}m.prototype=v===null?Object.create(v):(y.prototype=v.prototype,new y)}}(),u=this&&this.__values||function(g){var m=typeof Symbol=="function"&&Symbol.iterator,v=m&&g[m],y=0;if(v)return v.call(g);if(g&&typeof g.length=="number")return{next:function(){return g&&y>=g.length&&(g=void 0),{value:g&&g[y++],done:!g}}};throw new TypeError(m?"Object is not iterable.":"Symbol.iterator is not defined.")},d=n("./lib/dom");n("./lib/event");var o=n("./range").Range,p=n("./lib/scroll").preventParentScroll,a="ace_tooltip",i=function(){function g(m){this.isOpen=!1,this.$element=null,this.$parentNode=m}return g.prototype.$init=function(){return this.$element=d.createElement("div"),this.$element.className=a,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},g.prototype.getElement=function(){return this.$element||this.$init()},g.prototype.setText=function(m){this.getElement().textContent=m},g.prototype.setHtml=function(m){this.getElement().innerHTML=m},g.prototype.setPosition=function(m,v){this.getElement().style.left=m+"px",this.getElement().style.top=v+"px"},g.prototype.setClassName=function(m){d.addCssClass(this.getElement(),m)},g.prototype.setTheme=function(m){this.$element.className=a+" "+(m.isDark?"ace_dark ":"")+(m.cssClass||"")},g.prototype.show=function(m,v,y){m!=null&&this.setText(m),v!=null&&y!=null&&this.setPosition(v,y),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},g.prototype.hide=function(m){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=a,this.isOpen=!1)},g.prototype.getHeight=function(){return this.getElement().offsetHeight},g.prototype.getWidth=function(){return this.getElement().offsetWidth},g.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},g}(),c=function(){function g(){this.popups=[]}return g.prototype.addPopup=function(m){this.popups.push(m),this.updatePopups()},g.prototype.removePopup=function(m){var v=this.popups.indexOf(m);v!==-1&&(this.popups.splice(v,1),this.updatePopups())},g.prototype.updatePopups=function(){var m,v,y,k;this.popups.sort(function(A,$){return $.priority-A.priority});var C=[];try{for(var S=u(this.popups),b=S.next();!b.done;b=S.next()){var E=b.value,L=!0;try{for(var x=(y=void 0,u(C)),M=x.next();!M.done;M=x.next()){var _=M.value;if(this.doPopupsOverlap(_,E)){L=!1;break}}}catch(A){y={error:A}}finally{try{M&&!M.done&&(k=x.return)&&k.call(x)}finally{if(y)throw y.error}}L?C.push(E):E.hide()}}catch(A){m={error:A}}finally{try{b&&!b.done&&(v=S.return)&&v.call(S)}finally{if(m)throw m.error}}},g.prototype.doPopupsOverlap=function(m,v){var y=m.getElement().getBoundingClientRect(),k=v.getElement().getBoundingClientRect();return y.left<k.right&&y.right>k.left&&y.top<k.bottom&&y.bottom>k.top},g}(),h=new c;r.popupManager=h,r.Tooltip=i;var f=function(g){s(m,g);function m(v){v===void 0&&(v=document.body);var y=g.call(this,v)||this;y.timeout=void 0,y.lastT=0,y.idleTime=350,y.lastEvent=void 0,y.onMouseOut=y.onMouseOut.bind(y),y.onMouseMove=y.onMouseMove.bind(y),y.waitForHover=y.waitForHover.bind(y),y.hide=y.hide.bind(y);var k=y.getElement();return k.style.whiteSpace="pre-wrap",k.style.pointerEvents="auto",k.addEventListener("mouseout",y.onMouseOut),k.tabIndex=-1,k.addEventListener("blur",(function(){k.contains(document.activeElement)||this.hide()}).bind(y)),k.addEventListener("wheel",p),y}return m.prototype.addToEditor=function(v){v.on("mousemove",this.onMouseMove),v.on("mousedown",this.hide),v.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},m.prototype.removeFromEditor=function(v){v.off("mousemove",this.onMouseMove),v.off("mousedown",this.hide),v.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},m.prototype.onMouseMove=function(v,y){this.lastEvent=v,this.lastT=Date.now();var k=y.$mouseHandler.isMousePressed;if(this.isOpen){var C=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(C.row,C.column)||k||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||k||(this.lastEvent=v,this.timeout=setTimeout(this.waitForHover,this.idleTime))},m.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var v=Date.now()-this.lastT;if(this.idleTime-v>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-v);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},m.prototype.isOutsideOfText=function(v){var y=v.editor,k=v.getDocumentPosition(),C=y.session.getLine(k.row);if(k.column==C.length){var S=y.renderer.pixelToScreenCoordinates(v.clientX,v.clientY),b=y.session.documentToScreenPosition(k.row,k.column);if(b.column!=S.column||b.row!=S.row)return!0}return!1},m.prototype.setDataProvider=function(v){this.$gatherData=v},m.prototype.showForRange=function(v,y,k,C){var S=10;if(!(C&&C!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var b=v.renderer;this.isOpen||(h.addPopup(this),this.$registerCloseEvents(),this.setTheme(b.theme)),this.isOpen=!0,this.addMarker(y,v.session),this.range=o.fromPoints(y.start,y.end);var E=b.textToScreenCoordinates(y.start.row,y.start.column),L=b.scroller.getBoundingClientRect();E.pageX<L.left&&(E.pageX=L.left);var x=this.getElement();x.innerHTML="",x.appendChild(k),x.style.maxHeight="",x.style.display="block";var M=x.clientHeight,_=x.clientWidth,A=window.innerHeight-E.pageY-b.lineHeight,$=!0;E.pageY-M<0&&E.pageY<A&&($=!1),x.style.maxHeight=($?E.pageY:A)-S+"px",x.style.top=$?"":E.pageY+b.lineHeight+"px",x.style.bottom=$?window.innerHeight-E.pageY+"px":"",x.style.left=Math.min(E.pageX,window.innerWidth-_-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,h.removePopup(this)))},m.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("wheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},m.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("wheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},m.prototype.onMouseOut=function(v){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!v.relatedTarget||this.getElement().contains(v.relatedTarget)||v&&v.currentTarget.contains(v.relatedTarget)||v.relatedTarget.classList.contains("ace_content")||this.hide())},m}(i);r.HoverTooltip=f}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config"],function(n,r,l){var s=this&&this.__extends||function(){var h=function(f,g){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,v){m.__proto__=v}||function(m,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(m[y]=v[y])},h(f,g)};return function(f,g){if(typeof g!="function"&&g!==null)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");h(f,g);function m(){this.constructor=f}f.prototype=g===null?Object.create(g):(m.prototype=g.prototype,new m)}}(),u=this&&this.__values||function(h){var f=typeof Symbol=="function"&&Symbol.iterator,g=f&&h[f],m=0;if(g)return g.call(h);if(h&&typeof h.length=="number")return{next:function(){return h&&m>=h.length&&(h=void 0),{value:h&&h[m++],done:!h}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")},d=n("../lib/dom"),o=n("../lib/event"),p=n("../tooltip").Tooltip,a=n("../config").nls;function i(h){var f=h.editor,g=f.renderer.$gutterLayer,m=new c(f);h.editor.setDefaultHandler("guttermousedown",function(b){if(!(!f.isFocused()||b.getButton()!=0)){var E=g.getRegion(b);if(E!="foldWidgets"){var L=b.getDocumentPosition().row,x=f.session.selection;if(b.getShiftKey())x.selectTo(L,0);else{if(b.domEvent.detail==2)return f.selectAll(),b.preventDefault();h.$clickSelection=f.selection.getLineRange(L)}return h.setState("selectByLines"),h.captureMouse(b),b.preventDefault()}}});var v,y;function k(){var b=y.getDocumentPosition().row,E=f.session.getLength();if(b==E){var L=f.renderer.pixelToScreenCoordinates(0,y.y).row,x=y.$pos;if(L>f.session.documentToScreenRow(x.row,x.column))return C()}if(m.showTooltip(b),!!m.isOpen)if(f.on("mousewheel",C),h.$tooltipFollowsMouse)S(y);else{var M=y.getGutterRow(),_=g.$lines.get(M);if(_){var A=_.element.querySelector(".ace_gutter_annotation"),$=A.getBoundingClientRect(),w=m.getElement().style;w.left=$.right+"px",w.top=$.bottom+"px"}else S(y)}}function C(){v&&(v=clearTimeout(v)),m.isOpen&&(m.hideTooltip(),f.off("mousewheel",C))}function S(b){m.setPosition(b.x,b.y)}h.editor.setDefaultHandler("guttermousemove",function(b){var E=b.domEvent.target||b.domEvent.srcElement;if(d.hasCssClass(E,"ace_fold-widget"))return C();m.isOpen&&h.$tooltipFollowsMouse&&S(b),y=b,!v&&(v=setTimeout(function(){v=null,y&&!h.isMousePressed?k():C()},50))}),o.addListener(f.renderer.$gutter,"mouseout",function(b){y=null,!(!m.isOpen||v)&&(v=setTimeout(function(){v=null,C()},50))},f),f.on("changeSession",C),f.on("input",C)}r.GutterHandler=i;var c=function(h){s(f,h);function f(g){var m=h.call(this,g.container)||this;return m.editor=g,m}return f.prototype.setPosition=function(g,m){var v=window.innerWidth||document.documentElement.clientWidth,y=window.innerHeight||document.documentElement.clientHeight,k=this.getWidth(),C=this.getHeight();g+=15,m+=15,g+k>v&&(g-=g+k-v),m+C>y&&(m-=20+C),p.prototype.setPosition.call(this,g,m)},Object.defineProperty(f,"annotationLabels",{get:function(){return{error:{singular:a("error"),plural:a("errors")},warning:{singular:a("warning"),plural:a("warnings")},info:{singular:a("information message"),plural:a("information messages")}}},enumerable:!1,configurable:!0}),f.prototype.showTooltip=function(g){var m=this.editor.renderer.$gutterLayer,v=m.$annotations[g],y;v?y={text:Array.from(v.text),type:Array.from(v.type)}:y={text:[],type:[]};var k=m.session.getFoldLine(g);if(k&&m.$showFoldedAnnotations){for(var C={error:[],warning:[],info:[]},S,b=g+1;b<=k.end.row;b++)if(m.$annotations[b])for(var E=0;E<m.$annotations[b].text.length;E++){var L=m.$annotations[b].type[E];if(C[L].push(m.$annotations[b].text[E]),L==="error"){S="error_fold";continue}if(L==="warning"){S="warning_fold";continue}}if(S==="error_fold"||S==="warning_fold"){var x="".concat(f.annotationsToSummaryString(C)," in folded code.");y.text.push(x),y.type.push(S)}}if(y.text.length===0)return this.hide();for(var M={error:[],warning:[],info:[]},_=m.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",b=0;b<y.text.length;b++){var A="<span class='ace_".concat(y.type[b]," ").concat(_,"' aria-label='").concat(f.annotationLabels[y.type[b].replace("_fold","")].singular,"' role=img> </span> ").concat(y.text[b]);M[y.type[b].replace("_fold","")].push(A)}var $=[].concat(M.error,M.warning,M.info).join("<br>");this.setHtml($),this.$element.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip")),this.show(),this.editor._signal("showGutterTooltip",this)},f.prototype.hideTooltip=function(){this.$element.removeAttribute("aria-live"),this.hide(),this.editor._signal("hideGutterTooltip",this)},f.annotationsToSummaryString=function(g){var m,v,y=[],k=["error","warning","info"];try{for(var C=u(k),S=C.next();!S.done;S=C.next()){var b=S.value;if(g[b].length){var E=g[b].length===1?f.annotationLabels[b].singular:f.annotationLabels[b].plural;y.push("".concat(g[b].length," ").concat(E))}}}catch(L){m={error:L}}finally{try{S&&!S.done&&(v=C.return)&&v.call(C)}finally{if(m)throw m.error}}return y.join(", ")},f}(p);r.GutterTooltip=c}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(n,r,l){var s=n("../lib/event"),u=n("../lib/useragent"),d=function(){function o(p,a){this.speed,this.wheelX,this.wheelY,this.domEvent=p,this.editor=a,this.x=this.clientX=p.clientX,this.y=this.clientY=p.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return o.prototype.stopPropagation=function(){s.stopPropagation(this.domEvent),this.propagationStopped=!0},o.prototype.preventDefault=function(){s.preventDefault(this.domEvent),this.defaultPrevented=!0},o.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},o.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},o.prototype.getGutterRow=function(){var p=this.getDocumentPosition().row,a=this.editor.session.documentToScreenRow(p,0),i=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return a-i},o.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var p=this.editor,a=p.getSelectionRange();if(a.isEmpty())this.$inSelection=!1;else{var i=this.getDocumentPosition();this.$inSelection=a.contains(i.row,i.column)}return this.$inSelection},o.prototype.getButton=function(){return s.getButton(this.domEvent)},o.prototype.getShiftKey=function(){return this.domEvent.shiftKey},o.prototype.getAccelKey=function(){return u.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},o}();r.MouseEvent=d}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(n,r,l){var s=n("../lib/dom"),u=n("../lib/event"),d=n("../lib/useragent"),o=200,p=200,a=5;function i(h){var f=h.editor,g=s.createElement("div");g.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",g.textContent=" ";var m=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];m.forEach(function(V){h[V]=this[V]},this),f.on("mousedown",this.onMouseDown.bind(h));var v=f.container,y,k,C,S,b,E,L=0,x,M,_,A,$;this.onDragStart=function(V){if(this.cancelDrag||!v.draggable){var H=this;return setTimeout(function(){H.startSelect(),H.captureMouse(V)},0),V.preventDefault()}b=f.getSelectionRange();var G=V.dataTransfer;G.effectAllowed=f.getReadOnly()?"copy":"copyMove",f.container.appendChild(g),G.setDragImage&&G.setDragImage(g,0,0),setTimeout(function(){f.container.removeChild(g)}),G.clearData(),G.setData("Text",f.session.getTextRange()),M=!0,this.setState("drag")},this.onDragEnd=function(V){if(v.draggable=!1,M=!1,this.setState(null),!f.getReadOnly()){var H=V.dataTransfer.dropEffect;!x&&H=="move"&&f.session.remove(f.getSelectionRange()),f.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(V){if(!(f.getReadOnly()||!W(V.dataTransfer)))return k=V.clientX,C=V.clientY,y||O(),L++,V.dataTransfer.dropEffect=x=j(V),u.preventDefault(V)},this.onDragOver=function(V){if(!(f.getReadOnly()||!W(V.dataTransfer)))return k=V.clientX,C=V.clientY,y||(O(),L++),N!==null&&(N=null),V.dataTransfer.dropEffect=x=j(V),u.preventDefault(V)},this.onDragLeave=function(V){if(L--,L<=0&&y)return I(),x=null,u.preventDefault(V)},this.onDrop=function(V){if(E){var H=V.dataTransfer;if(M)switch(x){case"move":b.contains(E.row,E.column)?b={start:E,end:E}:b=f.moveText(b,E);break;case"copy":b=f.moveText(b,E,!0);break}else{var G=H.getData("Text");b={start:E,end:f.session.insert(E,G)},f.focus(),x=null}return I(),u.preventDefault(V)}},u.addListener(v,"dragstart",this.onDragStart.bind(h),f),u.addListener(v,"dragend",this.onDragEnd.bind(h),f),u.addListener(v,"dragenter",this.onDragEnter.bind(h),f),u.addListener(v,"dragover",this.onDragOver.bind(h),f),u.addListener(v,"dragleave",this.onDragLeave.bind(h),f),u.addListener(v,"drop",this.onDrop.bind(h),f);function w(V,H){var G=Date.now(),Q=!H||V.row!=H.row,U=!H||V.column!=H.column;if(!A||Q||U)f.moveCursorToPosition(V),A=G,$={x:k,y:C};else{var X=c($.x,$.y,k,C);X>a?A=null:G-A>=p&&(f.renderer.scrollCursorIntoView(),A=null)}}function R(V,H){var G=Date.now(),Q=f.renderer.layerConfig.lineHeight,U=f.renderer.layerConfig.characterWidth,X=f.renderer.scroller.getBoundingClientRect(),Y={x:{left:k-X.left,right:X.right-k},y:{top:C-X.top,bottom:X.bottom-C}},z=Math.min(Y.x.left,Y.x.right),ee=Math.min(Y.y.top,Y.y.bottom),he={row:V.row,column:V.column};z/U<=2&&(he.column+=Y.x.left<Y.x.right?-3:2),ee/Q<=1&&(he.row+=Y.y.top<Y.y.bottom?-1:1);var F=V.row!=he.row,B=V.column!=he.column,K=!H||V.row!=H.row;F||B&&!K?_?G-_>=o&&f.renderer.scrollCursorIntoView(he):_=G:_=null}function T(){var V=E;E=f.renderer.screenToTextCoordinates(k,C),w(E,V),R(E,V)}function O(){b=f.selection.toOrientedRange(),y=f.session.addMarker(b,"ace_selection",f.getSelectionStyle()),f.clearSelection(),f.isFocused()&&f.renderer.$cursorLayer.setBlinking(!1),clearInterval(S),T(),S=setInterval(T,20),L=0,u.addListener(document,"mousemove",P)}function I(){clearInterval(S),f.session.removeMarker(y),y=null,f.selection.fromOrientedRange(b),f.isFocused()&&!M&&f.$resetCursorStyle(),b=null,E=null,L=0,_=null,A=null,u.removeListener(document,"mousemove",P)}var N=null;function P(){N==null&&(N=setTimeout(function(){N!=null&&y&&I()},20))}function W(V){var H=V.types;return!H||Array.prototype.some.call(H,function(G){return G=="text/plain"||G=="Text"})}function j(V){var H=["copy","copymove","all","uninitialized"],G=["move","copymove","linkmove","all","uninitialized"],Q=d.isMac?V.altKey:V.ctrlKey,U="uninitialized";try{U=V.dataTransfer.effectAllowed.toLowerCase()}catch{}var X="none";return Q&&H.indexOf(U)>=0?X="copy":G.indexOf(U)>=0?X="move":H.indexOf(U)>=0&&(X="copy"),X}}(function(){this.dragWait=function(){var h=Date.now()-this.mousedownEvent.time;h>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var h=this.editor.container;h.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(h){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var h=this.editor,f=h.container;f.draggable=!0,h.renderer.$cursorLayer.setBlinking(!1),h.setStyle("ace_dragging");var g=d.isWin?"default":"move";h.renderer.setCursorStyle(g),this.setState("dragReady")},this.onMouseDrag=function(h){var f=this.editor.container;if(d.isIE&&this.state=="dragReady"){var g=c(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);g>3&&f.dragDrop()}if(this.state==="dragWait"){var g=c(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);g>0&&(f.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(h){if(this.$dragEnabled){this.mousedownEvent=h;var f=this.editor,g=h.inSelection(),m=h.getButton(),v=h.domEvent.detail||1;if(v===1&&m===0&&g){if(h.editor.inMultiSelectMode&&(h.getAccelKey()||h.getShiftKey()))return;this.mousedownEvent.time=Date.now();var y=h.domEvent.target||h.domEvent.srcElement;if("unselectable"in y&&(y.unselectable="on"),f.getDragDelay()){if(d.isWebKit){this.cancelDrag=!0;var k=f.container;k.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(h,this.onMouseDrag.bind(this)),h.defaultPrevented=!0}}}}).call(i.prototype);function c(h,f,g,m){return Math.sqrt(Math.pow(g-h,2)+Math.pow(m-f,2))}r.DragdropHandler=i}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(n,r,l){var s=n("./mouse_event").MouseEvent,u=n("../lib/event"),d=n("../lib/dom");r.addTouchListeners=function(o,p){var a="scroll",i,c,h,f,g,m,v=0,y,k=0,C=0,S=0,b,E;function L(){var w=window.navigator&&window.navigator.clipboard,R=!1,T=function(){var I=p.getCopyText(),N=p.session.getUndoManager().hasUndo();E.replaceChild(d.buildDom(R?["span",!I&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],I&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],I&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],w&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],N&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],["span",{class:"ace_mobile-button",action:"find"},"Find"],["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),E.firstChild)},O=function(I){var N=I.target.getAttribute("action");if(N=="more"||!R)return R=!R,T();N=="paste"?w.readText().then(function(P){p.execCommand(N,P)}):N&&((N=="cut"||N=="copy")&&(w?w.writeText(p.getCopyText()):document.execCommand("copy")),p.execCommand(N)),E.firstChild.style.display="none",R=!1,N!="openCommandPalette"&&p.focus()};E=d.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(I){a="menu",I.stopPropagation(),I.preventDefault(),p.textInput.focus()},ontouchend:function(I){I.stopPropagation(),I.preventDefault(),O(I)},onclick:O},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],p.container)}function x(){E||L();var w=p.selection.cursor,R=p.renderer.textToScreenCoordinates(w.row,w.column),T=p.renderer.textToScreenCoordinates(0,0).pageX,O=p.renderer.scrollLeft,I=p.container.getBoundingClientRect();E.style.top=R.pageY-I.top-3+"px",R.pageX-I.left<I.width-70?(E.style.left="",E.style.right="10px"):(E.style.right="",E.style.left=T+O-I.left+"px"),E.style.display="",E.firstChild.style.display="none",p.on("input",M)}function M(w){E&&(E.style.display="none"),p.off("input",M)}function _(){g=null,clearTimeout(g);var w=p.selection.getRange(),R=w.contains(y.row,y.column);(w.isEmpty()||!R)&&(p.selection.moveToPosition(y),p.selection.selectWord()),a="wait",x()}function A(){g=null,clearTimeout(g),p.selection.moveToPosition(y);var w=k>=2?p.selection.getLineRange(y.row):p.session.getBracketRange(y);w&&!w.isEmpty()?p.selection.setRange(w):p.selection.selectWord(),a="wait"}u.addListener(o,"contextmenu",function(w){if(b){var R=p.textInput.getElement();R.focus()}},p),u.addListener(o,"touchstart",function(w){var R=w.touches;if(g||R.length>1){clearTimeout(g),g=null,h=-1,a="zoom";return}b=p.$mouseHandler.isMousePressed=!0;var T=p.renderer.layerConfig.lineHeight,O=p.renderer.layerConfig.lineHeight,I=w.timeStamp;f=I;var N=R[0],P=N.clientX,W=N.clientY;Math.abs(i-P)+Math.abs(c-W)>T&&(h=-1),i=w.clientX=P,c=w.clientY=W,C=S=0;var j=new s(w,p);if(y=j.getDocumentPosition(),I-h<500&&R.length==1&&!v)k++,w.preventDefault(),w.button=0,A();else{k=0;var V=p.selection.cursor,H=p.selection.isEmpty()?V:p.selection.anchor,G=p.renderer.$cursorLayer.getPixelPosition(V,!0),Q=p.renderer.$cursorLayer.getPixelPosition(H,!0),U=p.renderer.scroller.getBoundingClientRect(),X=p.renderer.layerConfig.offset,Y=p.renderer.scrollLeft,z=function(F,B){return F=F/O,B=B/T-.75,F*F+B*B};if(w.clientX<U.left){a="zoom";return}var ee=z(w.clientX-U.left-G.left+Y,w.clientY-U.top-G.top+X),he=z(w.clientX-U.left-Q.left+Y,w.clientY-U.top-Q.top+X);ee<3.5&&he<3.5&&(a=ee>he?"cursor":"anchor"),he<3.5?a="anchor":ee<3.5?a="cursor":a="scroll",g=setTimeout(_,450)}h=I},p),u.addListener(o,"touchend",function(w){b=p.$mouseHandler.isMousePressed=!1,m&&clearInterval(m),a=="zoom"?(a="",v=0):g?(p.selection.moveToPosition(y),v=0,x()):a=="scroll"?($(),M()):x(),clearTimeout(g),g=null},p),u.addListener(o,"touchmove",function(w){g&&(clearTimeout(g),g=null);var R=w.touches;if(!(R.length>1||a=="zoom")){var T=R[0],O=i-T.clientX,I=c-T.clientY;if(a=="wait")if(O*O+I*I>4)a="cursor";else return w.preventDefault();i=T.clientX,c=T.clientY,w.clientX=T.clientX,w.clientY=T.clientY;var N=w.timeStamp,P=N-f;if(f=N,a=="scroll"){var W=new s(w,p);W.speed=1,W.wheelX=O,W.wheelY=I,10*Math.abs(O)<Math.abs(I)&&(O=0),10*Math.abs(I)<Math.abs(O)&&(I=0),P!=0&&(C=O/P,S=I/P),p._emit("mousewheel",W),W.propagationStopped||(C=S=0)}else{var j=new s(w,p),V=j.getDocumentPosition();a=="cursor"?p.selection.moveCursorToPosition(V):a=="anchor"&&p.selection.setSelectionAnchor(V.row,V.column),p.renderer.scrollCursorIntoView(V),w.preventDefault()}}},p);function $(){v+=60,m=setInterval(function(){v--<=0&&(clearInterval(m),m=null),Math.abs(C)<.01&&(C=0),Math.abs(S)<.01&&(S=0),v<20&&(C=.9*C),v<20&&(S=.9*S);var w=p.session.getScrollTop();p.renderer.scrollBy(10*C,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,l){var s=n("../lib/event"),u=n("../lib/useragent"),d=n("./default_handlers").DefaultHandlers,o=n("./default_gutter_handler").GutterHandler,p=n("./mouse_event").MouseEvent,a=n("./dragdrop_handler").DragdropHandler,i=n("./touch_handler").addTouchListeners,c=n("../config"),h=function(){function f(g){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var m=this;this.editor=g,new d(this),new o(this),new a(this);var v=function(C){var S=!document.hasFocus||!document.hasFocus()||!g.isFocused()&&document.activeElement==(g.textInput&&g.textInput.getElement());S&&window.focus(),g.focus(),setTimeout(function(){g.isFocused()||g.focus()})},y=g.renderer.getMouseEventTarget();s.addListener(y,"click",this.onMouseEvent.bind(this,"click"),g),s.addListener(y,"mousemove",this.onMouseMove.bind(this,"mousemove"),g),s.addMultiMouseDownListener([y,g.renderer.scrollBarV&&g.renderer.scrollBarV.inner,g.renderer.scrollBarH&&g.renderer.scrollBarH.inner,g.textInput&&g.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",g),s.addMouseWheelListener(g.container,this.onMouseWheel.bind(this,"mousewheel"),g),i(g.container,g);var k=g.renderer.$gutter;s.addListener(k,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),g),s.addListener(k,"click",this.onMouseEvent.bind(this,"gutterclick"),g),s.addListener(k,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),g),s.addListener(k,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),g),s.addListener(y,"mousedown",v,g),s.addListener(k,"mousedown",v,g),u.isIE&&g.renderer.scrollBarV&&(s.addListener(g.renderer.scrollBarV.element,"mousedown",v,g),s.addListener(g.renderer.scrollBarH.element,"mousedown",v,g)),g.on("mousemove",function(C){if(!(m.state||m.$dragDelay||!m.$dragEnabled)){var S=g.renderer.screenToTextCoordinates(C.x,C.y),b=g.session.selection.getRange(),E=g.renderer;!b.isEmpty()&&b.insideStart(S.row,S.column)?E.setCursorStyle("default"):E.setCursorStyle("")}},g)}return f.prototype.onMouseEvent=function(g,m){this.editor.session&&this.editor._emit(g,new p(m,this.editor))},f.prototype.onMouseMove=function(g,m){var v=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!v||!v.length||this.editor._emit(g,new p(m,this.editor))},f.prototype.onMouseWheel=function(g,m){var v=new p(m,this.editor);v.speed=this.$scrollSpeed*2,v.wheelX=m.wheelX,v.wheelY=m.wheelY,this.editor._emit(g,v)},f.prototype.setState=function(g){this.state=g},f.prototype.captureMouse=function(g,m){this.x=g.x,this.y=g.y,this.isMousePressed=!0;var v=this.editor,y=this.editor.renderer;y.$isMousePressed=!0;var k=this,C=function(x){if(x){if(u.isWebKit&&!x.which&&k.releaseMouse)return k.releaseMouse();k.x=x.clientX,k.y=x.clientY,m&&m(x),k.mouseEvent=new p(x,k.editor),k.$mouseMoved=!0}},S=function(x){v.off("beforeEndOperation",E),clearInterval(L),v.session&&b(),k[k.state+"End"]&&k[k.state+"End"](x),k.state="",k.isMousePressed=y.$isMousePressed=!1,y.$keepTextAreaAtCursor&&y.$moveTextAreaToCursor(),k.$onCaptureMouseMove=k.releaseMouse=null,x&&k.onMouseEvent("mouseup",x),v.endOperation()},b=function(){k[k.state]&&k[k.state](),k.$mouseMoved=!1};if(u.isOldIE&&g.domEvent.type=="dblclick")return setTimeout(function(){S(g)});var E=function(x){k.releaseMouse&&v.curOp.command.name&&v.curOp.selectionChanged&&(k[k.state+"End"]&&k[k.state+"End"](),k.state="",k.releaseMouse())};v.on("beforeEndOperation",E),v.startOperation({command:{name:"mouse"}}),k.$onCaptureMouseMove=C,k.releaseMouse=s.capture(this.editor.container,C,S);var L=setInterval(b,20)},f.prototype.cancelContextMenu=function(){var g=(function(m){m&&m.domEvent&&m.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",g),m&&m.domEvent&&s.stopEvent(m.domEvent))}).bind(this);setTimeout(g,10),this.editor.on("nativecontextmenu",g)},f.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},f}();h.prototype.releaseMouse=null,c.defineOptions(h.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:u.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),r.MouseHandler=h}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(n,r,l){var s=n("../lib/dom"),u=function(){function d(o){o.on("click",function(p){var a=p.getDocumentPosition(),i=o.session,c=i.getFoldAt(a.row,a.column,1);c&&(p.getAccelKey()?i.removeFold(c):i.expandFold(c),p.stop());var h=p.domEvent&&p.domEvent.target;h&&s.hasCssClass(h,"ace_inline_button")&&s.hasCssClass(h,"ace_toggle_wrap")&&(i.setOption("wrap",!i.getUseWrapMode()),o.renderer.scrollCursorIntoView())}),o.on("gutterclick",function(p){var a=o.renderer.$gutterLayer.getRegion(p);if(a=="foldWidgets"){var i=p.getDocumentPosition().row,c=o.session;c.foldWidgets&&c.foldWidgets[i]&&o.session.onFoldWidgetClick(i,p),o.isFocused()||o.focus(),p.stop()}}),o.on("gutterdblclick",function(p){var a=o.renderer.$gutterLayer.getRegion(p);if(a=="foldWidgets"){var i=p.getDocumentPosition().row,c=o.session,h=c.getParentFoldRangeData(i,!0),f=h.range||h.firstRange;if(f){i=f.start.row;var g=c.getFoldAt(i,c.getLine(i).length,1);g?c.removeFold(g):(c.addFold("...",f),o.renderer.scrollCursorIntoView({row:f.start.row,column:0}))}p.stop()}})}return d}();r.FoldHandler=u}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(n,r,l){var s=n("../lib/keys"),u=n("../lib/event"),d=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 a=this.$handlers;if(a[a.length-1]!=p){for(;a[a.length-1]&&a[a.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(a[a.length-1]);this.addKeyboardHandler(p,1)}},o.prototype.addKeyboardHandler=function(p,a){if(p){typeof p=="function"&&!p.handleKeyboard&&(p.handleKeyboard=p);var i=this.$handlers.indexOf(p);i!=-1&&this.$handlers.splice(i,1),a==null?this.$handlers.push(p):this.$handlers.splice(a,0,p),i==-1&&p.attach&&p.attach(this.$editor)}},o.prototype.removeKeyboardHandler=function(p){var a=this.$handlers.indexOf(p);return a==-1?!1:(this.$handlers.splice(a,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,a=p.editor;return this.$handlers.map(function(i){return i.getStatusText&&i.getStatusText(a,p)||""}).filter(Boolean).join(" ")},o.prototype.$callKeyboardHandlers=function(p,a,i,c){for(var h,f=!1,g=this.$editor.commands,m=this.$handlers.length;m--&&(h=this.$handlers[m].handleKeyboard(this.$data,p,a,i,c),!(!(!h||!h.command)&&(h.command=="null"?f=!0:f=g.exec(h.command,this.$editor,h.args,c),f&&c&&p!=-1&&h.passEvent!=!0&&h.command.passEvent!=!0&&u.stopEvent(c),f))););return!f&&p==-1&&(h={command:"insertstring"},f=g.exec("insertstring",this.$editor,a)),f&&this.$editor._signal&&this.$editor._signal("keyboardActivity",h),f},o.prototype.onCommandKey=function(p,a,i){var c=s.keyCodeToString(i);return this.$callKeyboardHandlers(a,c,i,p)},o.prototype.onTextInput=function(p){return this.$callKeyboardHandlers(-1,p)},o}();r.KeyBinding=d}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(n,r,l){var s=0,u=0,d=!1,o=!1,p=!1,a=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],i=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],c=0,h=1,f=0,g=1,m=2,v=3,y=4,k=5,C=6,S=7,b=8,E=9,L=10,x=11,M=12,_=13,A=14,$=15,w=16,R=17,T=18,O=[T,T,T,T,T,T,T,T,T,C,k,C,b,k,T,T,T,T,T,T,T,T,T,T,T,T,T,T,k,k,k,C,b,y,y,x,x,x,y,y,y,y,y,L,E,L,E,E,m,m,m,m,m,m,m,m,m,m,E,y,y,y,y,y,y,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,y,y,y,y,y,y,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,y,y,y,y,T,T,T,T,T,T,k,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,E,y,x,x,x,x,y,y,y,y,f,y,y,T,y,y,x,x,m,m,y,f,y,y,y,m,f,y,y,y,y,y],I=[b,b,b,b,b,b,b,b,b,b,b,T,T,T,f,g,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,k,_,A,$,w,R,E,x,x,x,x,x,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,E,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(V,H,G,Q){var U=s?i:a,X=null,Y=null,z=null,ee=0,he=null,F=null,B=-1,K=null,J=null,te=[];if(!Q)for(K=0,Q=[];K<G;K++)Q[K]=j(V[K]);for(u=s,d=!1,o=!1,p=!1,J=0;J<G;J++){if(X=ee,te[J]=Y=W(V,Q,te,J),ee=U[X][Y],he=ee&240,ee&=15,H[J]=z=U[ee][5],he>0)if(he==16){for(K=B;K<J;K++)H[K]=1;B=-1}else B=-1;if(F=U[ee][6],F)B==-1&&(B=J);else if(B>-1){for(K=B;K<J;K++)H[K]=z;B=-1}Q[J]==k&&(H[J]=0),u|=z}if(p){for(K=0;K<G;K++)if(Q[K]==C){H[K]=s;for(var ce=K-1;ce>=0&&Q[ce]==b;ce--)H[ce]=s}}}function P(V,H,G){if(!(u<V)){if(V==1&&s==h&&!o){G.reverse();return}for(var Q=G.length,U=0,X,Y,z,ee;U<Q;){if(H[U]>=V){for(X=U+1;X<Q&&H[X]>=V;)X++;for(Y=U,z=X-1;Y<z;Y++,z--)ee=G[Y],G[Y]=G[z],G[z]=ee;U=X}U++}}}function W(V,H,G,Q){var U=H[Q],X,Y,z,ee;switch(U){case f:case g:d=!1;case y:case v:return U;case m:return d?v:m;case S:return d=!0,g;case b:return y;case E:return Q<1||Q+1>=H.length||(X=G[Q-1])!=m&&X!=v||(Y=H[Q+1])!=m&&Y!=v?y:(d&&(Y=v),Y==X?Y:y);case L:return X=Q>0?G[Q-1]:k,X==m&&Q+1<H.length&&H[Q+1]==m?m:y;case x:if(Q>0&&G[Q-1]==m)return m;if(d)return y;for(ee=Q+1,z=H.length;ee<z&&H[ee]==x;)ee++;return ee<z&&H[ee]==m?m:y;case M:for(z=H.length,ee=Q+1;ee<z&&H[ee]==M;)ee++;if(ee<z){var he=V[Q],F=he>=1425&&he<=2303||he==64286;if(X=H[ee],F&&(X==g||X==S))return g}return Q<1||(X=H[Q-1])==k?y:G[Q-1];case k:return d=!1,o=!0,s;case C:return p=!0,y;case _:case A:case w:case R:case $:d=!1;case T:return y}}function j(V){var H=V.charCodeAt(0),G=H>>8;return G==0?H>191?f:O[H]:G==5?/[\u0591-\u05f4]/.test(V)?g:f:G==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(V)?M:/[\u0660-\u0669\u066b-\u066c]/.test(V)?v:H==1642?x:/[\u06f0-\u06f9]/.test(V)?m:S:G==32&&H<=8287?I[H&255]:G==254&&H>=65136?S:y}r.L=f,r.R=g,r.EN=m,r.ON_R=3,r.AN=4,r.R_H=5,r.B=6,r.RLE=7,r.DOT="·",r.doBidiReorder=function(V,H,G){if(V.length<2)return{};var Q=V.split(""),U=new Array(Q.length),X=new Array(Q.length),Y=[];s=G?h:c,N(Q,Y,Q.length,H);for(var z=0;z<U.length;U[z]=z,z++);P(2,Y,U),P(1,Y,U);for(var z=0;z<U.length-1;z++)H[z]===v?Y[z]=r.AN:Y[z]===g&&(H[z]>S&&H[z]<_||H[z]===y||H[z]===T)?Y[z]=r.ON_R:z>0&&Q[z-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(Q[z])&&(Y[z-1]=Y[z]=r.R_H,z++);Q[Q.length-1]===r.DOT&&(Y[Q.length-1]=r.B),Q[0]==="‫"&&(Y[0]=r.RLE);for(var z=0;z<U.length;z++)X[z]=Y[U[z]];return{logicalFromVisual:U,bidiLevels:X}},r.hasBidiCharacters=function(V,H){for(var G=!1,Q=0;Q<V.length;Q++)H[Q]=j(V.charAt(Q)),!G&&(H[Q]==g||H[Q]==S||H[Q]==v)&&(G=!0);return G},r.getVisualFromLogicalIdx=function(V,H){for(var G=0;G<H.logicalFromVisual.length;G++)if(H.logicalFromVisual[G]==V)return G;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(n,r,l){var s=n("./lib/bidiutil"),u=n("./lib/lang"),d=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,o=function(){function p(a){this.session=a,this.bidiMap={},this.currentRow=null,this.bidiUtil=s,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=d.test(a.getValue())}return p.prototype.isBidiRow=function(a,i,c){return this.seenBidi?(a!==this.currentRow&&(this.currentRow=a,this.updateRowLine(i,c),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},p.prototype.onChange=function(a){this.seenBidi?this.currentRow=null:a.action=="insert"&&d.test(a.lines.join(`
1016
+ `))&&(this.seenBidi=!0,this.currentRow=null)},p.prototype.getDocumentRow=function(){var a=0,i=this.session.$screenRowCache;if(i.length){var c=this.session.$getRowCacheIndex(i,this.currentRow);c>=0&&(a=this.session.$docRowCache[c])}return a},p.prototype.getSplitIndex=function(){var a=0,i=this.session.$screenRowCache;if(i.length)for(var c,h=this.session.$getRowCacheIndex(i,this.currentRow);this.currentRow-a>0&&(c=this.session.$getRowCacheIndex(i,this.currentRow-a-1),c===h);)h=c,a++;else a=this.currentRow;return a},p.prototype.updateRowLine=function(a,i){a===void 0&&(a=this.getDocumentRow());var c=a===this.session.getLength()-1,h=c?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(a),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var f=this.session.$wrapData[a];f&&(i===void 0&&(i=this.getSplitIndex()),i>0&&f.length?(this.wrapIndent=f.indent,this.wrapOffset=this.wrapIndent*this.charWidths[s.L],this.line=i<f.length?this.line.substring(f[i-1],f[i]):this.line.substring(f[f.length-1])):this.line=this.line.substring(0,f[i]),i==f.length&&(this.line+=this.showInvisibles?h:s.DOT))}else this.line+=this.showInvisibles?h:s.DOT;var g=this.session,m=0,v;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(y,k){return y===" "||g.isFullWidth(y.charCodeAt(0))?(v=y===" "?g.getScreenTabSize(k+m):2,m+=v-1,u.stringRepeat(s.DOT,v)):y}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==s.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 a=[];s.hasBidiCharacters(this.line,a)||this.isRtlDir?this.bidiMap=s.doBidiReorder(this.line,a,this.isRtlDir):this.bidiMap={}},p.prototype.markAsDirty=function(){this.currentRow=null},p.prototype.updateCharacterWidths=function(a){if(this.characterWidth!==a.$characterSize.width){this.fontMetrics=a;var i=this.characterWidth=a.$characterSize.width,c=a.$measureCharWidth("ה");this.charWidths[s.L]=this.charWidths[s.EN]=this.charWidths[s.ON_R]=i,this.charWidths[s.R]=this.charWidths[s.AN]=c,this.charWidths[s.R_H]=c*.45,this.charWidths[s.B]=this.charWidths[s.RLE]=0,this.currentRow=null}},p.prototype.setShowInvisibles=function(a){this.showInvisibles=a,this.currentRow=null},p.prototype.setEolChar=function(a){this.EOL=a},p.prototype.setContentWidth=function(a){this.contentWidth=a},p.prototype.isRtlLine=function(a){return this.$isRtl?!0:a!=null?this.session.getLine(a).charAt(0)==this.RLE:this.isRtlDir},p.prototype.setRtlDirection=function(a,i){for(var c=a.getCursorPosition(),h=a.selection.getSelectionAnchor().row;h<=c.row;h++)!i&&a.session.getLine(h).charAt(0)===a.session.$bidiHandler.RLE?a.session.doc.removeInLine(h,0,1):i&&a.session.getLine(h).charAt(0)!==a.session.$bidiHandler.RLE&&a.session.doc.insert({column:0,row:h},a.session.$bidiHandler.RLE)},p.prototype.getPosLeft=function(a){a-=this.wrapIndent;var i=this.line.charAt(0)===this.RLE?1:0,c=a>i?this.session.getOverwrite()?a:a-1:i,h=s.getVisualFromLogicalIdx(c,this.bidiMap),f=this.bidiMap.bidiLevels,g=0;!this.session.getOverwrite()&&a<=i&&f[h]%2!==0&&h++;for(var m=0;m<h;m++)g+=this.charWidths[f[m]];return!this.session.getOverwrite()&&a>i&&f[h]%2===0&&(g+=this.charWidths[f[h]]),this.wrapIndent&&(g+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(g+=this.rtlLineOffset),g},p.prototype.getSelections=function(a,i){var c=this.bidiMap,h=c.bidiLevels,f,g=[],m=0,v=Math.min(a,i)-this.wrapIndent,y=Math.max(a,i)-this.wrapIndent,k=!1,C=!1,S=0;this.wrapIndent&&(m+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var b,E=0;E<h.length;E++)b=c.logicalFromVisual[E],f=h[E],k=b>=v&&b<y,k&&!C?S=m:!k&&C&&g.push({left:S,width:m-S}),m+=this.charWidths[f],C=k;if(k&&E===h.length&&g.push({left:S,width:m-S}),this.isRtlDir)for(var L=0;L<g.length;L++)g[L].left+=this.rtlLineOffset;return g},p.prototype.offsetToCol=function(c){this.isRtlDir&&(c-=this.rtlLineOffset);var i=0,c=Math.max(c,0),h=0,f=0,g=this.bidiMap.bidiLevels,m=this.charWidths[g[f]];for(this.wrapIndent&&(c-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);c>h+m/2;){if(h+=m,f===g.length-1){m=0;break}m=this.charWidths[g[++f]]}return f>0&&g[f-1]%2!==0&&g[f]%2===0?(c<h&&f--,i=this.bidiMap.logicalFromVisual[f]):f>0&&g[f-1]%2===0&&g[f]%2!==0?i=1+(c>h?this.bidiMap.logicalFromVisual[f]:this.bidiMap.logicalFromVisual[f-1]):this.isRtlDir&&f===g.length-1&&m===0&&g[f-1]%2===0||!this.isRtlDir&&f===0&&g[f]%2!==0?i=1+this.bidiMap.logicalFromVisual[f]:(f>0&&g[f-1]%2!==0&&m!==0&&f--,i=this.bidiMap.logicalFromVisual[f]),i===0&&this.isRtlDir&&i++,i+this.wrapIndent},p}();r.BidiHandler=o}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(n,r,l){var s=n("./lib/oop"),u=n("./lib/lang"),d=n("./lib/event_emitter").EventEmitter,o=n("./range").Range,p=function(){function a(i){this.session=i,this.doc=i.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var c=this;this.cursor.on("change",function(h){c.$cursorChanged=!0,c.$silent||c._emit("changeCursor"),!c.$isEmpty&&!c.$silent&&c._emit("changeSelection"),!c.$keepDesiredColumnOnChange&&h.old.column!=h.value.column&&(c.$desiredColumn=null)}),this.anchor.on("change",function(){c.$anchorChanged=!0,!c.$isEmpty&&!c.$silent&&c._emit("changeSelection")})}return a.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},a.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},a.prototype.getCursor=function(){return this.lead.getPosition()},a.prototype.setAnchor=function(i,c){this.$isEmpty=!1,this.anchor.setPosition(i,c)},a.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},a.prototype.getSelectionLead=function(){return this.lead.getPosition()},a.prototype.isBackwards=function(){var i=this.anchor,c=this.lead;return i.row>c.row||i.row==c.row&&i.column>c.column},a.prototype.getRange=function(){var i=this.anchor,c=this.lead;return this.$isEmpty?o.fromPoints(c,c):this.isBackwards()?o.fromPoints(c,i):o.fromPoints(i,c)},a.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},a.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},a.prototype.setRange=function(i,c){var h=c?i.end:i.start,f=c?i.start:i.end;this.$setSelection(h.row,h.column,f.row,f.column)},a.prototype.$setSelection=function(i,c,h,f){if(!this.$silent){var g=this.$isEmpty,m=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(i,c),this.cursor.setPosition(h,f),this.$isEmpty=!o.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||g!=this.$isEmpty||m)&&this._emit("changeSelection")}},a.prototype.$moveSelection=function(i){var c=this.lead;this.$isEmpty&&this.setSelectionAnchor(c.row,c.column),i.call(this)},a.prototype.selectTo=function(i,c){this.$moveSelection(function(){this.moveCursorTo(i,c)})},a.prototype.selectToPosition=function(i){this.$moveSelection(function(){this.moveCursorToPosition(i)})},a.prototype.moveTo=function(i,c){this.clearSelection(),this.moveCursorTo(i,c)},a.prototype.moveToPosition=function(i){this.clearSelection(),this.moveCursorToPosition(i)},a.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},a.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},a.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},a.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},a.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},a.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},a.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},a.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},a.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},a.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},a.prototype.getWordRange=function(i,c){if(typeof c>"u"){var h=i||this.lead;i=h.row,c=h.column}return this.session.getWordRange(i,c)},a.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},a.prototype.selectAWord=function(){var i=this.getCursor(),c=this.session.getAWordRange(i.row,i.column);this.setSelectionRange(c)},a.prototype.getLineRange=function(i,c){var h=typeof i=="number"?i:this.lead.row,f,g=this.session.getFoldLine(h);return g?(h=g.start.row,f=g.end.row):f=h,c===!0?new o(h,0,f,this.session.getLine(f).length):new o(h,0,f+1,0)},a.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},a.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},a.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},a.prototype.wouldMoveIntoSoftTab=function(i,c,h){var f=i.column,g=i.column+c;return h<0&&(f=i.column-c,g=i.column),this.session.isTabStop(i)&&this.doc.getLine(i.row).slice(f,g).split(" ").length-1==c},a.prototype.moveCursorLeft=function(){var i=this.lead.getPosition(),c;if(c=this.session.getFoldAt(i.row,i.column,-1))this.moveCursorTo(c.start.row,c.start.column);else if(i.column===0)i.row>0&&this.moveCursorTo(i.row-1,this.doc.getLine(i.row-1).length);else{var h=this.session.getTabSize();this.wouldMoveIntoSoftTab(i,h,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-h):this.moveCursorBy(0,-1)}},a.prototype.moveCursorRight=function(){var i=this.lead.getPosition(),c;if(c=this.session.getFoldAt(i.row,i.column,1))this.moveCursorTo(c.end.row,c.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var h=this.session.getTabSize(),i=this.lead;this.wouldMoveIntoSoftTab(i,h,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,h):this.moveCursorBy(0,1)}},a.prototype.moveCursorLineStart=function(){var i=this.lead.row,c=this.lead.column,h=this.session.documentToScreenRow(i,c),f=this.session.screenToDocumentPosition(h,0),g=this.session.getDisplayLine(i,null,f.row,f.column),m=g.match(/^\s*/);m[0].length!=c&&!this.session.$useEmacsStyleLineStart&&(f.column+=m[0].length),this.moveCursorToPosition(f)},a.prototype.moveCursorLineEnd=function(){var i=this.lead,c=this.session.getDocumentLastRowColumnPosition(i.row,i.column);if(this.lead.column==c.column){var h=this.session.getLine(c.row);if(c.column==h.length){var f=h.search(/\s+$/);f>0&&(c.column=f)}}this.moveCursorTo(c.row,c.column)},a.prototype.moveCursorFileEnd=function(){var i=this.doc.getLength()-1,c=this.doc.getLine(i).length;this.moveCursorTo(i,c)},a.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},a.prototype.moveCursorLongWordRight=function(){var i=this.lead.row,c=this.lead.column,h=this.doc.getLine(i),f=h.substring(c);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var g=this.session.getFoldAt(i,c,1);if(g){this.moveCursorTo(g.end.row,g.end.column);return}if(this.session.nonTokenRe.exec(f)&&(c+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,f=h.substring(c)),c>=h.length){this.moveCursorTo(i,h.length),this.moveCursorRight(),i<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(f)&&(c+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(i,c)},a.prototype.moveCursorLongWordLeft=function(){var i=this.lead.row,c=this.lead.column,h;if(h=this.session.getFoldAt(i,c,-1)){this.moveCursorTo(h.start.row,h.start.column);return}var f=this.session.getFoldStringAt(i,c,-1);f==null&&(f=this.doc.getLine(i).substring(0,c));var g=u.stringReverse(f);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(g)&&(c-=this.session.nonTokenRe.lastIndex,g=g.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),c<=0){this.moveCursorTo(i,0),this.moveCursorLeft(),i>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(g)&&(c-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(i,c)},a.prototype.$shortWordEndIndex=function(i){var c=0,h,f=/\s/,g=this.session.tokenRe;if(g.lastIndex=0,this.session.tokenRe.exec(i))c=this.session.tokenRe.lastIndex;else{for(;(h=i[c])&&f.test(h);)c++;if(c<1){for(g.lastIndex=0;(h=i[c])&&!g.test(h);)if(g.lastIndex=0,c++,f.test(h))if(c>2){c--;break}else{for(;(h=i[c])&&f.test(h);)c++;if(c>2)break}}}return g.lastIndex=0,c},a.prototype.moveCursorShortWordRight=function(){var i=this.lead.row,c=this.lead.column,h=this.doc.getLine(i),f=h.substring(c),g=this.session.getFoldAt(i,c,1);if(g)return this.moveCursorTo(g.end.row,g.end.column);if(c==h.length){var m=this.doc.getLength();do i++,f=this.doc.getLine(i);while(i<m&&/^\s*$/.test(f));/^\s+/.test(f)||(f=""),c=0}var v=this.$shortWordEndIndex(f);this.moveCursorTo(i,c+v)},a.prototype.moveCursorShortWordLeft=function(){var i=this.lead.row,c=this.lead.column,h;if(h=this.session.getFoldAt(i,c,-1))return this.moveCursorTo(h.start.row,h.start.column);var f=this.session.getLine(i).substring(0,c);if(c===0){do i--,f=this.doc.getLine(i);while(i>0&&/^\s*$/.test(f));c=f.length,/\s+$/.test(f)||(f="")}var g=u.stringReverse(f),m=this.$shortWordEndIndex(g);return this.moveCursorTo(i,c-m)},a.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},a.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},a.prototype.moveCursorBy=function(i,c){var h=this.session.documentToScreenPosition(this.lead.row,this.lead.column),f;if(c===0&&(i!==0&&(this.session.$bidiHandler.isBidiRow(h.row,this.lead.row)?(f=this.session.$bidiHandler.getPosLeft(h.column),h.column=Math.round(f/this.session.$bidiHandler.charWidths[0])):f=h.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?h.column=this.$desiredColumn:this.$desiredColumn=h.column),i!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var g=this.session.lineWidgets[this.lead.row];i<0?i-=g.rowsAbove||0:i>0&&(i+=g.rowCount-(g.rowsAbove||0))}var m=this.session.screenToDocumentPosition(h.row+i,h.column,f);i!==0&&c===0&&m.row===this.lead.row&&(m.column,this.lead.column),this.moveCursorTo(m.row,m.column+c,c===0)},a.prototype.moveCursorToPosition=function(i){this.moveCursorTo(i.row,i.column)},a.prototype.moveCursorTo=function(i,c,h){var f=this.session.getFoldAt(i,c,1);f&&(i=f.start.row,c=f.start.column),this.$keepDesiredColumnOnChange=!0;var g=this.session.getLine(i);/[\uDC00-\uDFFF]/.test(g.charAt(c))&&g.charAt(c-1)&&(this.lead.row==i&&this.lead.column==c+1?c=c-1:c=c+1),this.lead.setPosition(i,c),this.$keepDesiredColumnOnChange=!1,h||(this.$desiredColumn=null)},a.prototype.moveCursorToScreen=function(i,c,h){var f=this.session.screenToDocumentPosition(i,c);this.moveCursorTo(f.row,f.column,h)},a.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},a.prototype.fromOrientedRange=function(i){this.setSelectionRange(i,i.cursor==i.start),this.$desiredColumn=i.desiredColumn||this.$desiredColumn},a.prototype.toOrientedRange=function(i){var c=this.getRange();return i?(i.start.column=c.start.column,i.start.row=c.start.row,i.end.column=c.end.column,i.end.row=c.end.row):i=c,i.cursor=this.isBackwards()?i.start:i.end,i.desiredColumn=this.$desiredColumn,i},a.prototype.getRangeOfMovements=function(i){var c=this.getCursor();try{i(this);var h=this.getCursor();return o.fromPoints(c,h)}catch{return o.fromPoints(c,c)}finally{this.moveCursorToPosition(c)}},a.prototype.toJSON=function(){if(this.rangeCount)var i=this.ranges.map(function(c){var h=c.clone();return h.isBackwards=c.cursor==c.start,h});else{var i=this.getRange();i.isBackwards=this.isBackwards()}return i},a.prototype.fromJSON=function(i){if(i.start==null)if(this.rangeList&&i.length>1){this.toSingleRange(i[0]);for(var c=i.length;c--;){var h=o.fromPoints(i[c].start,i[c].end);i[c].isBackwards&&(h.cursor=h.start),this.addRange(h,!0)}return}else i=i[0];this.rangeList&&this.toSingleRange(i),this.setSelectionRange(i,i.isBackwards)},a.prototype.isEqual=function(i){if((i.length||this.rangeCount)&&i.length!=this.rangeCount)return!1;if(!i.length||!this.ranges)return this.getRange().isEqual(i);for(var c=this.ranges.length;c--;)if(!this.ranges[c].isEqual(i[c]))return!1;return!0},a}();p.prototype.setSelectionAnchor=p.prototype.setAnchor,p.prototype.getSelectionAnchor=p.prototype.getAnchor,p.prototype.setSelectionRange=p.prototype.setRange,s.implement(p.prototype,d),r.Selection=p}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(n,r,l){var s=n("./lib/report_error").reportError,u=2e3,d=function(){function o(p){this.splitRegex,this.states=p,this.regExps={},this.matchMappings={};for(var a in this.states){for(var i=this.states[a],c=[],h=0,f=this.matchMappings[a]={defaultToken:"text"},g="g",m=[],v=0;v<i.length;v++){var y=i[v];if(y.defaultToken&&(f.defaultToken=y.defaultToken),y.caseInsensitive&&g.indexOf("i")===-1&&(g+="i"),y.unicode&&g.indexOf("u")===-1&&(g+="u"),y.regex!=null){y.regex instanceof RegExp&&(y.regex=y.regex.toString().slice(1,-1));var k=y.regex,C=new RegExp("(?:("+k+")|(.))").exec("a").length-2;Array.isArray(y.token)?y.token.length==1||C==1?y.token=y.token[0]:C-1!=y.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:y,groupCount:C-1}),y.token=y.token[0]):(y.tokenArray=y.token,y.token=null,y.onMatch=this.$arrayTokens):typeof y.token=="function"&&!y.onMatch&&(C>1?y.onMatch=this.$applyToken:y.onMatch=y.token),C>1&&(/\\\d/.test(y.regex)?k=y.regex.replace(/\\([0-9]+)/g,function(S,b){return"\\"+(parseInt(b,10)+h+1)}):(C=1,k=this.removeCapturingGroups(y.regex)),!y.splitRegex&&typeof y.token!="string"&&m.push(y)),f[h]=v,h+=C,c.push(k),y.onMatch||(y.onMatch=null)}}c.length||(f[0]=0,c.push("$")),m.forEach(function(S){S.splitRegex=this.createSplitterRegexp(S.regex,g)},this),this.regExps[a]=new RegExp("("+c.join(")|(")+")|($)",g)}}return o.prototype.$setMaxTokenCount=function(p){u=p|0},o.prototype.$applyToken=function(p){var a=this.splitRegex.exec(p).slice(1),i=this.token.apply(this,a);if(typeof i=="string")return[{type:i,value:p}];for(var c=[],h=0,f=i.length;h<f;h++)a[h]&&(c[c.length]={type:i[h],value:a[h]});return c},o.prototype.$arrayTokens=function(p){if(!p)return[];var a=this.splitRegex.exec(p);if(!a)return"text";for(var i=[],c=this.tokenArray,h=0,f=c.length;h<f;h++)a[h+1]&&(i[i.length]={type:c[h],value:a[h+1]});return i},o.prototype.removeCapturingGroups=function(p){var a=p.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(i,c){return c?"(?:":i});return a},o.prototype.createSplitterRegexp=function(p,a){if(p.indexOf("(?=")!=-1){var i=0,c=!1,h={};p.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(f,g,m,v,y,k){return c?c=y!="]":y?c=!0:v?(i==h.stack&&(h.end=k+1,h.stack=-1),i--):m&&(i++,m.length!=1&&(h.stack=i,h.start=k)),f}),h.end!=null&&/^\)*$/.test(p.substr(h.end))&&(p=p.substring(0,h.start)+p.substr(h.end))}return p.charAt(0)!="^"&&(p="^"+p),p.charAt(p.length-1)!="$"&&(p+="$"),new RegExp(p,(a||"").replace("g",""))},o.prototype.getLineTokens=function(p,a){if(a&&typeof a!="string"){var i=a.slice(0);a=i[0],a==="#tmp"&&(i.shift(),a=i.shift())}else var i=[];var c=a||"start",h=this.states[c];h||(c="start",h=this.states[c]);var f=this.matchMappings[c],g=this.regExps[c];g.lastIndex=0;for(var m,v=[],y=0,k=0,C={type:null,value:""};m=g.exec(p);){var S=f.defaultToken,b=null,E=m[0],L=g.lastIndex;if(L-E.length>y){var x=p.substring(y,L-E.length);C.type==S?C.value+=x:(C.type&&v.push(C),C={type:S,value:x})}for(var M=0;M<m.length-2;M++)if(m[M+1]!==void 0){b=h[f[M]],b.onMatch?S=b.onMatch(E,c,i,p):S=b.token,b.next&&(typeof b.next=="string"?c=b.next:c=b.next(c,i),h=this.states[c],h||(this.reportError("state doesn't exist",c),c="start",h=this.states[c]),f=this.matchMappings[c],y=L,g=this.regExps[c],g.lastIndex=L),b.consumeLineEnd&&(y=L);break}if(E){if(typeof S=="string")(!b||b.merge!==!1)&&C.type===S?C.value+=E:(C.type&&v.push(C),C={type:S,value:E});else if(S){C.type&&v.push(C),C={type:null,value:""};for(var M=0;M<S.length;M++)v.push(S[M])}}if(y==p.length)break;if(y=L,k++>u){for(k>2*p.length&&this.reportError("infinite loop with in ace tokenizer",{startState:a,line:p});y<p.length;)C.type&&v.push(C),C={value:p.substring(y,y+=500),type:"overflow"};c="start",i=[];break}}return C.type&&v.push(C),i.length>1&&i[0]!==c&&i.unshift("#tmp",c),{tokens:v,state:i.length?i:c}},o}();d.prototype.reportError=s,r.Tokenizer=d}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(n,r,l){var s=n("../lib/deep_copy").deepCopy,u;u=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},(function(){this.addRules=function(p,a){if(!a){for(var i in p)this.$rules[i]=p[i];return}for(var i in p){for(var c=p[i],h=0;h<c.length;h++){var f=c[h];(f.next||f.onMatch)&&(typeof f.next=="string"&&f.next.indexOf(a)!==0&&(f.next=a+f.next),f.nextState&&f.nextState.indexOf(a)!==0&&(f.nextState=a+f.nextState))}this.$rules[a+i]=c}},this.getRules=function(){return this.$rules},this.embedRules=function(p,a,i,c,h){var f=typeof p=="function"?new p().getRules():p;if(c)for(var g=0;g<c.length;g++)c[g]=a+c[g];else{c=[];for(var m in f)c.push(a+m)}if(this.addRules(f,a),i)for(var v=Array.prototype[h?"push":"unshift"],g=0;g<c.length;g++)v.apply(this.$rules[c[g]],s(i));this.$embeds||(this.$embeds=[]),this.$embeds.push(a)},this.getEmbeds=function(){return this.$embeds};var d=function(p,a){return(p!="start"||a.length)&&a.unshift(this.nextState,p),this.nextState},o=function(p,a){return a.shift(),a.shift()||"start"};this.normalizeRules=function(){var p=0,a=this.$rules;function i(c){var h=a[c];h.processed=!0;for(var f=0;f<h.length;f++){var g=h[f],m=null;Array.isArray(g)&&(m=g,g={}),!g.regex&&g.start&&(g.regex=g.start,g.next||(g.next=[]),g.next.push({defaultToken:g.token},{token:g.token+".end",regex:g.end||g.start,next:"pop"}),g.token=g.token+".start",g.push=!0);var v=g.next||g.push;if(v&&Array.isArray(v)){var y=g.stateName;y||(y=g.token,typeof y!="string"&&(y=y[0]||""),a[y]&&(y+=p++)),a[y]=v,g.next=y,i(y)}else v=="pop"&&(g.next=o);if(g.push&&(g.nextState=g.next||g.push,g.next=d,delete g.push),g.rules)for(var k in g.rules)a[k]?a[k].push&&a[k].push.apply(a[k],g.rules[k]):a[k]=g.rules[k];var C=typeof g=="string"?g:g.include;if(C&&(C==="$self"&&(C="start"),Array.isArray(C)?m=C.map(function(b){return a[b]}):m=a[C]),m){var S=[f,1].concat(m);g.noEscape&&(S=S.filter(function(b){return!b.next})),h.splice.apply(h,S),f--}g.keywordMap&&(g.token=this.createKeywordMapper(g.keywordMap,g.defaultToken||"text",g.caseInsensitive),delete g.defaultToken)}}Object.keys(a).forEach(i,this)},this.createKeywordMapper=function(p,a,i,c){var h=Object.create(null);return this.$keywordList=[],Object.keys(p).forEach(function(f){for(var g=p[f],m=g.split(c||"|"),v=m.length;v--;){var y=m[v];this.$keywordList.push(y),i&&(y=y.toLowerCase()),h[y]=f}},this),p=null,i?function(f){return h[f.toLowerCase()]||a}:function(f){return h[f]||a}},this.getKeywords=function(){return this.$keywords}}).call(u.prototype),r.TextHighlightRules=u}),ace.define("ace/mode/behaviour",["require","exports","module"],function(n,r,l){var s;s=function(){this.$behaviours={}},(function(){this.add=function(u,d,o){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[u]:this.$behaviours[u]={}}this.$behaviours[u][d]=o},this.addBehaviours=function(u){for(var d in u)for(var o in u[d])this.add(d,o,u[d][o])},this.remove=function(u){this.$behaviours&&this.$behaviours[u]&&delete this.$behaviours[u]},this.inherit=function(u,d){if(typeof u=="function")var o=new u().getBehaviours(d);else var o=u.getBehaviours(d);this.addBehaviours(o)},this.getBehaviours=function(u){if(u){for(var d={},o=0;o<u.length;o++)this.$behaviours[u[o]]&&(d[u[o]]=this.$behaviours[u[o]]);return d}else return this.$behaviours}}).call(s.prototype),r.Behaviour=s}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(n,r,l){var s=n("./range").Range,u=function(){function d(o,p,a){this.$session=o,this.$row=p,this.$rowTokens=o.getTokens(p);var i=o.getTokenAt(p,a);this.$tokenIndex=i?i.index:-1}return d.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]},d.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]},d.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},d.prototype.getCurrentTokenRow=function(){return this.$row},d.prototype.getCurrentTokenColumn=function(){var o=this.$rowTokens,p=this.$tokenIndex,a=o[p].start;if(a!==void 0)return a;for(a=0;p>0;)p-=1,a+=o[p].value.length;return a},d.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},d.prototype.getCurrentTokenRange=function(){var o=this.$rowTokens[this.$tokenIndex],p=this.getCurrentTokenColumn();return new s(this.$row,p,this.$row,p+o.value.length)},d}();r.TokenIterator=u}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(n,r,l){var s=n("../../lib/oop"),u=n("../behaviour").Behaviour,d=n("../../token_iterator").TokenIterator,o=n("../../lib/lang"),p=["text","paren.rparen","rparen","paren","punctuation.operator"],a=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],i,c={},h={'"':'"',"'":"'"},f=function(v){var y=-1;if(v.multiSelect&&(y=v.selection.index,c.rangeCount!=v.multiSelect.rangeCount&&(c={rangeCount:v.multiSelect.rangeCount})),c[y])return i=c[y];i=c[y]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},g=function(v,y,k,C){var S=v.end.row-v.start.row;return{text:k+y+C,selection:[0,v.start.column+1,S,v.end.column+(S?0:1)]}},m;m=function(v){v=v||{},this.add("braces","insertion",function(y,k,C,S,b){var E=C.getCursorPosition(),L=S.doc.getLine(E.row);if(b=="{"){f(C);var x=C.getSelectionRange(),M=S.doc.getTextRange(x);if(M!==""&&M!=="{"&&C.getWrapBehavioursEnabled())return g(x,M,"{","}");if(m.isSaneInsertion(C,S))return/[\]\}\)]/.test(L[E.column])||C.inMultiSelectMode||v.braces?(m.recordAutoInsert(C,S,"}"),{text:"{}",selection:[1,1]}):(m.recordMaybeInsert(C,S,"{"),{text:"{",selection:[1,1]})}else if(b=="}"){f(C);var _=L.substring(E.column,E.column+1);if(_=="}"){var A=S.$findOpeningBracket("}",{column:E.column+1,row:E.row});if(A!==null&&m.isAutoInsertedClosing(E,L,b))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(b==`
1017
+ `||b==`\r
1018
+ `){f(C);var $="";m.isMaybeInsertedClosing(E,L)&&($=o.stringRepeat("}",i.maybeInsertedBrackets),m.clearMaybeInsertedClosing());var _=L.substring(E.column,E.column+1);if(_==="}"){var w=S.findMatchingBracket({row:E.row,column:E.column+1},"}");if(!w)return null;var R=this.$getIndent(S.getLine(w.row))}else if($)var R=this.$getIndent(L);else{m.clearMaybeInsertedClosing();return}var T=R+S.getTabString();return{text:`
1019
+ `+T+`
1020
+ `+R+$,selection:[1,T.length,1,T.length]}}else m.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(y,k,C,S,b){var E=S.doc.getTextRange(b);if(!b.isMultiLine()&&E=="{"){f(C);var L=S.doc.getLine(b.start.row),x=L.substring(b.end.column,b.end.column+1);if(x=="}")return b.end.column++,b;i.maybeInsertedBrackets--}}),this.add("parens","insertion",function(y,k,C,S,b){if(b=="("){f(C);var E=C.getSelectionRange(),L=S.doc.getTextRange(E);if(L!==""&&C.getWrapBehavioursEnabled())return g(E,L,"(",")");if(m.isSaneInsertion(C,S))return m.recordAutoInsert(C,S,")"),{text:"()",selection:[1,1]}}else if(b==")"){f(C);var x=C.getCursorPosition(),M=S.doc.getLine(x.row),_=M.substring(x.column,x.column+1);if(_==")"){var A=S.$findOpeningBracket(")",{column:x.column+1,row:x.row});if(A!==null&&m.isAutoInsertedClosing(x,M,b))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(y,k,C,S,b){var E=S.doc.getTextRange(b);if(!b.isMultiLine()&&E=="("){f(C);var L=S.doc.getLine(b.start.row),x=L.substring(b.start.column+1,b.start.column+2);if(x==")")return b.end.column++,b}}),this.add("brackets","insertion",function(y,k,C,S,b){if(b=="["){f(C);var E=C.getSelectionRange(),L=S.doc.getTextRange(E);if(L!==""&&C.getWrapBehavioursEnabled())return g(E,L,"[","]");if(m.isSaneInsertion(C,S))return m.recordAutoInsert(C,S,"]"),{text:"[]",selection:[1,1]}}else if(b=="]"){f(C);var x=C.getCursorPosition(),M=S.doc.getLine(x.row),_=M.substring(x.column,x.column+1);if(_=="]"){var A=S.$findOpeningBracket("]",{column:x.column+1,row:x.row});if(A!==null&&m.isAutoInsertedClosing(x,M,b))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(y,k,C,S,b){var E=S.doc.getTextRange(b);if(!b.isMultiLine()&&E=="["){f(C);var L=S.doc.getLine(b.start.row),x=L.substring(b.start.column+1,b.start.column+2);if(x=="]")return b.end.column++,b}}),this.add("string_dquotes","insertion",function(y,k,C,S,b){var E=S.$mode.$quotes||h;if(b.length==1&&E[b]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(b)!=-1)return;f(C);var L=b,x=C.getSelectionRange(),M=S.doc.getTextRange(x);if(M!==""&&(M.length!=1||!E[M])&&C.getWrapBehavioursEnabled())return g(x,M,L,L);if(!M){var _=C.getCursorPosition(),A=S.doc.getLine(_.row),$=A.substring(_.column-1,_.column),w=A.substring(_.column,_.column+1),R=S.getTokenAt(_.row,_.column),T=S.getTokenAt(_.row,_.column+1);if($=="\\"&&R&&/escape/.test(R.type))return null;var O=R&&/string|escape/.test(R.type),I=!T||/string|escape/.test(T.type),N;if(w==L)N=O!==I,N&&/string\.end/.test(T.type)&&(N=!1);else{if(O&&!I||O&&I)return null;var P=S.$mode.tokenRe;P.lastIndex=0;var W=P.test($);P.lastIndex=0;var j=P.test(w),V=S.$mode.$pairQuotesAfter,H=V&&V[L]&&V[L].test($);if(!H&&W||j||w&&!/[\s;,.})\]\\]/.test(w))return null;var G=A[_.column-2];if($==L&&(G==L||P.test(G)))return null;N=!0}return{text:N?L+L:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(y,k,C,S,b){var E=S.$mode.$quotes||h,L=S.doc.getTextRange(b);if(!b.isMultiLine()&&E.hasOwnProperty(L)){f(C);var x=S.doc.getLine(b.start.row),M=x.substring(b.start.column+1,b.start.column+2);if(M==L)return b.end.column++,b}}),v.closeDocComment!==!1&&this.add("doc comment end","insertion",function(y,k,C,S,b){if(y==="doc-start"&&(b===`
1021
+ `||b===`\r
1022
+ `)&&C.selection.isEmpty()){var E=C.getCursorPosition(),L=S.doc.getLine(E.row),x=S.doc.getLine(E.row+1),M=this.$getIndent(L);if(/\s*\*/.test(x))return/^\s*\*/.test(L)?{text:b+M+"* ",selection:[1,3+M.length,1,3+M.length]}:{text:b+M+" * ",selection:[1,3+M.length,1,3+M.length]};if(/\/\*\*/.test(L.substring(0,E.column)))return{text:b+M+" * "+b+" "+M+"*/",selection:[1,4+M.length,1,4+M.length]}}})},m.isSaneInsertion=function(v,y){var k=v.getCursorPosition(),C=new d(y,k.row,k.column);if(!this.$matchTokenType(C.getCurrentToken()||"text",p)){if(/[)}\]]/.test(v.session.getLine(k.row)[k.column]))return!0;var S=new d(y,k.row,k.column+1);if(!this.$matchTokenType(S.getCurrentToken()||"text",p))return!1}return C.stepForward(),C.getCurrentTokenRow()!==k.row||this.$matchTokenType(C.getCurrentToken()||"text",a)},m.$matchTokenType=function(v,y){return y.indexOf(v.type||v)>-1},m.recordAutoInsert=function(v,y,k){var C=v.getCursorPosition(),S=y.doc.getLine(C.row);this.isAutoInsertedClosing(C,S,i.autoInsertedLineEnd[0])||(i.autoInsertedBrackets=0),i.autoInsertedRow=C.row,i.autoInsertedLineEnd=k+S.substr(C.column),i.autoInsertedBrackets++},m.recordMaybeInsert=function(v,y,k){var C=v.getCursorPosition(),S=y.doc.getLine(C.row);this.isMaybeInsertedClosing(C,S)||(i.maybeInsertedBrackets=0),i.maybeInsertedRow=C.row,i.maybeInsertedLineStart=S.substr(0,C.column)+k,i.maybeInsertedLineEnd=S.substr(C.column),i.maybeInsertedBrackets++},m.isAutoInsertedClosing=function(v,y,k){return i.autoInsertedBrackets>0&&v.row===i.autoInsertedRow&&k===i.autoInsertedLineEnd[0]&&y.substr(v.column)===i.autoInsertedLineEnd},m.isMaybeInsertedClosing=function(v,y){return i.maybeInsertedBrackets>0&&v.row===i.maybeInsertedRow&&y.substr(v.column)===i.maybeInsertedLineEnd&&y.substr(0,v.column)==i.maybeInsertedLineStart},m.popAutoInsertedClosing=function(){i.autoInsertedLineEnd=i.autoInsertedLineEnd.substr(1),i.autoInsertedBrackets--},m.clearMaybeInsertedClosing=function(){i&&(i.maybeInsertedBrackets=0,i.maybeInsertedRow=-1)},s.inherits(m,u),r.CstyleBehaviour=m}),ace.define("ace/unicode",["require","exports","module"],function(n,r,l){for(var s=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],u=0,d=[],o=0;o<s.length;o+=2)d.push(u+=s[o]),s[o+1]&&d.push(45,u+=s[o+1]);r.wordChars=String.fromCharCode.apply(null,d)}),ace.define("ace/mode/text",["require","exports","module","ace/config","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],function(n,r,l){var s=n("../config"),u=n("../tokenizer").Tokenizer,d=n("./text_highlight_rules").TextHighlightRules,o=n("./behaviour/cstyle").CstyleBehaviour,p=n("../unicode"),a=n("../lib/lang"),i=n("../token_iterator").TokenIterator,c=n("../range").Range,h;h=function(){this.HighlightRules=d},(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 u(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(f,g,m,v){var y=g.doc,k=!0,C=!0,S=1/0,b=g.getTabSize(),E=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var M=this.lineCommentStart.map(a.escapeRegExp).join("|"),L=this.lineCommentStart[0];else var M=a.escapeRegExp(this.lineCommentStart),L=this.lineCommentStart;M=new RegExp("^(\\s*)(?:"+M+") ?"),E=g.getUseSoftTabs();var $=function(j,V){var H=j.match(M);if(H){var G=H[1].length,Q=H[0].length;!T(j,G,Q)&&H[0][Q-1]==" "&&Q--,y.removeInLine(V,G,Q)}},R=L+" ",A=function(j,V){(!k||/\S/.test(j))&&(T(j,S,S)?y.insertInLine({row:V,column:S},R):y.insertInLine({row:V,column:S},L))},w=function(j,V){return M.test(j)},T=function(j,V,H){for(var G=0;V--&&j.charAt(V)==" ";)G++;if(G%b!=0)return!1;for(var G=0;j.charAt(H++)==" ";)G++;return b>2?G%b!=b-1:G%b==0}}else{if(!this.blockComment)return!1;var L=this.blockComment.start,x=this.blockComment.end,M=new RegExp("^(\\s*)(?:"+a.escapeRegExp(L)+")"),_=new RegExp("(?:"+a.escapeRegExp(x)+")\\s*$"),A=function(N,P){w(N,P)||(!k||/\S/.test(N))&&(y.insertInLine({row:P,column:N.length},x),y.insertInLine({row:P,column:S},L))},$=function(N,P){var W;(W=N.match(_))&&y.removeInLine(P,N.length-W[0].length,N.length),(W=N.match(M))&&y.removeInLine(P,W[1].length,W[0].length)},w=function(N,P){if(M.test(N))return!0;for(var W=g.getTokens(P),j=0;j<W.length;j++)if(W[j].type==="comment")return!0}}function O(N){for(var P=m;P<=v;P++)N(y.getLine(P),P)}var I=1/0;O(function(N,P){var W=N.search(/\S/);W!==-1?(W<S&&(S=W),C&&!w(N,P)&&(C=!1)):I>N.length&&(I=N.length)}),S==1/0&&(S=I,k=!1,C=!1),E&&S%b!=0&&(S=Math.floor(S/b)*b),O(C?$:A)},this.toggleBlockComment=function(f,g,m,v){var y=this.blockComment;if(y){!y.start&&y[0]&&(y=y[0]);var k=new i(g,v.row,v.column),C=k.getCurrentToken();g.selection;var S=g.selection.toOrientedRange(),b,E;if(C&&/comment/.test(C.type)){for(var L,x;C&&/comment/.test(C.type);){var M=C.value.indexOf(y.start);if(M!=-1){var _=k.getCurrentTokenRow(),A=k.getCurrentTokenColumn()+M;L=new c(_,A,_,A+y.start.length);break}C=k.stepBackward()}for(var k=new i(g,v.row,v.column),C=k.getCurrentToken();C&&/comment/.test(C.type);){var M=C.value.indexOf(y.end);if(M!=-1){var _=k.getCurrentTokenRow(),A=k.getCurrentTokenColumn()+M;x=new c(_,A,_,A+y.end.length);break}C=k.stepForward()}x&&g.remove(x),L&&(g.remove(L),b=L.start.row,E=-y.start.length)}else E=y.start.length,b=m.start.row,g.insert(m.end,y.end),g.insert(m.start,y.start);S.start.row==b&&(S.start.column+=E),S.end.row==b&&(S.end.column+=E),g.selection.fromOrientedRange(S)}},this.getNextLineIndent=function(f,g,m){return this.$getIndent(g)},this.checkOutdent=function(f,g,m){return!1},this.autoOutdent=function(f,g,m){},this.$getIndent=function(f){return f.match(/^\s*/)[0]},this.createWorker=function(f){return null},this.createModeDelegates=function(f){this.$embeds=[],this.$modes={};for(var g in f)if(f[g]){var m=f[g],v=m.prototype.$id,y=s.$modes[v];y||(s.$modes[v]=y=new m),s.$modes[g]||(s.$modes[g]=y),this.$embeds.push(g),this.$modes[g]=y}for(var k=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],C=function(b){(function(E){var L=k[b],x=E[L];E[k[b]]=function(){return this.$delegator(L,arguments,x)}})(S)},S=this,g=0;g<k.length;g++)C(g)},this.$delegator=function(f,g,m){var v=g[0]||"start";if(typeof v!="string"){if(Array.isArray(v[2])){var y=v[2][v[2].length-1],k=this.$modes[y];if(k)return k[f].apply(k,[v[1]].concat([].slice.call(g,1)))}v=v[0]||"start"}for(var C=0;C<this.$embeds.length;C++)if(this.$modes[this.$embeds[C]]){var S=v.split(this.$embeds[C]);if(!S[0]&&S[1]){g[0]=S[1];var k=this.$modes[this.$embeds[C]];return k[f].apply(k,g)}}var b=m.apply(this,g);return m?b:void 0},this.transformAction=function(f,g,m,v,y){if(this.$behaviour){var k=this.$behaviour.getBehaviours();for(var C in k)if(k[C][g]){var S=k[C][g].apply(this,arguments);if(S)return S}}},this.getKeywords=function(f){if(!this.completionKeywords){var g=this.$tokenizer.rules,m=[];for(var v in g)for(var y=g[v],k=0,C=y.length;k<C;k++)if(typeof y[k].token=="string")/keyword|support|storage/.test(y[k].token)&&m.push(y[k].regex);else if(typeof y[k].token=="object"){for(var S=0,b=y[k].token.length;S<b;S++)if(/keyword|support|storage/.test(y[k].token[S])){var v=y[k].regex.match(/\(.+?\)/g)[S];m.push(v.substr(1,v.length-2))}}this.completionKeywords=m}return f?m.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(f,g,m,v){var y=this.$keywordList||this.$createKeywordList();return y.map(function(k){return{name:k,value:k,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call(h.prototype),r.Mode=h}),ace.define("ace/apply_delta",["require","exports","module"],function(n,r,l){r.applyDelta=function(s,u,d){var o=u.start.row,p=u.start.column,a=s[o]||"";switch(u.action){case"insert":var i=u.lines;if(i.length===1)s[o]=a.substring(0,p)+u.lines[0]+a.substring(p);else{var c=[o,1].concat(u.lines);s.splice.apply(s,c),s[o]=a.substring(0,p)+s[o],s[o+u.lines.length-1]+=a.substring(p)}break;case"remove":var h=u.end.column,f=u.end.row;o===f?s[o]=a.substring(0,p)+a.substring(h):s.splice(o,f-o+1,a.substring(0,p)+s[f].substring(h));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(n,r,l){var s=n("./lib/oop"),u=n("./lib/event_emitter").EventEmitter,d=function(){function a(i,c,h){this.$onChange=this.onChange.bind(this),this.attach(i),typeof c!="number"?this.setPosition(c.row,c.column):this.setPosition(c,h)}return a.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},a.prototype.getDocument=function(){return this.document},a.prototype.onChange=function(i){if(!(i.start.row==i.end.row&&i.start.row!=this.row)&&!(i.start.row>this.row)){var c=p(i,{row:this.row,column:this.column},this.$insertRight);this.setPosition(c.row,c.column,!0)}},a.prototype.setPosition=function(i,c,h){var f;if(h?f={row:i,column:c}:f=this.$clipPositionToDocument(i,c),!(this.row==f.row&&this.column==f.column)){var g={row:this.row,column:this.column};this.row=f.row,this.column=f.column,this._signal("change",{old:g,value:f})}},a.prototype.detach=function(){this.document.off("change",this.$onChange)},a.prototype.attach=function(i){this.document=i||this.document,this.document.on("change",this.$onChange)},a.prototype.$clipPositionToDocument=function(i,c){var h={};return i>=this.document.getLength()?(h.row=Math.max(0,this.document.getLength()-1),h.column=this.document.getLine(h.row).length):i<0?(h.row=0,h.column=0):(h.row=i,h.column=Math.min(this.document.getLine(h.row).length,Math.max(0,c))),c<0&&(h.column=0),h},a}();d.prototype.$insertRight=!1,s.implement(d.prototype,u);function o(a,i,c){var h=c?a.column<=i.column:a.column<i.column;return a.row<i.row||a.row==i.row&&h}function p(a,i,c){var h=a.action=="insert",f=(h?1:-1)*(a.end.row-a.start.row),g=(h?1:-1)*(a.end.column-a.start.column),m=a.start,v=h?m:a.end;return o(i,m,c)?{row:i.row,column:i.column}:o(v,i,!c)?{row:i.row+f,column:i.column+(i.row==v.row?g:0)}:{row:m.row,column:m.column}}r.Anchor=d}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(n,r,l){var s=n("./lib/oop"),u=n("./apply_delta").applyDelta,d=n("./lib/event_emitter").EventEmitter,o=n("./range").Range,p=n("./anchor").Anchor,a=function(){function i(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 i.prototype.setValue=function(c){var h=this.getLength()-1;this.remove(new o(0,0,h,this.getLine(h).length)),this.insert({row:0,column:0},c||"")},i.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},i.prototype.createAnchor=function(c,h){return new p(this,c,h)},i.prototype.$detectNewLine=function(c){var h=c.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=h?h[1]:`
1023
+ `,this._signal("changeNewLineMode")},i.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
1024
+ `;case"unix":return`
1025
+ `;default:return this.$autoNewLine||`
1026
+ `}},i.prototype.setNewLineMode=function(c){this.$newLineMode!==c&&(this.$newLineMode=c,this._signal("changeNewLineMode"))},i.prototype.getNewLineMode=function(){return this.$newLineMode},i.prototype.isNewLine=function(c){return c==`\r
1027
+ `||c=="\r"||c==`
1028
+ `},i.prototype.getLine=function(c){return this.$lines[c]||""},i.prototype.getLines=function(c,h){return this.$lines.slice(c,h+1)},i.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},i.prototype.getLength=function(){return this.$lines.length},i.prototype.getTextRange=function(c){return this.getLinesForRange(c).join(this.getNewLineCharacter())},i.prototype.getLinesForRange=function(c){var h;if(c.start.row===c.end.row)h=[this.getLine(c.start.row).substring(c.start.column,c.end.column)];else{h=this.getLines(c.start.row,c.end.row),h[0]=(h[0]||"").substring(c.start.column);var f=h.length-1;c.end.row-c.start.row==f&&(h[f]=h[f].substring(0,c.end.column))}return h},i.prototype.insertLines=function(c,h){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(c,h)},i.prototype.removeLines=function(c,h){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(c,h)},i.prototype.insertNewLine=function(c){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(c,["",""])},i.prototype.insert=function(c,h){return this.getLength()<=1&&this.$detectNewLine(h),this.insertMergedLines(c,this.$split(h))},i.prototype.insertInLine=function(c,h){var f=this.clippedPos(c.row,c.column),g=this.pos(c.row,c.column+h.length);return this.applyDelta({start:f,end:g,action:"insert",lines:[h]},!0),this.clonePos(g)},i.prototype.clippedPos=function(c,h){var f=this.getLength();c===void 0?c=f:c<0?c=0:c>=f&&(c=f-1,h=void 0);var g=this.getLine(c);return h==null&&(h=g.length),h=Math.min(Math.max(h,0),g.length),{row:c,column:h}},i.prototype.clonePos=function(c){return{row:c.row,column:c.column}},i.prototype.pos=function(c,h){return{row:c,column:h}},i.prototype.$clipPosition=function(c){var h=this.getLength();return c.row>=h?(c.row=Math.max(0,h-1),c.column=this.getLine(h-1).length):(c.row=Math.max(0,c.row),c.column=Math.min(Math.max(c.column,0),this.getLine(c.row).length)),c},i.prototype.insertFullLines=function(c,h){c=Math.min(Math.max(c,0),this.getLength());var f=0;c<this.getLength()?(h=h.concat([""]),f=0):(h=[""].concat(h),c--,f=this.$lines[c].length),this.insertMergedLines({row:c,column:f},h)},i.prototype.insertMergedLines=function(c,h){var f=this.clippedPos(c.row,c.column),g={row:f.row+h.length-1,column:(h.length==1?f.column:0)+h[h.length-1].length};return this.applyDelta({start:f,end:g,action:"insert",lines:h}),this.clonePos(g)},i.prototype.remove=function(c){var h=this.clippedPos(c.start.row,c.start.column),f=this.clippedPos(c.end.row,c.end.column);return this.applyDelta({start:h,end:f,action:"remove",lines:this.getLinesForRange({start:h,end:f})}),this.clonePos(h)},i.prototype.removeInLine=function(c,h,f){var g=this.clippedPos(c,h),m=this.clippedPos(c,f);return this.applyDelta({start:g,end:m,action:"remove",lines:this.getLinesForRange({start:g,end:m})},!0),this.clonePos(g)},i.prototype.removeFullLines=function(c,h){c=Math.min(Math.max(0,c),this.getLength()-1),h=Math.min(Math.max(0,h),this.getLength()-1);var f=h==this.getLength()-1&&c>0,g=h<this.getLength()-1,m=f?c-1:c,v=f?this.getLine(m).length:0,y=g?h+1:h,k=g?0:this.getLine(y).length,C=new o(m,v,y,k),S=this.$lines.slice(c,h+1);return this.applyDelta({start:C.start,end:C.end,action:"remove",lines:this.getLinesForRange(C)}),S},i.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:["",""]})},i.prototype.replace=function(c,h){if(c instanceof o||(c=o.fromPoints(c.start,c.end)),h.length===0&&c.isEmpty())return c.start;if(h==this.getTextRange(c))return c.end;this.remove(c);var f;return h?f=this.insert(c.start,h):f=c.start,f},i.prototype.applyDeltas=function(c){for(var h=0;h<c.length;h++)this.applyDelta(c[h])},i.prototype.revertDeltas=function(c){for(var h=c.length-1;h>=0;h--)this.revertDelta(c[h])},i.prototype.applyDelta=function(c,h){var f=c.action=="insert";(f?c.lines.length<=1&&!c.lines[0]:!o.comparePoints(c.start,c.end))||(f&&c.lines.length>2e4?this.$splitAndapplyLargeDelta(c,2e4):(u(this.$lines,c,h),this._signal("change",c)))},i.prototype.$safeApplyDelta=function(c){var h=this.$lines.length;(c.action=="remove"&&c.start.row<h&&c.end.row<h||c.action=="insert"&&c.start.row<=h)&&this.applyDelta(c)},i.prototype.$splitAndapplyLargeDelta=function(c,h){for(var f=c.lines,g=f.length-h+1,m=c.start.row,v=c.start.column,y=0,k=0;y<g;y=k){k+=h-1;var C=f.slice(y,k);C.push(""),this.applyDelta({start:this.pos(m+y,v),end:this.pos(m+k,v=0),action:c.action,lines:C},!0)}c.lines=f.slice(y),c.start.row=m+y,c.start.column=v,this.applyDelta(c,!0)},i.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()})},i.prototype.indexToPosition=function(c,h){for(var f=this.$lines||this.getAllLines(),g=this.getNewLineCharacter().length,m=h||0,v=f.length;m<v;m++)if(c-=f[m].length+g,c<0)return{row:m,column:c+f[m].length+g};return{row:v-1,column:c+f[v-1].length+g}},i.prototype.positionToIndex=function(c,h){for(var f=this.$lines||this.getAllLines(),g=this.getNewLineCharacter().length,m=0,v=Math.min(c.row,f.length),y=h||0;y<v;++y)m+=f[y].length+g;return m+c.column},i.prototype.$split=function(c){return c.split(/\r\n|\r|\n/)},i}();a.prototype.$autoNewLine="",a.prototype.$newLineMode="auto",s.implement(a.prototype,d),r.Document=a}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(n,r,l){var s=n("./lib/oop"),u=n("./lib/event_emitter").EventEmitter,d=function(){function o(p,a){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=p;var i=this;this.$worker=function(){if(i.running){for(var c=new Date,h=i.currentLine,f=-1,g=i.doc,m=h;i.lines[h];)h++;var v=g.getLength(),y=0;for(i.running=!1;h<v;){i.$tokenizeRow(h),f=h;do h++;while(i.lines[h]);if(y++,y%5===0&&new Date-c>20){i.running=setTimeout(i.$worker,20);break}}i.currentLine=h,f==-1&&(f=h),m<=f&&i.fireUpdateEvent(m,f)}}}return o.prototype.setTokenizer=function(p){this.tokenizer=p,this.lines=[],this.states=[],this.start(0)},o.prototype.setDocument=function(p){this.doc=p,this.lines=[],this.states=[],this.stop()},o.prototype.fireUpdateEvent=function(p,a){var i={first:p,last:a};this._signal("update",{data:i})},o.prototype.start=function(p){this.currentLine=Math.min(p||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},o.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},o.prototype.$updateOnChange=function(p){var a=p.start.row,i=p.end.row-a;if(i===0)this.lines[a]=null;else if(p.action=="remove")this.lines.splice(a,i+1,null),this.states.splice(a,i+1,null);else{var c=Array(i+1);c.unshift(a,1),this.lines.splice.apply(this.lines,c),this.states.splice.apply(this.states,c)}this.currentLine=Math.min(a,this.currentLine,this.doc.getLength()),this.stop()},o.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},o.prototype.getTokens=function(p){return this.lines[p]||this.$tokenizeRow(p)},o.prototype.getState=function(p){return this.currentLine==p&&this.$tokenizeRow(p),this.states[p]||"start"},o.prototype.$tokenizeRow=function(p){var a=this.doc.getLine(p),i=this.states[p-1],c=this.tokenizer.getLineTokens(a,i,p);return this.states[p]+""!=c.state+""?(this.states[p]=c.state,this.lines[p+1]=null,this.currentLine>p+1&&(this.currentLine=p+1)):this.currentLine==p&&(this.currentLine=p+1),this.lines[p]=c.tokens},o.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},o}();s.implement(d.prototype,u),r.BackgroundTokenizer=d}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(n,r,l){var s=n("./lib/lang"),u=n("./range").Range,d=function(){function o(p,a,i){i===void 0&&(i="text"),this.setRegexp(p),this.clazz=a,this.type=i}return o.prototype.setRegexp=function(p){this.regExp+""!=p+""&&(this.regExp=p,this.cache=[])},o.prototype.update=function(p,a,i,c){if(this.regExp)for(var h=c.firstRow,f=c.lastRow,g={},m=h;m<=f;m++){var v=this.cache[m];v==null&&(v=s.getMatchOffsets(i.getLine(m),this.regExp),v.length>this.MAX_RANGES&&(v=v.slice(0,this.MAX_RANGES)),v=v.map(function(S){return new u(m,S.offset,m,S.offset+S.length)}),this.cache[m]=v.length?v:"");for(var y=v.length;y--;){var k=v[y].toScreenRange(i),C=k.toString();g[C]||(g[C]=!0,a.drawSingleLineMarker(p,k,this.clazz,c))}}},o}();d.prototype.MAX_RANGES=500,r.SearchHighlight=d}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(n,r,l){var s=function(){function S(){this.$keepRedoStack,this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return S.prototype.addSession=function(b){this.$session=b},S.prototype.add=function(b,E,L){if(!this.$fromUndo&&b!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),E===!1||!this.lastDeltas){this.lastDeltas=[];var x=this.$undoStack.length;x>this.$undoDepth-1&&this.$undoStack.splice(0,x-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),b.id=this.$rev=++this.$maxRev}(b.action=="remove"||b.action=="insert")&&(this.$lastDelta=b),this.lastDeltas.push(b)}},S.prototype.addSelection=function(b,E){this.selections.push({value:b,rev:E||this.$rev})},S.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},S.prototype.markIgnored=function(b,E){E==null&&(E=this.$rev+1);for(var L=this.$undoStack,x=L.length;x--;){var M=L[x][0];if(M.id<=b)break;M.id<E&&(M.ignore=!0)}this.lastDeltas=null},S.prototype.getSelection=function(b,E){for(var L=this.selections,x=L.length;x--;){var M=L[x];if(M.rev<b)return E&&(M=L[x+1]),M}},S.prototype.getRevision=function(){return this.$rev},S.prototype.getDeltas=function(b,E){E==null&&(E=this.$rev+1);for(var L=this.$undoStack,x=null,M=0,_=L.length;_--;){var A=L[_][0];if(A.id<E&&!x&&(x=_+1),A.id<=b){M=_+1;break}}return L.slice(M,x)},S.prototype.getChangedRanges=function(b,E){E==null&&(E=this.$rev+1)},S.prototype.getChangedLines=function(b,E){E==null&&(E=this.$rev+1)},S.prototype.undo=function(b,E){this.lastDeltas=null;var L=this.$undoStack;if(u(L,L.length)){b||(b=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var x=L.pop(),M=null;return x&&(M=b.undoChanges(x,E),this.$redoStack.push(x),this.$syncRev()),this.$fromUndo=!1,M}},S.prototype.redo=function(b,E){if(this.lastDeltas=null,b||(b=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var L=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);C(this.$redoStack,L),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(_){_[0].id=++this.$maxRev},this)}var x=this.$redoStack.pop(),M=null;return x&&(M=b.redoChanges(x,E),this.$undoStack.push(x),this.$syncRev()),this.$fromUndo=!1,M},S.prototype.$syncRev=function(){var b=this.$undoStack,E=b[b.length-1],L=E&&E[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?i(b):i(this.$undoStack)+`
1029
+ ---
1030
+ `+i(this.$redoStack)},S}();s.prototype.hasUndo=s.prototype.canUndo,s.prototype.hasRedo=s.prototype.canRedo,s.prototype.isClean=s.prototype.isAtBookmark,s.prototype.markClean=s.prototype.bookmark;function u(S,b){for(var E=b;E--;){var L=S[E];if(L&&!L[0].ignore){for(;E<b-1;){var x=f(S[E],S[E+1]);S[E]=x[0],S[E+1]=x[1],E++}return!0}}}var d=n("./range").Range,o=d.comparePoints;d.comparePoints;function p(S){return{row:S.row,column:S.column}}function a(S){return{start:p(S.start),end:p(S.end),action:S.action,lines:S.lines.slice()}}function i(S){if(S=S||this,Array.isArray(S))return S.map(i).join(`
1031
+ `);var b="";return S.action?(b=S.action=="insert"?"+":"-",b+="["+S.lines+"]"):S.value&&(Array.isArray(S.value)?b=S.value.map(c).join(`
1032
+ `):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 h(S,b){var E=S.action=="insert",L=b.action=="insert";if(E&&L)if(o(b.start,S.end)>=0)m(b,S,-1);else if(o(b.start,S.start)<=0)m(S,b,1);else return null;else if(E&&!L)if(o(b.start,S.end)>=0)m(b,S,-1);else if(o(b.end,S.start)<=0)m(S,b,-1);else return null;else if(!E&&L)if(o(b.start,S.start)>=0)m(b,S,1);else if(o(b.start,S.start)<=0)m(S,b,1);else return null;else if(!E&&!L)if(o(b.start,S.start)>=0)m(b,S,1);else if(o(b.end,S.start)<=0)m(S,b,-1);else return null;return[b,S]}function f(S,b){for(var E=S.length;E--;)for(var L=0;L<b.length;L++)if(!h(S[E],b[L])){for(;E<S.length;){for(;L--;)h(b[L],S[E]);L=b.length,E++}return[S,b]}return S.selectionBefore=b.selectionBefore=S.selectionAfter=b.selectionAfter=null,[b,S]}function g(S,b){var E=S.action=="insert",L=b.action=="insert";if(E&&L)o(S.start,b.start)<0?m(b,S,1):m(S,b,1);else if(E&&!L)o(S.start,b.end)>=0?m(S,b,-1):(o(S.start,b.start)<=0||m(S,d.fromPoints(b.start,S.start),-1),m(b,S,1));else if(!E&&L)o(b.start,S.end)>=0?m(b,S,-1):(o(b.start,S.start)<=0||m(b,d.fromPoints(S.start,b.start),-1),m(S,b,1));else if(!E&&!L)if(o(b.start,S.end)>=0)m(b,S,-1);else if(o(b.end,S.start)<=0)m(S,b,-1);else{var x,M;return o(S.start,b.start)<0&&(x=S,S=y(S,b.start)),o(S.end,b.end)>0&&(M=y(S,b.end)),v(b.end,S.start,S.end,-1),M&&!x&&(S.lines=M.lines,S.start=M.start,S.end=M.end,M=S),[b,x,M].filter(Boolean)}return[b,S]}function m(S,b,E){v(S.start,b.start,b.end,E),v(S.end,b.start,b.end,E)}function v(S,b,E,L){S.row==(L==1?b:E).row&&(S.column+=L*(E.column-b.column)),S.row+=L*(E.row-b.row)}function y(S,b){var E=S.lines,L=S.end;S.end=p(b);var x=S.end.row-S.start.row,M=E.splice(x,E.length),_=x?b.column:b.column-S.start.column;E.push(M[0].substring(0,_)),M[0]=M[0].substr(_);var A={start:p(b),end:L,lines:M,action:S.action};return A}function k(S,b){b=a(b);for(var E=S.length;E--;){for(var L=S[E],x=0;x<L.length;x++){var M=L[x],_=g(M,b);b=_[0],_.length!=2&&(_[2]?(L.splice(x+1,1,_[1],_[2]),x++):_[1]||(L.splice(x,1),x--))}L.length||S.splice(E,1)}return S}function C(S,b){for(var E=0;E<b.length;E++)for(var L=b[E],x=0;x<L.length;x++)k(S,L[x])}r.UndoManager=s}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(n,r,l){var s=n("../range").Range,u=function(){function d(o,p){this.foldData=o,Array.isArray(p)?this.folds=p:p=this.folds=[p];var a=p[p.length-1];this.range=new s(p[0].start.row,p[0].start.column,a.end.row,a.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(i){i.setFoldLine(this)},this)}return d.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})},d.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,a){return-p.range.compareEnd(a.start.row,a.start.column)}),this.range.compareEnd(o.start.row,o.start.column)>0?(this.end.row=o.end.row,this.end.column=o.end.column):this.range.compareStart(o.end.row,o.end.column)<0&&(this.start.row=o.start.row,this.start.column=o.start.column)}else if(o.start.row==this.end.row)this.folds.push(o),this.end.row=o.end.row,this.end.column=o.end.column;else if(o.end.row==this.start.row)this.folds.unshift(o),this.start.row=o.start.row,this.start.column=o.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");o.foldLine=this},d.prototype.containsRow=function(o){return o>=this.start.row&&o<=this.end.row},d.prototype.walk=function(o,p,a){var i=0,c=this.folds,h,f,g,m=!0;p==null&&(p=this.end.row,a=this.end.column);for(var v=0;v<c.length;v++){if(h=c[v],f=h.range.compareStart(p,a),f==-1){o(null,p,a,i,m);return}if(g=o(null,h.start.row,h.start.column,i,m),g=!g&&o(h.placeholder,h.start.row,h.start.column,i),g||f===0)return;m=!h.sameRow,i=h.end.column}o(null,p,a,i,m)},d.prototype.getNextFoldTo=function(o,p){for(var a,i,c=0;c<this.folds.length;c++){if(a=this.folds[c],i=a.range.compareEnd(o,p),i==-1)return{fold:a,kind:"after"};if(i===0)return{fold:a,kind:"inside"}}return null},d.prototype.addRemoveChars=function(o,p,a){var i=this.getNextFoldTo(o,p),c,h;if(i){if(c=i.fold,i.kind=="inside"&&c.start.column!=p&&c.start.row!=o)window.console&&window.console.log(o,p,c);else if(c.start.row==o){h=this.folds;var f=h.indexOf(c);for(f===0&&(this.start.column+=a),f;f<h.length;f++){if(c=h[f],c.start.column+=a,!c.sameRow)return;c.end.column+=a}this.end.column+=a}}},d.prototype.split=function(o,p){var a=this.getNextFoldTo(o,p);if(!a||a.kind=="inside")return null;var i=a.fold,c=this.folds,h=this.foldData,f=c.indexOf(i),g=c[f-1];this.end.row=g.end.row,this.end.column=g.end.column,c=c.splice(f,c.length-f);var m=new d(h,c);return h.splice(h.indexOf(this)+1,0,m),m},d.prototype.merge=function(o){for(var p=o.folds,a=0;a<p.length;a++)this.addFold(p[a]);var i=this.foldData;i.splice(i.indexOf(o),1)},d.prototype.toString=function(){var o=[this.range.toString()+": ["];return this.folds.forEach(function(p){o.push(" "+p.toString())}),o.push("]"),o.join(`
1033
+ `)},d.prototype.idxToPosition=function(o){for(var p=0,a=0;a<this.folds.length;a++){var i=this.folds[a];if(o-=i.start.column-p,o<0)return{row:i.start.row,column:i.start.column+o};if(o-=i.placeholder.length,o<0)return i.start;p=i.end.column}return{row:this.end.row,column:this.end.column+o}},d}();r.FoldLine=u}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(n,r,l){var s=n("./range").Range,u=s.comparePoints,d=function(){function o(){this.ranges=[],this.$bias=1}return o.prototype.pointIndex=function(p,a,i){for(var c=this.ranges,h=i||0;h<c.length;h++){var f=c[h],g=u(p,f.end);if(!(g>0)){var m=u(p,f.start);return g===0?a&&m!==0?-h-2:h:m>0||m===0&&!a?h:-h-1}}return-h-1},o.prototype.add=function(p){var a=!p.isEmpty(),i=this.pointIndex(p.start,a);i<0&&(i=-i-1);var c=this.pointIndex(p.end,a,i);return c<0?c=-c-1:c++,this.ranges.splice(i,c-i,p)},o.prototype.addList=function(p){for(var a=[],i=p.length;i--;)a.push.apply(a,this.add(p[i]));return a},o.prototype.substractPoint=function(p){var a=this.pointIndex(p);if(a>=0)return this.ranges.splice(a,1)},o.prototype.merge=function(){var p=[],a=this.ranges;a=a.sort(function(g,m){return u(g.start,m.start)});for(var i=a[0],c,h=1;h<a.length;h++){c=i,i=a[h];var f=u(c.end,i.start);f<0||f==0&&!c.isEmpty()&&!i.isEmpty()||(u(c.end,i.end)<0&&(c.end.row=i.end.row,c.end.column=i.end.column),a.splice(h,1),p.push(i),i=c,h--)}return this.ranges=a,p},o.prototype.contains=function(p,a){return this.pointIndex({row:p,column:a})>=0},o.prototype.containsPoint=function(p){return this.pointIndex(p)>=0},o.prototype.rangeAtPoint=function(p){var a=this.pointIndex(p);if(a>=0)return this.ranges[a]},o.prototype.clipRows=function(p,a){var i=this.ranges;if(i[0].start.row>a||i[i.length-1].start.row<p)return[];var c=this.pointIndex({row:p,column:0});c<0&&(c=-c-1);var h=this.pointIndex({row:a,column:0},c);h<0&&(h=-h-1);for(var f=[],g=c;g<h;g++)f.push(i[g]);return f},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 a=p.start,i=p.end,c=a.row,h=i.row,f=this.ranges,g=0,m=f.length;g<m;g++){var v=f[g];if(v.end.row>=c)break}if(p.action=="insert")for(var y=h-c,k=-a.column+i.column;g<m;g++){var v=f[g];if(v.start.row>c)break;if(v.start.row==c&&v.start.column>=a.column&&(v.start.column==a.column&&this.$bias<=0||(v.start.column+=k,v.start.row+=y)),v.end.row==c&&v.end.column>=a.column){if(v.end.column==a.column&&this.$bias<0)continue;v.end.column==a.column&&k>0&&g<m-1&&v.end.column>v.start.column&&v.end.column==f[g+1].start.column&&(v.end.column-=k),v.end.column+=k,v.end.row+=y}}else for(var y=c-h,k=a.column-i.column;g<m;g++){var v=f[g];if(v.start.row>h)break;v.end.row<h&&(c<v.end.row||c==v.end.row&&a.column<v.end.column)?(v.end.row=c,v.end.column=a.column):v.end.row==h?v.end.column<=i.column?(y||v.end.column>a.column)&&(v.end.column=a.column,v.end.row=a.row):(v.end.column+=k,v.end.row+=y):v.end.row>h&&(v.end.row+=y),v.start.row<h&&(c<v.start.row||c==v.start.row&&a.column<v.start.column)?(v.start.row=c,v.start.column=a.column):v.start.row==h?v.start.column<=i.column?(y||v.start.column>a.column)&&(v.start.column=a.column,v.start.row=a.row):(v.start.column+=k,v.start.row+=y):v.start.row>h&&(v.start.row+=y)}if(y!=0&&g<m)for(;g<m;g++){var v=f[g];v.start.row+=y,v.end.row+=y}},o}();d.prototype.comparePoints=u,r.RangeList=d}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(n,r,l){var s=this&&this.__extends||function(){var c=function(h,f){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,m){g.__proto__=m}||function(g,m){for(var v in m)Object.prototype.hasOwnProperty.call(m,v)&&(g[v]=m[v])},c(h,f)};return function(h,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");c(h,f);function g(){this.constructor=h}h.prototype=f===null?Object.create(f):(g.prototype=f.prototype,new g)}}(),u=n("../range_list").RangeList,d=function(c){s(h,c);function h(f,g){var m=c.call(this)||this;return m.foldLine=null,m.placeholder=g,m.range=f,m.start=f.start,m.end=f.end,m.sameRow=f.start.row==f.end.row,m.subFolds=m.ranges=[],m}return h.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},h.prototype.setFoldLine=function(f){this.foldLine=f,this.subFolds.forEach(function(g){g.setFoldLine(f)})},h.prototype.clone=function(){var f=this.range.clone(),g=new h(f,this.placeholder);return this.subFolds.forEach(function(m){g.subFolds.push(m.clone())}),g.collapseChildren=this.collapseChildren,g},h.prototype.addSubFold=function(f){if(!this.range.isEqual(f)){p(f,this.start);for(var k=f.start.row,C=f.start.column,g=0,m=-1;g<this.subFolds.length&&(m=this.subFolds[g].range.compare(k,C),m==1);g++);var v=this.subFolds[g],y=0;if(m==0){if(v.range.containsRange(f))return v.addSubFold(f);y=1}for(var k=f.range.end.row,C=f.range.end.column,S=g,m=-1;S<this.subFolds.length&&(m=this.subFolds[S].range.compare(k,C),m==1);S++);m==0&&S++;for(var b=this.subFolds.splice(g,S-g,f),E=m==0?b.length-1:b.length,L=y;L<E;L++)f.addSubFold(b[L]);return f.setFoldLine(this.foldLine),f}},h.prototype.restoreRange=function(f){return i(f,this.start)},h}(u);function o(c,h){c.row-=h.row,c.row==0&&(c.column-=h.column)}function p(c,h){o(c.start,h),o(c.end,h)}function a(c,h){c.row==0&&(c.column+=h.column),c.row+=h.row}function i(c,h){a(c.start,h),a(c.end,h)}r.Fold=d}),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator","ace/mouse/mouse_event"],function(n,r,l){var s=n("../range").Range,u=n("./fold_line").FoldLine,d=n("./fold").Fold,o=n("../token_iterator").TokenIterator,p=n("../mouse/mouse_event").MouseEvent;function a(){this.getFoldAt=function(i,c,h){var f=this.getFoldLine(i);if(!f)return null;for(var g=f.folds,m=0;m<g.length;m++){var v=g[m].range;if(v.contains(i,c)){if(h==1&&v.isEnd(i,c)&&!v.isEmpty())continue;if(h==-1&&v.isStart(i,c)&&!v.isEmpty())continue;return g[m]}}},this.getFoldsInRange=function(i){var c=i.start,h=i.end,f=this.$foldData,g=[];c.column+=1,h.column-=1;for(var m=0;m<f.length;m++){var v=f[m].range.compareRange(i);if(v!=2){if(v==-2)break;for(var y=f[m].folds,k=0;k<y.length;k++){var C=y[k];if(v=C.range.compareRange(i),v==-2)break;if(v==2)continue;if(v==42)break;g.push(C)}}}return c.column-=1,h.column+=1,g},this.getFoldsInRangeList=function(i){if(Array.isArray(i)){var c=[];i.forEach(function(h){c=c.concat(this.getFoldsInRange(h))},this)}else var c=this.getFoldsInRange(i);return c},this.getAllFolds=function(){for(var i=[],c=this.$foldData,h=0;h<c.length;h++)for(var f=0;f<c[h].folds.length;f++)i.push(c[h].folds[f]);return i},this.getFoldStringAt=function(i,c,h,f){if(f=f||this.getFoldLine(i),!f)return null;for(var g={end:{column:0}},m,v,y=0;y<f.folds.length;y++){v=f.folds[y];var k=v.range.compareEnd(i,c);if(k==-1){m=this.getLine(v.start.row).substring(g.end.column,v.start.column);break}else if(k===0)return null;g=v}return m||(m=this.getLine(v.start.row).substring(g.end.column)),h==-1?m.substring(0,c-g.end.column):h==1?m.substring(c-g.end.column):m},this.getFoldLine=function(i,c){var h=this.$foldData,f=0;for(c&&(f=h.indexOf(c)),f==-1&&(f=0),f;f<h.length;f++){var g=h[f];if(g.start.row<=i&&g.end.row>=i)return g;if(g.end.row>i)return null}return null},this.getNextFoldLine=function(i,c){var h=this.$foldData,f=0;for(c&&(f=h.indexOf(c)),f==-1&&(f=0),f;f<h.length;f++){var g=h[f];if(g.end.row>=i)return g}return null},this.getFoldedRowCount=function(i,c){for(var h=this.$foldData,f=c-i+1,g=0;g<h.length;g++){var m=h[g],v=m.end.row,y=m.start.row;if(v>=c){y<c&&(y>=i?f-=c-y:f=0);break}else v>=i&&(y>=i?f-=v-y:f-=v-i+1)}return f},this.$addFoldLine=function(i){return this.$foldData.push(i),this.$foldData.sort(function(c,h){return c.start.row-h.start.row}),i},this.addFold=function(i,c){var h=this.$foldData,f=!1,g;i instanceof d?g=i:(g=new d(c,i),g.collapseChildren=c.collapseChildren),this.$clipRangeToDocument(g.range);var m=g.start.row,v=g.start.column,y=g.end.row,k=g.end.column,C=this.getFoldAt(m,v,1),S=this.getFoldAt(y,k,-1);if(C&&S==C)return C.addSubFold(g);C&&!C.range.isStart(m,v)&&this.removeFold(C),S&&!S.range.isEnd(y,k)&&this.removeFold(S);var b=this.getFoldsInRange(g.range);b.length>0&&(this.removeFolds(b),g.collapseChildren||b.forEach(function(M){g.addSubFold(M)}));for(var E=0;E<h.length;E++){var L=h[E];if(y==L.start.row){L.addFold(g),f=!0;break}else if(m==L.end.row){if(L.addFold(g),f=!0,!g.sameRow){var x=h[E+1];if(x&&x.start.row==y){L.merge(x);break}}break}else if(y<=L.start.row)break}return f||(L=this.$addFoldLine(new u(this.$foldData,g))),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:g,action:"add"}),g},this.addFolds=function(i){i.forEach(function(c){this.addFold(c)},this)},this.removeFold=function(i){var c=i.foldLine,h=c.start.row,f=c.end.row,g=this.$foldData,m=c.folds;if(m.length==1)g.splice(g.indexOf(c),1);else if(c.range.isEnd(i.end.row,i.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(i.start.row,i.start.column))m.shift(),c.start.row=m[0].start.row,c.start.column=m[0].start.column;else if(i.sameRow)m.splice(m.indexOf(i),1);else{var v=c.split(i.start.row,i.start.column);m=v.folds,m.shift(),v.start.row=m[0].start.row,v.start.column=m[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(h,f):this.$updateRowLengthCache(h,f)),this.$modified=!0,this._signal("changeFold",{data:i,action:"remove"})},this.removeFolds=function(i){for(var c=[],h=0;h<i.length;h++)c.push(i[h]);c.forEach(function(f){this.removeFold(f)},this),this.$modified=!0},this.expandFold=function(i){this.removeFold(i),i.subFolds.forEach(function(c){i.restoreRange(c),this.addFold(c)},this),i.collapseChildren>0&&this.foldAll(i.start.row+1,i.end.row,i.collapseChildren-1),i.subFolds=[]},this.expandFolds=function(i){i.forEach(function(c){this.expandFold(c)},this)},this.unfold=function(i,c){var h,f;if(i==null)h=new s(0,0,this.getLength(),0),c==null&&(c=!0);else if(typeof i=="number")h=new s(i,0,i,this.getLine(i).length);else if("row"in i)h=s.fromPoints(i,i);else{if(Array.isArray(i))return f=[],i.forEach(function(m){f=f.concat(this.unfold(m))},this),f;h=i}f=this.getFoldsInRangeList(h);for(var g=f;f.length==1&&s.comparePoints(f[0].start,h.start)<0&&s.comparePoints(f[0].end,h.end)>0;)this.expandFolds(f),f=this.getFoldsInRangeList(h);if(c!=!1?this.removeFolds(f):this.expandFolds(f),g.length)return g},this.isRowFolded=function(i,c){return!!this.getFoldLine(i,c)},this.getRowFoldEnd=function(i,c){var h=this.getFoldLine(i,c);return h?h.end.row:i},this.getRowFoldStart=function(i,c){var h=this.getFoldLine(i,c);return h?h.start.row:i},this.getFoldDisplayLine=function(i,c,h,f,g){f==null&&(f=i.start.row),g==null&&(g=0),c==null&&(c=i.end.row),h==null&&(h=this.getLine(c).length);var m=this.doc,v="";return i.walk(function(y,k,C,S){if(!(k<f)){if(k==f){if(C<g)return;S=Math.max(g,S)}y!=null?v+=y:v+=m.getLine(k).substring(S,C)}},c,h),v},this.getDisplayLine=function(i,c,h,f){var g=this.getFoldLine(i);if(g)return this.getFoldDisplayLine(g,i,c,h,f);var m;return m=this.doc.getLine(i),m.substring(f||0,c||m.length)},this.$cloneFoldData=function(){var i=[];return i=this.$foldData.map(function(c){var h=c.folds.map(function(f){return f.clone()});return new u(i,h)}),i},this.toggleFold=function(i){var c=this.selection,h=c.getRange(),f,g;if(h.isEmpty()){var m=h.start;if(f=this.getFoldAt(m.row,m.column),f){this.expandFold(f);return}else(g=this.findMatchingBracket(m))?h.comparePoint(g)==1?h.end=g:(h.start=g,h.start.column++,h.end.column--):(g=this.findMatchingBracket({row:m.row,column:m.column+1}))?(h.comparePoint(g)==1?h.end=g:h.start=g,h.start.column++):h=this.getCommentFoldRange(m.row,m.column)||h}else{var v=this.getFoldsInRange(h);if(i&&v.length){this.expandFolds(v);return}else v.length==1&&(f=v[0])}if(f||(f=this.getFoldAt(h.start.row,h.start.column)),f&&f.range.toString()==h.toString()){this.expandFold(f);return}var y="...";if(!h.isMultiLine()){if(y=this.getTextRange(h),y.length<4)return;y=y.trim().substring(0,2)+".."}this.addFold(y,h)},this.getCommentFoldRange=function(i,c,h){var f=new o(this,i,c),g=f.getCurrentToken(),m=g&&g.type;if(g&&/^comment|string/.test(m)){m=m.match(/comment|string/)[0],m=="comment"&&(m+="|doc-start|\\.doc");var v=new RegExp(m),y=new s;if(h!=1){do g=f.stepBackward();while(g&&v.test(g.type)&&!/^comment.end/.test(g.type));g=f.stepForward()}if(y.start.row=f.getCurrentTokenRow(),y.start.column=f.getCurrentTokenColumn()+(/^comment.start/.test(g.type)?g.value.length:2),f=new o(this,i,c),h!=-1){var k=-1;do if(g=f.stepForward(),k==-1){var C=this.getState(f.$row);v.test(C)||(k=f.$row)}else if(f.$row>k)break;while(g&&v.test(g.type)&&!/^comment.start/.test(g.type));g=f.stepBackward()}else g=f.getCurrentToken();return y.end.row=f.getCurrentTokenRow(),y.end.column=f.getCurrentTokenColumn(),/^comment.end/.test(g.type)||(y.end.column+=g.value.length-2),y}},this.foldAll=function(i,c,h,f){h==null&&(h=1e5);var g=this.foldWidgets;if(g){c=c||this.getLength(),i=i||0;for(var m=i;m<c;m++)if(g[m]==null&&(g[m]=this.getFoldWidget(m)),g[m]=="start"&&!(f&&!f(m))){var v=this.getFoldWidgetRange(m);v&&v.isMultiLine()&&v.end.row<=c&&v.start.row>=i&&(m=v.end.row,v.collapseChildren=h,this.addFold("...",v))}}},this.foldToLevel=function(i){for(this.foldAll();i-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var i=this;this.foldAll(null,null,null,function(c){for(var h=i.getTokens(c),f=0;f<h.length;f++){var g=h[f];if(!(g.type=="text"&&/^\s+$/.test(g.value)))return!!/comment/.test(g.type)}})},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(i){if(!this.$foldStyles[i])throw new Error("invalid fold style: "+i+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=i){this.$foldStyle=i,i=="manual"&&this.unfold();var c=this.$foldMode;this.$setFolding(null),this.$setFolding(c)}},this.$setFolding=function(i){if(this.$foldMode!=i){if(this.$foldMode=i,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),!i||this.$foldStyle=="manual"){this.foldWidgets=null;return}this.foldWidgets=[],this.getFoldWidget=i.getFoldWidget.bind(i,this,this.$foldStyle),this.getFoldWidgetRange=i.getFoldWidgetRange.bind(i,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)}},this.getParentFoldRangeData=function(i,c){var h=this.foldWidgets;if(!h||c&&h[i])return{};for(var f=i-1,g;f>=0;){var m=h[f];if(m==null&&(m=h[f]=this.getFoldWidget(f)),m=="start"){var v=this.getFoldWidgetRange(f);if(g||(g=v),v&&v.end.row>=i)break}f--}return{range:f!==-1&&v,firstRange:g}},this.onFoldWidgetClick=function(i,c){c instanceof p&&(c=c.domEvent);var h={children:c.shiftKey,all:c.ctrlKey||c.metaKey,siblings:c.altKey},f=this.$toggleFoldWidget(i,h);if(!f){var g=c.target||c.srcElement;g&&/ace_fold-widget/.test(g.className)&&(g.className+=" ace_invalid")}},this.$toggleFoldWidget=function(i,c){if(this.getFoldWidget){var h=this.getFoldWidget(i),f=this.getLine(i),g=h==="end"?-1:1,m=this.getFoldAt(i,g===-1?0:f.length,g);if(m)return c.children||c.all?this.removeFold(m):this.expandFold(m),m;var v=this.getFoldWidgetRange(i,!0);if(v&&!v.isMultiLine()&&(m=this.getFoldAt(v.start.row,v.start.column,1),m&&v.isEqual(m.range)))return this.removeFold(m),m;if(c.siblings){var y=this.getParentFoldRangeData(i);if(y.range)var k=y.range.start.row+1,C=y.range.end.row;this.foldAll(k,C,c.all?1e4:0)}else c.children?(C=v?v.end.row:this.getLength(),this.foldAll(i+1,C,c.all?1e4:0)):v&&(c.all&&(v.collapseChildren=1e4),this.addFold("...",v));return v}},this.toggleFoldWidget=function(i){var c=this.selection.getCursor().row;c=this.getRowFoldStart(c);var h=this.$toggleFoldWidget(c,{});if(!h){var f=this.getParentFoldRangeData(c,!0);if(h=f.range||f.firstRange,h){c=h.start.row;var g=this.getFoldAt(c,this.getLine(c).length,1);g?this.removeFold(g):this.addFold("...",h)}}},this.updateFoldWidgets=function(i){var c=i.start.row,h=i.end.row-c;if(h===0)this.foldWidgets[c]=null;else if(i.action=="remove")this.foldWidgets.splice(c,h+1,null);else{var f=Array(h+1);f.unshift(c,1),this.foldWidgets.splice.apply(this.foldWidgets,f)}},this.tokenizerUpdateFoldWidgets=function(i){var c=i.data;c.first!=c.last&&this.foldWidgets.length>c.first&&this.foldWidgets.splice(c.first,this.foldWidgets.length)}}r.Folding=a}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(n,r,l){var s=n("../token_iterator").TokenIterator,u=n("../range").Range;function d(){this.findMatchingBracket=function(o,p){if(o.column==0)return null;var a=p||this.getLine(o.row).charAt(o.column-1);if(a=="")return null;var i=a.match(/([\(\[\{])|([\)\]\}])/);return i?i[1]?this.$findClosingBracket(i[1],o):this.$findOpeningBracket(i[2],o):null},this.getBracketRange=function(o){var p=this.getLine(o.row),a=!0,i,c=p.charAt(o.column-1),h=c&&c.match(/([\(\[\{])|([\)\]\}])/);if(h||(c=p.charAt(o.column),o={row:o.row,column:o.column+1},h=c&&c.match(/([\(\[\{])|([\)\]\}])/),a=!1),!h)return null;if(h[1]){var f=this.$findClosingBracket(h[1],o);if(!f)return null;i=u.fromPoints(o,f),a||(i.end.column++,i.start.column--),i.cursor=i.end}else{var f=this.$findOpeningBracket(h[2],o);if(!f)return null;i=u.fromPoints(f,o),a||(i.start.column++,i.end.column--),i.cursor=i.start}return i},this.getMatchingBracketRanges=function(o,p){var a=this.getLine(o.row),i=/([\(\[\{])|([\)\]\}])/,c=!p&&a.charAt(o.column-1),h=c&&c.match(i);if(h||(c=(p===void 0||p)&&a.charAt(o.column),o={row:o.row,column:o.column+1},h=c&&c.match(i)),!h)return null;var f=new u(o.row,o.column-1,o.row,o.column),g=h[1]?this.$findClosingBracket(h[1],o):this.$findOpeningBracket(h[2],o);if(!g)return[f];var m=new u(g.row,g.column,g.row,g.column+1);return[f,m]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(o,p,a){var i=this.$brackets[o],c=1,h=new s(this,p.row,p.column),f=h.getCurrentToken();if(f||(f=h.stepForward()),!!f){a||(a=new RegExp("(\\.?"+f.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var g=p.column-h.getCurrentTokenColumn()-2,m=f.value;;){for(;g>=0;){var v=m.charAt(g);if(v==i){if(c-=1,c==0)return{row:h.getCurrentTokenRow(),column:g+h.getCurrentTokenColumn()}}else v==o&&(c+=1);g-=1}do f=h.stepBackward();while(f&&!a.test(f.type));if(f==null)break;m=f.value,g=m.length-1}return null}},this.$findClosingBracket=function(o,p,a){var i=this.$brackets[o],c=1,h=new s(this,p.row,p.column),f=h.getCurrentToken();if(f||(f=h.stepForward()),!!f){a||(a=new RegExp("(\\.?"+f.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var g=p.column-h.getCurrentTokenColumn();;){for(var m=f.value,v=m.length;g<v;){var y=m.charAt(g);if(y==i){if(c-=1,c==0)return{row:h.getCurrentTokenRow(),column:g+h.getCurrentTokenColumn()}}else y==o&&(c+=1);g+=1}do f=h.stepForward();while(f&&!a.test(f.type));if(f==null)break;g=0}return null}},this.getMatchingTags=function(o){var p=new s(this,o.row,o.column),a=this.$findTagName(p);if(a){var i=p.stepBackward();return i.value==="<"?this.$findClosingTag(p,a):this.$findOpeningTag(p,a)}},this.$findTagName=function(o){var p=o.getCurrentToken(),a=!1,i=!1;if(p&&p.type.indexOf("tag-name")===-1)do i?p=o.stepBackward():p=o.stepForward(),p&&(p.value==="/>"?i=!0:p.type.indexOf("tag-name")!==-1&&(a=!0));while(p&&!a);return p},this.$findClosingTag=function(o,p){var a,i=p.value,c=p.value,h=0,f=new u(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+1);p=o.stepForward();var g=new u(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+p.value.length),m=!1;do if(a=p,p=o.stepForward(),p){if(p.value===">"&&!m){var v=new u(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+1);m=!0}if(p.type.indexOf("tag-name")!==-1){if(i=p.value,c===i){if(a.value==="<")h++;else if(a.value==="</"&&(h--,h<0)){o.stepBackward();var y=new u(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+2);p=o.stepForward();var k=new u(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+p.value.length);if(p=o.stepForward(),p&&p.value===">")var C=new u(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+1);else return}}}else if(c===i&&p.value==="/>"&&(h--,h<0))var y=new u(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+2),k=y,C=k,v=new u(g.end.row,g.end.column,g.end.row,g.end.column+1)}while(p&&h>=0);if(f&&v&&y&&C&&g&&k)return{openTag:new u(f.start.row,f.start.column,v.end.row,v.end.column),closeTag:new u(y.start.row,y.start.column,C.end.row,C.end.column),openTagName:g,closeTagName:k}},this.$findOpeningTag=function(o,p){var a=o.getCurrentToken(),i=p.value,c=0,h=o.getCurrentTokenRow(),f=o.getCurrentTokenColumn(),g=f+2,m=new u(h,f,h,g);o.stepForward();var v=new u(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+p.value.length);if(p=o.stepForward(),!(!p||p.value!==">")){var y=new u(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+1);o.stepBackward(),o.stepBackward();do if(p=a,h=o.getCurrentTokenRow(),f=o.getCurrentTokenColumn(),g=f+p.value.length,a=o.stepBackward(),p){if(p.type.indexOf("tag-name")!==-1){if(i===p.value)if(a.value==="<"){if(c++,c>0){var k=new u(h,f,h,g),C=new u(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+1);do p=o.stepForward();while(p&&p.value!==">");var S=new u(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+1)}}else a.value==="</"&&c--}else if(p.value==="/>"){for(var b=0,E=a;E;){if(E.type.indexOf("tag-name")!==-1&&E.value===i){c--;break}else if(E.value==="<")break;E=o.stepBackward(),b++}for(var L=0;L<b;L++)o.stepForward()}}while(a&&c<=0);if(C&&S&&m&&y&&k&&v)return{openTag:new u(C.start.row,C.start.column,S.end.row,S.end.column),closeTag:new u(m.start.row,m.start.column,y.end.row,y.end.column),openTagName:k,closeTagName:v}}}}r.BracketMatch=d}),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/bidihandler","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/document","ace/background_tokenizer","ace/search_highlight","ace/undomanager","ace/edit_session/folding","ace/edit_session/bracket_match"],function(n,r,l){var s=n("./lib/oop"),u=n("./lib/lang"),d=n("./bidihandler").BidiHandler,o=n("./config"),p=n("./lib/event_emitter").EventEmitter,a=n("./selection").Selection,i=n("./mode/text").Mode,c=n("./range").Range,h=n("./document").Document,f=n("./background_tokenizer").BackgroundTokenizer,g=n("./search_highlight").SearchHighlight,m=n("./undomanager").UndoManager,v=function(){function _(A,$){this.doc,this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$foldData=[],this.id="session"+ ++_.$uid,this.$foldData.toString=function(){return this.join(`
1034
+ `)},this.bgTokenizer=new f(new i().getTokenizer(),this);var w=this;this.bgTokenizer.on("update",function(R){w._signal("tokenizerUpdate",R)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof A!="object"||!A.getLine)&&(A=new h(A)),this.setDocument(A),this.selection=new a(this),this.$bidiHandler=new d(this),o.resetOptions(this),this.setMode($),o._signal("session",this),this.destroyed=!1}return _.prototype.setDocument=function(A){this.doc&&this.doc.off("change",this.$onChange),this.doc=A,A.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},_.prototype.getDocument=function(){return this.doc},_.prototype.$resetRowCache=function(A){if(!A){this.$docRowCache=[],this.$screenRowCache=[];return}var $=this.$docRowCache.length,w=this.$getRowCacheIndex(this.$docRowCache,A)+1;$>w&&(this.$docRowCache.splice(w,$),this.$screenRowCache.splice(w,$))},_.prototype.$getRowCacheIndex=function(A,$){for(var w=0,R=A.length-1;w<=R;){var T=w+R>>1,O=A[T];if($>O)w=T+1;else if($<O)R=T-1;else return T}return w-1},_.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},_.prototype.onChangeFold=function(A){var $=A.data;this.$resetRowCache($.start.row)},_.prototype.onChange=function(A){this.$modified=!0,this.$bidiHandler.onChange(A),this.$resetRowCache(A.start.row);var $=this.$updateInternalDataOnChange(A);!this.$fromUndo&&this.$undoManager&&($&&$.length&&(this.$undoManager.add({action:"removeFolds",folds:$},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(A,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(A),this._signal("change",A)},_.prototype.setValue=function(A){this.doc.setValue(A),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},_.fromJSON=function(A){typeof A=="string"&&(A=JSON.parse(A));var $=new m;$.$undoStack=A.history.undo,$.$redoStack=A.history.redo,$.mark=A.history.mark,$.$rev=A.history.rev;var w=new _(A.value);return A.folds.forEach(function(R){w.addFold("...",c.fromPoints(R.start,R.end))}),w.setAnnotations(A.annotations),w.setBreakpoints(A.breakpoints),w.setMode(A.mode),w.setScrollLeft(A.scrollLeft),w.setScrollTop(A.scrollTop),w.setUndoManager($),w.selection.fromJSON(A.selection),w},_.prototype.toJSON=function(){return{annotations:this.$annotations,breakpoints:this.$breakpoints,folds:this.getAllFolds().map(function(A){return A.range}),history:this.getUndoManager(),mode:this.$mode.$id,scrollLeft:this.$scrollLeft,scrollTop:this.$scrollTop,selection:this.selection.toJSON(),value:this.doc.getValue()}},_.prototype.toString=function(){return this.doc.getValue()},_.prototype.getSelection=function(){return this.selection},_.prototype.getState=function(A){return this.bgTokenizer.getState(A)},_.prototype.getTokens=function(A){return this.bgTokenizer.getTokens(A)},_.prototype.getTokenAt=function(A,$){var w=this.bgTokenizer.getTokens(A),R,T=0;if($==null){var O=w.length-1;T=this.getLine(A).length}else for(var O=0;O<w.length&&(T+=w[O].value.length,!(T>=$));O++);return R=w[O],R?(R.index=O,R.start=T-R.value.length,R):null},_.prototype.setUndoManager=function(A){if(this.$undoManager=A,this.$informUndoManager&&this.$informUndoManager.cancel(),A){var $=this;A.addSession(this),this.$syncInformUndoManager=function(){$.$informUndoManager.cancel(),$.mergeUndoDeltas=!1},this.$informUndoManager=u.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},_.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},_.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},_.prototype.getTabString=function(){return this.getUseSoftTabs()?u.stringRepeat(" ",this.getTabSize()):" "},_.prototype.setUseSoftTabs=function(A){this.setOption("useSoftTabs",A)},_.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},_.prototype.setTabSize=function(A){this.setOption("tabSize",A)},_.prototype.getTabSize=function(){return this.$tabSize},_.prototype.isTabStop=function(A){return this.$useSoftTabs&&A.column%this.$tabSize===0},_.prototype.setNavigateWithinSoftTabs=function(A){this.setOption("navigateWithinSoftTabs",A)},_.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},_.prototype.setOverwrite=function(A){this.setOption("overwrite",A)},_.prototype.getOverwrite=function(){return this.$overwrite},_.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},_.prototype.addGutterDecoration=function(A,$){this.$decorations[A]||(this.$decorations[A]=""),this.$decorations[A]+=" "+$,this._signal("changeBreakpoint",{})},_.prototype.removeGutterDecoration=function(A,$){this.$decorations[A]=(this.$decorations[A]||"").replace(" "+$,""),this._signal("changeBreakpoint",{})},_.prototype.getBreakpoints=function(){return this.$breakpoints},_.prototype.setBreakpoints=function(A){this.$breakpoints=[];for(var $=0;$<A.length;$++)this.$breakpoints[A[$]]="ace_breakpoint";this._signal("changeBreakpoint",{})},_.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},_.prototype.setBreakpoint=function(A,$){$===void 0&&($="ace_breakpoint"),$?this.$breakpoints[A]=$:delete this.$breakpoints[A],this._signal("changeBreakpoint",{})},_.prototype.clearBreakpoint=function(A){delete this.$breakpoints[A],this._signal("changeBreakpoint",{})},_.prototype.addMarker=function(A,$,w,R){var T=this.$markerId++,O={range:A,type:w||"line",renderer:typeof w=="function"?w:null,clazz:$,inFront:!!R,id:T};return R?(this.$frontMarkers[T]=O,this._signal("changeFrontMarker")):(this.$backMarkers[T]=O,this._signal("changeBackMarker")),T},_.prototype.addDynamicMarker=function(A,$){if(A.update){var w=this.$markerId++;return A.id=w,A.inFront=!!$,$?(this.$frontMarkers[w]=A,this._signal("changeFrontMarker")):(this.$backMarkers[w]=A,this._signal("changeBackMarker")),A}},_.prototype.removeMarker=function(A){var $=this.$frontMarkers[A]||this.$backMarkers[A];if($){var w=$.inFront?this.$frontMarkers:this.$backMarkers;delete w[A],this._signal($.inFront?"changeFrontMarker":"changeBackMarker")}},_.prototype.getMarkers=function(A){return A?this.$frontMarkers:this.$backMarkers},_.prototype.highlight=function(A){if(!this.$searchHighlight){var $=new g(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker($)}this.$searchHighlight.setRegexp(A)},_.prototype.highlightLines=function(A,$,w,R){typeof $!="number"&&(w=$,$=A),w||(w="ace_step");var T=new c(A,0,$,1/0);return T.id=this.addMarker(T,w,"fullLine",R),T},_.prototype.setAnnotations=function(A){this.$annotations=A,this._signal("changeAnnotation",{})},_.prototype.getAnnotations=function(){return this.$annotations||[]},_.prototype.clearAnnotations=function(){this.setAnnotations([])},_.prototype.$detectNewLine=function(A){var $=A.match(/^.*?(\r?\n)/m);$?this.$autoNewLine=$[1]:this.$autoNewLine=`
1035
+ `},_.prototype.getWordRange=function(A,$){var w=this.getLine(A),R=!1;if($>0&&(R=!!w.charAt($-1).match(this.tokenRe)),R||(R=!!w.charAt($).match(this.tokenRe)),R)var T=this.tokenRe;else if(/^\s+$/.test(w.slice($-1,$+1)))var T=/\s/;else var T=this.nonTokenRe;var O=$;if(O>0){do O--;while(O>=0&&w.charAt(O).match(T));O++}for(var I=$;I<w.length&&w.charAt(I).match(T);)I++;return new c(A,O,A,I)},_.prototype.getAWordRange=function(A,$){for(var w=this.getWordRange(A,$),R=this.getLine(w.end.row);R.charAt(w.end.column).match(/[ \t]/);)w.end.column+=1;return w},_.prototype.setNewLineMode=function(A){this.doc.setNewLineMode(A)},_.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},_.prototype.setUseWorker=function(A){this.setOption("useWorker",A)},_.prototype.getUseWorker=function(){return this.$useWorker},_.prototype.onReloadTokenizer=function(A){var $=A.data;this.bgTokenizer.start($.first),this._signal("tokenizerUpdate",A)},_.prototype.setMode=function(A,$){if(A&&typeof A=="object"){if(A.getTokenizer)return this.$onChangeMode(A);var w=A,R=w.path}else R=A||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new i),this.$modes[R]&&!w){this.$onChangeMode(this.$modes[R]),$&&$();return}this.$modeId=R,o.loadModule(["mode",R],(function(T){if(this.$modeId!==R)return $&&$();this.$modes[R]&&!w?this.$onChangeMode(this.$modes[R]):T&&T.Mode&&(T=new T.Mode(w),w||(this.$modes[R]=T,T.$id=R),this.$onChangeMode(T)),$&&$()}).bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},_.prototype.$onChangeMode=function(A,$){if($||(this.$modeId=A.$id),this.$mode!==A){var w=this.$mode;this.$mode=A,this.$stopWorker(),this.$useWorker&&this.$startWorker();var R=A.getTokenizer();if(R.on!==void 0){var T=this.onReloadTokenizer.bind(this);R.on("update",T)}this.bgTokenizer.setTokenizer(R),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=A.tokenRe,this.nonTokenRe=A.nonTokenRe,$||(A.attachToSession&&A.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(A.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:w,mode:A}))}},_.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},_.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(A){o.warn("Could not load worker",A),this.$worker=null}},_.prototype.getMode=function(){return this.$mode},_.prototype.setScrollTop=function(A){this.$scrollTop===A||isNaN(A)||(this.$scrollTop=A,this._signal("changeScrollTop",A))},_.prototype.getScrollTop=function(){return this.$scrollTop},_.prototype.setScrollLeft=function(A){this.$scrollLeft===A||isNaN(A)||(this.$scrollLeft=A,this._signal("changeScrollLeft",A))},_.prototype.getScrollLeft=function(){return this.$scrollLeft},_.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},_.prototype.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var A=0;return this.lineWidgets.forEach(function($){$&&$.screenWidth>A&&(A=$.screenWidth)}),this.lineWidgetWidth=A},_.prototype.$computeWidth=function(A){if(this.$modified||A){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var $=this.doc.getAllLines(),w=this.$rowLengthCache,R=0,T=0,O=this.$foldData[T],I=O?O.start.row:1/0,N=$.length,P=0;P<N;P++){if(P>I){if(P=O.end.row+1,P>=N)break;O=this.$foldData[T++],I=O?O.start.row:1/0}w[P]==null&&(w[P]=this.$getStringScreenWidth($[P])[0]),w[P]>R&&(R=w[P])}this.screenWidth=R}},_.prototype.getLine=function(A){return this.doc.getLine(A)},_.prototype.getLines=function(A,$){return this.doc.getLines(A,$)},_.prototype.getLength=function(){return this.doc.getLength()},_.prototype.getTextRange=function(A){return this.doc.getTextRange(A||this.selection.getRange())},_.prototype.insert=function(A,$){return this.doc.insert(A,$)},_.prototype.remove=function(A){return this.doc.remove(A)},_.prototype.removeFullLines=function(A,$){return this.doc.removeFullLines(A,$)},_.prototype.undoChanges=function(A,$){if(A.length){this.$fromUndo=!0;for(var w=A.length-1;w!=-1;w--){var R=A[w];R.action=="insert"||R.action=="remove"?this.doc.revertDelta(R):R.folds&&this.addFolds(R.folds)}!$&&this.$undoSelect&&(A.selectionBefore?this.selection.fromJSON(A.selectionBefore):this.selection.setRange(this.$getUndoSelection(A,!0))),this.$fromUndo=!1}},_.prototype.redoChanges=function(A,$){if(A.length){this.$fromUndo=!0;for(var w=0;w<A.length;w++){var R=A[w];(R.action=="insert"||R.action=="remove")&&this.doc.$safeApplyDelta(R)}!$&&this.$undoSelect&&(A.selectionAfter?this.selection.fromJSON(A.selectionAfter):this.selection.setRange(this.$getUndoSelection(A,!1))),this.$fromUndo=!1}},_.prototype.setUndoSelect=function(A){this.$undoSelect=A},_.prototype.$getUndoSelection=function(A,$){function w(N){return $?N.action!=="insert":N.action==="insert"}for(var R,T,O=0;O<A.length;O++){var I=A[O];if(I.start){if(!R){w(I)?R=c.fromPoints(I.start,I.end):R=c.fromPoints(I.start,I.start);continue}w(I)?(T=I.start,R.compare(T.row,T.column)==-1&&R.setStart(T),T=I.end,R.compare(T.row,T.column)==1&&R.setEnd(T)):(T=I.start,R.compare(T.row,T.column)==-1&&(R=c.fromPoints(I.start,I.start)))}}return R},_.prototype.replace=function(A,$){return this.doc.replace(A,$)},_.prototype.moveText=function(A,$,w){var R=this.getTextRange(A),T=this.getFoldsInRange(A),O=c.fromPoints($,$);if(!w){this.remove(A);var I=A.start.row-A.end.row,N=I?-A.end.column:A.start.column-A.end.column;N&&(O.start.row==A.end.row&&O.start.column>A.end.column&&(O.start.column+=N),O.end.row==A.end.row&&O.end.column>A.end.column&&(O.end.column+=N)),I&&O.start.row>=A.end.row&&(O.start.row+=I,O.end.row+=I)}if(O.end=this.insert(O.start,R),T.length){var P=A.start,W=O.start,I=W.row-P.row,N=W.column-P.column;this.addFolds(T.map(function(H){return H=H.clone(),H.start.row==P.row&&(H.start.column+=N),H.end.row==P.row&&(H.end.column+=N),H.start.row+=I,H.end.row+=I,H}))}return O},_.prototype.indentRows=function(A,$,w){w=w.replace(/\t/g,this.getTabString());for(var R=A;R<=$;R++)this.doc.insertInLine({row:R,column:0},w)},_.prototype.outdentRows=function(A){for(var $=A.collapseRows(),w=new c(0,0,0,0),R=this.getTabSize(),T=$.start.row;T<=$.end.row;++T){var O=this.getLine(T);w.start.row=T,w.end.row=T;for(var I=0;I<R&&O.charAt(I)==" ";++I);I<R&&O.charAt(I)==" "?(w.start.column=I,w.end.column=I+1):(w.start.column=0,w.end.column=I),this.remove(w)}},_.prototype.$moveLines=function(A,$,w){if(A=this.getRowFoldStart(A),$=this.getRowFoldEnd($),w<0){var R=this.getRowFoldStart(A+w);if(R<0)return 0;var T=R-A}else if(w>0){var R=this.getRowFoldEnd($+w);if(R>this.doc.getLength()-1)return 0;var T=R-$}else{A=this.$clipRowToDocument(A),$=this.$clipRowToDocument($);var T=$-A+1}var O=new c(A,0,$,Number.MAX_VALUE),I=this.getFoldsInRange(O).map(function(P){return P=P.clone(),P.start.row+=T,P.end.row+=T,P}),N=w==0?this.doc.getLines(A,$):this.doc.removeFullLines(A,$);return this.doc.insertFullLines(A+T,N),I.length&&this.addFolds(I),T},_.prototype.moveLinesUp=function(A,$){return this.$moveLines(A,$,-1)},_.prototype.moveLinesDown=function(A,$){return this.$moveLines(A,$,1)},_.prototype.duplicateLines=function(A,$){return this.$moveLines(A,$,0)},_.prototype.$clipRowToDocument=function(A){return Math.max(0,Math.min(A,this.doc.getLength()-1))},_.prototype.$clipColumnToRow=function(A,$){return $<0?0:Math.min(this.doc.getLine(A).length,$)},_.prototype.$clipPositionToDocument=function(A,$){if($=Math.max(0,$),A<0)A=0,$=0;else{var w=this.doc.getLength();A>=w?(A=w-1,$=this.doc.getLine(w-1).length):$=Math.min(this.doc.getLine(A).length,$)}return{row:A,column:$}},_.prototype.$clipRangeToDocument=function(A){A.start.row<0?(A.start.row=0,A.start.column=0):A.start.column=this.$clipColumnToRow(A.start.row,A.start.column);var $=this.doc.getLength()-1;return A.end.row>$?(A.end.row=$,A.end.column=this.doc.getLine($).length):A.end.column=this.$clipColumnToRow(A.end.row,A.end.column),A},_.prototype.setUseWrapMode=function(A){if(A!=this.$useWrapMode){if(this.$useWrapMode=A,this.$modified=!0,this.$resetRowCache(0),A){var $=this.getLength();this.$wrapData=Array($),this.$updateWrapData(0,$-1)}this._signal("changeWrapMode")}},_.prototype.getUseWrapMode=function(){return this.$useWrapMode},_.prototype.setWrapLimitRange=function(A,$){(this.$wrapLimitRange.min!==A||this.$wrapLimitRange.max!==$)&&(this.$wrapLimitRange={min:A,max:$},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},_.prototype.adjustWrapLimit=function(A,$){var w=this.$wrapLimitRange;w.max<0&&(w={min:$,max:$});var R=this.$constrainWrapLimit(A,w.min,w.max);return R!=this.$wrapLimit&&R>1?(this.$wrapLimit=R,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},_.prototype.$constrainWrapLimit=function(A,$,w){return $&&(A=Math.max($,A)),w&&(A=Math.min(w,A)),A},_.prototype.getWrapLimit=function(){return this.$wrapLimit},_.prototype.setWrapLimit=function(A){this.setWrapLimitRange(A,A)},_.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},_.prototype.$updateInternalDataOnChange=function(A){var $=this.$useWrapMode,w=A.action,R=A.start,T=A.end,O=R.row,I=T.row,N=I-O,P=null;if(this.$updating=!0,N!=0)if(w==="remove"){this[$?"$wrapData":"$rowLengthCache"].splice(O,N);var W=this.$foldData;P=this.getFoldsInRange(A),this.removeFolds(P);var j=this.getFoldLine(T.row),V=0;if(j){j.addRemoveChars(T.row,T.column,R.column-T.column),j.shiftRow(-N);var H=this.getFoldLine(O);H&&H!==j&&(H.merge(j),j=H),V=W.indexOf(j)+1}for(V;V<W.length;V++){var j=W[V];j.start.row>=T.row&&j.shiftRow(-N)}I=O}else{var G=Array(N);G.unshift(O,0);var Q=$?this.$wrapData:this.$rowLengthCache;Q.splice.apply(Q,G);var W=this.$foldData,j=this.getFoldLine(O),V=0;if(j){var U=j.range.compareInside(R.row,R.column);U==0?(j=j.split(R.row,R.column),j&&(j.shiftRow(N),j.addRemoveChars(I,0,T.column-R.column))):U==-1&&(j.addRemoveChars(O,0,T.column-R.column),j.shiftRow(N)),V=W.indexOf(j)+1}for(V;V<W.length;V++){var j=W[V];j.start.row>=O&&j.shiftRow(N)}}else{N=Math.abs(A.start.column-A.end.column),w==="remove"&&(P=this.getFoldsInRange(A),this.removeFolds(P),N=-N);var j=this.getFoldLine(O);j&&j.addRemoveChars(O,R.column,N)}return $&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,$?this.$updateWrapData(O,I):this.$updateRowLengthCache(O,I),P},_.prototype.$updateRowLengthCache=function(A,$){this.$rowLengthCache[A]=null,this.$rowLengthCache[$]=null},_.prototype.$updateWrapData=function(A,$){var w=this.doc.getAllLines(),R=this.getTabSize(),T=this.$wrapData,O=this.$wrapLimit,I,N,P=A;for($=Math.min($,w.length-1);P<=$;)N=this.getFoldLine(P,N),N?(I=[],N.walk((function(W,j,V,H){var G;if(W!=null){G=this.$getDisplayTokens(W,I.length),G[0]=C;for(var Q=1;Q<G.length;Q++)G[Q]=S}else G=this.$getDisplayTokens(w[j].substring(H,V),I.length);I=I.concat(G)}).bind(this),N.end.row,w[N.end.row].length+1),T[N.start.row]=this.$computeWrapSplits(I,O,R),P=N.end.row+1):(I=this.$getDisplayTokens(w[P]),T[P]=this.$computeWrapSplits(I,O,R),P++)},_.prototype.$computeWrapSplits=function(A,$,w){if(A.length==0)return[];var R=[],T=A.length,O=0,I=0,N=this.$wrapAsCode,P=this.$indentedSoftWrap,W=$<=Math.max(2*w,8)||P===!1?0:Math.floor($/2);function j(){var U=0;if(W===0)return U;if(P)for(var X=0;X<A.length;X++){var Y=A[X];if(Y==E)U+=1;else if(Y==L)U+=w;else{if(Y==x)continue;break}}return N&&P!==!1&&(U+=w),Math.min(U,W)}function V(U){for(var X=U-O,Y=O;Y<U;Y++){var z=A[Y];(z===12||z===2)&&(X-=1)}R.length||(H=j(),R.indent=H),I+=X,R.push(I),O=U}for(var H=0;T-O>$-H;){var G=O+$-H;if(A[G-1]>=E&&A[G]>=E){V(G);continue}if(A[G]==C||A[G]==S){for(G;G!=O-1&&A[G]!=C;G--);if(G>O){V(G);continue}for(G=O+$,G;G<A.length&&A[G]==S;G++);if(G==A.length)break;V(G);continue}for(var Q=Math.max(G-($-($>>2)),O-1);G>Q&&A[G]<C;)G--;if(N){for(;G>Q&&A[G]<C;)G--;for(;G>Q&&A[G]==b;)G--}else for(;G>Q&&A[G]<E;)G--;if(G>Q){V(++G);continue}G=O+$,A[G]==k&&G--,V(G-H)}return R},_.prototype.$getDisplayTokens=function(A,$){var w=[],R;$=$||0;for(var T=0;T<A.length;T++){var O=A.charCodeAt(T);if(O==9){R=this.getScreenTabSize(w.length+$),w.push(L);for(var I=1;I<R;I++)w.push(x)}else O==32?w.push(E):O>39&&O<48||O>57&&O<64?w.push(b):O>=4352&&M(O)?w.push(y,k):w.push(y)}return w},_.prototype.$getStringScreenWidth=function(A,$,w){if($==0)return[0,0];$==null&&($=1/0),w=w||0;var R,T;for(T=0;T<A.length&&(R=A.charCodeAt(T),R==9?w+=this.getScreenTabSize(w):R>=4352&&M(R)?w+=2:w+=1,!(w>$));T++);return[w,T]},_.prototype.getRowLength=function(A){var $=1;return this.lineWidgets&&($+=this.lineWidgets[A]&&this.lineWidgets[A].rowCount||0),!this.$useWrapMode||!this.$wrapData[A]?$:this.$wrapData[A].length+$},_.prototype.getRowLineCount=function(A){return!this.$useWrapMode||!this.$wrapData[A]?1:this.$wrapData[A].length+1},_.prototype.getRowWrapIndent=function(A){if(this.$useWrapMode){var $=this.screenToDocumentPosition(A,Number.MAX_VALUE),w=this.$wrapData[$.row];return w.length&&w[0]<$.column?w.indent:0}else return 0},_.prototype.getScreenLastRowColumn=function(A){var $=this.screenToDocumentPosition(A,Number.MAX_VALUE);return this.documentToScreenColumn($.row,$.column)},_.prototype.getDocumentLastRowColumn=function(A,$){var w=this.documentToScreenRow(A,$);return this.getScreenLastRowColumn(w)},_.prototype.getDocumentLastRowColumnPosition=function(A,$){var w=this.documentToScreenRow(A,$);return this.screenToDocumentPosition(w,Number.MAX_VALUE/10)},_.prototype.getRowSplitData=function(A){if(this.$useWrapMode)return this.$wrapData[A]},_.prototype.getScreenTabSize=function(A){return this.$tabSize-(A%this.$tabSize|0)},_.prototype.screenToDocumentRow=function(A,$){return this.screenToDocumentPosition(A,$).row},_.prototype.screenToDocumentColumn=function(A,$){return this.screenToDocumentPosition(A,$).column},_.prototype.screenToDocumentPosition=function(A,$,w){if(A<0)return{row:0,column:0};var R,T=0,O=0,I,N=0,P=0,W=this.$screenRowCache,j=this.$getRowCacheIndex(W,A),V=W.length;if(V&&j>=0)var N=W[j],T=this.$docRowCache[j],H=A>W[V-1];else var H=!V;for(var G=this.getLength()-1,Q=this.getNextFoldLine(T),U=Q?Q.start.row:1/0;N<=A&&(P=this.getRowLength(T),!(N+P>A||T>=G));)N+=P,T++,T>U&&(T=Q.end.row+1,Q=this.getNextFoldLine(T,Q),U=Q?Q.start.row:1/0),H&&(this.$docRowCache.push(T),this.$screenRowCache.push(N));if(Q&&Q.start.row<=T)R=this.getFoldDisplayLine(Q),T=Q.start.row;else{if(N+P<=A||T>G)return{row:G,column:this.getLine(G).length};R=this.getLine(T),Q=null}var X=0,Y=Math.floor(A-N);if(this.$useWrapMode){var z=this.$wrapData[T];z&&(I=z[Y],Y>0&&z.length&&(X=z.indent,O=z[Y-1]||z[z.length-1],R=R.substring(O)))}return w!==void 0&&this.$bidiHandler.isBidiRow(N+Y,T,Y)&&($=this.$bidiHandler.offsetToCol(w)),O+=this.$getStringScreenWidth(R,$-X)[1],this.$useWrapMode&&O>=I&&(O=I-1),Q?Q.idxToPosition(O):{row:T,column:O}},_.prototype.documentToScreenPosition=function(A,$){if(typeof $>"u")var w=this.$clipPositionToDocument(A.row,A.column);else w=this.$clipPositionToDocument(A,$);A=w.row,$=w.column;var R=0,T=null,O=null;O=this.getFoldAt(A,$,1),O&&(A=O.start.row,$=O.start.column);var I,N=0,P=this.$docRowCache,W=this.$getRowCacheIndex(P,A),j=P.length;if(j&&W>=0)var N=P[W],R=this.$screenRowCache[W],V=A>P[j-1];else var V=!j;for(var H=this.getNextFoldLine(N),G=H?H.start.row:1/0;N<A;){if(N>=G){if(I=H.end.row+1,I>A)break;H=this.getNextFoldLine(I,H),G=H?H.start.row:1/0}else I=N+1;R+=this.getRowLength(N),N=I,V&&(this.$docRowCache.push(N),this.$screenRowCache.push(R))}var Q="";H&&N>=G?(Q=this.getFoldDisplayLine(H,A,$),T=H.start.row):(Q=this.getLine(A).substring(0,$),T=A);var U=0;if(this.$useWrapMode){var X=this.$wrapData[T];if(X){for(var Y=0;Q.length>=X[Y];)R++,Y++;Q=Q.substring(X[Y-1]||0,Q.length),U=Y>0?X.indent:0}}return this.lineWidgets&&this.lineWidgets[N]&&this.lineWidgets[N].rowsAbove&&(R+=this.lineWidgets[N].rowsAbove),{row:R,column:U+this.$getStringScreenWidth(Q)[0]}},_.prototype.documentToScreenColumn=function(A,$){return this.documentToScreenPosition(A,$).column},_.prototype.documentToScreenRow=function(A,$){return this.documentToScreenPosition(A,$).row},_.prototype.getScreenLength=function(){var A=0,$=null;if(this.$useWrapMode)for(var T=this.$wrapData.length,O=0,R=0,$=this.$foldData[R++],I=$?$.start.row:1/0;O<T;){var N=this.$wrapData[O];A+=N?N.length+1:1,O++,O>I&&(O=$.end.row+1,$=this.$foldData[R++],I=$?$.start.row:1/0)}else{A=this.getLength();for(var w=this.$foldData,R=0;R<w.length;R++)$=w[R],A-=$.end.row-$.start.row}return this.lineWidgets&&(A+=this.$getWidgetScreenLength()),A},_.prototype.$setFontMetrics=function(A){this.$enableVarChar&&(this.$getStringScreenWidth=function($,w,R){if(w===0)return[0,0];w||(w=1/0),R=R||0;var T,O;for(O=0;O<$.length&&(T=$.charAt(O),T===" "?R+=this.getScreenTabSize(R):R+=A.getCharacterWidth(T),!(R>w));O++);return[R,O]})},_.prototype.destroy=function(){this.destroyed||(this.bgTokenizer.setDocument(null),this.bgTokenizer.cleanup(),this.destroyed=!0),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection.detach()},_}();v.$uid=0,v.prototype.$modes=o.$modes,v.prototype.getValue=v.prototype.toString,v.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},v.prototype.$overwrite=!1,v.prototype.$mode=null,v.prototype.$modeId=null,v.prototype.$scrollTop=0,v.prototype.$scrollLeft=0,v.prototype.$wrapLimit=80,v.prototype.$useWrapMode=!1,v.prototype.$wrapLimitRange={min:null,max:null},v.prototype.lineWidgets=null,v.prototype.isFullWidth=M,s.implement(v.prototype,p);var y=1,k=2,C=3,S=4,b=9,E=10,L=11,x=12;function M(_){return _<4352?!1:_>=4352&&_<=4447||_>=4515&&_<=4519||_>=4602&&_<=4607||_>=9001&&_<=9002||_>=11904&&_<=11929||_>=11931&&_<=12019||_>=12032&&_<=12245||_>=12272&&_<=12283||_>=12288&&_<=12350||_>=12353&&_<=12438||_>=12441&&_<=12543||_>=12549&&_<=12589||_>=12593&&_<=12686||_>=12688&&_<=12730||_>=12736&&_<=12771||_>=12784&&_<=12830||_>=12832&&_<=12871||_>=12880&&_<=13054||_>=13056&&_<=19903||_>=19968&&_<=42124||_>=42128&&_<=42182||_>=43360&&_<=43388||_>=44032&&_<=55203||_>=55216&&_<=55238||_>=55243&&_<=55291||_>=63744&&_<=64255||_>=65040&&_<=65049||_>=65072&&_<=65106||_>=65108&&_<=65126||_>=65128&&_<=65131||_>=65281&&_<=65376||_>=65504&&_<=65510}n("./edit_session/folding").Folding.call(v.prototype),n("./edit_session/bracket_match").BracketMatch.call(v.prototype),o.defineOptions(v.prototype,"session",{wrap:{set:function(_){if(!_||_=="off"?_=!1:_=="free"?_=!0:_=="printMargin"?_=-1:typeof _=="string"&&(_=parseInt(_,10)||!1),this.$wrap!=_)if(this.$wrap=_,!_)this.setUseWrapMode(!1);else{var A=typeof _=="number"?_:null;this.setWrapLimitRange(A,A),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(_){_=_=="auto"?this.$mode.type!="text":_!="text",_!=this.$wrapAsCode&&(this.$wrapAsCode=_,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(_){this.$useWorker=_,this.$stopWorker(),_&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(_){_=parseInt(_),_>0&&this.$tabSize!==_&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=_,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(_){this.setFoldStyle(_)},handlesSet:!0},overwrite:{set:function(_){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(_){this.doc.setNewLineMode(_)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(_){this.setMode(_)},get:function(){return this.$modeId},handlesSet:!0}}),r.EditSession=v}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(n,r,l){var s=n("./lib/lang"),u=n("./lib/oop"),d=n("./range").Range,o=function(){function a(){this.$options={}}return a.prototype.set=function(i){return u.mixin(this.$options,i),this},a.prototype.getOptions=function(){return s.copyObject(this.$options)},a.prototype.setOptions=function(i){this.$options=i},a.prototype.find=function(i){var c=this.$options,h=this.$matchIterator(i,c);if(!h)return!1;var f=null;return h.forEach(function(g,m,v,y){return f=new d(g,m,v,y),m==y&&c.start&&c.start.start&&c.skipCurrent!=!1&&f.isEqual(c.start)?(f=null,!1):!0}),f},a.prototype.findAll=function(i){var c=this.$options;if(!c.needle)return[];this.$assembleRegExp(c);var h=c.range,f=h?i.getLines(h.start.row,h.end.row):i.doc.getAllLines(),g=[],m=c.re;if(c.$isMultiLine){var v=m.length,y=f.length-v,k;e:for(var C=m.offset||0;C<=y;C++){for(var S=0;S<v;S++)if(f[C+S].search(m[S])==-1)continue e;var b=f[C],E=f[C+v-1],L=b.length-b.match(m[0])[0].length,x=E.match(m[v-1])[0].length;k&&k.end.row===C&&k.end.column>L||(g.push(k=new d(C,L,C+v-1,x)),v>2&&(C=C+v-2))}}else for(var M=0;M<f.length;M++)for(var _=s.getMatchOffsets(f[M],m),S=0;S<_.length;S++){var A=_[S];g.push(new d(M,A.offset,M,A.offset+A.length))}if(h){for(var $=h.start.column,w=h.end.column,M=0,S=g.length-1;M<S&&g[M].start.column<$&&g[M].start.row==0;)M++;for(var R=h.end.row-h.start.row;M<S&&g[S].end.column>w&&g[S].end.row==R;)S--;for(g=g.slice(M,S+1),M=0,S=g.length;M<S;M++)g[M].start.row+=h.start.row,g[M].end.row+=h.start.row}return g},a.prototype.replace=function(i,c){var h=this.$options,f=this.$assembleRegExp(h);if(h.$isMultiLine)return c;if(f){var g=f.exec(i);if(!g||g[0].length!=i.length)return null;if(h.regExp||(c=c.replace(/\$/g,"$$$$")),c=i.replace(f,c),h.preserveCase){c=c.split("");for(var m=Math.min(i.length,i.length);m--;){var v=i[m];v&&v.toLowerCase()!=v?c[m]=c[m].toUpperCase():c[m]=c[m].toLowerCase()}c=c.join("")}return c}},a.prototype.$assembleRegExp=function(i,c){if(i.needle instanceof RegExp)return i.re=i.needle;var h=i.needle;if(!i.needle)return i.re=!1;i.regExp||(h=s.escapeRegExp(h));var f=i.caseSensitive?"gm":"gmi";try{new RegExp(h,"u"),i.$supportsUnicodeFlag=!0,f+="u"}catch{i.$supportsUnicodeFlag=!1}if(i.wholeWord&&(h=p(h,i)),i.$isMultiLine=!c&&/[\n\r]/.test(h),i.$isMultiLine)return i.re=this.$assembleMultilineRegExp(h,f);try{var g=new RegExp(h,f)}catch{g=!1}return i.re=g},a.prototype.$assembleMultilineRegExp=function(i,c){for(var h=i.replace(/\r\n|\r|\n/g,`$
1036
+ ^`).split(`
1037
+ `),f=[],g=0;g<h.length;g++)try{f.push(new RegExp(h[g],c))}catch{return!1}return f},a.prototype.$matchIterator=function(i,c){var h=this.$assembleRegExp(c);if(!h)return!1;var f=c.backwards==!0,g=c.skipCurrent!=!1,m=h.unicode,v=c.range,y=c.start;y||(y=v?v[f?"end":"start"]:i.selection.getRange()),y.start&&(y=y[g!=f?"end":"start"]);var k=v?v.start.row:0,C=v?v.end.row:i.getLength()-1;if(f)var S=function(L){var x=y.row;if(!E(x,y.column,L)){for(x--;x>=k;x--)if(E(x,Number.MAX_VALUE,L))return;if(c.wrap!=!1){for(x=C,k=y.row;x>=k;x--)if(E(x,Number.MAX_VALUE,L))return}}};else var S=function(x){var M=y.row;if(!E(M,y.column,x)){for(M=M+1;M<=C;M++)if(E(M,0,x))return;if(c.wrap!=!1){for(M=k,C=y.row;M<=C;M++)if(E(M,0,x))return}}};if(c.$isMultiLine)var b=h.length,E=function(L,x,M){var _=f?L-b+1:L;if(!(_<0||_+b>i.getLength())){var A=i.getLine(_),$=A.search(h[0]);if(!(!f&&$<x||$===-1)){for(var w=1;w<b;w++)if(A=i.getLine(_+w),A.search(h[w])==-1)return;var R=A.match(h[b-1])[0].length;if(!(f&&R>x)&&M(_,$,_+b-1,R))return!0}}};else if(f)var E=function(x,M,_){var A=i.getLine(x),$=[],w,R=0;for(h.lastIndex=0;w=h.exec(A);){var T=w[0].length;if(R=w.index,!T){if(R>=A.length)break;h.lastIndex=R+=s.skipEmptyMatch(A,R,m)}if(w.index+T>M)break;$.push(w.index,T)}for(var O=$.length-1;O>=0;O-=2){var I=$[O-1],T=$[O];if(_(x,I,x,I+T))return!0}};else var E=function(x,M,_){var A=i.getLine(x),$,w;for(h.lastIndex=M;w=h.exec(A);){var R=w[0].length;if($=w.index,_(x,$,x,$+R))return!0;if(!R&&(h.lastIndex=$+=s.skipEmptyMatch(A,$,m),$>=A.length))return!1}};return{forEach:S}},a}();function p(a,i){var c=s.supportsLookbehind();function h(v,y){y===void 0&&(y=!0);var k=c&&i.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return k.test(v)||i.regExp?c&&i.$supportsUnicodeFlag?y?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var f=Array.from(a),g=f[0],m=f[f.length-1];return h(g)+a+h(m,!1)}r.Search=o}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(n,r,l){var s=this&&this.__extends||function(){var c=function(h,f){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,m){g.__proto__=m}||function(g,m){for(var v in m)Object.prototype.hasOwnProperty.call(m,v)&&(g[v]=m[v])},c(h,f)};return function(h,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");c(h,f);function g(){this.constructor=h}h.prototype=f===null?Object.create(f):(g.prototype=f.prototype,new g)}}(),u=n("../lib/keys"),d=n("../lib/useragent"),o=u.KEY_MODS,p=function(){function c(h,f){this.$init(h,f,!1)}return c.prototype.$init=function(h,f,g){this.platform=f||(d.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(h),this.$singleCommand=g},c.prototype.addCommand=function(h){this.commands[h.name]&&this.removeCommand(h),this.commands[h.name]=h,h.bindKey&&this._buildKeyHash(h)},c.prototype.removeCommand=function(h,f){var g=h&&(typeof h=="string"?h:h.name);h=this.commands[g],f||delete this.commands[g];var m=this.commandKeyBinding;for(var v in m){var y=m[v];if(y==h)delete m[v];else if(Array.isArray(y)){var k=y.indexOf(h);k!=-1&&(y.splice(k,1),y.length==1&&(m[v]=y[0]))}}},c.prototype.bindKey=function(h,f,g){if(typeof h=="object"&&h&&(g==null&&(g=h.position),h=h[this.platform]),!!h){if(typeof f=="function")return this.addCommand({exec:f,bindKey:h,name:f.name||h});h.split("|").forEach(function(m){var v="";if(m.indexOf(" ")!=-1){var y=m.split(/\s+/);m=y.pop(),y.forEach(function(S){var b=this.parseKeys(S),E=o[b.hashId]+b.key;v+=(v?" ":"")+E,this._addCommandToBinding(v,"chainKeys")},this),v+=" "}var k=this.parseKeys(m),C=o[k.hashId]+k.key;this._addCommandToBinding(v+C,f,g)},this)}},c.prototype._addCommandToBinding=function(h,f,g){var m=this.commandKeyBinding,v;if(!f)delete m[h];else if(!m[h]||this.$singleCommand)m[h]=f;else{Array.isArray(m[h])?(v=m[h].indexOf(f))!=-1&&m[h].splice(v,1):m[h]=[m[h]],typeof g!="number"&&(g=a(f));var y=m[h];for(v=0;v<y.length;v++){var k=y[v],C=a(k);if(C>g)break}y.splice(v,0,f)}},c.prototype.addCommands=function(h){h&&Object.keys(h).forEach(function(f){var g=h[f];if(g){if(typeof g=="string")return this.bindKey(g,f);typeof g=="function"&&(g={exec:g}),typeof g=="object"&&(g.name||(g.name=f),this.addCommand(g))}},this)},c.prototype.removeCommands=function(h){Object.keys(h).forEach(function(f){this.removeCommand(h[f])},this)},c.prototype.bindKeys=function(h){Object.keys(h).forEach(function(f){this.bindKey(f,h[f])},this)},c.prototype._buildKeyHash=function(h){this.bindKey(h.bindKey,h)},c.prototype.parseKeys=function(h){var f=h.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(C){return C}),g=f.pop(),m=u[g];if(u.FUNCTION_KEYS[m])g=u.FUNCTION_KEYS[m].toLowerCase();else if(f.length){if(f.length==1&&f[0]=="shift")return{key:g.toUpperCase(),hashId:-1}}else return{key:g,hashId:-1};for(var v=0,y=f.length;y--;){var k=u.KEY_MODS[f[y]];if(k==null)return typeof console<"u"&&console.error("invalid modifier "+f[y]+" in "+h),!1;v|=k}return{key:g,hashId:v}},c.prototype.findKeyCommand=function(h,f){var g=o[h]+f;return this.commandKeyBinding[g]},c.prototype.handleKeyboard=function(h,f,g,m){if(!(m<0)){var v=o[f]+g,y=this.commandKeyBinding[v];return h.$keyChain&&(h.$keyChain+=" "+v,y=this.commandKeyBinding[h.$keyChain]||y),y&&(y=="chainKeys"||y[y.length-1]=="chainKeys")?(h.$keyChain=h.$keyChain||v,{command:"null"}):(h.$keyChain&&((!f||f==4)&&g.length==1?h.$keyChain=h.$keyChain.slice(0,-v.length-1):(f==-1||m>0)&&(h.$keyChain="")),{command:y})}},c.prototype.getStatusText=function(h,f){return f.$keyChain||""},c}();function a(c){return typeof c=="object"&&c.bindKey&&c.bindKey.position||(c.isDefault?-100:0)}var i=function(c){s(h,c);function h(f,g){var m=c.call(this,f,g)||this;return m.$singleCommand=!0,m}return h}(p);i.call=function(c,h,f){p.prototype.$init.call(c,h,f,!0)},p.call=function(c,h,f){p.prototype.$init.call(c,h,f,!1)},r.HashHandler=i,r.MultiHashHandler=p}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(n,r,l){var s=this&&this.__extends||function(){var a=function(i,c){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,f){h.__proto__=f}||function(h,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(h[g]=f[g])},a(i,c)};return function(i,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");a(i,c);function h(){this.constructor=i}i.prototype=c===null?Object.create(c):(h.prototype=c.prototype,new h)}}(),u=n("../lib/oop"),d=n("../keyboard/hash_handler").MultiHashHandler,o=n("../lib/event_emitter").EventEmitter,p=function(a){s(i,a);function i(c,h){var f=a.call(this,h,c)||this;return f.byName=f.commands,f.setDefaultHandler("exec",function(g){return g.args?g.command.exec(g.editor,g.args,g.event,!1):g.command.exec(g.editor,{},g.event,!0)}),f}return i.prototype.exec=function(c,h,f){if(Array.isArray(c)){for(var g=c.length;g--;)if(this.exec(c[g],h,f))return!0;return!1}if(typeof c=="string"&&(c=this.commands[c]),!c||h&&h.$readOnly&&!c.readOnly||this.$checkCommandState!=!1&&c.isAvailable&&!c.isAvailable(h))return!1;var m={editor:h,command:c,args:f};return m.returnValue=this._emit("exec",m),this._signal("afterExec",m),m.returnValue!==!1},i.prototype.toggleRecording=function(c){if(!this.$inReplay)return c&&c._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=(function(h){this.macro.push([h.command,h.args])}).bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},i.prototype.replay=function(c){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(c);try{this.$inReplay=!0,this.macro.forEach(function(h){typeof h=="string"?this.exec(h,c):this.exec(h[0],c,h[1])},this)}finally{this.$inReplay=!1}}},i.prototype.trimMacro=function(c){return c.map(function(h){return typeof h[0]!="string"&&(h[0]=h[0].name),h[1]||(h=h[0]),h})},i}(d);u.implement(p.prototype,o),r.CommandManager=p}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(n,r,l){var s=n("../lib/lang"),u=n("../config"),d=n("../range").Range;function o(a,i){return{win:a,mac:i}}r.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:o("Ctrl-,","Command-,"),exec:function(a){u.loadModule("ace/ext/settings_menu",function(i){i.init(a),a.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:o("Alt-E","F4"),exec:function(a){u.loadModule("ace/ext/error_marker",function(i){i.showErrorMarker(a,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:o("Alt-Shift-E","Shift-F4"),exec:function(a){u.loadModule("ace/ext/error_marker",function(i){i.showErrorMarker(a,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:o("Ctrl-A","Command-A"),exec:function(a){a.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:o(null,"Ctrl-L"),exec:function(a){a.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:o("Ctrl-L","Command-L"),exec:function(a,i){typeof i=="number"&&!isNaN(i)&&a.gotoLine(i),a.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:o("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(a){a.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:o("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(a){a.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:o("F2","F2"),exec:function(a){a.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:o("Alt-F2","Alt-F2"),exec:function(a){a.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:o(null,"Ctrl-Command-Option-0"),exec:function(a){a.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:o(null,"Ctrl-Command-Option-0"),exec:function(a){a.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:o("Alt-0","Command-Option-0"),exec:function(a){a.session.foldAll(),a.session.unfold(a.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:o("Alt-Shift-0","Command-Option-Shift-0"),exec:function(a){a.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:o("Ctrl-K","Command-G"),exec:function(a){a.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:o("Ctrl-Shift-K","Command-Shift-G"),exec:function(a){a.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:o("Alt-K","Ctrl-G"),exec:function(a){a.selection.isEmpty()?a.selection.selectWord():a.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:o("Alt-Shift-K","Ctrl-Shift-G"),exec:function(a){a.selection.isEmpty()?a.selection.selectWord():a.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:o("Ctrl-F","Command-F"),exec:function(a){u.loadModule("ace/ext/searchbox",function(i){i.Search(a)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(a){a.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:o("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(a){a.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:o("Ctrl-Home","Command-Home|Command-Up"),exec:function(a){a.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:o("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(a){a.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:o("Up","Up|Ctrl-P"),exec:function(a,i){a.navigateUp(i.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:o("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(a){a.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:o("Ctrl-End","Command-End|Command-Down"),exec:function(a){a.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:o("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(a){a.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:o("Down","Down|Ctrl-N"),exec:function(a,i){a.navigateDown(i.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:o("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(a){a.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:o("Ctrl-Left","Option-Left"),exec:function(a){a.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:o("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(a){a.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:o("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(a){a.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:o("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(a){a.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:o("Left","Left|Ctrl-B"),exec:function(a,i){a.navigateLeft(i.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:o("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(a){a.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:o("Ctrl-Right","Option-Right"),exec:function(a){a.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:o("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(a){a.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:o("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(a){a.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:o("Shift-Right","Shift-Right"),exec:function(a){a.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:o("Right","Right|Ctrl-F"),exec:function(a,i){a.navigateRight(i.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(a){a.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:o(null,"Option-PageDown"),exec:function(a){a.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:o("PageDown","PageDown|Ctrl-V"),exec:function(a){a.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(a){a.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:o(null,"Option-PageUp"),exec:function(a){a.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(a){a.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:o("Ctrl-Up",null),exec:function(a){a.renderer.scrollBy(0,-2*a.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:o("Ctrl-Down",null),exec:function(a){a.renderer.scrollBy(0,2*a.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(a){a.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(a){a.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:o("Ctrl-Alt-E","Command-Option-E"),exec:function(a){a.commands.toggleRecording(a)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:o("Ctrl-Shift-E","Command-Shift-E"),exec:function(a){a.commands.replay(a)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:o("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(a){a.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:o("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(a){a.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:o("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(a){a.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:o(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(a){},readOnly:!0},{name:"cut",description:"Cut",exec:function(a){var i=a.$copyWithEmptySelection&&a.selection.isEmpty(),c=i?a.selection.getLineRange():a.selection.getRange();a._emit("cut",c),c.isEmpty()||a.session.remove(c),a.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(a,i){a.$handlePaste(i)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:o("Ctrl-D","Command-D"),exec:function(a){a.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:o("Ctrl-Shift-D","Command-Shift-D"),exec:function(a){a.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:o("Ctrl-Alt-S","Command-Alt-S"),exec:function(a){a.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:o("Ctrl-/","Command-/"),exec:function(a){a.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:o("Ctrl-Shift-/","Command-Shift-/"),exec:function(a){a.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:o("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(a){a.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:o("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(a){a.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:o("Ctrl-H","Command-Option-F"),exec:function(a){u.loadModule("ace/ext/searchbox",function(i){i.Search(a,!0)})}},{name:"undo",description:"Undo",bindKey:o("Ctrl-Z","Command-Z"),exec:function(a){a.undo()}},{name:"redo",description:"Redo",bindKey:o("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(a){a.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:o("Alt-Shift-Up","Command-Option-Up"),exec:function(a){a.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:o("Alt-Up","Option-Up"),exec:function(a){a.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:o("Alt-Shift-Down","Command-Option-Down"),exec:function(a){a.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:o("Alt-Down","Option-Down"),exec:function(a){a.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:o("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(a){a.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:o("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(a){a.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:o("Shift-Delete",null),exec:function(a){if(a.selection.isEmpty())a.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:o("Alt-Backspace","Command-Backspace"),exec:function(a){a.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:o("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(a){a.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:o("Ctrl-Shift-Backspace",null),exec:function(a){var i=a.selection.getRange();i.start.column=0,a.session.remove(i)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:o("Ctrl-Shift-Delete",null),exec:function(a){var i=a.selection.getRange();i.end.column=Number.MAX_VALUE,a.session.remove(i)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:o("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(a){a.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:o("Ctrl-Delete","Alt-Delete"),exec:function(a){a.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:o("Shift-Tab","Shift-Tab"),exec:function(a){a.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:o("Tab","Tab"),exec:function(a){a.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:o("Ctrl-[","Ctrl-["),exec:function(a){a.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:o("Ctrl-]","Ctrl-]"),exec:function(a){a.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(a,i){a.insert(i)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(a,i){a.insert(s.stringRepeat(i.text||"",i.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:o(null,"Ctrl-O"),exec:function(a){a.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:o("Alt-Shift-X","Ctrl-T"),exec:function(a){a.transposeLetters()},multiSelectAction:function(a){a.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:o("Ctrl-U","Ctrl-U"),exec:function(a){a.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:o("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(a){a.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:o(null,null),exec:function(a){a.autoIndent()},scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:o("Ctrl-Shift-L","Command-Shift-L"),exec:function(a){var i=a.selection.getRange();i.start.column=i.end.column=0,i.end.row++,a.selection.setRange(i,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:o("Ctrl+F3","F3"),exec:function(a){a.openLink()}},{name:"joinlines",description:"Join lines",bindKey:o(null,null),exec:function(a){for(var i=a.selection.isBackwards(),c=i?a.selection.getSelectionLead():a.selection.getSelectionAnchor(),h=i?a.selection.getSelectionAnchor():a.selection.getSelectionLead(),f=a.session.doc.getLine(c.row).length,g=a.session.doc.getTextRange(a.selection.getRange()),m=g.replace(/\n\s*/," ").length,v=a.session.doc.getLine(c.row),y=c.row+1;y<=h.row+1;y++){var k=s.stringTrimLeft(s.stringTrimRight(a.session.doc.getLine(y)));k.length!==0&&(k=" "+k),v+=k}h.row+1<a.session.doc.getLength()-1&&(v+=a.session.doc.getNewLineCharacter()),a.clearSelection(),a.session.doc.replace(new d(c.row,0,h.row+2,0),v),m>0?(a.selection.moveCursorTo(c.row,c.column),a.selection.selectTo(c.row,c.column+m)):(f=a.session.doc.getLine(c.row).length>f?f+1:f,a.selection.moveCursorTo(c.row,f))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:o(null,null),exec:function(a){var i=a.session.doc.getLength()-1,c=a.session.doc.getLine(i).length,h=a.selection.rangeList.ranges,f=[];h.length<1&&(h=[a.selection.getRange()]);for(var g=0;g<h.length;g++)g==h.length-1&&(h[g].end.row===i&&h[g].end.column===c||f.push(new d(h[g].end.row,h[g].end.column,i,c))),g===0?h[g].start.row===0&&h[g].start.column===0||f.push(new d(0,0,h[g].start.row,h[g].start.column)):f.push(new d(h[g-1].end.row,h[g-1].end.column,h[g].start.row,h[g].start.column));a.exitMultiSelectMode(),a.clearSelection();for(var g=0;g<f.length;g++)a.selection.addRange(f[g],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",description:"Add new line after the current line",exec:function(a){a.selection.clearSelection(),a.navigateLineEnd(),a.insert(`
1038
+ `)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(a){a.selection.clearSelection();var i=a.getCursorPosition();a.selection.moveTo(i.row-1,Number.MAX_VALUE),a.insert(`
1039
+ `),i.row===0&&a.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",exec:function(a){console.warn("This is an obsolete command. Please use `openCommandPalette` instead."),a.prompt({$type:"commands"})},readOnly:!0},{name:"openCommandPalette",description:"Open command palette",bindKey:o("F1","F1"),exec:function(a){a.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:o(null,null),exec:function(a){a.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(a){a.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(n,r,l){var s=n("./lib/dom"),u=function(){function d(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 d.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},d.prototype.$getWidgetScreenLength=function(){var o=0;return this.lineWidgets.forEach(function(p){p&&p.rowCount&&!p.hidden&&(o+=p.rowCount)}),o},d.prototype.$onChangeEditor=function(o){this.attach(o.editor)},d.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)))},d.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 a=this.session.lineWidgets;a&&a.forEach(function(i){i&&i.el&&i.el.parentNode&&(i._inDocument=!1,i.el.parentNode.removeChild(i.el))})}},d.prototype.updateOnFold=function(o,p){var a=p.lineWidgets;if(!(!a||!o.action)){for(var i=o.data,c=i.start.row,h=i.end.row,f=o.action=="add",g=c+1;g<h;g++)a[g]&&(a[g].hidden=f);a[h]&&(f?a[c]?a[h].hidden=f:a[c]=a[h]:(a[c]==a[h]&&(a[c]=void 0),a[h].hidden=f))}},d.prototype.updateOnChange=function(o){var p=this.session.lineWidgets;if(p){var a=o.start.row,i=o.end.row-a;if(i!==0)if(o.action=="remove"){var c=p.splice(a+1,i);!p[a]&&c[c.length-1]&&(p[a]=c.pop()),c.forEach(function(f){f&&this.removeLineWidget(f)},this),this.$updateRows()}else{var h=new Array(i);p[a]&&p[a].column!=null&&o.start.column>p[a].column&&a++,h.unshift(a,0),p.splice.apply(p,h),this.$updateRows()}}},d.prototype.$updateRows=function(){var o=this.session.lineWidgets;if(o){var p=!0;o.forEach(function(a,i){if(a)for(p=!1,a.row=i;a.$oldWidget;)a.$oldWidget.row=i,a=a.$oldWidget}),p&&(this.session.lineWidgets=null)}},d.prototype.$registerLineWidget=function(o){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var p=this.session.lineWidgets[o.row];return p&&(o.$oldWidget=p,p.el&&p.el.parentNode&&(p.el.parentNode.removeChild(p.el),p._inDocument=!1)),this.session.lineWidgets[o.row]=o,o},d.prototype.addLineWidget=function(o){if(this.$registerLineWidget(o),o.session=this.session,!this.editor)return o;var p=this.editor.renderer;o.html&&!o.el&&(o.el=s.createElement("div"),o.el.innerHTML=o.html),o.text&&!o.el&&(o.el=s.createElement("div"),o.el.textContent=o.text),o.el&&(s.addCssClass(o.el,"ace_lineWidgetContainer"),o.className&&s.addCssClass(o.el,o.className),o.el.style.position="absolute",o.el.style.zIndex="5",p.container.appendChild(o.el),o._inDocument=!0,o.coverGutter||(o.el.style.zIndex="3"),o.pixelHeight==null&&(o.pixelHeight=o.el.offsetHeight)),o.rowCount==null&&(o.rowCount=o.pixelHeight/p.layerConfig.lineHeight);var a=this.session.getFoldAt(o.row,0);if(o.$fold=a,a){var i=this.session.lineWidgets;o.row==a.end.row&&!i[a.start.row]?i[a.start.row]=o:o.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:o.row}}}),this.$updateRows(),this.renderWidgets(null,p),this.onWidgetChanged(o),o},d.prototype.removeLineWidget=function(o){if(o._inDocument=!1,o.session=null,o.el&&o.el.parentNode&&o.el.parentNode.removeChild(o.el),o.editor&&o.editor.destroy)try{o.editor.destroy()}catch{}if(this.session.lineWidgets){var p=this.session.lineWidgets[o.row];if(p==o)this.session.lineWidgets[o.row]=o.$oldWidget,o.$oldWidget&&this.onWidgetChanged(o.$oldWidget);else for(;p;){if(p.$oldWidget==o){p.$oldWidget=o.$oldWidget;break}p=p.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:o.row}}}),this.$updateRows()},d.prototype.getWidgetsAtRow=function(o){for(var p=this.session.lineWidgets,a=p&&p[o],i=[];a;)i.push(a),a=a.$oldWidget;return i},d.prototype.onWidgetChanged=function(o){this.session._changedWidgets.push(o),this.editor&&this.editor.renderer.updateFull()},d.prototype.measureWidgets=function(o,p){var a=this.session._changedWidgets,i=p.layerConfig;if(!(!a||!a.length)){for(var c=1/0,h=0;h<a.length;h++){var f=a[h];if(!(!f||!f.el)&&f.session==this.session){if(!f._inDocument){if(this.session.lineWidgets[f.row]!=f)continue;f._inDocument=!0,p.container.appendChild(f.el)}f.h=f.el.offsetHeight,f.fixedWidth||(f.w=f.el.offsetWidth,f.screenWidth=Math.ceil(f.w/i.characterWidth));var g=f.h/i.lineHeight;f.coverLine&&(g-=this.session.getRowLineCount(f.row),g<0&&(g=0)),f.rowCount!=g&&(f.rowCount=g,f.row<c&&(c=f.row))}}c!=1/0&&(this.session._emit("changeFold",{data:{start:{row:c}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},d.prototype.renderWidgets=function(o,p){var a=p.layerConfig,i=this.session.lineWidgets;if(i){for(var c=Math.min(this.firstRow,a.firstRow),h=Math.max(this.lastRow,a.lastRow,i.length);c>0&&!i[c];)c--;this.firstRow=a.firstRow,this.lastRow=a.lastRow,p.$cursorLayer.config=a;for(var f=c;f<=h;f++){var g=i[f];if(!(!g||!g.el)){if(g.hidden){g.el.style.top=-100-(g.pixelHeight||0)+"px";continue}g._inDocument||(g._inDocument=!0,p.container.appendChild(g.el));var m=p.$cursorLayer.getPixelPosition({row:f,column:0},!0).top;g.coverLine||(m+=a.lineHeight*this.session.getRowLineCount(g.row)),g.el.style.top=m-a.offset+"px";var v=g.coverGutter?0:p.gutterWidth;g.fixedWidth||(v-=p.scrollLeft),g.el.style.left=v+"px",g.fullWidth&&g.screenWidth&&(g.el.style.minWidth=a.width+2*a.padding+"px"),g.fixedWidth?g.el.style.right=p.scrollBar.getWidth()+"px":g.el.style.right=""}}}},d}();r.LineWidgets=u}),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys","ace/mouse/default_gutter_handler"],function(n,r,l){var s=n("../lib/keys"),u=n("../mouse/default_gutter_handler").GutterTooltip,d=function(){function p(a){this.editor=a,this.gutterLayer=a.renderer.$gutterLayer,this.element=a.renderer.$gutter,this.lines=a.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=new u(this.editor)}return p.prototype.addListener=function(){this.element.addEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.addEventListener("focusout",this.$blurGutter.bind(this)),this.editor.on("mousewheel",this.$blurGutter.bind(this))},p.prototype.removeListener=function(){this.element.removeEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.removeEventListener("focusout",this.$blurGutter.bind(this)),this.editor.off("mousewheel",this.$blurGutter.bind(this))},p.prototype.$onGutterKeyDown=function(a){if(this.annotationTooltip.isOpen){a.preventDefault(),a.keyCode===s.escape&&this.annotationTooltip.hideTooltip();return}if(a.target===this.element){if(a.keyCode!=s.enter)return;a.preventDefault();var i=this.editor.getCursorPosition().row;this.editor.isRowVisible(i)||this.editor.scrollToLine(i,!0,!0),setTimeout((function(){var c=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),h=this.$findNearestFoldWidget(c),f=this.$findNearestAnnotation(c);if(!(h===null&&f===null)){if(h===null&&f!==null){this.activeRowIndex=f,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}if(h!==null&&f===null){this.activeRowIndex=h,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}if(Math.abs(f-c)<Math.abs(h-c)){this.activeRowIndex=f,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}else{this.activeRowIndex=h,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}}}).bind(this),10);return}this.$handleGutterKeyboardInteraction(a),setTimeout((function(){this.editor._signal("gutterkeydown",new o(a,this))}).bind(this),10)},p.prototype.$handleGutterKeyboardInteraction=function(a){if(a.keyCode===s.tab){a.preventDefault();return}if(a.keyCode===s.escape){a.preventDefault(),this.$blurGutter(),this.element.focus(),this.lane=null;return}if(a.keyCode===s.up){switch(a.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetUp();break;case"annotation":this.$moveAnnotationUp();break}return}if(a.keyCode===s.down){switch(a.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetDown();break;case"annotation":this.$moveAnnotationDown();break}return}if(a.keyCode===s.left){a.preventDefault(),this.$switchLane("annotation");return}if(a.keyCode===s.right){a.preventDefault(),this.$switchLane("fold");return}if(a.keyCode===s.enter||a.keyCode===s.space){switch(a.preventDefault(),this.activeLane){case"fold":if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="start"){var i=this.$rowIndexToRow(this.activeRowIndex);this.editor.session.onFoldWidgetClick(this.$rowIndexToRow(this.activeRowIndex),a),setTimeout((function(){this.$rowIndexToRow(this.activeRowIndex)!==i&&(this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=this.$rowToRowIndex(i),this.$focusFoldWidget(this.activeRowIndex))}).bind(this),10);break}else if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="end")break;return;case"annotation":var c=this.lines.cells[this.activeRowIndex].element.childNodes[2],h=c.getBoundingClientRect(),f=this.annotationTooltip.getElement().style;f.left=h.right+"px",f.top=h.bottom+"px",this.annotationTooltip.showTooltip(this.$rowIndexToRow(this.activeRowIndex));break}return}},p.prototype.$blurGutter=function(){if(this.activeRowIndex!==null)switch(this.activeLane){case"fold":this.$blurFoldWidget(this.activeRowIndex);break;case"annotation":this.$blurAnnotation(this.activeRowIndex);break}this.annotationTooltip.isOpen&&this.annotationTooltip.hideTooltip()},p.prototype.$isFoldWidgetVisible=function(a){var i=this.editor.isRowFullyVisible(this.$rowIndexToRow(a)),c=this.$getFoldWidget(a).style.display!=="none";return i&&c},p.prototype.$isAnnotationVisible=function(a){var i=this.editor.isRowFullyVisible(this.$rowIndexToRow(a)),c=this.$getAnnotation(a).style.display!=="none";return i&&c},p.prototype.$getFoldWidget=function(a){var i=this.lines.get(a),c=i.element;return c.childNodes[1]},p.prototype.$getAnnotation=function(a){var i=this.lines.get(a),c=i.element;return c.childNodes[2]},p.prototype.$findNearestFoldWidget=function(a){if(this.$isFoldWidgetVisible(a))return a;for(var i=0;a-i>0||a+i<this.lines.getLength()-1;){if(i++,a-i>=0&&this.$isFoldWidgetVisible(a-i))return a-i;if(a+i<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(a+i))return a+i}return null},p.prototype.$findNearestAnnotation=function(a){if(this.$isAnnotationVisible(a))return a;for(var i=0;a-i>0||a+i<this.lines.getLength()-1;){if(i++,a-i>=0&&this.$isAnnotationVisible(a-i))return a-i;if(a+i<=this.lines.getLength()-1&&this.$isAnnotationVisible(a+i))return a+i}return null},p.prototype.$focusFoldWidget=function(a){if(a!=null){var i=this.$getFoldWidget(a);i.classList.add(this.editor.renderer.keyboardFocusClassName),i.focus()}},p.prototype.$focusAnnotation=function(a){if(a!=null){var i=this.$getAnnotation(a);i.classList.add(this.editor.renderer.keyboardFocusClassName),i.focus()}},p.prototype.$blurFoldWidget=function(a){var i=this.$getFoldWidget(a);i.classList.remove(this.editor.renderer.keyboardFocusClassName),i.blur()},p.prototype.$blurAnnotation=function(a){var i=this.$getAnnotation(a);i.classList.remove(this.editor.renderer.keyboardFocusClassName),i.blur()},p.prototype.$moveFoldWidgetUp=function(){for(var a=this.activeRowIndex;a>0;)if(a--,this.$isFoldWidgetVisible(a)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=a,this.$focusFoldWidget(this.activeRowIndex);return}},p.prototype.$moveFoldWidgetDown=function(){for(var a=this.activeRowIndex;a<this.lines.getLength()-1;)if(a++,this.$isFoldWidgetVisible(a)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=a,this.$focusFoldWidget(this.activeRowIndex);return}},p.prototype.$moveAnnotationUp=function(){for(var a=this.activeRowIndex;a>0;)if(a--,this.$isAnnotationVisible(a)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=a,this.$focusAnnotation(this.activeRowIndex);return}},p.prototype.$moveAnnotationDown=function(){for(var a=this.activeRowIndex;a<this.lines.getLength()-1;)if(a++,this.$isAnnotationVisible(a)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=a,this.$focusAnnotation(this.activeRowIndex);return}},p.prototype.$switchLane=function(a){switch(a){case"annotation":if(this.activeLane==="annotation")break;var i=this.$findNearestAnnotation(this.activeRowIndex);if(i==null)break;this.activeLane="annotation",this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=i,this.$focusAnnotation(this.activeRowIndex);break;case"fold":if(this.activeLane==="fold")break;var 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(a){var i=this.lines.get(a);return i?i.row:null},p.prototype.$rowToRowIndex=function(a){for(var i=0;i<this.lines.getLength();i++){var c=this.lines.get(i);if(c.row==a)return i}return null},p}();r.GutterKeyboardHandler=d;var o=function(){function p(a,i){this.gutterKeyboardHandler=i,this.domEvent=a}return p.prototype.getKey=function(){return s.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,l){var s=this&&this.__values||function($){var w=typeof Symbol=="function"&&Symbol.iterator,R=w&&$[w],T=0;if(R)return R.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.")},u=n("./lib/oop"),d=n("./lib/dom"),o=n("./lib/lang"),p=n("./lib/useragent"),a=n("./keyboard/textinput").TextInput,i=n("./mouse/mouse_handler").MouseHandler,c=n("./mouse/fold_handler").FoldHandler,h=n("./keyboard/keybinding").KeyBinding,f=n("./edit_session").EditSession,g=n("./search").Search,m=n("./range").Range,v=n("./lib/event_emitter").EventEmitter,y=n("./commands/command_manager").CommandManager,k=n("./commands/default_commands").commands,C=n("./config"),S=n("./token_iterator").TokenIterator,b=n("./line_widgets").LineWidgets,E=n("./keyboard/gutter_handler").GutterKeyboardHandler,L=n("./config").nls,x=n("./clipboard"),M=n("./lib/keys"),_=function(){function $(w,R,T){this.session,this.$toDestroy=[];var O=w.getContainerElement();this.container=O,this.renderer=w,this.id="editor"+ ++$.$uid,this.commands=new y(p.isMac?"mac":"win",k),typeof document=="object"&&(this.textInput=new a(w.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new i(this),new c(this)),this.keyBinding=new h(this),this.$search=new g().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=o.delayedCall((function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}).bind(this)),this.on("change",function(I,N){N._$emitInputEvent.schedule(31)}),this.setSession(R||T&&T.session||new f("")),C.resetOptions(this),T&&this.setOptions(T),C._signal("editor",this)}return $.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=o.delayedCall(this.endOperation.bind(this,!0)),this.on("change",(function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.docChanged=!0}).bind(this),!0),this.on("changeSelection",(function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.selectionChanged=!0}).bind(this),!0)},$.prototype.startOperation=function(w){if(this.curOp){if(!w||this.curOp.command)return;this.prevOp=this.curOp}w||(this.previousCommand=null,w={}),this.$opResetTimer.schedule(),this.curOp=this.session.curOp={command:w.command||{},args:w.args,scrollTop:this.renderer.scrollTop},this.curOp.selectionBefore=this.selection.toJSON()},$.prototype.endOperation=function(w){if(this.curOp&&this.session){if(w&&w.returnValue===!1||!this.session)return this.curOp=null;if(w==!0&&this.curOp.command&&this.curOp.command.name=="mouse"||(this._signal("beforeEndOperation"),!this.curOp))return;var R=this.curOp.command,T=R&&R.scrollIntoView;if(T){switch(T){case"center-animate":T="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var O=this.selection.getRange(),I=this.renderer.layerConfig;(O.start.row>=I.lastRow||O.end.row<=I.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}T=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}var N=this.selection.toJSON();this.curOp.selectionAfter=N,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(N),this.prevOp=this.curOp,this.curOp=null}},$.prototype.$historyTracker=function(w){if(this.$mergeUndoDeltas){var R=this.prevOp,T=this.$mergeableCommands,O=R.command&&w.command.name==R.command.name;if(w.command.name=="insertstring"){var I=w.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),O=O&&this.mergeNextCommand&&(!/\s/.test(I)||/\s/.test(R.args)),this.mergeNextCommand=!0}else O=O&&T.indexOf(w.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(O=!1),O?this.session.mergeUndoDeltas=!0:T.indexOf(w.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},$.prototype.setKeyboardHandler=function(w,R){if(w&&typeof w=="string"&&w!="ace"){this.$keybindingId=w;var T=this;C.loadModule(["keybinding",w],function(O){T.$keybindingId==w&&T.keyBinding.setKeyboardHandler(O&&O.handler),R&&R()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(w),R&&R()},$.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},$.prototype.setSession=function(w){if(this.session!=w){this.curOp&&this.endOperation(),this.curOp={};var R=this.session;if(R){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var T=this.session.getSelection();T.off("changeCursor",this.$onCursorChange),T.off("changeSelection",this.$onSelectionChange)}this.session=w,w?(this.$onDocumentChange=this.onDocumentChange.bind(this),w.on("change",this.$onDocumentChange),this.renderer.setSession(w),this.$onChangeMode=this.onChangeMode.bind(this),w.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),w.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),w.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),w.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),w.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),w.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=w.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(w)),this._signal("changeSession",{session:w,oldSession:R}),this.curOp=null,R&&R._signal("changeEditor",{oldEditor:this}),w&&w._signal("changeEditor",{editor:this}),w&&!w.destroyed&&w.bgTokenizer.scheduleStart()}},$.prototype.getSession=function(){return this.session},$.prototype.setValue=function(w,R){return this.session.doc.setValue(w),R?R==1?this.navigateFileEnd():R==-1&&this.navigateFileStart():this.selectAll(),w},$.prototype.getValue=function(){return this.session.getValue()},$.prototype.getSelection=function(){return this.selection},$.prototype.resize=function(w){this.renderer.onResize(w)},$.prototype.setTheme=function(w,R){this.renderer.setTheme(w,R)},$.prototype.getTheme=function(){return this.renderer.getTheme()},$.prototype.setStyle=function(w){this.renderer.setStyle(w)},$.prototype.unsetStyle=function(w){this.renderer.unsetStyle(w)},$.prototype.getFontSize=function(){return this.getOption("fontSize")||d.computedStyle(this.container).fontSize},$.prototype.setFontSize=function(w){this.setOption("fontSize",w)},$.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var w=this;this.$highlightPending=!0,setTimeout(function(){w.$highlightPending=!1;var R=w.session;if(!(!R||R.destroyed)){R.$bracketHighlight&&(R.$bracketHighlight.markerIds.forEach(function(H){R.removeMarker(H)}),R.$bracketHighlight=null);var T=w.getCursorPosition(),O=w.getKeyboardHandler(),I=O&&O.$getDirectionForHighlight&&O.$getDirectionForHighlight(w),N=R.getMatchingBracketRanges(T,I);if(!N){var P=new S(R,T.row,T.column),W=P.getCurrentToken();if(W&&/\b(?:tag-open|tag-name)/.test(W.type)){var j=R.getMatchingTags(T);j&&(N=[j.openTagName,j.closeTagName])}}if(!N&&R.$mode.getMatching&&(N=R.$mode.getMatching(w.session)),!N){w.getHighlightIndentGuides()&&w.renderer.$textLayer.$highlightIndentGuide();return}var V="ace_bracket";Array.isArray(N)?N.length==1&&(V="ace_error_bracket"):N=[N],N.length==2&&(m.comparePoints(N[0].end,N[1].start)==0?N=[m.fromPoints(N[0].start,N[1].end)]:m.comparePoints(N[0].start,N[1].end)==0&&(N=[m.fromPoints(N[1].start,N[0].end)])),R.$bracketHighlight={ranges:N,markerIds:N.map(function(H){return R.addMarker(H,V,"text")})},w.getHighlightIndentGuides()&&w.renderer.$textLayer.$highlightIndentGuide()}},50)}},$.prototype.focus=function(){this.textInput.focus()},$.prototype.isFocused=function(){return this.textInput.isFocused()},$.prototype.blur=function(){this.textInput.blur()},$.prototype.onFocus=function(w){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",w))},$.prototype.onBlur=function(w){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",w))},$.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},$.prototype.onDocumentChange=function(w){var R=this.session.$useWrapMode,T=w.start.row==w.end.row?w.end.row:1/0;this.renderer.updateLines(w.start.row,T,R),this._signal("change",w),this.$cursorChange()},$.prototype.onTokenizerUpdate=function(w){var R=w.data;this.renderer.updateLines(R.first,R.last)},$.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},$.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},$.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},$.prototype.$updateHighlightActiveLine=function(){var w=this.getSession(),R;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(R=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(R=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(R=!1)),w.$highlightLineMarker&&!R)w.removeMarker(w.$highlightLineMarker.id),w.$highlightLineMarker=null;else if(!w.$highlightLineMarker&&R){var T=new m(R.row,R.column,R.row,1/0);T.id=w.addMarker(T,"ace_active-line","screenLine"),w.$highlightLineMarker=T}else R&&(w.$highlightLineMarker.start.row=R.row,w.$highlightLineMarker.end.row=R.row,w.$highlightLineMarker.start.column=R.column,w._signal("changeBackMarker"))},$.prototype.onSelectionChange=function(w){var R=this.session;if(R.$selectionMarker&&R.removeMarker(R.$selectionMarker),R.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var T=this.selection.getRange(),O=this.getSelectionStyle();R.$selectionMarker=R.addMarker(T,"ace_selection",O)}var I=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(I),this._signal("changeSelection")},$.prototype.$getSelectionHighLightRegexp=function(){var w=this.session,R=this.getSelectionRange();if(!(R.isEmpty()||R.isMultiLine())){var T=R.start.column,O=R.end.column,I=w.getLine(R.start.row),N=I.substring(T,O);if(!(N.length>5e3||!/[\w\d]/.test(N))){var P=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:N}),W=I.substring(T-1,O+1);if(P.test(W))return P}}},$.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},$.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},$.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},$.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},$.prototype.onChangeMode=function(w){this.renderer.updateText(),this._emit("changeMode",w)},$.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},$.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},$.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},$.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},$.prototype.getCopyText=function(){var w=this.getSelectedText(),R=this.session.doc.getNewLineCharacter(),T=!1;if(!w&&this.$copyWithEmptySelection){T=!0;for(var O=this.selection.getAllRanges(),I=0;I<O.length;I++){var N=O[I];I&&O[I-1].start.row==N.start.row||(w+=this.session.getLine(N.start.row)+R)}}var P={text:w};return this._signal("copy",P),x.lineMode=T?P.text:!1,P.text},$.prototype.onCopy=function(){this.commands.exec("copy",this)},$.prototype.onCut=function(){this.commands.exec("cut",this)},$.prototype.onPaste=function(w,R){var T={text:w,event:R};this.commands.exec("paste",this,T)},$.prototype.$handlePaste=function(w){typeof w=="string"&&(w={text:w}),this._signal("paste",w);var R=w.text,T=R===x.lineMode,O=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)T?O.insert({row:this.selection.lead.row,column:0},R):this.insert(R);else if(T)this.selection.rangeList.ranges.forEach(function(V){O.insert({row:V.start.row,column:0},R)});else{var I=R.split(/\r\n|\r|\n/),N=this.selection.rangeList.ranges,P=I.length==2&&(!I[0]||!I[1]);if(I.length!=N.length||P)return this.commands.exec("insertstring",this,R);for(var W=N.length;W--;){var j=N[W];j.isEmpty()||O.remove(j),O.insert(j.start,I[W])}}},$.prototype.execCommand=function(w,R){return this.commands.exec(w,this,R)},$.prototype.insert=function(w,R){var T=this.session,O=T.getMode(),I=this.getCursorPosition();if(this.getBehavioursEnabled()&&!R){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(`
1040
+ `)==-1){var P=m.fromPoints(I,I);P.end.column+=w.length,this.session.remove(P)}}else{var P=this.getSelectionRange();I=this.session.remove(P),this.clearSelection()}if(w==`
1041
+ `||w==`\r
1042
+ `){var H=T.getLine(I.row);if(I.column>H.search(/\S|$/)){var W=H.substr(I.column).search(/\S|$/);T.doc.removeInLine(I.row,I.column,I.column+W)}}this.clearSelection();var j=I.column,V=T.getState(I.row),H=T.getLine(I.row),G=O.checkOutdent(V,H,w);if(T.insert(I,w),N&&N.selection&&(N.selection.length==2?this.selection.setSelectionRange(new m(I.row,j+N.selection[0],I.row,j+N.selection[1])):this.selection.setSelectionRange(new m(I.row+N.selection[0],N.selection[1],I.row+N.selection[2],N.selection[3]))),this.$enableAutoIndent){if(T.getDocument().isNewLine(w)){var Q=O.getNextLineIndent(V,H.slice(0,I.column),T.getTabString());T.insert({row:I.row+1,column:0},Q)}G&&O.autoOutdent(V,T,I.row)}},$.prototype.autoIndent=function(){for(var w=this.session,R=w.getMode(),T=this.selection.isEmpty()?[new m(0,0,w.doc.getLength()-1,0)]:this.selection.getAllRanges(),O="",I="",N="",P=w.getTabString(),W=0;W<T.length;W++)for(var j=T[W].start.row,V=T[W].end.row,H=j;H<=V;H++){H>0&&(O=w.getState(H-1),I=w.getLine(H-1),N=R.getNextLineIndent(O,I,P));var G=w.getLine(H),Q=R.$getIndent(G);if(N!==Q){if(Q.length>0){var U=new m(H,0,H,Q.length);w.remove(U)}N.length>0&&w.insert({row:H,column:0},N)}R.autoOutdent(O,w,H)}},$.prototype.onTextInput=function(w,R){if(!R)return this.keyBinding.onTextInput(w);this.startOperation({command:{name:"insertstring"}});var T=this.applyComposition.bind(this,w,R);this.selection.rangeCount?this.forEachSelection(T):T(),this.endOperation()},$.prototype.applyComposition=function(w,R){if(R.extendLeft||R.extendRight){var T=this.selection.getRange();T.start.column-=R.extendLeft,T.end.column+=R.extendRight,T.start.column<0&&(T.start.row--,T.start.column+=this.session.getLine(T.start.row).length+1),this.selection.setRange(T),!w&&!T.isEmpty()&&this.remove()}if((w||!this.selection.isEmpty())&&this.insert(w,!0),R.restoreStart||R.restoreEnd){var T=this.selection.getRange();T.start.column-=R.restoreStart,T.end.column-=R.restoreEnd,this.selection.setRange(T)}},$.prototype.onCommandKey=function(w,R,T){return this.keyBinding.onCommandKey(w,R,T)},$.prototype.setOverwrite=function(w){this.session.setOverwrite(w)},$.prototype.getOverwrite=function(){return this.session.getOverwrite()},$.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},$.prototype.setScrollSpeed=function(w){this.setOption("scrollSpeed",w)},$.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},$.prototype.setDragDelay=function(w){this.setOption("dragDelay",w)},$.prototype.getDragDelay=function(){return this.getOption("dragDelay")},$.prototype.setSelectionStyle=function(w){this.setOption("selectionStyle",w)},$.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},$.prototype.setHighlightActiveLine=function(w){this.setOption("highlightActiveLine",w)},$.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},$.prototype.setHighlightGutterLine=function(w){this.setOption("highlightGutterLine",w)},$.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},$.prototype.setHighlightSelectedWord=function(w){this.setOption("highlightSelectedWord",w)},$.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},$.prototype.setAnimatedScroll=function(w){this.renderer.setAnimatedScroll(w)},$.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},$.prototype.setShowInvisibles=function(w){this.renderer.setShowInvisibles(w)},$.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},$.prototype.setDisplayIndentGuides=function(w){this.renderer.setDisplayIndentGuides(w)},$.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},$.prototype.setHighlightIndentGuides=function(w){this.renderer.setHighlightIndentGuides(w)},$.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},$.prototype.setShowPrintMargin=function(w){this.renderer.setShowPrintMargin(w)},$.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},$.prototype.setPrintMarginColumn=function(w){this.renderer.setPrintMarginColumn(w)},$.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},$.prototype.setReadOnly=function(w){this.setOption("readOnly",w)},$.prototype.getReadOnly=function(){return this.getOption("readOnly")},$.prototype.setBehavioursEnabled=function(w){this.setOption("behavioursEnabled",w)},$.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},$.prototype.setWrapBehavioursEnabled=function(w){this.setOption("wrapBehavioursEnabled",w)},$.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},$.prototype.setShowFoldWidgets=function(w){this.setOption("showFoldWidgets",w)},$.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},$.prototype.setFadeFoldWidgets=function(w){this.setOption("fadeFoldWidgets",w)},$.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},$.prototype.remove=function(w){this.selection.isEmpty()&&(w=="left"?this.selection.selectLeft():this.selection.selectRight());var R=this.getSelectionRange();if(this.getBehavioursEnabled()){var T=this.session,O=T.getState(R.start.row),I=T.getMode().transformAction(O,"deletion",this,T,R);if(R.end.column===0){var N=T.getTextRange(R);if(N[N.length-1]==`
1043
+ `){var P=T.getLine(R.end.row);/^\s+$/.test(P)&&(R.end.column=P.length)}}I&&(R=I)}this.session.remove(R),this.clearSelection()},$.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},$.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},$.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},$.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var w=this.getSelectionRange();w.start.column==w.end.column&&w.start.row==w.end.row&&(w.end.column=0,w.end.row++),this.session.remove(w),this.clearSelection()},$.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var w=this.getCursorPosition();this.insert(`
1044
+ `),this.moveCursorToPosition(w)},$.prototype.setGhostText=function(w,R){this.session.widgetManager||(this.session.widgetManager=new b(this.session),this.session.widgetManager.attach(this)),this.renderer.setGhostText(w,R)},$.prototype.removeGhostText=function(){this.session.widgetManager&&this.renderer.removeGhostText()},$.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var w=this.getCursorPosition(),R=w.column;if(R!==0){var T=this.session.getLine(w.row),O,I;R<T.length?(O=T.charAt(R)+T.charAt(R-1),I=new m(w.row,R-1,w.row,R+1)):(O=T.charAt(R-1)+T.charAt(R-2),I=new m(w.row,R-2,w.row,R)),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 R=this.getSelectionRange(),T=this.session.getTextRange(R);this.session.replace(R,T.toLowerCase()),this.selection.setSelectionRange(w)},$.prototype.toUpperCase=function(){var w=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var R=this.getSelectionRange(),T=this.session.getTextRange(R);this.session.replace(R,T.toUpperCase()),this.selection.setSelectionRange(w)},$.prototype.indent=function(){var w=this.session,R=this.getSelectionRange();if(R.start.row<R.end.row){var T=this.$getSelectedRows();w.indentRows(T.first,T.last," ");return}else if(R.start.column<R.end.column){var O=w.getTextRange(R);if(!/^\s+$/.test(O)){var T=this.$getSelectedRows();w.indentRows(T.first,T.last," ");return}}var I=w.getLine(R.start.row),N=R.start,P=w.getTabSize(),W=w.documentToScreenColumn(N.row,N.column);if(this.session.getUseSoftTabs())var j=P-W%P,V=o.stringRepeat(" ",j);else{for(var j=W%P;I[R.start.column-1]==" "&&j;)R.start.column--,j--;this.selection.setSelectionRange(R),V=" "}return this.insert(V)},$.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(),R=this.session,T=[],O=w.first;O<=w.last;O++)T.push(R.getLine(O));T.sort(function(P,W){return P.toLowerCase()<W.toLowerCase()?-1:P.toLowerCase()>W.toLowerCase()?1:0});for(var I=new m(0,0,0,0),O=w.first;O<=w.last;O++){var N=R.getLine(O);I.start.row=O,I.end.row=O,I.end.column=N.length,R.replace(I,T[O-w.first])}},$.prototype.toggleCommentLines=function(){var w=this.session.getState(this.getCursorPosition().row),R=this.$getSelectedRows();this.session.getMode().toggleCommentLines(w,this.session,R.first,R.last)},$.prototype.toggleBlockComment=function(){var w=this.getCursorPosition(),R=this.session.getState(w.row),T=this.getSelectionRange();this.session.getMode().toggleBlockComment(R,this.session,T,w)},$.prototype.getNumberAt=function(w,R){var T=/[\-]?[0-9]+(?:\.[0-9]+)?/g;T.lastIndex=0;for(var O=this.session.getLine(w);T.lastIndex<R;){var I=T.exec(O);if(I.index<=R&&I.index+I[0].length>=R){var N={value:I[0],start:I.index,end:I.index+I[0].length};return N}}return null},$.prototype.modifyNumber=function(w){var R=this.selection.getCursor().row,T=this.selection.getCursor().column,O=new m(R,T-1,R,T),I=this.session.getTextRange(O);if(!isNaN(parseFloat(I))&&isFinite(I)){var N=this.getNumberAt(R,T);if(N){var P=N.value.indexOf(".")>=0?N.start+N.value.indexOf(".")+1:N.end,W=N.start+N.value.length-P,j=parseFloat(N.value);j*=Math.pow(10,W),P!==N.end&&T<P?w*=Math.pow(10,N.end-T-1):w*=Math.pow(10,N.end-T),j+=w,j/=Math.pow(10,W);var V=j.toFixed(W),H=new m(R,N.start,R,N.end);this.session.replace(H,V),this.moveCursorTo(R,Math.max(N.start+1,T+V.length-N.value.length))}}else this.toggleWord()},$.prototype.toggleWord=function(){var w=this.selection.getCursor().row,R=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=R-O-1;N<0&&(N=0);var P=0,W=0,j=this;T.match(/[A-Za-z0-9_]+/)&&I.forEach(function(ee,he){W=P+ee.length,N>=P&&N<=W&&(T=ee,j.selection.clearSelection(),j.moveCursorTo(w,P+O),j.selection.selectTo(w,W+O)),P=W});for(var V=this.$toggleWordPairs,H,G=0;G<V.length;G++)for(var Q=V[G],U=0;U<=1;U++){var X=+!U,Y=T.match(new RegExp("^\\s?_?("+o.escapeRegExp(Q[U])+")\\s?$","i"));if(Y){var z=T.match(new RegExp("([_]|^|\\s)("+o.escapeRegExp(Y[1])+")($|\\s)","g"));z&&(H=T.replace(new RegExp(o.escapeRegExp(Q[U]),"i"),function(ee){var he=Q[X];return ee.toUpperCase()==ee?he=he.toUpperCase():ee.charAt(0).toUpperCase()==ee.charAt(0)&&(he=he.substr(0,0)+Q[X].charAt(0).toUpperCase()+he.substr(1)),he}),this.insert(H),H="")}}},$.prototype.findLinkAt=function(w,R){var T,O,I=this.session.getLine(w),N=I.split(/((?:https?|ftp):\/\/[\S]+)/),P=R;P<0&&(P=0);var W=0,j=0,V;try{for(var H=s(N),G=H.next();!G.done;G=H.next()){var Q=G.value;if(j=W+Q.length,P>=W&&P<=j&&Q.match(/((?:https?|ftp):\/\/[\S]+)/)){V=Q.replace(/[\s:.,'";}\]]+$/,"");break}W=j}}catch(U){T={error:U}}finally{try{G&&!G.done&&(O=H.return)&&O.call(H)}finally{if(T)throw T.error}}return V},$.prototype.openLink=function(){var w=this.selection.getCursor(),R=this.findLinkAt(w.row,w.column);return R&&window.open(R,"_blank"),R!=null},$.prototype.removeLines=function(){var w=this.$getSelectedRows();this.session.removeFullLines(w.first,w.last),this.clearSelection()},$.prototype.duplicateSelection=function(){var w=this.selection,R=this.session,T=w.getRange(),O=w.isBackwards();if(T.isEmpty()){var I=T.start.row;R.duplicateLines(I,I)}else{var N=O?T.start:T.end,P=R.insert(N,R.getTextRange(T));T.start=N,T.end=P,w.setSelectionRange(T,O)}},$.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},$.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},$.prototype.moveText=function(w,R,T){return this.session.moveText(w,R,T)},$.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},$.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},$.prototype.$moveLines=function(w,R){var T,O,I=this.selection;if(!I.inMultiSelectMode||this.inVirtualSelectionMode){var N=I.toOrientedRange();T=this.$getSelectedRows(N),O=this.session.$moveLines(T.first,T.last,R?0:w),R&&w==-1&&(O=0),N.moveBy(O,0),I.fromOrientedRange(N)}else{var P=I.rangeList.ranges;I.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var W=0,j=0,V=P.length,H=0;H<V;H++){var G=H;P[H].moveBy(W,0),T=this.$getSelectedRows(P[H]);for(var Q=T.first,U=T.last;++H<V;){j&&P[H].moveBy(j,0);var X=this.$getSelectedRows(P[H]);if(R&&X.first!=U)break;if(!R&&X.first>U+1)break;U=X.last}for(H--,W=this.session.$moveLines(Q,U,R?0:w),R&&w==-1&&(G=H+1);G<=H;)P[G].moveBy(W,0),G++;R||(W=0),j+=W}I.fromOrientedRange(I.ranges[0]),I.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},$.prototype.$getSelectedRows=function(w){return w=(w||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(w.start.row),last:this.session.getRowFoldEnd(w.end.row)}},$.prototype.onCompositionStart=function(w){this.renderer.showComposition(w)},$.prototype.onCompositionUpdate=function(w){this.renderer.setCompositionText(w)},$.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},$.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},$.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},$.prototype.isRowVisible=function(w){return w>=this.getFirstVisibleRow()&&w<=this.getLastVisibleRow()},$.prototype.isRowFullyVisible=function(w){return w>=this.renderer.getFirstFullyVisibleRow()&&w<=this.renderer.getLastFullyVisibleRow()},$.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},$.prototype.$moveByPage=function(w,R){var T=this.renderer,O=this.renderer.layerConfig,I=w*Math.floor(O.height/O.lineHeight);R===!0?this.selection.$moveSelection(function(){this.moveCursorBy(I,0)}):R===!1&&(this.selection.moveCursorBy(I,0),this.selection.clearSelection());var N=T.scrollTop;T.scrollBy(0,I*O.lineHeight),R!=null&&T.scrollCursorIntoView(null,.5),T.animateScrolling(N)},$.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},$.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},$.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},$.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},$.prototype.scrollPageDown=function(){this.$moveByPage(1)},$.prototype.scrollPageUp=function(){this.$moveByPage(-1)},$.prototype.scrollToRow=function(w){this.renderer.scrollToRow(w)},$.prototype.scrollToLine=function(w,R,T,O){this.renderer.scrollToLine(w,R,T,O)},$.prototype.centerSelection=function(){var w=this.getSelectionRange(),R={row:Math.floor(w.start.row+(w.end.row-w.start.row)/2),column:Math.floor(w.start.column+(w.end.column-w.start.column)/2)};this.renderer.alignCursor(R,.5)},$.prototype.getCursorPosition=function(){return this.selection.getCursor()},$.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},$.prototype.getSelectionRange=function(){return this.selection.getRange()},$.prototype.selectAll=function(){this.selection.selectAll()},$.prototype.clearSelection=function(){this.selection.clearSelection()},$.prototype.moveCursorTo=function(w,R){this.selection.moveCursorTo(w,R)},$.prototype.moveCursorToPosition=function(w){this.selection.moveCursorToPosition(w)},$.prototype.jumpToMatching=function(w,R){var T=this.getCursorPosition(),O=new S(this.session,T.row,T.column),I=O.getCurrentToken(),N=0;I&&I.type.indexOf("tag-name")!==-1&&(I=O.stepBackward());var P=I||O.stepForward();if(P){var W,j=!1,V={},H=T.column-P.start,G,Q={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(P.value.match(/[{}()\[\]]/g)){for(;H<P.value.length&&!j;H++)if(Q[P.value[H]])switch(G=Q[P.value[H]]+"."+P.type.replace("rparen","lparen"),isNaN(V[G])&&(V[G]=0),P.value[H]){case"(":case"[":case"{":V[G]++;break;case")":case"]":case"}":V[G]--,V[G]===-1&&(W="bracket",j=!0);break}}else P.type.indexOf("tag-name")!==-1&&(isNaN(V[P.value])&&(V[P.value]=0),I.value==="<"&&N>1?V[P.value]++:I.value==="</"&&V[P.value]--,V[P.value]===-1&&(W="tag",j=!0));j||(I=P,N++,P=O.stepForward(),H=0)}while(P&&!j);if(W){var U,X;if(W==="bracket")U=this.session.getBracketRange(T),U||(U=new m(O.getCurrentTokenRow(),O.getCurrentTokenColumn()+H-1,O.getCurrentTokenRow(),O.getCurrentTokenColumn()+H-1),X=U.start,(R||X.row===T.row&&Math.abs(X.column-T.column)<2)&&(U=this.session.getBracketRange(X)));else if(W==="tag"){if(!P||P.type.indexOf("tag-name")===-1)return;if(U=new m(O.getCurrentTokenRow(),O.getCurrentTokenColumn()-2,O.getCurrentTokenRow(),O.getCurrentTokenColumn()-2),U.compare(T.row,T.column)===0){var Y=this.session.getMatchingTags(T);Y&&(Y.openTag.contains(T.row,T.column)?(U=Y.closeTag,X=U.start):(U=Y.openTag,Y.closeTag.start.row===T.row&&Y.closeTag.start.column===T.column?X=U.end:X=U.start))}X=X||U.start}X=U&&U.cursor||X,X&&(w?U&&R?this.selection.setRange(U):U&&U.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(X.row,X.column):this.selection.moveTo(X.row,X.column))}}},$.prototype.gotoLine=function(w,R,T){this.selection.clearSelection(),this.session.unfold({row:w-1,column:R||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(w-1,R||0),this.isRowFullyVisible(w-1)||this.scrollToLine(w-1,!0,T)},$.prototype.navigateTo=function(w,R){this.selection.moveTo(w,R)},$.prototype.navigateUp=function(w){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var R=this.selection.anchor.getPosition();return this.moveCursorToPosition(R)}this.selection.clearSelection(),this.selection.moveCursorBy(-w||-1,0)},$.prototype.navigateDown=function(w){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var R=this.selection.anchor.getPosition();return this.moveCursorToPosition(R)}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 R=this.getSelectionRange().start;this.moveCursorToPosition(R)}this.clearSelection()},$.prototype.navigateRight=function(w){if(this.selection.isEmpty())for(w=w||1;w--;)this.selection.moveCursorRight();else{var R=this.getSelectionRange().end;this.moveCursorToPosition(R)}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,R){R&&this.$search.set(R);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,R){R&&this.$search.set(R);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,R){var T=this.session.getTextRange(w);return R=this.$search.replace(T,R),R!==null?(w.end=this.session.replace(w,R),w):null},$.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},$.prototype.find=function(w,R,T){R||(R={}),typeof w=="string"||w instanceof RegExp?R.needle=w:typeof w=="object"&&u.mixin(R,w);var O=this.selection.getRange();R.needle==null&&(w=this.session.getTextRange(O)||this.$search.$options.needle,w||(O=this.session.getWordRange(O.start.row,O.start.column),w=this.session.getTextRange(O)),this.$search.set({needle:w})),this.$search.set(R),R.start||this.$search.set({start:O});var I=this.$search.find(this.session);if(R.preventScroll)return I;if(I)return this.revealRange(I,T),I;R.backwards?O.start=O.end:O.end=O.start,this.selection.setRange(O)},$.prototype.findNext=function(w,R){this.find({skipCurrent:!0,backwards:!1},w,R)},$.prototype.findPrevious=function(w,R){this.find(w,{skipCurrent:!0,backwards:!0},R)},$.prototype.revealRange=function(w,R){this.session.unfold(w),this.selection.setSelectionRange(w);var T=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(w.start,w.end,.5),R!==!1&&this.renderer.animateScrolling(T)},$.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},$.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},$.prototype.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(w){w.destroy()}),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},$.prototype.setAutoScrollEditorIntoView=function(w){if(w){var R,T=this,O=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var I=this.$scrollAnchor;I.style.cssText="position:absolute",this.container.insertBefore(I,this.container.firstChild);var N=this.on("changeSelection",function(){O=!0}),P=this.renderer.on("beforeRender",function(){O&&(R=T.renderer.container.getBoundingClientRect())}),W=this.renderer.on("afterRender",function(){if(O&&R&&(T.isFocused()||T.searchBox&&T.searchBox.isFocused())){var j=T.renderer,V=j.$cursorLayer.$pixelPos,H=j.layerConfig,G=V.top-H.offset;V.top>=0&&G+R.top<0?O=!0:V.top<H.height&&V.top+R.top+H.lineHeight>window.innerHeight?O=!1:O=null,O!=null&&(I.style.top=G+"px",I.style.left=V.left+"px",I.style.height=H.lineHeight+"px",I.scrollIntoView(O)),O=R=null}});this.setAutoScrollEditorIntoView=function(j){j||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",N),this.renderer.off("afterRender",W),this.renderer.off("beforeRender",P))}}},$.prototype.$resetCursorStyle=function(){var w=this.$cursorStyle||"ace",R=this.renderer.$cursorLayer;R&&(R.setSmoothBlinking(/smooth/.test(w)),R.isBlinking=!this.$readOnly&&w!="wide",d.setCssClass(R.element,"ace_slim-cursors",/slim/.test(w)))},$.prototype.prompt=function(w,R,T){var O=this;C.loadModule("ace/ext/prompt",function(I){I.prompt(O,w,R,T)})},$}();_.$uid=0,_.prototype.curOp=null,_.prototype.prevOp={},_.prototype.$mergeableCommands=["backspace","del","insertstring"],_.prototype.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],u.implement(_.prototype,v),C.defineOptions(_.prototype,"editor",{selectionStyle:{set:function($){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:$})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function($){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function($){this.textInput.setReadOnly($),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function($){this.textInput.setCopyWithEmptySelection($)},initialValue:!1},cursorStyle:{set:function($){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function($){this.setAutoScrollEditorIntoView($)}},keyboardHandler:{set:function($){this.setKeyboardHandler($)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function($){this.session.setValue($)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function($){this.setSession($)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function($){this.renderer.$gutterLayer.setShowLineNumbers($),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),$&&this.$relativeLineNumbers?A.attach(this):A.detach(this)},initialValue:!0},relativeLineNumbers:{set:function($){this.$showLineNumbers&&$?A.attach(this):A.detach(this)}},placeholder:{set:function($){this.$updatePlaceholder||(this.$updatePlaceholder=(function(){var w=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(w&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),d.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(!w&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),d.addCssClass(this.container,"ace_hasPlaceholder");var R=d.createElement("div");R.className="ace_placeholder",R.textContent=this.$placeholder||"",this.renderer.placeholderNode=R,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!w&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}).bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function($){var w={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(O){O.blur(),O.renderer.scroller.focus()},readOnly:!0},R=function(O){if(O.target==this.renderer.scroller&&O.keyCode===M.enter){O.preventDefault();var I=this.getCursorPosition().row;this.isRowVisible(I)||this.scrollToLine(I,!0,!0),this.focus()}},T;$?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(p.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",L("editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",L("Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",R.bind(this)),this.commands.addCommand(w),this.renderer.$gutter.setAttribute("tabindex",0),this.renderer.$gutter.setAttribute("aria-hidden",!1),this.renderer.$gutter.setAttribute("role","group"),this.renderer.$gutter.setAttribute("aria-roledescription",L("editor")),this.renderer.$gutter.setAttribute("aria-label",L("Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit")),this.renderer.$gutter.classList.add(this.renderer.keyboardFocusClassName),this.renderer.content.setAttribute("aria-hidden",!0),T||(T=new E(this)),T.addListener()):(this.renderer.enableKeyboardAccessibility=!1,this.textInput.getElement().setAttribute("tabindex",0),this.textInput.setNumberOfExtraLines(0),this.renderer.scroller.setAttribute("tabindex",-1),this.renderer.scroller.removeAttribute("role"),this.renderer.scroller.removeAttribute("aria-roledescription"),this.renderer.scroller.classList.remove(this.renderer.keyboardFocusClassName),this.renderer.scroller.removeAttribute("aria-label"),this.renderer.scroller.removeEventListener("keyup",R.bind(this)),this.commands.removeCommand(w),this.renderer.content.removeAttribute("aria-hidden"),this.renderer.$gutter.setAttribute("tabindex",-1),this.renderer.$gutter.setAttribute("aria-hidden",!0),this.renderer.$gutter.removeAttribute("role"),this.renderer.$gutter.removeAttribute("aria-roledescription"),this.renderer.$gutter.removeAttribute("aria-label"),this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName),T&&T.removeListener())},initialValue:!1},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",useResizeObserver:"renderer",useSvgGutterIcons:"renderer",showFoldedAnnotations:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var A={getText:function($,w){return(Math.abs($.selection.lead.row-w)||w+1+(w<9?"·":""))+""},getWidth:function($,w,R){return Math.max(w.toString().length,(R.lastRow+1).toString().length,2)*R.characterWidth},update:function($,w){w.renderer.$loop.schedule(w.renderer.CHANGE_GUTTER)},attach:function($){$.renderer.$gutterLayer.$renderer=this,$.on("changeSelection",this.update),this.update(null,$)},detach:function($){$.renderer.$gutterLayer.$renderer==this&&($.renderer.$gutterLayer.$renderer=null),$.off("changeSelection",this.update),this.update(null,$)}};r.Editor=_}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(n,r,l){var s=n("../lib/dom"),u=function(){function d(o,p){this.element=o,this.canvasHeight=p||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return d.prototype.moveContainer=function(o){s.translate(this.element,0,-(o.firstRowScreen*o.lineHeight%this.canvasHeight)-o.offset*this.$offsetCoefficient)},d.prototype.pageChanged=function(o,p){return Math.floor(o.firstRowScreen*o.lineHeight/this.canvasHeight)!==Math.floor(p.firstRowScreen*p.lineHeight/this.canvasHeight)},d.prototype.computeLineTop=function(o,p,a){var i=p.firstRowScreen*p.lineHeight,c=Math.floor(i/this.canvasHeight),h=a.documentToScreenRow(o,0)*p.lineHeight;return h-c*this.canvasHeight},d.prototype.computeLineHeight=function(o,p,a){return p.lineHeight*a.getRowLineCount(o)},d.prototype.getLength=function(){return this.cells.length},d.prototype.get=function(o){return this.cells[o]},d.prototype.shift=function(){this.$cacheCell(this.cells.shift())},d.prototype.pop=function(){this.$cacheCell(this.cells.pop())},d.prototype.push=function(o){if(Array.isArray(o)){this.cells.push.apply(this.cells,o);for(var p=s.createFragment(this.element),a=0;a<o.length;a++)p.appendChild(o[a].element);this.element.appendChild(p)}else this.cells.push(o),this.element.appendChild(o.element)},d.prototype.unshift=function(o){if(Array.isArray(o)){this.cells.unshift.apply(this.cells,o);for(var p=s.createFragment(this.element),a=0;a<o.length;a++)p.appendChild(o[a].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)},d.prototype.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},d.prototype.$cacheCell=function(o){o&&(o.element.remove(),this.cellCache.push(o))},d.prototype.createCell=function(o,p,a,i){var c=this.cellCache.pop();if(!c){var h=s.createElement("div");i&&i(h),this.element.appendChild(h),c={element:h,text:"",row:o}}return c.row=o,c},d}();r.Lines=u}),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/layer/lines","ace/config"],function(n,r,l){var s=n("../lib/dom"),u=n("../lib/oop"),d=n("../lib/lang"),o=n("../lib/event_emitter").EventEmitter,p=n("./lines").Lines,a=n("../config").nls,i=function(){function h(f){this.element=s.createElement("div"),this.element.className="ace_layer ace_gutter-layer",f.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new p(this.element),this.$lines.$offsetCoefficient=1}return h.prototype.setSession=function(f){this.session&&this.session.off("change",this.$updateAnnotations),this.session=f,f&&f.on("change",this.$updateAnnotations)},h.prototype.addGutterDecoration=function(f,g){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(f,g)},h.prototype.removeGutterDecoration=function(f,g){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(f,g)},h.prototype.setAnnotations=function(f){this.$annotations=[];for(var g=0;g<f.length;g++){var m=f[g],v=m.row,y=this.$annotations[v];y||(y=this.$annotations[v]={text:[],type:[]});var k=m.text,C=m.type;k=k?d.escapeHTML(k):m.html||"",y.text.indexOf(k)===-1&&(y.text.push(k),y.type.push(C));var S=m.className;S?y.className=S:C=="error"?y.className=" ace_error":C=="warning"&&y.className!=" ace_error"?y.className=" ace_warning":C=="info"&&!y.className&&(y.className=" ace_info")}},h.prototype.$updateAnnotations=function(f){if(this.$annotations.length){var g=f.start.row,m=f.end.row-g;if(m!==0)if(f.action=="remove")this.$annotations.splice(g,m+1,null);else{var v=new Array(m+1);v.unshift(g,1),this.$annotations.splice.apply(this.$annotations,v)}}},h.prototype.update=function(f){this.config=f;var g=this.session,m=f.firstRow,v=Math.min(f.lastRow+f.gutterOffset,g.getLength()-1);this.oldLastRow=v,this.config=f,this.$lines.moveContainer(f),this.$updateCursorRow();for(var y=g.getNextFoldLine(m),k=y?y.start.row:1/0,C=null,S=-1,b=m;;){if(b>k&&(b=y.end.row+1,y=g.getNextFoldLine(b,y),k=y?y.start.row:1/0),b>v){for(;this.$lines.getLength()>S+1;)this.$lines.pop();break}C=this.$lines.get(++S),C?C.row=b:(C=this.$lines.createCell(b,f,this.session,c),this.$lines.push(C)),this.$renderCell(C,f,y,b),b++}this._signal("afterRender"),this.$updateGutterWidth(f)},h.prototype.$updateGutterWidth=function(f){var g=this.session,m=g.gutterRenderer||this.$renderer,v=g.$firstLineNumber,y=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||g.$useWrapMode)&&(y=g.getLength()+v-1);var k=m?m.getWidth(g,y,f):y.toString().length*f.characterWidth,C=this.$padding||this.$computePadding();k+=C.left+C.right,k!==this.gutterWidth&&!isNaN(k)&&(this.gutterWidth=k,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",k))},h.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var f=this.session.selection.getCursor();this.$cursorRow!==f.row&&(this.$cursorRow=f.row)}},h.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var f=this.session.selection.cursor.row;if(this.$cursorRow=f,!(this.$cursorCell&&this.$cursorCell.row==f)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var g=this.$lines.cells;this.$cursorCell=null;for(var m=0;m<g.length;m++){var v=g[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==g[m-1].row)v=g[m-1];else break}v.element.className="ace_gutter-active-line "+v.element.className,this.$cursorCell=v;break}}}}},h.prototype.scrollLines=function(f){var g=this.config;if(this.config=f,this.$updateCursorRow(),this.$lines.pageChanged(g,f))return this.update(f);this.$lines.moveContainer(f);var m=Math.min(f.lastRow+f.gutterOffset,this.session.getLength()-1),v=this.oldLastRow;if(this.oldLastRow=m,!g||v<f.firstRow)return this.update(f);if(m<g.firstRow)return this.update(f);if(g.firstRow<f.firstRow)for(var y=this.session.getFoldedRowCount(g.firstRow,f.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();f.firstRow<g.firstRow&&this.$lines.unshift(this.$renderLines(f,f.firstRow,g.firstRow-1)),m>v&&this.$lines.push(this.$renderLines(f,v+1,m)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(f)},h.prototype.$renderLines=function(f,g,m){for(var v=[],y=g,k=this.session.getNextFoldLine(y),C=k?k.start.row:1/0;y>C&&(y=k.end.row+1,k=this.session.getNextFoldLine(y,k),C=k?k.start.row:1/0),!(y>m);){var S=this.$lines.createCell(y,f,this.session,c);this.$renderCell(S,f,k,y),v.push(S),y++}return v},h.prototype.$renderCell=function(f,g,m,v){var y=f.element,k=this.session,C=y.childNodes[0],S=y.childNodes[1],b=y.childNodes[2],E=b.firstChild,L=k.$firstLineNumber,x=k.$breakpoints,M=k.$decorations,_=k.gutterRenderer||this.$renderer,A=this.$showFoldWidgets&&k.foldWidgets,$=m?m.start.row:Number.MAX_VALUE,w=g.lineHeight+"px",R=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",T=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",O=(_?_.getText(k,v):v+L).toString();if(this.$highlightGutterLine&&(v==this.$cursorRow||m&&v<this.$cursorRow&&v>=$&&this.$cursorRow<=m.end.row)&&(R+="ace_gutter-active-line ",this.$cursorCell!=f&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=f)),x[v]&&(R+=x[v]),M[v]&&(R+=M[v]),this.$annotations[v]&&v!==$&&(R+=this.$annotations[v].className),A){var I=A[v];I==null&&(I=A[v]=k.getFoldWidget(v))}if(I){var N="ace_fold-widget ace_"+I,P=I=="start"&&v==$&&v<m.end.row;if(P){N+=" ace_closed";for(var W="",j=!1,V=v+1;V<=m.end.row;V++)if(this.$annotations[V]){if(this.$annotations[V].className===" ace_error"){j=!0,W=" ace_error_fold";break}if(this.$annotations[V].className===" ace_warning"){j=!0,W=" ace_warning_fold";continue}}R+=W}else N+=" ace_open";S.className!=N&&(S.className=N),s.setStyle(S.style,"height",w),s.setStyle(S.style,"display","inline-block"),S.setAttribute("role","button"),S.setAttribute("tabindex","-1");var H=k.getFoldWidgetRange(v);H?S.setAttribute("aria-label",a("Toggle code folding, rows $0 through $1",[H.start.row+1,H.end.row+1])):m?S.setAttribute("aria-label",a("Toggle code folding, rows $0 through $1",[m.start.row+1,m.end.row+1])):S.setAttribute("aria-label",a("Toggle code folding, row $0",[v+1])),P?(S.setAttribute("aria-expanded","false"),S.setAttribute("title",a("Unfold code"))):(S.setAttribute("aria-expanded","true"),S.setAttribute("title",a("Fold code")))}else S&&(s.setStyle(S.style,"display","none"),S.setAttribute("tabindex","0"),S.removeAttribute("role"),S.removeAttribute("aria-label"));return j&&this.$showFoldedAnnotations?(b.className="ace_gutter_annotation",E.className=T,E.className+=W,s.setStyle(E.style,"height",w),s.setStyle(b.style,"display","block"),s.setStyle(b.style,"height",w),b.setAttribute("aria-label",a("Read annotations row $0",[O])),b.setAttribute("tabindex","-1"),b.setAttribute("role","button")):this.$annotations[v]?(b.className="ace_gutter_annotation",E.className=T,this.$useSvgGutterIcons?E.className+=this.$annotations[v].className:y.classList.add(this.$annotations[v].className.replace(" ","")),s.setStyle(E.style,"height",w),s.setStyle(b.style,"display","block"),s.setStyle(b.style,"height",w),b.setAttribute("aria-label",a("Read annotations row $0",[O])),b.setAttribute("tabindex","-1"),b.setAttribute("role","button")):(s.setStyle(b.style,"display","none"),b.removeAttribute("aria-label"),b.removeAttribute("role"),b.setAttribute("tabindex","0")),O!==C.data&&(C.data=O),y.className!=R&&(y.className=R),s.setStyle(f.element.style,"height",this.$lines.computeLineHeight(v,g,k)+"px"),s.setStyle(f.element.style,"top",this.$lines.computeLineTop(v,g,k)+"px"),f.text=O,b.style.display==="none"&&S.style.display==="none"?f.element.setAttribute("aria-hidden",!0):f.element.setAttribute("aria-hidden",!1),f},h.prototype.setHighlightGutterLine=function(f){this.$highlightGutterLine=f},h.prototype.setShowLineNumbers=function(f){this.$renderer=!f&&{getWidth:function(){return 0},getText:function(){return""}}},h.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},h.prototype.setShowFoldWidgets=function(f){f?s.addCssClass(this.element,"ace_folding-enabled"):s.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=f,this.$padding=null},h.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},h.prototype.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var f=s.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(f.borderLeftWidth)||0)+(parseInt(f.paddingLeft)||0)+1,this.$padding.right=(parseInt(f.borderRightWidth)||0)+(parseInt(f.paddingRight)||0),this.$padding},h.prototype.getRegion=function(f){var g=this.$padding||this.$computePadding(),m=this.element.getBoundingClientRect();if(f.x<g.left+m.left)return"markers";if(this.$showFoldWidgets&&f.x>m.right-g.right)return"foldWidgets"},h}();i.prototype.$fixedWidth=!1,i.prototype.$highlightGutterLine=!0,i.prototype.$renderer="",i.prototype.$showLineNumbers=!0,i.prototype.$showFoldWidgets=!0,u.implement(i.prototype,o);function c(h){var f=document.createTextNode("");h.appendChild(f);var g=s.createElement("span");h.appendChild(g);var m=s.createElement("span");h.appendChild(m);var v=s.createElement("span");return m.appendChild(v),h}r.Gutter=i}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(n,r,l){var s=n("../range").Range,u=n("../lib/dom"),d=function(){function p(a){this.element=u.createElement("div"),this.element.className="ace_layer ace_marker-layer",a.appendChild(this.element)}return p.prototype.setPadding=function(a){this.$padding=a},p.prototype.setSession=function(a){this.session=a},p.prototype.setMarkers=function(a){this.markers=a},p.prototype.elt=function(a,i){var c=this.i!=-1&&this.element.childNodes[this.i];c?this.i++:(c=document.createElement("div"),this.element.appendChild(c),this.i=-1),c.style.cssText=i,c.className=a},p.prototype.update=function(a){if(a){this.config=a,this.i=0;var i;for(var c in this.markers){var h=this.markers[c];if(!h.range){h.update(i,this,this.session,a);continue}var f=h.range.clipRows(a.firstRow,a.lastRow);if(!f.isEmpty())if(f=f.toScreenRange(this.session),h.renderer){var g=this.$getTop(f.start.row,a),m=this.$padding+f.start.column*a.characterWidth;h.renderer(i,f,m,g,a)}else h.type=="fullLine"?this.drawFullLineMarker(i,f,h.clazz,a):h.type=="screenLine"?this.drawScreenLineMarker(i,f,h.clazz,a):f.isMultiLine()?h.type=="text"?this.drawTextMarker(i,f,h.clazz,a):this.drawMultiLineMarker(i,f,h.clazz,a):this.drawSingleLineMarker(i,f,h.clazz+" ace_start ace_br15",a)}if(this.i!=-1)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},p.prototype.$getTop=function(a,i){return(a-i.firstRowScreen)*i.lineHeight},p.prototype.drawTextMarker=function(a,i,c,h,f){for(var g=this.session,m=i.start.row,v=i.end.row,y=m,k=0,C=0,S=g.getScreenLastRowColumn(y),b=new s(y,i.start.column,y,C);y<=v;y++)b.start.row=b.end.row=y,b.start.column=y==m?i.start.column:g.getRowWrapIndent(y),b.end.column=S,k=C,C=S,S=y+1<v?g.getScreenLastRowColumn(y+1):y==v?0:i.end.column,this.drawSingleLineMarker(a,b,c+(y==m?" ace_start":"")+" ace_br"+o(y==m||y==m+1&&i.start.column,k<C,C>S,y==v),h,y==v?0:1,f)},p.prototype.drawMultiLineMarker=function(a,i,c,h,f){var g=this.$padding,m=h.lineHeight,v=this.$getTop(i.start.row,h),y=g+i.start.column*h.characterWidth;if(f=f||"",this.session.$bidiHandler.isBidiRow(i.start.row)){var k=i.clone();k.end.row=k.start.row,k.end.column=this.session.getLine(k.start.row).length,this.drawBidiSingleLineMarker(a,k,c+" ace_br1 ace_start",h,null,f)}else this.elt(c+" ace_br1 ace_start","height:"+m+"px;right:0;top:"+v+"px;left:"+y+"px;"+(f||""));if(this.session.$bidiHandler.isBidiRow(i.end.row)){var k=i.clone();k.start.row=k.end.row,k.start.column=0,this.drawBidiSingleLineMarker(a,k,c+" ace_br12",h,null,f)}else{v=this.$getTop(i.end.row,h);var C=i.end.column*h.characterWidth;this.elt(c+" ace_br12","height:"+m+"px;width:"+C+"px;top:"+v+"px;left:"+g+"px;"+(f||""))}if(m=(i.end.row-i.start.row-1)*h.lineHeight,!(m<=0)){v=this.$getTop(i.start.row+1,h);var S=(i.start.column?1:0)|(i.end.column?0:8);this.elt(c+(S?" ace_br"+S:""),"height:"+m+"px;right:0;top:"+v+"px;left:"+g+"px;"+(f||""))}},p.prototype.drawSingleLineMarker=function(a,i,c,h,f,g){if(this.session.$bidiHandler.isBidiRow(i.start.row))return this.drawBidiSingleLineMarker(a,i,c,h,f,g);var m=h.lineHeight,v=(i.end.column+(f||0)-i.start.column)*h.characterWidth,y=this.$getTop(i.start.row,h),k=this.$padding+i.start.column*h.characterWidth;this.elt(c,"height:"+m+"px;width:"+v+"px;top:"+y+"px;left:"+k+"px;"+(g||""))},p.prototype.drawBidiSingleLineMarker=function(a,i,c,h,f,g){var m=h.lineHeight,v=this.$getTop(i.start.row,h),y=this.$padding,k=this.session.$bidiHandler.getSelections(i.start.column,i.end.column);k.forEach(function(C){this.elt(c,"height:"+m+"px;width:"+(C.width+(f||0))+"px;top:"+v+"px;left:"+(y+C.left)+"px;"+(g||""))},this)},p.prototype.drawFullLineMarker=function(a,i,c,h,f){var g=this.$getTop(i.start.row,h),m=h.lineHeight;i.start.row!=i.end.row&&(m+=this.$getTop(i.end.row,h)-g),this.elt(c,"height:"+m+"px;top:"+g+"px;left:0;right:0;"+(f||""))},p.prototype.drawScreenLineMarker=function(a,i,c,h,f){var g=this.$getTop(i.start.row,h),m=h.lineHeight;this.elt(c,"height:"+m+"px;top:"+g+"px;left:0;right:0;"+(f||""))},p}();d.prototype.$padding=0;function o(p,a,i,c){return(p?1:0)|(a?2:0)|(i?4:0)|(c?8:0)}r.Marker=d}),ace.define("ace/layer/text_util",["require","exports","module"],function(n,r,l){var s=new Set(["text","rparen","lparen"]);r.isTextToken=function(u){return s.has(u)}}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter","ace/config","ace/layer/text_util"],function(n,r,l){var s=n("../lib/oop"),u=n("../lib/dom"),d=n("../lib/lang"),o=n("./lines").Lines,p=n("../lib/event_emitter").EventEmitter,a=n("../config").nls,i=n("./text_util").isTextToken,c=function(){function h(f){this.dom=u,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",f.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new o(this.element)}return h.prototype.$updateEolChar=function(){var f=this.session.doc,g=f.getNewLineCharacter()==`
1045
+ `&&f.getNewLineMode()!="windows",m=g?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=m)return this.EOL_CHAR=m,!0},h.prototype.setPadding=function(f){this.$padding=f,this.element.style.margin="0 "+f+"px"},h.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},h.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},h.prototype.$setFontMetrics=function(f){this.$fontMetrics=f,this.$fontMetrics.on("changeCharacterSize",(function(g){this._signal("changeCharacterSize",g)}).bind(this)),this.$pollSizeChanges()},h.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},h.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},h.prototype.setSession=function(f){this.session=f,f&&this.$computeTabString()},h.prototype.setShowInvisibles=function(f){return this.showInvisibles==f?!1:(this.showInvisibles=f,typeof f=="string"?(this.showSpaces=/tab/i.test(f),this.showTabs=/space/i.test(f),this.showEOL=/eol/i.test(f)):this.showSpaces=this.showTabs=this.showEOL=f,this.$computeTabString(),!0)},h.prototype.setDisplayIndentGuides=function(f){return this.displayIndentGuides==f?!1:(this.displayIndentGuides=f,this.$computeTabString(),!0)},h.prototype.setHighlightIndentGuides=function(f){return this.$highlightIndentGuides===f?!1:(this.$highlightIndentGuides=f,f)},h.prototype.$computeTabString=function(){var f=this.session.getTabSize();this.tabSize=f;for(var g=this.$tabStrings=[0],m=1;m<f+1;m++)if(this.showTabs){var v=this.dom.createElement("span");v.className="ace_invisible ace_invisible_tab",v.textContent=d.stringRepeat(this.TAB_CHAR,m),g.push(v)}else g.push(this.dom.createTextNode(d.stringRepeat(" ",m),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var y="ace_indent-guide",k=this.showSpaces?" ace_invisible ace_invisible_space":"",C=this.showSpaces?d.stringRepeat(this.SPACE_CHAR,this.tabSize):d.stringRepeat(" ",this.tabSize),S=this.showTabs?" ace_invisible ace_invisible_tab":"",b=this.showTabs?d.stringRepeat(this.TAB_CHAR,this.tabSize):C,v=this.dom.createElement("span");v.className=y+k,v.textContent=C,this.$tabStrings[" "]=v;var v=this.dom.createElement("span");v.className=y+S,v.textContent=b,this.$tabStrings[" "]=v}},h.prototype.updateLines=function(f,g,m){if(this.config.lastRow!=f.lastRow||this.config.firstRow!=f.firstRow)return this.update(f);this.config=f;for(var v=Math.max(g,f.firstRow),y=Math.min(m,f.lastRow),k=this.element.childNodes,C=0,b=f.firstRow;b<v;b++){var E=this.session.getFoldLine(b);if(E)if(E.containsRow(v)){v=E.start.row;break}else b=E.end.row;C++}for(var S=!1,b=v,E=this.session.getNextFoldLine(b),L=E?E.start.row:1/0;b>L&&(b=E.end.row+1,E=this.session.getNextFoldLine(b,E),L=E?E.start.row:1/0),!(b>y);){var x=k[C++];if(x){this.dom.removeChildren(x),this.$renderLine(x,b,b==L?E:!1),S&&(x.style.top=this.$lines.computeLineTop(b,f,this.session)+"px");var M=f.lineHeight*this.session.getRowLength(b)+"px";x.style.height!=M&&(S=!0,x.style.height=M)}b++}if(S)for(;C<this.$lines.cells.length;){var _=this.$lines.cells[C++];_.element.style.top=this.$lines.computeLineTop(_.row,f,this.session)+"px"}},h.prototype.scrollLines=function(f){var g=this.config;if(this.config=f,this.$lines.pageChanged(g,f))return this.update(f);this.$lines.moveContainer(f);var m=f.lastRow,v=g?g.lastRow:-1;if(!g||v<f.firstRow)return this.update(f);if(m<g.firstRow)return this.update(f);if(!g||g.lastRow<f.firstRow)return this.update(f);if(f.lastRow<g.firstRow)return this.update(f);if(g.firstRow<f.firstRow)for(var y=this.session.getFoldedRowCount(g.firstRow,f.firstRow-1);y>0;y--)this.$lines.shift();if(g.lastRow>f.lastRow)for(var y=this.session.getFoldedRowCount(f.lastRow+1,g.lastRow);y>0;y--)this.$lines.pop();f.firstRow<g.firstRow&&this.$lines.unshift(this.$renderLinesFragment(f,f.firstRow,g.firstRow-1)),f.lastRow>g.lastRow&&this.$lines.push(this.$renderLinesFragment(f,g.lastRow+1,f.lastRow)),this.$highlightIndentGuide()},h.prototype.$renderLinesFragment=function(f,g,m){for(var v=[],y=g,k=this.session.getNextFoldLine(y),C=k?k.start.row:1/0;y>C&&(y=k.end.row+1,k=this.session.getNextFoldLine(y,k),C=k?k.start.row:1/0),!(y>m);){var S=this.$lines.createCell(y,f,this.session),b=S.element;this.dom.removeChildren(b),u.setStyle(b.style,"height",this.$lines.computeLineHeight(y,f,this.session)+"px"),u.setStyle(b.style,"top",this.$lines.computeLineTop(y,f,this.session)+"px"),this.$renderLine(b,y,y==C?k:!1),this.$useLineGroups()?b.className="ace_line_group":b.className="ace_line",v.push(S),y++}return v},h.prototype.update=function(f){this.$lines.moveContainer(f),this.config=f;for(var g=f.firstRow,m=f.lastRow,v=this.$lines;v.getLength();)v.pop();v.push(this.$renderLinesFragment(f,g,m))},h.prototype.$renderToken=function(f,g,m,v){for(var y=this,k=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,C=this.dom.createFragment(this.element),S,b=0;S=k.exec(v);){var E=S[1],L=S[2],x=S[3],M=S[4],_=S[5];if(!(!y.showSpaces&&L)){var A=b!=S.index?v.slice(b,S.index):"";if(b=S.index+S[0].length,A&&C.appendChild(this.dom.createTextNode(A,this.element)),E){var $=y.session.getScreenTabSize(g+S.index);C.appendChild(y.$tabStrings[$].cloneNode(!0)),g+=$-1}else if(L)if(y.showSpaces){var w=this.dom.createElement("span");w.className="ace_invisible ace_invisible_space",w.textContent=d.stringRepeat(y.SPACE_CHAR,L.length),C.appendChild(w)}else C.appendChild(this.dom.createTextNode(L,this.element));else if(x){var w=this.dom.createElement("span");w.className="ace_invisible ace_invisible_space ace_invalid",w.textContent=d.stringRepeat(y.SPACE_CHAR,x.length),C.appendChild(w)}else if(M){g+=1;var w=this.dom.createElement("span");w.style.width=y.config.characterWidth*2+"px",w.className=y.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",w.textContent=y.showSpaces?y.SPACE_CHAR:M,C.appendChild(w)}else if(_){g+=1;var w=this.dom.createElement("span");w.style.width=y.config.characterWidth*2+"px",w.className="ace_cjk",w.textContent=_,C.appendChild(w)}}}if(C.appendChild(this.dom.createTextNode(b?v.slice(b):v,this.element)),i(m.type))f.appendChild(C);else{var R="ace_"+m.type.replace(/\./g," ace_"),w=this.dom.createElement("span");m.type=="fold"&&(w.style.width=m.value.length*this.config.characterWidth+"px",w.setAttribute("title",a("Unfold code"))),w.className=R,w.appendChild(C),f.appendChild(w)}return g+v.length},h.prototype.renderIndentGuide=function(f,g,m){var v=g.search(this.$indentGuideRe);if(v<=0||v>=m)return g;if(g[0]==" "){v-=v%this.tabSize;for(var y=v/this.tabSize,k=0;k<y;k++)f.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),g.substr(v)}else if(g[0]==" "){for(var k=0;k<v;k++)f.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),g.substr(v)}return this.$highlightIndentGuide(),g},h.prototype.$highlightIndentGuide=function(){if(!(!this.$highlightIndentGuides||!this.displayIndentGuides)){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var f=this.session.doc.$lines;if(f){var g=this.session.selection.getCursor(),m=/^\s*/.exec(this.session.doc.getLine(g.row))[0].length,v=Math.floor(m/this.tabSize);this.$highlightIndentGuideMarker={indentLevel:v,start:g.row};var y=this.session.$bracketHighlight;if(y){for(var k=this.session.$bracketHighlight.ranges,C=0;C<k.length;C++)if(g.row!==k[C].start.row){this.$highlightIndentGuideMarker.end=k[C].start.row,g.row>k[C].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&f[g.row]!==""&&g.column===f[g.row].length){this.$highlightIndentGuideMarker.dir=1;for(var C=g.row+1;C<f.length;C++){var S=f[C],b=/^\s*/.exec(S)[0].length;if(S!==""&&(this.$highlightIndentGuideMarker.end=C,b<=m))break}}this.$renderHighlightIndentGuide()}}},h.prototype.$clearActiveIndentGuide=function(){for(var f=this.$lines.cells,g=0;g<f.length;g++){var m=f[g],v=m.element.childNodes;if(v.length>0){for(var y=0;y<v.length;y++)if(v[y].classList&&v[y].classList.contains("ace_indent-guide-active")){v[y].classList.remove("ace_indent-guide-active");break}}}},h.prototype.$setIndentGuideActive=function(f,g){var m=this.session.doc.getLine(f.row);if(m!==""){var v=f.element.childNodes;if(v){var y=v[g-1];y&&y.classList&&y.classList.contains("ace_indent-guide")&&y.classList.add("ace_indent-guide-active")}}},h.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var f=this.$lines.cells;this.$clearActiveIndentGuide();var g=this.$highlightIndentGuideMarker.indentLevel;if(g!==0)if(this.$highlightIndentGuideMarker.dir===1)for(var m=0;m<f.length;m++){var v=f[m];if(this.$highlightIndentGuideMarker.end&&v.row>=this.$highlightIndentGuideMarker.start+1){if(v.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(v,g)}}else for(var m=f.length-1;m>=0;m--){var v=f[m];if(this.$highlightIndentGuideMarker.end&&v.row<this.$highlightIndentGuideMarker.start){if(v.row<=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(v,g)}}}},h.prototype.$createLineElement=function(f){var g=this.dom.createElement("div");return g.className="ace_line",g.style.height=this.config.lineHeight+"px",g},h.prototype.$renderWrappedLine=function(f,g,m){var v=0,y=0,k=m[0],C=0,S=this.$createLineElement();f.appendChild(S);for(var b=0;b<g.length;b++){var E=g[b],L=E.value;if(b==0&&this.displayIndentGuides){if(v=L.length,L=this.renderIndentGuide(S,L,k),!L)continue;v-=L.length}if(v+L.length<k)C=this.$renderToken(S,C,E,L),v+=L.length;else{for(;v+L.length>=k;)C=this.$renderToken(S,C,E,L.substring(0,k-v)),L=L.substring(k-v),v=k,S=this.$createLineElement(),f.appendChild(S),S.appendChild(this.dom.createTextNode(d.stringRepeat(" ",m.indent),this.element)),y++,C=0,k=m[y]||Number.MAX_VALUE;L.length!=0&&(v+=L.length,C=this.$renderToken(S,C,E,L))}}m[m.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(S,C,null,"",!0)},h.prototype.$renderSimpleLine=function(f,g){for(var m=0,v=0;v<g.length;v++){var y=g[v],k=y.value;if(!(v==0&&this.displayIndentGuides&&(k=this.renderIndentGuide(f,k),!k))){if(m+k.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(f,m,y,k);m=this.$renderToken(f,m,y,k)}}},h.prototype.$renderOverflowMessage=function(f,g,m,v,y){m&&this.$renderToken(f,g,m,v.slice(0,this.MAX_LINE_LENGTH-g));var k=this.dom.createElement("span");k.className="ace_inline_button ace_keyword ace_toggle_wrap",k.textContent=y?"<hide>":"<click to see more...>",f.appendChild(k)},h.prototype.$renderLine=function(f,g,m){if(!m&&m!=!1&&(m=this.session.getFoldLine(g)),m)var v=this.$getFoldLineTokens(g,m);else var v=this.session.getTokens(g);var y=f;if(v.length){var k=this.session.getRowSplitData(g);if(k&&k.length){this.$renderWrappedLine(f,v,k);var y=f.lastChild}else{var y=f;this.$useLineGroups()&&(y=this.$createLineElement(),f.appendChild(y)),this.$renderSimpleLine(y,v)}}else this.$useLineGroups()&&(y=this.$createLineElement(),f.appendChild(y));if(this.showEOL&&y){m&&(g=m.end.row);var C=this.dom.createElement("span");C.className="ace_invisible ace_invisible_eol",C.textContent=g==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,y.appendChild(C)}},h.prototype.$getFoldLineTokens=function(f,g){var m=this.session,v=[];function y(C,S,b){for(var E=0,L=0;L+C[E].value.length<S;)if(L+=C[E].value.length,E++,E==C.length)return;if(L!=S){var x=C[E].value.substring(S-L);x.length>b-S&&(x=x.substring(0,b-S)),v.push({type:C[E].type,value:x}),L=S+x.length,E+=1}for(;L<b&&E<C.length;){var x=C[E].value;x.length+L>b?v.push({type:C[E].type,value:x.substring(0,b-L)}):v.push(C[E]),L+=x.length,E+=1}}var k=m.getTokens(f);return g.walk(function(C,S,b,E,L){C!=null?v.push({type:"fold",value:C}):(L&&(k=m.getTokens(S)),k.length&&y(k,E,b))},g.end.row,this.session.getLine(g.end.row).length),v},h.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},h}();c.prototype.EOF_CHAR="¶",c.prototype.EOL_CHAR_LF="¬",c.prototype.EOL_CHAR_CRLF="¤",c.prototype.EOL_CHAR=c.prototype.EOL_CHAR_LF,c.prototype.TAB_CHAR="—",c.prototype.SPACE_CHAR="·",c.prototype.$padding=0,c.prototype.MAX_LINE_LENGTH=1e4,c.prototype.showInvisibles=!1,c.prototype.showSpaces=!1,c.prototype.showTabs=!1,c.prototype.showEOL=!1,c.prototype.displayIndentGuides=!0,c.prototype.$highlightIndentGuides=!0,c.prototype.$tabStrings=[],c.prototype.destroy={},c.prototype.onChangeTabSize=c.prototype.$computeTabString,s.implement(c.prototype,p),r.Text=c}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(n,r,l){var s=n("../lib/dom"),u=function(){function d(o){this.element=s.createElement("div"),this.element.className="ace_layer ace_cursor-layer",o.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),s.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return d.prototype.$updateOpacity=function(o){for(var p=this.cursors,a=p.length;a--;)s.setStyle(p[a].style,"opacity",o?"":"0")},d.prototype.$startCssAnimation=function(){for(var o=this.cursors,p=o.length;p--;)o[p].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout((function(){this.$isAnimating&&s.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},d.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,s.removeCssClass(this.element,"ace_animate-blinking")},d.prototype.setPadding=function(o){this.$padding=o},d.prototype.setSession=function(o){this.session=o},d.prototype.setBlinking=function(o){o!=this.isBlinking&&(this.isBlinking=o,this.restartTimer())},d.prototype.setBlinkInterval=function(o){o!=this.blinkInterval&&(this.blinkInterval=o,this.restartTimer())},d.prototype.setSmoothBlinking=function(o){o!=this.smoothBlinking&&(this.smoothBlinking=o,s.setCssClass(this.element,"ace_smooth-blinking",o),this.$updateCursors(!0),this.restartTimer())},d.prototype.addCursor=function(){var o=s.createElement("div");return o.className="ace_cursor",this.element.appendChild(o),this.cursors.push(o),o},d.prototype.removeCursor=function(){if(this.cursors.length>1){var o=this.cursors.pop();return o.parentNode.removeChild(o),o}},d.prototype.hideCursor=function(){this.isVisible=!1,s.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},d.prototype.showCursor=function(){this.isVisible=!0,s.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},d.prototype.restartTimer=function(){var o=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,s.removeCssClass(this.element,"ace_smooth-blinking")),o(!0),!this.isBlinking||!this.blinkInterval||!this.isVisible){this.$stopCssAnimation();return}if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout((function(){this.$isSmoothBlinking&&s.addCssClass(this.element,"ace_smooth-blinking")}).bind(this))),s.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var p=(function(){this.timeoutId=setTimeout(function(){o(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){o(!0),p()},this.blinkInterval),p()}},d.prototype.getPixelPosition=function(o,p){if(!this.config||!this.session)return{left:0,top:0};o||(o=this.session.selection.getCursor());var a=this.session.documentToScreenPosition(o),i=this.$padding+(this.session.$bidiHandler.isBidiRow(a.row,o.row)?this.session.$bidiHandler.getPosLeft(a.column):a.column*this.config.characterWidth),c=(a.row-(p?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:i,top:c}},d.prototype.isCursorInView=function(o,p){return o.top>=0&&o.top<p.maxHeight},d.prototype.update=function(o){this.config=o;var p=this.session.$selectionMarkers,a=0,i=0;(p===void 0||p.length===0)&&(p=[{cursor:null}]);for(var a=0,c=p.length;a<c;a++){var h=this.getPixelPosition(p[a].cursor,!0);if(!((h.top>o.height+o.offset||h.top<0)&&a>1)){var f=this.cursors[i++]||this.addCursor(),g=f.style;this.drawCursor?this.drawCursor(f,h,o,p[a],this.session):this.isCursorInView(h,o)?(s.setStyle(g,"display","block"),s.translate(f,h.left,h.top),s.setStyle(g,"width",Math.round(o.characterWidth)+"px"),s.setStyle(g,"height",o.lineHeight+"px")):s.setStyle(g,"display","none")}}for(;this.cursors.length>i;)this.removeCursor();var m=this.session.getOverwrite();this.$setOverwrite(m),this.$pixelPos=h,this.restartTimer()},d.prototype.$setOverwrite=function(o){o!=this.overwrite&&(this.overwrite=o,o?s.addCssClass(this.element,"ace_overwrite-cursors"):s.removeCssClass(this.element,"ace_overwrite-cursors"))},d.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},d}();u.prototype.$padding=0,u.prototype.drawCursor=null,r.Cursor=u}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(n,r,l){var s=this&&this.__extends||function(){var f=function(g,m){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,y){v.__proto__=y}||function(v,y){for(var k in y)Object.prototype.hasOwnProperty.call(y,k)&&(v[k]=y[k])},f(g,m)};return function(g,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");f(g,m);function v(){this.constructor=g}g.prototype=m===null?Object.create(m):(v.prototype=m.prototype,new v)}}(),u=n("./lib/oop"),d=n("./lib/dom"),o=n("./lib/event"),p=n("./lib/event_emitter").EventEmitter,a=32768,i=function(){function f(g,m){this.element=d.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+m,this.inner=d.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),g.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,o.addListener(this.element,"scroll",this.onScroll.bind(this)),o.addListener(this.element,"mousedown",o.preventDefault)}return f.prototype.setVisible=function(g){this.element.style.display=g?"":"none",this.isVisible=g,this.coeff=1},f}();u.implement(i.prototype,p);var c=function(f){s(g,f);function g(m,v){var y=f.call(this,m,"-v")||this;return y.scrollTop=0,y.scrollHeight=0,v.$scrollbarWidth=y.width=d.scrollbarWidth(m.ownerDocument),y.inner.style.width=y.element.style.width=(y.width||15)+5+"px",y.$minWidth=0,y}return g.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var m=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-m)/(this.coeff-m)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},g.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},g.prototype.setHeight=function(m){this.element.style.height=m+"px"},g.prototype.setScrollHeight=function(m){this.scrollHeight=m,m>a?(this.coeff=a/m,m=a):this.coeff!=1&&(this.coeff=1),this.inner.style.height=m+"px"},g.prototype.setScrollTop=function(m){this.scrollTop!=m&&(this.skipEvent=!0,this.scrollTop=m,this.element.scrollTop=m*this.coeff)},g}(i);c.prototype.setInnerHeight=c.prototype.setScrollHeight;var h=function(f){s(g,f);function g(m,v){var y=f.call(this,m,"-h")||this;return y.scrollLeft=0,y.height=v.$scrollbarWidth,y.inner.style.height=y.element.style.height=(y.height||15)+5+"px",y}return g.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},g.prototype.getHeight=function(){return this.isVisible?this.height:0},g.prototype.setWidth=function(m){this.element.style.width=m+"px"},g.prototype.setInnerWidth=function(m){this.inner.style.width=m+"px"},g.prototype.setScrollWidth=function(m){this.inner.style.width=m+"px"},g.prototype.setScrollLeft=function(m){this.scrollLeft!=m&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=m)},g}(i);r.ScrollBar=c,r.ScrollBarV=c,r.ScrollBarH=h,r.VScrollBar=c,r.HScrollBar=h}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(n,r,l){var s=this&&this.__extends||function(){var h=function(f,g){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,v){m.__proto__=v}||function(m,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(m[y]=v[y])},h(f,g)};return function(f,g){if(typeof g!="function"&&g!==null)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");h(f,g);function m(){this.constructor=f}f.prototype=g===null?Object.create(g):(m.prototype=g.prototype,new m)}}(),u=n("./lib/oop"),d=n("./lib/dom"),o=n("./lib/event"),p=n("./lib/event_emitter").EventEmitter;d.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{
1046
+ position: absolute;
1047
+ background: rgba(128, 128, 128, 0.6);
1048
+ -moz-box-sizing: border-box;
1049
+ box-sizing: border-box;
1050
+ border: 1px solid #bbb;
1051
+ border-radius: 2px;
1052
+ z-index: 8;
1053
+ }
1054
+ .ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {
1055
+ position: absolute;
1056
+ z-index: 6;
1057
+ background: none;
1058
+ overflow: hidden!important;
1059
+ }
1060
+ .ace_editor>.ace_sb-v {
1061
+ z-index: 6;
1062
+ right: 0;
1063
+ top: 0;
1064
+ width: 12px;
1065
+ }
1066
+ .ace_editor>.ace_sb-v div {
1067
+ z-index: 8;
1068
+ right: 0;
1069
+ width: 100%;
1070
+ }
1071
+ .ace_editor>.ace_sb-h {
1072
+ bottom: 0;
1073
+ left: 0;
1074
+ height: 12px;
1075
+ }
1076
+ .ace_editor>.ace_sb-h div {
1077
+ bottom: 0;
1078
+ height: 100%;
1079
+ }
1080
+ .ace_editor>.ace_sb_grabbed {
1081
+ z-index: 8;
1082
+ background: #000;
1083
+ }`,"ace_scrollbar.css",!1);var a=function(){function h(f,g){this.element=d.createElement("div"),this.element.className="ace_sb"+g,this.inner=d.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,f.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,o.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return h.prototype.setVisible=function(f){this.element.style.display=f?"":"none",this.isVisible=f,this.coeff=1},h}();u.implement(a.prototype,p);var i=function(h){s(f,h);function f(g,m){var v=h.call(this,g,"-v")||this;return v.scrollTop=0,v.scrollHeight=0,v.parent=g,v.width=v.VScrollWidth,v.renderer=m,v.inner.style.width=v.element.style.width=(v.width||15)+"px",v.$minWidth=0,v}return f.prototype.onMouseDown=function(g,m){if(g==="mousedown"&&!(o.getButton(m)!==0||m.detail===2)){if(m.target===this.inner){var v=this,y=m.clientY,k=function(M){y=M.clientY},C=function(){clearInterval(L)},S=m.clientY,b=this.thumbTop,E=function(){if(y!==void 0){var M=v.scrollTopFromThumbTop(b+y-S);M!==v.scrollTop&&v._emit("scroll",{data:M})}};o.capture(this.inner,k,C);var L=setInterval(E,20);return o.preventDefault(m)}var x=m.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(x)}),o.preventDefault(m)}},f.prototype.getHeight=function(){return this.height},f.prototype.scrollTopFromThumbTop=function(g){var m=g*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return m=m>>0,m<0?m=0:m>this.pageHeight-this.viewHeight&&(m=this.pageHeight-this.viewHeight),m},f.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},f.prototype.setHeight=function(g){this.height=Math.max(0,g),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},f.prototype.setScrollHeight=function(g,m){this.pageHeight===g&&!m||(this.pageHeight=g,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop})))},f.prototype.setScrollTop=function(g){this.scrollTop=g,g<0&&(g=0),this.thumbTop=g*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},f}(a);i.prototype.setInnerHeight=i.prototype.setScrollHeight;var c=function(h){s(f,h);function f(g,m){var v=h.call(this,g,"-h")||this;return v.scrollLeft=0,v.scrollWidth=0,v.height=v.HScrollHeight,v.inner.style.height=v.element.style.height=(v.height||12)+"px",v.renderer=m,v}return f.prototype.onMouseDown=function(g,m){if(g==="mousedown"&&!(o.getButton(m)!==0||m.detail===2)){if(m.target===this.inner){var v=this,y=m.clientX,k=function(M){y=M.clientX},C=function(){clearInterval(L)},S=m.clientX,b=this.thumbLeft,E=function(){if(y!==void 0){var M=v.scrollLeftFromThumbLeft(b+y-S);M!==v.scrollLeft&&v._emit("scroll",{data:M})}};o.capture(this.inner,k,C);var L=setInterval(E,20);return o.preventDefault(m)}var x=m.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(x)}),o.preventDefault(m)}},f.prototype.getHeight=function(){return this.isVisible?this.height:0},f.prototype.scrollLeftFromThumbLeft=function(g){var m=g*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return m=m>>0,m<0?m=0:m>this.pageWidth-this.viewWidth&&(m=this.pageWidth-this.viewWidth),m},f.prototype.setWidth=function(g){this.width=Math.max(0,g),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},f.prototype.setScrollWidth=function(g,m){this.pageWidth===g&&!m||(this.pageWidth=g,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft})))},f.prototype.setScrollLeft=function(g){this.scrollLeft=g,g<0&&(g=0),this.thumbLeft=g*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},f}(a);c.prototype.setInnerWidth=c.prototype.setScrollWidth,r.ScrollBar=i,r.ScrollBarV=i,r.ScrollBarH=c,r.VScrollBar=i,r.HScrollBar=c}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(n,r,l){var s=n("./lib/event"),u=function(){function d(o,p){this.onRender=o,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=p||window;var a=this;this._flush=function(i){a.pending=!1;var c=a.changes;if(c&&(s.blockIdle(100),a.changes=0,a.onRender(c)),a.changes){if(a.$recursionLimit--<0)return;a.schedule()}else a.$recursionLimit=2}}return d.prototype.schedule=function(o){this.changes=this.changes|o,this.changes&&!this.pending&&(s.nextFrame(this._flush),this.pending=!0)},d.prototype.clear=function(o){var p=this.changes;return this.changes=0,p},d}();r.RenderLoop=u}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(n,r,l){var s=n("../lib/oop"),u=n("../lib/dom"),d=n("../lib/lang"),o=n("../lib/event"),p=n("../lib/useragent"),a=n("../lib/event_emitter").EventEmitter,i=512,c=typeof ResizeObserver=="function",h=200,f=function(){function g(m){this.el=u.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=u.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=u.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),m.appendChild(this.el),this.$measureNode.textContent=d.stringRepeat("X",i),this.$characterSize={width:0,height:0},c?this.$addObserver():this.checkForSizeChanges()}return g.prototype.$setMeasureNodeStyles=function(m,v){m.width=m.height="auto",m.left=m.top="0px",m.visibility="hidden",m.position="absolute",m.whiteSpace="pre",p.isIE<8?m["font-family"]="inherit":m.font="inherit",m.overflow=v?"hidden":"visible"},g.prototype.checkForSizeChanges=function(m){if(m===void 0&&(m=this.$measureSizes()),m&&(this.$characterSize.width!==m.width||this.$characterSize.height!==m.height)){this.$measureNode.style.fontWeight="bold";var v=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=m,this.charSizes=Object.create(null),this.allowBoldFonts=v&&v.width===m.width&&v.height===m.height,this._emit("changeCharacterSize",{data:m})}},g.prototype.$addObserver=function(){var m=this;this.$observer=new window.ResizeObserver(function(v){m.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},g.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var m=this;return this.$pollSizeChangesTimer=o.onIdle(function v(){m.checkForSizeChanges(),o.onIdle(v,500)},500)},g.prototype.setPolling=function(m){m?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},g.prototype.$measureSizes=function(m){var v={height:(m||this.$measureNode).clientHeight,width:(m||this.$measureNode).clientWidth/i};return v.width===0||v.height===0?null:v},g.prototype.$measureCharWidth=function(m){this.$main.textContent=d.stringRepeat(m,i);var v=this.$main.getBoundingClientRect();return v.width/i},g.prototype.getCharacterWidth=function(m){var v=this.charSizes[m];return v===void 0&&(v=this.charSizes[m]=this.$measureCharWidth(m)/this.$characterSize.width),v},g.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},g.prototype.$getZoom=function(m){return!m||!m.parentElement?1:(window.getComputedStyle(m).zoom||1)*this.$getZoom(m.parentElement)},g.prototype.$initTransformMeasureNodes=function(){var m=function(v,y){return["div",{style:"position: absolute;top:"+v+"px;left:"+y+"px;"}]};this.els=u.buildDom([m(0,0),m(h,0),m(0,h),m(h,h)],this.el)},g.prototype.transformCoordinates=function(m,v){if(m){var y=this.$getZoom(this.el);m=b(1/y,m)}function k(P,W,j){var V=P[1]*W[0]-P[0]*W[1];return[(-W[1]*j[0]+W[0]*j[1])/V,(+P[1]*j[0]-P[0]*j[1])/V]}function C(P,W){return[P[0]-W[0],P[1]-W[1]]}function S(P,W){return[P[0]+W[0],P[1]+W[1]]}function b(P,W){return[P*W[0],P*W[1]]}this.els||this.$initTransformMeasureNodes();function E(P){var W=P.getBoundingClientRect();return[W.left,W.top]}var L=E(this.els[0]),x=E(this.els[1]),M=E(this.els[2]),_=E(this.els[3]),A=k(C(_,x),C(_,M),C(S(x,M),S(_,L))),$=b(1+A[0],C(x,L)),w=b(1+A[1],C(M,L));if(v){var R=v,T=A[0]*R[0]/h+A[1]*R[1]/h+1,O=S(b(R[0],$),b(R[1],w));return S(b(1/T/h,O),L)}var I=C(m,L),N=k(C($,b(A[0],I)),C(w,b(A[1],I)),I);return b(h,N)},g}();f.prototype.$characterSize={width:0,height:0},s.implement(f.prototype,a),r.FontMetrics=f}),ace.define("ace/css/editor-css",["require","exports","module"],function(n,r,l){l.exports=`
1084
+ .ace_br1 {border-top-left-radius : 3px;}
1085
+ .ace_br2 {border-top-right-radius : 3px;}
1086
+ .ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}
1087
+ .ace_br4 {border-bottom-right-radius: 3px;}
1088
+ .ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}
1089
+ .ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}
1090
+ .ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}
1091
+ .ace_br8 {border-bottom-left-radius : 3px;}
1092
+ .ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}
1093
+ .ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}
1094
+ .ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}
1095
+ .ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
1096
+ .ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
1097
+ .ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
1098
+ .ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
1099
+
1100
+
1101
+ .ace_editor {
1102
+ position: relative;
1103
+ overflow: hidden;
1104
+ padding: 0;
1105
+ font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace;
1106
+ direction: ltr;
1107
+ text-align: left;
1108
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
1109
+ }
1110
+
1111
+ .ace_scroller {
1112
+ position: absolute;
1113
+ overflow: hidden;
1114
+ top: 0;
1115
+ bottom: 0;
1116
+ background-color: inherit;
1117
+ -ms-user-select: none;
1118
+ -moz-user-select: none;
1119
+ -webkit-user-select: none;
1120
+ user-select: none;
1121
+ cursor: text;
1122
+ }
1123
+
1124
+ .ace_content {
1125
+ position: absolute;
1126
+ box-sizing: border-box;
1127
+ min-width: 100%;
1128
+ contain: style size layout;
1129
+ font-variant-ligatures: no-common-ligatures;
1130
+ }
1131
+
1132
+ .ace_keyboard-focus:focus {
1133
+ box-shadow: inset 0 0 0 2px #5E9ED6;
1134
+ outline: none;
1135
+ }
1136
+
1137
+ .ace_dragging .ace_scroller:before{
1138
+ position: absolute;
1139
+ top: 0;
1140
+ left: 0;
1141
+ right: 0;
1142
+ bottom: 0;
1143
+ content: '';
1144
+ background: rgba(250, 250, 250, 0.01);
1145
+ z-index: 1000;
1146
+ }
1147
+ .ace_dragging.ace_dark .ace_scroller:before{
1148
+ background: rgba(0, 0, 0, 0.01);
1149
+ }
1150
+
1151
+ .ace_gutter {
1152
+ position: absolute;
1153
+ overflow : hidden;
1154
+ width: auto;
1155
+ top: 0;
1156
+ bottom: 0;
1157
+ left: 0;
1158
+ cursor: default;
1159
+ z-index: 4;
1160
+ -ms-user-select: none;
1161
+ -moz-user-select: none;
1162
+ -webkit-user-select: none;
1163
+ user-select: none;
1164
+ contain: style size layout;
1165
+ }
1166
+
1167
+ .ace_gutter-active-line {
1168
+ position: absolute;
1169
+ left: 0;
1170
+ right: 0;
1171
+ }
1172
+
1173
+ .ace_scroller.ace_scroll-left:after {
1174
+ content: "";
1175
+ position: absolute;
1176
+ top: 0;
1177
+ right: 0;
1178
+ bottom: 0;
1179
+ left: 0;
1180
+ box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
1181
+ pointer-events: none;
1182
+ }
1183
+
1184
+ .ace_gutter-cell, .ace_gutter-cell_svg-icons {
1185
+ position: absolute;
1186
+ top: 0;
1187
+ left: 0;
1188
+ right: 0;
1189
+ padding-left: 19px;
1190
+ padding-right: 6px;
1191
+ background-repeat: no-repeat;
1192
+ }
1193
+
1194
+ .ace_gutter-cell_svg-icons .ace_gutter_annotation {
1195
+ margin-left: -14px;
1196
+ float: left;
1197
+ }
1198
+
1199
+ .ace_gutter-cell .ace_gutter_annotation {
1200
+ margin-left: -19px;
1201
+ float: left;
1202
+ }
1203
+
1204
+ .ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold {
1205
+ 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==");
1206
+ background-repeat: no-repeat;
1207
+ background-position: 2px center;
1208
+ }
1209
+
1210
+ .ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {
1211
+ 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==");
1212
+ background-repeat: no-repeat;
1213
+ background-position: 2px center;
1214
+ }
1215
+
1216
+ .ace_gutter-cell.ace_info, .ace_icon.ace_info {
1217
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");
1218
+ background-repeat: no-repeat;
1219
+ background-position: 2px center;
1220
+ }
1221
+ .ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info {
1222
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");
1223
+ }
1224
+
1225
+ .ace_icon_svg.ace_error {
1226
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");
1227
+ background-color: crimson;
1228
+ }
1229
+ .ace_icon_svg.ace_warning {
1230
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");
1231
+ background-color: darkorange;
1232
+ }
1233
+ .ace_icon_svg.ace_info {
1234
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");
1235
+ background-color: royalblue;
1236
+ }
1237
+
1238
+ .ace_icon_svg.ace_error_fold {
1239
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
1240
+ background-color: crimson;
1241
+ }
1242
+ .ace_icon_svg.ace_warning_fold {
1243
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");
1244
+ background-color: darkorange;
1245
+ }
1246
+
1247
+ .ace_scrollbar {
1248
+ contain: strict;
1249
+ position: absolute;
1250
+ right: 0;
1251
+ bottom: 0;
1252
+ z-index: 6;
1253
+ }
1254
+
1255
+ .ace_scrollbar-inner {
1256
+ position: absolute;
1257
+ cursor: text;
1258
+ left: 0;
1259
+ top: 0;
1260
+ }
1261
+
1262
+ .ace_scrollbar-v{
1263
+ overflow-x: hidden;
1264
+ overflow-y: scroll;
1265
+ top: 0;
1266
+ }
1267
+
1268
+ .ace_scrollbar-h {
1269
+ overflow-x: scroll;
1270
+ overflow-y: hidden;
1271
+ left: 0;
1272
+ }
1273
+
1274
+ .ace_print-margin {
1275
+ position: absolute;
1276
+ height: 100%;
1277
+ }
1278
+
1279
+ .ace_text-input {
1280
+ position: absolute;
1281
+ z-index: 0;
1282
+ width: 0.5em;
1283
+ height: 1em;
1284
+ opacity: 0;
1285
+ background: transparent;
1286
+ -moz-appearance: none;
1287
+ appearance: none;
1288
+ border: none;
1289
+ resize: none;
1290
+ outline: none;
1291
+ overflow: hidden;
1292
+ font: inherit;
1293
+ padding: 0 1px;
1294
+ margin: 0 -1px;
1295
+ contain: strict;
1296
+ -ms-user-select: text;
1297
+ -moz-user-select: text;
1298
+ -webkit-user-select: text;
1299
+ user-select: text;
1300
+ /*with \`pre-line\` chrome inserts &nbsp; instead of space*/
1301
+ white-space: pre!important;
1302
+ }
1303
+ .ace_text-input.ace_composition {
1304
+ background: transparent;
1305
+ color: inherit;
1306
+ z-index: 1000;
1307
+ opacity: 1;
1308
+ }
1309
+ .ace_composition_placeholder { color: transparent }
1310
+ .ace_composition_marker {
1311
+ border-bottom: 1px solid;
1312
+ position: absolute;
1313
+ border-radius: 0;
1314
+ margin-top: 1px;
1315
+ }
1316
+
1317
+ [ace_nocontext=true] {
1318
+ transform: none!important;
1319
+ filter: none!important;
1320
+ clip-path: none!important;
1321
+ mask : none!important;
1322
+ contain: none!important;
1323
+ perspective: none!important;
1324
+ mix-blend-mode: initial!important;
1325
+ z-index: auto;
1326
+ }
1327
+
1328
+ .ace_layer {
1329
+ z-index: 1;
1330
+ position: absolute;
1331
+ overflow: hidden;
1332
+ /* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/
1333
+ word-wrap: normal;
1334
+ white-space: pre;
1335
+ height: 100%;
1336
+ width: 100%;
1337
+ box-sizing: border-box;
1338
+ /* setting pointer-events: auto; on node under the mouse, which changes
1339
+ during scroll, will break mouse wheel scrolling in Safari */
1340
+ pointer-events: none;
1341
+ }
1342
+
1343
+ .ace_gutter-layer {
1344
+ position: relative;
1345
+ width: auto;
1346
+ text-align: right;
1347
+ pointer-events: auto;
1348
+ height: 1000000px;
1349
+ contain: style size layout;
1350
+ }
1351
+
1352
+ .ace_text-layer {
1353
+ font: inherit !important;
1354
+ position: absolute;
1355
+ height: 1000000px;
1356
+ width: 1000000px;
1357
+ contain: style size layout;
1358
+ }
1359
+
1360
+ .ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {
1361
+ contain: style size layout;
1362
+ position: absolute;
1363
+ top: 0;
1364
+ left: 0;
1365
+ right: 0;
1366
+ }
1367
+
1368
+ .ace_hidpi .ace_text-layer,
1369
+ .ace_hidpi .ace_gutter-layer,
1370
+ .ace_hidpi .ace_content,
1371
+ .ace_hidpi .ace_gutter {
1372
+ contain: strict;
1373
+ }
1374
+ .ace_hidpi .ace_text-layer > .ace_line,
1375
+ .ace_hidpi .ace_text-layer > .ace_line_group {
1376
+ contain: strict;
1377
+ }
1378
+
1379
+ .ace_cjk {
1380
+ display: inline-block;
1381
+ text-align: center;
1382
+ }
1383
+
1384
+ .ace_cursor-layer {
1385
+ z-index: 4;
1386
+ }
1387
+
1388
+ .ace_cursor {
1389
+ z-index: 4;
1390
+ position: absolute;
1391
+ box-sizing: border-box;
1392
+ border-left: 2px solid;
1393
+ /* workaround for smooth cursor repaintng whole screen in chrome */
1394
+ transform: translatez(0);
1395
+ }
1396
+
1397
+ .ace_multiselect .ace_cursor {
1398
+ border-left-width: 1px;
1399
+ }
1400
+
1401
+ .ace_slim-cursors .ace_cursor {
1402
+ border-left-width: 1px;
1403
+ }
1404
+
1405
+ .ace_overwrite-cursors .ace_cursor {
1406
+ border-left-width: 0;
1407
+ border-bottom: 1px solid;
1408
+ }
1409
+
1410
+ .ace_hidden-cursors .ace_cursor {
1411
+ opacity: 0.2;
1412
+ }
1413
+
1414
+ .ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {
1415
+ opacity: 0;
1416
+ }
1417
+
1418
+ .ace_smooth-blinking .ace_cursor {
1419
+ transition: opacity 0.18s;
1420
+ }
1421
+
1422
+ .ace_animate-blinking .ace_cursor {
1423
+ animation-duration: 1000ms;
1424
+ animation-timing-function: step-end;
1425
+ animation-name: blink-ace-animate;
1426
+ animation-iteration-count: infinite;
1427
+ }
1428
+
1429
+ .ace_animate-blinking.ace_smooth-blinking .ace_cursor {
1430
+ animation-duration: 1000ms;
1431
+ animation-timing-function: ease-in-out;
1432
+ animation-name: blink-ace-animate-smooth;
1433
+ }
1434
+
1435
+ @keyframes blink-ace-animate {
1436
+ from, to { opacity: 1; }
1437
+ 60% { opacity: 0; }
1438
+ }
1439
+
1440
+ @keyframes blink-ace-animate-smooth {
1441
+ from, to { opacity: 1; }
1442
+ 45% { opacity: 1; }
1443
+ 60% { opacity: 0; }
1444
+ 85% { opacity: 0; }
1445
+ }
1446
+
1447
+ .ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {
1448
+ position: absolute;
1449
+ z-index: 3;
1450
+ }
1451
+
1452
+ .ace_marker-layer .ace_selection {
1453
+ position: absolute;
1454
+ z-index: 5;
1455
+ }
1456
+
1457
+ .ace_marker-layer .ace_bracket {
1458
+ position: absolute;
1459
+ z-index: 6;
1460
+ }
1461
+
1462
+ .ace_marker-layer .ace_error_bracket {
1463
+ position: absolute;
1464
+ border-bottom: 1px solid #DE5555;
1465
+ border-radius: 0;
1466
+ }
1467
+
1468
+ .ace_marker-layer .ace_active-line {
1469
+ position: absolute;
1470
+ z-index: 2;
1471
+ }
1472
+
1473
+ .ace_marker-layer .ace_selected-word {
1474
+ position: absolute;
1475
+ z-index: 4;
1476
+ box-sizing: border-box;
1477
+ }
1478
+
1479
+ .ace_line .ace_fold {
1480
+ box-sizing: border-box;
1481
+
1482
+ display: inline-block;
1483
+ height: 11px;
1484
+ margin-top: -2px;
1485
+ vertical-align: middle;
1486
+
1487
+ background-image:
1488
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
1489
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");
1490
+ background-repeat: no-repeat, repeat-x;
1491
+ background-position: center center, top left;
1492
+ color: transparent;
1493
+
1494
+ border: 1px solid black;
1495
+ border-radius: 2px;
1496
+
1497
+ cursor: pointer;
1498
+ pointer-events: auto;
1499
+ }
1500
+
1501
+ .ace_dark .ace_fold {
1502
+ }
1503
+
1504
+ .ace_fold:hover{
1505
+ background-image:
1506
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
1507
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");
1508
+ }
1509
+
1510
+ .ace_tooltip {
1511
+ background-color: #f5f5f5;
1512
+ border: 1px solid gray;
1513
+ border-radius: 1px;
1514
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
1515
+ color: black;
1516
+ max-width: 100%;
1517
+ padding: 3px 4px;
1518
+ position: fixed;
1519
+ z-index: 999999;
1520
+ box-sizing: border-box;
1521
+ cursor: default;
1522
+ white-space: pre-wrap;
1523
+ word-wrap: break-word;
1524
+ line-height: normal;
1525
+ font-style: normal;
1526
+ font-weight: normal;
1527
+ letter-spacing: normal;
1528
+ pointer-events: none;
1529
+ overflow: auto;
1530
+ max-width: min(60em, 66vw);
1531
+ overscroll-behavior: contain;
1532
+ }
1533
+ .ace_tooltip pre {
1534
+ white-space: pre-wrap;
1535
+ }
1536
+
1537
+ .ace_tooltip.ace_dark {
1538
+ background-color: #636363;
1539
+ color: #fff;
1540
+ }
1541
+
1542
+ .ace_tooltip:focus {
1543
+ outline: 1px solid #5E9ED6;
1544
+ }
1545
+
1546
+ .ace_icon {
1547
+ display: inline-block;
1548
+ width: 18px;
1549
+ vertical-align: top;
1550
+ }
1551
+
1552
+ .ace_icon_svg {
1553
+ display: inline-block;
1554
+ width: 12px;
1555
+ vertical-align: top;
1556
+ -webkit-mask-repeat: no-repeat;
1557
+ -webkit-mask-size: 12px;
1558
+ -webkit-mask-position: center;
1559
+ }
1560
+
1561
+ .ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {
1562
+ padding-right: 13px;
1563
+ }
1564
+
1565
+ .ace_fold-widget {
1566
+ box-sizing: border-box;
1567
+
1568
+ margin: 0 -12px 0 1px;
1569
+ display: none;
1570
+ width: 11px;
1571
+ vertical-align: top;
1572
+
1573
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");
1574
+ background-repeat: no-repeat;
1575
+ background-position: center;
1576
+
1577
+ border-radius: 3px;
1578
+
1579
+ border: 1px solid transparent;
1580
+ cursor: pointer;
1581
+ }
1582
+
1583
+ .ace_folding-enabled .ace_fold-widget {
1584
+ display: inline-block;
1585
+ }
1586
+
1587
+ .ace_fold-widget.ace_end {
1588
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");
1589
+ }
1590
+
1591
+ .ace_fold-widget.ace_closed {
1592
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");
1593
+ }
1594
+
1595
+ .ace_fold-widget:hover {
1596
+ border: 1px solid rgba(0, 0, 0, 0.3);
1597
+ background-color: rgba(255, 255, 255, 0.2);
1598
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
1599
+ }
1600
+
1601
+ .ace_fold-widget:active {
1602
+ border: 1px solid rgba(0, 0, 0, 0.4);
1603
+ background-color: rgba(0, 0, 0, 0.05);
1604
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
1605
+ }
1606
+ /**
1607
+ * Dark version for fold widgets
1608
+ */
1609
+ .ace_dark .ace_fold-widget {
1610
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");
1611
+ }
1612
+ .ace_dark .ace_fold-widget.ace_end {
1613
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");
1614
+ }
1615
+ .ace_dark .ace_fold-widget.ace_closed {
1616
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");
1617
+ }
1618
+ .ace_dark .ace_fold-widget:hover {
1619
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
1620
+ background-color: rgba(255, 255, 255, 0.1);
1621
+ }
1622
+ .ace_dark .ace_fold-widget:active {
1623
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
1624
+ }
1625
+
1626
+ .ace_inline_button {
1627
+ border: 1px solid lightgray;
1628
+ display: inline-block;
1629
+ margin: -1px 8px;
1630
+ padding: 0 5px;
1631
+ pointer-events: auto;
1632
+ cursor: pointer;
1633
+ }
1634
+ .ace_inline_button:hover {
1635
+ border-color: gray;
1636
+ background: rgba(200,200,200,0.2);
1637
+ display: inline-block;
1638
+ pointer-events: auto;
1639
+ }
1640
+
1641
+ .ace_fold-widget.ace_invalid {
1642
+ background-color: #FFB4B4;
1643
+ border-color: #DE5555;
1644
+ }
1645
+
1646
+ .ace_fade-fold-widgets .ace_fold-widget {
1647
+ transition: opacity 0.4s ease 0.05s;
1648
+ opacity: 0;
1649
+ }
1650
+
1651
+ .ace_fade-fold-widgets:hover .ace_fold-widget {
1652
+ transition: opacity 0.05s ease 0.05s;
1653
+ opacity:1;
1654
+ }
1655
+
1656
+ .ace_underline {
1657
+ text-decoration: underline;
1658
+ }
1659
+
1660
+ .ace_bold {
1661
+ font-weight: bold;
1662
+ }
1663
+
1664
+ .ace_nobold .ace_bold {
1665
+ font-weight: normal;
1666
+ }
1667
+
1668
+ .ace_italic {
1669
+ font-style: italic;
1670
+ }
1671
+
1672
+
1673
+ .ace_error-marker {
1674
+ background-color: rgba(255, 0, 0,0.2);
1675
+ position: absolute;
1676
+ z-index: 9;
1677
+ }
1678
+
1679
+ .ace_highlight-marker {
1680
+ background-color: rgba(255, 255, 0,0.2);
1681
+ position: absolute;
1682
+ z-index: 8;
1683
+ }
1684
+
1685
+ .ace_mobile-menu {
1686
+ position: absolute;
1687
+ line-height: 1.5;
1688
+ border-radius: 4px;
1689
+ -ms-user-select: none;
1690
+ -moz-user-select: none;
1691
+ -webkit-user-select: none;
1692
+ user-select: none;
1693
+ background: white;
1694
+ box-shadow: 1px 3px 2px grey;
1695
+ border: 1px solid #dcdcdc;
1696
+ color: black;
1697
+ }
1698
+ .ace_dark > .ace_mobile-menu {
1699
+ background: #333;
1700
+ color: #ccc;
1701
+ box-shadow: 1px 3px 2px grey;
1702
+ border: 1px solid #444;
1703
+
1704
+ }
1705
+ .ace_mobile-button {
1706
+ padding: 2px;
1707
+ cursor: pointer;
1708
+ overflow: hidden;
1709
+ }
1710
+ .ace_mobile-button:hover {
1711
+ background-color: #eee;
1712
+ opacity:1;
1713
+ }
1714
+ .ace_mobile-button:active {
1715
+ background-color: #ddd;
1716
+ }
1717
+
1718
+ .ace_placeholder {
1719
+ font-family: arial;
1720
+ transform: scale(0.9);
1721
+ transform-origin: left;
1722
+ white-space: pre;
1723
+ opacity: 0.7;
1724
+ margin: 0 10px;
1725
+ }
1726
+
1727
+ .ace_ghost_text {
1728
+ opacity: 0.5;
1729
+ font-style: italic;
1730
+ white-space: pre;
1731
+ }
1732
+
1733
+ .ace_screenreader-only {
1734
+ position:absolute;
1735
+ left:-10000px;
1736
+ top:auto;
1737
+ width:1px;
1738
+ height:1px;
1739
+ overflow:hidden;
1740
+ }`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(n,r,l){var s=n("../lib/dom"),u=n("../lib/oop"),d=n("../lib/event_emitter").EventEmitter,o=function(){function p(a,i){this.canvas=s.createElement("canvas"),this.renderer=i,this.pixelRatio=1,this.maxHeight=i.layerConfig.maxHeight,this.lineHeight=i.layerConfig.lineHeight,this.canvasHeight=a.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=a.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7px",this.canvas.style.position="absolute",this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},a.element.appendChild(this.canvas)}return p.prototype.$updateDecorators=function(a){var i=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;if(a){this.maxHeight=a.maxHeight,this.lineHeight=a.lineHeight,this.canvasHeight=a.height;var c=(a.lastRow+1)*this.lineHeight;c<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight}var h=this.canvas.getContext("2d");function f(_,A){return _.priority<A.priority?-1:_.priority>A.priority?1:0}var g=this.renderer.session.$annotations;if(h.clearRect(0,0,this.canvas.width,this.canvas.height),g){var m={info:1,warning:2,error:3};g.forEach(function(_){_.priority=m[_.type]||null}),g=g.sort(f);for(var v=this.renderer.session.$foldData,y=0;y<g.length;y++){var k=g[y].row,C=this.compensateFoldRows(k,v),S=Math.round((k-C)*this.lineHeight*this.heightRatio),b=Math.round((k-C)*this.lineHeight*this.heightRatio),E=Math.round(((k-C)*this.lineHeight+this.lineHeight)*this.heightRatio),L=E-b;if(L<this.minDecorationHeight){var x=(b+E)/2|0;x<this.halfMinDecorationHeight?x=this.halfMinDecorationHeight:x+this.halfMinDecorationHeight>this.canvasHeight&&(x=this.canvasHeight-this.halfMinDecorationHeight),b=Math.round(x-this.halfMinDecorationHeight),E=Math.round(x+this.halfMinDecorationHeight)}h.fillStyle=i[g[y].type]||null,h.fillRect(0,S,this.canvasWidth,E-b)}}var M=this.renderer.session.selection.getCursor();if(M){var C=this.compensateFoldRows(M.row,v),S=Math.round((M.row-C)*this.lineHeight*this.heightRatio);h.fillStyle="rgba(0, 0, 0, 0.5)",h.fillRect(0,S,this.canvasWidth,2)}},p.prototype.compensateFoldRows=function(a,i){var c=0;if(i&&i.length>0)for(var h=0;h<i.length;h++)a>i[h].start.row&&a<i[h].end.row?c+=a-i[h].start.row:a>=i[h].end.row&&(c+=i[h].end.row-i[h].start.row);return c},p}();u.implement(o.prototype,d),r.Decorator=o}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/scrollbar_custom","ace/scrollbar_custom","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/css/editor-css","ace/layer/decorators","ace/lib/useragent"],function(n,r,l){var s=n("./lib/oop"),u=n("./lib/dom"),d=n("./lib/lang"),o=n("./config"),p=n("./layer/gutter").Gutter,a=n("./layer/marker").Marker,i=n("./layer/text").Text,c=n("./layer/cursor").Cursor,h=n("./scrollbar").HScrollBar,f=n("./scrollbar").VScrollBar,g=n("./scrollbar_custom").HScrollBar,m=n("./scrollbar_custom").VScrollBar,v=n("./renderloop").RenderLoop,y=n("./layer/font_metrics").FontMetrics,k=n("./lib/event_emitter").EventEmitter,C=n("./css/editor-css"),S=n("./layer/decorators").Decorator,b=n("./lib/useragent");u.importCssString(C,"ace_editor.css",!1);var E=function(){function L(x,M){var _=this;this.container=x||u.createElement("div"),u.addCssClass(this.container,"ace_editor"),u.HI_DPI&&u.addCssClass(this.container,"ace_hidpi"),this.setTheme(M),o.get("useStrictCSP")==null&&o.set("useStrictCSP",!1),this.$gutter=u.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden","true"),this.scroller=u.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=u.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new p(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new a(this.content);var A=this.$textLayer=new i(this.content);this.canvas=A.element,this.$markerFront=new a(this.content),this.$cursorLayer=new c(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new f(this.container,this),this.scrollBarH=new h(this.container,this),this.scrollBarV.on("scroll",function($){_.$scrollAnimation||_.session.setScrollTop($.data-_.scrollMargin.top)}),this.scrollBarH.on("scroll",function($){_.$scrollAnimation||_.session.setScrollLeft($.data-_.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new y(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function($){_.updateCharacterSize(),_.onResize(!0,_.gutterWidth,_.$size.width,_.$size.height),_._signal("changeCharacterSize",$)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!b.isIOS,this.$loop=new v(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),o.resetOptions(this),o._signal("renderer",this)}return L.prototype.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),u.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},L.prototype.setSession=function(x){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=x,x&&this.scrollMargin.top&&x.getScrollTop()<=0&&x.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(x),this.$markerBack.setSession(x),this.$markerFront.setSession(x),this.$gutterLayer.setSession(x),this.$textLayer.setSession(x),x&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},L.prototype.updateLines=function(x,M,_){if(M===void 0&&(M=1/0),this.$changedLines?(this.$changedLines.firstRow>x&&(this.$changedLines.firstRow=x),this.$changedLines.lastRow<M&&(this.$changedLines.lastRow=M)):this.$changedLines={firstRow:x,lastRow:M},this.$changedLines.lastRow<this.layerConfig.firstRow)if(_)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(x){x?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},L.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},L.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},L.prototype.onResize=function(x,M,_,A){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=x?1:0;var $=this.container;A||(A=$.clientHeight||$.scrollHeight),_||(_=$.clientWidth||$.scrollWidth);var w=this.$updateCachedSize(x,M,_,A);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!_&&!A)return this.resizing=0;x&&(this.$gutterLayer.$padding=null),x?this.$renderChanges(w|this.$changes,!0):this.$loop.schedule(w|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},L.prototype.$updateCachedSize=function(x,M,_,A){A-=this.$extraHeight||0;var $=0,w=this.$size,R={width:w.width,height:w.height,scrollerHeight:w.scrollerHeight,scrollerWidth:w.scrollerWidth};if(A&&(x||w.height!=A)&&(w.height=A,$|=this.CHANGE_SIZE,w.scrollerHeight=w.height,this.$horizScroll&&(w.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(w.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",$=$|this.CHANGE_SCROLL),_&&(x||w.width!=_)){$|=this.CHANGE_SIZE,w.width=_,M==null&&(M=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=M,u.setStyle(this.scrollBarH.element.style,"left",M+"px"),u.setStyle(this.scroller.style,"left",M+this.margin.left+"px"),w.scrollerWidth=Math.max(0,_-M-this.scrollBarV.getWidth()-this.margin.h),u.setStyle(this.$gutter.style,"left",this.margin.left+"px");var T=this.scrollBarV.getWidth()+"px";u.setStyle(this.scrollBarH.element.style,"right",T),u.setStyle(this.scroller.style,"right",T),u.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(w.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||x)&&($|=this.CHANGE_FULL)}return w.$dirty=!_||!A,$&&this._signal("resize",R),$},L.prototype.onGutterResize=function(x){var M=this.$showGutter?x:0;M!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,M,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},L.prototype.adjustWrapLimit=function(){var x=this.$size.scrollerWidth-this.$padding*2,M=Math.floor(x/this.characterWidth);return this.session.adjustWrapLimit(M,this.$showPrintMargin&&this.$printMarginColumn)},L.prototype.setAnimatedScroll=function(x){this.setOption("animatedScroll",x)},L.prototype.getAnimatedScroll=function(){return this.$animatedScroll},L.prototype.setShowInvisibles=function(x){this.setOption("showInvisibles",x),this.session.$bidiHandler.setShowInvisibles(x)},L.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},L.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},L.prototype.setDisplayIndentGuides=function(x){this.setOption("displayIndentGuides",x)},L.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},L.prototype.setHighlightIndentGuides=function(x){this.setOption("highlightIndentGuides",x)},L.prototype.setShowPrintMargin=function(x){this.setOption("showPrintMargin",x)},L.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},L.prototype.setPrintMarginColumn=function(x){this.setOption("printMarginColumn",x)},L.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},L.prototype.getShowGutter=function(){return this.getOption("showGutter")},L.prototype.setShowGutter=function(x){return this.setOption("showGutter",x)},L.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},L.prototype.setFadeFoldWidgets=function(x){this.setOption("fadeFoldWidgets",x)},L.prototype.setHighlightGutterLine=function(x){this.setOption("highlightGutterLine",x)},L.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},L.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var x=u.createElement("div");x.className="ace_layer ace_print-margin-layer",this.$printMarginEl=u.createElement("div"),this.$printMarginEl.className="ace_print-margin",x.appendChild(this.$printMarginEl),this.content.insertBefore(x,this.content.firstChild)}var M=this.$printMarginEl.style;M.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",M.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},L.prototype.getContainerElement=function(){return this.container},L.prototype.getMouseEventTarget=function(){return this.scroller},L.prototype.getTextAreaContainer=function(){return this.container},L.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var x=this.textarea.style,M=this.$composition;if(!this.$keepTextAreaAtCursor&&!M){u.translate(this.textarea,-100,0);return}var _=this.$cursorLayer.$pixelPos;if(_){M&&M.markerRange&&(_=this.$cursorLayer.getPixelPosition(M.markerRange.start,!0));var A=this.layerConfig,$=_.top,w=_.left;$-=A.offset;var R=M&&M.useTextareaForIME||b.isMobile?this.lineHeight:1;if($<0||$>A.height-R){u.translate(this.textarea,0,0);return}var T=1,O=this.$size.height-R;if(!M)$+=this.lineHeight;else if(M.useTextareaForIME){var I=this.textarea.value;T=this.characterWidth*this.session.$getStringScreenWidth(I)[0]}else $+=this.lineHeight+2;w-=this.scrollLeft,w>this.$size.scrollerWidth-T&&(w=this.$size.scrollerWidth-T),w+=this.gutterWidth+this.margin.left,u.setStyle(x,"height",R+"px"),u.setStyle(x,"width",T+"px"),u.translate(this.textarea,Math.min(w,this.$size.scrollerWidth-T),Math.min($,O))}}},L.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},L.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},L.prototype.getLastFullyVisibleRow=function(){var x=this.layerConfig,M=x.lastRow,_=this.session.documentToScreenRow(M,0)*x.lineHeight;return _-this.session.getScrollTop()>x.height-x.lineHeight?M-1:M},L.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},L.prototype.setPadding=function(x){this.$padding=x,this.$textLayer.setPadding(x),this.$cursorLayer.setPadding(x),this.$markerFront.setPadding(x),this.$markerBack.setPadding(x),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},L.prototype.setScrollMargin=function(x,M,_,A){var $=this.scrollMargin;$.top=x|0,$.bottom=M|0,$.right=A|0,$.left=_|0,$.v=$.top+$.bottom,$.h=$.left+$.right,$.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-$.top),this.updateFull()},L.prototype.setMargin=function(x,M,_,A){var $=this.margin;$.top=x|0,$.bottom=M|0,$.right=A|0,$.left=_|0,$.v=$.top+$.bottom,$.h=$.left+$.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},L.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},L.prototype.setHScrollBarAlwaysVisible=function(x){this.setOption("hScrollBarAlwaysVisible",x)},L.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},L.prototype.setVScrollBarAlwaysVisible=function(x){this.setOption("vScrollBarAlwaysVisible",x)},L.prototype.$updateScrollBarV=function(){var x=this.layerConfig.maxHeight,M=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(x-=(M-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>x-M&&(x=this.scrollTop+M,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(x+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},L.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},L.prototype.freeze=function(){this.$frozen=!0},L.prototype.unfreeze=function(){this.$frozen=!1},L.prototype.$renderChanges=function(x,M){if(this.$changes&&(x|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!x&&!M){this.$changes|=x;return}if(this.$size.$dirty)return this.$changes|=x,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",x),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var _=this.layerConfig;if(x&this.CHANGE_FULL||x&this.CHANGE_SIZE||x&this.CHANGE_TEXT||x&this.CHANGE_LINES||x&this.CHANGE_SCROLL||x&this.CHANGE_H_SCROLL){if(x|=this.$computeLayerConfig()|this.$loop.clear(),_.firstRow!=this.layerConfig.firstRow&&_.firstRowScreen==this.layerConfig.firstRowScreen){var A=this.scrollTop+(_.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;A>0&&(this.scrollTop=A,x=x|this.CHANGE_SCROLL,x|=this.$computeLayerConfig()|this.$loop.clear())}_=this.layerConfig,this.$updateScrollBarV(),x&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),u.translate(this.content,-this.scrollLeft,-_.offset);var $=_.width+2*this.$padding+"px",w=_.minHeight+"px";u.setStyle(this.content.style,"width",$),u.setStyle(this.content.style,"height",w)}if(x&this.CHANGE_H_SCROLL&&(u.translate(this.content,-this.scrollLeft,-_.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),x&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(_),this.$showGutter&&this.$gutterLayer.update(_),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(_),this.$markerBack.update(_),this.$markerFront.update(_),this.$cursorLayer.update(_),this.$moveTextAreaToCursor(),this._signal("afterRender",x);return}if(x&this.CHANGE_SCROLL){this.$changedLines=null,x&this.CHANGE_TEXT||x&this.CHANGE_LINES?this.$textLayer.update(_):this.$textLayer.scrollLines(_),this.$showGutter&&(x&this.CHANGE_GUTTER||x&this.CHANGE_LINES?this.$gutterLayer.update(_):this.$gutterLayer.scrollLines(_)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(_),this.$markerBack.update(_),this.$markerFront.update(_),this.$cursorLayer.update(_),this.$moveTextAreaToCursor(),this._signal("afterRender",x);return}x&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(_),this.$showGutter&&this.$gutterLayer.update(_),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(_)):x&this.CHANGE_LINES?((this.$updateLines()||x&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(_),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(_)):x&this.CHANGE_TEXT||x&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(_),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(_)):x&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(_),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(_)),x&this.CHANGE_CURSOR&&(this.$cursorLayer.update(_),this.$moveTextAreaToCursor()),x&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(_),x&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(_),this._signal("afterRender",x)},L.prototype.$autosize=function(){var x=this.session.getScreenLength()*this.lineHeight,M=this.$maxLines*this.lineHeight,_=Math.min(M,Math.max((this.$minLines||1)*this.lineHeight,x))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(_+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&_>this.$maxPixelHeight&&(_=this.$maxPixelHeight);var A=_<=2*this.lineHeight,$=!A&&x>M;if(_!=this.desiredHeight||this.$size.height!=this.desiredHeight||$!=this.$vScroll){$!=this.$vScroll&&(this.$vScroll=$,this.scrollBarV.setVisible($));var w=this.container.clientWidth;this.container.style.height=_+"px",this.$updateCachedSize(!0,this.$gutterWidth,w,_),this.desiredHeight=_,this._signal("autosize")}},L.prototype.$computeLayerConfig=function(){var x=this.session,M=this.$size,_=M.height<=2*this.lineHeight,A=this.session.getScreenLength(),$=A*this.lineHeight,w=this.$getLongestLine(),R=!_&&(this.$hScrollBarAlwaysVisible||M.scrollerWidth-w-2*this.$padding<0),T=this.$horizScroll!==R;T&&(this.$horizScroll=R,this.scrollBarH.setVisible(R));var O=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var I=M.scrollerHeight+this.lineHeight,N=!this.$maxLines&&this.$scrollPastEnd?(M.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;$+=N;var P=this.scrollMargin;this.session.setScrollTop(Math.max(-P.top,Math.min(this.scrollTop,$-M.scrollerHeight+P.bottom))),this.session.setScrollLeft(Math.max(-P.left,Math.min(this.scrollLeft,w+2*this.$padding-M.scrollerWidth+P.right)));var W=!_&&(this.$vScrollBarAlwaysVisible||M.scrollerHeight-$+N<0||this.scrollTop>P.top),j=O!==W;j&&(this.$vScroll=W,this.scrollBarV.setVisible(W));var V=this.scrollTop%this.lineHeight,H=Math.ceil(I/this.lineHeight)-1,G=Math.max(0,Math.round((this.scrollTop-V)/this.lineHeight)),Q=G+H,U,X,Y=this.lineHeight;G=x.screenToDocumentRow(G,0);var z=x.getFoldLine(G);z&&(G=z.start.row),U=x.documentToScreenRow(G,0),X=x.getRowLength(G)*Y,Q=Math.min(x.screenToDocumentRow(Q,0),x.getLength()-1),I=M.scrollerHeight+x.getRowLength(Q)*Y+X,V=this.scrollTop-U*Y;var ee=0;return(this.layerConfig.width!=w||T)&&(ee=this.CHANGE_H_SCROLL),(T||j)&&(ee|=this.$updateCachedSize(!0,this.gutterWidth,M.width,M.height),this._signal("scrollbarVisibilityChanged"),j&&(w=this.$getLongestLine())),this.layerConfig={width:w,padding:this.$padding,firstRow:G,firstRowScreen:U,lastRow:Q,lineHeight:Y,characterWidth:this.characterWidth,minHeight:I,maxHeight:$,offset:V,gutterOffset:Y?Math.max(0,Math.ceil((V+M.height-M.scrollerHeight)/Y)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(w-this.$padding),ee},L.prototype.$updateLines=function(){if(this.$changedLines){var x=this.$changedLines.firstRow,M=this.$changedLines.lastRow;this.$changedLines=null;var _=this.layerConfig;if(!(x>_.lastRow+1)&&!(M<_.firstRow)){if(M===1/0){this.$showGutter&&this.$gutterLayer.update(_),this.$textLayer.update(_);return}return this.$textLayer.updateLines(_,x,M),!0}}},L.prototype.$getLongestLine=function(){var x=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(x+=1),this.$textLayer&&x>this.$textLayer.MAX_LINE_LENGTH&&(x=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(x*this.characterWidth))},L.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},L.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},L.prototype.addGutterDecoration=function(x,M){this.$gutterLayer.addGutterDecoration(x,M)},L.prototype.removeGutterDecoration=function(x,M){this.$gutterLayer.removeGutterDecoration(x,M)},L.prototype.updateBreakpoints=function(x){this._rows=x,this.$loop.schedule(this.CHANGE_GUTTER)},L.prototype.setAnnotations=function(x){this.$gutterLayer.setAnnotations(x),this.$loop.schedule(this.CHANGE_GUTTER)},L.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},L.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},L.prototype.showCursor=function(){this.$cursorLayer.showCursor()},L.prototype.scrollSelectionIntoView=function(x,M,_){this.scrollCursorIntoView(x,_),this.scrollCursorIntoView(M,_)},L.prototype.scrollCursorIntoView=function(x,M,_){if(this.$size.scrollerHeight!==0){var A=this.$cursorLayer.getPixelPosition(x),$=A.left,w=A.top,R=_&&_.top||0,T=_&&_.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var O=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;O+R>w?(M&&O+R>w+this.lineHeight&&(w-=M*this.$size.scrollerHeight),w===0&&(w=-this.scrollMargin.top),this.session.setScrollTop(w)):O+this.$size.scrollerHeight-T<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(x){this.session.setScrollTop(x*this.lineHeight)},L.prototype.alignCursor=function(x,M){typeof x=="number"&&(x={row:x,column:0});var _=this.$cursorLayer.getPixelPosition(x),A=this.$size.scrollerHeight-this.lineHeight,$=_.top-A*(M||0);return this.session.setScrollTop($),$},L.prototype.$calcSteps=function(x,M){var _=0,A=this.STEPS,$=[],w=function(R,T,O){return O*(Math.pow(R-1,3)+1)+T};for(_=0;_<A;++_)$.push(w(_/this.STEPS,x,M-x));return $},L.prototype.scrollToLine=function(x,M,_,A){var $=this.$cursorLayer.getPixelPosition({row:x,column:0}),w=$.top;M&&(w-=this.$size.scrollerHeight/2);var R=this.scrollTop;this.session.setScrollTop(w),_!==!1&&this.animateScrolling(R,A)},L.prototype.animateScrolling=function(x,M){var _=this.scrollTop;if(!this.$animatedScroll)return;var A=this;if(x==_)return;if(this.$scrollAnimation){var $=this.$scrollAnimation.steps;if($.length&&(x=$[0],x==_))return}var w=A.$calcSteps(x,_);this.$scrollAnimation={from:x,to:_,steps:w},clearInterval(this.$timer),A.session.setScrollTop(w.shift()),A.session.$scrollTop=_;function R(){A.$timer=clearInterval(A.$timer),A.$scrollAnimation=null,A.$stopAnimation=!1,M&&M()}this.$timer=setInterval(function(){if(A.$stopAnimation){R();return}if(!A.session)return clearInterval(A.$timer);w.length?(A.session.setScrollTop(w.shift()),A.session.$scrollTop=_):_!=null?(A.session.$scrollTop=-1,A.session.setScrollTop(_),_=null):R()},10)},L.prototype.scrollToY=function(x){this.scrollTop!==x&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=x)},L.prototype.scrollToX=function(x){this.scrollLeft!==x&&(this.scrollLeft=x),this.$loop.schedule(this.CHANGE_H_SCROLL)},L.prototype.scrollTo=function(x,M){this.session.setScrollTop(M),this.session.setScrollLeft(x)},L.prototype.scrollBy=function(x,M){M&&this.session.setScrollTop(this.session.getScrollTop()+M),x&&this.session.setScrollLeft(this.session.getScrollLeft()+x)},L.prototype.isScrollableBy=function(x,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||x<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||x>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},L.prototype.pixelToScreenCoordinates=function(x,M){var _;if(this.$hasCssTransforms){_={top:0,left:0};var A=this.$fontMetrics.transformCoordinates([x,M]);x=A[1]-this.gutterWidth-this.margin.left,M=A[0]}else _=this.scroller.getBoundingClientRect();var $=x+this.scrollLeft-_.left-this.$padding,w=$/this.characterWidth,R=Math.floor((M+this.scrollTop-_.top)/this.lineHeight),T=this.$blockCursor?Math.floor(w):Math.round(w);return{row:R,column:T,side:w-T>0?1:-1,offsetX:$}},L.prototype.screenToTextCoordinates=function(x,M){var _;if(this.$hasCssTransforms){_={top:0,left:0};var A=this.$fontMetrics.transformCoordinates([x,M]);x=A[1]-this.gutterWidth-this.margin.left,M=A[0]}else _=this.scroller.getBoundingClientRect();var $=x+this.scrollLeft-_.left-this.$padding,w=$/this.characterWidth,R=this.$blockCursor?Math.floor(w):Math.round(w),T=Math.floor((M+this.scrollTop-_.top)/this.lineHeight);return this.session.screenToDocumentPosition(T,Math.max(R,0),$)},L.prototype.textToScreenCoordinates=function(x,M){var _=this.scroller.getBoundingClientRect(),A=this.session.documentToScreenPosition(x,M),$=this.$padding+(this.session.$bidiHandler.isBidiRow(A.row,x)?this.session.$bidiHandler.getPosLeft(A.column):Math.round(A.column*this.characterWidth)),w=A.row*this.lineHeight;return{pageX:_.left+$-this.scrollLeft,pageY:_.top+w-this.scrollTop}},L.prototype.visualizeFocus=function(){u.addCssClass(this.container,"ace_focus")},L.prototype.visualizeBlur=function(){u.removeCssClass(this.container,"ace_focus")},L.prototype.showComposition=function(x){this.$composition=x,x.cssText||(x.cssText=this.textarea.style.cssText),x.useTextareaForIME==null&&(x.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(u.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):x.markerId=this.session.addMarker(x.markerRange,"ace_composition_marker","text")},L.prototype.setCompositionText=function(x){var M=this.session.selection.cursor;this.addToken(x,"composition_placeholder",M.row,M.column),this.$moveTextAreaToCursor()},L.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),u.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var x=this.session.selection.cursor;this.removeExtraToken(x.row,x.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},L.prototype.setGhostText=function(x,M){var _=this.session.selection.cursor,A=M||{row:_.row,column:_.column};this.removeGhostText();var $=x.split(`
1741
+ `);if(this.addToken($[0],"ghost_text",A.row,A.column),this.$ghostText={text:x,position:{row:A.row,column:A.column}},$.length>1){this.$ghostTextWidget={text:$.slice(1).join(`
1742
+ `),row:A.row,column:A.column,className:"ace_ghost_text"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var w=this.$cursorLayer.getPixelPosition(A,!0),R=this.container,T=R.getBoundingClientRect().height,O=$.length*this.lineHeight,I=O<T-w.top;if(I)return;O<T?this.scrollBy(0,($.length-1)*this.lineHeight):this.scrollBy(0,w.top)}},L.prototype.removeGhostText=function(){if(this.$ghostText){var x=this.$ghostText.position;this.removeExtraToken(x.row,x.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},L.prototype.addToken=function(x,M,_,A){var $=this.session;$.bgTokenizer.lines[_]=null;var w={type:M,value:x},R=$.getTokens(_);if(A==null||!R.length)R.push(w);else for(var T=0,O=0;O<R.length;O++){var I=R[O];if(T+=I.value.length,A<=T){var N=I.value.length-(T-A),P=I.value.slice(0,N),W=I.value.slice(N);R.splice(O,1,{type:I.type,value:P},w,{type:I.type,value:W});break}}this.updateLines(_,_)},L.prototype.removeExtraToken=function(x,M){this.session.bgTokenizer.lines[x]=null,this.updateLines(x,x)},L.prototype.setTheme=function(x,M){var _=this;if(this.$themeId=x,_._dispatchEvent("themeChange",{theme:x}),!x||typeof x=="string"){var A=x||this.$options.theme.initialValue;o.loadModule(["theme",A],$)}else $(x);function $(w){if(_.$themeId!=x)return M&&M();if(!w||!w.cssClass)throw new Error("couldn't load module "+x+" or it didn't call define");w.$id&&(_.$themeId=w.$id),u.importCssString(w.cssText,w.cssClass,_.container),_.theme&&u.removeCssClass(_.container,_.theme.cssClass);var R="padding"in w?w.padding:"padding"in(_.theme||{})?4:_.$padding;_.$padding&&R!=_.$padding&&_.setPadding(R),_.$theme=w.cssClass,_.theme=w,u.addCssClass(_.container,w.cssClass),u.setCssClass(_.container,"ace_dark",w.isDark),_.$size&&(_.$size.width=0,_.$updateSizeAsync()),_._dispatchEvent("themeLoaded",{theme:w}),M&&M()}},L.prototype.getTheme=function(){return this.$themeId},L.prototype.setStyle=function(x,M){u.setCssClass(this.container,x,M!==!1)},L.prototype.unsetStyle=function(x){u.removeCssClass(this.container,x)},L.prototype.setCursorStyle=function(x){u.setStyle(this.scroller.style,"cursor",x)},L.prototype.setMouseCursor=function(x){u.setStyle(this.scroller.style,"cursor",x)},L.prototype.attachToShadowRoot=function(){u.importCssString(C,"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(x){var M=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,x===!0?(this.scrollBarV=new m(this.container,this),this.scrollBarH=new g(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function(_){M.$scrollAnimation||M.session.setScrollTop(_.data-M.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(_){M.$scrollAnimation||M.session.setScrollLeft(_.data-M.scrollMargin.left)}),this.$scrollDecorator=new S(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new f(this.container,this),this.scrollBarH=new h(this.container,this),this.scrollBarV.addEventListener("scroll",function(_){M.$scrollAnimation||M.session.setScrollTop(_.data-M.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(_){M.$scrollAnimation||M.session.setScrollLeft(_.data-M.scrollMargin.left)}))},L.prototype.$addResizeObserver=function(){if(!(!window.ResizeObserver||this.$resizeObserver)){var x=this;this.$resizeTimer=d.delayedCall(function(){x.destroyed||x.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(M){var _=M[0].contentRect.width,A=M[0].contentRect.height;Math.abs(x.$size.width-_)>1||Math.abs(x.$size.height-A)>1?x.$resizeTimer.delay():x.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},L}();E.prototype.CHANGE_CURSOR=1,E.prototype.CHANGE_MARKER=2,E.prototype.CHANGE_GUTTER=4,E.prototype.CHANGE_SCROLL=8,E.prototype.CHANGE_LINES=16,E.prototype.CHANGE_TEXT=32,E.prototype.CHANGE_SIZE=64,E.prototype.CHANGE_MARKER_BACK=128,E.prototype.CHANGE_MARKER_FRONT=256,E.prototype.CHANGE_FULL=512,E.prototype.CHANGE_H_SCROLL=1024,E.prototype.$changes=0,E.prototype.$padding=null,E.prototype.$frozen=!1,E.prototype.STEPS=8,s.implement(E.prototype,k),o.defineOptions(E.prototype,"renderer",{useResizeObserver:{set:function(L){!L&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):L&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(L){this.$textLayer.setShowInvisibles(L)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(L){typeof L=="number"&&(this.$printMarginColumn=L),this.$showPrintMargin=!!L,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(L){this.$gutter.style.display=L?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(L){this.$gutterLayer.$useSvgGutterIcons=L},initialValue:!1},showFoldedAnnotations:{set:function(L){this.$gutterLayer.$showFoldedAnnotations=L},initialValue:!1},fadeFoldWidgets:{set:function(L){u.setCssClass(this.$gutter,"ace_fade-fold-widgets",L)},initialValue:!1},showFoldWidgets:{set:function(L){this.$gutterLayer.setShowFoldWidgets(L),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(L){this.$textLayer.setDisplayIndentGuides(L)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(L){this.$textLayer.setHighlightIndentGuides(L)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(L){this.$gutterLayer.setHighlightGutterLine(L),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(L){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(L){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(L){typeof L=="number"&&(L=L+"px"),this.container.style.fontSize=L,this.updateFontSize()},initialValue:12},fontFamily:{set:function(L){this.container.style.fontFamily=L,this.updateFontSize()}},maxLines:{set:function(L){this.updateFull()}},minLines:{set:function(L){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(L){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(L){L=+L||0,this.$scrollPastEnd!=L&&(this.$scrollPastEnd=L,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(L){this.$gutterLayer.$fixedWidth=!!L,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(L){this.$updateCustomScrollbar(L)},initialValue:!1},theme:{set:function(L){this.setTheme(L)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!b.isMobile&&!b.isIE}}),r.VirtualRenderer=E}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(n,r,l){var s=n("../lib/oop"),u=n("../lib/net"),d=n("../lib/event_emitter").EventEmitter,o=n("../config");function p(h){var f="importScripts('"+u.qualifyURL(h)+"');";try{return new Blob([f],{type:"application/javascript"})}catch{var g=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,m=new g;return m.append(f),m.getBlob("application/javascript")}}function a(h){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(o.get("loadWorkerFromBlob")){var f=p(h),g=window.URL||window.webkitURL,m=g.createObjectURL(f);return new Worker(m)}return new Worker(h)}var i=function(h){h.postMessage||(h=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=h,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){s.implement(this,d),this.$createWorkerFromOldConfig=function(h,f,g,m,v){if(n.nameToUrl&&!n.toUrl&&(n.toUrl=n.nameToUrl),o.get("packaged")||!n.toUrl)m=m||o.moduleUrl(f,"worker");else{var y=this.$normalizePath;m=m||y(n.toUrl("ace/worker/worker.js",null,"_"));var k={};h.forEach(function(C){k[C]=y(n.toUrl(C,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=a(m),v&&this.send("importScripts",v),this.$worker.postMessage({init:!0,tlns:k,module:f,classname:g}),this.$worker},this.onMessage=function(h){var f=h.data;switch(f.type){case"event":this._signal(f.name,{data:f.data});break;case"call":var g=this.callbacks[f.id];g&&(g(f.data),delete this.callbacks[f.id]);break;case"error":this.reportError(f.data);break;case"log":window.console&&console.log&&console.log.apply(console,f.data);break}},this.reportError=function(h){window.console&&console.error&&console.error(h)},this.$normalizePath=function(h){return u.qualifyURL(h)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(h){h.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(h,f){this.$worker.postMessage({command:h,args:f})},this.call=function(h,f,g){if(g){var m=this.callbackId++;this.callbacks[m]=g,f.push(m)}this.send(h,f)},this.emit=function(h,f){try{f.data&&f.data.err&&(f.data.err={message:f.data.err.message,stack:f.data.err.stack,code:f.data.err.code}),this.$worker&&this.$worker.postMessage({event:h,data:{data:f.data}})}catch(g){console.error(g.stack)}},this.attachToDocument=function(h){this.$doc&&this.terminate(),this.$doc=h,this.call("setValue",[h.getValue()]),h.on("change",this.changeListener,!0)},this.changeListener=function(h){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),h.action=="insert"?this.deltaQueue.push(h.start,h.lines):this.deltaQueue.push(h.start,h.end)},this.$sendDeltaQueue=function(){var h=this.deltaQueue;h&&(this.deltaQueue=null,h.length>50&&h.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:h}))}}).call(i.prototype);var c=function(h,f,g){var m=null,v=!1,y=Object.create(d),k=[],C=new i({messageBuffer:k,terminate:function(){},postMessage:function(b){k.push(b),m&&(v?setTimeout(S):S())}});C.setEmitSync=function(b){v=b};var S=function(){var b=k.shift();b.command?m[b.command].apply(m,b.args):b.event&&y._signal(b.event,b.data)};return y.postMessage=function(b){C.onMessage({data:b})},y.callback=function(b,E){this.postMessage({type:"call",id:E,data:b})},y.emit=function(b,E){this.postMessage({type:"event",name:b,data:E})},o.loadModule(["worker",f],function(b){for(m=new b[g](y);k.length;)S()}),C};r.UIWorkerClient=c,r.WorkerClient=i,r.createWorker=a}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(n,r,l){var s=n("./range").Range,u=n("./lib/event_emitter").EventEmitter,d=n("./lib/oop"),o=function(){function p(a,i,c,h,f,g){var m=this;this.length=i,this.session=a,this.doc=a.getDocument(),this.mainClass=f,this.othersClass=g,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=h,this.$onCursorChange=function(){setTimeout(function(){m.onCursorChange()})},this.$pos=c;var v=a.getUndoManager().$undoStack||a.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=v.length,this.setup(),a.selection.on("changeCursor",this.$onCursorChange)}return p.prototype.setup=function(){var a=this,i=this.doc,c=this.session;this.selectionBefore=c.selection.toJSON(),c.selection.inMultiSelectMode&&c.selection.toSingleRange(),this.pos=i.createAnchor(this.$pos.row,this.$pos.column);var h=this.pos;h.$insertRight=!0,h.detach(),h.markerId=c.addMarker(new s(h.row,h.column,h.row,h.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(f){var g=i.createAnchor(f.row,f.column);g.$insertRight=!0,g.detach(),a.others.push(g)}),c.setUndoSelect(!1)},p.prototype.showOtherMarkers=function(){if(!this.othersActive){var a=this.session,i=this;this.othersActive=!0,this.others.forEach(function(c){c.markerId=a.addMarker(new s(c.row,c.column,c.row,c.column+i.length),i.othersClass,null,!1)})}},p.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var a=0;a<this.others.length;a++)this.session.removeMarker(this.others[a].markerId)}},p.prototype.onUpdate=function(a){if(this.$updating)return this.updateAnchors(a);var i=a;if(i.start.row===i.end.row&&i.start.row===this.pos.row){this.$updating=!0;var c=a.action==="insert"?i.end.column-i.start.column:i.start.column-i.end.column,h=i.start.column>=this.pos.column&&i.start.column<=this.pos.column+this.length+1,f=i.start.column-this.pos.column;if(this.updateAnchors(a),h&&(this.length+=c),h&&!this.session.$fromUndo){if(a.action==="insert")for(var g=this.others.length-1;g>=0;g--){var m=this.others[g],v={row:m.row,column:m.column+f};this.doc.insertMergedLines(v,a.lines)}else if(a.action==="remove")for(var g=this.others.length-1;g>=0;g--){var m=this.others[g],v={row:m.row,column:m.column+f};this.doc.remove(new s(v.row,v.column,v.row,v.column-c))}}this.$updating=!1,this.updateMarkers()}},p.prototype.updateAnchors=function(a){this.pos.onChange(a);for(var i=this.others.length;i--;)this.others[i].onChange(a);this.updateMarkers()},p.prototype.updateMarkers=function(){if(!this.$updating){var a=this,i=this.session,c=function(f,g){i.removeMarker(f.markerId),f.markerId=i.addMarker(new s(f.row,f.column,f.row,f.column+a.length),g,null,!1)};c(this.pos,this.mainClass);for(var h=this.others.length;h--;)c(this.others[h],this.othersClass)}},p.prototype.onCursorChange=function(a){if(!(this.$updating||!this.session)){var i=this.session.selection.getCursor();i.row===this.pos.row&&i.column>=this.pos.column&&i.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",a)):(this.hideOtherMarkers(),this._emit("cursorLeave",a))}},p.prototype.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},p.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var a=this.session.getUndoManager(),i=(a.$undoStack||a.$undostack).length-this.$undoStackDepth,c=0;c<i;c++)a.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},p}();d.implement(o.prototype,u),r.PlaceHolder=o}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(n,r,l){var s=n("../lib/event"),u=n("../lib/useragent");function d(p,a){return p.row==a.row&&p.column==a.column}function o(p){var a=p.domEvent,i=a.altKey,c=a.shiftKey,h=a.ctrlKey,f=p.getAccelKey(),g=p.getButton();if(h&&u.isMac&&(g=a.button),p.editor.inMultiSelectMode&&g==2){p.editor.textInput.onContextMenu(p.domEvent);return}if(!h&&!i&&!f){g===0&&p.editor.inMultiSelectMode&&p.editor.exitMultiSelectMode();return}if(g===0){var m=p.editor,v=m.selection,y=m.inMultiSelectMode,k=p.getDocumentPosition(),C=v.getCursor(),S=p.inSelection()||v.isEmpty()&&d(k,C),b=p.x,E=p.y,L=function(W){b=W.clientX,E=W.clientY},x=m.session,M=m.renderer.pixelToScreenCoordinates(b,E),_=M,A;if(m.$mouseHandler.$enableJumpToDef)h&&i||f&&i?A=c?"block":"add":i&&m.$blockSelectEnabled&&(A="block");else if(f&&!i){if(A="add",!y&&c)return}else i&&m.$blockSelectEnabled&&(A="block");if(A&&u.isMac&&a.ctrlKey&&m.$mouseHandler.cancelContextMenu(),A=="add"){if(!y&&S)return;if(!y){var $=v.toOrientedRange();m.addSelectionMarker($)}var w=v.rangeList.rangeAtPoint(k);m.inVirtualSelectionMode=!0,c&&(w=null,$=v.ranges[0]||$,m.removeSelectionMarker($)),m.once("mouseup",function(){var W=v.toOrientedRange();w&&W.isEmpty()&&d(w.cursor,W.cursor)?v.substractPoint(W.cursor):(c?v.substractPoint($.cursor):$&&(m.removeSelectionMarker($),v.addRange($)),v.addRange(W)),m.inVirtualSelectionMode=!1})}else if(A=="block"){p.stop(),m.inVirtualSelectionMode=!0;var R,T=[],O=function(){var W=m.renderer.pixelToScreenCoordinates(b,E),j=x.screenToDocumentPosition(W.row,W.column,W.offsetX);d(_,W)&&d(j,v.lead)||(_=W,m.selection.moveToPosition(j),m.renderer.scrollCursorIntoView(),m.removeSelectionMarkers(T),T=v.rectangularRangeBlock(_,M),m.$mouseHandler.$clickSelection&&T.length==1&&T[0].isEmpty()&&(T[0]=m.$mouseHandler.$clickSelection.clone()),T.forEach(m.addSelectionMarker,m),m.updateSelectionMarkers())};y&&!f?v.toSingleRange():!y&&f&&(R=v.toOrientedRange(),m.addSelectionMarker(R)),c?M=x.documentToScreenPosition(v.lead):v.moveToPosition(k),_={row:-1,column:-1};var I=function(W){O(),clearInterval(P),m.removeSelectionMarkers(T),T.length||(T=[v.toOrientedRange()]),R&&(m.removeSelectionMarker(R),v.toSingleRange(R));for(var j=0;j<T.length;j++)v.addRange(T[j]);m.inVirtualSelectionMode=!1,m.$mouseHandler.$clickSelection=null},N=O;s.capture(m.container,L,I);var P=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,l){r.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(u){u.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(u){u.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(u){u.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(u){u.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(u){u.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(u){u.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(u){u.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(u){u.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(u){u.multiSelect.rangeCount>1?u.multiSelect.joinSelections():u.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(u){u.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(u){u.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(u){u.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],r.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(u){u.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(u){return u&&u.inMultiSelectMode}}];var s=n("../keyboard/hash_handler").HashHandler;r.keyboardHandler=new s(r.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(n,r,l){var s=n("./range_list").RangeList,u=n("./range").Range,d=n("./selection").Selection,o=n("./mouse/multi_select_handler").onMouseDown,p=n("./lib/event"),a=n("./lib/lang"),i=n("./commands/multi_select_commands");r.commands=i.defaultCommands.concat(i.multiSelectCommands);var c=n("./search").Search,h=new c;function f(C,S,b){return h.$options.wrap=!0,h.$options.needle=S,h.$options.backwards=b==-1,h.find(C)}var g=n("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(g.prototype),(function(){this.ranges=null,this.rangeList=null,this.addRange=function(C,S){if(C){if(!this.inMultiSelectMode&&this.rangeCount===0){var b=this.toOrientedRange();if(this.rangeList.add(b),this.rangeList.add(C),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),S||this.fromOrientedRange(C);this.rangeList.removeAll(),this.rangeList.add(b),this.$onAddRange(b)}C.cursor||(C.cursor=C.end);var E=this.rangeList.add(C);return this.$onAddRange(C),E.length&&this.$onRemoveRange(E),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),S||this.fromOrientedRange(C)}},this.toSingleRange=function(C){C=C||this.ranges[0];var S=this.rangeList.removeAll();S.length&&this.$onRemoveRange(S),C&&this.fromOrientedRange(C)},this.substractPoint=function(C){var S=this.rangeList.substractPoint(C);if(S)return this.$onRemoveRange(S),S[0]},this.mergeOverlappingRanges=function(){var C=this.rangeList.merge();C.length&&this.$onRemoveRange(C)},this.$onAddRange=function(C){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(C),this._signal("addRange",{range:C})},this.$onRemoveRange=function(C){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var S=this.rangeList.ranges.pop();C.push(S),this.rangeCount=0}for(var b=C.length;b--;){var E=this.ranges.indexOf(C[b]);this.ranges.splice(E,1)}this._signal("removeRange",{ranges:C}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),S=S||this.ranges[0],S&&!S.isEqual(this.getRange())&&this.fromOrientedRange(S)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new s,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var C=this.ranges.length?this.ranges:[this.getRange()],S=[],b=0;b<C.length;b++){var E=C[b],L=E.start.row,x=E.end.row;if(L===x)S.push(E.clone());else{for(S.push(new u(L,E.start.column,L,this.session.getLine(L).length));++L<x;)S.push(this.getLineRange(L,!0));S.push(new u(x,0,x,E.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 C=this.rangeList.ranges,S=C[C.length-1],b=u.fromPoints(C[0].start,S.end);this.toSingleRange(),this.setSelectionRange(b,S.cursor==S.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var C=this.rangeList.ranges,S=C[C.length-1],b=u.fromPoints(C[0].start,S.end);this.toSingleRange(),this.setSelectionRange(b,S.cursor==S.start)}else{var E=this.session.documentToScreenPosition(this.cursor),L=this.session.documentToScreenPosition(this.anchor),x=this.rectangularRangeBlock(E,L);x.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(C,S,b){var E=[],L=C.column<S.column;if(L)var x=C.column,M=S.column,_=C.offsetX,A=S.offsetX;else var x=S.column,M=C.column,_=S.offsetX,A=C.offsetX;var $=C.row<S.row;if($)var w=C.row,R=S.row;else var w=S.row,R=C.row;x<0&&(x=0),w<0&&(w=0),w==R&&(b=!0);for(var T,O=w;O<=R;O++){var I=u.fromPoints(this.session.screenToDocumentPosition(O,x,_),this.session.screenToDocumentPosition(O,M,A));if(I.isEmpty()){if(T&&v(I.end,T))break;T=I.end}I.cursor=L?I.start:I.end,E.push(I)}if($&&E.reverse(),!b){for(var N=E.length-1;E[N].isEmpty()&&N>0;)N--;if(N>0)for(var P=0;E[P].isEmpty();)P++;for(var W=N;W>=P;W--)E[W].isEmpty()&&E.splice(W,1)}return E}}).call(d.prototype);var m=n("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(C){C.cursor||(C.cursor=C.end);var S=this.getSelectionStyle();return C.marker=this.session.addMarker(C,"ace_selection",S),this.session.$selectionMarkers.push(C),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,C},this.removeSelectionMarker=function(C){if(C.marker){this.session.removeMarker(C.marker);var S=this.session.$selectionMarkers.indexOf(C);S!=-1&&this.session.$selectionMarkers.splice(S,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(C){for(var S=this.session.$selectionMarkers,b=C.length;b--;){var E=C[b];if(E.marker){this.session.removeMarker(E.marker);var L=S.indexOf(E);L!=-1&&S.splice(L,1)}}this.session.selectionMarkerCount=S.length},this.$onAddRange=function(C){this.addSelectionMarker(C.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(C){this.removeSelectionMarkers(C.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(C){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(i.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(C){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(i.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(C){var S=C.command,b=C.editor;if(b.multiSelect){if(S.multiSelectAction)S.multiSelectAction=="forEach"?E=b.forEachSelection(S,C.args):S.multiSelectAction=="forEachLine"?E=b.forEachSelection(S,C.args,!0):S.multiSelectAction=="single"?(b.exitMultiSelectMode(),E=S.exec(b,C.args||{})):E=S.multiSelectAction(b,C.args||{});else{var E=S.exec(b,C.args||{});b.multiSelect.addRange(b.multiSelect.toOrientedRange()),b.multiSelect.mergeOverlappingRanges()}return E}},this.forEachSelection=function(C,S,b){if(!this.inVirtualSelectionMode){var E=b&&b.keepOrder,L=b==!0||b&&b.$byLines,x=this.session,M=this.selection,_=M.rangeList,A=(E?M:_).ranges,$;if(!A.length)return C.exec?C.exec(this,S||{}):C(this,S||{});var w=M._eventRegistry;M._eventRegistry={};var R=new d(x);this.inVirtualSelectionMode=!0;for(var T=A.length;T--;){if(L)for(;T>0&&A[T].start.row==A[T-1].end.row;)T--;R.fromOrientedRange(A[T]),R.index=T,this.selection=x.selection=R;var O=C.exec?C.exec(this,S||{}):C(this,S||{});!$&&O!==void 0&&($=O),R.toOrientedRange(A[T])}R.detach(),this.selection=x.selection=M,this.inVirtualSelectionMode=!1,M._eventRegistry=w,M.mergeOverlappingRanges(),M.ranges[0]&&M.fromOrientedRange(M.ranges[0]);var I=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),I&&I.from==I.to&&this.renderer.animateScrolling(I.from),$}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var C="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var S=this.multiSelect.rangeList.ranges,b=[],E=0;E<S.length;E++)b.push(this.session.getTextRange(S[E]));var L=this.session.getDocument().getNewLineCharacter();C=b.join(L),C.length==(b.length-1)*L.length&&(C="")}else this.selection.isEmpty()||(C=this.session.getTextRange(this.getSelectionRange()));return C},this.$checkMultiselectChange=function(C,S){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var b=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&S==this.multiSelect.anchor)return;var E=S==this.multiSelect.anchor?b.cursor==b.start?b.end:b.start:b.cursor;E.row!=S.row||this.session.$clipPositionToDocument(E.row,E.column).column!=S.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(C,S,b){if(S=S||{},S.needle=C||S.needle,S.needle==null){var E=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();S.needle=this.session.getTextRange(E)}this.$search.set(S);var L=this.$search.findAll(this.session);if(!L.length)return 0;var x=this.multiSelect;b||x.toSingleRange(L[0]);for(var M=L.length;M--;)x.addRange(L[M],!0);return E&&x.rangeList.rangeAtPoint(E.start)&&x.addRange(E,!0),L.length},this.selectMoreLines=function(C,S){var b=this.selection.toOrientedRange(),E=b.cursor==b.end,L=this.session.documentToScreenPosition(b.cursor);this.selection.$desiredColumn&&(L.column=this.selection.$desiredColumn);var x=this.session.screenToDocumentPosition(L.row+C,L.column);if(b.isEmpty())var _=x;else var M=this.session.documentToScreenPosition(E?b.end:b.start),_=this.session.screenToDocumentPosition(M.row+C,M.column);if(E){var A=u.fromPoints(x,_);A.cursor=A.start}else{var A=u.fromPoints(_,x);A.cursor=A.end}if(A.desiredColumn=L.column,!this.selection.inMultiSelectMode)this.selection.addRange(b);else if(S)var $=b.cursor;this.selection.addRange(A),$&&this.selection.substractPoint($)},this.transposeSelections=function(C){for(var S=this.session,b=S.multiSelect,E=b.ranges,L=E.length;L--;){var x=E[L];if(x.isEmpty()){var M=S.getWordRange(x.start.row,x.start.column);x.start.row=M.start.row,x.start.column=M.start.column,x.end.row=M.end.row,x.end.column=M.end.column}}b.mergeOverlappingRanges();for(var _=[],L=E.length;L--;){var x=E[L];_.unshift(S.getTextRange(x))}C<0?_.unshift(_.pop()):_.push(_.shift());for(var L=E.length;L--;){var x=E[L],A=x.clone();S.replace(x,_[L]),x.start.row=A.start.row,x.start.column=A.start.column}b.fromOrientedRange(b.ranges[0])},this.selectMore=function(C,S,b){var E=this.session,L=E.multiSelect,x=L.toOrientedRange();if(!(x.isEmpty()&&(x=E.getWordRange(x.start.row,x.start.column),x.cursor=C==-1?x.start:x.end,this.multiSelect.addRange(x),b))){var M=E.getTextRange(x),_=f(E,M,C);_&&(_.cursor=C==-1?_.start:_.end,this.session.unfold(_),this.multiSelect.addRange(_),this.renderer.scrollCursorIntoView(null,.5)),S&&this.multiSelect.substractPoint(x.cursor)}},this.alignCursors=function(){var C=this.session,S=C.multiSelect,b=S.ranges,E=-1,L=b.filter(function(N){if(N.cursor.row==E)return!0;E=N.cursor.row});if(!b.length||L.length==b.length-1){var x=this.selection.getRange(),M=x.start.row,_=x.end.row,A=M==_;if(A){var $=this.session.getLength(),w;do w=this.session.getLine(_);while(/[=:]/.test(w)&&++_<$);do w=this.session.getLine(M);while(/[=:]/.test(w)&&--M>0);M<0&&(M=0),_>=$&&(_=$-1)}var R=this.session.removeFullLines(M,_);R=this.$reAlignText(R,A),this.session.insert({row:M,column:0},R.join(`
1743
+ `)+`
1744
+ `),A||(x.start.column=0,x.end.column=R[R.length-1].length),this.selection.setRange(x)}else{L.forEach(function(N){S.substractPoint(N.cursor)});var T=0,O=1/0,I=b.map(function(N){var P=N.cursor,W=C.getLine(P.row),j=W.substr(P.column).search(/\S/g);return j==-1&&(j=0),P.column>T&&(T=P.column),j<O&&(O=j),j});b.forEach(function(N,P){var W=N.cursor,j=T-W.column,V=I[P]-O;j>V?C.insert(W,a.stringRepeat(" ",j-V)):C.remove(new u(W.row,W.column,W.row,W.column-j+V)),N.start.column=N.end.column=T,N.start.row=N.end.row=W.row,N.cursor=N.end}),S.fromOrientedRange(b[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(C,S){var b=!0,E=!0,L,x,M;return C.map(function(R){var T=R.match(/(\s*)(.*?)(\s*)([=:].*)/);return T?L==null?(L=T[1].length,x=T[2].length,M=T[3].length,T):(L+x+M!=T[1].length+T[2].length+T[3].length&&(E=!1),L!=T[1].length&&(b=!1),L>T[1].length&&(L=T[1].length),x<T[2].length&&(x=T[2].length),M>T[3].length&&(M=T[3].length),T):[R]}).map(S?A:b?E?$:A:w);function _(R){return a.stringRepeat(" ",R)}function A(R){return R[2]?_(L)+R[2]+_(x-R[2].length+M)+R[4].replace(/^([=:])\s+/,"$1 "):R[0]}function $(R){return R[2]?_(L+x-R[2].length)+R[2]+_(M)+R[4].replace(/^([=:])\s+/,"$1 "):R[0]}function w(R){return R[2]?_(L)+R[2]+_(M)+R[4].replace(/^([=:])\s+/,"$1 "):R[0]}}}).call(m.prototype);function v(C,S){return C.row==S.row&&C.column==S.column}r.onSessionChange=function(C){var S=C.session;S&&!S.multiSelect&&(S.$selectionMarkers=[],S.selection.$initRangeList(),S.multiSelect=S.selection),this.multiSelect=S&&S.multiSelect;var b=C.oldSession;b&&(b.multiSelect.off("addRange",this.$onAddRange),b.multiSelect.off("removeRange",this.$onRemoveRange),b.multiSelect.off("multiSelect",this.$onMultiSelect),b.multiSelect.off("singleSelect",this.$onSingleSelect),b.multiSelect.lead.off("change",this.$checkMultiselectChange),b.multiSelect.anchor.off("change",this.$checkMultiselectChange)),S&&(S.multiSelect.on("addRange",this.$onAddRange),S.multiSelect.on("removeRange",this.$onRemoveRange),S.multiSelect.on("multiSelect",this.$onMultiSelect),S.multiSelect.on("singleSelect",this.$onSingleSelect),S.multiSelect.lead.on("change",this.$checkMultiselectChange),S.multiSelect.anchor.on("change",this.$checkMultiselectChange)),S&&this.inMultiSelectMode!=S.selection.inMultiSelectMode&&(S.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function y(C){C.$multiselectOnSessionChange||(C.$onAddRange=C.$onAddRange.bind(C),C.$onRemoveRange=C.$onRemoveRange.bind(C),C.$onMultiSelect=C.$onMultiSelect.bind(C),C.$onSingleSelect=C.$onSingleSelect.bind(C),C.$multiselectOnSessionChange=r.onSessionChange.bind(C),C.$checkMultiselectChange=C.$checkMultiselectChange.bind(C),C.$multiselectOnSessionChange(C),C.on("changeSession",C.$multiselectOnSessionChange),C.on("mousedown",o),C.commands.addCommands(i.defaultCommands),k(C))}function k(C){if(!C.textInput)return;var S=C.textInput.getElement(),b=!1;p.addListener(S,"keydown",function(L){var x=L.keyCode==18&&!(L.ctrlKey||L.shiftKey||L.metaKey);C.$blockSelectEnabled&&x?b||(C.renderer.setMouseCursor("crosshair"),b=!0):b&&E()},C),p.addListener(S,"keyup",E,C),p.addListener(S,"blur",E,C);function E(L){b&&(C.renderer.setMouseCursor(""),b=!1)}}r.MultiSelect=y,n("./config").defineOptions(m.prototype,"editor",{enableMultiselect:{set:function(C){y(this),C?this.on("mousedown",o):this.off("mousedown",o)},value:!0},enableBlockSelect:{set:function(C){this.$blockSelectEnabled=C},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(n,r,l){var s=n("../../range").Range,u=r.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(d,o,p){var a=d.getLine(p);return this.foldingStartMarker.test(a)?"start":o=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(a)?"end":""},this.getFoldWidgetRange=function(d,o,p){return null},this.indentationBlock=function(d,o,p){var a=/\S/,i=d.getLine(o),c=i.search(a);if(c!=-1){for(var h=p||i.length,f=d.getLength(),g=o,m=o;++o<f;){var v=d.getLine(o).search(a);if(v!=-1){if(v<=c){var y=d.getTokenAt(o,0);if(!y||y.type!=="string")break}m=o}}if(m>g){var k=d.getLine(m).length;return new s(g,h,m,k)}}},this.openingBracketBlock=function(d,o,p,a,i){var c={row:p,column:a+1},h=d.$findClosingBracket(o,c,i);if(h){var f=d.foldWidgets[h.row];return f==null&&(f=d.getFoldWidget(h.row)),f=="start"&&h.row>c.row&&(h.row--,h.column=d.getLine(h.row).length),s.fromPoints(c,h)}},this.closingBracketBlock=function(d,o,p,a,i){var c={row:p,column:a},h=d.$findOpeningBracket(o,c);if(h)return h.column++,c.column--,s.fromPoints(h,c)}}).call(u.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range","ace/config"],function(n,r,l){var s=n("../line_widgets").LineWidgets,u=n("../lib/dom"),d=n("../range").Range,o=n("../config").nls;function p(i,c,h){for(var f=0,g=i.length-1;f<=g;){var m=f+g>>1,v=h(c,i[m]);if(v>0)f=m+1;else if(v<0)g=m-1;else return m}return-(f+1)}function a(i,c,h){var f=i.getAnnotations().sort(d.comparePoints);if(f.length){var g=p(f,{row:c,column:-1},d.comparePoints);g<0&&(g=-g-1),g>=f.length?g=h>0?0:f.length-1:g===0&&h<0&&(g=f.length-1);var m=f[g];if(!(!m||!h)){if(m.row===c){do m=f[g+=h];while(m&&m.row===c);if(!m)return f.slice()}var v=[];c=m.row;do v[h<0?"unshift":"push"](m),m=f[g+=h];while(m&&m.row==c);return v.length&&v}}}r.showErrorMarker=function(i,c){var h=i.session;h.widgetManager||(h.widgetManager=new s(h),h.widgetManager.attach(i));var f=i.getCursorPosition(),g=f.row,m=h.widgetManager.getWidgetsAtRow(g).filter(function(x){return x.type=="errorMarker"})[0];m?m.destroy():g-=c;var v=a(h,g,c),y;if(v){var k=v[0];f.column=(k.pos&&typeof k.column!="number"?k.pos.sc:k.column)||0,f.row=k.row,y=i.renderer.$gutterLayer.$annotations[f.row]}else{if(m)return;y={text:[o("Looks good!")],className:"ace_ok"}}i.session.unfold(f.row),i.selection.moveToPosition(f);var C={row:f.row,fixedWidth:!0,coverGutter:!0,el:u.createElement("div"),type:"errorMarker"},S=C.el.appendChild(u.createElement("div")),b=C.el.appendChild(u.createElement("div"));b.className="error_widget_arrow "+y.className;var E=i.renderer.$cursorLayer.getPixelPosition(f).left;b.style.left=E+i.renderer.gutterWidth-5+"px",C.el.className="error_widget_wrapper",S.className="error_widget "+y.className,S.innerHTML=y.text.join("<br>"),S.appendChild(u.createElement("div"));var L=function(x,M,_){if(M===0&&(_==="esc"||_==="return"))return C.destroy(),{command:"null"}};C.destroy=function(){i.$mouseHandler.isMousePressed||(i.keyBinding.removeKeyboardHandler(L),h.widgetManager.removeLineWidget(C),i.off("changeSelection",C.destroy),i.off("changeSession",C.destroy),i.off("mouseup",C.destroy),i.off("change",C.destroy))},i.keyBinding.addKeyboardHandler(L),i.on("changeSelection",C.destroy),i.on("changeSession",C.destroy),i.on("mouseup",C.destroy),i.on("change",C.destroy),i.session.widgetManager.addLineWidget(C),C.el.onmousedown=i.focus.bind(i),i.renderer.scrollCursorIntoView(null,.5,{bottom:C.el.offsetHeight})},u.importCssString(`
1745
+ .error_widget_wrapper {
1746
+ background: inherit;
1747
+ color: inherit;
1748
+ border:none
1749
+ }
1750
+ .error_widget {
1751
+ border-top: solid 2px;
1752
+ border-bottom: solid 2px;
1753
+ margin: 5px 0;
1754
+ padding: 10px 40px;
1755
+ white-space: pre-wrap;
1756
+ }
1757
+ .error_widget.ace_error, .error_widget_arrow.ace_error{
1758
+ border-color: #ff5a5a
1759
+ }
1760
+ .error_widget.ace_warning, .error_widget_arrow.ace_warning{
1761
+ border-color: #F1D817
1762
+ }
1763
+ .error_widget.ace_info, .error_widget_arrow.ace_info{
1764
+ border-color: #5a5a5a
1765
+ }
1766
+ .error_widget.ace_ok, .error_widget_arrow.ace_ok{
1767
+ border-color: #5aaa5a
1768
+ }
1769
+ .error_widget_arrow {
1770
+ position: absolute;
1771
+ border: solid 5px;
1772
+ border-top-color: transparent!important;
1773
+ border-right-color: transparent!important;
1774
+ border-left-color: transparent!important;
1775
+ top: -5px;
1776
+ }
1777
+ `,"error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],function(n,r,l){n("./loader_build")(r);var s=n("./lib/dom"),u=n("./range").Range,d=n("./editor").Editor,o=n("./edit_session").EditSession,p=n("./undomanager").UndoManager,a=n("./virtual_renderer").VirtualRenderer;n("./worker/worker_client"),n("./keyboard/hash_handler"),n("./placeholder"),n("./multi_select"),n("./mode/folding/fold_mode"),n("./theme/textmate"),n("./ext/error_marker"),r.config=n("./config"),r.edit=function(i,c){if(typeof i=="string"){var h=i;if(i=document.getElementById(h),!i)throw new Error("ace.edit can't find div #"+h)}if(i&&i.env&&i.env.editor instanceof d)return i.env.editor;var f="";if(i&&/input|textarea/i.test(i.tagName)){var g=i;f=g.value,i=s.createElement("pre"),g.parentNode.replaceChild(i,g)}else i&&(f=i.textContent,i.innerHTML="");var m=r.createEditSession(f),v=new d(new a(i),m,c),y={document:m,editor:v,onResize:v.resize.bind(v,null)};return g&&(y.textarea=g),v.on("destroy",function(){y.editor.container.env=null}),v.container.env=v.env=y,v},r.createEditSession=function(i,c){var h=new o(i,c);return h.setUndoManager(new p),h},r.Range=u,r.Editor=d,r.EditSession=o,r.UndoManager=p,r.VirtualRenderer=a,r.version=r.config.version}),function(){ace.require(["ace/ace"],function(n){n&&(n.config.init(!0),n.define=ace.define);var r=function(){return this}();!r&&typeof window<"u"&&(r=window),!r&&typeof self<"u"&&(r=self),r.ace||(r.ace=n);for(var l in n)n.hasOwnProperty(l)&&(r.ace[l]=n[l]);r.ace.default=r.ace,e&&(e.exports=r.ace)})}()})(Vg);var ST=Vg.exports;const Zc=Tr(ST),CT="/assets/mode-yaml-ELgwiJiP.js",AT="data:text/javascript;base64,YWNlLmRlZmluZSgiYWNlL3RoZW1lL21vbm9rYWktY3NzIixbInJlcXVpcmUiLCJleHBvcnRzIiwibW9kdWxlIl0sZnVuY3Rpb24oZSx0LG4pe24uZXhwb3J0cz0iLmFjZS1tb25va2FpIC5hY2VfZ3V0dGVyIHtcbiAgYmFja2dyb3VuZDogIzJGMzEyOTtcbiAgY29sb3I6ICM4RjkwOEFcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfcHJpbnQtbWFyZ2luIHtcbiAgd2lkdGg6IDFweDtcbiAgYmFja2dyb3VuZDogIzU1NTY1MVxufVxuXG4uYWNlLW1vbm9rYWkge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjcyODIyO1xuICBjb2xvcjogI0Y4RjhGMlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9jdXJzb3Ige1xuICBjb2xvcjogI0Y4RjhGMFxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9zZWxlY3Rpb24ge1xuICBiYWNrZ3JvdW5kOiAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaS5hY2VfbXVsdGlzZWxlY3QgLmFjZV9zZWxlY3Rpb24uYWNlX3N0YXJ0IHtcbiAgYm94LXNoYWRvdzogMCAwIDNweCAwcHggIzI3MjgyMjtcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfbWFya2VyLWxheWVyIC5hY2Vfc3RlcCB7XG4gIGJhY2tncm91bmQ6IHJnYigxMDIsIDgyLCAwKVxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9icmFja2V0IHtcbiAgbWFyZ2luOiAtMXB4IDAgMCAtMXB4O1xuICBib3JkZXI6IDFweCBzb2xpZCAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX21hcmtlci1sYXllciAuYWNlX2FjdGl2ZS1saW5lIHtcbiAgYmFja2dyb3VuZDogIzIwMjAyMFxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9ndXR0ZXItYWN0aXZlLWxpbmUge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjcyNzI3XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX21hcmtlci1sYXllciAuYWNlX3NlbGVjdGVkLXdvcmQge1xuICBib3JkZXI6IDFweCBzb2xpZCAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2ludmlzaWJsZSB7XG4gIGNvbG9yOiAjNTI1MjRkXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2VudGl0eS5hY2VfbmFtZS5hY2VfdGFnLFxuLmFjZS1tb25va2FpIC5hY2Vfa2V5d29yZCxcbi5hY2UtbW9ub2thaSAuYWNlX21ldGEuYWNlX3RhZyxcbi5hY2UtbW9ub2thaSAuYWNlX3N0b3JhZ2Uge1xuICBjb2xvcjogI0Y5MjY3MlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9wdW5jdHVhdGlvbixcbi5hY2UtbW9ub2thaSAuYWNlX3B1bmN0dWF0aW9uLmFjZV90YWcge1xuICBjb2xvcjogI2ZmZlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9jb25zdGFudC5hY2VfY2hhcmFjdGVyLFxuLmFjZS1tb25va2FpIC5hY2VfY29uc3RhbnQuYWNlX2xhbmd1YWdlLFxuLmFjZS1tb25va2FpIC5hY2VfY29uc3RhbnQuYWNlX251bWVyaWMsXG4uYWNlLW1vbm9rYWkgLmFjZV9jb25zdGFudC5hY2Vfb3RoZXIge1xuICBjb2xvcjogI0FFODFGRlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9pbnZhbGlkIHtcbiAgY29sb3I6ICNGOEY4RjA7XG4gIGJhY2tncm91bmQtY29sb3I6ICNGOTI2NzJcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfaW52YWxpZC5hY2VfZGVwcmVjYXRlZCB7XG4gIGNvbG9yOiAjRjhGOEYwO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjQUU4MUZGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N1cHBvcnQuYWNlX2NvbnN0YW50LFxuLmFjZS1tb25va2FpIC5hY2Vfc3VwcG9ydC5hY2VfZnVuY3Rpb24ge1xuICBjb2xvcjogIzY2RDlFRlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9mb2xkIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI0E2RTIyRTtcbiAgYm9yZGVyLWNvbG9yOiAjRjhGOEYyXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N0b3JhZ2UuYWNlX3R5cGUsXG4uYWNlLW1vbm9rYWkgLmFjZV9zdXBwb3J0LmFjZV9jbGFzcyxcbi5hY2UtbW9ub2thaSAuYWNlX3N1cHBvcnQuYWNlX3R5cGUge1xuICBmb250LXN0eWxlOiBpdGFsaWM7XG4gIGNvbG9yOiAjNjZEOUVGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2VudGl0eS5hY2VfbmFtZS5hY2VfZnVuY3Rpb24sXG4uYWNlLW1vbm9rYWkgLmFjZV9lbnRpdHkuYWNlX290aGVyLFxuLmFjZS1tb25va2FpIC5hY2VfZW50aXR5LmFjZV9vdGhlci5hY2VfYXR0cmlidXRlLW5hbWUsXG4uYWNlLW1vbm9rYWkgLmFjZV92YXJpYWJsZSB7XG4gIGNvbG9yOiAjQTZFMjJFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3ZhcmlhYmxlLmFjZV9wYXJhbWV0ZXIge1xuICBmb250LXN0eWxlOiBpdGFsaWM7XG4gIGNvbG9yOiAjRkQ5NzFGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N0cmluZyB7XG4gIGNvbG9yOiAjRTZEQjc0XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2NvbW1lbnQge1xuICBjb2xvcjogIzc1NzE1RVxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9pbmRlbnQtZ3VpZGUge1xuICBiYWNrZ3JvdW5kOiB1cmwoZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFBRUFBQUFDQ0FZQUFBQ1pnYlluQUFBQUVrbEVRVlFJbVdQUTBGRDBaWEJ6ZC93UEFBalZBb3hlU2dOZUFBQUFBRWxGVGtTdVFtQ0MpIHJpZ2h0IHJlcGVhdC15XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2luZGVudC1ndWlkZS1hY3RpdmUge1xuICBiYWNrZ3JvdW5kOiB1cmwoZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFBRUFBQUFDQ0FZQUFBQ1pnYlluQUFBQUVrbEVRVlFJVzJQUTFkWDl6ekJ6NXN6L0FCQ2NCRkZlbnRMbEFBQUFBRWxGVGtTdVFtQ0MpIHJpZ2h0IHJlcGVhdC15O1xufVxuIn0pLGFjZS5kZWZpbmUoImFjZS90aGVtZS9tb25va2FpIixbInJlcXVpcmUiLCJleHBvcnRzIiwibW9kdWxlIiwiYWNlL3RoZW1lL21vbm9rYWktY3NzIiwiYWNlL2xpYi9kb20iXSxmdW5jdGlvbihlLHQsbil7dC5pc0Rhcms9ITAsdC5jc3NDbGFzcz0iYWNlLW1vbm9rYWkiLHQuY3NzVGV4dD1lKCIuL21vbm9rYWktY3NzIik7dmFyIHI9ZSgiLi4vbGliL2RvbSIpO3IuaW1wb3J0Q3NzU3RyaW5nKHQuY3NzVGV4dCx0LmNzc0NsYXNzLCExKX0pOyAgICAgICAgICAgICAgICAoZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICAgICAgYWNlLnJlcXVpcmUoWyJhY2UvdGhlbWUvbW9ub2thaSJdLCBmdW5jdGlvbihtKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0eXBlb2YgbW9kdWxlID09ICJvYmplY3QiICYmIHR5cGVvZiBleHBvcnRzID09ICJvYmplY3QiICYmIG1vZHVsZSkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgbW9kdWxlLmV4cG9ydHMgPSBtOwogICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgICB9KSgpOwogICAgICAgICAgICA=";Zc.config.setModuleUrl("ace/mode/yaml",CT);Zc.config.setModuleUrl("ace/theme/monokai",AT);var zg=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(l,s){return l[0]===n?(r=s,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),l=this.__entries__[r];return l&&l[1]},t.prototype.set=function(n,r){var l=e(this.__entries__,n);~l?this.__entries__[l][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,l=e(r,n);~l&&r.splice(l,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var l=0,s=this.__entries__;l<s.length;l++){var u=s[l];n.call(r,u[1],u[0])}},t}()}(),jl=typeof window<"u"&&typeof document<"u"&&window.document===document,Mo=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")()}(),kT=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Mo):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),xT=2;function ET(e,t){var n=!1,r=!1,l=0;function s(){n&&(n=!1,e()),r&&d()}function u(){kT(s)}function d(){var o=Date.now();if(n){if(o-l<xT)return;r=!0}else n=!0,r=!1,setTimeout(u,t);l=o}return d}var RT=20,TT=["top","right","bottom","left","width","height","size","weight"],LT=typeof MutationObserver<"u",MT=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=ET(this.refresh.bind(this),RT)}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(){!jl||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),LT?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!jl||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,l=TT.some(function(s){return!!~r.indexOf(s)});l&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),jg=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var l=r[n];Object.defineProperty(e,l,{value:t[l],enumerable:!1,writable:!1,configurable:!0})}return e},si=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Mo},Gg=Sa(0,0,0,0);function Oo(e){return parseFloat(e)||0}function Kh(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,l){var s=e["border-"+l+"-width"];return r+Oo(s)},0)}function OT(e){for(var t=["top","right","bottom","left"],n={},r=0,l=t;r<l.length;r++){var s=l[r],u=e["padding-"+s];n[s]=Oo(u)}return n}function IT(e){var t=e.getBBox();return Sa(0,0,t.width,t.height)}function NT(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Gg;var r=si(e).getComputedStyle(e),l=OT(r),s=l.left+l.right,u=l.top+l.bottom,d=Oo(r.width),o=Oo(r.height);if(r.boxSizing==="border-box"&&(Math.round(d+s)!==t&&(d-=Kh(r,"left","right")+s),Math.round(o+u)!==n&&(o-=Kh(r,"top","bottom")+u)),!FT(e)){var p=Math.round(d+s)-t,a=Math.round(o+u)-n;Math.abs(p)!==1&&(d-=p),Math.abs(a)!==1&&(o-=a)}return Sa(l.left,l.top,d,o)}var DT=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof si(e).SVGGraphicsElement}:function(e){return e instanceof si(e).SVGElement&&typeof e.getBBox=="function"}}();function FT(e){return e===si(e).document.documentElement}function PT(e){return jl?DT(e)?IT(e):NT(e):Gg}function BT(e){var t=e.x,n=e.y,r=e.width,l=e.height,s=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,u=Object.create(s.prototype);return jg(u,{x:t,y:n,width:r,height:l,top:n,right:t+r,bottom:l+n,left:t}),u}function Sa(e,t,n,r){return{x:e,y:t,width:n,height:r}}var WT=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Sa(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=PT(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}(),HT=function(){function e(t,n){var r=BT(n);jg(this,{target:t,contentRect:r})}return e}(),UT=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new zg,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 si(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new WT(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof si(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new HT(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Kg=typeof WeakMap<"u"?new WeakMap:new zg,Yg=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=MT.getInstance(),r=new UT(t,n,this);Kg.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Yg.prototype[e]=function(){var t;return(t=Kg.get(this))[e].apply(t,arguments)}});var VT=function(){return typeof Mo.ResizeObserver<"u"?Mo.ResizeObserver:Yg}();const Yh=["blur","input","change","changeSelectionStyle","changeSession","copy","focus","paste"],Zg=Ce({name:"VAceEditor",props:{value:{type:String,required:!0},lang:{type:String,default:"text"},theme:{type:String,default:"chrome"},options:Object,placeholder:String,readonly:Boolean,wrap:Boolean,printMargin:{type:[Boolean,Number],default:!0},minLines:Number,maxLines:Number},emits:["update:value","init",...Yh],render(){return di("div")},mounted(){const e=this._editor=jo(Zc.edit(this.$el,{placeholder:this.placeholder,readOnly:this.readonly,value:this.value,mode:"ace/mode/"+this.lang,theme:"ace/theme/"+this.theme,wrap:this.wrap,printMargin:this.printMargin,useWorker:!1,minLines:this.minLines,maxLines:this.maxLines,...this.options}));this._contentBackup=this.value,this._isSettingContent=!1,e.on("change",()=>{if(this._isSettingContent)return;const t=e.getValue();this._contentBackup=t,this.$emit("update:value",t)}),Yh.forEach(t=>{const n="on"+li(t);typeof this.$.vnode.props[n]=="function"&&e.on(t,this.$emit.bind(this,t))}),this._ro=new VT(()=>e.resize()),this._ro.observe(this.$el),this.$emit("init",e)},beforeUnmount(){var e,t;(e=this._ro)===null||e===void 0||e.disconnect(),(t=this._editor)===null||t===void 0||t.destroy()},methods:{focus(){this._editor.focus()},blur(){this._editor.blur()},selectAll(){this._editor.selectAll()},getAceInstance(){return this._editor}},watch:{value(e){if(this._contentBackup!==e){try{this._isSettingContent=!0,this._editor.setValue(e,1)}finally{this._isSettingContent=!1}this._contentBackup=e}},theme(e){this._editor.setTheme("ace/theme/"+e)},options(e){this._editor.setOptions(e)},readonly(e){this._editor.setReadOnly(e)},placeholder(e){this._editor.setOption("placeholder",e)},wrap(e){this._editor.setWrapBehavioursEnabled(e)},printMargin(e){this._editor.setOption("printMargin",e)},lang(e){this._editor.setOption("mode","ace/mode/"+e)},minLines(e){this._editor.setOption("minLines",e)},maxLines(e){this._editor.setOption("maxLines",e)}}}),zT=Ce({name:"RuleInputForm",components:{VAceEditor:Zg},props:{yaml:{type:String,required:!0}},emits:["update-yaml"],setup(e,t){const n=Ko(e,"yaml");return sd(()=>{t.emit("update-yaml",n.value)}),{yamlInput:n}}}),jT={class:"block"};function GT(e,t,n,r,l,s){const u=re("VAceEditor");return Z(),se("div",jT,[oe(u,{class:"vue-ace-editor",value:e.yamlInput,"onUpdate:value":t[0]||(t[0]=d=>e.yamlInput=d),lang:"yaml",theme:"monokai",options:{fontSize:16,minLines:6,maxLines:1e4}},null,8,["value"])])}const Xg=Re(zT,[["render",GT]]),KT=Ce({name:"EditRule",components:{InputForm:Xg,ErrorMessage:bt},props:{rule:{type:Object,required:!0}},setup(e){const t=pi(),n=Ko(e.rule.yaml),r=gC();return{edit:async()=>{const u=await r.perform({yaml:n.value});t.push({name:"Rule",params:{id:u.id}})},yaml:n,updateYAML:u=>{n.value=u},updateRuleTask:r}}}),YT={class:"block"},ZT={class:"is-size-2 block"},XT={class:"field is-grouped is-grouped-centered"},qT={class:"control"},QT={class:"icon is-small"},JT=D("span",null,"Edit",-1),eL={key:0,class:"block"},tL=D("hr",null,null,-1);function nL(e,t,n,r,l,s){var p,a;const u=re("InputForm"),d=re("font-awesome-icon"),o=re("ErrorMessage");return Z(),se(Ne,null,[D("div",YT,[D("h2",ZT,"Edit rule: "+$e(e.rule.id),1),oe(u,{yaml:e.yaml,"onUpdate:yaml":t[0]||(t[0]=i=>e.yaml=i),onUpdateYaml:e.updateYAML},null,8,["yaml","onUpdateYaml"]),D("div",XT,[D("p",qT,[D("a",{class:"button is-primary",onClick:t[1]||(t[1]=(...i)=>e.edit&&e.edit(...i))},[D("span",QT,[oe(d,{icon:"edit"})]),JT])])])]),(p=e.updateRuleTask.last)!=null&&p.error?(Z(),se("div",eL,[tL,oe(o,{error:(a=e.updateRuleTask.last)==null?void 0:a.error},null,8,["error"])])):me("",!0)],64)}const rL=Re(KT,[["render",nL]]),iL=Ce({name:"EditRuleWrapper",components:{EditRule:rL,Loading:Rn,ErrorMessage:bt},props:{id:{type:String,required:!0}},setup(e){const t=bg(),n=async()=>{await t.perform(e.id)};return lt(async()=>{await n()}),st(e,async()=>{await n()}),{getRuleTask:t}}});function sL(e,t,n,r,l,s){var p,a;const u=re("Loading"),d=re("ErrorMessage"),o=re("EditRule");return Z(),se(Ne,null,[e.getRuleTask.isRunning?(Z(),Se(u,{key:0})):me("",!0),e.getRuleTask.isError?(Z(),Se(d,{key:1,error:(p=e.getRuleTask.last)==null?void 0:p.error},null,8,["error"])):me("",!0),(a=e.getRuleTask.last)!=null&&a.value?(Z(),Se(o,{key:2,rule:e.getRuleTask.last.value},null,8,["rule"])):me("",!0)],64)}const oL=Re(iL,[["render",sL]]),aL=Ce({name:"EditRuleView",components:{EditRule:oL},props:{id:{type:String,required:!0}},setup(e){const t=()=>{En(`Edit rule:${e.id} - Mihari`)};lt(()=>{t()}),st(()=>e.id,()=>{t()})}});function lL(e,t,n,r,l,s){const u=re("EditRule",!0);return Z(),Se(u,{id:e.id},null,8,["id"])}const cL=Re(aL,[["render",lL]]);function uL(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Array.from(typeof e=="string"?[e]:e);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,"");var l=r.reduce(function(d,o){var p=o.match(/\n([\t ]+|(?!\s).)/g);return p?d.concat(p.map(function(a){var i,c;return(c=(i=a.match(/[\t ]/g))===null||i===void 0?void 0:i.length)!==null&&c!==void 0?c:0})):d},[]);if(l.length){var s=new RegExp(`
1778
+ [ ]{`+Math.min.apply(Math,l)+"}","g");r=r.map(function(d){return d.replace(s,`
1779
+ `)})}r[0]=r[0].replace(/^\r?\n/,"");var u=r[0];return t.forEach(function(d,o){var p=u.match(/(?:^|\n)( *)$/),a=p?p[1]:"",i=d;typeof d=="string"&&d.includes(`
1780
+ `)&&(i=String(d).split(`
1781
+ `).map(function(c,h){return h===0?c:""+a+c}).join(`
1782
+ `)),u+=i+r[o+1]}),u}var Ys,hL=new Uint8Array(16);function fL(){if(!Ys&&(Ys=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Ys))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ys(hL)}const dL=/^(?:[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 pL(e){return typeof e=="string"&&dL.test(e)}var gt=[];for(var Za=0;Za<256;++Za)gt.push((Za+256).toString(16).substr(1));function gL(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(!pL(n))throw TypeError("Stringified UUID is invalid");return n}function mL(e,t,n){e=e||{};var r=e.random||(e.rng||fL)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(var l=0;l<16;++l)t[n+l]=r[l];return t}return gL(r)}function vL(){const e=mL(),t=mi();return uL`---
1783
+ id: ${e}
1784
+ title: Title goes here
1785
+ description: Description goes here
1786
+ created_on: ${t.format("YYYY-MM-DD")}
1787
+ queries: []`}const yL=Ce({name:"NewRule",components:{InputForm:Xg,ErrorMessage:bt},setup(){const e=pi(),t=ze(vL()),n=pC();return{yaml:t,create:async()=>{const s=await n.perform({yaml:t.value});e.push({name:"Rule",params:{id:s.id}})},updateYAML:s=>{t.value=s},createRuleTask:n}}}),bL={class:"block"},wL=D("h2",{class:"is-size-2 block"},"New rule",-1),_L={class:"field is-grouped is-grouped-centered"},$L={class:"control"},SL={class:"icon is-small"},CL=D("span",null,"Create",-1),AL={key:0,class:"block"},kL=D("hr",null,null,-1);function xL(e,t,n,r,l,s){var p,a;const u=re("InputForm"),d=re("font-awesome-icon"),o=re("ErrorMessage");return Z(),se(Ne,null,[D("div",bL,[wL,oe(u,{yaml:e.yaml,"onUpdate:yaml":t[0]||(t[0]=i=>e.yaml=i),onUpdateYaml:e.updateYAML},null,8,["yaml","onUpdateYaml"]),D("div",_L,[D("p",$L,[D("a",{class:"button is-primary",onClick:t[1]||(t[1]=(...i)=>e.create&&e.create(...i))},[D("span",SL,[oe(d,{icon:"plus"})]),CL])])])]),(p=e.createRuleTask.last)!=null&&p.error?(Z(),se("div",AL,[kL,oe(o,{error:(a=e.createRuleTask.last)==null?void 0:a.error},null,8,["error"])])):me("",!0)],64)}const EL=Re(yL,[["render",xL]]),RL=Ce({name:"NewRuleView",components:{NewRule:EL},setup(){const e=()=>{En("New rule - Mihari")};lt(()=>{e()})}});function TL(e,t,n,r,l,s){const u=re("NewRule",!0);return Z(),Se(u)}const LL=Re(RL,[["render",TL]]),ML=Ce({name:"RuleActionButtons",props:{rule:{type:Object,required:!0}},emits:["set-message","set-error","delete"],setup(e,t){const n=Le(()=>`/api/rules/${e.rule.id}`),r=Le(()=>`rule.id:"${e.rule.id}"`),l=fC(),s=dC(),u=Ss(),d=zc(),o=async()=>{if(window.confirm(`Are you sure you want to delete ${e.rule.id}?`))try{await l.perform(e.rule.id),t.emit("delete")}catch(i){tt.isAxiosError(i)&&t.emit("set-error")}},p=async()=>{try{const a=await s.perform(e.rule.id);t.emit("set-message",a)}catch(a){tt.isAxiosError(a)&&t.emit("set-error",a)}};return lt(()=>{u.perform({q:r.value,page:1,limit:0}),d.perform({q:r.value,page:1,limit:0})}),{deleteRule:o,searchRule:p,searchRuleTask:s,href:n,getAlertsTask:u,getArtifactsTask:d,q:r}}}),OL={class:"buttons is-pulled-right"},IL=D("span",null,"Alerts:",-1),NL=D("span",null,"Artifacts:",-1),DL=["href"],FL=D("span",null,"JSON",-1),PL={class:"icon is-small"},BL=D("span",null,"Search",-1),WL={class:"icon is-small"},HL=D("span",null,"Edit",-1),UL={class:"icon is-small"},VL=D("span",null,"Delete",-1),zL={class:"icon is-small"};function jL(e,t,n,r,l,s){const u=re("router-link"),d=re("font-awesome-icon");return Z(),se("span",OL,[oe(u,{class:"button is-warning is-small is-rounded",to:{name:"Alerts",query:{q:e.q}}},{default:Je(()=>{var o,p;return[IL,D("span",null,$e((p=(o=e.getAlertsTask.last)==null?void 0:o.value)==null?void 0:p.total),1)]}),_:1},8,["to"]),oe(u,{class:"button is-success is-small is-rounded",to:{name:"Artifacts",query:{q:e.q}}},{default:Je(()=>{var o,p;return[NL,D("span",null,$e((p=(o=e.getArtifactsTask.last)==null?void 0:o.value)==null?void 0:p.total),1)]}),_:1},8,["to"]),D("a",{class:"button is-link is-light is-small",href:e.href,target:"_blank"},[FL,D("span",PL,[oe(d,{icon:"barcode"})])],8,DL),D("button",{class:"button is-primary is-light is-small",onClick:t[0]||(t[0]=(...o)=>e.searchRule&&e.searchRule(...o))},[BL,D("span",WL,[e.searchRuleTask.isRunning?(Z(),Se(d,{key:0,icon:"spinner",spin:""})):(Z(),Se(d,{key:1,icon:"magnifying-glass"}))])]),oe(u,{class:"button is-info is-light is-small",to:{name:"EditRule",params:{id:e.rule.id}}},{default:Je(()=>[HL,D("span",UL,[oe(d,{icon:"edit"})])]),_:1},8,["to"]),D("button",{class:"button is-light is-small",onClick:t[1]||(t[1]=(...o)=>e.deleteRule&&e.deleteRule(...o))},[VL,D("span",zL,[oe(d,{icon:"times"})])])])}const qg=Re(ML,[["render",jL]]),GL=Ce({name:"YAML",components:{VAceEditor:Zg},props:{yaml:{type:String,required:!0}},setup(){}}),KL={class:"block"};function YL(e,t,n,r,l,s){const u=re("VAceEditor");return Z(),se("div",KL,[oe(u,{class:"vue-ace-editor",value:e.yaml,lang:"yaml",theme:"monokai",options:{readOnly:!0,fontSize:16,maxLines:1e4,minLines:6}},null,8,["value"])])}const ZL=Re(GL,[["render",YL]]),XL=Ce({name:"RuleDetailItem",props:{rule:{type:Object,required:!0}},components:{YAML:ZL,Alerts:Og,ErrorMessage:bt,Message:$a,ActionButtons:qg},emits:["delete","refresh"],setup(e,t){const n=ze(),r=ze();return{onSetMessage:a=>{a.queued?r.value=a:t.emit("refresh")},onDisposeMessage:()=>{r.value=void 0},message:r,onSetError:a=>{n.value=a},error:n,onDisposeError:()=>{n.value=void 0},onDelete:()=>{t.emit("delete")},onRefresh:()=>{t.emit("refresh")}}}}),qL={class:"block"},QL={class:"is-size-2 block"},JL={class:"block is-clearfix"},eM=D("hr",null,null,-1),tM={class:"block"},nM=D("h2",{class:"is-size-2 block"},"Alerts",-1);function rM(e,t,n,r,l,s){const u=re("ErrorMessage"),d=re("Message"),o=re("ActionButtons"),p=re("YAML"),a=re("Alerts");return Z(),se(Ne,null,[D("div",qL,[D("h2",QL,$e(e.rule.id),1),e.error?(Z(),Se(u,{key:0,class:"mt-3 mb-3",error:e.error,disposable:!0,onDispose:e.onDisposeError},null,8,["error","onDispose"])):me("",!0),e.message?(Z(),Se(d,{key:1,class:"block",message:e.message,disposable:!0,onDispose:e.onDisposeMessage},null,8,["message","onDispose"])):me("",!0),D("p",JL,[oe(o,{rule:e.rule,onSetMessage:e.onSetMessage,onDelete:e.onDelete,onSetError:e.onSetError},null,8,["rule","onSetMessage","onDelete","onSetError"])]),oe(p,{yaml:e.rule.yaml},null,8,["yaml"])]),eM,D("div",tM,[nM,oe(a,{ruleId:e.rule.id},null,8,["ruleId"])])],64)}const iM=Re(XL,[["render",rM]]),sM=Ce({name:"RuleDetailWrapper",components:{Rule:iM,Loading:Rn,ErrorMessage:bt},props:{id:{type:String,required:!0}},setup(e){const t=bg(),n=pi(),r=async()=>{await t.perform(e.id)},l=async()=>{await r()},s=()=>{n.push("/")};return lt(async()=>{await r()}),st(e,async()=>{await r()}),{getRuleTask:t,onRefresh:l,onDelete:s}}});function oM(e,t,n,r,l,s){var p,a;const u=re("Loading"),d=re("ErrorMessage"),o=re("Rule");return Z(),se(Ne,null,[e.getRuleTask.isRunning?(Z(),Se(u,{key:0})):me("",!0),e.getRuleTask.isError?(Z(),Se(d,{key:1,error:(p=e.getRuleTask.last)==null?void 0:p.error},null,8,["error"])):me("",!0),(a=e.getRuleTask.last)!=null&&a.value?(Z(),Se(o,{key:2,rule:e.getRuleTask.last.value,onRefresh:e.onRefresh,onDelete:e.onDelete},null,8,["rule","onRefresh","onDelete"])):me("",!0)],64)}const aM=Re(sM,[["render",oM]]),lM=Ce({name:"RuleView",components:{Rule:aM},props:{id:{type:String,required:!0}},setup(e){const t=()=>{En(`Rule:${e.id} - Mihari`)};lt(()=>{t()}),st(()=>e.id,()=>{t()})}});function cM(e,t,n,r,l,s){const u=re("Rule",!0);return Z(),Se(u,{id:e.id},null,8,["id"])}const uM=Re(lM,[["render",cM]]),hM=Ce({name:"RuleItem",props:{rule:{type:Object,required:!0}},components:{ActionButtons:qg,Tags:As,ErrorMessage:bt,Message:$a},emits:["delete"],setup(e,t){const n=ze(),r=ze();return{onSetError:p=>{n.value=p},onDisposeError:()=>{n.value=void 0},onSetMessage:p=>{r.value=p},onDelete:()=>{t.emit("delete")},error:n,message:r,onDisposeMessage:()=>{r.value=void 0}}}}),fM={class:"box"},dM={class:"block"},pM={class:"table is-fullwidth is-completely-borderless"},gM=D("th",null,"Title",-1),mM=D("th",null,"Description",-1),vM={key:0},yM=D("th",null,"Tags",-1),bM=D("p",{class:"block is-clearfix"},null,-1),wM={class:"help"};function _M(e,t,n,r,l,s){const u=re("ErrorMessage"),d=re("Message"),o=re("ActionButtons"),p=re("router-link"),a=re("Tags");return Z(),se("div",fM,[e.error?(Z(),Se(u,{key:0,class:"block",error:e.error,disposable:!0,onDispose:e.onDisposeError},null,8,["error","onDispose"])):me("",!0),e.message?(Z(),Se(d,{key:1,class:"block",message:e.message,disposable:!0,onDispose:e.onDisposeMessage},null,8,["message","onDispose"])):me("",!0),D("div",dM,[D("p",null,[oe(o,{rule:e.rule,onSetError:e.onSetError,onDelete:e.onDelete,onSetMessage:e.onSetMessage},null,8,["rule","onSetError","onDelete","onSetMessage"])]),oe(p,{class:"is-size-4",to:{name:"Rule",params:{id:e.rule.id}}},{default:Je(()=>[et($e(e.rule.id),1)]),_:1},8,["to"])]),D("table",pM,[D("tr",null,[gM,D("td",null,$e(e.rule.title),1)]),D("tr",null,[mM,D("td",null,$e(e.rule.description),1)]),e.rule.tags.length>0?(Z(),se("tr",vM,[yM,D("td",null,[oe(a,{tags:e.rule.tags,"navigate-to":"Rules"},null,8,["tags"])])])):me("",!0)]),bM,D("p",wM,"Created at: "+$e(e.rule.createdAt),1)])}const $M=Re(hM,[["render",_M]]),SM=Ce({name:"RulesItem",props:{rules:{type:Object,required:!0}},components:{Pagination:jc,Rule:$M},emits:["update-page","refresh"],setup(e,t){const n=ze(),r=u=>{t.emit("update-page",u)},l=()=>{t.emit("refresh")},s=Le(()=>e.rules.results.length>0);return{onUpdatePage:r,onRefresh:l,hasRules:s,error:n}}}),CM={key:0,class:"block"},AM={class:"help"},kM={key:1,class:"block"},xM=D("div",{class:"notification is-warning is-light"},"There is no alert to show",-1),EM=[xM];function RM(e,t,n,r,l,s){const u=re("Rule"),d=re("Pagination");return e.hasRules?(Z(),se("div",CM,[(Z(!0),se(Ne,null,Nt(e.rules.results,o=>(Z(),Se(u,{rule:o,key:o.id,onRefresh:e.onRefresh,onDelete:e.onRefresh},null,8,["rule","onRefresh","onDelete"]))),128)),oe(d,{currentPage:e.rules.currentPage,total:e.rules.total,pageSize:e.rules.pageSize,onUpdatePage:e.onUpdatePage},null,8,["currentPage","total","pageSize","onUpdatePage"]),D("p",AM,"("+$e(e.rules.total)+" results in total, "+$e(e.rules.results.length)+" shown)",1)])):(Z(),se("div",kM,EM))}const TM=Re(SM,[["render",RM]]),LM=Ce({name:"RulesWrapper",components:{Rules:TM,Loading:Rn,ErrorMessage:bt},setup(){const e=ii("page","1"),t=ii("q",""),n=ze(!1),r=yg(),l=async()=>{const p={q:t.value,page:parseInt(e.value)};return await r.perform(p)},s=p=>{e.value=p.toString()},u=async()=>{e.value="1",await l()},d=u,o=()=>{n.value=!n.value};return lt(async()=>{await l()}),st(e,async()=>{await l()}),st(t,async()=>{window.scrollTo({top:0,behavior:"smooth"})}),{getRulesTask:r,page:e,q:t,search:u,showHelp:n,toggleShowHelp:o,onUpdatePage:s,onRefresh:d}}}),MM={class:"block"},OM={class:"field has-addons"},IM={class:"control is-expanded"},NM={class:"control"},DM={class:"icon is-small"},FM=D("span",null,"Search",-1),PM={class:"control"},BM={class:"icon is-small"},WM=D("span",null,"Help",-1),HM={key:0,class:"content mt-3"},UM=sa('<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),VM={key:0,class:"block"};function zM(e,t,n,r,l,s){var i,c;const u=re("font-awesome-icon"),d=re("router-link"),o=re("Loading"),p=re("ErrorMessage"),a=re("Rules");return Z(),se(Ne,null,[D("div",MM,[D("div",OM,[D("p",IM,[Jo(D("input",{class:"input",type:"text","onUpdate:modelValue":t[0]||(t[0]=h=>e.q=h)},null,512),[[_r,e.q]])]),D("p",NM,[D("a",{class:"button is-primary",onClick:t[1]||(t[1]=(...h)=>e.search&&e.search(...h))},[D("span",DM,[oe(u,{icon:"search"})]),FM])]),D("p",PM,[D("a",{class:"button is-info",onClick:t[2]||(t[2]=(...h)=>e.toggleShowHelp&&e.toggleShowHelp(...h))},[D("span",BM,[oe(u,{icon:"question"})]),WM])])]),e.showHelp?(Z(),se("div",HM,[UM,D("ul",null,[D("li",null,[oe(d,{to:{name:"Rules",query:{q:"title:foo AND created_at >= 2020-01-01"}}},{default:Je(()=>[et("title:foo AND created_at >= 2020-01-01")]),_:1})])])])):me("",!0)]),e.getRulesTask.performCount>0?(Z(),se("div",VM,[e.getRulesTask.isRunning?(Z(),Se(o,{key:0})):me("",!0),e.getRulesTask.isError?(Z(),Se(p,{key:1,error:(i=e.getRulesTask.last)==null?void 0:i.error},null,8,["error"])):me("",!0),(c=e.getRulesTask.last)!=null&&c.value?(Z(),Se(a,{key:2,rules:e.getRulesTask.last.value,onUpdatePage:e.onUpdatePage,onRefresh:e.onRefresh},null,8,["rules","onUpdatePage","onRefresh"])):me("",!0)])):me("",!0)],64)}const jM=Re(LM,[["render",zM]]),GM=Ce({name:"RulesView",components:{Rules:jM},setup(){En("Rules - Mihari")}});function KM(e,t,n,r,l,s){const u=re("Rules",!0);return Z(),Se(u)}const YM=Re(GM,[["render",KM]]),ZM=[{path:"/",name:"Alerts",component:p2},{path:"/alerts/:id",name:"Alert",component:fk,props:!0},{path:"/config",name:"Config",component:$T},{path:"/artifacts/",name:"Artifacts",component:eT},{path:"/artifacts/:id",name:"Artifact",component:dR,props:!0},{path:"/rules",name:"Rules",component:YM},{path:"/rules/new",name:"NewRule",component:LL},{path:"/rules/:id",name:"Rule",component:uM,props:!0},{path:"/rules/:id/edit",name:"EditRule",component:cL,props:!0}],XM=Y1({history:S1(),routes:ZM});Ov.add(Bv,Jv,Xv,Fv,Qv,Hv,Nv,Gv,jv,Zv,Yv,Pv,Sf,zv,Vv,Uv,qv);const Qg=fp(jw);Qg.component("font-awesome-icon",Tw);Qg.use(XM).mount("#app");