mihari 7.3.2 → 7.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (131) 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 +7 -6
  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/whois.rb +118 -0
  51. data/lib/mihari/clients/yeti.rb +38 -0
  52. data/lib/mihari/clients/zoomeye.rb +12 -12
  53. data/lib/mihari/commands/alert.rb +1 -1
  54. data/lib/mihari/commands/artifact.rb +1 -1
  55. data/lib/mihari/commands/rule.rb +1 -1
  56. data/lib/mihari/commands/tag.rb +1 -1
  57. data/lib/mihari/concerns/autonomous_system_normalizable.rb +1 -4
  58. data/lib/mihari/concerns/configurable.rb +1 -1
  59. data/lib/mihari/concerns/database_connectable.rb +2 -2
  60. data/lib/mihari/concerns/retriable.rb +1 -1
  61. data/lib/mihari/config.rb +14 -2
  62. data/lib/mihari/constants.rb +2 -2
  63. data/lib/mihari/data_type.rb +1 -3
  64. data/lib/mihari/emitters/base.rb +2 -2
  65. data/lib/mihari/emitters/database.rb +1 -1
  66. data/lib/mihari/emitters/misp.rb +12 -4
  67. data/lib/mihari/emitters/slack.rb +9 -9
  68. data/lib/mihari/emitters/the_hive.rb +9 -4
  69. data/lib/mihari/emitters/webhook.rb +4 -4
  70. data/lib/mihari/emitters/yeti.rb +107 -0
  71. data/lib/mihari/enrichers/base.rb +1 -1
  72. data/lib/mihari/enrichers/google_public_dns.rb +1 -1
  73. data/lib/mihari/enrichers/mmdb.rb +1 -1
  74. data/lib/mihari/enrichers/shodan.rb +3 -3
  75. data/lib/mihari/enrichers/whois.rb +6 -91
  76. data/lib/mihari/entities/alert.rb +6 -6
  77. data/lib/mihari/entities/artifact.rb +17 -17
  78. data/lib/mihari/entities/autonomous_system.rb +1 -1
  79. data/lib/mihari/entities/config.rb +8 -4
  80. data/lib/mihari/entities/cpe.rb +2 -2
  81. data/lib/mihari/entities/dns.rb +3 -3
  82. data/lib/mihari/entities/geolocation.rb +3 -3
  83. data/lib/mihari/entities/ip_address.rb +3 -3
  84. data/lib/mihari/entities/messages.rb +3 -3
  85. data/lib/mihari/entities/pagination.rb +3 -3
  86. data/lib/mihari/entities/port.rb +2 -2
  87. data/lib/mihari/entities/reverse_dns.rb +2 -2
  88. data/lib/mihari/entities/rule.rb +8 -8
  89. data/lib/mihari/entities/tag.rb +3 -3
  90. data/lib/mihari/entities/vulnerability.rb +2 -2
  91. data/lib/mihari/entities/whois.rb +7 -7
  92. data/lib/mihari/errors.rb +1 -1
  93. data/lib/mihari/models/artifact.rb +2 -2
  94. data/lib/mihari/models/port.rb +1 -1
  95. data/lib/mihari/models/tag.rb +3 -0
  96. data/lib/mihari/rule.rb +10 -14
  97. data/lib/mihari/schemas/emitter.rb +9 -0
  98. data/lib/mihari/services/feed.rb +3 -3
  99. data/lib/mihari/services/getters.rb +1 -1
  100. data/lib/mihari/services/proxies.rb +1 -1
  101. data/lib/mihari/services/renderer.rb +2 -0
  102. data/lib/mihari/services/searchers.rb +1 -1
  103. data/lib/mihari/sidekiq/application.rb +2 -2
  104. data/lib/mihari/structs/censys.rb +4 -4
  105. data/lib/mihari/structs/google_public_dns.rb +3 -3
  106. data/lib/mihari/structs/greynoise.rb +2 -2
  107. data/lib/mihari/structs/onyphe.rb +3 -3
  108. data/lib/mihari/structs/shodan.rb +10 -10
  109. data/lib/mihari/structs/urlscan.rb +1 -1
  110. data/lib/mihari/structs/virustotal_intelligence.rb +2 -2
  111. data/lib/mihari/version.rb +1 -1
  112. data/lib/mihari/web/api.rb +1 -1
  113. data/lib/mihari/web/application.rb +1 -1
  114. data/lib/mihari/web/endpoints/alerts.rb +12 -12
  115. data/lib/mihari/web/endpoints/artifacts.rb +11 -11
  116. data/lib/mihari/web/endpoints/configs.rb +7 -2
  117. data/lib/mihari/web/endpoints/ip_addresses.rb +5 -5
  118. data/lib/mihari/web/endpoints/rules.rb +26 -26
  119. data/lib/mihari/web/endpoints/tags.rb +4 -4
  120. data/lib/mihari/web/public/assets/{index-ReF8ffd-.css → index-80oZkhZG.css} +1 -1
  121. data/lib/mihari/web/public/assets/index-BNLbw8nG.js +1783 -0
  122. data/lib/mihari/web/public/index.html +2 -2
  123. data/lib/mihari/web/public/redoc-static.html +2 -2
  124. data/lib/mihari.rb +4 -1
  125. data/mihari.gemspec +19 -19
  126. data/renovate.json +1 -3
  127. data/requirements.txt +1 -1
  128. metadata +48 -44
  129. data/.standard.yml +0 -4
  130. data/lib/mihari/web/public/assets/index-lRP933ks.js +0 -1787
  131. /data/lib/mihari/web/public/assets/{mode-yaml-BC4MIiYj.js → mode-yaml-ELgwiJiP.js} +0 -0
@@ -0,0 +1,1783 @@
1
+ var Kf=Object.defineProperty;var Zf=(e,t,n)=>t in e?Kf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Fe=(e,t,n)=>(Zf(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 a of l)if(a.type==="childList")for(const d of a.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&r(d)}).observe(document,{childList:!0,subtree:!0});function n(l){const a={};return l.integrity&&(a.integrity=l.integrity),l.referrerPolicy&&(a.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?a.credentials="include":l.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(l){if(l.ep)return;l.ep=!0;const a=n(l);fetch(l.href,a)}})();function Wl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function ye(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Wl(Object(n),!0).forEach(function(r){ut(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wl(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ds(e){"@babel/helpers - typeof";return ds=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},ds(e)}function Xf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hl(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 qf(e,t,n){return t&&Hl(e.prototype,t),n&&Hl(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ut(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ia(e,t){return Jf(e)||tp(e,t)||Fu(e,t)||rp()}function Si(e){return Qf(e)||ep(e)||Fu(e)||np()}function Qf(e){if(Array.isArray(e))return Uo(e)}function Jf(e){if(Array.isArray(e))return e}function ep(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function tp(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],l=!0,a=!1,d,p;try{for(n=n.call(e);!(l=(d=n.next()).done)&&(r.push(d.value),!(t&&r.length===t));l=!0);}catch(o){a=!0,p=o}finally{try{!l&&n.return!=null&&n.return()}finally{if(a)throw p}}return r}}function Fu(e,t){if(e){if(typeof e=="string")return Uo(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 Uo(e,t)}}function Uo(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 np(){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 rp(){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 zl=function(){},Na={},Pu={},Bu=null,Wu={mark:zl,measure:zl};try{typeof window<"u"&&(Na=window),typeof document<"u"&&(Pu=document),typeof MutationObserver<"u"&&(Bu=MutationObserver),typeof performance<"u"&&(Wu=performance)}catch{}var ip=Na.navigator||{},Ul=ip.userAgent,Vl=Ul===void 0?"":Ul,Tn=Na,it=Pu,jl=Bu,Di=Wu;Tn.document;var gn=!!it.documentElement&&!!it.head&&typeof it.addEventListener=="function"&&typeof it.createElement=="function",Hu=~Vl.indexOf("MSIE")||~Vl.indexOf("Trident/"),Fi,Pi,Bi,Wi,Hi,hn="___FONT_AWESOME___",Vo=16,zu="fa",Uu="svg-inline--fa",Zn="data-fa-i2svg",jo="data-fa-pseudo-element",sp="data-fa-pseudo-element-pending",Da="data-prefix",Fa="data-icon",Gl="fontawesome-i2svg",op="async",ap=["HTML","HEAD","STYLE","SCRIPT"],Vu=function(){try{return!0}catch{return!1}}(),tt="classic",lt="sharp",Pa=[tt,lt];function Ci(e){return new Proxy(e,{get:function(n,r){return r in n?n[r]:n[tt]}})}var Qr=Ci((Fi={},ut(Fi,tt,{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"}),ut(Fi,lt,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"}),Fi)),Jr=Ci((Pi={},ut(Pi,tt,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),ut(Pi,lt,{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"}),Pi)),ei=Ci((Bi={},ut(Bi,tt,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),ut(Bi,lt,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"}),Bi)),lp=Ci((Wi={},ut(Wi,tt,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),ut(Wi,lt,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"}),Wi)),cp=/fa(s|r|l|t|d|b|k|ss|sr|sl|st)?[\-\ ]/,ju="fa-layers-text",up=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,hp=Ci((Hi={},ut(Hi,tt,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),ut(Hi,lt,{900:"fass",400:"fasr",300:"fasl",100:"fast"}),Hi)),Gu=[1,2,3,4,5,6,7,8,9,10],dp=Gu.concat([11,12,13,14,15,16,17,18,19,20]),fp=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],zn={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},ti=new Set;Object.keys(Jr[tt]).map(ti.add.bind(ti));Object.keys(Jr[lt]).map(ti.add.bind(ti));var pp=[].concat(Pa,Si(ti),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",zn.GROUP,zn.SWAP_OPACITY,zn.PRIMARY,zn.SECONDARY]).concat(Gu.map(function(e){return"".concat(e,"x")})).concat(dp.map(function(e){return"w-".concat(e)})),Ur=Tn.FontAwesomeConfig||{};function gp(e){var t=it.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function mp(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(it&&typeof it.querySelector=="function"){var vp=[["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"]];vp.forEach(function(e){var t=Ia(e,2),n=t[0],r=t[1],l=mp(gp(n));l!=null&&(Ur[r]=l)})}var Yu={styleDefault:"solid",familyDefault:"classic",cssPrefix:zu,replacementClass:Uu,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Ur.familyPrefix&&(Ur.cssPrefix=Ur.familyPrefix);var yr=ye(ye({},Yu),Ur);yr.autoReplaceSvg||(yr.observeMutations=!1);var $e={};Object.keys(Yu).forEach(function(e){Object.defineProperty($e,e,{enumerable:!0,set:function(n){yr[e]=n,Vr.forEach(function(r){return r($e)})},get:function(){return yr[e]}})});Object.defineProperty($e,"familyPrefix",{enumerable:!0,set:function(t){yr.cssPrefix=t,Vr.forEach(function(n){return n($e)})},get:function(){return yr.cssPrefix}});Tn.FontAwesomeConfig=$e;var Vr=[];function yp(e){return Vr.push(e),function(){Vr.splice(Vr.indexOf(e),1)}}var bn=Vo,Xt={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function bp(e){if(!(!e||!gn)){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 a=n[l],d=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(d)>-1&&(r=a)}return it.head.insertBefore(t,r),e}}var wp="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function ni(){for(var e=12,t="";e-- >0;)t+=wp[Math.random()*62|0];return t}function Er(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Ba(e){return e.classList?Er(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function Ku(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function _p(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(Ku(e[n]),'" ')},"").trim()}function Fs(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function Wa(e){return e.size!==Xt.size||e.x!==Xt.x||e.y!==Xt.y||e.rotate!==Xt.rotate||e.flipX||e.flipY}function $p(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,l={transform:"translate(".concat(n/2," 256)")},a="translate(".concat(t.x*32,", ").concat(t.y*32,") "),d="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),p="rotate(".concat(t.rotate," 0 0)"),o={transform:"".concat(a," ").concat(d," ").concat(p)},g={transform:"translate(".concat(r/2*-1," -256)")};return{outer:l,inner:o,path:g}}function Sp(e){var t=e.transform,n=e.width,r=n===void 0?Vo:n,l=e.height,a=l===void 0?Vo:l,d=e.startCentered,p=d===void 0?!1:d,o="";return p&&Hu?o+="translate(".concat(t.x/bn-r/2,"em, ").concat(t.y/bn-a/2,"em) "):p?o+="translate(calc(-50% + ".concat(t.x/bn,"em), calc(-50% + ").concat(t.y/bn,"em)) "):o+="translate(".concat(t.x/bn,"em, ").concat(t.y/bn,"em) "),o+="scale(".concat(t.size/bn*(t.flipX?-1:1),", ").concat(t.size/bn*(t.flipY?-1:1),") "),o+="rotate(".concat(t.rotate,"deg) "),o}var Cp=`: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 Zu(){var e=zu,t=Uu,n=$e.cssPrefix,r=$e.replacementClass,l=Cp;if(n!==e||r!==t){var a=new RegExp("\\.".concat(e,"\\-"),"g"),d=new RegExp("\\--".concat(e,"\\-"),"g"),p=new RegExp("\\.".concat(t),"g");l=l.replace(a,".".concat(n,"-")).replace(d,"--".concat(n,"-")).replace(p,".".concat(r))}return l}var Yl=!1;function yo(){$e.autoAddCss&&!Yl&&(bp(Zu()),Yl=!0)}var Ap={mixout:function(){return{dom:{css:Zu,insertCss:yo}}},hooks:function(){return{beforeDOMElementCreation:function(){yo()},beforeI2svg:function(){yo()}}}},dn=Tn||{};dn[hn]||(dn[hn]={});dn[hn].styles||(dn[hn].styles={});dn[hn].hooks||(dn[hn].hooks={});dn[hn].shims||(dn[hn].shims=[]);var Pt=dn[hn],Xu=[],kp=function e(){it.removeEventListener("DOMContentLoaded",e),fs=1,Xu.map(function(t){return t()})},fs=!1;gn&&(fs=(it.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(it.readyState),fs||it.addEventListener("DOMContentLoaded",kp));function xp(e){gn&&(fs?setTimeout(e,0):Xu.push(e))}function Ai(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,l=e.children,a=l===void 0?[]:l;return typeof e=="string"?Ku(e):"<".concat(t," ").concat(_p(r),">").concat(a.map(Ai).join(""),"</").concat(t,">")}function Kl(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Ep=function(t,n){return function(r,l,a,d){return t.call(n,r,l,a,d)}},bo=function(t,n,r,l){var a=Object.keys(t),d=a.length,p=l!==void 0?Ep(n,l):n,o,g,i;for(r===void 0?(o=1,i=t[a[0]]):(o=0,i=r);o<d;o++)g=a[o],i=p(i,t[g],g,t);return i};function Rp(e){for(var t=[],n=0,r=e.length;n<r;){var l=e.charCodeAt(n++);if(l>=55296&&l<=56319&&n<r){var a=e.charCodeAt(n++);(a&64512)==56320?t.push(((l&1023)<<10)+(a&1023)+65536):(t.push(l),n--)}else t.push(l)}return t}function Go(e){var t=Rp(e);return t.length===1?t[0].toString(16):null}function Tp(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 Zl(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 Yo(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,l=r===void 0?!1:r,a=Zl(t);typeof Pt.hooks.addPack=="function"&&!l?Pt.hooks.addPack(e,Zl(t)):Pt.styles[e]=ye(ye({},Pt.styles[e]||{}),a),e==="fas"&&Yo("fa",t)}var zi,Ui,Vi,lr=Pt.styles,Lp=Pt.shims,Mp=(zi={},ut(zi,tt,Object.values(ei[tt])),ut(zi,lt,Object.values(ei[lt])),zi),Ha=null,qu={},Qu={},Ju={},eh={},th={},Op=(Ui={},ut(Ui,tt,Object.keys(Qr[tt])),ut(Ui,lt,Object.keys(Qr[lt])),Ui);function Ip(e){return~pp.indexOf(e)}function Np(e,t){var n=t.split("-"),r=n[0],l=n.slice(1).join("-");return r===e&&l!==""&&!Ip(l)?l:null}var nh=function(){var t=function(a){return bo(lr,function(d,p,o){return d[o]=bo(p,a,{}),d},{})};qu=t(function(l,a,d){if(a[3]&&(l[a[3]]=d),a[2]){var p=a[2].filter(function(o){return typeof o=="number"});p.forEach(function(o){l[o.toString(16)]=d})}return l}),Qu=t(function(l,a,d){if(l[d]=d,a[2]){var p=a[2].filter(function(o){return typeof o=="string"});p.forEach(function(o){l[o]=d})}return l}),th=t(function(l,a,d){var p=a[2];return l[d]=d,p.forEach(function(o){l[o]=d}),l});var n="far"in lr||$e.autoFetchSvg,r=bo(Lp,function(l,a){var d=a[0],p=a[1],o=a[2];return p==="far"&&!n&&(p="fas"),typeof d=="string"&&(l.names[d]={prefix:p,iconName:o}),typeof d=="number"&&(l.unicodes[d.toString(16)]={prefix:p,iconName:o}),l},{names:{},unicodes:{}});Ju=r.names,eh=r.unicodes,Ha=Ps($e.styleDefault,{family:$e.familyDefault})};yp(function(e){Ha=Ps(e.styleDefault,{family:$e.familyDefault})});nh();function za(e,t){return(qu[e]||{})[t]}function Dp(e,t){return(Qu[e]||{})[t]}function Un(e,t){return(th[e]||{})[t]}function rh(e){return Ju[e]||{prefix:null,iconName:null}}function Fp(e){var t=eh[e],n=za("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Ln(){return Ha}var Ua=function(){return{prefix:null,iconName:null,rest:[]}};function Ps(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?tt:n,l=Qr[r][e],a=Jr[r][e]||Jr[r][l],d=e in Pt.styles?e:null;return a||d||null}var Xl=(Vi={},ut(Vi,tt,Object.keys(ei[tt])),ut(Vi,lt,Object.keys(ei[lt])),Vi);function Bs(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,l=r===void 0?!1:r,a=(t={},ut(t,tt,"".concat($e.cssPrefix,"-").concat(tt)),ut(t,lt,"".concat($e.cssPrefix,"-").concat(lt)),t),d=null,p=tt;(e.includes(a[tt])||e.some(function(g){return Xl[tt].includes(g)}))&&(p=tt),(e.includes(a[lt])||e.some(function(g){return Xl[lt].includes(g)}))&&(p=lt);var o=e.reduce(function(g,i){var s=Np($e.cssPrefix,i);if(lr[i]?(i=Mp[p].includes(i)?lp[p][i]:i,d=i,g.prefix=i):Op[p].indexOf(i)>-1?(d=i,g.prefix=Ps(i,{family:p})):s?g.iconName=s:i!==$e.replacementClass&&i!==a[tt]&&i!==a[lt]&&g.rest.push(i),!l&&g.prefix&&g.iconName){var c=d==="fa"?rh(g.iconName):{},u=Un(g.prefix,g.iconName);c.prefix&&(d=null),g.iconName=c.iconName||u||g.iconName,g.prefix=c.prefix||g.prefix,g.prefix==="far"&&!lr.far&&lr.fas&&!$e.autoFetchSvg&&(g.prefix="fas")}return g},Ua());return(e.includes("fa-brands")||e.includes("fab"))&&(o.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(o.prefix="fad"),!o.prefix&&p===lt&&(lr.fass||$e.autoFetchSvg)&&(o.prefix="fass",o.iconName=Un(o.prefix,o.iconName)||o.iconName),(o.prefix==="fa"||d==="fa")&&(o.prefix=Ln()||"fas"),o}var Pp=function(){function e(){Xf(this,e),this.definitions={}}return qf(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,l=new Array(r),a=0;a<r;a++)l[a]=arguments[a];var d=l.reduce(this._pullDefinitions,{});Object.keys(d).forEach(function(p){n.definitions[p]=ye(ye({},n.definitions[p]||{}),d[p]),Yo(p,d[p]);var o=ei[tt][p];o&&Yo(o,d[p]),nh()})}},{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(a){var d=l[a],p=d.prefix,o=d.iconName,g=d.icon,i=g[2];n[p]||(n[p]={}),i.length>0&&i.forEach(function(s){typeof s=="string"&&(n[p][s]=g)}),n[p][o]=g}),n}}]),e}(),ql=[],cr={},dr={},Bp=Object.keys(dr);function Wp(e,t){var n=t.mixoutsTo;return ql=e,cr={},Object.keys(dr).forEach(function(r){Bp.indexOf(r)===-1&&delete dr[r]}),ql.forEach(function(r){var l=r.mixout?r.mixout():{};if(Object.keys(l).forEach(function(d){typeof l[d]=="function"&&(n[d]=l[d]),ds(l[d])==="object"&&Object.keys(l[d]).forEach(function(p){n[d]||(n[d]={}),n[d][p]=l[d][p]})}),r.hooks){var a=r.hooks();Object.keys(a).forEach(function(d){cr[d]||(cr[d]=[]),cr[d].push(a[d])})}r.provides&&r.provides(dr)}),n}function Ko(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 a=cr[e]||[];return a.forEach(function(d){t=d.apply(null,[t].concat(r))}),t}function Xn(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=cr[e]||[];l.forEach(function(a){a.apply(null,n)})}function fn(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return dr[e]?dr[e].apply(null,t):void 0}function Zo(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,n=e.prefix||Ln();if(t)return t=Un(n,t)||t,Kl(ih.definitions,n,t)||Kl(Pt.styles,n,t)}var ih=new Pp,Hp=function(){$e.autoReplaceSvg=!1,$e.observeMutations=!1,Xn("noAuto")},zp={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return gn?(Xn("beforeI2svg",t),fn("pseudoElements2svg",t),fn("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;$e.autoReplaceSvg===!1&&($e.autoReplaceSvg=!0),$e.observeMutations=!0,xp(function(){Vp({autoReplaceSvgRoot:n}),Xn("watch",t)})}},Up={icon:function(t){if(t===null)return null;if(ds(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Un(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],r=Ps(t[0]);return{prefix:r,iconName:Un(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat($e.cssPrefix,"-"))>-1||t.match(cp))){var l=Bs(t.split(" "),{skipLookups:!0});return{prefix:l.prefix||Ln(),iconName:Un(l.prefix,l.iconName)||l.iconName}}if(typeof t=="string"){var a=Ln();return{prefix:a,iconName:Un(a,t)||t}}}},It={noAuto:Hp,config:$e,dom:zp,parse:Up,library:ih,findIconDefinition:Zo,toHtml:Ai},Vp=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?it:n;(Object.keys(Pt.styles).length>0||$e.autoFetchSvg)&&gn&&$e.autoReplaceSvg&&It.dom.i2svg({node:r})};function Ws(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return Ai(r)})}}),Object.defineProperty(e,"node",{get:function(){if(gn){var r=it.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function jp(e){var t=e.children,n=e.main,r=e.mask,l=e.attributes,a=e.styles,d=e.transform;if(Wa(d)&&n.found&&!r.found){var p=n.width,o=n.height,g={x:p/o/2,y:.5};l.style=Fs(ye(ye({},a),{},{"transform-origin":"".concat(g.x+d.x/16,"em ").concat(g.y+d.y/16,"em")}))}return[{tag:"svg",attributes:l,children:t}]}function Gp(e){var t=e.prefix,n=e.iconName,r=e.children,l=e.attributes,a=e.symbol,d=a===!0?"".concat(t,"-").concat($e.cssPrefix,"-").concat(n):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:ye(ye({},l),{},{id:d}),children:r}]}]}function Va(e){var t=e.icons,n=t.main,r=t.mask,l=e.prefix,a=e.iconName,d=e.transform,p=e.symbol,o=e.title,g=e.maskId,i=e.titleId,s=e.extra,c=e.watchable,u=c===void 0?!1:c,h=r.found?r:n,f=h.width,m=h.height,v=l==="fak",y=[$e.replacementClass,a?"".concat($e.cssPrefix,"-").concat(a):""].filter(function(k){return s.classes.indexOf(k)===-1}).filter(function(k){return k!==""||!!k}).concat(s.classes).join(" "),C={children:[],attributes:ye(ye({},s.attributes),{},{"data-prefix":l,"data-icon":a,class:y,role:s.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(f," ").concat(m)})},$=v&&!~s.classes.indexOf("fa-fw")?{width:"".concat(f/m*16*.0625,"em")}:{};u&&(C.attributes[Zn]=""),o&&(C.children.push({tag:"title",attributes:{id:C.attributes["aria-labelledby"]||"title-".concat(i||ni())},children:[o]}),delete C.attributes.title);var _=ye(ye({},C),{},{prefix:l,iconName:a,main:n,mask:r,maskId:g,transform:d,symbol:p,styles:ye(ye({},$),s.styles)}),b=r.found&&n.found?fn("generateAbstractMask",_)||{children:[],attributes:{}}:fn("generateAbstractIcon",_)||{children:[],attributes:{}},E=b.children,L=b.attributes;return _.children=E,_.attributes=L,p?Gp(_):jp(_)}function Ql(e){var t=e.content,n=e.width,r=e.height,l=e.transform,a=e.title,d=e.extra,p=e.watchable,o=p===void 0?!1:p,g=ye(ye(ye({},d.attributes),a?{title:a}:{}),{},{class:d.classes.join(" ")});o&&(g[Zn]="");var i=ye({},d.styles);Wa(l)&&(i.transform=Sp({transform:l,startCentered:!0,width:n,height:r}),i["-webkit-transform"]=i.transform);var s=Fs(i);s.length>0&&(g.style=s);var c=[];return c.push({tag:"span",attributes:g,children:[t]}),a&&c.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),c}function Yp(e){var t=e.content,n=e.title,r=e.extra,l=ye(ye(ye({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),a=Fs(r.styles);a.length>0&&(l.style=a);var d=[];return d.push({tag:"span",attributes:l,children:[t]}),n&&d.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),d}var wo=Pt.styles;function Xo(e){var t=e[0],n=e[1],r=e.slice(4),l=Ia(r,1),a=l[0],d=null;return Array.isArray(a)?d={tag:"g",attributes:{class:"".concat($e.cssPrefix,"-").concat(zn.GROUP)},children:[{tag:"path",attributes:{class:"".concat($e.cssPrefix,"-").concat(zn.SECONDARY),fill:"currentColor",d:a[0]}},{tag:"path",attributes:{class:"".concat($e.cssPrefix,"-").concat(zn.PRIMARY),fill:"currentColor",d:a[1]}}]}:d={tag:"path",attributes:{fill:"currentColor",d:a}},{found:!0,width:t,height:n,icon:d}}var Kp={found:!1,width:512,height:512};function Zp(e,t){!Vu&&!$e.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function qo(e,t){var n=t;return t==="fa"&&$e.styleDefault!==null&&(t=Ln()),new Promise(function(r,l){if(fn("missingIconAbstract"),n==="fa"){var a=rh(e)||{};e=a.iconName||e,t=a.prefix||t}if(e&&t&&wo[t]&&wo[t][e]){var d=wo[t][e];return r(Xo(d))}Zp(e,t),r(ye(ye({},Kp),{},{icon:$e.showMissingIcons&&e?fn("missingIconAbstract")||{}:{}}))})}var Jl=function(){},Qo=$e.measurePerformance&&Di&&Di.mark&&Di.measure?Di:{mark:Jl,measure:Jl},Hr='FA "6.5.1"',Xp=function(t){return Qo.mark("".concat(Hr," ").concat(t," begins")),function(){return sh(t)}},sh=function(t){Qo.mark("".concat(Hr," ").concat(t," ends")),Qo.measure("".concat(Hr," ").concat(t),"".concat(Hr," ").concat(t," begins"),"".concat(Hr," ").concat(t," ends"))},ja={begin:Xp,end:sh},Qi=function(){};function ec(e){var t=e.getAttribute?e.getAttribute(Zn):null;return typeof t=="string"}function qp(e){var t=e.getAttribute?e.getAttribute(Da):null,n=e.getAttribute?e.getAttribute(Fa):null;return t&&n}function Qp(e){return e&&e.classList&&e.classList.contains&&e.classList.contains($e.replacementClass)}function Jp(){if($e.autoReplaceSvg===!0)return Ji.replace;var e=Ji[$e.autoReplaceSvg];return e||Ji.replace}function eg(e){return it.createElementNS("http://www.w3.org/2000/svg",e)}function tg(e){return it.createElement(e)}function oh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?eg:tg:n;if(typeof e=="string")return it.createTextNode(e);var l=r(e.tag);Object.keys(e.attributes||[]).forEach(function(d){l.setAttribute(d,e.attributes[d])});var a=e.children||[];return a.forEach(function(d){l.appendChild(oh(d,{ceFn:r}))}),l}function ng(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var Ji={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(l){n.parentNode.insertBefore(oh(l),n)}),n.getAttribute(Zn)===null&&$e.keepOriginalSource){var r=it.createComment(ng(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~Ba(n).indexOf($e.replacementClass))return Ji.replace(t);var l=new RegExp("".concat($e.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var a=r[0].attributes.class.split(" ").reduce(function(p,o){return o===$e.replacementClass||o.match(l)?p.toSvg.push(o):p.toNode.push(o),p},{toNode:[],toSvg:[]});r[0].attributes.class=a.toSvg.join(" "),a.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",a.toNode.join(" "))}var d=r.map(function(p){return Ai(p)}).join(`
761
+ `);n.setAttribute(Zn,""),n.innerHTML=d}};function tc(e){e()}function ah(e,t){var n=typeof t=="function"?t:Qi;if(e.length===0)n();else{var r=tc;$e.mutateApproach===op&&(r=Tn.requestAnimationFrame||tc),r(function(){var l=Jp(),a=ja.begin("mutate");e.map(l),a(),n()})}}var Ga=!1;function lh(){Ga=!0}function Jo(){Ga=!1}var ps=null;function nc(e){if(jl&&$e.observeMutations){var t=e.treeCallback,n=t===void 0?Qi:t,r=e.nodeCallback,l=r===void 0?Qi:r,a=e.pseudoElementsCallback,d=a===void 0?Qi:a,p=e.observeMutationsRoot,o=p===void 0?it:p;ps=new jl(function(g){if(!Ga){var i=Ln();Er(g).forEach(function(s){if(s.type==="childList"&&s.addedNodes.length>0&&!ec(s.addedNodes[0])&&($e.searchPseudoElements&&d(s.target),n(s.target)),s.type==="attributes"&&s.target.parentNode&&$e.searchPseudoElements&&d(s.target.parentNode),s.type==="attributes"&&ec(s.target)&&~fp.indexOf(s.attributeName))if(s.attributeName==="class"&&qp(s.target)){var c=Bs(Ba(s.target)),u=c.prefix,h=c.iconName;s.target.setAttribute(Da,u||i),h&&s.target.setAttribute(Fa,h)}else Qp(s.target)&&l(s.target)})}}),gn&&ps.observe(o,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function rg(){ps&&ps.disconnect()}function ig(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,l){var a=l.split(":"),d=a[0],p=a.slice(1);return d&&p.length>0&&(r[d]=p.join(":").trim()),r},{})),n}function sg(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",l=Bs(Ba(e));return l.prefix||(l.prefix=Ln()),t&&n&&(l.prefix=t,l.iconName=n),l.iconName&&l.prefix||(l.prefix&&r.length>0&&(l.iconName=Dp(l.prefix,e.innerText)||za(l.prefix,Go(e.innerText))),!l.iconName&&$e.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(l.iconName=e.firstChild.data)),l}function og(e){var t=Er(e.attributes).reduce(function(l,a){return l.name!=="class"&&l.name!=="style"&&(l[a.name]=a.value),l},{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return $e.autoA11y&&(n?t["aria-labelledby"]="".concat($e.replacementClass,"-title-").concat(r||ni()):(t["aria-hidden"]="true",t.focusable="false")),t}function ag(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Xt,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function rc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=sg(e),r=n.iconName,l=n.prefix,a=n.rest,d=og(e),p=Ko("parseNodeAttributes",{},e),o=t.styleParser?ig(e):[];return ye({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:l,transform:Xt,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:o,attributes:d}},p)}var lg=Pt.styles;function ch(e){var t=$e.autoReplaceSvg==="nest"?rc(e,{styleParser:!1}):rc(e);return~t.extra.classes.indexOf(ju)?fn("generateLayersText",e,t):fn("generateSvgReplacementMutation",e,t)}var Mn=new Set;Pa.map(function(e){Mn.add("fa-".concat(e))});Object.keys(Qr[tt]).map(Mn.add.bind(Mn));Object.keys(Qr[lt]).map(Mn.add.bind(Mn));Mn=Si(Mn);function ic(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!gn)return Promise.resolve();var n=it.documentElement.classList,r=function(s){return n.add("".concat(Gl,"-").concat(s))},l=function(s){return n.remove("".concat(Gl,"-").concat(s))},a=$e.autoFetchSvg?Mn:Pa.map(function(i){return"fa-".concat(i)}).concat(Object.keys(lg));a.includes("fa")||a.push("fa");var d=[".".concat(ju,":not([").concat(Zn,"])")].concat(a.map(function(i){return".".concat(i,":not([").concat(Zn,"])")})).join(", ");if(d.length===0)return Promise.resolve();var p=[];try{p=Er(e.querySelectorAll(d))}catch{}if(p.length>0)r("pending"),l("complete");else return Promise.resolve();var o=ja.begin("onTree"),g=p.reduce(function(i,s){try{var c=ch(s);c&&i.push(c)}catch(u){Vu||u.name==="MissingIcon"&&console.error(u)}return i},[]);return new Promise(function(i,s){Promise.all(g).then(function(c){ah(c,function(){r("active"),r("complete"),l("pending"),typeof t=="function"&&t(),o(),i()})}).catch(function(c){o(),s(c)})})}function cg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;ch(e).then(function(n){n&&ah([n],t)})}function ug(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:Zo(t||{}),l=n.mask;return l&&(l=(l||{}).icon?l:Zo(l||{})),e(r,ye(ye({},n),{},{mask:l}))}}var hg=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,l=r===void 0?Xt:r,a=n.symbol,d=a===void 0?!1:a,p=n.mask,o=p===void 0?null:p,g=n.maskId,i=g===void 0?null:g,s=n.title,c=s===void 0?null:s,u=n.titleId,h=u===void 0?null:u,f=n.classes,m=f===void 0?[]:f,v=n.attributes,y=v===void 0?{}:v,C=n.styles,$=C===void 0?{}:C;if(t){var _=t.prefix,b=t.iconName,E=t.icon;return Ws(ye({type:"icon"},t),function(){return Xn("beforeDOMElementCreation",{iconDefinition:t,params:n}),$e.autoA11y&&(c?y["aria-labelledby"]="".concat($e.replacementClass,"-title-").concat(h||ni()):(y["aria-hidden"]="true",y.focusable="false")),Va({icons:{main:Xo(E),mask:o?Xo(o.icon):{found:!1,width:null,height:null,icon:{}}},prefix:_,iconName:b,transform:ye(ye({},Xt),l),symbol:d,title:c,maskId:i,titleId:h,extra:{attributes:y,styles:$,classes:m}})})}},dg={mixout:function(){return{icon:ug(hg)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=ic,n.nodeCallback=cg,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,l=r===void 0?it:r,a=n.callback,d=a===void 0?function(){}:a;return ic(l,d)},t.generateSvgReplacementMutation=function(n,r){var l=r.iconName,a=r.title,d=r.titleId,p=r.prefix,o=r.transform,g=r.symbol,i=r.mask,s=r.maskId,c=r.extra;return new Promise(function(u,h){Promise.all([qo(l,p),i.iconName?qo(i.iconName,i.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(f){var m=Ia(f,2),v=m[0],y=m[1];u([n,Va({icons:{main:v,mask:y},prefix:p,iconName:l,transform:o,symbol:g,maskId:s,title:a,titleId:d,extra:c,watchable:!0})])}).catch(h)})},t.generateAbstractIcon=function(n){var r=n.children,l=n.attributes,a=n.main,d=n.transform,p=n.styles,o=Fs(p);o.length>0&&(l.style=o);var g;return Wa(d)&&(g=fn("generateAbstractTransformGrouping",{main:a,transform:d,containerWidth:a.width,iconWidth:a.width})),r.push(g||a.icon),{children:r,attributes:l}}}},fg={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=r.classes,a=l===void 0?[]:l;return Ws({type:"layer"},function(){Xn("beforeDOMElementCreation",{assembler:n,params:r});var d=[];return n(function(p){Array.isArray(p)?p.map(function(o){d=d.concat(o.abstract)}):d=d.concat(p.abstract)}),[{tag:"span",attributes:{class:["".concat($e.cssPrefix,"-layers")].concat(Si(a)).join(" ")},children:d}]})}}}},pg={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=r.title,a=l===void 0?null:l,d=r.classes,p=d===void 0?[]:d,o=r.attributes,g=o===void 0?{}:o,i=r.styles,s=i===void 0?{}:i;return Ws({type:"counter",content:n},function(){return Xn("beforeDOMElementCreation",{content:n,params:r}),Yp({content:n.toString(),title:a,extra:{attributes:g,styles:s,classes:["".concat($e.cssPrefix,"-layers-counter")].concat(Si(p))}})})}}}},gg={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=r.transform,a=l===void 0?Xt:l,d=r.title,p=d===void 0?null:d,o=r.classes,g=o===void 0?[]:o,i=r.attributes,s=i===void 0?{}:i,c=r.styles,u=c===void 0?{}:c;return Ws({type:"text",content:n},function(){return Xn("beforeDOMElementCreation",{content:n,params:r}),Ql({content:n,transform:ye(ye({},Xt),a),title:p,extra:{attributes:s,styles:u,classes:["".concat($e.cssPrefix,"-layers-text")].concat(Si(g))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var l=r.title,a=r.transform,d=r.extra,p=null,o=null;if(Hu){var g=parseInt(getComputedStyle(n).fontSize,10),i=n.getBoundingClientRect();p=i.width/g,o=i.height/g}return $e.autoA11y&&!l&&(d.attributes["aria-hidden"]="true"),Promise.resolve([n,Ql({content:n.innerHTML,width:p,height:o,transform:a,title:l,extra:d,watchable:!0})])}}},mg=new RegExp('"',"ug"),sc=[1105920,1112319];function vg(e){var t=e.replace(mg,""),n=Tp(t,0),r=n>=sc[0]&&n<=sc[1],l=t.length===2?t[0]===t[1]:!1;return{value:Go(l?t[0]:t),isSecondary:r||l}}function oc(e,t){var n="".concat(sp).concat(t.replace(":","-"));return new Promise(function(r,l){if(e.getAttribute(n)!==null)return r();var a=Er(e.children),d=a.filter(function(E){return E.getAttribute(jo)===t})[0],p=Tn.getComputedStyle(e,t),o=p.getPropertyValue("font-family").match(up),g=p.getPropertyValue("font-weight"),i=p.getPropertyValue("content");if(d&&!o)return e.removeChild(d),r();if(o&&i!=="none"&&i!==""){var s=p.getPropertyValue("content"),c=~["Sharp"].indexOf(o[2])?lt:tt,u=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(o[2])?Jr[c][o[2].toLowerCase()]:hp[c][g],h=vg(s),f=h.value,m=h.isSecondary,v=o[0].startsWith("FontAwesome"),y=za(u,f),C=y;if(v){var $=Fp(f);$.iconName&&$.prefix&&(y=$.iconName,u=$.prefix)}if(y&&!m&&(!d||d.getAttribute(Da)!==u||d.getAttribute(Fa)!==C)){e.setAttribute(n,C),d&&e.removeChild(d);var _=ag(),b=_.extra;b.attributes[jo]=t,qo(y,u).then(function(E){var L=Va(ye(ye({},_),{},{icons:{main:E,mask:Ua()},prefix:u,iconName:C,extra:b,watchable:!0})),k=it.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(k,e.firstChild):e.appendChild(k),k.outerHTML=L.map(function(M){return Ai(M)}).join(`
762
+ `),e.removeAttribute(n),r()}).catch(l)}else r()}else r()})}function yg(e){return Promise.all([oc(e,"::before"),oc(e,"::after")])}function bg(e){return e.parentNode!==document.head&&!~ap.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(jo)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function ac(e){if(gn)return new Promise(function(t,n){var r=Er(e.querySelectorAll("*")).filter(bg).map(yg),l=ja.begin("searchPseudoElements");lh(),Promise.all(r).then(function(){l(),Jo(),t()}).catch(function(){l(),Jo(),n()})})}var wg={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=ac,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,l=r===void 0?it:r;$e.searchPseudoElements&&ac(l)}}},lc=!1,_g={mixout:function(){return{dom:{unwatch:function(){lh(),lc=!0}}}},hooks:function(){return{bootstrap:function(){nc(Ko("mutationObserverCallbacks",{}))},noAuto:function(){rg()},watch:function(n){var r=n.observeMutationsRoot;lc?Jo():nc(Ko("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},cc=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 a=l.toLowerCase().split("-"),d=a[0],p=a.slice(1).join("-");if(d&&p==="h")return r.flipX=!0,r;if(d&&p==="v")return r.flipY=!0,r;if(p=parseFloat(p),isNaN(p))return r;switch(d){case"grow":r.size=r.size+p;break;case"shrink":r.size=r.size-p;break;case"left":r.x=r.x-p;break;case"right":r.x=r.x+p;break;case"up":r.y=r.y-p;break;case"down":r.y=r.y+p;break;case"rotate":r.rotate=r.rotate+p;break}return r},n)},$g={mixout:function(){return{parse:{transform:function(n){return cc(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var l=r.getAttribute("data-fa-transform");return l&&(n.transform=cc(l)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,l=n.transform,a=n.containerWidth,d=n.iconWidth,p={transform:"translate(".concat(a/2," 256)")},o="translate(".concat(l.x*32,", ").concat(l.y*32,") "),g="scale(".concat(l.size/16*(l.flipX?-1:1),", ").concat(l.size/16*(l.flipY?-1:1),") "),i="rotate(".concat(l.rotate," 0 0)"),s={transform:"".concat(o," ").concat(g," ").concat(i)},c={transform:"translate(".concat(d/2*-1," -256)")},u={outer:p,inner:s,path:c};return{tag:"g",attributes:ye({},u.outer),children:[{tag:"g",attributes:ye({},u.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:ye(ye({},r.icon.attributes),u.path)}]}]}}}},_o={x:0,y:0,width:"100%",height:"100%"};function uc(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 Sg(e){return e.tag==="g"?e.children:[e]}var Cg={hooks:function(){return{parseNodeAttributes:function(n,r){var l=r.getAttribute("data-fa-mask"),a=l?Bs(l.split(" ").map(function(d){return d.trim()})):Ua();return a.prefix||(a.prefix=Ln()),n.mask=a,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,l=n.attributes,a=n.main,d=n.mask,p=n.maskId,o=n.transform,g=a.width,i=a.icon,s=d.width,c=d.icon,u=$p({transform:o,containerWidth:s,iconWidth:g}),h={tag:"rect",attributes:ye(ye({},_o),{},{fill:"white"})},f=i.children?{children:i.children.map(uc)}:{},m={tag:"g",attributes:ye({},u.inner),children:[uc(ye({tag:i.tag,attributes:ye(ye({},i.attributes),u.path)},f))]},v={tag:"g",attributes:ye({},u.outer),children:[m]},y="mask-".concat(p||ni()),C="clip-".concat(p||ni()),$={tag:"mask",attributes:ye(ye({},_o),{},{id:y,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[h,v]},_={tag:"defs",children:[{tag:"clipPath",attributes:{id:C},children:Sg(c)},$]};return r.push(_,{tag:"rect",attributes:ye({fill:"currentColor","clip-path":"url(#".concat(C,")"),mask:"url(#".concat(y,")")},_o)}),{children:r,attributes:l}}}},Ag={provides:function(t){var n=!1;Tn.matchMedia&&(n=Tn.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],l={fill:"currentColor"},a={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:ye(ye({},l),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var d=ye(ye({},a),{},{attributeName:"opacity"}),p={tag:"circle",attributes:ye(ye({},l),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||p.children.push({tag:"animate",attributes:ye(ye({},a),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:ye(ye({},d),{},{values:"1;0;1;1;0;1;"})}),r.push(p),r.push({tag:"path",attributes:ye(ye({},l),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:ye(ye({},d),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:ye(ye({},l),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:ye(ye({},d),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},kg={hooks:function(){return{parseNodeAttributes:function(n,r){var l=r.getAttribute("data-fa-symbol"),a=l===null?!1:l===""?!0:l;return n.symbol=a,n}}}},xg=[Ap,dg,fg,pg,gg,wg,_g,$g,Cg,Ag,kg];Wp(xg,{mixoutsTo:It});It.noAuto;It.config;var Eg=It.library;It.dom;var ea=It.parse;It.findIconDefinition;It.toHtml;var Rg=It.icon;It.layer;It.text;It.counter;var Tg={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"]},Lg={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"]},Mg=Lg,Og={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"]},Ig={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"]},Ng={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"]},Dg=Ng,Fg={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"]},Pg={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"]},Bg={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"]},uh={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"]},Wg=uh,Hg={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"]},zg={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"]},Ug=zg,Vg={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"]},jg={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"]},Gg={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"]},Yg={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"]},Kg={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 Ya(e,t){const n=new Set(e.split(","));return t?r=>n.has(r.toLowerCase()):r=>n.has(r)}const et={},fr=[],Dt=()=>{},Zg=()=>!1,Hs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ka=e=>e.startsWith("onUpdate:"),mt=Object.assign,Za=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Xg=Object.prototype.hasOwnProperty,Ue=(e,t)=>Xg.call(e,t),Ie=Array.isArray,pr=e=>zs(e)==="[object Map]",hh=e=>zs(e)==="[object Set]",De=e=>typeof e=="function",ht=e=>typeof e=="string",Rr=e=>typeof e=="symbol",st=e=>e!==null&&typeof e=="object",dh=e=>(st(e)||De(e))&&De(e.then)&&De(e.catch),fh=Object.prototype.toString,zs=e=>fh.call(e),qg=e=>zs(e).slice(8,-1),ph=e=>zs(e)==="[object Object]",Xa=e=>ht(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,jr=Ya(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Us=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Qg=/-(\w)/g,Jt=Us(e=>e.replace(Qg,(t,n)=>n?n.toUpperCase():"")),Jg=/\B([A-Z])/g,Tr=Us(e=>e.replace(Jg,"-$1").toLowerCase()),ki=Us(e=>e.charAt(0).toUpperCase()+e.slice(1)),$o=Us(e=>e?`on${ki(e)}`:""),On=(e,t)=>!Object.is(e,t),es=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},gs=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ta=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let hc;const gh=()=>hc||(hc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function qa(e){if(Ie(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],l=ht(r)?rm(r):qa(r);if(l)for(const a in l)t[a]=l[a]}return t}else if(ht(e)||st(e))return e}const em=/;(?![^(]*\))/g,tm=/:([^]+)/,nm=/\/\*[^]*?\*\//g;function rm(e){const t={};return e.replace(nm,"").split(em).forEach(n=>{if(n){const r=n.split(tm);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Vs(e){let t="";if(ht(e))t=e;else if(Ie(e))for(let n=0;n<e.length;n++){const r=Vs(e[n]);r&&(t+=r+" ")}else if(st(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const im="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",sm=Ya(im);function mh(e){return!!e||e===""}const we=e=>ht(e)?e:e==null?"":Ie(e)||st(e)&&(e.toString===fh||!De(e.toString))?JSON.stringify(e,vh,2):String(e),vh=(e,t)=>t&&t.__v_isRef?vh(e,t.value):pr(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,l],a)=>(n[So(r,a)+" =>"]=l,n),{})}:hh(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>So(n))}:Rr(t)?So(t):st(t)&&!Ie(t)&&!ph(t)?String(t):t,So=(e,t="")=>{var n;return Rr(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 Mt;class yh{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Mt,!t&&Mt&&(this.index=(Mt.scopes||(Mt.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Mt;try{return Mt=this,t()}finally{Mt=n}}}on(){Mt=this}off(){Mt=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const l=this.parent.scopes.pop();l&&l!==this&&(this.parent.scopes[this.index]=l,l.index=this.index)}this.parent=void 0,this._active=!1}}}function om(e){return new yh(e)}function am(e,t=Mt){t&&t.active&&t.effects.push(e)}function bh(){return Mt}function lm(e){Mt&&Mt.cleanups.push(e)}let jn;class Qa{constructor(t,n,r,l){this.fn=t,this.trigger=n,this.scheduler=r,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,am(this,l)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,rr();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(cm(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),ir()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=En,n=jn;try{return En=!0,jn=this,this._runnings++,dc(this),this.fn()}finally{fc(this),this._runnings--,jn=n,En=t}}stop(){var t;this.active&&(dc(this),fc(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function cm(e){return e.value}function dc(e){e._trackId++,e._depsLength=0}function fc(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)wh(e.deps[t],e);e.deps.length=e._depsLength}}function wh(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let En=!0,na=0;const _h=[];function rr(){_h.push(En),En=!1}function ir(){const e=_h.pop();En=e===void 0?!0:e}function Ja(){na++}function el(){for(na--;!na&&ra.length;)ra.shift()()}function $h(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const r=e.deps[e._depsLength];r!==t?(r&&wh(r,e),e.deps[e._depsLength++]=t):e._depsLength++}}const ra=[];function Sh(e,t,n){Ja();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&&ra.push(r.scheduler)))}el()}const Ch=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},ms=new WeakMap,Gn=Symbol(""),ia=Symbol("");function Tt(e,t,n){if(En&&jn){let r=ms.get(e);r||ms.set(e,r=new Map);let l=r.get(n);l||r.set(n,l=Ch(()=>r.delete(n))),$h(jn,l)}}function ln(e,t,n,r,l,a){const d=ms.get(e);if(!d)return;let p=[];if(t==="clear")p=[...d.values()];else if(n==="length"&&Ie(e)){const o=Number(r);d.forEach((g,i)=>{(i==="length"||!Rr(i)&&i>=o)&&p.push(g)})}else switch(n!==void 0&&p.push(d.get(n)),t){case"add":Ie(e)?Xa(n)&&p.push(d.get("length")):(p.push(d.get(Gn)),pr(e)&&p.push(d.get(ia)));break;case"delete":Ie(e)||(p.push(d.get(Gn)),pr(e)&&p.push(d.get(ia)));break;case"set":pr(e)&&p.push(d.get(Gn));break}Ja();for(const o of p)o&&Sh(o,4);el()}function um(e,t){var n;return(n=ms.get(e))==null?void 0:n.get(t)}const hm=Ya("__proto__,__v_isRef,__isVue"),Ah=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Rr)),pc=dm();function dm(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=Ge(this);for(let a=0,d=this.length;a<d;a++)Tt(r,"get",a+"");const l=r[t](...n);return l===-1||l===!1?r[t](...n.map(Ge)):l}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){rr(),Ja();const r=Ge(this)[t].apply(this,n);return el(),ir(),r}}),e}function fm(e){const t=Ge(this);return Tt(t,"has",e),t.hasOwnProperty(e)}class kh{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){const l=this._isReadonly,a=this._isShallow;if(n==="__v_isReactive")return!l;if(n==="__v_isReadonly")return l;if(n==="__v_isShallow")return a;if(n==="__v_raw")return r===(l?a?km:Th:a?Rh:Eh).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const d=Ie(t);if(!l){if(d&&Ue(pc,n))return Reflect.get(pc,n,r);if(n==="hasOwnProperty")return fm}const p=Reflect.get(t,n,r);return(Rr(n)?Ah.has(n):hm(n))||(l||Tt(t,"get",n),a)?p:wt(p)?d&&Xa(n)?p:p.value:st(p)?l?rl(p):Lr(p):p}}class xh extends kh{constructor(t=!1){super(!1,t)}set(t,n,r,l){let a=t[n];if(!this._isShallow){const o=br(a);if(!vs(r)&&!br(r)&&(a=Ge(a),r=Ge(r)),!Ie(t)&&wt(a)&&!wt(r))return o?!1:(a.value=r,!0)}const d=Ie(t)&&Xa(n)?Number(n)<t.length:Ue(t,n),p=Reflect.set(t,n,r,l);return t===Ge(l)&&(d?On(r,a)&&ln(t,"set",n,r):ln(t,"add",n,r)),p}deleteProperty(t,n){const r=Ue(t,n);t[n];const l=Reflect.deleteProperty(t,n);return l&&r&&ln(t,"delete",n,void 0),l}has(t,n){const r=Reflect.has(t,n);return(!Rr(n)||!Ah.has(n))&&Tt(t,"has",n),r}ownKeys(t){return Tt(t,"iterate",Ie(t)?"length":Gn),Reflect.ownKeys(t)}}class pm extends kh{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const gm=new xh,mm=new pm,vm=new xh(!0),tl=e=>e,js=e=>Reflect.getPrototypeOf(e);function ji(e,t,n=!1,r=!1){e=e.__v_raw;const l=Ge(e),a=Ge(t);n||(On(t,a)&&Tt(l,"get",t),Tt(l,"get",a));const{has:d}=js(l),p=r?tl:n?ol:ri;if(d.call(l,t))return p(e.get(t));if(d.call(l,a))return p(e.get(a));e!==l&&e.get(t)}function Gi(e,t=!1){const n=this.__v_raw,r=Ge(n),l=Ge(e);return t||(On(e,l)&&Tt(r,"has",e),Tt(r,"has",l)),e===l?n.has(e):n.has(e)||n.has(l)}function Yi(e,t=!1){return e=e.__v_raw,!t&&Tt(Ge(e),"iterate",Gn),Reflect.get(e,"size",e)}function gc(e){e=Ge(e);const t=Ge(this);return js(t).has.call(t,e)||(t.add(e),ln(t,"add",e,e)),this}function mc(e,t){t=Ge(t);const n=Ge(this),{has:r,get:l}=js(n);let a=r.call(n,e);a||(e=Ge(e),a=r.call(n,e));const d=l.call(n,e);return n.set(e,t),a?On(t,d)&&ln(n,"set",e,t):ln(n,"add",e,t),this}function vc(e){const t=Ge(this),{has:n,get:r}=js(t);let l=n.call(t,e);l||(e=Ge(e),l=n.call(t,e)),r&&r.call(t,e);const a=t.delete(e);return l&&ln(t,"delete",e,void 0),a}function yc(){const e=Ge(this),t=e.size!==0,n=e.clear();return t&&ln(e,"clear",void 0,void 0),n}function Ki(e,t){return function(r,l){const a=this,d=a.__v_raw,p=Ge(d),o=t?tl:e?ol:ri;return!e&&Tt(p,"iterate",Gn),d.forEach((g,i)=>r.call(l,o(g),o(i),a))}}function Zi(e,t,n){return function(...r){const l=this.__v_raw,a=Ge(l),d=pr(a),p=e==="entries"||e===Symbol.iterator&&d,o=e==="keys"&&d,g=l[e](...r),i=n?tl:t?ol:ri;return!t&&Tt(a,"iterate",o?ia:Gn),{next(){const{value:s,done:c}=g.next();return c?{value:s,done:c}:{value:p?[i(s[0]),i(s[1])]:i(s),done:c}},[Symbol.iterator](){return this}}}}function wn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ym(){const e={get(a){return ji(this,a)},get size(){return Yi(this)},has:Gi,add:gc,set:mc,delete:vc,clear:yc,forEach:Ki(!1,!1)},t={get(a){return ji(this,a,!1,!0)},get size(){return Yi(this)},has:Gi,add:gc,set:mc,delete:vc,clear:yc,forEach:Ki(!1,!0)},n={get(a){return ji(this,a,!0)},get size(){return Yi(this,!0)},has(a){return Gi.call(this,a,!0)},add:wn("add"),set:wn("set"),delete:wn("delete"),clear:wn("clear"),forEach:Ki(!0,!1)},r={get(a){return ji(this,a,!0,!0)},get size(){return Yi(this,!0)},has(a){return Gi.call(this,a,!0)},add:wn("add"),set:wn("set"),delete:wn("delete"),clear:wn("clear"),forEach:Ki(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(a=>{e[a]=Zi(a,!1,!1),n[a]=Zi(a,!0,!1),t[a]=Zi(a,!1,!0),r[a]=Zi(a,!0,!0)}),[e,n,t,r]}const[bm,wm,_m,$m]=ym();function nl(e,t){const n=t?e?$m:_m:e?wm:bm;return(r,l,a)=>l==="__v_isReactive"?!e:l==="__v_isReadonly"?e:l==="__v_raw"?r:Reflect.get(Ue(n,l)&&l in r?n:r,l,a)}const Sm={get:nl(!1,!1)},Cm={get:nl(!1,!0)},Am={get:nl(!0,!1)},Eh=new WeakMap,Rh=new WeakMap,Th=new WeakMap,km=new WeakMap;function xm(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Em(e){return e.__v_skip||!Object.isExtensible(e)?0:xm(qg(e))}function Lr(e){return br(e)?e:il(e,!1,gm,Sm,Eh)}function Lh(e){return il(e,!1,vm,Cm,Rh)}function rl(e){return il(e,!0,mm,Am,Th)}function il(e,t,n,r,l){if(!st(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=l.get(e);if(a)return a;const d=Em(e);if(d===0)return e;const p=new Proxy(e,d===2?r:n);return l.set(e,p),p}function gr(e){return br(e)?gr(e.__v_raw):!!(e&&e.__v_isReactive)}function br(e){return!!(e&&e.__v_isReadonly)}function vs(e){return!!(e&&e.__v_isShallow)}function Mh(e){return gr(e)||br(e)}function Ge(e){const t=e&&e.__v_raw;return t?Ge(t):e}function sl(e){return Object.isExtensible(e)&&gs(e,"__v_skip",!0),e}const ri=e=>st(e)?Lr(e):e,ol=e=>st(e)?rl(e):e;class Oh{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 Qa(()=>t(this._value),()=>Gr(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!l,this.__v_isReadonly=r}get value(){const t=Ge(this);return(!t._cacheable||t.effect.dirty)&&On(t._value,t._value=t.effect.run())&&Gr(t,4),al(t),t.effect._dirtyLevel>=2&&Gr(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function Rm(e,t,n=!1){let r,l;const a=De(e);return a?(r=e,l=Dt):(r=e.get,l=e.set),new Oh(r,l,a||!l,n)}function al(e){var t;En&&jn&&(e=Ge(e),$h(jn,(t=e.dep)!=null?t:e.dep=Ch(()=>e.dep=void 0,e instanceof Oh?e:void 0)))}function Gr(e,t=4,n){e=Ge(e);const r=e.dep;r&&Sh(r,t)}function wt(e){return!!(e&&e.__v_isRef===!0)}function Ke(e){return Ih(e,!1)}function Tm(e){return Ih(e,!0)}function Ih(e,t){return wt(e)?e:new Lm(e,t)}class Lm{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Ge(t),this._value=n?t:ri(t)}get value(){return al(this),this._value}set value(t){const n=this.__v_isShallow||vs(t)||br(t);t=n?t:Ge(t),On(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:ri(t),Gr(this,4))}}function Yn(e){return wt(e)?e.value:e}const Mm={get:(e,t,n)=>Yn(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const l=e[t];return wt(l)&&!wt(n)?(l.value=n,!0):Reflect.set(e,t,n,r)}};function Nh(e){return gr(e)?e:new Proxy(e,Mm)}class Om{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>al(this),()=>Gr(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function Dh(e){return new Om(e)}class Im{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 um(Ge(this._object),this._key)}}class Nm{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function ll(e,t,n){return wt(e)?e:De(e)?new Nm(e):st(e)&&arguments.length>1?Dm(e,t,n):Ke(e)}function Dm(e,t,n){const r=e[t];return wt(r)?r:new Im(e,t,n)}/**
771
+ * @vue/runtime-core v3.4.21
772
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
773
+ * @license MIT
774
+ **/function Rn(e,t,n,r){try{return r?e(...r):e()}catch(l){Gs(l,t,n)}}function Ht(e,t,n,r){if(De(e)){const a=Rn(e,t,n,r);return a&&dh(a)&&a.catch(d=>{Gs(d,t,n)}),a}const l=[];for(let a=0;a<e.length;a++)l.push(Ht(e[a],t,n,r));return l}function Gs(e,t,n,r=!0){const l=t?t.vnode:null;if(t){let a=t.parent;const d=t.proxy,p=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const g=a.ec;if(g){for(let i=0;i<g.length;i++)if(g[i](e,d,p)===!1)return}a=a.parent}const o=t.appContext.config.errorHandler;if(o){Rn(o,null,10,[e,d,p]);return}}Fm(e,n,l,r)}function Fm(e,t,n,r=!0){console.error(e)}let ii=!1,sa=!1;const bt=[];let Zt=0;const mr=[];let Sn=null,Hn=0;const Fh=Promise.resolve();let cl=null;function ul(e){const t=cl||Fh;return e?t.then(this?e.bind(this):e):t}function Pm(e){let t=Zt+1,n=bt.length;for(;t<n;){const r=t+n>>>1,l=bt[r],a=si(l);a<e||a===e&&l.pre?t=r+1:n=r}return t}function hl(e){(!bt.length||!bt.includes(e,ii&&e.allowRecurse?Zt+1:Zt))&&(e.id==null?bt.push(e):bt.splice(Pm(e.id),0,e),Ph())}function Ph(){!ii&&!sa&&(sa=!0,cl=Fh.then(Wh))}function Bm(e){const t=bt.indexOf(e);t>Zt&&bt.splice(t,1)}function Wm(e){Ie(e)?mr.push(...e):(!Sn||!Sn.includes(e,e.allowRecurse?Hn+1:Hn))&&mr.push(e),Ph()}function bc(e,t,n=ii?Zt+1:0){for(;n<bt.length;n++){const r=bt[n];if(r&&r.pre){if(e&&r.id!==e.uid)continue;bt.splice(n,1),n--,r()}}}function Bh(e){if(mr.length){const t=[...new Set(mr)].sort((n,r)=>si(n)-si(r));if(mr.length=0,Sn){Sn.push(...t);return}for(Sn=t,Hn=0;Hn<Sn.length;Hn++)Sn[Hn]();Sn=null,Hn=0}}const si=e=>e.id==null?1/0:e.id,Hm=(e,t)=>{const n=si(e)-si(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Wh(e){sa=!1,ii=!0,bt.sort(Hm);try{for(Zt=0;Zt<bt.length;Zt++){const t=bt[Zt];t&&t.active!==!1&&Rn(t,null,14)}}finally{Zt=0,bt.length=0,Bh(),ii=!1,cl=null,(bt.length||mr.length)&&Wh()}}function zm(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||et;let l=n;const a=t.startsWith("update:"),d=a&&t.slice(7);if(d&&d in r){const i=`${d==="modelValue"?"model":d}Modifiers`,{number:s,trim:c}=r[i]||et;c&&(l=n.map(u=>ht(u)?u.trim():u)),s&&(l=n.map(ta))}let p,o=r[p=$o(t)]||r[p=$o(Jt(t))];!o&&a&&(o=r[p=$o(Tr(t))]),o&&Ht(o,e,6,l);const g=r[p+"Once"];if(g){if(!e.emitted)e.emitted={};else if(e.emitted[p])return;e.emitted[p]=!0,Ht(g,e,6,l)}}function Hh(e,t,n=!1){const r=t.emitsCache,l=r.get(e);if(l!==void 0)return l;const a=e.emits;let d={},p=!1;if(!De(e)){const o=g=>{const i=Hh(g,t,!0);i&&(p=!0,mt(d,i))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return!a&&!p?(st(e)&&r.set(e,null),null):(Ie(a)?a.forEach(o=>d[o]=null):mt(d,a),st(e)&&r.set(e,d),d)}function Ys(e,t){return!e||!Hs(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ue(e,t[0].toLowerCase()+t.slice(1))||Ue(e,Tr(t))||Ue(e,t))}let At=null,Ks=null;function ys(e){const t=At;return At=e,Ks=e&&e.type.__scopeId||null,t}function dl(e){Ks=e}function fl(){Ks=null}function nt(e,t=At,n){if(!t||e._n)return e;const r=(...l)=>{r._d&&Tc(-1);const a=ys(t);let d;try{d=e(...l)}finally{ys(a),r._d&&Tc(1)}return d};return r._n=!0,r._c=!0,r._d=!0,r}function Co(e){const{type:t,vnode:n,proxy:r,withProxy:l,props:a,propsOptions:[d],slots:p,attrs:o,emit:g,render:i,renderCache:s,data:c,setupState:u,ctx:h,inheritAttrs:f}=e;let m,v;const y=ys(e);try{if(n.shapeFlag&4){const $=l||r,_=$;m=Kt(i.call(_,$,s,a,u,c,h)),v=o}else{const $=t;m=Kt($.length>1?$(a,{attrs:o,slots:p,emit:g}):$(a,null)),v=t.props?o:Um(o)}}catch($){Zr.length=0,Gs($,e,1),m=ae(qn)}let C=m;if(v&&f!==!1){const $=Object.keys(v),{shapeFlag:_}=C;$.length&&_&7&&(d&&$.some(Ka)&&(v=Vm(v,d)),C=wr(C,v))}return n.dirs&&(C=wr(C),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition&&(C.transition=n.transition),m=C,ys(y),m}const Um=e=>{let t;for(const n in e)(n==="class"||n==="style"||Hs(n))&&((t||(t={}))[n]=e[n]);return t},Vm=(e,t)=>{const n={};for(const r in e)(!Ka(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function jm(e,t,n){const{props:r,children:l,component:a}=e,{props:d,children:p,patchFlag:o}=t,g=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&o>=0){if(o&1024)return!0;if(o&16)return r?wc(r,d,g):!!d;if(o&8){const i=t.dynamicProps;for(let s=0;s<i.length;s++){const c=i[s];if(d[c]!==r[c]&&!Ys(g,c))return!0}}}else return(l||p)&&(!p||!p.$stable)?!0:r===d?!1:r?d?wc(r,d,g):!0:!!d;return!1}function wc(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 a=r[l];if(t[a]!==e[a]&&!Ys(n,a))return!0}return!1}function Gm({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 zh="components";function ne(e,t){return Km(zh,e,!0,t)||e}const Ym=Symbol.for("v-ndc");function Km(e,t,n=!0,r=!1){const l=At||gt;if(l){const a=l.type;if(e===zh){const p=Bv(a,!1);if(p&&(p===t||p===Jt(t)||p===ki(Jt(t))))return a}const d=_c(l[e]||a[e],t)||_c(l.appContext[e],t);return!d&&r?a:d}}function _c(e,t){return e&&(e[t]||e[Jt(t)]||e[ki(Jt(t))])}const Zm=e=>e.__isSuspense;function Xm(e,t){t&&t.pendingBranch?Ie(e)?t.effects.push(...e):t.effects.push(e):Wm(e)}const qm=Symbol.for("v-scx"),Qm=()=>zt(qm);function Uh(e,t){return pl(e,null,t)}const Xi={};function ot(e,t,n){return pl(e,t,n)}function pl(e,t,{immediate:n,deep:r,flush:l,once:a,onTrack:d,onTrigger:p}=et){if(t&&a){const b=t;t=(...E)=>{b(...E),_()}}const o=gt,g=b=>r===!0?b:Vn(b,r===!1?1:void 0);let i,s=!1,c=!1;if(wt(e)?(i=()=>e.value,s=vs(e)):gr(e)?(i=()=>g(e),s=!0):Ie(e)?(c=!0,s=e.some(b=>gr(b)||vs(b)),i=()=>e.map(b=>{if(wt(b))return b.value;if(gr(b))return g(b);if(De(b))return Rn(b,o,2)})):De(e)?t?i=()=>Rn(e,o,2):i=()=>(u&&u(),Ht(e,o,3,[h])):i=Dt,t&&r){const b=i;i=()=>Vn(b())}let u,h=b=>{u=C.onStop=()=>{Rn(b,o,4),u=C.onStop=void 0}},f;if(Qs)if(h=Dt,t?n&&Ht(t,o,3,[i(),c?[]:void 0,h]):i(),l==="sync"){const b=Qm();f=b.__watcherHandles||(b.__watcherHandles=[])}else return Dt;let m=c?new Array(e.length).fill(Xi):Xi;const v=()=>{if(!(!C.active||!C.dirty))if(t){const b=C.run();(r||s||(c?b.some((E,L)=>On(E,m[L])):On(b,m)))&&(u&&u(),Ht(t,o,3,[b,m===Xi?void 0:c&&m[0]===Xi?[]:m,h]),m=b)}else C.run()};v.allowRecurse=!!t;let y;l==="sync"?y=v:l==="post"?y=()=>Rt(v,o&&o.suspense):(v.pre=!0,o&&(v.id=o.uid),y=()=>hl(v));const C=new Qa(i,Dt,y),$=bh(),_=()=>{C.stop(),$&&Za($.effects,C)};return t?n?v():m=C.run():l==="post"?Rt(C.run.bind(C),o&&o.suspense):C.run(),f&&f.push(_),_}function Jm(e,t,n){const r=this.proxy,l=ht(e)?e.includes(".")?Vh(r,e):()=>r[e]:e.bind(r,r);let a;De(t)?a=t:(a=t.handler,n=t);const d=xi(this),p=pl(l,a.bind(r),n);return d(),p}function Vh(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 Vn(e,t,n=0,r){if(!st(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),wt(e))Vn(e.value,t,n,r);else if(Ie(e))for(let l=0;l<e.length;l++)Vn(e[l],t,n,r);else if(hh(e)||pr(e))e.forEach(l=>{Vn(l,t,n,r)});else if(ph(e))for(const l in e)Vn(e[l],t,n,r);return e}function gl(e,t){if(At===null)return e;const n=Js(At)||At.proxy,r=e.dirs||(e.dirs=[]);for(let l=0;l<t.length;l++){let[a,d,p,o=et]=t[l];a&&(De(a)&&(a={mounted:a,updated:a}),a.deep&&Vn(d),r.push({dir:a,instance:n,value:d,oldValue:void 0,arg:p,modifiers:o}))}return e}function Fn(e,t,n,r){const l=e.dirs,a=t&&t.dirs;for(let d=0;d<l.length;d++){const p=l[d];a&&(p.oldValue=a[d].value);let o=p.dir[r];o&&(rr(),Ht(o,n,8,[e.el,p,e,t]),ir())}}/*! #__NO_SIDE_EFFECTS__ */function Ce(e,t){return De(e)?mt({name:e.name},t,{setup:e}):e}const ts=e=>!!e.type.__asyncLoader,jh=e=>e.type.__isKeepAlive;function ev(e,t){Gh(e,"a",t)}function tv(e,t){Gh(e,"da",t)}function Gh(e,t,n=gt){const r=e.__wdc||(e.__wdc=()=>{let l=n;for(;l;){if(l.isDeactivated)return;l=l.parent}return e()});if(Zs(t,r,n),n){let l=n.parent;for(;l&&l.parent;)jh(l.parent.vnode)&&nv(r,t,n,l),l=l.parent}}function nv(e,t,n,r){const l=Zs(t,e,r,!0);Yh(()=>{Za(r[t],l)},n)}function Zs(e,t,n=gt,r=!1){if(n){const l=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...d)=>{if(n.isUnmounted)return;rr();const p=xi(n),o=Ht(t,n,e,d);return p(),ir(),o});return r?l.unshift(a):l.push(a),a}}const mn=e=>(t,n=gt)=>(!Qs||e==="sp")&&Zs(e,(...r)=>t(...r),n),rv=mn("bm"),ct=mn("m"),iv=mn("bu"),sv=mn("u"),ml=mn("bum"),Yh=mn("um"),ov=mn("sp"),av=mn("rtg"),lv=mn("rtc");function cv(e,t=gt){Zs("ec",e,t)}function Ot(e,t,n,r){let l;const a=n&&n[r];if(Ie(e)||ht(e)){l=new Array(e.length);for(let d=0,p=e.length;d<p;d++)l[d]=t(e[d],d,void 0,a&&a[d])}else if(typeof e=="number"){l=new Array(e);for(let d=0;d<e;d++)l[d]=t(d+1,d,void 0,a&&a[d])}else if(st(e))if(e[Symbol.iterator])l=Array.from(e,(d,p)=>t(d,p,void 0,a&&a[p]));else{const d=Object.keys(e);l=new Array(d.length);for(let p=0,o=d.length;p<o;p++){const g=d[p];l[p]=t(e[g],g,p,a&&a[p])}}else l=[];return n&&(n[r]=l),l}const oa=e=>e?sd(e)?Js(e)||e.proxy:oa(e.parent):null,Yr=mt(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=>oa(e.parent),$root:e=>oa(e.root),$emit:e=>e.emit,$options:e=>vl(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,hl(e.update)}),$nextTick:e=>e.n||(e.n=ul.bind(e.proxy)),$watch:e=>Jm.bind(e)}),Ao=(e,t)=>e!==et&&!e.__isScriptSetup&&Ue(e,t),uv={get({_:e},t){const{ctx:n,setupState:r,data:l,props:a,accessCache:d,type:p,appContext:o}=e;let g;if(t[0]!=="$"){const u=d[t];if(u!==void 0)switch(u){case 1:return r[t];case 2:return l[t];case 4:return n[t];case 3:return a[t]}else{if(Ao(r,t))return d[t]=1,r[t];if(l!==et&&Ue(l,t))return d[t]=2,l[t];if((g=e.propsOptions[0])&&Ue(g,t))return d[t]=3,a[t];if(n!==et&&Ue(n,t))return d[t]=4,n[t];aa&&(d[t]=0)}}const i=Yr[t];let s,c;if(i)return t==="$attrs"&&Tt(e,"get",t),i(e);if((s=p.__cssModules)&&(s=s[t]))return s;if(n!==et&&Ue(n,t))return d[t]=4,n[t];if(c=o.config.globalProperties,Ue(c,t))return c[t]},set({_:e},t,n){const{data:r,setupState:l,ctx:a}=e;return Ao(l,t)?(l[t]=n,!0):r!==et&&Ue(r,t)?(r[t]=n,!0):Ue(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:l,propsOptions:a}},d){let p;return!!n[d]||e!==et&&Ue(e,d)||Ao(t,d)||(p=a[0])&&Ue(p,d)||Ue(r,d)||Ue(Yr,d)||Ue(l.config.globalProperties,d)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ue(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function $c(e){return Ie(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let aa=!0;function hv(e){const t=vl(e),n=e.proxy,r=e.ctx;aa=!1,t.beforeCreate&&Sc(t.beforeCreate,e,"bc");const{data:l,computed:a,methods:d,watch:p,provide:o,inject:g,created:i,beforeMount:s,mounted:c,beforeUpdate:u,updated:h,activated:f,deactivated:m,beforeDestroy:v,beforeUnmount:y,destroyed:C,unmounted:$,render:_,renderTracked:b,renderTriggered:E,errorCaptured:L,serverPrefetch:k,expose:M,inheritAttrs:A,components:R,directives:S,filters:w}=t;if(g&&dv(g,r,null),d)for(const O in d){const I=d[O];De(I)&&(r[O]=I.bind(n))}if(l){const O=l.call(n,n);st(O)&&(e.data=Lr(O))}if(aa=!0,a)for(const O in a){const I=a[O],N=De(I)?I.bind(n,n):De(I.get)?I.get.bind(n,n):Dt,P=!De(I)&&De(I.set)?I.set.bind(n):Dt,H=Le({get:N,set:P});Object.defineProperty(r,O,{enumerable:!0,configurable:!0,get:()=>H.value,set:V=>H.value=V})}if(p)for(const O in p)Kh(p[O],r,n,O);if(o){const O=De(o)?o.call(n):o;Reflect.ownKeys(O).forEach(I=>{ns(I,O[I])})}i&&Sc(i,e,"c");function T(O,I){Ie(I)?I.forEach(N=>O(N.bind(n))):I&&O(I.bind(n))}if(T(rv,s),T(ct,c),T(iv,u),T(sv,h),T(ev,f),T(tv,m),T(cv,L),T(lv,b),T(av,E),T(ml,y),T(Yh,$),T(ov,k),Ie(M))if(M.length){const O=e.exposed||(e.exposed={});M.forEach(I=>{Object.defineProperty(O,I,{get:()=>n[I],set:N=>n[I]=N})})}else e.exposed||(e.exposed={});_&&e.render===Dt&&(e.render=_),A!=null&&(e.inheritAttrs=A),R&&(e.components=R),S&&(e.directives=S)}function dv(e,t,n=Dt){Ie(e)&&(e=la(e));for(const r in e){const l=e[r];let a;st(l)?"default"in l?a=zt(l.from||r,l.default,!0):a=zt(l.from||r):a=zt(l),wt(a)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>a.value,set:d=>a.value=d}):t[r]=a}}function Sc(e,t,n){Ht(Ie(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Kh(e,t,n,r){const l=r.includes(".")?Vh(n,r):()=>n[r];if(ht(e)){const a=t[e];De(a)&&ot(l,a)}else if(De(e))ot(l,e.bind(n));else if(st(e))if(Ie(e))e.forEach(a=>Kh(a,t,n,r));else{const a=De(e.handler)?e.handler.bind(n):t[e.handler];De(a)&&ot(l,a,e)}}function vl(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:l,optionsCache:a,config:{optionMergeStrategies:d}}=e.appContext,p=a.get(t);let o;return p?o=p:!l.length&&!n&&!r?o=t:(o={},l.length&&l.forEach(g=>bs(o,g,d,!0)),bs(o,t,d)),st(t)&&a.set(t,o),o}function bs(e,t,n,r=!1){const{mixins:l,extends:a}=t;a&&bs(e,a,n,!0),l&&l.forEach(d=>bs(e,d,n,!0));for(const d in t)if(!(r&&d==="expose")){const p=fv[d]||n&&n[d];e[d]=p?p(e[d],t[d]):t[d]}return e}const fv={data:Cc,props:Ac,emits:Ac,methods:zr,computed:zr,beforeCreate:Ct,created:Ct,beforeMount:Ct,mounted:Ct,beforeUpdate:Ct,updated:Ct,beforeDestroy:Ct,beforeUnmount:Ct,destroyed:Ct,unmounted:Ct,activated:Ct,deactivated:Ct,errorCaptured:Ct,serverPrefetch:Ct,components:zr,directives:zr,watch:gv,provide:Cc,inject:pv};function Cc(e,t){return t?e?function(){return mt(De(e)?e.call(this,this):e,De(t)?t.call(this,this):t)}:t:e}function pv(e,t){return zr(la(e),la(t))}function la(e){if(Ie(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ct(e,t){return e?[...new Set([].concat(e,t))]:t}function zr(e,t){return e?mt(Object.create(null),e,t):t}function Ac(e,t){return e?Ie(e)&&Ie(t)?[...new Set([...e,...t])]:mt(Object.create(null),$c(e),$c(t??{})):t}function gv(e,t){if(!e)return t;if(!t)return e;const n=mt(Object.create(null),e);for(const r in t)n[r]=Ct(e[r],t[r]);return n}function Zh(){return{app:null,config:{isNativeTag:Zg,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 mv=0;function vv(e,t){return function(r,l=null){De(r)||(r=mt({},r)),l!=null&&!st(l)&&(l=null);const a=Zh(),d=new WeakSet;let p=!1;const o=a.app={_uid:mv++,_component:r,_props:l,_container:null,_context:a,_instance:null,version:Hv,get config(){return a.config},set config(g){},use(g,...i){return d.has(g)||(g&&De(g.install)?(d.add(g),g.install(o,...i)):De(g)&&(d.add(g),g(o,...i))),o},mixin(g){return a.mixins.includes(g)||a.mixins.push(g),o},component(g,i){return i?(a.components[g]=i,o):a.components[g]},directive(g,i){return i?(a.directives[g]=i,o):a.directives[g]},mount(g,i,s){if(!p){const c=ae(r,l);return c.appContext=a,s===!0?s="svg":s===!1&&(s=void 0),i&&t?t(c,g):e(c,g,s),p=!0,o._container=g,g.__vue_app__=o,Js(c.component)||c.component.proxy}},unmount(){p&&(e(null,o._container),delete o._container.__vue_app__)},provide(g,i){return a.provides[g]=i,o},runWithContext(g){const i=Kr;Kr=o;try{return g()}finally{Kr=i}}};return o}}let Kr=null;function ns(e,t){if(gt){let n=gt.provides;const r=gt.parent&&gt.parent.provides;r===n&&(n=gt.provides=Object.create(r)),n[e]=t}}function zt(e,t,n=!1){const r=gt||At;if(r||Kr){const l=r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:Kr._context.provides;if(l&&e in l)return l[e];if(arguments.length>1)return n&&De(t)?t.call(r&&r.proxy):t}}function yv(e,t,n,r=!1){const l={},a={};gs(a,qs,1),e.propsDefaults=Object.create(null),Xh(e,t,l,a);for(const d in e.propsOptions[0])d in l||(l[d]=void 0);n?e.props=r?l:Lh(l):e.type.props?e.props=l:e.props=a,e.attrs=a}function bv(e,t,n,r){const{props:l,attrs:a,vnode:{patchFlag:d}}=e,p=Ge(l),[o]=e.propsOptions;let g=!1;if((r||d>0)&&!(d&16)){if(d&8){const i=e.vnode.dynamicProps;for(let s=0;s<i.length;s++){let c=i[s];if(Ys(e.emitsOptions,c))continue;const u=t[c];if(o)if(Ue(a,c))u!==a[c]&&(a[c]=u,g=!0);else{const h=Jt(c);l[h]=ca(o,p,h,u,e,!1)}else u!==a[c]&&(a[c]=u,g=!0)}}}else{Xh(e,t,l,a)&&(g=!0);let i;for(const s in p)(!t||!Ue(t,s)&&((i=Tr(s))===s||!Ue(t,i)))&&(o?n&&(n[s]!==void 0||n[i]!==void 0)&&(l[s]=ca(o,p,s,void 0,e,!0)):delete l[s]);if(a!==p)for(const s in a)(!t||!Ue(t,s))&&(delete a[s],g=!0)}g&&ln(e,"set","$attrs")}function Xh(e,t,n,r){const[l,a]=e.propsOptions;let d=!1,p;if(t)for(let o in t){if(jr(o))continue;const g=t[o];let i;l&&Ue(l,i=Jt(o))?!a||!a.includes(i)?n[i]=g:(p||(p={}))[i]=g:Ys(e.emitsOptions,o)||(!(o in r)||g!==r[o])&&(r[o]=g,d=!0)}if(a){const o=Ge(n),g=p||et;for(let i=0;i<a.length;i++){const s=a[i];n[s]=ca(l,o,s,g[s],e,!Ue(g,s))}}return d}function ca(e,t,n,r,l,a){const d=e[n];if(d!=null){const p=Ue(d,"default");if(p&&r===void 0){const o=d.default;if(d.type!==Function&&!d.skipFactory&&De(o)){const{propsDefaults:g}=l;if(n in g)r=g[n];else{const i=xi(l);r=g[n]=o.call(null,t),i()}}else r=o}d[0]&&(a&&!p?r=!1:d[1]&&(r===""||r===Tr(n))&&(r=!0))}return r}function qh(e,t,n=!1){const r=t.propsCache,l=r.get(e);if(l)return l;const a=e.props,d={},p=[];let o=!1;if(!De(e)){const i=s=>{o=!0;const[c,u]=qh(s,t,!0);mt(d,c),u&&p.push(...u)};!n&&t.mixins.length&&t.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}if(!a&&!o)return st(e)&&r.set(e,fr),fr;if(Ie(a))for(let i=0;i<a.length;i++){const s=Jt(a[i]);kc(s)&&(d[s]=et)}else if(a)for(const i in a){const s=Jt(i);if(kc(s)){const c=a[i],u=d[s]=Ie(c)||De(c)?{type:c}:mt({},c);if(u){const h=Rc(Boolean,u.type),f=Rc(String,u.type);u[0]=h>-1,u[1]=f<0||h<f,(h>-1||Ue(u,"default"))&&p.push(s)}}}const g=[d,p];return st(e)&&r.set(e,g),g}function kc(e){return e[0]!=="$"&&!jr(e)}function xc(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Ec(e,t){return xc(e)===xc(t)}function Rc(e,t){return Ie(t)?t.findIndex(n=>Ec(n,e)):De(t)&&Ec(t,e)?0:-1}const Qh=e=>e[0]==="_"||e==="$stable",yl=e=>Ie(e)?e.map(Kt):[Kt(e)],wv=(e,t,n)=>{if(t._n)return t;const r=nt((...l)=>yl(t(...l)),n);return r._c=!1,r},Jh=(e,t,n)=>{const r=e._ctx;for(const l in e){if(Qh(l))continue;const a=e[l];if(De(a))t[l]=wv(l,a,r);else if(a!=null){const d=yl(a);t[l]=()=>d}}},ed=(e,t)=>{const n=yl(t);e.slots.default=()=>n},_v=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Ge(t),gs(t,"_",n)):Jh(t,e.slots={})}else e.slots={},t&&ed(e,t);gs(e.slots,qs,1)},$v=(e,t,n)=>{const{vnode:r,slots:l}=e;let a=!0,d=et;if(r.shapeFlag&32){const p=t._;p?n&&p===1?a=!1:(mt(l,t),!n&&p===1&&delete l._):(a=!t.$stable,Jh(t,l)),d=t}else t&&(ed(e,t),d={default:1});if(a)for(const p in l)!Qh(p)&&d[p]==null&&delete l[p]};function ua(e,t,n,r,l=!1){if(Ie(e)){e.forEach((c,u)=>ua(c,t&&(Ie(t)?t[u]:t),n,r,l));return}if(ts(r)&&!l)return;const a=r.shapeFlag&4?Js(r.component)||r.component.proxy:r.el,d=l?null:a,{i:p,r:o}=e,g=t&&t.r,i=p.refs===et?p.refs={}:p.refs,s=p.setupState;if(g!=null&&g!==o&&(ht(g)?(i[g]=null,Ue(s,g)&&(s[g]=null)):wt(g)&&(g.value=null)),De(o))Rn(o,p,12,[d,i]);else{const c=ht(o),u=wt(o);if(c||u){const h=()=>{if(e.f){const f=c?Ue(s,o)?s[o]:i[o]:o.value;l?Ie(f)&&Za(f,a):Ie(f)?f.includes(a)||f.push(a):c?(i[o]=[a],Ue(s,o)&&(s[o]=i[o])):(o.value=[a],e.k&&(i[e.k]=o.value))}else c?(i[o]=d,Ue(s,o)&&(s[o]=d)):u&&(o.value=d,e.k&&(i[e.k]=d))};d?(h.id=-1,Rt(h,n)):h()}}}const Rt=Xm;function Sv(e){return Cv(e)}function Cv(e,t){const n=gh();n.__VUE__=!0;const{insert:r,remove:l,patchProp:a,createElement:d,createText:p,createComment:o,setText:g,setElementText:i,parentNode:s,nextSibling:c,setScopeId:u=Dt,insertStaticContent:h}=e,f=(F,B,Y,ee=null,J=null,le=null,pe=void 0,ce=null,fe=!!B.dynamicChildren)=>{if(F===B)return;F&&!Fr(F,B)&&(ee=z(F),V(F,J,le,!0),F=null),B.patchFlag===-2&&(fe=!1,B.dynamicChildren=null);const{type:se,ref:me,shapeFlag:xe}=B;switch(se){case Xs:m(F,B,Y,ee);break;case qn:v(F,B,Y,ee);break;case rs:F==null&&y(B,Y,ee,pe);break;case Be:R(F,B,Y,ee,J,le,pe,ce,fe);break;default:xe&1?_(F,B,Y,ee,J,le,pe,ce,fe):xe&6?S(F,B,Y,ee,J,le,pe,ce,fe):(xe&64||xe&128)&&se.process(F,B,Y,ee,J,le,pe,ce,fe,Q)}me!=null&&J&&ua(me,F&&F.ref,le,B||F,!B)},m=(F,B,Y,ee)=>{if(F==null)r(B.el=p(B.children),Y,ee);else{const J=B.el=F.el;B.children!==F.children&&g(J,B.children)}},v=(F,B,Y,ee)=>{F==null?r(B.el=o(B.children||""),Y,ee):B.el=F.el},y=(F,B,Y,ee)=>{[F.el,F.anchor]=h(F.children,B,Y,ee,F.el,F.anchor)},C=({el:F,anchor:B},Y,ee)=>{let J;for(;F&&F!==B;)J=c(F),r(F,Y,ee),F=J;r(B,Y,ee)},$=({el:F,anchor:B})=>{let Y;for(;F&&F!==B;)Y=c(F),l(F),F=Y;l(B)},_=(F,B,Y,ee,J,le,pe,ce,fe)=>{B.type==="svg"?pe="svg":B.type==="math"&&(pe="mathml"),F==null?b(B,Y,ee,J,le,pe,ce,fe):k(F,B,J,le,pe,ce,fe)},b=(F,B,Y,ee,J,le,pe,ce)=>{let fe,se;const{props:me,shapeFlag:xe,transition:ke,dirs:X}=F;if(fe=F.el=d(F.type,le,me&&me.is,me),xe&8?i(fe,F.children):xe&16&&L(F.children,fe,null,ee,J,ko(F,le),pe,ce),X&&Fn(F,null,ee,"created"),E(fe,F,F.scopeId,pe,ee),me){for(const de in me)de!=="value"&&!jr(de)&&a(fe,de,null,me[de],le,F.children,ee,J,q);"value"in me&&a(fe,"value",null,me.value,le),(se=me.onVnodeBeforeMount)&&Yt(se,ee,F)}X&&Fn(F,null,ee,"beforeMount");const oe=Av(J,ke);oe&&ke.beforeEnter(fe),r(fe,B,Y),((se=me&&me.onVnodeMounted)||oe||X)&&Rt(()=>{se&&Yt(se,ee,F),oe&&ke.enter(fe),X&&Fn(F,null,ee,"mounted")},J)},E=(F,B,Y,ee,J)=>{if(Y&&u(F,Y),ee)for(let le=0;le<ee.length;le++)u(F,ee[le]);if(J){let le=J.subTree;if(B===le){const pe=J.vnode;E(F,pe,pe.scopeId,pe.slotScopeIds,J.parent)}}},L=(F,B,Y,ee,J,le,pe,ce,fe=0)=>{for(let se=fe;se<F.length;se++){const me=F[se]=ce?Cn(F[se]):Kt(F[se]);f(null,me,B,Y,ee,J,le,pe,ce)}},k=(F,B,Y,ee,J,le,pe)=>{const ce=B.el=F.el;let{patchFlag:fe,dynamicChildren:se,dirs:me}=B;fe|=F.patchFlag&16;const xe=F.props||et,ke=B.props||et;let X;if(Y&&Pn(Y,!1),(X=ke.onVnodeBeforeUpdate)&&Yt(X,Y,B,F),me&&Fn(B,F,Y,"beforeUpdate"),Y&&Pn(Y,!0),se?M(F.dynamicChildren,se,ce,Y,ee,ko(B,J),le):pe||I(F,B,ce,null,Y,ee,ko(B,J),le,!1),fe>0){if(fe&16)A(ce,B,xe,ke,Y,ee,J);else if(fe&2&&xe.class!==ke.class&&a(ce,"class",null,ke.class,J),fe&4&&a(ce,"style",xe.style,ke.style,J),fe&8){const oe=B.dynamicProps;for(let de=0;de<oe.length;de++){const _e=oe[de],Oe=xe[_e],He=ke[_e];(He!==Oe||_e==="value")&&a(ce,_e,Oe,He,J,F.children,Y,ee,q)}}fe&1&&F.children!==B.children&&i(ce,B.children)}else!pe&&se==null&&A(ce,B,xe,ke,Y,ee,J);((X=ke.onVnodeUpdated)||me)&&Rt(()=>{X&&Yt(X,Y,B,F),me&&Fn(B,F,Y,"updated")},ee)},M=(F,B,Y,ee,J,le,pe)=>{for(let ce=0;ce<B.length;ce++){const fe=F[ce],se=B[ce],me=fe.el&&(fe.type===Be||!Fr(fe,se)||fe.shapeFlag&70)?s(fe.el):Y;f(fe,se,me,null,ee,J,le,pe,!0)}},A=(F,B,Y,ee,J,le,pe)=>{if(Y!==ee){if(Y!==et)for(const ce in Y)!jr(ce)&&!(ce in ee)&&a(F,ce,Y[ce],null,pe,B.children,J,le,q);for(const ce in ee){if(jr(ce))continue;const fe=ee[ce],se=Y[ce];fe!==se&&ce!=="value"&&a(F,ce,se,fe,pe,B.children,J,le,q)}"value"in ee&&a(F,"value",Y.value,ee.value,pe)}},R=(F,B,Y,ee,J,le,pe,ce,fe)=>{const se=B.el=F?F.el:p(""),me=B.anchor=F?F.anchor:p("");let{patchFlag:xe,dynamicChildren:ke,slotScopeIds:X}=B;X&&(ce=ce?ce.concat(X):X),F==null?(r(se,Y,ee),r(me,Y,ee),L(B.children||[],Y,me,J,le,pe,ce,fe)):xe>0&&xe&64&&ke&&F.dynamicChildren?(M(F.dynamicChildren,ke,Y,J,le,pe,ce),(B.key!=null||J&&B===J.subTree)&&td(F,B,!0)):I(F,B,Y,me,J,le,pe,ce,fe)},S=(F,B,Y,ee,J,le,pe,ce,fe)=>{B.slotScopeIds=ce,F==null?B.shapeFlag&512?J.ctx.activate(B,Y,ee,pe,fe):w(B,Y,ee,J,le,pe,fe):x(F,B,fe)},w=(F,B,Y,ee,J,le,pe)=>{const ce=F.component=Iv(F,ee,J);if(jh(F)&&(ce.ctx.renderer=Q),Nv(ce),ce.asyncDep){if(J&&J.registerDep(ce,T),!F.el){const fe=ce.subTree=ae(qn);v(null,fe,B,Y)}}else T(ce,F,B,Y,J,le,pe)},x=(F,B,Y)=>{const ee=B.component=F.component;if(jm(F,B,Y))if(ee.asyncDep&&!ee.asyncResolved){O(ee,B,Y);return}else ee.next=B,Bm(ee.update),ee.effect.dirty=!0,ee.update();else B.el=F.el,ee.vnode=B},T=(F,B,Y,ee,J,le,pe)=>{const ce=()=>{if(F.isMounted){let{next:me,bu:xe,u:ke,parent:X,vnode:oe}=F;{const qe=nd(F);if(qe){me&&(me.el=oe.el,O(F,me,pe)),qe.asyncDep.then(()=>{F.isUnmounted||ce()});return}}let de=me,_e;Pn(F,!1),me?(me.el=oe.el,O(F,me,pe)):me=oe,xe&&es(xe),(_e=me.props&&me.props.onVnodeBeforeUpdate)&&Yt(_e,X,me,oe),Pn(F,!0);const Oe=Co(F),He=F.subTree;F.subTree=Oe,f(He,Oe,s(He.el),z(He),F,J,le),me.el=Oe.el,de===null&&Gm(F,Oe.el),ke&&Rt(ke,J),(_e=me.props&&me.props.onVnodeUpdated)&&Rt(()=>Yt(_e,X,me,oe),J)}else{let me;const{el:xe,props:ke}=B,{bm:X,m:oe,parent:de}=F,_e=ts(B);if(Pn(F,!1),X&&es(X),!_e&&(me=ke&&ke.onVnodeBeforeMount)&&Yt(me,de,B),Pn(F,!0),xe&&Ae){const Oe=()=>{F.subTree=Co(F),Ae(xe,F.subTree,F,J,null)};_e?B.type.__asyncLoader().then(()=>!F.isUnmounted&&Oe()):Oe()}else{const Oe=F.subTree=Co(F);f(null,Oe,Y,ee,F,J,le),B.el=Oe.el}if(oe&&Rt(oe,J),!_e&&(me=ke&&ke.onVnodeMounted)){const Oe=B;Rt(()=>Yt(me,de,Oe),J)}(B.shapeFlag&256||de&&ts(de.vnode)&&de.vnode.shapeFlag&256)&&F.a&&Rt(F.a,J),F.isMounted=!0,B=Y=ee=null}},fe=F.effect=new Qa(ce,Dt,()=>hl(se),F.scope),se=F.update=()=>{fe.dirty&&fe.run()};se.id=F.uid,Pn(F,!0),se()},O=(F,B,Y)=>{B.component=F;const ee=F.vnode.props;F.vnode=B,F.next=null,bv(F,B.props,ee,Y),$v(F,B.children,Y),rr(),bc(F),ir()},I=(F,B,Y,ee,J,le,pe,ce,fe=!1)=>{const se=F&&F.children,me=F?F.shapeFlag:0,xe=B.children,{patchFlag:ke,shapeFlag:X}=B;if(ke>0){if(ke&128){P(se,xe,Y,ee,J,le,pe,ce,fe);return}else if(ke&256){N(se,xe,Y,ee,J,le,pe,ce,fe);return}}X&8?(me&16&&q(se,J,le),xe!==se&&i(Y,xe)):me&16?X&16?P(se,xe,Y,ee,J,le,pe,ce,fe):q(se,J,le,!0):(me&8&&i(Y,""),X&16&&L(xe,Y,ee,J,le,pe,ce,fe))},N=(F,B,Y,ee,J,le,pe,ce,fe)=>{F=F||fr,B=B||fr;const se=F.length,me=B.length,xe=Math.min(se,me);let ke;for(ke=0;ke<xe;ke++){const X=B[ke]=fe?Cn(B[ke]):Kt(B[ke]);f(F[ke],X,Y,null,J,le,pe,ce,fe)}se>me?q(F,J,le,!0,!1,xe):L(B,Y,ee,J,le,pe,ce,fe,xe)},P=(F,B,Y,ee,J,le,pe,ce,fe)=>{let se=0;const me=B.length;let xe=F.length-1,ke=me-1;for(;se<=xe&&se<=ke;){const X=F[se],oe=B[se]=fe?Cn(B[se]):Kt(B[se]);if(Fr(X,oe))f(X,oe,Y,null,J,le,pe,ce,fe);else break;se++}for(;se<=xe&&se<=ke;){const X=F[xe],oe=B[ke]=fe?Cn(B[ke]):Kt(B[ke]);if(Fr(X,oe))f(X,oe,Y,null,J,le,pe,ce,fe);else break;xe--,ke--}if(se>xe){if(se<=ke){const X=ke+1,oe=X<me?B[X].el:ee;for(;se<=ke;)f(null,B[se]=fe?Cn(B[se]):Kt(B[se]),Y,oe,J,le,pe,ce,fe),se++}}else if(se>ke)for(;se<=xe;)V(F[se],J,le,!0),se++;else{const X=se,oe=se,de=new Map;for(se=oe;se<=ke;se++){const Xe=B[se]=fe?Cn(B[se]):Kt(B[se]);Xe.key!=null&&de.set(Xe.key,se)}let _e,Oe=0;const He=ke-oe+1;let qe=!1,Je=0;const Ye=new Array(He);for(se=0;se<He;se++)Ye[se]=0;for(se=X;se<=xe;se++){const Xe=F[se];if(Oe>=He){V(Xe,J,le,!0);continue}let yt;if(Xe.key!=null)yt=de.get(Xe.key);else for(_e=oe;_e<=ke;_e++)if(Ye[_e-oe]===0&&Fr(Xe,B[_e])){yt=_e;break}yt===void 0?V(Xe,J,le,!0):(Ye[yt-oe]=se+1,yt>=Je?Je=yt:qe=!0,f(Xe,B[yt],Y,null,J,le,pe,ce,fe),Oe++)}const Ve=qe?kv(Ye):fr;for(_e=Ve.length-1,se=He-1;se>=0;se--){const Xe=oe+se,yt=B[Xe],Dr=Xe+1<me?B[Xe+1].el:ee;Ye[se]===0?f(null,yt,Y,Dr,J,le,pe,ce,fe):qe&&(_e<0||se!==Ve[_e]?H(yt,Y,Dr,2):_e--)}}},H=(F,B,Y,ee,J=null)=>{const{el:le,type:pe,transition:ce,children:fe,shapeFlag:se}=F;if(se&6){H(F.component.subTree,B,Y,ee);return}if(se&128){F.suspense.move(B,Y,ee);return}if(se&64){pe.move(F,B,Y,Q);return}if(pe===Be){r(le,B,Y);for(let xe=0;xe<fe.length;xe++)H(fe[xe],B,Y,ee);r(F.anchor,B,Y);return}if(pe===rs){C(F,B,Y);return}if(ee!==2&&se&1&&ce)if(ee===0)ce.beforeEnter(le),r(le,B,Y),Rt(()=>ce.enter(le),J);else{const{leave:xe,delayLeave:ke,afterLeave:X}=ce,oe=()=>r(le,B,Y),de=()=>{xe(le,()=>{oe(),X&&X()})};ke?ke(le,oe,de):de()}else r(le,B,Y)},V=(F,B,Y,ee=!1,J=!1)=>{const{type:le,props:pe,ref:ce,children:fe,dynamicChildren:se,shapeFlag:me,patchFlag:xe,dirs:ke}=F;if(ce!=null&&ua(ce,null,Y,F,!0),me&256){B.ctx.deactivate(F);return}const X=me&1&&ke,oe=!ts(F);let de;if(oe&&(de=pe&&pe.onVnodeBeforeUnmount)&&Yt(de,B,F),me&6)j(F.component,Y,ee);else{if(me&128){F.suspense.unmount(Y,ee);return}X&&Fn(F,null,B,"beforeUnmount"),me&64?F.type.remove(F,B,Y,J,Q,ee):se&&(le!==Be||xe>0&&xe&64)?q(se,B,Y,!1,!0):(le===Be&&xe&384||!J&&me&16)&&q(fe,B,Y),ee&&U(F)}(oe&&(de=pe&&pe.onVnodeUnmounted)||X)&&Rt(()=>{de&&Yt(de,B,F),X&&Fn(F,null,B,"unmounted")},Y)},U=F=>{const{type:B,el:Y,anchor:ee,transition:J}=F;if(B===Be){W(Y,ee);return}if(B===rs){$(F);return}const le=()=>{l(Y),J&&!J.persisted&&J.afterLeave&&J.afterLeave()};if(F.shapeFlag&1&&J&&!J.persisted){const{leave:pe,delayLeave:ce}=J,fe=()=>pe(Y,le);ce?ce(F.el,le,fe):fe()}else le()},W=(F,B)=>{let Y;for(;F!==B;)Y=c(F),l(F),F=Y;l(B)},j=(F,B,Y)=>{const{bum:ee,scope:J,update:le,subTree:pe,um:ce}=F;ee&&es(ee),J.stop(),le&&(le.active=!1,V(pe,F,B,Y)),ce&&Rt(ce,B),Rt(()=>{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,Y,ee=!1,J=!1,le=0)=>{for(let pe=le;pe<F.length;pe++)V(F[pe],B,Y,ee,J)},z=F=>F.shapeFlag&6?z(F.component.subTree):F.shapeFlag&128?F.suspense.next():c(F.anchor||F.el);let Z=!1;const K=(F,B,Y)=>{F==null?B._vnode&&V(B._vnode,null,null,!0):f(B._vnode||null,F,B,null,null,null,Y),Z||(Z=!0,bc(),Bh(),Z=!1),B._vnode=F},Q={p:f,um:V,m:H,r:U,mt:w,mc:L,pc:I,pbc:M,n:z,o:e};let he,Ae;return t&&([he,Ae]=t(Q)),{render:K,hydrate:he,createApp:vv(K,he)}}function ko({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 Pn({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Av(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function td(e,t,n=!1){const r=e.children,l=t.children;if(Ie(r)&&Ie(l))for(let a=0;a<r.length;a++){const d=r[a];let p=l[a];p.shapeFlag&1&&!p.dynamicChildren&&((p.patchFlag<=0||p.patchFlag===32)&&(p=l[a]=Cn(l[a]),p.el=d.el),n||td(d,p)),p.type===Xs&&(p.el=d.el)}}function kv(e){const t=e.slice(),n=[0];let r,l,a,d,p;const o=e.length;for(r=0;r<o;r++){const g=e[r];if(g!==0){if(l=n[n.length-1],e[l]<g){t[r]=l,n.push(r);continue}for(a=0,d=n.length-1;a<d;)p=a+d>>1,e[n[p]]<g?a=p+1:d=p;g<e[n[a]]&&(a>0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,d=n[a-1];a-- >0;)n[a]=d,d=t[d];return n}function nd(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:nd(t)}const xv=e=>e.__isTeleport,Be=Symbol.for("v-fgt"),Xs=Symbol.for("v-txt"),qn=Symbol.for("v-cmt"),rs=Symbol.for("v-stc"),Zr=[];let Bt=null;function G(e=!1){Zr.push(Bt=e?null:[])}function Ev(){Zr.pop(),Bt=Zr[Zr.length-1]||null}let oi=1;function Tc(e){oi+=e}function rd(e){return e.dynamicChildren=oi>0?Bt||fr:null,Ev(),oi>0&&Bt&&Bt.push(e),e}function ie(e,t,n,r,l,a){return rd(D(e,t,n,r,l,a,!0))}function Se(e,t,n,r,l){return rd(ae(e,t,n,r,l,!0))}function ha(e){return e?e.__v_isVNode===!0:!1}function Fr(e,t){return e.type===t.type&&e.key===t.key}const qs="__vInternal",id=({key:e})=>e??null,is=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ht(e)||wt(e)||De(e)?{i:At,r:e,k:t,f:!!n}:e:null);function D(e,t=null,n=null,r=0,l=null,a=e===Be?0:1,d=!1,p=!1){const o={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&id(t),ref:t&&is(t),scopeId:Ks,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:a,patchFlag:r,dynamicProps:l,dynamicChildren:null,appContext:null,ctx:At};return p?(wl(o,n),a&128&&e.normalize(o)):n&&(o.shapeFlag|=ht(n)?8:16),oi>0&&!d&&Bt&&(o.patchFlag>0||a&6)&&o.patchFlag!==32&&Bt.push(o),o}const ae=Rv;function Rv(e,t=null,n=null,r=0,l=null,a=!1){if((!e||e===Ym)&&(e=qn),ha(e)){const p=wr(e,t,!0);return n&&wl(p,n),oi>0&&!a&&Bt&&(p.shapeFlag&6?Bt[Bt.indexOf(e)]=p:Bt.push(p)),p.patchFlag|=-2,p}if(Wv(e)&&(e=e.__vccOpts),t){t=Tv(t);let{class:p,style:o}=t;p&&!ht(p)&&(t.class=Vs(p)),st(o)&&(Mh(o)&&!Ie(o)&&(o=mt({},o)),t.style=qa(o))}const d=ht(e)?1:Zm(e)?128:xv(e)?64:st(e)?4:De(e)?2:0;return D(e,t,n,r,l,d,a,!0)}function Tv(e){return e?Mh(e)||qs in e?mt({},e):e:null}function wr(e,t,n=!1){const{props:r,ref:l,patchFlag:a,children:d}=e,p=t?Lv(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&id(p),ref:t&&t.ref?n&&l?Ie(l)?l.concat(is(t)):[l,is(t)]:is(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:d,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Be?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&wr(e.ssContent),ssFallback:e.ssFallback&&wr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function rt(e=" ",t=0){return ae(Xs,null,e,t)}function bl(e,t){const n=ae(rs,null,e);return n.staticCount=t,n}function ge(e="",t=!1){return t?(G(),Se(qn,null,e)):ae(qn,null,e)}function Kt(e){return e==null||typeof e=="boolean"?ae(qn):Ie(e)?ae(Be,null,e.slice()):typeof e=="object"?Cn(e):ae(Xs,null,String(e))}function Cn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:wr(e)}function wl(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Ie(t))n=16;else if(typeof t=="object")if(r&65){const l=t.default;l&&(l._c&&(l._d=!1),wl(e,l()),l._c&&(l._d=!0));return}else{n=32;const l=t._;!l&&!(qs in t)?t._ctx=At:l===3&&At&&(At.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else De(t)?(t={default:t,_ctx:At},n=32):(t=String(t),r&64?(n=16,t=[rt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Lv(...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=Vs([t.class,r.class]));else if(l==="style")t.style=qa([t.style,r.style]);else if(Hs(l)){const a=t[l],d=r[l];d&&a!==d&&!(Ie(a)&&a.includes(d))&&(t[l]=a?[].concat(a,d):d)}else l!==""&&(t[l]=r[l])}return t}function Yt(e,t,n,r=null){Ht(e,t,7,[n,r])}const Mv=Zh();let Ov=0;function Iv(e,t,n){const r=e.type,l=(t?t.appContext:e.appContext)||Mv,a={uid:Ov++,vnode:e,type:r,parent:t,appContext:l,root:null,next:null,subTree:null,effect:null,update:null,scope:new yh(!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:qh(r,l),emitsOptions:Hh(r,l),emit:null,emitted:null,propsDefaults:et,inheritAttrs:r.inheritAttrs,ctx:et,data:et,props:et,attrs:et,slots:et,refs:et,setupState:et,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 a.ctx={_:a},a.root=t?t.root:a,a.emit=zm.bind(null,a),e.ce&&e.ce(a),a}let gt=null;const _l=()=>gt||At;let ws,da;{const e=gh(),t=(n,r)=>{let l;return(l=e[n])||(l=e[n]=[]),l.push(r),a=>{l.length>1?l.forEach(d=>d(a)):l[0](a)}};ws=t("__VUE_INSTANCE_SETTERS__",n=>gt=n),da=t("__VUE_SSR_SETTERS__",n=>Qs=n)}const xi=e=>{const t=gt;return ws(e),e.scope.on(),()=>{e.scope.off(),ws(t)}},Lc=()=>{gt&&gt.scope.off(),ws(null)};function sd(e){return e.vnode.shapeFlag&4}let Qs=!1;function Nv(e,t=!1){t&&da(t);const{props:n,children:r}=e.vnode,l=sd(e);yv(e,n,l,t),_v(e,r);const a=l?Dv(e,t):void 0;return t&&da(!1),a}function Dv(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=sl(new Proxy(e.ctx,uv));const{setup:r}=n;if(r){const l=e.setupContext=r.length>1?Pv(e):null,a=xi(e);rr();const d=Rn(r,e,0,[e.props,l]);if(ir(),a(),dh(d)){if(d.then(Lc,Lc),t)return d.then(p=>{Mc(e,p,t)}).catch(p=>{Gs(p,e,0)});e.asyncDep=d}else Mc(e,d,t)}else od(e,t)}function Mc(e,t,n){De(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:st(t)&&(e.setupState=Nh(t)),od(e,n)}let Oc;function od(e,t,n){const r=e.type;if(!e.render){if(!t&&Oc&&!r.render){const l=r.template||vl(e).template;if(l){const{isCustomElement:a,compilerOptions:d}=e.appContext.config,{delimiters:p,compilerOptions:o}=r,g=mt(mt({isCustomElement:a,delimiters:p},d),o);r.render=Oc(l,g)}}e.render=r.render||Dt}{const l=xi(e);rr();try{hv(e)}finally{ir(),l()}}}function Fv(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Tt(e,"get","$attrs"),t[n]}}))}function Pv(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Fv(e)},slots:e.slots,emit:e.emit,expose:t}}function Js(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Nh(sl(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Yr)return Yr[n](e)},has(t,n){return n in t||n in Yr}}))}function Bv(e,t=!0){return De(e)?e.displayName||e.name:e.name||t&&e.__name}function Wv(e){return De(e)&&"__vccOpts"in e}const Le=(e,t)=>Rm(e,t,Qs);function eo(e,t,n){const r=arguments.length;return r===2?st(t)&&!Ie(t)?ha(t)?ae(e,null,[t]):ae(e,t):ae(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ha(n)&&(n=[n]),ae(e,t,n))}const Hv="3.4.21";/**
775
+ * @vue/runtime-dom v3.4.21
776
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
777
+ * @license MIT
778
+ **/const zv="http://www.w3.org/2000/svg",Uv="http://www.w3.org/1998/Math/MathML",An=typeof document<"u"?document:null,Ic=An&&An.createElement("template"),Vv={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const l=t==="svg"?An.createElementNS(zv,e):t==="mathml"?An.createElementNS(Uv,e):An.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&l.setAttribute("multiple",r.multiple),l},createText:e=>An.createTextNode(e),createComment:e=>An.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>An.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,l,a){const d=n?n.previousSibling:t.lastChild;if(l&&(l===a||l.nextSibling))for(;t.insertBefore(l.cloneNode(!0),n),!(l===a||!(l=l.nextSibling)););else{Ic.innerHTML=r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e;const p=Ic.content;if(r==="svg"||r==="mathml"){const o=p.firstChild;for(;o.firstChild;)p.appendChild(o.firstChild);p.removeChild(o)}t.insertBefore(p,n)}return[d?d.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},jv=Symbol("_vtc");function Gv(e,t,n){const r=e[jv];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Nc=Symbol("_vod"),Yv=Symbol("_vsh"),Kv=Symbol(""),Zv=/(^|;)\s*display\s*:/;function Xv(e,t,n){const r=e.style,l=ht(n);let a=!1;if(n&&!l){if(t)if(ht(t))for(const d of t.split(";")){const p=d.slice(0,d.indexOf(":")).trim();n[p]==null&&ss(r,p,"")}else for(const d in t)n[d]==null&&ss(r,d,"");for(const d in n)d==="display"&&(a=!0),ss(r,d,n[d])}else if(l){if(t!==n){const d=r[Kv];d&&(n+=";"+d),r.cssText=n,a=Zv.test(n)}}else t&&e.removeAttribute("style");Nc in e&&(e[Nc]=a?r.display:"",e[Yv]&&(r.display="none"))}const Dc=/\s*!important$/;function ss(e,t,n){if(Ie(n))n.forEach(r=>ss(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=qv(e,t);Dc.test(n)?e.setProperty(Tr(r),n.replace(Dc,""),"important"):e[r]=n}}const Fc=["Webkit","Moz","ms"],xo={};function qv(e,t){const n=xo[t];if(n)return n;let r=Jt(t);if(r!=="filter"&&r in e)return xo[t]=r;r=ki(r);for(let l=0;l<Fc.length;l++){const a=Fc[l]+r;if(a in e)return xo[t]=a}return t}const Pc="http://www.w3.org/1999/xlink";function Qv(e,t,n,r,l){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Pc,t.slice(6,t.length)):e.setAttributeNS(Pc,t,n);else{const a=sm(t);n==null||a&&!mh(n)?e.removeAttribute(t):e.setAttribute(t,a?"":n)}}function Jv(e,t,n,r,l,a,d){if(t==="innerHTML"||t==="textContent"){r&&d(r,l,a),e[t]=n??"";return}const p=e.tagName;if(t==="value"&&p!=="PROGRESS"&&!p.includes("-")){const g=p==="OPTION"?e.getAttribute("value")||"":e.value,i=n??"";(g!==i||!("_value"in e))&&(e.value=i),n==null&&e.removeAttribute(t),e._value=n;return}let o=!1;if(n===""||n==null){const g=typeof e[t];g==="boolean"?n=mh(n):n==null&&g==="string"?(n="",o=!0):g==="number"&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(t)}function sr(e,t,n,r){e.addEventListener(t,n,r)}function ey(e,t,n,r){e.removeEventListener(t,n,r)}const Bc=Symbol("_vei");function ty(e,t,n,r,l=null){const a=e[Bc]||(e[Bc]={}),d=a[t];if(r&&d)d.value=r;else{const[p,o]=ny(t);if(r){const g=a[t]=sy(r,l);sr(e,p,g,o)}else d&&(ey(e,p,d,o),a[t]=void 0)}}const Wc=/(?:Once|Passive|Capture)$/;function ny(e){let t;if(Wc.test(e)){t={};let r;for(;r=e.match(Wc);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Tr(e.slice(2)),t]}let Eo=0;const ry=Promise.resolve(),iy=()=>Eo||(ry.then(()=>Eo=0),Eo=Date.now());function sy(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Ht(oy(r,n.value),t,5,[r])};return n.value=e,n.attached=iy(),n}function oy(e,t){if(Ie(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 Hc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ay=(e,t,n,r,l,a,d,p,o)=>{const g=l==="svg";t==="class"?Gv(e,r,g):t==="style"?Xv(e,n,r):Hs(t)?Ka(t)||ty(e,t,n,r,d):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ly(e,t,r,g))?Jv(e,t,r,a,d,p,o):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Qv(e,t,r,g))};function ly(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Hc(t)&&De(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 Hc(t)&&ht(n)?!1:t in e}const zc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ie(t)?n=>es(t,n):t};function cy(e){e.target.composing=!0}function Uc(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ro=Symbol("_assign"),$l={created(e,{modifiers:{lazy:t,trim:n,number:r}},l){e[Ro]=zc(l);const a=r||l.props&&l.props.type==="number";sr(e,t?"change":"input",d=>{if(d.target.composing)return;let p=e.value;n&&(p=p.trim()),a&&(p=ta(p)),e[Ro](p)}),n&&sr(e,"change",()=>{e.value=e.value.trim()}),t||(sr(e,"compositionstart",cy),sr(e,"compositionend",Uc),sr(e,"change",Uc))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:l}},a){if(e[Ro]=zc(a),e.composing)return;const d=l||e.type==="number"?ta(e.value):e.value,p=t??"";d!==p&&(document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===p)||(e.value=p))}},uy=mt({patchProp:ay},Vv);let Vc;function hy(){return Vc||(Vc=Sv(uy))}const dy=(...e)=>{const t=hy().createApp(...e),{mount:n}=t;return t.mount=r=>{const l=py(r);if(!l)return;const a=t._component;!De(a)&&!a.render&&!a.template&&(a.template=l.innerHTML),l.innerHTML="";const d=n(l,!1,fy(l));return l instanceof Element&&(l.removeAttribute("v-cloak"),l.setAttribute("data-v-app","")),d},t};function fy(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function py(e){return ht(e)?document.querySelector(e):e}function jc(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 on(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jc(Object(n),!0).forEach(function(r){Et(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jc(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _s(e){"@babel/helpers - typeof";return _s=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},_s(e)}function Et(e,t,n){return t=yy(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gy(e,t){if(e==null)return{};var n={},r=Object.keys(e),l,a;for(a=0;a<r.length;a++)l=r[a],!(t.indexOf(l)>=0)&&(n[l]=e[l]);return n}function my(e,t){if(e==null)return{};var n=gy(e,t),r,l;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(l=0;l<a.length;l++)r=a[l],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function vy(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 yy(e){var t=vy(e,"string");return typeof t=="symbol"?t:String(t)}var by=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ad={exports:{}};(function(e){(function(t){var n=function(v,y,C){if(!g(y)||s(y)||c(y)||u(y)||o(y))return y;var $,_=0,b=0;if(i(y))for($=[],b=y.length;_<b;_++)$.push(n(v,y[_],C));else{$={};for(var E in y)Object.prototype.hasOwnProperty.call(y,E)&&($[v(E,C)]=n(v,y[E],C))}return $},r=function(v,y){y=y||{};var C=y.separator||"_",$=y.split||/(?=[A-Z])/;return v.split($).join(C)},l=function(v){return h(v)?v:(v=v.replace(/[\-_\s]+(.)?/g,function(y,C){return C?C.toUpperCase():""}),v.substr(0,1).toLowerCase()+v.substr(1))},a=function(v){var y=l(v);return y.substr(0,1).toUpperCase()+y.substr(1)},d=function(v,y){return r(v,y).toLowerCase()},p=Object.prototype.toString,o=function(v){return typeof v=="function"},g=function(v){return v===Object(v)},i=function(v){return p.call(v)=="[object Array]"},s=function(v){return p.call(v)=="[object Date]"},c=function(v){return p.call(v)=="[object RegExp]"},u=function(v){return p.call(v)=="[object Boolean]"},h=function(v){return v=v-0,v===v},f=function(v,y){var C=y&&"process"in y?y.process:y;return typeof C!="function"?v:function($,_){return C($,v,_)}},m={camelize:l,decamelize:d,pascalize:a,depascalize:d,camelizeKeys:function(v,y){return n(f(l,y),v)},decamelizeKeys:function(v,y){return n(f(d,y),v,y)},pascalizeKeys:function(v,y){return n(f(a,y),v)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=m:t.humps=m})(by)})(ad);var wy=ad.exports,_y=["class","style"];function $y(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),l=wy.camelize(n.slice(0,r)),a=n.slice(r+1).trim();return t[l]=a,t},{})}function Sy(e){return e.split(/\s+/).reduce(function(t,n){return t[n]=!0,t},{})}function ld(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 ld(o)}),l=Object.keys(e.attributes||{}).reduce(function(o,g){var i=e.attributes[g];switch(g){case"class":o.class=Sy(i);break;case"style":o.style=$y(i);break;default:o.attrs[g]=i}return o},{attrs:{},class:{},style:{}});n.class;var a=n.style,d=a===void 0?{}:a,p=my(n,_y);return eo(e.tag,on(on(on({},t),{},{class:l.class,style:on(on({},l.style),d)},l.attrs),p),r)}var cd=!1;try{cd=!0}catch{}function Cy(){if(!cd&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function To(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Et({},e,t):{}}function Ay(e){var t,n=(t={"fa-spin":e.spin,"fa-pulse":e.pulse,"fa-fw":e.fixedWidth,"fa-border":e.border,"fa-li":e.listItem,"fa-inverse":e.inverse,"fa-flip":e.flip===!0,"fa-flip-horizontal":e.flip==="horizontal"||e.flip==="both","fa-flip-vertical":e.flip==="vertical"||e.flip==="both"},Et(t,"fa-".concat(e.size),e.size!==null),Et(t,"fa-rotate-".concat(e.rotation),e.rotation!==null),Et(t,"fa-pull-".concat(e.pull),e.pull!==null),Et(t,"fa-swap-opacity",e.swapOpacity),Et(t,"fa-bounce",e.bounce),Et(t,"fa-shake",e.shake),Et(t,"fa-beat",e.beat),Et(t,"fa-fade",e.fade),Et(t,"fa-beat-fade",e.beatFade),Et(t,"fa-flash",e.flash),Et(t,"fa-spin-pulse",e.spinPulse),Et(t,"fa-spin-reverse",e.spinReverse),t);return Object.keys(n).map(function(r){return n[r]?r:null}).filter(function(r){return r})}function Gc(e){if(e&&_s(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(ea.icon)return ea.icon(e);if(e===null)return null;if(_s(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 ky=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 Gc(t.icon)}),a=Le(function(){return To("classes",Ay(t))}),d=Le(function(){return To("transform",typeof t.transform=="string"?ea.transform(t.transform):t.transform)}),p=Le(function(){return To("mask",Gc(t.mask))}),o=Le(function(){return Rg(l.value,on(on(on(on({},a.value),d.value),p.value),{},{symbol:t.symbol,title:t.title,titleId:t.titleId,maskId:t.maskId}))});ot(o,function(i){if(!i)return Cy("Could not find one or more icon(s)",l.value,p.value)},{immediate:!0});var g=Le(function(){return o.value?ld(o.value.abstract[0],{},r):null});return function(){return g.value}}});const xy=Ce({name:"NavbarItem"}),Ee=(e,t)=>{const n=e.__vccOpts||e;for(const[r,l]of t)n[r]=l;return n},to=e=>(dl("data-v-907b90b2"),e=e(),fl(),e),Ey={role:"navigation","aria-label":"main navigation",class:"navbar is-fixed-top"},Ry=to(()=>D("div",{class:"navbar-brand"},[D("a",{class:"navbar-item"},[D("h1",{class:"title"},"Mihari")])],-1)),Ty={class:"navbar-menu"},Ly=to(()=>D("div",{class:"navbar-start"},null,-1)),My={class:"navbar-end"},Oy=to(()=>D("a",{class:"navbar-item"},[D("a",{href:"/redoc-static.html",target:"_blank",class:"navbar-item"},"API")],-1)),Iy=to(()=>D("a",{class:"navbar-item"},[D("a",{href:"https://github.com/ninoseki/mihari",target:"_blank",class:"navbar-item"},"GitHub")],-1));function Ny(e,t,n,r,l,a){const d=ne("router-link");return G(),ie("nav",Ey,[Ry,D("div",Ty,[Ly,D("div",My,[ae(d,{class:"navbar-item",to:{name:"Alerts"}},{default:nt(()=>[rt("Alerts")]),_:1}),ae(d,{class:"navbar-item",to:{name:"Artifacts"}},{default:nt(()=>[rt("Artifacts")]),_:1}),ae(d,{class:"navbar-item",to:{name:"Rules"}},{default:nt(()=>[rt("Rules")]),_:1}),ae(d,{class:"navbar-item",to:{name:"NewRule"}},{default:nt(()=>[rt("New Rule")]),_:1}),ae(d,{class:"navbar-item",to:{name:"Config"}},{default:nt(()=>[rt("Config")]),_:1}),Oy,Iy])])])}const Dy=Ee(xy,[["render",Ny],["__scopeId","data-v-907b90b2"]]),Fy=Ce({name:"App",components:{Navbar:Dy}}),Py={class:"section is-medium"},By={class:"container"};function Wy(e,t,n,r,l,a){const d=ne("Navbar"),p=ne("router-view");return G(),ie(Be,null,[ae(d),D("section",Py,[D("div",By,[ae(p)])])],64)}const Hy=Ee(Fy,[["render",Wy]]);/*!
779
+ * vue-router v4.3.0
780
+ * (c) 2024 Eduardo San Martin Morote
781
+ * @license MIT
782
+ */const or=typeof document<"u";function zy(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Ze=Object.assign;function Lo(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 Xr=()=>{},jt=Array.isArray,ud=/#/g,Uy=/&/g,Vy=/\//g,jy=/=/g,Gy=/\?/g,hd=/\+/g,Yy=/%5B/g,Ky=/%5D/g,dd=/%5E/g,Zy=/%60/g,fd=/%7B/g,Xy=/%7C/g,pd=/%7D/g,qy=/%20/g;function Sl(e){return encodeURI(""+e).replace(Xy,"|").replace(Yy,"[").replace(Ky,"]")}function Qy(e){return Sl(e).replace(fd,"{").replace(pd,"}").replace(dd,"^")}function fa(e){return Sl(e).replace(hd,"%2B").replace(qy,"+").replace(ud,"%23").replace(Uy,"%26").replace(Zy,"`").replace(fd,"{").replace(pd,"}").replace(dd,"^")}function Jy(e){return fa(e).replace(jy,"%3D")}function e0(e){return Sl(e).replace(ud,"%23").replace(Gy,"%3F")}function t0(e){return e==null?"":e0(e).replace(Vy,"%2F")}function ai(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const n0=/\/$/,r0=e=>e.replace(n0,"");function Mo(e,t,n="/"){let r,l={},a="",d="";const p=t.indexOf("#");let o=t.indexOf("?");return p<o&&p>=0&&(o=-1),o>-1&&(r=t.slice(0,o),a=t.slice(o+1,p>-1?p:t.length),l=e(a)),p>-1&&(r=r||t.slice(0,p),d=t.slice(p,t.length)),r=a0(r??t,n),{fullPath:r+(a&&"?")+a+d,path:r,query:l,hash:ai(d)}}function i0(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Yc(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function s0(e,t,n){const r=t.matched.length-1,l=n.matched.length-1;return r>-1&&r===l&&_r(t.matched[r],n.matched[l])&&gd(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function _r(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function gd(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!o0(e[n],t[n]))return!1;return!0}function o0(e,t){return jt(e)?Kc(e,t):jt(t)?Kc(t,e):e===t}function Kc(e,t){return jt(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function a0(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 a=n.length-1,d,p;for(d=0;d<r.length;d++)if(p=r[d],p!==".")if(p==="..")a>1&&a--;else break;return n.slice(0,a).join("/")+"/"+r.slice(d).join("/")}var li;(function(e){e.pop="pop",e.push="push"})(li||(li={}));var qr;(function(e){e.back="back",e.forward="forward",e.unknown=""})(qr||(qr={}));function l0(e){if(!e)if(or){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),r0(e)}const c0=/^[^#]+#/;function u0(e,t){return e.replace(c0,"#")+t}function h0(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 no=()=>({left:window.scrollX,top:window.scrollY});function d0(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=h0(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 Zc(e,t){return(history.state?history.state.position-t:-1)+e}const pa=new Map;function f0(e,t){pa.set(e,t)}function p0(e){const t=pa.get(e);return pa.delete(e),t}let g0=()=>location.protocol+"//"+location.host;function md(e,t){const{pathname:n,search:r,hash:l}=t,a=e.indexOf("#");if(a>-1){let p=l.includes(e.slice(a))?e.slice(a).length:1,o=l.slice(p);return o[0]!=="/"&&(o="/"+o),Yc(o,"")}return Yc(n,e)+r+l}function m0(e,t,n,r){let l=[],a=[],d=null;const p=({state:c})=>{const u=md(e,location),h=n.value,f=t.value;let m=0;if(c){if(n.value=u,t.value=c,d&&d===h){d=null;return}m=f?c.position-f.position:0}else r(u);l.forEach(v=>{v(n.value,h,{delta:m,type:li.pop,direction:m?m>0?qr.forward:qr.back:qr.unknown})})};function o(){d=n.value}function g(c){l.push(c);const u=()=>{const h=l.indexOf(c);h>-1&&l.splice(h,1)};return a.push(u),u}function i(){const{history:c}=window;c.state&&c.replaceState(Ze({},c.state,{scroll:no()}),"")}function s(){for(const c of a)c();a=[],window.removeEventListener("popstate",p),window.removeEventListener("beforeunload",i)}return window.addEventListener("popstate",p),window.addEventListener("beforeunload",i,{passive:!0}),{pauseListeners:o,listen:g,destroy:s}}function Xc(e,t,n,r=!1,l=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:l?no():null}}function v0(e){const{history:t,location:n}=window,r={value:md(e,n)},l={value:t.state};l.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(o,g,i){const s=e.indexOf("#"),c=s>-1?(n.host&&document.querySelector("base")?e:e.slice(s))+o:g0()+e+o;try{t[i?"replaceState":"pushState"](g,"",c),l.value=g}catch(u){console.error(u),n[i?"replace":"assign"](c)}}function d(o,g){const i=Ze({},t.state,Xc(l.value.back,o,l.value.forward,!0),g,{position:l.value.position});a(o,i,!0),r.value=o}function p(o,g){const i=Ze({},l.value,t.state,{forward:o,scroll:no()});a(i.current,i,!0);const s=Ze({},Xc(r.value,o,null),{position:i.position+1},g);a(o,s,!1),r.value=o}return{location:r,state:l,push:p,replace:d}}function y0(e){e=l0(e);const t=v0(e),n=m0(e,t.state,t.location,t.replace);function r(a,d=!0){d||n.pauseListeners(),history.go(a)}const l=Ze({location:"",base:e,go:r,createHref:u0.bind(null,e)},t,n);return Object.defineProperty(l,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(l,"state",{enumerable:!0,get:()=>t.state.value}),l}function b0(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),y0(e)}function w0(e){return typeof e=="string"||e&&typeof e=="object"}function vd(e){return typeof e=="string"||typeof e=="symbol"}const _n={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},yd=Symbol("");var qc;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(qc||(qc={}));function $r(e,t){return Ze(new Error,{type:e,[yd]:!0},t)}function sn(e,t){return e instanceof Error&&yd in e&&(t==null||!!(e.type&t))}const Qc="[^/]+?",_0={sensitive:!1,strict:!1,start:!0,end:!0},$0=/[.+*?^${}()[\]/\\]/g;function S0(e,t){const n=Ze({},_0,t),r=[];let l=n.start?"^":"";const a=[];for(const g of e){const i=g.length?[]:[90];n.strict&&!g.length&&(l+="/");for(let s=0;s<g.length;s++){const c=g[s];let u=40+(n.sensitive?.25:0);if(c.type===0)s||(l+="/"),l+=c.value.replace($0,"\\$&"),u+=40;else if(c.type===1){const{value:h,repeatable:f,optional:m,regexp:v}=c;a.push({name:h,repeatable:f,optional:m});const y=v||Qc;if(y!==Qc){u+=10;try{new RegExp(`(${y})`)}catch($){throw new Error(`Invalid custom RegExp for param "${h}" (${y}): `+$.message)}}let C=f?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;s||(C=m&&g.length<2?`(?:/${C})`:"/"+C),m&&(C+="?"),l+=C,u+=20,m&&(u+=-8),f&&(u+=-20),y===".*"&&(u+=-50)}i.push(u)}r.push(i)}if(n.strict&&n.end){const g=r.length-1;r[g][r[g].length-1]+=.7000000000000001}n.strict||(l+="/?"),n.end?l+="$":n.strict&&(l+="(?:/|$)");const d=new RegExp(l,n.sensitive?"":"i");function p(g){const i=g.match(d),s={};if(!i)return null;for(let c=1;c<i.length;c++){const u=i[c]||"",h=a[c-1];s[h.name]=u&&h.repeatable?u.split("/"):u}return s}function o(g){let i="",s=!1;for(const c of e){(!s||!i.endsWith("/"))&&(i+="/"),s=!1;for(const u of c)if(u.type===0)i+=u.value;else if(u.type===1){const{value:h,repeatable:f,optional:m}=u,v=h in g?g[h]:"";if(jt(v)&&!f)throw new Error(`Provided param "${h}" is an array but it is not repeatable (* or + modifiers)`);const y=jt(v)?v.join("/"):v;if(!y)if(m)c.length<2&&(i.endsWith("/")?i=i.slice(0,-1):s=!0);else throw new Error(`Missing required param "${h}"`);i+=y}}return i||"/"}return{re:d,score:r,keys:a,parse:p,stringify:o}}function C0(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 A0(e,t){let n=0;const r=e.score,l=t.score;for(;n<r.length&&n<l.length;){const a=C0(r[n],l[n]);if(a)return a;n++}if(Math.abs(l.length-r.length)===1){if(Jc(r))return 1;if(Jc(l))return-1}return l.length-r.length}function Jc(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const k0={type:0,value:""},x0=/[a-zA-Z0-9_]/;function E0(e){if(!e)return[[]];if(e==="/")return[[k0]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(u){throw new Error(`ERR (${n})/"${g}": ${u}`)}let n=0,r=n;const l=[];let a;function d(){a&&l.push(a),a=[]}let p=0,o,g="",i="";function s(){g&&(n===0?a.push({type:0,value:g}):n===1||n===2||n===3?(a.length>1&&(o==="*"||o==="+")&&t(`A repeatable param (${g}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:g,regexp:i,repeatable:o==="*"||o==="+",optional:o==="*"||o==="?"})):t("Invalid state to consume buffer"),g="")}function c(){g+=o}for(;p<e.length;){if(o=e[p++],o==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:o==="/"?(g&&s(),d()):o===":"?(s(),n=1):c();break;case 4:c(),n=r;break;case 1:o==="("?n=2:x0.test(o)?c():(s(),n=0,o!=="*"&&o!=="?"&&o!=="+"&&p--);break;case 2:o===")"?i[i.length-1]=="\\"?i=i.slice(0,-1)+o:n=3:i+=o;break;case 3:s(),n=0,o!=="*"&&o!=="?"&&o!=="+"&&p--,i="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${g}"`),s(),d(),l}function R0(e,t,n){const r=S0(E0(e.path),n),l=Ze(r,{record:e,parent:t,children:[],alias:[]});return t&&!l.record.aliasOf==!t.record.aliasOf&&t.children.push(l),l}function T0(e,t){const n=[],r=new Map;t=nu({strict:!1,end:!0,sensitive:!1},t);function l(i){return r.get(i)}function a(i,s,c){const u=!c,h=L0(i);h.aliasOf=c&&c.record;const f=nu(t,i),m=[h];if("alias"in i){const C=typeof i.alias=="string"?[i.alias]:i.alias;for(const $ of C)m.push(Ze({},h,{components:c?c.record.components:h.components,path:$,aliasOf:c?c.record:h}))}let v,y;for(const C of m){const{path:$}=C;if(s&&$[0]!=="/"){const _=s.record.path,b=_[_.length-1]==="/"?"":"/";C.path=s.record.path+($&&b+$)}if(v=R0(C,s,f),c?c.alias.push(v):(y=y||v,y!==v&&y.alias.push(v),u&&i.name&&!tu(v)&&d(i.name)),h.children){const _=h.children;for(let b=0;b<_.length;b++)a(_[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?()=>{d(y)}:Xr}function d(i){if(vd(i)){const s=r.get(i);s&&(r.delete(i),n.splice(n.indexOf(s),1),s.children.forEach(d),s.alias.forEach(d))}else{const s=n.indexOf(i);s>-1&&(n.splice(s,1),i.record.name&&r.delete(i.record.name),i.children.forEach(d),i.alias.forEach(d))}}function p(){return n}function o(i){let s=0;for(;s<n.length&&A0(i,n[s])>=0&&(i.record.path!==n[s].record.path||!bd(i,n[s]));)s++;n.splice(s,0,i),i.record.name&&!tu(i)&&r.set(i.record.name,i)}function g(i,s){let c,u={},h,f;if("name"in i&&i.name){if(c=r.get(i.name),!c)throw $r(1,{location:i});f=c.record.name,u=Ze(eu(s.params,c.keys.filter(y=>!y.optional).concat(c.parent?c.parent.keys.filter(y=>y.optional):[]).map(y=>y.name)),i.params&&eu(i.params,c.keys.map(y=>y.name))),h=c.stringify(u)}else if(i.path!=null)h=i.path,c=n.find(y=>y.re.test(h)),c&&(u=c.parse(h),f=c.record.name);else{if(c=s.name?r.get(s.name):n.find(y=>y.re.test(s.path)),!c)throw $r(1,{location:i,currentLocation:s});f=c.record.name,u=Ze({},s.params,i.params),h=c.stringify(u)}const m=[];let v=c;for(;v;)m.unshift(v.record),v=v.parent;return{name:f,path:h,params:u,matched:m,meta:O0(m)}}return e.forEach(i=>a(i)),{addRoute:a,resolve:g,removeRoute:d,getRoutes:p,getRecordMatcher:l}}function eu(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function L0(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:M0(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 M0(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 tu(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function O0(e){return e.reduce((t,n)=>Ze(t,n.meta),{})}function nu(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function bd(e,t){return t.children.some(n=>n===e||bd(e,n))}function I0(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 a=r[l].replace(hd," "),d=a.indexOf("="),p=ai(d<0?a:a.slice(0,d)),o=d<0?null:ai(a.slice(d+1));if(p in t){let g=t[p];jt(g)||(g=t[p]=[g]),g.push(o)}else t[p]=o}return t}function ru(e){let t="";for(let n in e){const r=e[n];if(n=Jy(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(jt(r)?r.map(a=>a&&fa(a)):[r&&fa(r)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+n,a!=null&&(t+="="+a))})}return t}function N0(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 D0=Symbol(""),iu=Symbol(""),ro=Symbol(""),Cl=Symbol(""),ga=Symbol("");function Pr(){let e=[];function t(r){return e.push(r),()=>{const l=e.indexOf(r);l>-1&&e.splice(l,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function kn(e,t,n,r,l,a=d=>d()){const d=r&&(r.enterCallbacks[l]=r.enterCallbacks[l]||[]);return()=>new Promise((p,o)=>{const g=c=>{c===!1?o($r(4,{from:n,to:t})):c instanceof Error?o(c):w0(c)?o($r(2,{from:t,to:c})):(d&&r.enterCallbacks[l]===d&&typeof c=="function"&&d.push(c),p())},i=a(()=>e.call(r&&r.instances[l],t,n,g));let s=Promise.resolve(i);e.length<3&&(s=s.then(g)),s.catch(c=>o(c))})}function Oo(e,t,n,r,l=a=>a()){const a=[];for(const d of e)for(const p in d.components){let o=d.components[p];if(!(t!=="beforeRouteEnter"&&!d.instances[p]))if(F0(o)){const i=(o.__vccOpts||o)[t];i&&a.push(kn(i,n,r,d,p,l))}else{let g=o();a.push(()=>g.then(i=>{if(!i)return Promise.reject(new Error(`Couldn't resolve component "${p}" at "${d.path}"`));const s=zy(i)?i.default:i;d.components[p]=s;const u=(s.__vccOpts||s)[t];return u&&kn(u,n,r,d,p,l)()}))}}return a}function F0(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function su(e){const t=zt(ro),n=zt(Cl),r=Le(()=>t.resolve(Yn(e.to))),l=Le(()=>{const{matched:o}=r.value,{length:g}=o,i=o[g-1],s=n.matched;if(!i||!s.length)return-1;const c=s.findIndex(_r.bind(null,i));if(c>-1)return c;const u=ou(o[g-2]);return g>1&&ou(i)===u&&s[s.length-1].path!==u?s.findIndex(_r.bind(null,o[g-2])):c}),a=Le(()=>l.value>-1&&H0(n.params,r.value.params)),d=Le(()=>l.value>-1&&l.value===n.matched.length-1&&gd(n.params,r.value.params));function p(o={}){return W0(o)?t[Yn(e.replace)?"replace":"push"](Yn(e.to)).catch(Xr):Promise.resolve()}return{route:r,href:Le(()=>r.value.href),isActive:a,isExactActive:d,navigate:p}}const P0=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:su,setup(e,{slots:t}){const n=Lr(su(e)),{options:r}=zt(ro),l=Le(()=>({[au(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[au(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=t.default&&t.default(n);return e.custom?a:eo("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:l.value},a)}}}),B0=P0;function W0(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 H0(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((a,d)=>a!==l[d]))return!1}return!0}function ou(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const au=(e,t,n)=>e??t??n,z0=Ce({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=zt(ga),l=Le(()=>e.route||r.value),a=zt(iu,0),d=Le(()=>{let g=Yn(a);const{matched:i}=l.value;let s;for(;(s=i[g])&&!s.components;)g++;return g}),p=Le(()=>l.value.matched[d.value]);ns(iu,Le(()=>d.value+1)),ns(D0,p),ns(ga,l);const o=Ke();return ot(()=>[o.value,p.value,e.name],([g,i,s],[c,u,h])=>{i&&(i.instances[s]=g,u&&u!==i&&g&&g===c&&(i.leaveGuards.size||(i.leaveGuards=u.leaveGuards),i.updateGuards.size||(i.updateGuards=u.updateGuards))),g&&i&&(!u||!_r(i,u)||!c)&&(i.enterCallbacks[s]||[]).forEach(f=>f(g))},{flush:"post"}),()=>{const g=l.value,i=e.name,s=p.value,c=s&&s.components[i];if(!c)return lu(n.default,{Component:c,route:g});const u=s.props[i],h=u?u===!0?g.params:typeof u=="function"?u(g):u:null,m=eo(c,Ze({},h,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(s.instances[i]=null)},ref:o}));return lu(n.default,{Component:m,route:g})||m}}});function lu(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const U0=z0;function V0(e){const t=T0(e.routes,e),n=e.parseQuery||I0,r=e.stringifyQuery||ru,l=e.history,a=Pr(),d=Pr(),p=Pr(),o=Tm(_n);let g=_n;or&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const i=Lo.bind(null,z=>""+z),s=Lo.bind(null,t0),c=Lo.bind(null,ai);function u(z,Z){let K,Q;return vd(z)?(K=t.getRecordMatcher(z),Q=Z):Q=z,t.addRoute(Q,K)}function h(z){const Z=t.getRecordMatcher(z);Z&&t.removeRoute(Z)}function f(){return t.getRoutes().map(z=>z.record)}function m(z){return!!t.getRecordMatcher(z)}function v(z,Z){if(Z=Ze({},Z||o.value),typeof z=="string"){const B=Mo(n,z,Z.path),Y=t.resolve({path:B.path},Z),ee=l.createHref(B.fullPath);return Ze(B,Y,{params:c(Y.params),hash:ai(B.hash),redirectedFrom:void 0,href:ee})}let K;if(z.path!=null)K=Ze({},z,{path:Mo(n,z.path,Z.path).path});else{const B=Ze({},z.params);for(const Y in B)B[Y]==null&&delete B[Y];K=Ze({},z,{params:s(B)}),Z.params=s(Z.params)}const Q=t.resolve(K,Z),he=z.hash||"";Q.params=i(c(Q.params));const Ae=i0(r,Ze({},z,{hash:Qy(he),path:Q.path})),F=l.createHref(Ae);return Ze({fullPath:Ae,hash:he,query:r===ru?N0(z.query):z.query||{}},Q,{redirectedFrom:void 0,href:F})}function y(z){return typeof z=="string"?Mo(n,z,o.value.path):Ze({},z)}function C(z,Z){if(g!==z)return $r(8,{from:Z,to:z})}function $(z){return E(z)}function _(z){return $(Ze(y(z),{replace:!0}))}function b(z){const Z=z.matched[z.matched.length-1];if(Z&&Z.redirect){const{redirect:K}=Z;let Q=typeof K=="function"?K(z):K;return typeof Q=="string"&&(Q=Q.includes("?")||Q.includes("#")?Q=y(Q):{path:Q},Q.params={}),Ze({query:z.query,hash:z.hash,params:Q.path!=null?{}:z.params},Q)}}function E(z,Z){const K=g=v(z),Q=o.value,he=z.state,Ae=z.force,F=z.replace===!0,B=b(K);if(B)return E(Ze(y(B),{state:typeof B=="object"?Ze({},he,B.state):he,force:Ae,replace:F}),Z||K);const Y=K;Y.redirectedFrom=Z;let ee;return!Ae&&s0(r,Q,K)&&(ee=$r(16,{to:Y,from:Q}),H(Q,Q,!0,!1)),(ee?Promise.resolve(ee):M(Y,Q)).catch(J=>sn(J)?sn(J,2)?J:P(J):I(J,Y,Q)).then(J=>{if(J){if(sn(J,2))return E(Ze({replace:F},y(J.to),{state:typeof J.to=="object"?Ze({},he,J.to.state):he,force:Ae}),Z||Y)}else J=R(Y,Q,!0,F,he);return A(Y,Q,J),J})}function L(z,Z){const K=C(z,Z);return K?Promise.reject(K):Promise.resolve()}function k(z){const Z=W.values().next().value;return Z&&typeof Z.runWithContext=="function"?Z.runWithContext(z):z()}function M(z,Z){let K;const[Q,he,Ae]=j0(z,Z);K=Oo(Q.reverse(),"beforeRouteLeave",z,Z);for(const B of Q)B.leaveGuards.forEach(Y=>{K.push(kn(Y,z,Z))});const F=L.bind(null,z,Z);return K.push(F),q(K).then(()=>{K=[];for(const B of a.list())K.push(kn(B,z,Z));return K.push(F),q(K)}).then(()=>{K=Oo(he,"beforeRouteUpdate",z,Z);for(const B of he)B.updateGuards.forEach(Y=>{K.push(kn(Y,z,Z))});return K.push(F),q(K)}).then(()=>{K=[];for(const B of Ae)if(B.beforeEnter)if(jt(B.beforeEnter))for(const Y of B.beforeEnter)K.push(kn(Y,z,Z));else K.push(kn(B.beforeEnter,z,Z));return K.push(F),q(K)}).then(()=>(z.matched.forEach(B=>B.enterCallbacks={}),K=Oo(Ae,"beforeRouteEnter",z,Z,k),K.push(F),q(K))).then(()=>{K=[];for(const B of d.list())K.push(kn(B,z,Z));return K.push(F),q(K)}).catch(B=>sn(B,8)?B:Promise.reject(B))}function A(z,Z,K){p.list().forEach(Q=>k(()=>Q(z,Z,K)))}function R(z,Z,K,Q,he){const Ae=C(z,Z);if(Ae)return Ae;const F=Z===_n,B=or?history.state:{};K&&(Q||F?l.replace(z.fullPath,Ze({scroll:F&&B&&B.scroll},he)):l.push(z.fullPath,he)),o.value=z,H(z,Z,K,F),P()}let S;function w(){S||(S=l.listen((z,Z,K)=>{if(!j.listening)return;const Q=v(z),he=b(Q);if(he){E(Ze(he,{replace:!0}),Q).catch(Xr);return}g=Q;const Ae=o.value;or&&f0(Zc(Ae.fullPath,K.delta),no()),M(Q,Ae).catch(F=>sn(F,12)?F:sn(F,2)?(E(F.to,Q).then(B=>{sn(B,20)&&!K.delta&&K.type===li.pop&&l.go(-1,!1)}).catch(Xr),Promise.reject()):(K.delta&&l.go(-K.delta,!1),I(F,Q,Ae))).then(F=>{F=F||R(Q,Ae,!1),F&&(K.delta&&!sn(F,8)?l.go(-K.delta,!1):K.type===li.pop&&sn(F,20)&&l.go(-1,!1)),A(Q,Ae,F)}).catch(Xr)}))}let x=Pr(),T=Pr(),O;function I(z,Z,K){P(z);const Q=T.list();return Q.length?Q.forEach(he=>he(z,Z,K)):console.error(z),Promise.reject(z)}function N(){return O&&o.value!==_n?Promise.resolve():new Promise((z,Z)=>{x.add([z,Z])})}function P(z){return O||(O=!z,w(),x.list().forEach(([Z,K])=>z?K(z):Z()),x.reset()),z}function H(z,Z,K,Q){const{scrollBehavior:he}=e;if(!or||!he)return Promise.resolve();const Ae=!K&&p0(Zc(z.fullPath,0))||(Q||!K)&&history.state&&history.state.scroll||null;return ul().then(()=>he(z,Z,Ae)).then(F=>F&&d0(F)).catch(F=>I(F,z,Z))}const V=z=>l.go(z);let U;const W=new Set,j={currentRoute:o,listening:!0,addRoute:u,removeRoute:h,hasRoute:m,getRoutes:f,resolve:v,options:e,push:$,replace:_,go:V,back:()=>V(-1),forward:()=>V(1),beforeEach:a.add,beforeResolve:d.add,afterEach:p.add,onError:T.add,isReady:N,install(z){const Z=this;z.component("RouterLink",B0),z.component("RouterView",U0),z.config.globalProperties.$router=Z,Object.defineProperty(z.config.globalProperties,"$route",{enumerable:!0,get:()=>Yn(o)}),or&&!U&&o.value===_n&&(U=!0,$(l.location).catch(he=>{}));const K={};for(const he in _n)Object.defineProperty(K,he,{get:()=>o.value[he],enumerable:!0});z.provide(ro,Z),z.provide(Cl,Lh(K)),z.provide(ga,o);const Q=z.unmount;W.add(z),z.unmount=function(){W.delete(z),W.size<1&&(g=_n,S&&S(),S=null,o.value=_n,U=!1,O=!1),Q()}}};function q(z){return z.reduce((Z,K)=>Z.then(()=>k(K)),Promise.resolve())}return j}function j0(e,t){const n=[],r=[],l=[],a=Math.max(t.matched.length,e.matched.length);for(let d=0;d<a;d++){const p=t.matched[d];p&&(e.matched.find(g=>_r(g,p))?r.push(p):n.push(p));const o=e.matched[d];o&&(t.matched.find(g=>_r(g,o))||l.push(o))}return[n,r,l]}function Mr(){return zt(ro)}function G0(){return zt(Cl)}function wd(e){return bh()?(lm(e),!0):!1}function ci(e){return typeof e=="function"?e():Yn(e)}const _d=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Y0=e=>e!=null,K0=()=>{};function Z0(e){return e||_l()}function X0(...e){if(e.length!==1)return ll(...e);const t=e[0];return typeof t=="function"?rl(Dh(()=>({get:t,set:K0}))):Ke(t)}function q0(e,t){Z0(t)&&ml(e,t)}function Q0(e){var t;const n=ci(e);return(t=n==null?void 0:n.$el)!=null?t:n}const J0=_d?window:void 0,eb=_d?window.document:void 0;function tb(){const e=Ke(!1),t=_l();return t&&ct(()=>{e.value=!0},t),e}function nb(e){const t=tb();return Le(()=>(t.value,!!e()))}function rb(e,t,n={}){const{window:r=J0,...l}=n;let a;const d=nb(()=>r&&"MutationObserver"in r),p=()=>{a&&(a.disconnect(),a=void 0)},o=Le(()=>{const c=ci(e),u=(Array.isArray(c)?c:[c]).map(Q0).filter(Y0);return new Set(u)}),g=ot(()=>o.value,c=>{p(),d.value&&r&&c.size&&(a=new MutationObserver(t),c.forEach(u=>a.observe(u,l)))},{immediate:!0,flush:"post"}),i=()=>a==null?void 0:a.takeRecords(),s=()=>{p(),g()};return wd(s),{isSupported:d,stop:s,takeRecords:i}}function vn(e=null,t={}){var n,r,l;const{document:a=eb,restoreOnUnmount:d=s=>s}=t,p=(n=a==null?void 0:a.title)!=null?n:"",o=X0((r=e??(a==null?void 0:a.title))!=null?r:null),g=e&&typeof e=="function";function i(s){if(!("titleTemplate"in t))return s;const c=t.titleTemplate||"%s";return typeof c=="function"?c(s):ci(c).replace(/%s/g,s)}return ot(o,(s,c)=>{s!==c&&a&&(a.title=i(typeof s=="string"?s:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&a&&!g&&rb((l=a.head)==null?void 0:l.querySelector("title"),()=>{a&&a.title!==o.value&&(o.value=i(a.title))},{childList:!0}),q0(()=>{if(d){const s=d(p,o.value||"");s!=null&&a&&(a.title=s)}}),o}/*! CAF: shared.mjs
783
+ v15.0.1 (c) 2022 Kyle Simpson
784
+ MIT License: http://getify.mit-license.org
785
+ */const an=Symbol("Cleanup Function"),Al=Symbol("Timeout Token"),ur=Symbol("Signal Reason"),pt=Symbol("Unset"),[os,ib]=function(){var t=new AbortController,n=!!Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t.signal),"reason");try{t.abort()}catch{}return[n,xl(t.signal.reason)]}();class Qn{constructor(t=new AbortController){var n;this.controller=t,this.signal=t.signal,this.signal[ur]=pt;var r=(l,a)=>{var d=()=>{if(a&&this.signal){let p=Ei(this.signal);this._trackSignalReason(p),a(p!==pt?p:void 0)}a=null};this.signal.addEventListener("abort",d,!1),n=()=>{this.signal&&(this.signal.removeEventListener("abort",d,!1),this.signal.pr&&(this.signal.pr[an]=null)),d=null}};this.signal.pr=new Promise(r),this.signal.pr[an]=n,this.signal.pr.catch(n),r=n=null}abort(...t){var n=t.length>0?t[0]:pt;this._trackSignalReason(n),this.controller&&(os&&n!==pt?this.controller.abort(n):this.controller.abort())}discard(){this.signal&&(this.signal.pr&&(this.signal.pr[an]&&this.signal.pr[an](),this.signal.pr=null),delete this.signal[ur],os||(this.signal.reason=null),this.signal=null),this.controller=null}_trackSignalReason(t){this.signal&&t!==pt&&(os||"reason"in this.signal||(this.signal.reason=t),this.signal[ur]===pt&&(this.signal[ur]=t))}}function Ei(e){return e&&e.aborted?os&&ib?xl(e.reason)?pt:e.reason:ur in e?e[ur]:pt:pt}function $d(e){if(e.pr)return e.pr;var t,n=new Promise(function(l,a){t=()=>{if(a&&e){let d=Ei(e);a(d!==pt?d:void 0)}a=null},e.addEventListener("abort",t,!1)});return n[an]=function(){e&&(e.removeEventListener("abort",t,!1),e=null),n&&(n=n[an]=t=null)},n.catch(n[an]),n}function kl(e){e instanceof AbortController&&(e=new Qn(e));var t=e&&e instanceof Qn?e.signal:e;return{tokenOrSignal:e,signal:t,signalPr:$d(t)}}function ma(){var e;return{pr:new Promise(t=>e=t),resolve:e}}function Bn(e){return typeof e=="function"}function sb(e){return e&&typeof e=="object"&&typeof e.then=="function"}function xl(e){return typeof e=="object"&&e instanceof Error&&e.name=="AbortError"}function io(e,t){xl(t)||t===pt?e.abort():e.abort(t)}/*! CAF: caf.mjs
786
+ v15.0.1 (c) 2022 Kyle Simpson
787
+ MIT License: http://getify.mit-license.org
788
+ */const va=Object.assign(ob,{cancelToken:Qn,delay:Sd,timeout:ab,signalRace:lb,signalAll:cb,tokenCycle:ub});function ob(e){return function(n,...r){var l,a;if({tokenOrSignal:n,signal:l,signalPr:a}=kl(n),l.aborted)return a;var d=a.catch(function(s){var c=Ei(l);c=c!==pt?c:s;try{var u=p.return();throw u.value!==void 0?u.value:c!==pt?c:void 0}finally{p=o=d=g=null}}),{it:p,result:o}=hb.call(this,e,l,...r),g=Promise.race([o,d]);if(n!==l&&n[Al]){let i=function(c){io(n,c),Bn(n.discard)&&n.discard(),n=i=null};g.then(i,i)}else g.catch(()=>{}),n=null;return r=null,g}}function Sd(e,t){var n,r;return typeof e=="number"&&typeof t!="number"&&([t,e]=[e,t]),e&&({tokenOrSignal:e,signal:n,signalPr:r}=kl(e)),n&&n.aborted?r:new Promise(function(a,d){n&&(r.catch(function(){if(d&&n&&p){let g=Ei(n);clearTimeout(p),d(g!==pt?g:`delay (${t}) interrupted`),a=d=p=n=null}}),r=null);var p=setTimeout(function(){a(`delayed: ${t}`),a=d=p=n=null},t)})}function ab(e,t="Timeout"){e=Number(e)||0;var n=new Qn;return Sd(n.signal,e).then(()=>r(t),r),Object.defineProperty(n,Al,{value:!0,writable:!1,enumerable:!1,configurable:!1}),n;function r(...l){io(n,l.length>0?l[0]:pt),n.discard(),n=null}}function Cd(e){return e.reduce(function(n,r){var l=$d(r);return n[0].push(l),r.pr||n[1].push(l),n},[[],[]])}function Ad(e,t,n){e.then(function(l){io(t,l),t.discard(),t=null}).then(function(){for(let l of n)l[an]&&l[an]();n=null})}function kd(e){return e.catch(t=>t)}function lb(e){var t=new Qn,[n,r]=Cd(e);return Ad(kd(Promise.race(n)),t,r),t.signal}function cb(e){var t=new Qn,[n,r]=Cd(e);return Ad(Promise.all(n.map(kd)),t,r),t.signal}function ub(){var e;return function(...n){return e&&(io(e,n.length>0?n[0]:pt),e.discard()),e=new Qn}}function hb(e,...t){var n=e.apply(this,t);return e=t=null,{it:n,result:function r(l){try{var a=n.next(l);l=null}catch(d){return Promise.reject(d)}return function d(p){var o=Promise.resolve(p.value);return p.done?n=null:(o=o.then(r,function(i){return Promise.resolve(n.throw(i)).then(d)})).catch(function(){n=null}),p=null,o}(a)}()}}/*! CAF: cag.mjs
789
+ v15.0.1 (c) 2022 Kyle Simpson
790
+ MIT License: http://getify.mit-license.org
791
+ */ba=va(ba);Object.assign(Ed,{onEvent:Rd,onceEvent:ba});var ya=new WeakSet;const Io=Symbol("unset"),xd=Symbol("returned"),cu=Symbol("canceled");function Ed(e){return function(n,...r){var l,a;if({tokenOrSignal:n,signal:l,signalPr:a}=kl(n),l.aborted){let s=Ei(l);throw s=s!==pt?s:"Aborted",s}var d=ma(),{it:p,ait:o}=fb(e,d.pr,i,l,...r),g=o.return;return o.return=function(c){try{return d.pr.resolved=!0,d.resolve(xd),Promise.resolve(p.return(c))}finally{g.call(o),i()}},o;function i(){n&&n!==l&&n[Al]&&n.abort(),o&&(o.return=g,n=d=p=o=g=null)}}}function Rd(e,t,n,r=!1){var l,a,d=!1,p=Ed(function*({pwait:s}){d||o();try{for(;;){if(l.length==0){let{pr:c,resolve:u}=ma();l.push(c),a.push(u)}yield yield s(l.shift())}}finally{Bn(t.removeEventListener)?t.removeEventListener(n,g,r):Bn(t.removeListener)?t.removeListener(n,g):Bn(t.off)&&t.off(n,g),l.length=a.length=0}})(e,t,n,r);return p.start=o,p;function o(){d||(d=!0,l=[],a=[],Bn(t.addEventListener)?t.addEventListener(n,g,r):Bn(t.addListener)?t.addListener(n,g):Bn(t.on)&&t.on(n,g))}function g(i){if(a.length>0)a.shift()(i);else{let{pr:s,resolve:c}=ma();l.push(s),c(i)}}}function*ba(e,t,n,r=!1){try{var l=Rd(e,t,n,r);return(yield l.next()).value}finally{l.return()}}function db(e){var t=Promise.resolve(e);return ya.add(t),t}function fb(e,t,n,r,...l){var a=e.call(this,{signal:r,pwait:db},...l);e=l=null;var d=r.pr.catch(p=>{throw{[cu]:!0,reason:p}});return d.catch(()=>{}),{it:a,ait:async function*(){var o,g=Io;try{for(;!t.resolved;)if(g!==Io?(o=g,g=Io,o=a.throw(o)):o=a.next(o),sb(o.value))if(ya.has(o.value)){ya.delete(o.value);try{if((o=await Promise.race([t,d,o.value]))===xd)return}catch(i){if(i[cu]){let s=a.return();throw s.value!==void 0?s.value:i.reason}g=i}}else o=yield o.value;else{if(o.done)return o.value;o=yield o.value}}finally{a=t=null,n()}}()}}const pb=e=>e._runningInstances.length>=e._maxConcurrency,gb=e=>{const t=e._activeInstances[0];t&&t.cancel()},mb=e=>{e._enqueuedInstances.forEach(t=>{t.isEnqueued=!1,t.isDropped=!0})};function Br(e,t){return t?vb(()=>e()._instances,t):Le(()=>[])}function vb(e,t,n){return Le(()=>e().filter(r=>{const l=r[t];return n?l===n:l}))}function yb(e){return Le(()=>e().length)}function uu(e){return Le(()=>{const t=e();return t[t.length-1]})}function bb(e){return Le(()=>e()[0])}const Td=e=>e;function Ld(e){return Lr(e)}function wb(){const e={},t=new Promise((n,r)=>{e.resolve=n,e.reject=r});return e.promise=t,e}function $t(e){return Sb(function*(t,...n){return e(t,...n)})}function _b(e,t,n){const r=Td({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 d=l,p=[[d.isRunning,"running"],[d.isEnqueued,"enqueued"],[d.isCanceled,"canceled"],[d.isCanceling,"canceling"],[d.isDropped,"dropped"],[d.isError,"error"],[d.isSuccessful,"success"]].find(([o])=>o);return p&&p[1]}),error:null,value:null,cancel({force:d}={force:!1}){if(d||(l.isCanceling=!0,l.isEnqueued&&(l.isFinished=!0),l.isEnqueued=!1),l.token&&l._canAbort){l.token.abort("cancel");try{l.token.discard()}catch{}l.token=void 0,l._canAbort=!1}},canceledOn(d){return d.pr.catch(()=>{l.cancel()}),l},_run(){$b(l,e,t,n)},_handled:!0,_deferredObject:wb(),_shouldThrow:!1,_canAbort:!0,then(d,p){return l._shouldThrow=!0,l._deferredObject.promise.then(d,p)},catch(d,p=!0){return l._shouldThrow=p,l._deferredObject.promise.catch(d)},finally(d){return l._shouldThrow=!0,l._deferredObject.promise.finally(d)}}),l=Ld(r),{modifiers:a}=n;return a.drop?l.isDropped=!0:a.enqueue?l.isEnqueued=!0:l._run(),l}function $b(e,t,n,r){const l=new va.cancelToken,a=va(t,l);e.token=l,e.hasStarted=!0,e.isRunning=!0,e.isEnqueued=!1;function d(){e.isRunning=!1,e.isFinished=!0}a.call(e,l,...n).then(p=>{e.value=p,e.isSuccessful=!0,d(),e._deferredObject.resolve(p),e._canAbort=!1,r.onFinish(e)}).catch(p=>{p!=="cancel"&&(e.error=p),d(),e._shouldThrow&&e._deferredObject.reject(p),r.onFinish(e)})}function Sb(e,t={cancelOnUnmount:!0}){const n=_l(),r=om(),l=Td({_isRestartable:!1,_isDropping:!1,_isEnqueuing:!1,_isKeepingLatest:!1,_maxConcurrency:1,_hasConcurrency:Le(()=>a._isRestartable||a._isDropping||a._isEnqueuing||a._isKeepingLatest),isIdle:Le(()=>!a.isRunning),isRunning:Le(()=>!!a._instances.find(d=>d.isRunning)),isError:Le(()=>!!(a.last&&a.last.isError)),_instances:[],_successfulInstances:Br(()=>a,"isSuccessful"),_runningInstances:Br(()=>a,"isRunning"),_enqueuedInstances:Br(()=>a,"isEnqueued"),_notDroppedInstances:Br(()=>a,"isNotDropped"),_activeInstances:Br(()=>a,"isActive"),performCount:yb(()=>a._instances),last:uu(()=>a._notDroppedInstances),lastSuccessful:uu(()=>a._successfulInstances),firstEnqueued:bb(()=>a._enqueuedInstances),cancelAll({force:d}={force:!1}){a._instances.forEach(p=>{try{(d||!p.isDropped&&!p.isFinished)&&p.cancel({force:d})}catch(o){if(o!=="cancel")throw o}})},perform(...d){const p={enqueue:!1,drop:!1};a._hasConcurrency&&pb(a)&&(a._isDropping&&(p.drop=!0),a._isRestartable&&gb(a),a._isKeepingLatest&&mb(a),(a._isEnqueuing||a._isKeepingLatest)&&(p.enqueue=!0));const o=()=>Cb(a),g=()=>_b(e,d,{modifiers:p,onFinish:o,scope:r,id:a._instances.length+1}),i=r.active?r.run(g):g();return r.active||console.warn("Task instance has been created in inactive scope. Perhaps youre creating task out of setup?"),a._instances=[...a._instances,i],i},clear(){this.cancelAll({force:!0}),this._instances=[]},destroy(){r.stop(),this.clear()},restartable(){return a._resetModifierFlags(),a._isRestartable=!0,a},drop(){return a._resetModifierFlags(),a._isDropping=!0,a},enqueue(){return a._resetModifierFlags(),a._isEnqueuing=!0,a},keepLatest(){return a._resetModifierFlags(),a._isKeepingLatest=!0,a},_resetModifierFlags(){a._isKeepingLatest=!1,a._isRestartable=!1,a._isEnqueuing=!1,a._isDropping=!1},maxConcurrency(d){return a._maxConcurrency=d,a}}),a=Ld(l);return n&&t.cancelOnUnmount&&ml(()=>{a._instances&&a.destroy()}),a}function Cb(e){if(e._isEnqueuing||e._isKeepingLatest){const{firstEnqueued:t}=e;t&&t._run()}}function Md(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ab}=Object.prototype,{getPrototypeOf:El}=Object,so=(e=>t=>{const n=Ab.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),rn=e=>(e=e.toLowerCase(),t=>so(t)===e),oo=e=>t=>typeof t===e,{isArray:Or}=Array,ui=oo("undefined");function kb(e){return e!==null&&!ui(e)&&e.constructor!==null&&!ui(e.constructor)&&Ft(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Od=rn("ArrayBuffer");function xb(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Od(e.buffer),t}const Eb=oo("string"),Ft=oo("function"),Id=oo("number"),ao=e=>e!==null&&typeof e=="object",Rb=e=>e===!0||e===!1,as=e=>{if(so(e)!=="object")return!1;const t=El(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Tb=rn("Date"),Lb=rn("File"),Mb=rn("Blob"),Ob=rn("FileList"),Ib=e=>ao(e)&&Ft(e.pipe),Nb=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ft(e.append)&&((t=so(e))==="formdata"||t==="object"&&Ft(e.toString)&&e.toString()==="[object FormData]"))},Db=rn("URLSearchParams"),Fb=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ri(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,l;if(typeof e!="object"&&(e=[e]),Or(e))for(r=0,l=e.length;r<l;r++)t.call(null,e[r],r,e);else{const a=n?Object.getOwnPropertyNames(e):Object.keys(e),d=a.length;let p;for(r=0;r<d;r++)p=a[r],t.call(null,e[p],p,e)}}function Nd(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 Dd=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Fd=e=>!ui(e)&&e!==Dd;function wa(){const{caseless:e}=Fd(this)&&this||{},t={},n=(r,l)=>{const a=e&&Nd(t,l)||l;as(t[a])&&as(r)?t[a]=wa(t[a],r):as(r)?t[a]=wa({},r):Or(r)?t[a]=r.slice():t[a]=r};for(let r=0,l=arguments.length;r<l;r++)arguments[r]&&Ri(arguments[r],n);return t}const Pb=(e,t,n,{allOwnKeys:r}={})=>(Ri(t,(l,a)=>{n&&Ft(l)?e[a]=Md(l,n):e[a]=l},{allOwnKeys:r}),e),Bb=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Wb=(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)},Hb=(e,t,n,r)=>{let l,a,d;const p={};if(t=t||{},e==null)return t;do{for(l=Object.getOwnPropertyNames(e),a=l.length;a-- >0;)d=l[a],(!r||r(d,e,t))&&!p[d]&&(t[d]=e[d],p[d]=!0);e=n!==!1&&El(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},zb=(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},Ub=e=>{if(!e)return null;if(Or(e))return e;let t=e.length;if(!Id(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Vb=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&El(Uint8Array)),jb=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let l;for(;(l=r.next())&&!l.done;){const a=l.value;t.call(e,a[0],a[1])}},Gb=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Yb=rn("HTMLFormElement"),Kb=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,l){return r.toUpperCase()+l}),hu=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Zb=rn("RegExp"),Pd=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ri(n,(l,a)=>{let d;(d=t(l,a,e))!==!1&&(r[a]=d||l)}),Object.defineProperties(e,r)},Xb=e=>{Pd(e,(t,n)=>{if(Ft(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ft(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+"'")})}})},qb=(e,t)=>{const n={},r=l=>{l.forEach(a=>{n[a]=!0})};return Or(e)?r(e):r(String(e).split(t)),n},Qb=()=>{},Jb=(e,t)=>(e=+e,Number.isFinite(e)?e:t),No="abcdefghijklmnopqrstuvwxyz",du="0123456789",Bd={DIGIT:du,ALPHA:No,ALPHA_DIGIT:No+No.toUpperCase()+du},e1=(e=16,t=Bd.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function t1(e){return!!(e&&Ft(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const n1=e=>{const t=new Array(10),n=(r,l)=>{if(ao(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[l]=r;const a=Or(r)?[]:{};return Ri(r,(d,p)=>{const o=n(d,l+1);!ui(o)&&(a[p]=o)}),t[l]=void 0,a}}return r};return n(e,0)},r1=rn("AsyncFunction"),i1=e=>e&&(ao(e)||Ft(e))&&Ft(e.then)&&Ft(e.catch),re={isArray:Or,isArrayBuffer:Od,isBuffer:kb,isFormData:Nb,isArrayBufferView:xb,isString:Eb,isNumber:Id,isBoolean:Rb,isObject:ao,isPlainObject:as,isUndefined:ui,isDate:Tb,isFile:Lb,isBlob:Mb,isRegExp:Zb,isFunction:Ft,isStream:Ib,isURLSearchParams:Db,isTypedArray:Vb,isFileList:Ob,forEach:Ri,merge:wa,extend:Pb,trim:Fb,stripBOM:Bb,inherits:Wb,toFlatObject:Hb,kindOf:so,kindOfTest:rn,endsWith:zb,toArray:Ub,forEachEntry:jb,matchAll:Gb,isHTMLForm:Yb,hasOwnProperty:hu,hasOwnProp:hu,reduceDescriptors:Pd,freezeMethods:Xb,toObjectSet:qb,toCamelCase:Kb,noop:Qb,toFiniteNumber:Jb,findKey:Nd,global:Dd,isContextDefined:Fd,ALPHABET:Bd,generateString:e1,isSpecCompliantForm:t1,toJSONObject:n1,isAsyncFn:r1,isThenable:i1};function ze(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)}re.inherits(ze,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:re.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Wd=ze.prototype,Hd={};["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=>{Hd[e]={value:e}});Object.defineProperties(ze,Hd);Object.defineProperty(Wd,"isAxiosError",{value:!0});ze.from=(e,t,n,r,l,a)=>{const d=Object.create(Wd);return re.toFlatObject(e,d,function(o){return o!==Error.prototype},p=>p!=="isAxiosError"),ze.call(d,e.message,t,n,r,l),d.cause=e,d.name=e.name,a&&Object.assign(d,a),d};const s1=null;function _a(e){return re.isPlainObject(e)||re.isArray(e)}function zd(e){return re.endsWith(e,"[]")?e.slice(0,-2):e}function fu(e,t,n){return e?e.concat(t).map(function(l,a){return l=zd(l),!n&&a?"["+l+"]":l}).join(n?".":""):t}function o1(e){return re.isArray(e)&&!e.some(_a)}const a1=re.toFlatObject(re,{},null,function(t){return/^is[A-Z]/.test(t)});function lo(e,t,n){if(!re.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=re.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,m){return!re.isUndefined(m[f])});const r=n.metaTokens,l=n.visitor||i,a=n.dots,d=n.indexes,o=(n.Blob||typeof Blob<"u"&&Blob)&&re.isSpecCompliantForm(t);if(!re.isFunction(l))throw new TypeError("visitor must be a function");function g(h){if(h===null)return"";if(re.isDate(h))return h.toISOString();if(!o&&re.isBlob(h))throw new ze("Blob is not supported. Use a Buffer instead.");return re.isArrayBuffer(h)||re.isTypedArray(h)?o&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function i(h,f,m){let v=h;if(h&&!m&&typeof h=="object"){if(re.endsWith(f,"{}"))f=r?f:f.slice(0,-2),h=JSON.stringify(h);else if(re.isArray(h)&&o1(h)||(re.isFileList(h)||re.endsWith(f,"[]"))&&(v=re.toArray(h)))return f=zd(f),v.forEach(function(C,$){!(re.isUndefined(C)||C===null)&&t.append(d===!0?fu([f],$,a):d===null?f:f+"[]",g(C))}),!1}return _a(h)?!0:(t.append(fu(m,f,a),g(h)),!1)}const s=[],c=Object.assign(a1,{defaultVisitor:i,convertValue:g,isVisitable:_a});function u(h,f){if(!re.isUndefined(h)){if(s.indexOf(h)!==-1)throw Error("Circular reference detected in "+f.join("."));s.push(h),re.forEach(h,function(v,y){(!(re.isUndefined(v)||v===null)&&l.call(t,v,re.isString(y)?y.trim():y,f,c))===!0&&u(v,f?f.concat(y):[y])}),s.pop()}}if(!re.isObject(e))throw new TypeError("data must be an object");return u(e),t}function pu(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Rl(e,t){this._pairs=[],e&&lo(e,this,t)}const Ud=Rl.prototype;Ud.append=function(t,n){this._pairs.push([t,n])};Ud.toString=function(t){const n=t?function(r){return t.call(this,r,pu)}:pu;return this._pairs.map(function(l){return n(l[0])+"="+n(l[1])},"").join("&")};function l1(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Vd(e,t,n){if(!t)return e;const r=n&&n.encode||l1,l=n&&n.serialize;let a;if(l?a=l(t,n):a=re.isURLSearchParams(t)?t.toString():new Rl(t,n).toString(r),a){const d=e.indexOf("#");d!==-1&&(e=e.slice(0,d)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class gu{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){re.forEach(this.handlers,function(r){r!==null&&t(r)})}}const jd={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},c1=typeof URLSearchParams<"u"?URLSearchParams:Rl,u1=typeof FormData<"u"?FormData:null,h1=typeof Blob<"u"?Blob:null,d1={isBrowser:!0,classes:{URLSearchParams:c1,FormData:u1,Blob:h1},protocols:["http","https","file","blob","url","data"]},Gd=typeof window<"u"&&typeof document<"u",f1=(e=>Gd&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),p1=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",g1=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Gd,hasStandardBrowserEnv:f1,hasStandardBrowserWebWorkerEnv:p1},Symbol.toStringTag,{value:"Module"})),qt={...g1,...d1};function m1(e,t){return lo(e,new qt.classes.URLSearchParams,Object.assign({visitor:function(n,r,l,a){return qt.isNode&&re.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function v1(e){return re.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function y1(e){const t={},n=Object.keys(e);let r;const l=n.length;let a;for(r=0;r<l;r++)a=n[r],t[a]=e[a];return t}function Yd(e){function t(n,r,l,a){let d=n[a++];if(d==="__proto__")return!0;const p=Number.isFinite(+d),o=a>=n.length;return d=!d&&re.isArray(l)?l.length:d,o?(re.hasOwnProp(l,d)?l[d]=[l[d],r]:l[d]=r,!p):((!l[d]||!re.isObject(l[d]))&&(l[d]=[]),t(n,r,l[d],a)&&re.isArray(l[d])&&(l[d]=y1(l[d])),!p)}if(re.isFormData(e)&&re.isFunction(e.entries)){const n={};return re.forEachEntry(e,(r,l)=>{t(v1(r),l,n,0)}),n}return null}function b1(e,t,n){if(re.isString(e))try{return(t||JSON.parse)(e),re.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Tl={transitional:jd,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",l=r.indexOf("application/json")>-1,a=re.isObject(t);if(a&&re.isHTMLForm(t)&&(t=new FormData(t)),re.isFormData(t))return l?JSON.stringify(Yd(t)):t;if(re.isArrayBuffer(t)||re.isBuffer(t)||re.isStream(t)||re.isFile(t)||re.isBlob(t))return t;if(re.isArrayBufferView(t))return t.buffer;if(re.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let p;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return m1(t,this.formSerializer).toString();if((p=re.isFileList(t))||r.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return lo(p?{"files[]":t}:t,o&&new o,this.formSerializer)}}return a||l?(n.setContentType("application/json",!1),b1(t)):t}],transformResponse:[function(t){const n=this.transitional||Tl.transitional,r=n&&n.forcedJSONParsing,l=this.responseType==="json";if(t&&re.isString(t)&&(r&&!this.responseType||l)){const d=!(n&&n.silentJSONParsing)&&l;try{return JSON.parse(t)}catch(p){if(d)throw p.name==="SyntaxError"?ze.from(p,ze.ERR_BAD_RESPONSE,this,null,this.response):p}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:qt.classes.FormData,Blob:qt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};re.forEach(["delete","get","head","post","put","patch"],e=>{Tl.headers[e]={}});const Ll=Tl,w1=re.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),_1=e=>{const t={};let n,r,l;return e&&e.split(`
792
+ `).forEach(function(d){l=d.indexOf(":"),n=d.substring(0,l).trim().toLowerCase(),r=d.substring(l+1).trim(),!(!n||t[n]&&w1[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},mu=Symbol("internals");function Wr(e){return e&&String(e).trim().toLowerCase()}function ls(e){return e===!1||e==null?e:re.isArray(e)?e.map(ls):String(e)}function $1(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 S1=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Do(e,t,n,r,l){if(re.isFunction(r))return r.call(this,t,n);if(l&&(t=n),!!re.isString(t)){if(re.isString(r))return t.indexOf(r)!==-1;if(re.isRegExp(r))return r.test(t)}}function C1(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function A1(e,t){const n=re.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(l,a,d){return this[r].call(this,t,l,a,d)},configurable:!0})})}let co=class{constructor(t){t&&this.set(t)}set(t,n,r){const l=this;function a(p,o,g){const i=Wr(o);if(!i)throw new Error("header name must be a non-empty string");const s=re.findKey(l,i);(!s||l[s]===void 0||g===!0||g===void 0&&l[s]!==!1)&&(l[s||o]=ls(p))}const d=(p,o)=>re.forEach(p,(g,i)=>a(g,i,o));return re.isPlainObject(t)||t instanceof this.constructor?d(t,n):re.isString(t)&&(t=t.trim())&&!S1(t)?d(_1(t),n):t!=null&&a(n,t,r),this}get(t,n){if(t=Wr(t),t){const r=re.findKey(this,t);if(r){const l=this[r];if(!n)return l;if(n===!0)return $1(l);if(re.isFunction(n))return n.call(this,l,r);if(re.isRegExp(n))return n.exec(l);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Wr(t),t){const r=re.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Do(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let l=!1;function a(d){if(d=Wr(d),d){const p=re.findKey(r,d);p&&(!n||Do(r,r[p],p,n))&&(delete r[p],l=!0)}}return re.isArray(t)?t.forEach(a):a(t),l}clear(t){const n=Object.keys(this);let r=n.length,l=!1;for(;r--;){const a=n[r];(!t||Do(this,this[a],a,t,!0))&&(delete this[a],l=!0)}return l}normalize(t){const n=this,r={};return re.forEach(this,(l,a)=>{const d=re.findKey(r,a);if(d){n[d]=ls(l),delete n[a];return}const p=t?C1(a):String(a).trim();p!==a&&delete n[a],n[p]=ls(l),r[p]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return re.forEach(this,(r,l)=>{r!=null&&r!==!1&&(n[l]=t&&re.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
793
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(l=>r.set(l)),r}static accessor(t){const r=(this[mu]=this[mu]={accessors:{}}).accessors,l=this.prototype;function a(d){const p=Wr(d);r[p]||(A1(l,d),r[p]=!0)}return re.isArray(t)?t.forEach(a):a(t),this}};co.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);re.reduceDescriptors(co.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});re.freezeMethods(co);const cn=co;function Fo(e,t){const n=this||Ll,r=t||n,l=cn.from(r.headers);let a=r.data;return re.forEach(e,function(p){a=p.call(n,a,l.normalize(),t?t.status:void 0)}),l.normalize(),a}function Kd(e){return!!(e&&e.__CANCEL__)}function Ti(e,t,n){ze.call(this,e??"canceled",ze.ERR_CANCELED,t,n),this.name="CanceledError"}re.inherits(Ti,ze,{__CANCEL__:!0});function k1(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ze("Request failed with status code "+n.status,[ze.ERR_BAD_REQUEST,ze.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const x1=qt.hasStandardBrowserEnv?{write(e,t,n,r,l,a){const d=[e+"="+encodeURIComponent(t)];re.isNumber(n)&&d.push("expires="+new Date(n).toGMTString()),re.isString(r)&&d.push("path="+r),re.isString(l)&&d.push("domain="+l),a===!0&&d.push("secure"),document.cookie=d.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function E1(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function R1(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Zd(e,t){return e&&!E1(t)?R1(e,t):t}const T1=qt.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function l(a){let d=a;return t&&(n.setAttribute("href",d),d=n.href),n.setAttribute("href",d),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=l(window.location.href),function(d){const p=re.isString(d)?l(d):d;return p.protocol===r.protocol&&p.host===r.host}}():function(){return function(){return!0}}();function L1(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function M1(e,t){e=e||10;const n=new Array(e),r=new Array(e);let l=0,a=0,d;return t=t!==void 0?t:1e3,function(o){const g=Date.now(),i=r[a];d||(d=g),n[l]=o,r[l]=g;let s=a,c=0;for(;s!==l;)c+=n[s++],s=s%e;if(l=(l+1)%e,l===a&&(a=(a+1)%e),g-d<t)return;const u=i&&g-i;return u?Math.round(c*1e3/u):void 0}}function vu(e,t){let n=0;const r=M1(50,250);return l=>{const a=l.loaded,d=l.lengthComputable?l.total:void 0,p=a-n,o=r(p),g=a<=d;n=a;const i={loaded:a,total:d,progress:d?a/d:void 0,bytes:p,rate:o||void 0,estimated:o&&d&&g?(d-a)/o:void 0,event:l};i[t?"download":"upload"]=!0,e(i)}}const O1=typeof XMLHttpRequest<"u",I1=O1&&function(e){return new Promise(function(n,r){let l=e.data;const a=cn.from(e.headers).normalize();let{responseType:d,withXSRFToken:p}=e,o;function g(){e.cancelToken&&e.cancelToken.unsubscribe(o),e.signal&&e.signal.removeEventListener("abort",o)}let i;if(re.isFormData(l)){if(qt.hasStandardBrowserEnv||qt.hasStandardBrowserWebWorkerEnv)a.setContentType(!1);else if((i=a.getContentType())!==!1){const[f,...m]=i?i.split(";").map(v=>v.trim()).filter(Boolean):[];a.setContentType([f||"multipart/form-data",...m].join("; "))}}let s=new XMLHttpRequest;if(e.auth){const f=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(f+":"+m))}const c=Zd(e.baseURL,e.url);s.open(e.method.toUpperCase(),Vd(c,e.params,e.paramsSerializer),!0),s.timeout=e.timeout;function u(){if(!s)return;const f=cn.from("getAllResponseHeaders"in s&&s.getAllResponseHeaders()),v={data:!d||d==="text"||d==="json"?s.responseText:s.response,status:s.status,statusText:s.statusText,headers:f,config:e,request:s};k1(function(C){n(C),g()},function(C){r(C),g()},v),s=null}if("onloadend"in s?s.onloadend=u:s.onreadystatechange=function(){!s||s.readyState!==4||s.status===0&&!(s.responseURL&&s.responseURL.indexOf("file:")===0)||setTimeout(u)},s.onabort=function(){s&&(r(new ze("Request aborted",ze.ECONNABORTED,e,s)),s=null)},s.onerror=function(){r(new ze("Network Error",ze.ERR_NETWORK,e,s)),s=null},s.ontimeout=function(){let m=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const v=e.transitional||jd;e.timeoutErrorMessage&&(m=e.timeoutErrorMessage),r(new ze(m,v.clarifyTimeoutError?ze.ETIMEDOUT:ze.ECONNABORTED,e,s)),s=null},qt.hasStandardBrowserEnv&&(p&&re.isFunction(p)&&(p=p(e)),p||p!==!1&&T1(c))){const f=e.xsrfHeaderName&&e.xsrfCookieName&&x1.read(e.xsrfCookieName);f&&a.set(e.xsrfHeaderName,f)}l===void 0&&a.setContentType(null),"setRequestHeader"in s&&re.forEach(a.toJSON(),function(m,v){s.setRequestHeader(v,m)}),re.isUndefined(e.withCredentials)||(s.withCredentials=!!e.withCredentials),d&&d!=="json"&&(s.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&s.addEventListener("progress",vu(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&s.upload&&s.upload.addEventListener("progress",vu(e.onUploadProgress)),(e.cancelToken||e.signal)&&(o=f=>{s&&(r(!f||f.type?new Ti(null,e,s):f),s.abort(),s=null)},e.cancelToken&&e.cancelToken.subscribe(o),e.signal&&(e.signal.aborted?o():e.signal.addEventListener("abort",o)));const h=L1(c);if(h&&qt.protocols.indexOf(h)===-1){r(new ze("Unsupported protocol "+h+":",ze.ERR_BAD_REQUEST,e));return}s.send(l||null)})},$a={http:s1,xhr:I1};re.forEach($a,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const yu=e=>`- ${e}`,N1=e=>re.isFunction(e)||e===null||e===!1,Xd={getAdapter:e=>{e=re.isArray(e)?e:[e];const{length:t}=e;let n,r;const l={};for(let a=0;a<t;a++){n=e[a];let d;if(r=n,!N1(n)&&(r=$a[(d=String(n)).toLowerCase()],r===void 0))throw new ze(`Unknown adapter '${d}'`);if(r)break;l[d||"#"+a]=r}if(!r){const a=Object.entries(l).map(([p,o])=>`adapter ${p} `+(o===!1?"is not supported by the environment":"is not available in the build"));let d=t?a.length>1?`since :
794
+ `+a.map(yu).join(`
795
+ `):" "+yu(a[0]):"as no adapter specified";throw new ze("There is no suitable adapter to dispatch the request "+d,"ERR_NOT_SUPPORT")}return r},adapters:$a};function Po(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ti(null,e)}function bu(e){return Po(e),e.headers=cn.from(e.headers),e.data=Fo.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Xd.getAdapter(e.adapter||Ll.adapter)(e).then(function(r){return Po(e),r.data=Fo.call(e,e.transformResponse,r),r.headers=cn.from(r.headers),r},function(r){return Kd(r)||(Po(e),r&&r.response&&(r.response.data=Fo.call(e,e.transformResponse,r.response),r.response.headers=cn.from(r.response.headers))),Promise.reject(r)})}const wu=e=>e instanceof cn?{...e}:e;function Sr(e,t){t=t||{};const n={};function r(g,i,s){return re.isPlainObject(g)&&re.isPlainObject(i)?re.merge.call({caseless:s},g,i):re.isPlainObject(i)?re.merge({},i):re.isArray(i)?i.slice():i}function l(g,i,s){if(re.isUndefined(i)){if(!re.isUndefined(g))return r(void 0,g,s)}else return r(g,i,s)}function a(g,i){if(!re.isUndefined(i))return r(void 0,i)}function d(g,i){if(re.isUndefined(i)){if(!re.isUndefined(g))return r(void 0,g)}else return r(void 0,i)}function p(g,i,s){if(s in t)return r(g,i);if(s in e)return r(void 0,g)}const o={url:a,method:a,data:a,baseURL:d,transformRequest:d,transformResponse:d,paramsSerializer:d,timeout:d,timeoutMessage:d,withCredentials:d,withXSRFToken:d,adapter:d,responseType:d,xsrfCookieName:d,xsrfHeaderName:d,onUploadProgress:d,onDownloadProgress:d,decompress:d,maxContentLength:d,maxBodyLength:d,beforeRedirect:d,transport:d,httpAgent:d,httpsAgent:d,cancelToken:d,socketPath:d,responseEncoding:d,validateStatus:p,headers:(g,i)=>l(wu(g),wu(i),!0)};return re.forEach(Object.keys(Object.assign({},e,t)),function(i){const s=o[i]||l,c=s(e[i],t[i],i);re.isUndefined(c)&&s!==p||(n[i]=c)}),n}const qd="1.6.8",Ml={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ml[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const _u={};Ml.transitional=function(t,n,r){function l(a,d){return"[Axios v"+qd+"] Transitional option '"+a+"'"+d+(r?". "+r:"")}return(a,d,p)=>{if(t===!1)throw new ze(l(d," has been removed"+(n?" in "+n:"")),ze.ERR_DEPRECATED);return n&&!_u[d]&&(_u[d]=!0,console.warn(l(d," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,d,p):!0}};function D1(e,t,n){if(typeof e!="object")throw new ze("options must be an object",ze.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let l=r.length;for(;l-- >0;){const a=r[l],d=t[a];if(d){const p=e[a],o=p===void 0||d(p,a,e);if(o!==!0)throw new ze("option "+a+" must be "+o,ze.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ze("Unknown option "+a,ze.ERR_BAD_OPTION)}}const Sa={assertOptions:D1,validators:Ml},$n=Sa.validators;let $s=class{constructor(t){this.defaults=t,this.interceptors={request:new gu,response:new gu}}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 a=l.stack?l.stack.replace(/^.+\n/,""):"";r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=`
796
+ `+a):r.stack=a}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Sr(this.defaults,n);const{transitional:r,paramsSerializer:l,headers:a}=n;r!==void 0&&Sa.assertOptions(r,{silentJSONParsing:$n.transitional($n.boolean),forcedJSONParsing:$n.transitional($n.boolean),clarifyTimeoutError:$n.transitional($n.boolean)},!1),l!=null&&(re.isFunction(l)?n.paramsSerializer={serialize:l}:Sa.assertOptions(l,{encode:$n.function,serialize:$n.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let d=a&&re.merge(a.common,a[n.method]);a&&re.forEach(["delete","get","head","post","put","patch","common"],h=>{delete a[h]}),n.headers=cn.concat(d,a);const p=[];let o=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(n)===!1||(o=o&&f.synchronous,p.unshift(f.fulfilled,f.rejected))});const g=[];this.interceptors.response.forEach(function(f){g.push(f.fulfilled,f.rejected)});let i,s=0,c;if(!o){const h=[bu.bind(this),void 0];for(h.unshift.apply(h,p),h.push.apply(h,g),c=h.length,i=Promise.resolve(n);s<c;)i=i.then(h[s++],h[s++]);return i}c=p.length;let u=n;for(s=0;s<c;){const h=p[s++],f=p[s++];try{u=h(u)}catch(m){f.call(this,m);break}}try{i=bu.call(this,u)}catch(h){return Promise.reject(h)}for(s=0,c=g.length;s<c;)i=i.then(g[s++],g[s++]);return i}getUri(t){t=Sr(this.defaults,t);const n=Zd(t.baseURL,t.url);return Vd(n,t.params,t.paramsSerializer)}};re.forEach(["delete","get","head","options"],function(t){$s.prototype[t]=function(n,r){return this.request(Sr(r||{},{method:t,url:n,data:(r||{}).data}))}});re.forEach(["post","put","patch"],function(t){function n(r){return function(a,d,p){return this.request(Sr(p||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:d}))}}$s.prototype[t]=n(),$s.prototype[t+"Form"]=n(!0)});const cs=$s;let F1=class Qd{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(l=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](l);r._listeners=null}),this.promise.then=l=>{let a;const d=new Promise(p=>{r.subscribe(p),a=p}).then(l);return d.cancel=function(){r.unsubscribe(a)},d},t(function(a,d,p){r.reason||(r.reason=new Ti(a,d,p),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 Qd(function(l){t=l}),cancel:t}}};const P1=F1;function B1(e){return function(n){return e.apply(null,n)}}function W1(e){return re.isObject(e)&&e.isAxiosError===!0}const Ca={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(Ca).forEach(([e,t])=>{Ca[t]=e});const H1=Ca;function Jd(e){const t=new cs(e),n=Md(cs.prototype.request,t);return re.extend(n,cs.prototype,t,{allOwnKeys:!0}),re.extend(n,t,null,{allOwnKeys:!0}),n.create=function(l){return Jd(Sr(e,l))},n}const Qe=Jd(Ll);Qe.Axios=cs;Qe.CanceledError=Ti;Qe.CancelToken=P1;Qe.isCancel=Kd;Qe.VERSION=qd;Qe.toFormData=lo;Qe.AxiosError=ze;Qe.Cancel=Qe.CanceledError;Qe.all=function(t){return Promise.all(t)};Qe.spread=B1;Qe.isAxiosError=W1;Qe.mergeConfig=Sr;Qe.AxiosHeaders=cn;Qe.formToJSON=e=>Yd(re.isHTMLForm(e)?new FormData(e):e);Qe.getAdapter=Xd.getAdapter;Qe.HttpStatusCode=H1;Qe.default=Qe;const{Axios:eT,AxiosError:z1,CanceledError:tT,isCancel:nT,CancelToken:rT,VERSION:iT,all:sT,Cancel:oT,isAxiosError:aT,spread:lT,toFormData:cT,AxiosHeaders:uT,HttpStatusCode:hT,formToJSON:dT,getAdapter:fT,mergeConfig:pT}=Qe;var je;(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 a={};for(const d of l)a[d]=d;return a},e.getValidEnumValues=l=>{const a=e.objectKeys(l).filter(p=>typeof l[l[p]]!="number"),d={};for(const p of a)d[p]=l[p];return e.objectValues(d)},e.objectValues=l=>e.objectKeys(l).map(function(a){return l[a]}),e.objectKeys=typeof Object.keys=="function"?l=>Object.keys(l):l=>{const a=[];for(const d in l)Object.prototype.hasOwnProperty.call(l,d)&&a.push(d);return a},e.find=(l,a)=>{for(const d of l)if(a(d))return d},e.isInteger=typeof Number.isInteger=="function"?l=>Number.isInteger(l):l=>typeof l=="number"&&isFinite(l)&&Math.floor(l)===l;function r(l,a=" | "){return l.map(d=>typeof d=="string"?`'${d}'`:d).join(a)}e.joinValues=r,e.jsonStringifyReplacer=(l,a)=>typeof a=="bigint"?a.toString():a})(je||(je={}));var Aa;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Aa||(Aa={}));const ve=je.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),xn=e=>{switch(typeof e){case"undefined":return ve.undefined;case"string":return ve.string;case"number":return isNaN(e)?ve.nan:ve.number;case"boolean":return ve.boolean;case"function":return ve.function;case"bigint":return ve.bigint;case"symbol":return ve.symbol;case"object":return Array.isArray(e)?ve.array:e===null?ve.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?ve.promise:typeof Map<"u"&&e instanceof Map?ve.map:typeof Set<"u"&&e instanceof Set?ve.set:typeof Date<"u"&&e instanceof Date?ve.date:ve.object;default:return ve.unknown}},ue=je.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"]),U1=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Ut 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(a){return a.message},r={_errors:[]},l=a=>{for(const d of a.issues)if(d.code==="invalid_union")d.unionErrors.map(l);else if(d.code==="invalid_return_type")l(d.returnTypeError);else if(d.code==="invalid_arguments")l(d.argumentsError);else if(d.path.length===0)r._errors.push(n(d));else{let p=r,o=0;for(;o<d.path.length;){const g=d.path[o];o===d.path.length-1?(p[g]=p[g]||{_errors:[]},p[g]._errors.push(n(d))):p[g]=p[g]||{_errors:[]},p=p[g],o++}}};return l(this),r}toString(){return this.message}get message(){return JSON.stringify(this.issues,je.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()}}Ut.create=e=>new Ut(e);const hi=(e,t)=>{let n;switch(e.code){case ue.invalid_type:e.received===ve.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case ue.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,je.jsonStringifyReplacer)}`;break;case ue.unrecognized_keys:n=`Unrecognized key(s) in object: ${je.joinValues(e.keys,", ")}`;break;case ue.invalid_union:n="Invalid input";break;case ue.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${je.joinValues(e.options)}`;break;case ue.invalid_enum_value:n=`Invalid enum value. Expected ${je.joinValues(e.options)}, received '${e.received}'`;break;case ue.invalid_arguments:n="Invalid function arguments";break;case ue.invalid_return_type:n="Invalid function return type";break;case ue.invalid_date:n="Invalid date";break;case ue.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:je.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case ue.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case ue.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case ue.custom:n="Invalid input";break;case ue.invalid_intersection_types:n="Intersection results could not be merged";break;case ue.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case ue.not_finite:n="Number must be finite";break;default:n=t.defaultError,je.assertNever(e)}return{message:n}};let ef=hi;function V1(e){ef=e}function Ss(){return ef}const Cs=e=>{const{data:t,path:n,errorMaps:r,issueData:l}=e,a=[...n,...l.path||[]],d={...l,path:a};let p="";const o=r.filter(g=>!!g).slice().reverse();for(const g of o)p=g(d,{data:t,defaultError:p}).message;return{...l,path:a,message:l.message||p}},j1=[];function be(e,t){const n=Cs({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,Ss(),hi].filter(r=>!!r)});e.common.issues.push(n)}class _t{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const l of n){if(l.status==="aborted")return Ne;l.status==="dirty"&&t.dirty(),r.push(l.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const l of n)r.push({key:await l.key,value:await l.value});return _t.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const l of n){const{key:a,value:d}=l;if(a.status==="aborted"||d.status==="aborted")return Ne;a.status==="dirty"&&t.dirty(),d.status==="dirty"&&t.dirty(),a.value!=="__proto__"&&(typeof d.value<"u"||l.alwaysSet)&&(r[a.value]=d.value)}return{status:t.value,value:r}}}const Ne=Object.freeze({status:"aborted"}),tf=e=>({status:"dirty",value:e}),kt=e=>({status:"valid",value:e}),ka=e=>e.status==="aborted",xa=e=>e.status==="dirty",di=e=>e.status==="valid",As=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 en{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 $u=(e,t)=>{if(di(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 Ut(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:(d,p)=>d.code!=="invalid_type"?{message:p.defaultError}:typeof p.data>"u"?{message:r??p.defaultError}:{message:n??p.defaultError},description:l}}class We{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return xn(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:xn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new _t,ctx:{common:t.parent.common,data:t.data,parsedType:xn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(As(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:xn(t)},a=this._parseSync({data:t,path:l.path,parent:l});return $u(l,a)}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:xn(t)},l=this._parse({data:t,path:r.path,parent:r}),a=await(As(l)?l:Promise.resolve(l));return $u(r,a)}refine(t,n){const r=l=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(l):n;return this._refinement((l,a)=>{const d=t(l),p=()=>a.addIssue({code:ue.custom,...r(l)});return typeof Promise<"u"&&d instanceof Promise?d.then(o=>o?!0:(p(),!1)):d?!0:(p(),!1)})}refinement(t,n){return this._refinement((r,l)=>t(r)?!0:(l.addIssue(typeof n=="function"?n(r,l):n),!1))}_refinement(t){return new Gt({schema:this,typeName:Me.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return un.create(this,this._def)}nullable(){return tr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Vt.create(this,this._def)}promise(){return Ar.create(this,this._def)}or(t){return mi.create([this,t],this._def)}and(t){return vi.create(this,t,this._def)}transform(t){return new Gt({...Pe(this._def),schema:this,typeName:Me.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new $i({...Pe(this._def),innerType:this,defaultValue:n,typeName:Me.ZodDefault})}brand(){return new rf({typeName:Me.ZodBranded,type:this,...Pe(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Rs({...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 Li.create(this,t)}readonly(){return Ls.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const G1=/^c[^\s-]{8,}$/i,Y1=/^[a-z][a-z0-9]*$/,K1=/^[0-9A-HJKMNP-TV-Z]{26}$/,Z1=/^[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,X1=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,q1="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Bo;const Q1=/^(((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}))$/,J1=/^(([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})))$/,ew=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 tw(e,t){return!!((t==="v4"||!t)&&Q1.test(e)||(t==="v6"||!t)&&J1.test(e))}class Wt extends We{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==ve.string){const a=this._getOrReturnCtx(t);return be(a,{code:ue.invalid_type,expected:ve.string,received:a.parsedType}),Ne}const r=new _t;let l;for(const a of this._def.checks)if(a.kind==="min")t.data.length<a.value&&(l=this._getOrReturnCtx(t,l),be(l,{code:ue.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind==="max")t.data.length>a.value&&(l=this._getOrReturnCtx(t,l),be(l,{code:ue.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind==="length"){const d=t.data.length>a.value,p=t.data.length<a.value;(d||p)&&(l=this._getOrReturnCtx(t,l),d?be(l,{code:ue.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):p&&be(l,{code:ue.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),r.dirty())}else if(a.kind==="email")X1.test(t.data)||(l=this._getOrReturnCtx(t,l),be(l,{validation:"email",code:ue.invalid_string,message:a.message}),r.dirty());else if(a.kind==="emoji")Bo||(Bo=new RegExp(q1,"u")),Bo.test(t.data)||(l=this._getOrReturnCtx(t,l),be(l,{validation:"emoji",code:ue.invalid_string,message:a.message}),r.dirty());else if(a.kind==="uuid")Z1.test(t.data)||(l=this._getOrReturnCtx(t,l),be(l,{validation:"uuid",code:ue.invalid_string,message:a.message}),r.dirty());else if(a.kind==="cuid")G1.test(t.data)||(l=this._getOrReturnCtx(t,l),be(l,{validation:"cuid",code:ue.invalid_string,message:a.message}),r.dirty());else if(a.kind==="cuid2")Y1.test(t.data)||(l=this._getOrReturnCtx(t,l),be(l,{validation:"cuid2",code:ue.invalid_string,message:a.message}),r.dirty());else if(a.kind==="ulid")K1.test(t.data)||(l=this._getOrReturnCtx(t,l),be(l,{validation:"ulid",code:ue.invalid_string,message:a.message}),r.dirty());else if(a.kind==="url")try{new URL(t.data)}catch{l=this._getOrReturnCtx(t,l),be(l,{validation:"url",code:ue.invalid_string,message:a.message}),r.dirty()}else a.kind==="regex"?(a.regex.lastIndex=0,a.regex.test(t.data)||(l=this._getOrReturnCtx(t,l),be(l,{validation:"regex",code:ue.invalid_string,message:a.message}),r.dirty())):a.kind==="trim"?t.data=t.data.trim():a.kind==="includes"?t.data.includes(a.value,a.position)||(l=this._getOrReturnCtx(t,l),be(l,{code:ue.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),r.dirty()):a.kind==="toLowerCase"?t.data=t.data.toLowerCase():a.kind==="toUpperCase"?t.data=t.data.toUpperCase():a.kind==="startsWith"?t.data.startsWith(a.value)||(l=this._getOrReturnCtx(t,l),be(l,{code:ue.invalid_string,validation:{startsWith:a.value},message:a.message}),r.dirty()):a.kind==="endsWith"?t.data.endsWith(a.value)||(l=this._getOrReturnCtx(t,l),be(l,{code:ue.invalid_string,validation:{endsWith:a.value},message:a.message}),r.dirty()):a.kind==="datetime"?ew(a).test(t.data)||(l=this._getOrReturnCtx(t,l),be(l,{code:ue.invalid_string,validation:"datetime",message:a.message}),r.dirty()):a.kind==="ip"?tw(t.data,a.version)||(l=this._getOrReturnCtx(t,l),be(l,{validation:"ip",code:ue.invalid_string,message:a.message}),r.dirty()):je.assertNever(a);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(l=>t.test(l),{validation:n,code:ue.invalid_string,...Te.errToObj(r)})}_addCheck(t){return new Wt({...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 Wt({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Wt({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Wt({...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}}Wt.create=e=>{var t;return new Wt({checks:[],typeName:Me.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Pe(e)})};function nw(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,l=n>r?n:r,a=parseInt(e.toFixed(l).replace(".","")),d=parseInt(t.toFixed(l).replace(".",""));return a%d/Math.pow(10,l)}class In extends We{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==ve.number){const a=this._getOrReturnCtx(t);return be(a,{code:ue.invalid_type,expected:ve.number,received:a.parsedType}),Ne}let r;const l=new _t;for(const a of this._def.checks)a.kind==="int"?je.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),be(r,{code:ue.invalid_type,expected:"integer",received:"float",message:a.message}),l.dirty()):a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(r=this._getOrReturnCtx(t,r),be(r,{code:ue.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),l.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(r=this._getOrReturnCtx(t,r),be(r,{code:ue.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),l.dirty()):a.kind==="multipleOf"?nw(t.data,a.value)!==0&&(r=this._getOrReturnCtx(t,r),be(r,{code:ue.not_multiple_of,multipleOf:a.value,message:a.message}),l.dirty()):a.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),be(r,{code:ue.not_finite,message:a.message}),l.dirty()):je.assertNever(a);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 In({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Te.toString(l)}]})}_addCheck(t){return new In({...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"&&je.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)}}In.create=e=>new In({checks:[],typeName:Me.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Pe(e)});class Nn extends We{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==ve.bigint){const a=this._getOrReturnCtx(t);return be(a,{code:ue.invalid_type,expected:ve.bigint,received:a.parsedType}),Ne}let r;const l=new _t;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(r=this._getOrReturnCtx(t,r),be(r,{code:ue.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),l.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(r=this._getOrReturnCtx(t,r),be(r,{code:ue.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),l.dirty()):a.kind==="multipleOf"?t.data%a.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),be(r,{code:ue.not_multiple_of,multipleOf:a.value,message:a.message}),l.dirty()):je.assertNever(a);return{status:l.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Te.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Te.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Te.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Te.toString(n))}setLimit(t,n,r,l){return new Nn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Te.toString(l)}]})}_addCheck(t){return new Nn({...this._def,checks:[...this._def.checks,t]})}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}}Nn.create=e=>{var t;return new Nn({checks:[],typeName:Me.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Pe(e)})};class fi extends We{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==ve.boolean){const r=this._getOrReturnCtx(t);return be(r,{code:ue.invalid_type,expected:ve.boolean,received:r.parsedType}),Ne}return kt(t.data)}}fi.create=e=>new fi({typeName:Me.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Pe(e)});class Jn extends We{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==ve.date){const a=this._getOrReturnCtx(t);return be(a,{code:ue.invalid_type,expected:ve.date,received:a.parsedType}),Ne}if(isNaN(t.data.getTime())){const a=this._getOrReturnCtx(t);return be(a,{code:ue.invalid_date}),Ne}const r=new _t;let l;for(const a of this._def.checks)a.kind==="min"?t.data.getTime()<a.value&&(l=this._getOrReturnCtx(t,l),be(l,{code:ue.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),r.dirty()):a.kind==="max"?t.data.getTime()>a.value&&(l=this._getOrReturnCtx(t,l),be(l,{code:ue.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),r.dirty()):je.assertNever(a);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Jn({...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}}Jn.create=e=>new Jn({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Me.ZodDate,...Pe(e)});class ks extends We{_parse(t){if(this._getType(t)!==ve.symbol){const r=this._getOrReturnCtx(t);return be(r,{code:ue.invalid_type,expected:ve.symbol,received:r.parsedType}),Ne}return kt(t.data)}}ks.create=e=>new ks({typeName:Me.ZodSymbol,...Pe(e)});class pi extends We{_parse(t){if(this._getType(t)!==ve.undefined){const r=this._getOrReturnCtx(t);return be(r,{code:ue.invalid_type,expected:ve.undefined,received:r.parsedType}),Ne}return kt(t.data)}}pi.create=e=>new pi({typeName:Me.ZodUndefined,...Pe(e)});class gi extends We{_parse(t){if(this._getType(t)!==ve.null){const r=this._getOrReturnCtx(t);return be(r,{code:ue.invalid_type,expected:ve.null,received:r.parsedType}),Ne}return kt(t.data)}}gi.create=e=>new gi({typeName:Me.ZodNull,...Pe(e)});class Cr extends We{constructor(){super(...arguments),this._any=!0}_parse(t){return kt(t.data)}}Cr.create=e=>new Cr({typeName:Me.ZodAny,...Pe(e)});class Kn extends We{constructor(){super(...arguments),this._unknown=!0}_parse(t){return kt(t.data)}}Kn.create=e=>new Kn({typeName:Me.ZodUnknown,...Pe(e)});class pn extends We{_parse(t){const n=this._getOrReturnCtx(t);return be(n,{code:ue.invalid_type,expected:ve.never,received:n.parsedType}),Ne}}pn.create=e=>new pn({typeName:Me.ZodNever,...Pe(e)});class xs extends We{_parse(t){if(this._getType(t)!==ve.undefined){const r=this._getOrReturnCtx(t);return be(r,{code:ue.invalid_type,expected:ve.void,received:r.parsedType}),Ne}return kt(t.data)}}xs.create=e=>new xs({typeName:Me.ZodVoid,...Pe(e)});class Vt extends We{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),l=this._def;if(n.parsedType!==ve.array)return be(n,{code:ue.invalid_type,expected:ve.array,received:n.parsedType}),Ne;if(l.exactLength!==null){const d=n.data.length>l.exactLength.value,p=n.data.length<l.exactLength.value;(d||p)&&(be(n,{code:d?ue.too_big:ue.too_small,minimum:p?l.exactLength.value:void 0,maximum:d?l.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:l.exactLength.message}),r.dirty())}if(l.minLength!==null&&n.data.length<l.minLength.value&&(be(n,{code:ue.too_small,minimum:l.minLength.value,type:"array",inclusive:!0,exact:!1,message:l.minLength.message}),r.dirty()),l.maxLength!==null&&n.data.length>l.maxLength.value&&(be(n,{code:ue.too_big,maximum:l.maxLength.value,type:"array",inclusive:!0,exact:!1,message:l.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((d,p)=>l.type._parseAsync(new en(n,d,n.path,p)))).then(d=>_t.mergeArray(r,d));const a=[...n.data].map((d,p)=>l.type._parseSync(new en(n,d,n.path,p)));return _t.mergeArray(r,a)}get element(){return this._def.type}min(t,n){return new Vt({...this._def,minLength:{value:t,message:Te.toString(n)}})}max(t,n){return new Vt({...this._def,maxLength:{value:t,message:Te.toString(n)}})}length(t,n){return new Vt({...this._def,exactLength:{value:t,message:Te.toString(n)}})}nonempty(t){return this.min(1,t)}}Vt.create=(e,t)=>new Vt({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Me.ZodArray,...Pe(t)});function ar(e){if(e instanceof at){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=un.create(ar(r))}return new at({...e._def,shape:()=>t})}else return e instanceof Vt?new Vt({...e._def,type:ar(e.element)}):e instanceof un?un.create(ar(e.unwrap())):e instanceof tr?tr.create(ar(e.unwrap())):e instanceof tn?tn.create(e.items.map(t=>ar(t))):e}class at extends We{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=je.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==ve.object){const g=this._getOrReturnCtx(t);return be(g,{code:ue.invalid_type,expected:ve.object,received:g.parsedType}),Ne}const{status:r,ctx:l}=this._processInputParams(t),{shape:a,keys:d}=this._getCached(),p=[];if(!(this._def.catchall instanceof pn&&this._def.unknownKeys==="strip"))for(const g in l.data)d.includes(g)||p.push(g);const o=[];for(const g of d){const i=a[g],s=l.data[g];o.push({key:{status:"valid",value:g},value:i._parse(new en(l,s,l.path,g)),alwaysSet:g in l.data})}if(this._def.catchall instanceof pn){const g=this._def.unknownKeys;if(g==="passthrough")for(const i of p)o.push({key:{status:"valid",value:i},value:{status:"valid",value:l.data[i]}});else if(g==="strict")p.length>0&&(be(l,{code:ue.unrecognized_keys,keys:p}),r.dirty());else if(g!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const g=this._def.catchall;for(const i of p){const s=l.data[i];o.push({key:{status:"valid",value:i},value:g._parse(new en(l,s,l.path,i)),alwaysSet:i in l.data})}}return l.common.async?Promise.resolve().then(async()=>{const g=[];for(const i of o){const s=await i.key;g.push({key:s,value:await i.value,alwaysSet:i.alwaysSet})}return g}).then(g=>_t.mergeObjectSync(r,g)):_t.mergeObjectSync(r,o)}get shape(){return this._def.shape()}strict(t){return Te.errToObj,new at({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var l,a,d,p;const o=(d=(a=(l=this._def).errorMap)===null||a===void 0?void 0:a.call(l,n,r).message)!==null&&d!==void 0?d:r.defaultError;return n.code==="unrecognized_keys"?{message:(p=Te.errToObj(t).message)!==null&&p!==void 0?p:o}:{message:o}}}:{}})}strip(){return new at({...this._def,unknownKeys:"strip"})}passthrough(){return new at({...this._def,unknownKeys:"passthrough"})}extend(t){return new at({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new at({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Me.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new at({...this._def,catchall:t})}pick(t){const n={};return je.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new at({...this._def,shape:()=>n})}omit(t){const n={};return je.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new at({...this._def,shape:()=>n})}deepPartial(){return ar(this)}partial(t){const n={};return je.objectKeys(this.shape).forEach(r=>{const l=this.shape[r];t&&!t[r]?n[r]=l:n[r]=l.optional()}),new at({...this._def,shape:()=>n})}required(t){const n={};return je.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let a=this.shape[r];for(;a instanceof un;)a=a._def.innerType;n[r]=a}}),new at({...this._def,shape:()=>n})}keyof(){return nf(je.objectKeys(this.shape))}}at.create=(e,t)=>new at({shape:()=>e,unknownKeys:"strip",catchall:pn.create(),typeName:Me.ZodObject,...Pe(t)});at.strictCreate=(e,t)=>new at({shape:()=>e,unknownKeys:"strict",catchall:pn.create(),typeName:Me.ZodObject,...Pe(t)});at.lazycreate=(e,t)=>new at({shape:e,unknownKeys:"strip",catchall:pn.create(),typeName:Me.ZodObject,...Pe(t)});class mi extends We{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function l(a){for(const p of a)if(p.result.status==="valid")return p.result;for(const p of a)if(p.result.status==="dirty")return n.common.issues.push(...p.ctx.common.issues),p.result;const d=a.map(p=>new Ut(p.ctx.common.issues));return be(n,{code:ue.invalid_union,unionErrors:d}),Ne}if(n.common.async)return Promise.all(r.map(async a=>{const d={...n,common:{...n.common,issues:[]},parent:null};return{result:await a._parseAsync({data:n.data,path:n.path,parent:d}),ctx:d}})).then(l);{let a;const d=[];for(const o of r){const g={...n,common:{...n.common,issues:[]},parent:null},i=o._parseSync({data:n.data,path:n.path,parent:g});if(i.status==="valid")return i;i.status==="dirty"&&!a&&(a={result:i,ctx:g}),g.common.issues.length&&d.push(g.common.issues)}if(a)return n.common.issues.push(...a.ctx.common.issues),a.result;const p=d.map(o=>new Ut(o));return be(n,{code:ue.invalid_union,unionErrors:p}),Ne}}get options(){return this._def.options}}mi.create=(e,t)=>new mi({options:e,typeName:Me.ZodUnion,...Pe(t)});const us=e=>e instanceof bi?us(e.schema):e instanceof Gt?us(e.innerType()):e instanceof wi?[e.value]:e instanceof Dn?e.options:e instanceof _i?Object.keys(e.enum):e instanceof $i?us(e._def.innerType):e instanceof pi?[void 0]:e instanceof gi?[null]:null;class uo extends We{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ve.object)return be(n,{code:ue.invalid_type,expected:ve.object,received:n.parsedType}),Ne;const r=this.discriminator,l=n.data[r],a=this.optionsMap.get(l);return a?n.common.async?a._parseAsync({data:n.data,path:n.path,parent:n}):a._parseSync({data:n.data,path:n.path,parent:n}):(be(n,{code:ue.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),Ne)}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 a of n){const d=us(a.shape[t]);if(!d)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const p of d){if(l.has(p))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(p)}`);l.set(p,a)}}return new uo({typeName:Me.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:l,...Pe(r)})}}function Ea(e,t){const n=xn(e),r=xn(t);if(e===t)return{valid:!0,data:e};if(n===ve.object&&r===ve.object){const l=je.objectKeys(t),a=je.objectKeys(e).filter(p=>l.indexOf(p)!==-1),d={...e,...t};for(const p of a){const o=Ea(e[p],t[p]);if(!o.valid)return{valid:!1};d[p]=o.data}return{valid:!0,data:d}}else if(n===ve.array&&r===ve.array){if(e.length!==t.length)return{valid:!1};const l=[];for(let a=0;a<e.length;a++){const d=e[a],p=t[a],o=Ea(d,p);if(!o.valid)return{valid:!1};l.push(o.data)}return{valid:!0,data:l}}else return n===ve.date&&r===ve.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class vi extends We{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),l=(a,d)=>{if(ka(a)||ka(d))return Ne;const p=Ea(a.value,d.value);return p.valid?((xa(a)||xa(d))&&n.dirty(),{status:n.value,value:p.data}):(be(r,{code:ue.invalid_intersection_types}),Ne)};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(([a,d])=>l(a,d)):l(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}vi.create=(e,t,n)=>new vi({left:e,right:t,typeName:Me.ZodIntersection,...Pe(n)});class tn extends We{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ve.array)return be(r,{code:ue.invalid_type,expected:ve.array,received:r.parsedType}),Ne;if(r.data.length<this._def.items.length)return be(r,{code:ue.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ne;!this._def.rest&&r.data.length>this._def.items.length&&(be(r,{code:ue.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const a=[...r.data].map((d,p)=>{const o=this._def.items[p]||this._def.rest;return o?o._parse(new en(r,d,r.path,p)):null}).filter(d=>!!d);return r.common.async?Promise.all(a).then(d=>_t.mergeArray(n,d)):_t.mergeArray(n,a)}get items(){return this._def.items}rest(t){return new tn({...this._def,rest:t})}}tn.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new tn({items:e,typeName:Me.ZodTuple,rest:null,...Pe(t)})};class yi extends We{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ve.object)return be(r,{code:ue.invalid_type,expected:ve.object,received:r.parsedType}),Ne;const l=[],a=this._def.keyType,d=this._def.valueType;for(const p in r.data)l.push({key:a._parse(new en(r,p,r.path,p)),value:d._parse(new en(r,r.data[p],r.path,p))});return r.common.async?_t.mergeObjectAsync(n,l):_t.mergeObjectSync(n,l)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof We?new yi({keyType:t,valueType:n,typeName:Me.ZodRecord,...Pe(r)}):new yi({keyType:Wt.create(),valueType:t,typeName:Me.ZodRecord,...Pe(n)})}}class Es extends We{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ve.map)return be(r,{code:ue.invalid_type,expected:ve.map,received:r.parsedType}),Ne;const l=this._def.keyType,a=this._def.valueType,d=[...r.data.entries()].map(([p,o],g)=>({key:l._parse(new en(r,p,r.path,[g,"key"])),value:a._parse(new en(r,o,r.path,[g,"value"]))}));if(r.common.async){const p=new Map;return Promise.resolve().then(async()=>{for(const o of d){const g=await o.key,i=await o.value;if(g.status==="aborted"||i.status==="aborted")return Ne;(g.status==="dirty"||i.status==="dirty")&&n.dirty(),p.set(g.value,i.value)}return{status:n.value,value:p}})}else{const p=new Map;for(const o of d){const g=o.key,i=o.value;if(g.status==="aborted"||i.status==="aborted")return Ne;(g.status==="dirty"||i.status==="dirty")&&n.dirty(),p.set(g.value,i.value)}return{status:n.value,value:p}}}}Es.create=(e,t,n)=>new Es({valueType:t,keyType:e,typeName:Me.ZodMap,...Pe(n)});class er extends We{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ve.set)return be(r,{code:ue.invalid_type,expected:ve.set,received:r.parsedType}),Ne;const l=this._def;l.minSize!==null&&r.data.size<l.minSize.value&&(be(r,{code:ue.too_small,minimum:l.minSize.value,type:"set",inclusive:!0,exact:!1,message:l.minSize.message}),n.dirty()),l.maxSize!==null&&r.data.size>l.maxSize.value&&(be(r,{code:ue.too_big,maximum:l.maxSize.value,type:"set",inclusive:!0,exact:!1,message:l.maxSize.message}),n.dirty());const a=this._def.valueType;function d(o){const g=new Set;for(const i of o){if(i.status==="aborted")return Ne;i.status==="dirty"&&n.dirty(),g.add(i.value)}return{status:n.value,value:g}}const p=[...r.data.values()].map((o,g)=>a._parse(new en(r,o,r.path,g)));return r.common.async?Promise.all(p).then(o=>d(o)):d(p)}min(t,n){return new er({...this._def,minSize:{value:t,message:Te.toString(n)}})}max(t,n){return new er({...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)}}er.create=(e,t)=>new er({valueType:e,minSize:null,maxSize:null,typeName:Me.ZodSet,...Pe(t)});class vr extends We{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ve.function)return be(n,{code:ue.invalid_type,expected:ve.function,received:n.parsedType}),Ne;function r(p,o){return Cs({data:p,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Ss(),hi].filter(g=>!!g),issueData:{code:ue.invalid_arguments,argumentsError:o}})}function l(p,o){return Cs({data:p,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Ss(),hi].filter(g=>!!g),issueData:{code:ue.invalid_return_type,returnTypeError:o}})}const a={errorMap:n.common.contextualErrorMap},d=n.data;if(this._def.returns instanceof Ar){const p=this;return kt(async function(...o){const g=new Ut([]),i=await p._def.args.parseAsync(o,a).catch(u=>{throw g.addIssue(r(o,u)),g}),s=await Reflect.apply(d,this,i);return await p._def.returns._def.type.parseAsync(s,a).catch(u=>{throw g.addIssue(l(s,u)),g})})}else{const p=this;return kt(function(...o){const g=p._def.args.safeParse(o,a);if(!g.success)throw new Ut([r(o,g.error)]);const i=Reflect.apply(d,this,g.data),s=p._def.returns.safeParse(i,a);if(!s.success)throw new Ut([l(i,s.error)]);return s.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new vr({...this._def,args:tn.create(t).rest(Kn.create())})}returns(t){return new vr({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new vr({args:t||tn.create([]).rest(Kn.create()),returns:n||Kn.create(),typeName:Me.ZodFunction,...Pe(r)})}}class bi extends We{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}bi.create=(e,t)=>new bi({getter:e,typeName:Me.ZodLazy,...Pe(t)});class wi extends We{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return be(n,{received:n.data,code:ue.invalid_literal,expected:this._def.value}),Ne}return{status:"valid",value:t.data}}get value(){return this._def.value}}wi.create=(e,t)=>new wi({value:e,typeName:Me.ZodLiteral,...Pe(t)});function nf(e,t){return new Dn({values:e,typeName:Me.ZodEnum,...Pe(t)})}class Dn extends We{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return be(n,{expected:je.joinValues(r),received:n.parsedType,code:ue.invalid_type}),Ne}if(this._def.values.indexOf(t.data)===-1){const n=this._getOrReturnCtx(t),r=this._def.values;return be(n,{received:n.data,code:ue.invalid_enum_value,options:r}),Ne}return kt(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t){return Dn.create(t)}exclude(t){return Dn.create(this.options.filter(n=>!t.includes(n)))}}Dn.create=nf;class _i extends We{_parse(t){const n=je.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==ve.string&&r.parsedType!==ve.number){const l=je.objectValues(n);return be(r,{expected:je.joinValues(l),received:r.parsedType,code:ue.invalid_type}),Ne}if(n.indexOf(t.data)===-1){const l=je.objectValues(n);return be(r,{received:r.data,code:ue.invalid_enum_value,options:l}),Ne}return kt(t.data)}get enum(){return this._def.values}}_i.create=(e,t)=>new _i({values:e,typeName:Me.ZodNativeEnum,...Pe(t)});class Ar extends We{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ve.promise&&n.common.async===!1)return be(n,{code:ue.invalid_type,expected:ve.promise,received:n.parsedType}),Ne;const r=n.parsedType===ve.promise?n.data:Promise.resolve(n.data);return kt(r.then(l=>this._def.type.parseAsync(l,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Ar.create=(e,t)=>new Ar({type:e,typeName:Me.ZodPromise,...Pe(t)});class Gt extends We{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,a={addIssue:d=>{be(r,d),d.fatal?n.abort():n.dirty()},get path(){return r.path}};if(a.addIssue=a.addIssue.bind(a),l.type==="preprocess"){const d=l.transform(r.data,a);return r.common.issues.length?{status:"dirty",value:r.data}:r.common.async?Promise.resolve(d).then(p=>this._def.schema._parseAsync({data:p,path:r.path,parent:r})):this._def.schema._parseSync({data:d,path:r.path,parent:r})}if(l.type==="refinement"){const d=p=>{const o=l.refinement(p,a);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 p};if(r.common.async===!1){const p=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return p.status==="aborted"?Ne:(p.status==="dirty"&&n.dirty(),d(p.value),{status:n.value,value:p.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(p=>p.status==="aborted"?Ne:(p.status==="dirty"&&n.dirty(),d(p.value).then(()=>({status:n.value,value:p.value}))))}if(l.type==="transform")if(r.common.async===!1){const d=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!di(d))return d;const p=l.transform(d.value,a);if(p instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:p}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(d=>di(d)?Promise.resolve(l.transform(d.value,a)).then(p=>({status:n.value,value:p})):d);je.assertNever(l)}}Gt.create=(e,t,n)=>new Gt({schema:e,typeName:Me.ZodEffects,effect:t,...Pe(n)});Gt.createWithPreprocess=(e,t,n)=>new Gt({schema:t,effect:{type:"preprocess",transform:e},typeName:Me.ZodEffects,...Pe(n)});class un extends We{_parse(t){return this._getType(t)===ve.undefined?kt(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}un.create=(e,t)=>new un({innerType:e,typeName:Me.ZodOptional,...Pe(t)});class tr extends We{_parse(t){return this._getType(t)===ve.null?kt(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}tr.create=(e,t)=>new tr({innerType:e,typeName:Me.ZodNullable,...Pe(t)});class $i extends We{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===ve.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}$i.create=(e,t)=>new $i({innerType:e,typeName:Me.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Pe(t)});class Rs extends We{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},l=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return As(l)?l.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Ut(r.common.issues)},input:r.data})})):{status:"valid",value:l.status==="valid"?l.value:this._def.catchValue({get error(){return new Ut(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Rs.create=(e,t)=>new Rs({innerType:e,typeName:Me.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Pe(t)});class Ts extends We{_parse(t){if(this._getType(t)!==ve.nan){const r=this._getOrReturnCtx(t);return be(r,{code:ue.invalid_type,expected:ve.nan,received:r.parsedType}),Ne}return{status:"valid",value:t.data}}}Ts.create=e=>new Ts({typeName:Me.ZodNaN,...Pe(e)});const rw=Symbol("zod_brand");class rf extends We{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class Li extends We{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const a=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?Ne:a.status==="dirty"?(n.dirty(),tf(a.value)):this._def.out._parseAsync({data:a.value,path:r.path,parent:r})})();{const l=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return l.status==="aborted"?Ne: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 Li({in:t,out:n,typeName:Me.ZodPipeline})}}class Ls extends We{_parse(t){const n=this._def.innerType._parse(t);return di(n)&&(n.value=Object.freeze(n.value)),n}}Ls.create=(e,t)=>new Ls({innerType:e,typeName:Me.ZodReadonly,...Pe(t)});const sf=(e,t={},n)=>e?Cr.create().superRefine((r,l)=>{var a,d;if(!e(r)){const p=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,o=(d=(a=p.fatal)!==null&&a!==void 0?a:n)!==null&&d!==void 0?d:!0,g=typeof p=="string"?{message:p}:p;l.addIssue({code:"custom",...g,fatal:o})}}):Cr.create(),iw={object:at.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 sw=(e,t={message:`Input not instance of ${e.name}`})=>sf(n=>n instanceof e,t),of=Wt.create,af=In.create,ow=Ts.create,aw=Nn.create,lf=fi.create,lw=Jn.create,cw=ks.create,uw=pi.create,hw=gi.create,dw=Cr.create,fw=Kn.create,pw=pn.create,gw=xs.create,mw=Vt.create,vw=at.create,yw=at.strictCreate,bw=mi.create,ww=uo.create,_w=vi.create,$w=tn.create,Sw=yi.create,Cw=Es.create,Aw=er.create,kw=vr.create,xw=bi.create,Ew=wi.create,Rw=Dn.create,Tw=_i.create,Lw=Ar.create,Su=Gt.create,Mw=un.create,Ow=tr.create,Iw=Gt.createWithPreprocess,Nw=Li.create,Dw=()=>of().optional(),Fw=()=>af().optional(),Pw=()=>lf().optional(),Bw={string:e=>Wt.create({...e,coerce:!0}),number:e=>In.create({...e,coerce:!0}),boolean:e=>fi.create({...e,coerce:!0}),bigint:e=>Nn.create({...e,coerce:!0}),date:e=>Jn.create({...e,coerce:!0})},Ww=Ne;var te=Object.freeze({__proto__:null,defaultErrorMap:hi,setErrorMap:V1,getErrorMap:Ss,makeIssue:Cs,EMPTY_PATH:j1,addIssueToContext:be,ParseStatus:_t,INVALID:Ne,DIRTY:tf,OK:kt,isAborted:ka,isDirty:xa,isValid:di,isAsync:As,get util(){return je},get objectUtil(){return Aa},ZodParsedType:ve,getParsedType:xn,ZodType:We,ZodString:Wt,ZodNumber:In,ZodBigInt:Nn,ZodBoolean:fi,ZodDate:Jn,ZodSymbol:ks,ZodUndefined:pi,ZodNull:gi,ZodAny:Cr,ZodUnknown:Kn,ZodNever:pn,ZodVoid:xs,ZodArray:Vt,ZodObject:at,ZodUnion:mi,ZodDiscriminatedUnion:uo,ZodIntersection:vi,ZodTuple:tn,ZodRecord:yi,ZodMap:Es,ZodSet:er,ZodFunction:vr,ZodLazy:bi,ZodLiteral:wi,ZodEnum:Dn,ZodNativeEnum:_i,ZodPromise:Ar,ZodEffects:Gt,ZodTransformer:Gt,ZodOptional:un,ZodNullable:tr,ZodDefault:$i,ZodCatch:Rs,ZodNaN:Ts,BRAND:rw,ZodBranded:rf,ZodPipeline:Li,ZodReadonly:Ls,custom:sf,Schema:We,ZodSchema:We,late:iw,get ZodFirstPartyTypeKind(){return Me},coerce:Bw,any:dw,array:mw,bigint:aw,boolean:lf,date:lw,discriminatedUnion:ww,effect:Su,enum:Rw,function:kw,instanceof:sw,intersection:_w,lazy:xw,literal:Ew,map:Cw,nan:ow,nativeEnum:Tw,never:pw,null:hw,nullable:Ow,number:af,object:vw,oboolean:Pw,onumber:Fw,optional:Mw,ostring:Dw,pipeline:Nw,preprocess:Iw,promise:Lw,record:Sw,set:Aw,strictObject:yw,string:of,symbol:cw,transformer:Su,tuple:$w,undefined:uw,union:bw,unknown:fw,void:gw,NEVER:Ww,ZodIssueCode:ue,quotelessJson:U1,ZodError:Ut});const ho=te.object({total:te.number(),currentPage:te.number(),pageSize:te.number()}),Hw=te.object({key:te.string(),value:te.string().nullish()}),zw=te.object({name:te.string(),configured:te.boolean(),items:te.array(Hw).nullish(),type:te.string()}),Uw=te.object({results:te.array(zw)}),fo=te.object({id:te.number(),name:te.string()}),Vw=ho.extend({results:te.array(fo)}),jw=te.object({resource:te.string(),value:te.string()}),Cu=te.object({name:te.string().nullish()}),Gw=te.object({createdOn:te.string().nullish(),updatedOn:te.string().nullish(),expiresOn:te.string().nullish(),registrar:Cu.nullish(),contacts:te.array(Cu)}),Yw=te.object({number:te.number()}),Kw=te.object({country:te.string(),countryCode:te.string()}),Zw=te.object({name:te.string()}),Xw=te.object({name:te.string()}),qw=te.object({name:te.string()}),Qw=te.object({number:te.number()}),Ol=te.object({id:te.number(),data:te.string(),dataType:te.string(),source:te.string(),query:te.string().nullish(),metadata:te.any().nullish(),createdAt:te.string(),autonomousSystem:Yw.nullish(),whoisRecord:Gw.nullish(),geolocation:Kw.nullish(),dnsRecords:te.array(jw).nullish(),reverseDnsNames:te.array(Zw).nullish(),cpes:te.array(Xw).nullish(),ports:te.array(Qw).nullish(),vulnerabilities:te.array(qw).nullish(),tags:te.array(fo)}),cf=te.object({id:te.number(),ruleId:te.string(),createdAt:te.string(),tags:te.array(fo),artifacts:te.array(Ol)}),Jw=ho.extend({results:te.array(cf)});te.object({q:te.string(),page:te.number().nullish(),limit:te.number().nullish()});te.object({countryCode:te.string(),asn:te.string().nullish(),loc:te.string().nullish()});te.object({lat:te.number(),long:te.number()});te.object({name:te.string(),code:te.string(),lat:te.number(),long:te.number()});te.union([te.literal("ip"),te.literal("domain"),te.literal("url"),te.literal("hash"),te.literal("mail")]);te.object({name:te.string(),type:te.string(),baseURL:te.string(),favicon:te.function().returns(te.string()),href:te.function().args(te.string()).returns(te.string())});const hs=te.object({id:te.string(),title:te.string(),description:te.string(),yaml:te.string(),createdAt:te.string(),updatedAt:te.string(),tags:te.array(fo)});te.object({yaml:te.string()});te.object({yaml:te.string()});te.object({analyzer:te.string(),query:te.string()});const e_=ho.extend({results:te.array(hs)}),t_=ho.extend({results:te.array(Ol)}),hr=te.object({message:te.string()});hr.extend({detail:te.any().nullish()});const Au=hr.extend({queued:te.boolean()});te.union([te.literal("Alerts"),te.literal("Rules"),te.literal("Artifacts")]);const dt=Qe.create(),St={async getConfigs(){const e=await dt.get("/api/configs");return Uw.parse(e.data)},async getAlerts(e){e.page=e.page||1;const t=await dt.get("/api/alerts",{params:e});return Jw.parse(t.data)},async getAlert(e){const t=await dt.get(`/api/alerts/${e}`);return cf.parse(t.data)},async getTags(){const e=await dt.get("/api/tags");return Vw.parse(e.data)},async deleteAlert(e){const t=await dt.delete(`/api/alerts/${e}`);return hr.parse(t.data)},async getArtifact(e){const t=await dt.get(`/api/artifacts/${e}`);return Ol.parse(t.data)},async getArtifacts(e){e.page=e.page||1;const t=await dt.get("/api/artifacts",{params:e});return t_.parse(t.data)},async enrichArtifact(e){const t=await dt.post(`/api/artifacts/${e}/enrich`);return Au.parse(t.data)},async deleteArtifact(e){const t=await dt.delete(`/api/artifacts/${e}`);return hr.parse(t.data)},async getRules(e){e.page=e.page||1;const t=await dt.get("/api/rules",{params:e});return e_.parse(t.data)},async getRule(e){const t=await dt.get(`/api/rules/${e}`);return hs.parse(t.data)},async searchRule(e){const t=await dt.post(`/api/rules/${e}/search`);return Au.parse(t.data)},async createRule(e){const t=await dt.post("/api/rules/",e);return hs.parse(t.data)},async updateRule(e){const t=await dt.put("/api/rules/",e);return hs.parse(t.data)},async deleteRule(e){const t=await dt.delete(`/api/rules/${e}`);return hr.parse(t.data)},async deleteTag(e){const t=await dt.delete(`/api/tags/${e}`);return hr.parse(t.data)},async getIpInfo(e){return(await dt.get(`/api/ip_addresses/${e}`)).data}};function Mi(){return $t(async(e,t)=>await St.getAlerts(t))}function n_(){return $t(async(e,t)=>await St.deleteAlert(t))}function r_(){return $t(async(e,t)=>await St.deleteTag(t))}function i_(){return $t(async(e,t)=>await St.getArtifact(t))}function uf(){return $t(async(e,t)=>await St.deleteArtifact(t))}function s_(){return $t(async(e,t)=>await St.enrichArtifact(t))}function o_(){return $t(async()=>await St.getConfigs())}function a_(){return $t(async(e,t)=>await St.getIpInfo(t))}function hf(){return $t(async(e,t)=>await St.getRules(t))}function df(){return $t(async(e,t)=>await St.getRule(t))}function l_(){return $t(async(e,t)=>await St.deleteRule(t))}function c_(){return $t(async(e,t)=>await St.searchRule(t))}function u_(){return $t(async(e,t)=>await St.createRule(t))}function h_(){return $t(async(e,t)=>await St.updateRule(t))}function Il(){return $t(async(e,t)=>await St.getArtifacts(t))}function d_(){return $t(async(e,t)=>await St.getAlert(t))}const f_=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=n_();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(d){Qe.isAxiosError(d)&&t.emit("set-error",d)}}}}}),p_={class:"buttons is-pulled-right"},g_=["href"],m_=D("span",null,"JSON",-1),v_={class:"icon is-small"},y_=D("span",null,"Delete",-1),b_={class:"icon is-small"};function w_(e,t,n,r,l,a){const d=ne("font-awesome-icon");return G(),ie("span",p_,[D("a",{class:"button is-link is-light is-small",href:e.href,target:"_blank"},[m_,D("span",v_,[ae(d,{icon:"barcode"})])],8,g_),D("button",{class:"button is-light is-small",onClick:t[0]||(t[0]=(...p)=>e.deleteAlert&&e.deleteAlert(...p))},[y_,D("span",b_,[ae(d,{icon:"times"})])])])}const ff=Ee(f_,[["render",w_]]);var Oi=__;function __(e,t,n){return t==null||t>=e.length?e:(n==null&&(n="..."),e.slice(0,Math.max(0,t-n.length))+n)}const $_=Ce({name:"ArtifactTag",props:{artifact:{type:Object,required:!0}},emits:["delete"],setup(e,t){const n=Ke(!1),r=Ke(!1),l=uf();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:Oi}}}),S_={key:0,class:"control"};function C_(e,t,n,r,l,a){const d=ne("router-link");return e.isDeleted?ge("",!0):(G(),ie("div",S_,[D("div",{class:"tags has-addons are-medium",onMouseover:t[1]||(t[1]=(...p)=>e.showDeleteButton&&e.showDeleteButton(...p)),onMouseleave:t[2]||(t[2]=(...p)=>e.hideDeleteButton&&e.hideDeleteButton(...p))},[ae(d,{class:"tag is-link is-light",to:{name:"Artifact",params:{id:e.artifact.id}}},{default:nt(()=>[rt(we(e.truncate(e.artifact.data,32)),1)]),_:1},8,["to"]),e.isDeleteButtonEnabled?(G(),ie("span",{key:0,class:"tag is-delete",onClick:t[0]||(t[0]=(...p)=>e.deleteArtifact&&e.deleteArtifact(...p))})):ge("",!0)],32)]))}const A_=Ee($_,[["render",C_]]),k_=Ce({name:"ArtifactTags",components:{ArtifactTag:A_},props:{artifacts:{type:Array,required:!0}},emits:["delete"],setup(e,t){const n=Ke(0),r=()=>{n.value+=1};return ot(n,()=>{n.value>=e.artifacts.length&&t.emit("delete")}),{onDelete:r}}}),x_={class:"field is-grouped is-grouped-multiline"};function E_(e,t,n,r,l,a){const d=ne("ArtifactTag");return G(),ie("div",x_,[(G(!0),ie(Be,null,Ot(e.artifacts,p=>(G(),Se(d,{key:p.id,artifact:p,onDelete:e.onDelete},null,8,["artifact","onDelete"]))),128))])}const pf=Ee(k_,[["render",E_]]);var Ms={d:(e,t)=>{for(var n in t)Ms.o(t,n)&&!Ms.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},gf={};function Ra(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 mf(e,t){if(e){if(typeof e=="string")return Ra(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ra(e,t):void 0}}function Os(e){return function(t){if(Array.isArray(t))return Ra(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||mf(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
797
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Is(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Ms.d(gf,{Z:()=>O_});const Re=(ku={computed:()=>Le,createTextVNode:()=>rt,createVNode:()=>ae,defineComponent:()=>Ce,reactive:()=>Lr,ref:()=>Ke,watch:()=>ot,watchEffect:()=>Uh},Wo={},Ms.d(Wo,ku),Wo),R_=(0,Re.defineComponent)({props:{data:{required:!0,type:String},onClick:Function},render:function(){var e=this.data,t=this.onClick;return(0,Re.createVNode)("span",{class:"vjs-tree-brackets",onClick:t},[e])}}),T_=(0,Re.defineComponent)({emits:["change","update:modelValue"],props:{checked:{type:Boolean,default:!1},isMultiple:Boolean,onChange:Function},setup:function(e,t){var n=t.emit;return{uiType:(0,Re.computed)(function(){return e.isMultiple?"checkbox":"radio"}),model:(0,Re.computed)({get:function(){return e.checked},set:function(r){return n("update:modelValue",r)}})}},render:function(){var e=this.uiType,t=this.model,n=this.$emit;return(0,Re.createVNode)("label",{class:["vjs-check-controller",t?"is-checked":""],onClick:function(r){return r.stopPropagation()}},[(0,Re.createVNode)("span",{class:"vjs-check-controller-inner is-".concat(e)},null),(0,Re.createVNode)("input",{checked:t,class:"vjs-check-controller-original is-".concat(e),type:e,onChange:function(){return n("change",t)}},null)])}}),L_=(0,Re.defineComponent)({props:{nodeType:{required:!0,type:String},onClick:Function},render:function(){var e=this.nodeType,t=this.onClick,n=e==="objectStart"||e==="arrayStart";return n||e==="objectCollapsed"||e==="arrayCollapsed"?(0,Re.createVNode)("span",{class:"vjs-carets vjs-carets-".concat(n?"open":"close"),onClick:t},[(0,Re.createVNode)("svg",{viewBox:"0 0 1024 1024",focusable:"false","data-icon":"caret-down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[(0,Re.createVNode)("path",{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"},null)])]):null}});var ku,Wo;function Ta(e){return Ta=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},Ta(e)}function vf(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Wn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"root",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0,l=r||{},a=l.key,d=l.index,p=l.type,o=p===void 0?"content":p,g=l.showComma,i=g!==void 0&&g,s=l.length,c=s===void 0?1:s,u=vf(e);if(u==="array"){var h=xu(e.map(function(v,y,C){return Wn(v,"".concat(t,"[").concat(y,"]"),n+1,{index:y,showComma:y!==C.length-1,length:c,type:o})}));return[Wn("[",t,n,{showComma:!1,key:a,length:e.length,type:"arrayStart"})[0]].concat(h,Wn("]",t,n,{showComma:i,length:e.length,type:"arrayEnd"})[0])}if(u==="object"){var f=Object.keys(e),m=xu(f.map(function(v,y,C){return Wn(e[v],/^[a-zA-Z_]\w*$/.test(v)?"".concat(t,".").concat(v):"".concat(t,'["').concat(v,'"]'),n+1,{key:v,showComma:y!==C.length-1,length:c,type:o})}));return[Wn("{",t,n,{showComma:!1,key:a,index:d,length:f.length,type:"objectStart"})[0]].concat(m,Wn("}",t,n,{showComma:i,length:f.length,type:"objectEnd"})[0])}return[{content:e,level:n,key:a,index:d,path:t,showComma:i,length:c,type:o}]}function xu(e){if(typeof Array.prototype.flat=="function")return e.flat();for(var t=Os(e),n=[];t.length;){var r=t.shift();Array.isArray(r)?t.unshift.apply(t,Os(r)):n.push(r)}return n}function La(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new WeakMap;if(e==null)return e;if(e instanceof Date)return new Date(e);if(e instanceof RegExp)return new RegExp(e);if(Ta(e)!=="object")return e;if(t.get(e))return t.get(e);if(Array.isArray(e)){var n=e.map(function(a){return La(a,t)});return t.set(e,n),n}var r={};for(var l in e)r[l]=La(e[l],t);return t.set(e,r),r}function Eu(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 Ru(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Eu(Object(n),!0).forEach(function(r){Is(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Eu(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var yf={showLength:{type:Boolean,default:!1},showDoubleQuotes:{type:Boolean,default:!0},renderNodeKey:Function,renderNodeValue:Function,selectableType:String,showSelectController:{type:Boolean,default:!1},showLine:{type:Boolean,default:!0},showLineNumber:{type:Boolean,default:!1},selectOnClickNode:{type:Boolean,default:!0},nodeSelectable:{type:Function,default:function(){return!0}},highlightSelectedNode:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!1},theme:{type:String,default:"light"},showKeyValueSpace:{type:Boolean,default:!0},editable:{type:Boolean,default:!1},editableTrigger:{type:String,default:"click"},onNodeClick:{type:Function},onBracketsClick:{type:Function},onIconClick:{type:Function},onValueChange:{type:Function}};const M_=(0,Re.defineComponent)({name:"TreeNode",props:Ru(Ru({},yf),{},{node:{type:Object,required:!0},collapsed:Boolean,checked:Boolean,style:Object,onSelectedChange:{type:Function}}),emits:["nodeClick","bracketsClick","iconClick","selectedChange","valueChange"],setup:function(e,t){var n=t.emit,r=(0,Re.computed)(function(){return vf(e.node.content)}),l=(0,Re.computed)(function(){return"vjs-value vjs-value-".concat(r.value)}),a=(0,Re.computed)(function(){return e.showDoubleQuotes?'"'.concat(e.node.key,'"'):e.node.key}),d=(0,Re.computed)(function(){return e.selectableType==="multiple"}),p=(0,Re.computed)(function(){return e.selectableType==="single"}),o=(0,Re.computed)(function(){return e.nodeSelectable(e.node)&&(d.value||p.value)}),g=(0,Re.reactive)({editing:!1}),i=function(y){var C,$,_=($=(C=y.target)===null||C===void 0?void 0:C.value)==="null"?null:$==="undefined"?void 0:$==="true"||$!=="false"&&($[0]+$[$.length-1]==='""'||$[0]+$[$.length-1]==="''"?$.slice(1,-1):typeof Number($)=="number"&&!isNaN(Number($))||$==="NaN"?Number($):$);n("valueChange",_,e.node.path)},s=(0,Re.computed)(function(){var y,C=(y=e.node)===null||y===void 0?void 0:y.content;return C===null?C="null":C===void 0&&(C="undefined"),r.value==="string"?'"'.concat(C,'"'):C+""}),c=function(){var y=e.renderNodeValue;return y?y({node:e.node,defaultValue:s.value}):s.value},u=function(){n("bracketsClick",!e.collapsed,e.node)},h=function(){n("iconClick",!e.collapsed,e.node)},f=function(){n("selectedChange",e.node)},m=function(){n("nodeClick",e.node),o.value&&e.selectOnClickNode&&n("selectedChange",e.node)},v=function(y){if(e.editable&&!g.editing){g.editing=!0;var C=function $(_){var b;_.target!==y.target&&((b=_.target)===null||b===void 0?void 0:b.parentElement)!==y.target&&(g.editing=!1,document.removeEventListener("click",$))};document.removeEventListener("click",C),document.addEventListener("click",C)}};return function(){var y,C=e.node;return(0,Re.createVNode)("div",{class:{"vjs-tree-node":!0,"has-selector":e.showSelectController,"has-carets":e.showIcon,"is-highlight":e.highlightSelectedNode&&e.checked,dark:e.theme==="dark"},onClick:m,style:e.style},[e.showLineNumber&&(0,Re.createVNode)("span",{class:"vjs-node-index"},[C.id+1]),e.showSelectController&&o.value&&C.type!=="objectEnd"&&C.type!=="arrayEnd"&&(0,Re.createVNode)(T_,{isMultiple:d.value,checked:e.checked,onChange:f},null),(0,Re.createVNode)("div",{class:"vjs-indent"},[Array.from(Array(C.level)).map(function($,_){return(0,Re.createVNode)("div",{key:_,class:{"vjs-indent-unit":!0,"has-line":e.showLine}},null)}),e.showIcon&&(0,Re.createVNode)(L_,{nodeType:C.type,onClick:h},null)]),C.key&&(0,Re.createVNode)("span",{class:"vjs-key"},[(y=e.renderNodeKey,y?y({node:e.node,defaultKey:a.value||""}):a.value),(0,Re.createVNode)("span",{class:"vjs-colon"},[":".concat(e.showKeyValueSpace?" ":"")])]),(0,Re.createVNode)("span",null,[C.type!=="content"&&C.content?(0,Re.createVNode)(R_,{data:C.content.toString(),onClick:u},null):(0,Re.createVNode)("span",{class:l.value,onClick:!e.editable||e.editableTrigger&&e.editableTrigger!=="click"?void 0:v,onDblclick:e.editable&&e.editableTrigger==="dblclick"?v:void 0},[e.editable&&g.editing?(0,Re.createVNode)("input",{value:s.value,onChange:i,style:{padding:"3px 8px",border:"1px solid #eee",boxShadow:"none",boxSizing:"border-box",borderRadius:5,fontFamily:"inherit"}},null):c()]),C.showComma&&(0,Re.createVNode)("span",null,[","]),e.showLength&&e.collapsed&&(0,Re.createVNode)("span",{class:"vjs-comment"},[(0,Re.createTextVNode)(" // "),C.length,(0,Re.createTextVNode)(" items ")])])])}}});function Tu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function Lt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Tu(Object(n),!0).forEach(function(r){Is(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tu(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const O_=(0,Re.defineComponent)({name:"Tree",props:Lt(Lt({},yf),{},{data:{type:[String,Number,Boolean,Array,Object],default:null},collapsedNodeLength:{type:Number,default:1/0},deep:{type:Number,default:1/0},pathCollapsible:{type:Function,default:function(){return!1}},rootPath:{type:String,default:"root"},virtual:{type:Boolean,default:!1},height:{type:Number,default:400},itemHeight:{type:Number,default:20},selectedValue:{type:[String,Array],default:function(){return""}},collapsedOnClickBrackets:{type:Boolean,default:!0},style:Object,onSelectedChange:{type:Function},theme:{type:String,default:"light"}}),slots:["renderNodeKey","renderNodeValue"],emits:["nodeClick","bracketsClick","iconClick","selectedChange","update:selectedValue","update:data"],setup:function(e,t){var n=t.emit,r=t.slots,l=(0,Re.ref)(),a=(0,Re.computed)(function(){return Wn(e.data,e.rootPath)}),d=function(C,$){return a.value.reduce(function(_,b){var E,L=b.level>=C||b.length>=$,k=(E=e.pathCollapsible)===null||E===void 0?void 0:E.call(e,b);return b.type!=="objectStart"&&b.type!=="arrayStart"||!L&&!k?_:Lt(Lt({},_),{},Is({},b.path,1))},{})},p=(0,Re.reactive)({translateY:0,visibleData:null,hiddenPaths:d(e.deep,e.collapsedNodeLength)}),o=(0,Re.computed)(function(){for(var C=null,$=[],_=a.value.length,b=0;b<_;b++){var E=Lt(Lt({},a.value[b]),{},{id:b}),L=p.hiddenPaths[E.path];if(C&&C.path===E.path){var k=C.type==="objectStart",M=Lt(Lt(Lt({},E),C),{},{showComma:E.showComma,content:k?"{...}":"[...]",type:k?"objectCollapsed":"arrayCollapsed"});C=null,$.push(M)}else{if(L&&!C){C=E;continue}if(C)continue;$.push(E)}}return $}),g=(0,Re.computed)(function(){var C=e.selectedValue;return C&&e.selectableType==="multiple"&&Array.isArray(C)?C:[C]}),i=(0,Re.computed)(function(){return!e.selectableType||e.selectOnClickNode||e.showSelectController?"":"When selectableType is not null, selectOnClickNode and showSelectController cannot be false at the same time, because this will cause the selection to fail."}),s=function(){var C=o.value;if(e.virtual){var $,_=e.height/e.itemHeight,b=(($=l.value)===null||$===void 0?void 0:$.scrollTop)||0,E=Math.floor(b/e.itemHeight),L=E<0?0:E+_>C.length?C.length-_:E;L<0&&(L=0);var k=L+_;p.translateY=L*e.itemHeight,p.visibleData=C.filter(function(M,A){return A>=L&&A<k})}else p.visibleData=C},c=function(){s()},u=function(C){var $,_,b=C.path,E=e.selectableType;if(E==="multiple"){var L=g.value.findIndex(function(R){return R===b}),k=Os(g.value);L!==-1?k.splice(L,1):k.push(b),n("update:selectedValue",k),n("selectedChange",k,Os(g.value))}else if(E==="single"&&g.value[0]!==b){var M=($=g.value,_=1,function(R){if(Array.isArray(R))return R}($)||function(R,S){var w=R==null?null:typeof Symbol<"u"&&R[Symbol.iterator]||R["@@iterator"];if(w!=null){var x,T,O=[],I=!0,N=!1;try{for(w=w.call(R);!(I=(x=w.next()).done)&&(O.push(x.value),!S||O.length!==S);I=!0);}catch(P){N=!0,T=P}finally{try{I||w.return==null||w.return()}finally{if(N)throw T}}return O}}($,_)||mf($,_)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
798
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}())[0],A=b;n("update:selectedValue",A),n("selectedChange",A,M)}},h=function(C){n("nodeClick",C)},f=function(C,$){if(C)p.hiddenPaths=Lt(Lt({},p.hiddenPaths),{},Is({},$,1));else{var _=Lt({},p.hiddenPaths);delete _[$],p.hiddenPaths=_}},m=function(C,$){e.collapsedOnClickBrackets&&f(C,$.path),n("bracketsClick",C,$)},v=function(C,$){f(C,$.path),n("iconClick",C,$)},y=function(C,$){var _=La(e.data),b=e.rootPath;new Function("data","val","data".concat($.slice(b.length),"=val"))(_,C),n("update:data",_)};return(0,Re.watchEffect)(function(){i.value&&function(C){throw new Error("[VueJSONPretty] ".concat(C))}(i.value)}),(0,Re.watchEffect)(function(){o.value&&s()}),(0,Re.watch)(function(){return e.deep},function(C){C&&(p.hiddenPaths=d(C,e.collapsedNodeLength))}),(0,Re.watch)(function(){return e.collapsedNodeLength},function(C){C&&(p.hiddenPaths=d(e.deep,C))}),function(){var C,$,_=(C=e.renderNodeKey)!==null&&C!==void 0?C:r.renderNodeKey,b=($=e.renderNodeValue)!==null&&$!==void 0?$:r.renderNodeValue,E=p.visibleData&&p.visibleData.map(function(L){return(0,Re.createVNode)(M_,{key:L.id,node:L,collapsed:!!p.hiddenPaths[L.path],theme:e.theme,showDoubleQuotes:e.showDoubleQuotes,showLength:e.showLength,checked:g.value.includes(L.path),selectableType:e.selectableType,showLine:e.showLine,showLineNumber:e.showLineNumber,showSelectController:e.showSelectController,selectOnClickNode:e.selectOnClickNode,nodeSelectable:e.nodeSelectable,highlightSelectedNode:e.highlightSelectedNode,editable:e.editable,editableTrigger:e.editableTrigger,showIcon:e.showIcon,showKeyValueSpace:e.showKeyValueSpace,renderNodeKey:_,renderNodeValue:b,onNodeClick:h,onBracketsClick:m,onIconClick:v,onSelectedChange:u,onValueChange:y,style:e.itemHeight&&e.itemHeight!==20?{lineHeight:"".concat(e.itemHeight,"px")}:{}},null)});return(0,Re.createVNode)("div",{ref:l,class:{"vjs-tree":!0,"is-virtual":e.virtual,dark:e.theme==="dark"},onScroll:e.virtual?c:void 0,style:e.showLineNumber?Lt({paddingLeft:"".concat(12*Number(a.value.length.toString().length),"px")},e.style):e.style},[e.virtual?(0,Re.createVNode)("div",{class:"vjs-tree-list",style:{height:"".concat(e.height,"px")}},[(0,Re.createVNode)("div",{class:"vjs-tree-list-holder",style:{height:"".concat(o.value.length*e.itemHeight,"px")}},[(0,Re.createVNode)("div",{class:"vjs-tree-list-holder-inner",style:{transform:"translateY(".concat(p.translateY,"px)")}},[E])])]):E])}}});var bf=gf.Z;const I_=Ce({name:"ErrorItem",props:{error:{type:z1,required:!0},disposable:{type:Boolean,default:!1}},components:{VueJsonPretty:bf},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}}}),N_={class:"notification is-danger is-light"},D_={key:1},F_={key:2},P_={key:0,class:"message"},B_={class:"message-body"};function W_(e,t,n,r,l,a){var p;const d=ne("VueJsonPretty");return G(),ie(Be,null,[D("div",N_,[e.disposable?(G(),ie("button",{key:0,class:"delete",onClick:t[0]||(t[0]=(...o)=>e.dispose&&e.dispose(...o))})):ge("",!0),e.data?(G(),ie("p",D_,we(e.data.message),1)):(G(),ie("p",F_,we(e.error),1))]),(p=e.data)!=null&&p.detail?(G(),ie("article",P_,[D("div",B_,[ae(d,{data:e.data.detail},null,8,["data"])])])):ge("",!0)],64)}const vt=Ee(I_,[["render",W_]]),H_=Ce({name:"TagItem",props:{tag:{type:Object,required:!0},deletable:{type:Boolean,default:!1},navigateTo:{type:String,required:!0}},setup(e){const t=Ke(!1),n=Ke(!1),r=r_();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}"`}}}),z_={key:0,class:"control"};function U_(e,t,n,r,l,a){const d=ne("router-link");return e.isDeleted?ge("",!0):(G(),ie("div",z_,[D("div",{class:"tags has-addons are-medium",onMouseover:t[1]||(t[1]=(...p)=>e.showDeleteButton&&e.showDeleteButton(...p)),onMouseleave:t[2]||(t[2]=(...p)=>e.hideDeleteButton&&e.hideDeleteButton(...p))},[ae(d,{class:"tag is-info is-light",to:{name:e.navigateTo,query:{q:e.getQuery(e.tag.name)}}},{default:nt(()=>[rt(we(e.tag.name),1)]),_:1},8,["to"]),e.isDeleteButtonEnabled&&e.deletable?(G(),ie("a",{key:0,class:"tag is-delete",onClick:t[0]||(t[0]=(...p)=>e.deleteTag&&e.deleteTag(...p))})):ge("",!0)],32)]))}const V_=Ee(H_,[["render",U_]]),j_=Ce({name:"TagsItem",components:{Tag:V_},props:{tags:{type:Array,required:!0},deletable:{type:Boolean,default:!1},navigateTo:{type:String,required:!0}},setup(){}}),G_={class:"field is-grouped is-grouped-multiline"};function Y_(e,t,n,r,l,a){const d=ne("Tag");return G(),ie("div",G_,[(G(!0),ie(Be,null,Ot(e.tags,p=>(G(),Se(d,{tag:p,key:p.name,deletable:e.deletable,"navigate-to":e.navigateTo},null,8,["tag","deletable","navigate-to"]))),128))])}const Ii=Ee(j_,[["render",Y_]]);var nr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ir(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function K_(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 wf={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(nr,function(){var n=1e3,r=6e4,l=36e5,a="millisecond",d="second",p="minute",o="hour",g="day",i="week",s="month",c="quarter",u="year",h="date",f="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(w){var x=["th","st","nd","rd"],T=w%100;return"["+w+(x[(T-20)%10]||x[T]||x[0])+"]"}},C=function(w,x,T){var O=String(w);return!O||O.length>=x?w:""+Array(x+1-O.length).join(T)+w},$={s:C,z:function(w){var x=-w.utcOffset(),T=Math.abs(x),O=Math.floor(T/60),I=T%60;return(x<=0?"+":"-")+C(O,2,"0")+":"+C(I,2,"0")},m:function w(x,T){if(x.date()<T.date())return-w(T,x);var O=12*(T.year()-x.year())+(T.month()-x.month()),I=x.clone().add(O,s),N=T-I<0,P=x.clone().add(O+(N?-1:1),s);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:s,y:u,w:i,d:g,D:h,h:o,m:p,s:d,ms:a,Q:c}[w]||String(w||"").toLowerCase().replace(/s$/,"")},u:function(w){return w===void 0}},_="en",b={};b[_]=y;var E="$isDayjsObject",L=function(w){return w instanceof R||!(!w||!w[E])},k=function w(x,T,O){var I;if(!x)return _;if(typeof x=="string"){var N=x.toLowerCase();b[N]&&(I=N),T&&(b[N]=T,I=N);var P=x.split("-");if(!I&&P.length>1)return w(P[0])}else{var H=x.name;b[H]=x,I=H}return!O&&I&&(_=I),I||!O&&_},M=function(w,x){if(L(w))return w.clone();var T=typeof x=="object"?x:{};return T.date=w,T.args=arguments,new R(T)},A=$;A.l=k,A.i=L,A.w=function(w,x){return M(w,{locale:x.$L,utc:x.$u,x:x.$x,$offset:x.$offset})};var R=function(){function w(T){this.$L=k(T.locale,null,!0),this.parse(T),this.$x=this.$x||T.x||{},this[E]=!0}var x=w.prototype;return x.parse=function(T){this.$d=function(O){var I=O.date,N=O.utc;if(I===null)return new Date(NaN);if(A.u(I))return new Date;if(I instanceof Date)return new Date(I);if(typeof I=="string"&&!/Z$/i.test(I)){var P=I.match(m);if(P){var H=P[2]-1||0,V=(P[7]||"0").substring(0,3);return N?new Date(Date.UTC(P[1],H,P[3]||1,P[4]||0,P[5]||0,P[6]||0,V)):new Date(P[1],H,P[3]||1,P[4]||0,P[5]||0,P[6]||0,V)}}return new Date(I)}(T),this.init()},x.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()},x.$utils=function(){return A},x.isValid=function(){return this.$d.toString()!==f},x.isSame=function(T,O){var I=M(T);return this.startOf(O)<=I&&I<=this.endOf(O)},x.isAfter=function(T,O){return M(T)<this.startOf(O)},x.isBefore=function(T,O){return this.endOf(O)<M(T)},x.$g=function(T,O,I){return A.u(T)?this[O]:this.set(I,T)},x.unix=function(){return Math.floor(this.valueOf()/1e3)},x.valueOf=function(){return this.$d.getTime()},x.startOf=function(T,O){var I=this,N=!!A.u(O)||O,P=A.p(T),H=function(K,Q){var he=A.w(I.$u?Date.UTC(I.$y,Q,K):new Date(I.$y,Q,K),I);return N?he:he.endOf(g)},V=function(K,Q){return A.w(I.toDate()[K].apply(I.toDate("s"),(N?[0,0,0,0]:[23,59,59,999]).slice(Q)),I)},U=this.$W,W=this.$M,j=this.$D,q="set"+(this.$u?"UTC":"");switch(P){case u:return N?H(1,0):H(31,11);case s:return N?H(1,W):H(0,W+1);case i:var z=this.$locale().weekStart||0,Z=(U<z?U+7:U)-z;return H(N?j-Z:j+(6-Z),W);case g:case h:return V(q+"Hours",0);case o:return V(q+"Minutes",1);case p:return V(q+"Seconds",2);case d:return V(q+"Milliseconds",3);default:return this.clone()}},x.endOf=function(T){return this.startOf(T,!1)},x.$set=function(T,O){var I,N=A.p(T),P="set"+(this.$u?"UTC":""),H=(I={},I[g]=P+"Date",I[h]=P+"Date",I[s]=P+"Month",I[u]=P+"FullYear",I[o]=P+"Hours",I[p]=P+"Minutes",I[d]=P+"Seconds",I[a]=P+"Milliseconds",I)[N],V=N===g?this.$D+(O-this.$W):O;if(N===s||N===u){var U=this.clone().set(h,1);U.$d[H](V),U.init(),this.$d=U.set(h,Math.min(this.$D,U.daysInMonth())).$d}else H&&this.$d[H](V);return this.init(),this},x.set=function(T,O){return this.clone().$set(T,O)},x.get=function(T){return this[A.p(T)]()},x.add=function(T,O){var I,N=this;T=Number(T);var P=A.p(O),H=function(W){var j=M(N);return A.w(j.date(j.date()+Math.round(W*T)),N)};if(P===s)return this.set(s,this.$M+T);if(P===u)return this.set(u,this.$y+T);if(P===g)return H(1);if(P===i)return H(7);var V=(I={},I[p]=r,I[o]=l,I[d]=n,I)[P]||1,U=this.$d.getTime()+T*V;return A.w(U,this)},x.subtract=function(T,O){return this.add(-1*T,O)},x.format=function(T){var O=this,I=this.$locale();if(!this.isValid())return I.invalidDate||f;var N=T||"YYYY-MM-DDTHH:mm:ssZ",P=A.z(this),H=this.$H,V=this.$m,U=this.$M,W=I.weekdays,j=I.months,q=I.meridiem,z=function(Q,he,Ae,F){return Q&&(Q[he]||Q(O,N))||Ae[he].slice(0,F)},Z=function(Q){return A.s(H%12||12,Q,"0")},K=q||function(Q,he,Ae){var F=Q<12?"AM":"PM";return Ae?F.toLowerCase():F};return N.replace(v,function(Q,he){return he||function(Ae){switch(Ae){case"YY":return String(O.$y).slice(-2);case"YYYY":return A.s(O.$y,4,"0");case"M":return U+1;case"MM":return A.s(U+1,2,"0");case"MMM":return z(I.monthsShort,U,j,3);case"MMMM":return z(j,U);case"D":return O.$D;case"DD":return A.s(O.$D,2,"0");case"d":return String(O.$W);case"dd":return z(I.weekdaysMin,O.$W,W,2);case"ddd":return z(I.weekdaysShort,O.$W,W,3);case"dddd":return W[O.$W];case"H":return String(H);case"HH":return A.s(H,2,"0");case"h":return Z(1);case"hh":return Z(2);case"a":return K(H,V,!0);case"A":return K(H,V,!1);case"m":return String(V);case"mm":return A.s(V,2,"0");case"s":return String(O.$s);case"ss":return A.s(O.$s,2,"0");case"SSS":return A.s(O.$ms,3,"0");case"Z":return P}return null}(Q)||P.replace(":","")})},x.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},x.diff=function(T,O,I){var N,P=this,H=A.p(O),V=M(T),U=(V.utcOffset()-this.utcOffset())*r,W=this-V,j=function(){return A.m(P,V)};switch(H){case u:N=j()/12;break;case s:N=j();break;case c:N=j()/3;break;case i:N=(W-U)/6048e5;break;case g:N=(W-U)/864e5;break;case o:N=W/l;break;case p:N=W/r;break;case d:N=W/n;break;default:N=W}return I?N:A.a(N)},x.daysInMonth=function(){return this.endOf(s).$D},x.$locale=function(){return b[this.$L]},x.locale=function(T,O){if(!T)return this.$L;var I=this.clone(),N=k(T,O,!0);return N&&(I.$L=N),I},x.clone=function(){return A.w(this.$d,this)},x.toDate=function(){return new Date(this.valueOf())},x.toJSON=function(){return this.isValid()?this.toISOString():null},x.toISOString=function(){return this.$d.toISOString()},x.toString=function(){return this.$d.toUTCString()},w}(),S=R.prototype;return M.prototype=S,[["$ms",a],["$s",d],["$m",p],["$H",o],["$W",g],["$M",s],["$y",u],["$D",h]].forEach(function(w){S[w[1]]=function(x){return this.$g(x,w[0],w[1])}}),M.extend=function(w,x){return w.$i||(w(x,R,M),w.$i=!0),M},M.locale=k,M.isDayjs=L,M.unix=function(w){return M(1e3*w)},M.en=b[_],M.Ls=b,M.p={},M})})(wf);var Z_=wf.exports;const Nr=Ir(Z_);var _f={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(nr,function(){return function(n,r,l){n=n||{};var a=r.prototype,d={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function p(g,i,s,c){return a.fromToBase(g,i,s,c)}l.en.relativeTime=d,a.fromToBase=function(g,i,s,c,u){for(var h,f,m,v=s.$locale().relativeTime||d,y=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],C=y.length,$=0;$<C;$+=1){var _=y[$];_.d&&(h=c?l(g).diff(s,_.d,!0):s.diff(g,_.d,!0));var b=(n.rounding||Math.round)(Math.abs(h));if(m=h>0,b<=_.r||!_.r){b<=1&&$>0&&(_=y[$-1]);var E=v[_.l];u&&(b=u(""+b)),f=typeof E=="string"?E.replace("%d",b):E(b,i,_.l,m);break}}if(i)return f;var L=m?v.future:v.past;return typeof L=="function"?L(f):L.replace("%s",f)},a.to=function(g,i){return p(g,i,this,!0)},a.from=function(g,i){return p(g,i,this)};var o=function(g){return g.$u?l.utc():l()};a.toNow=function(g){return this.to(o(this),g)},a.fromNow=function(g){return this.from(o(this),g)}}})})(_f);var X_=_f.exports;const q_=Ir(X_);var $f={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(nr,function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},r={};return function(l,a,d){var p,o=function(c,u,h){h===void 0&&(h={});var f=new Date(c),m=function(v,y){y===void 0&&(y={});var C=y.timeZoneName||"short",$=v+"|"+C,_=r[$];return _||(_=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:v,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:C}),r[$]=_),_}(u,h);return m.formatToParts(f)},g=function(c,u){for(var h=o(c,u),f=[],m=0;m<h.length;m+=1){var v=h[m],y=v.type,C=v.value,$=n[y];$>=0&&(f[$]=parseInt(C,10))}var _=f[3],b=_===24?0:_,E=f[0]+"-"+f[1]+"-"+f[2]+" "+b+":"+f[4]+":"+f[5]+":000",L=+c;return(d.utc(E).valueOf()-(L-=L%1e3))/6e4},i=a.prototype;i.tz=function(c,u){c===void 0&&(c=p);var h=this.utcOffset(),f=this.toDate(),m=f.toLocaleString("en-US",{timeZone:c}),v=Math.round((f-new Date(m))/1e3/60),y=d(m,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(f.getTimezoneOffset()/15)-v,!0);if(u){var C=y.utcOffset();y=y.add(h-C,"minute")}return y.$x.$timezone=c,y},i.offsetName=function(c){var u=this.$x.$timezone||d.tz.guess(),h=o(this.valueOf(),u,{timeZoneName:c}).find(function(f){return f.type.toLowerCase()==="timezonename"});return h&&h.value};var s=i.startOf;i.startOf=function(c,u){if(!this.$x||!this.$x.$timezone)return s.call(this,c,u);var h=d(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return s.call(h,c,u).tz(this.$x.$timezone,!0)},d.tz=function(c,u,h){var f=h&&u,m=h||u||p,v=g(+d(),m);if(typeof c!="string")return d(c).tz(m);var y=function(b,E,L){var k=b-60*E*1e3,M=g(k,L);if(E===M)return[k,E];var A=g(k-=60*(M-E)*1e3,L);return M===A?[k,M]:[b-60*Math.min(M,A)*1e3,Math.max(M,A)]}(d.utc(c,f).valueOf(),v,m),C=y[0],$=y[1],_=d(C).utcOffset($);return _.$x.$timezone=m,_},d.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},d.tz.setDefault=function(c){p=c}}})})($f);var Q_=$f.exports;const J_=Ir(Q_);var Sf={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(nr,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,l=/([+-]|\d\d)/g;return function(a,d,p){var o=d.prototype;p.utc=function(f){var m={date:f,utc:!0,args:arguments};return new d(m)},o.utc=function(f){var m=p(this.toDate(),{locale:this.$L,utc:!0});return f?m.add(this.utcOffset(),n):m},o.local=function(){return p(this.toDate(),{locale:this.$L,utc:!1})};var g=o.parse;o.parse=function(f){f.utc&&(this.$u=!0),this.$utils().u(f.$offset)||(this.$offset=f.$offset),g.call(this,f)};var i=o.init;o.init=function(){if(this.$u){var f=this.$d;this.$y=f.getUTCFullYear(),this.$M=f.getUTCMonth(),this.$D=f.getUTCDate(),this.$W=f.getUTCDay(),this.$H=f.getUTCHours(),this.$m=f.getUTCMinutes(),this.$s=f.getUTCSeconds(),this.$ms=f.getUTCMilliseconds()}else i.call(this)};var s=o.utcOffset;o.utcOffset=function(f,m){var v=this.$utils().u;if(v(f))return this.$u?0:v(this.$offset)?s.call(this):this.$offset;if(typeof f=="string"&&(f=function(_){_===void 0&&(_="");var b=_.match(r);if(!b)return null;var E=(""+b[0]).match(l)||["-",0,0],L=E[0],k=60*+E[1]+ +E[2];return k===0?0:L==="+"?k:-k}(f),f===null))return this;var y=Math.abs(f)<=16?60*f:f,C=this;if(m)return C.$offset=y,C.$u=f===0,C;if(f!==0){var $=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(C=this.local().add(y+$,n)).$offset=y,C.$x.$localOffset=$}else C=this.utc();return C};var c=o.format;o.format=function(f){var m=f||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,m)},o.valueOf=function(){var f=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*f},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var u=o.toDate;o.toDate=function(f){return f==="s"&&this.$offset?p(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():u.call(this)};var h=o.diff;o.diff=function(f,m,v){if(f&&this.$u===f.$u)return h.call(this,f,m,v);var y=this.local(),C=p(f).local();return h.call(y,C,m,v)}}})})(Sf);var e$=Sf.exports;const t$=Ir(e$),n$=[{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 r$(e){return n$.find(n=>n.code===e)}Nr.extend(q_);Nr.extend(J_);Nr.extend(t$);function Cf(e){return Nr(e).local().format("YYYY-MM-DD HH:mm:ss")}function Af(e){return Nr(e).local().fromNow()}function kf(e){const t=r$(e);if(t)return{lat:t.lat,long:t.long}}function i$(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 kf(e.countryCode)}const s$=Ce({name:"AlertItem",components:{Artifacts:pf,Tags:Ii,ActionButtons:ff,ErrorMessage:vt},props:{alert:{type:Object,required:!0}},emits:["delete"],setup(e,t){const n=Ke(!1),r=Ke();return{onDelete:()=>{t.emit("delete")},getLocalDatetime:Cf,getHumanizedRelativeTime:Af,onSetError:o=>{r.value=o},onDisposeError:()=>{r.value=void 0},error:r,isDeleted:n,onArtifactsDeleted:()=>{n.value=!0}}}}),o$={key:0,class:"box"},a$={class:"table is-fullwidth is-completely-borderless"},l$=D("th",null,"Rule",-1),c$=D("th",null,"Artifacts",-1),u$={key:0},h$=D("th",null,"Tags",-1),d$={class:"help"};function f$(e,t,n,r,l,a){const d=ne("ErrorMessage"),p=ne("ActionButtons"),o=ne("router-link"),g=ne("Artifacts"),i=ne("Tags");return e.isDeleted?ge("",!0):(G(),ie("div",o$,[e.error?(G(),Se(d,{key:0,class:"block",error:e.error,disposable:!0,onDispose:e.onDisposeError},null,8,["error","onDispose"])):ge("",!0),D("p",null,[ae(p,{alert:e.alert,onDelete:e.onDelete,onSetError:e.onSetError},null,8,["alert","onDelete","onSetError"])]),ae(o,{class:"is-size-4",to:{name:"Alert",params:{id:e.alert.id}}},{default:nt(()=>[rt(we(e.alert.id),1)]),_:1},8,["to"]),D("table",a$,[D("tr",null,[l$,D("td",null,[ae(o,{to:{name:"Rule",params:{id:e.alert.ruleId}}},{default:nt(()=>[rt(we(e.alert.ruleId),1)]),_:1},8,["to"])])]),D("tr",null,[c$,D("td",null,[ae(g,{artifacts:e.alert.artifacts,onDelete:e.onArtifactsDeleted},null,8,["artifacts","onDelete"])])]),e.alert.tags.length>0?(G(),ie("tr",u$,[h$,D("td",null,[ae(i,{tags:e.alert.tags,"navigate-to":"Alerts"},null,8,["tags"])])])):ge("",!0)]),D("p",d$,"Created at: "+we(e.alert.createdAt),1)]))}const p$=Ee(s$,[["render",f$]]),g$=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=i=>i===e.currentPage+1||i===e.currentPage-1,r=Le(()=>Math.ceil(e.total/e.pageSize)),l=Le(()=>r.value===1),a=Le(()=>e.currentPage>1),d=Le(()=>e.currentPage-1===1),p=Le(()=>e.currentPage<r.value),o=Le(()=>e.currentPage+1===r.value);return{updatePage:i=>{t.emit("update-page",i)},isNextPage:n,hasNextPage:p,hasOnlyOnePage:l,hasPreviousPage:a,isNextPageLast:o,isPreviousPageFirst:d,totalPageCount:r}}}),m$={key:0,class:"message is-warning"},v$=D("div",{class:"message-body"},"There is no result to show.",-1),y$=[v$],b$={key:1,class:"pagination",role:"navigation","aria-label":"pagination"},w$={key:0,class:"pagination-list"},_$={key:1,class:"pagination-list"},$$={key:0},S$={key:1},C$=D("span",{class:"pagination-ellipsis"},"…",-1),A$=[C$],k$={key:2},x$={key:3},E$={key:4},R$=D("span",{class:"pagination-ellipsis"},"…",-1),T$=[R$],L$={key:5};function M$(e,t,n,r,l,a){return e.total===0?(G(),ie("article",m$,y$)):(G(),ie("nav",b$,[e.hasOnlyOnePage?(G(),ie("ul",w$,[D("li",null,[D("a",{class:"pagination-link mt-2 is-current",onClick:t[0]||(t[0]=d=>e.updatePage(1))},"1")])])):(G(),ie("ul",_$,[e.hasPreviousPage&&!e.isPreviousPageFirst?(G(),ie("li",$$,[D("a",{class:"pagination-link mt-2",onClick:t[1]||(t[1]=d=>e.updatePage(1))}," 1")])):ge("",!0),e.hasPreviousPage&&!e.isPreviousPageFirst&&!e.isNextPage(2)?(G(),ie("li",S$,A$)):ge("",!0),e.hasPreviousPage?(G(),ie("li",k$,[D("a",{class:"pagination-link mt-2",onClick:t[2]||(t[2]=d=>e.updatePage(e.currentPage-1))},we(e.currentPage-1),1)])):ge("",!0),D("li",null,[D("a",{class:"pagination-link mt-2 is-current",onClick:t[3]||(t[3]=d=>e.updatePage(e.currentPage))},we(e.currentPage),1)]),e.hasNextPage?(G(),ie("li",x$,[D("a",{class:"pagination-link mt-2",onClick:t[4]||(t[4]=d=>e.updatePage(e.currentPage+1))},we(e.currentPage+1),1)])):ge("",!0),e.hasNextPage&&!e.isNextPageLast&&!e.isNextPage(e.totalPageCount-1)?(G(),ie("li",E$,T$)):ge("",!0),e.hasNextPage&&!e.isNextPageLast?(G(),ie("li",L$,[D("a",{class:"pagination-link mt-2",onClick:t[5]||(t[5]=d=>e.updatePage(e.totalPageCount))},we(e.totalPageCount),1)])):ge("",!0)]))]))}const Nl=Ee(g$,[["render",M$]]),O$=Ce({name:"AlertsItem",components:{Alert:p$,Pagination:Nl},props:{page:{type:String,required:!0},alerts:{type:Object,required:!0}},emits:["update-page","refresh"],setup(e,t){const n=a=>{t.emit("update-page",a)},r=()=>{t.emit("refresh")},l=Le(()=>e.alerts.results.length>0);return{onUpdatePage:n,onDelete:r,hasAlerts:l}}}),I$={key:0},N$={class:"help"},D$={key:1},F$=D("div",{class:"notification is-warning is-light"},"There is no alert to show",-1),P$=[F$];function B$(e,t,n,r,l,a){const d=ne("Alert"),p=ne("Pagination");return e.hasAlerts?(G(),ie("div",I$,[(G(!0),ie(Be,null,Ot(e.alerts.results,o=>(G(),Se(d,{alert:o,key:o.id,onDelete:e.onDelete},null,8,["alert","onDelete"]))),128)),ae(p,{total:e.alerts.total,currentPage:e.alerts.currentPage,pageSize:e.alerts.pageSize,onUpdatePage:e.onUpdatePage},null,8,["total","currentPage","pageSize","onUpdatePage"]),D("p",N$,"("+we(e.alerts.total)+" results in total, "+we(e.alerts.results.length)+" shown)",1)])):(G(),ie("div",D$,P$))}const xf=Ee(O$,[["render",B$]]),W$=Ce({name:"LoadingItem"}),H$={class:"has-text-centered"},z$={class:"fa-3x"};function U$(e,t,n,r,l,a){const d=ne("font-awesome-icon");return G(),ie("div",H$,[D("div",z$,[ae(d,{icon:"spinner",spin:""})])])}const yn=Ee(W$,[["render",U$]]),V$=Ce({name:"AlertsWithPagination",props:{ruleId:{type:String,required:!0},excludeAlertId:{type:Number,required:!1}},components:{Alerts:xf,Loading:yn,ErrorMessage:vt},setup(e){const t=Ke(1),n=Le(()=>e.excludeAlertId?`rule.id:"${e.ruleId}" AND NOT id:${e.excludeAlertId}`:`rule.id:"${e.ruleId}"`),r=Mi(),l=async()=>{const d={q:n.value,page:t.value};return await r.perform(d)},a=d=>{t.value=d};return ct(async()=>{await l()}),ot([e,t],async()=>{await l()}),{page:t,getAlertsTask:r,onUpdatePage:a}}});function j$(e,t,n,r,l,a){var g,i;const d=ne("Loading"),p=ne("ErrorMessage"),o=ne("Alerts");return G(),ie(Be,null,[e.getAlertsTask.isRunning?(G(),Se(d,{key:0})):ge("",!0),e.getAlertsTask.isError?(G(),Se(p,{key:1,error:(g=e.getAlertsTask.last)==null?void 0:g.error},null,8,["error"])):ge("",!0),(i=e.getAlertsTask.last)!=null&&i.value?(G(),Se(o,{key:2,page:e.page.toString(),alerts:e.getAlertsTask.last.value,onUpdatePage:e.onUpdatePage},null,8,["page","alerts","onUpdatePage"])):ge("",!0)],64)}const Ef=Ee(V$,[["render",j$]]),G$=Ce({name:"AlertDetail",components:{Artifacts:pf,Tags:Ii,Alerts:Ef,ActionButtons:ff,ErrorMessage:vt},props:{alert:{type:Object,required:!0}},emits:["delete"],setup(e,t){const n=Ke(),r=p=>{n.value=p},l=()=>{n.value=void 0},a=()=>{t.emit("delete")};return{onDelete:a,getLocalDatetime:Cf,getHumanizedRelativeTime:Af,onSetError:r,onDisposeError:l,error:n,onArtifactsDeleted:a}}}),Y$={class:"block"},K$={class:"is-size-2"},Z$={class:"is-clearfix"},X$={class:"table is-fullwidth is-completely-borderless"},q$=D("th",null,"Rule",-1),Q$=D("th",null,"Artifacts",-1),J$={key:0},eS=D("th",null,"Tags",-1),tS={class:"help"},nS=D("hr",null,null,-1),rS={class:"block"},iS=D("h2",{class:"is-size-2 block"},"Related Alerts",-1);function sS(e,t,n,r,l,a){const d=ne("ErrorMessage"),p=ne("ActionButtons"),o=ne("router-link"),g=ne("Artifacts"),i=ne("Tags"),s=ne("Alerts");return G(),ie(Be,null,[e.error?(G(),Se(d,{key:0,class:"block",error:e.error,disposable:!0,onDispose:e.onDisposeError},null,8,["error","onDispose"])):ge("",!0),D("div",Y$,[D("h2",K$,we(e.alert.id),1),D("p",Z$,[ae(p,{alert:e.alert,onDelete:e.onDelete,onSetError:e.onSetError},null,8,["alert","onDelete","onSetError"])]),D("table",X$,[D("tr",null,[q$,D("td",null,[ae(o,{to:{name:"Rule",params:{id:e.alert.ruleId}}},{default:nt(()=>[rt(we(e.alert.ruleId),1)]),_:1},8,["to"])])]),D("tr",null,[Q$,D("td",null,[ae(g,{artifacts:e.alert.artifacts,onDelete:e.onArtifactsDeleted},null,8,["artifacts","onDelete"])])]),e.alert.tags.length>0?(G(),ie("tr",J$,[eS,D("td",null,[ae(i,{tags:e.alert.tags,"navigate-to":"Alerts"},null,8,["tags"])])])):ge("",!0)]),D("p",tS,"Created at: "+we(e.alert.createdAt),1)]),nS,D("div",rS,[iS,ae(s,{"rule-id":e.alert.ruleId,"exclude-alert-id":e.alert.id},null,8,["rule-id","exclude-alert-id"])])],64)}const oS=Ee(G$,[["render",sS]]),aS=Ce({name:"AlertDetailWrapper",components:{Alert:oS,Loading:yn,ErrorMessage:vt},props:{id:{type:Number,required:!0}},setup(e){const t=Mr(),n=d_(),r=()=>{t.push("/")};return ct(async()=>{await n.perform(e.id)}),{getAlertTask:n,onDelete:r}}});function lS(e,t,n,r,l,a){var g,i;const d=ne("Loading"),p=ne("ErrorMessage"),o=ne("Alert");return G(),ie(Be,null,[e.getAlertTask.isRunning?(G(),Se(d,{key:0})):ge("",!0),e.getAlertTask.isError?(G(),Se(p,{key:1,error:(g=e.getAlertTask.last)==null?void 0:g.error},null,8,["error"])):ge("",!0),(i=e.getAlertTask.last)!=null&&i.value?(G(),Se(o,{key:2,alert:e.getAlertTask.last.value,onDelete:e.onDelete},null,8,["alert","onDelete"])):ge("",!0)],64)}const cS=Ee(aS,[["render",lS]]),uS=Ce({name:"AlertView",components:{Alert:cS},props:{id:{type:String,required:!0}},setup(e){const t=()=>{vn(`Alert:${e.id} - Mihari`)};ct(()=>{t()}),ot(()=>e.id,()=>{t()})}});function hS(e,t,n,r,l,a){const d=ne("Alert",!0);return G(),Se(d,{id:parseInt(e.id)},null,8,["id"])}const dS=Ee(uS,[["render",hS]]),Ho=new WeakMap;function kr(e,t,n={}){const{mode:r="replace",route:l=G0(),router:a=Mr(),transform:d=s=>s}=n;Ho.has(a)||Ho.set(a,new Map);const p=Ho.get(a);let o=l.query[e];wd(()=>{o=void 0});let g;const i=Dh((s,c)=>(g=c,{get(){return s(),d(o!==void 0?o:ci(t))},set(u){o!==u&&(o=u===t||u===null?void 0:u,p.set(e,u===t||u===null?void 0:u),c(),ul(()=>{if(p.size===0)return;const h=Object.fromEntries(p.entries());p.clear();const{params:f,query:m,hash:v}=l;a[ci(r)]({params:f,query:{...m,...h},hash:v})}))}}));return ot(()=>l.query[e],s=>{o=s,g()},{flush:"sync"}),i}const fS=Ce({name:"AlertsWrapper",components:{Alerts:xf,Loading:yn,ErrorMessage:vt},setup(){const e=kr("page","1"),t=kr("q",""),n=Ke(!1),r=Mi(),l=async()=>{const g={q:t.value,page:parseInt(e.value)};return await r.perform(g)},a=g=>{e.value=g.toString()},d=async()=>{e.value="1",await l()},p=d,o=()=>{n.value=!n.value};return ct(async()=>{await l()}),ot(e,async()=>{await l()}),ot(t,async()=>{window.scrollTo({top:0,behavior:"smooth"})}),{getAlertsTask:r,page:e,q:t,search:d,showHelp:n,toggleShowHelp:o,onUpdatePage:a,onRefresh:p}}}),pS={class:"block"},gS={class:"field has-addons"},mS={class:"control is-expanded"},vS={class:"control"},yS={class:"icon is-small"},bS=D("span",null,"Search",-1),wS={class:"control"},_S={class:"icon is-small"},$S=D("span",null,"Help",-1),SS={key:0,class:"content"},CS=bl('<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),AS={key:0,class:"block"};function kS(e,t,n,r,l,a){var s,c;const d=ne("font-awesome-icon"),p=ne("router-link"),o=ne("Loading"),g=ne("ErrorMessage"),i=ne("Alerts");return G(),ie(Be,null,[D("div",pS,[D("div",gS,[D("p",mS,[gl(D("input",{class:"input",type:"text","onUpdate:modelValue":t[0]||(t[0]=u=>e.q=u)},null,512),[[$l,e.q]])]),D("p",vS,[D("a",{class:"button is-primary",onClick:t[1]||(t[1]=(...u)=>e.search&&e.search(...u))},[D("span",yS,[ae(d,{icon:"search"})]),bS])]),D("p",wS,[D("a",{class:"button is-info",onClick:t[2]||(t[2]=(...u)=>e.toggleShowHelp&&e.toggleShowHelp(...u))},[D("span",_S,[ae(d,{icon:"question"})]),$S])])]),e.showHelp?(G(),ie("div",SS,[CS,D("ul",null,[D("li",null,[ae(p,{to:{name:"Alerts",query:{q:"rule.id:foo AND artifact.data:example.com"}}},{default:nt(()=>[rt("rule.id:foo AND artifact.data:example.com")]),_:1},8,["to"])]),D("li",null,[ae(p,{to:{name:"Alerts",query:{q:"tag:foo AND created_at >= 2020-01-01"}}},{default:nt(()=>[rt("tag:foo AND created_at >= 2020-01-01")]),_:1})])])])):ge("",!0)]),e.getAlertsTask.performCount>0?(G(),ie("div",AS,[e.getAlertsTask.isRunning?(G(),Se(o,{key:0})):ge("",!0),e.getAlertsTask.isError?(G(),Se(g,{key:1,error:(s=e.getAlertsTask.last)==null?void 0:s.error},null,8,["error"])):ge("",!0),(c=e.getAlertsTask.last)!=null&&c.value?(G(),Se(i,{key:2,alerts:e.getAlertsTask.last.value,page:e.page,onUpdatePage:e.onUpdatePage,onRefresh:e.onRefresh},null,8,["alerts","page","onUpdatePage","onRefresh"])):ge("",!0)])):ge("",!0)],64)}const xS=Ee(fS,[["render",kS]]),ES=Ce({name:"OverviewCards",setup(){const e=Mi(),t=hf(),n=Il();return ct(()=>{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}}}),RS={class:"columns"},TS={class:"column is-one-third"},LS={class:"card tile is-child"},MS={class:"card-content"},OS={class:"level is-mobile"},IS={class:"level-item"},NS={class:"is-widget-label"},DS=D("h3",{class:"subtitle is-spaced"},"Rules",-1),FS={class:"title"},PS={class:"level-item has-widget-icon"},BS={class:"is-widget-icon"},WS={class:"icon has-text-info is-large"},HS={class:"column is-one-third"},zS={class:"card tile is-child"},US={class:"card-content"},VS={class:"level is-mobile"},jS={class:"level-item"},GS={class:"is-widget-label"},YS=D("h3",{class:"subtitle is-spaced"},"Alerts",-1),KS={class:"title"},ZS={class:"level-item has-widget-icon"},XS={class:"is-widget-icon"},qS={class:"icon has-text-info is-large"},QS={class:"column is-one-third"},JS={class:"card tile is-child"},eC={class:"card-content"},tC={class:"level is-mobile"},nC={class:"level-item"},rC={class:"is-widget-label"},iC=D("h3",{class:"subtitle is-spaced"},"Artifacts",-1),sC={class:"title"},oC={class:"level-item has-widget-icon"},aC={class:"is-widget-icon"},lC={class:"icon has-text-info is-large"};function cC(e,t,n,r,l,a){var p,o,g,i,s,c;const d=ne("font-awesome-icon");return G(),ie("div",RS,[D("div",TS,[D("div",LS,[D("div",MS,[D("div",OS,[D("div",IS,[D("div",NS,[DS,D("h1",FS,we(((o=(p=e.getRulesTask.last)==null?void 0:p.value)==null?void 0:o.total)??"N/A"),1)])]),D("div",PS,[D("div",BS,[D("span",WS,[ae(d,{icon:"file",size:"2x"})])])])])])])]),D("div",HS,[D("div",zS,[D("div",US,[D("div",VS,[D("div",jS,[D("div",GS,[YS,D("h1",KS,we(((i=(g=e.getAlertsTask.last)==null?void 0:g.value)==null?void 0:i.total)??"N/A"),1)])]),D("div",ZS,[D("div",XS,[D("span",qS,[ae(d,{icon:"bell",size:"2x"})])])])])])])]),D("div",QS,[D("div",JS,[D("div",eC,[D("div",tC,[D("div",nC,[D("div",rC,[iC,D("h1",sC,we(((c=(s=e.getArtifactsTask.last)==null?void 0:s.value)==null?void 0:c.total)??"N/A"),1)])]),D("div",oC,[D("div",aC,[D("span",lC,[ae(d,{icon:"ticket",size:"2x"})])])])])])])])])}const uC=Ee(ES,[["render",cC]]),hC=Ce({name:"AlertsView",components:{Alerts:xS,OverviewCards:uC},setup(){vn("Alerts - Mihari")}}),dC=D("hr",null,null,-1);function fC(e,t,n,r,l,a){const d=ne("OverviewCards"),p=ne("Alerts",!0);return G(),ie(Be,null,[ae(d),dC,ae(p)],64)}const pC=Ee(hC,[["render",fC]]),gC=Ce({name:"ArtifactActionButtons",props:{artifact:{type:Object,required:!0}},components:{VueJsonPretty:bf},emits:["delete","set-error","set-message"],setup(e,t){const n=Le(()=>`/api/artifacts/${e.artifact.id}`),r=Ke(!1),l=uf(),a=s_();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(i){Qe.isAxiosError(i)&&t.emit("set-error",i)}},enrichArtifact:async()=>{try{const g=await a.perform(e.artifact.id);t.emit("set-message",g)}catch(g){Qe.isAxiosError(g)&&t.emit("set-error",g)}},enrichArtifactTask:a,toggleShowMetadata:()=>{r.value=!r.value},href:n,showMetadata:r,truncate:Oi}}}),Ni=e=>(dl("data-v-631975a4"),e=e(),fl(),e),mC={class:"buttons is-pulled-right"},vC=["href"],yC=Ni(()=>D("span",null,"JSON",-1)),bC={class:"icon is-small"},wC=Ni(()=>D("span",null,"Metadata",-1)),_C={class:"icon is-small"},$C=Ni(()=>D("span",null,"Enrich",-1)),SC={class:"icon is-small"},CC=Ni(()=>D("span",null,"Delete",-1)),AC={class:"icon is-small"},kC={key:0},xC={class:"modal is-active"},EC={class:"modal-card"},RC={class:"modal-card-head"},TC=Ni(()=>D("p",{class:"modal-card-title"},"Metadata",-1)),LC={class:"modal-card-body"};function MC(e,t,n,r,l,a){const d=ne("font-awesome-icon"),p=ne("VueJsonPretty");return G(),ie(Be,null,[D("span",mC,[D("a",{class:"button is-link is-light is-small",href:e.href,target:"_blank"},[yC,D("span",bC,[ae(d,{icon:"barcode"})])],8,vC),e.artifact.metadata?(G(),ie("button",{key:0,class:"button is-info is-light is-small",onClick:t[0]||(t[0]=(...o)=>e.toggleShowMetadata&&e.toggleShowMetadata(...o))},[wC,D("span",_C,[ae(d,{icon:"info-circle"})])])):ge("",!0),D("button",{class:"button is-primary is-light is-small",onClick:t[1]||(t[1]=(...o)=>e.enrichArtifact&&e.enrichArtifact(...o))},[$C,D("span",SC,[e.enrichArtifactTask.isRunning?(G(),Se(d,{key:0,icon:"spinner",spin:""})):(G(),Se(d,{key:1,icon:"lightbulb"}))])]),D("button",{class:"button is-light is-small",onClick:t[2]||(t[2]=(...o)=>e.deleteArtifact&&e.deleteArtifact(...o))},[CC,D("span",AC,[ae(d,{icon:"times"})])])]),e.artifact.metadata&&e.showMetadata?(G(),ie("div",kC,[D("div",xC,[D("div",{class:"modal-background",onClick:t[3]||(t[3]=(...o)=>e.toggleShowMetadata&&e.toggleShowMetadata(...o))}),D("div",EC,[D("header",RC,[TC,D("button",{class:"delete","aria-label":"close",onClick:t[4]||(t[4]=(...o)=>e.toggleShowMetadata&&e.toggleShowMetadata(...o))})]),D("section",LC,[ae(p,{data:e.artifact.metadata},null,8,["data"])])])])])):ge("",!0)],64)}const Rf=Ee(gC,[["render",MC],["__scopeId","data-v-631975a4"]]),OC=Ce({name:"AS",props:{autonomousSystem:{type:Object,required:!0}},setup(){return{getQuery:t=>`asn:${t}`}}}),IC={class:"tags are-medium"};function NC(e,t,n,r,l,a){const d=ne("router-link");return G(),ie("div",IC,[ae(d,{class:"tag",to:{name:"Artifacts",query:{q:e.getQuery(e.autonomousSystem.number)}}},{default:nt(()=>[rt(we(e.autonomousSystem.number),1)]),_:1},8,["to"])])}const DC=Ee(OC,[["render",NC]]),FC=Ce({name:"CPEsItem",props:{cpes:{type:Array,required:!0}},setup(){return{getQuery:t=>`cpe:"${t}"`}}}),PC={class:"tags are-medium"};function BC(e,t,n,r,l,a){const d=ne("router-link");return G(),ie("div",PC,[(G(!0),ie(Be,null,Ot(e.cpes,p=>(G(),Se(d,{class:"tag",key:p.name,to:{name:"Artifacts",query:{q:e.getQuery(p.name)}}},{default:nt(()=>[rt(we(p.name),1)]),_:2},1032,["to"]))),128))])}const WC=Ee(FC,[["render",BC]]),HC=Ce({name:"DnsRecords",props:{dnsRecords:{type:Array,required:!0}},setup(){return{truncate:Oi,getQuery:({resource:t,value:n})=>`dns_record.value:"${n}" AND dns_record.resource:"${t}"`}}}),zC={class:"field is-grouped is-grouped-multiline"},UC={class:"tags has-addons are-medium"},VC={class:"tag is-dark"};function jC(e,t,n,r,l,a){const d=ne("router-link");return G(),ie("div",zC,[(G(!0),ie(Be,null,Ot(e.dnsRecords,(p,o)=>(G(),ie("div",{class:"control",key:o},[D("div",UC,[D("span",VC,we(p.resource),1),ae(d,{class:"tag",to:{name:"Artifacts",query:{q:e.getQuery({resource:p.resource,value:p.value})}}},{default:nt(()=>[rt(we(e.truncate(p.value,50)),1)]),_:2},1032,["to"])])]))),128))])}const GC=Ee(HC,[["render",jC]]),YC=Ce({name:"PortsItem",props:{ports:{type:Array,required:!0}},setup(){return{getQuery:t=>`port:${t}`}}}),KC={class:"tags are-medium"};function ZC(e,t,n,r,l,a){const d=ne("router-link");return G(),ie("div",KC,[(G(!0),ie(Be,null,Ot(e.ports,p=>(G(),Se(d,{class:"tag",key:p.number,to:{name:"Artifacts",query:{q:e.getQuery(p.number)}}},{default:nt(()=>[rt(we(p.number),1)]),_:2},1032,["to"]))),128))])}const XC=Ee(YC,[["render",ZC]]),qC=Ce({name:"ReverseDnsNames",props:{reverseDnsNames:{type:Array,required:!0}},setup(){return{getQuery:t=>`reverse_dns_name:"${t}"`}}}),QC={class:"tags are-medium"};function JC(e,t,n,r,l,a){const d=ne("router-link");return G(),ie("div",QC,[(G(!0),ie(Be,null,Ot(e.reverseDnsNames,p=>(G(),Se(d,{class:"tag",key:p.name,to:{name:"Artifacts",query:{q:e.getQuery(p.name)}}},{default:nt(()=>[rt(we(p.name),1)]),_:2},1032,["to"]))),128))])}const eA=Ee(qC,[["render",JC]]),tA=Ce({name:"VulnerabilitiesItem",props:{vulnerabilities:{type:Array,required:!0}},setup(){return{getQuery:t=>`vuln:"${t}"`}}}),nA={class:"tags are-medium"};function rA(e,t,n,r,l,a){const d=ne("router-link");return G(),ie("div",nA,[(G(!0),ie(Be,null,Ot(e.vulnerabilities,p=>(G(),Se(d,{class:"tag",key:p.name,to:{name:"Artifacts",query:{q:e.getQuery(p.name)}}},{default:nt(()=>[rt(we(p.name),1)]),_:2},1032,["to"]))),128))])}const iA=Ee(tA,[["render",rA]]),sA=Ce({name:"WhoisRecord",props:{whoisRecord:{type:Object,required:!0}}}),oA={class:"field is-grouped is-grouped-multiline"},aA={class:"control"},lA={class:"tags has-addons are-medium"},cA=D("span",{class:"tag is-dark"},"Registrar",-1),uA={class:"tag is-light"},hA={class:"control"},dA={class:"tags has-addons are-medium"},fA=D("span",{class:"tag is-dark"},"Created on",-1),pA={class:"tag is-light"},gA={class:"control"},mA={class:"tags has-addons are-medium"},vA=D("span",{class:"tag is-dark"},"Updated on",-1),yA={class:"tag is-light"},bA={class:"control"},wA={class:"tags has-addons are-medium"},_A=D("span",{class:"tag is-dark"},"Expires on",-1),$A={class:"tag is-light"};function SA(e,t,n,r,l,a){var d;return G(),ie("div",oA,[D("div",aA,[D("div",lA,[cA,D("span",uA,we(((d=e.whoisRecord.registrar)==null?void 0:d.name)||"N/A"),1)])]),D("div",hA,[D("div",dA,[fA,D("span",pA,we(e.whoisRecord.createdOn||"N/A"),1)])]),D("div",gA,[D("div",mA,[vA,D("span",yA,we(e.whoisRecord.updatedOn||"N/A"),1)])]),D("div",bA,[D("div",wA,[_A,D("span",$A,we(e.whoisRecord.expiresOn||"N/A"),1)])])])}const CA=Ee(sA,[["render",SA]]),AA=Ce({name:"LinkItem",props:{data:{type:String,required:!0},link:{type:Object,required:!0}}}),kA=["href"],xA=["src"];function EA(e,t,n,r,l,a){return G(),ie("a",{href:e.link.href(e.data),class:"tag is-white",target:"_blank"},[D("img",{src:e.link.favicon(),alt:"favicon"},null,8,xA),D("span",null,we(e.link.name),1)],8,kA)}const RA=Ee(AA,[["render",EA],["__scopeId","data-v-3ffdcc00"]]);class Nt{constructor(){Fe(this,"baseURL");this.baseURL="https://example.com"}favicon(){return"https://t0.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url="+this.baseURL}}class TA extends Nt{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://app.any.run",this.name="ANY.RUN",this.type="hash"}href(n){return this.baseURL+`/submissions/#filehash:${n}`}}class LA extends Nt{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://search.censys.io",this.name="Censys",this.type="ip"}href(n){return this.baseURL+`/hosts/${n}`}}class MA extends Nt{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://crt.sh",this.name="crt.sh",this.type="domain"}href(n){return this.baseURL+`/?q=${n}`}}class OA extends Nt{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://dnslytics.com",this.name="DNSlytics",this.type="ip"}href(n){return this.baseURL+`/ip/${n}`}}class IA extends Nt{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://dnslytics.com",this.name="DNSlytics",this.type="domain"}href(n){return this.baseURL+`/domain/${n}`}}class NA extends Nt{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://emailrep.io",this.name="EmailRep",this.type="mail"}href(n){return this.baseURL+`/${n}`}}class DA extends Nt{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://viz.greynoise.io",this.name="GreyNoise",this.type="ip"}href(n){return this.baseURL+`/ip/${n}`}}class FA extends Nt{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://analyze.intezer.com",this.name="Intezer",this.type="hash"}href(n){return this.baseURL+`/#/files/${n}`}}class Tf extends Nt{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://otx.alienvault.com",this.name="OTX",this.type="ip"}href(n){return this.baseURL+`/indicator/ip/${n}`}}class PA extends Tf{constructor(){super();Fe(this,"type");this.type="domain"}href(n){return this.baseURL+`/indicator/domain/${n}`}}class Lf extends Nt{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://securitytrails.com",this.name="SecurityTrails",this.type="domain"}}class BA extends Lf{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/domain/${t}/dns`}}class WA extends Lf{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/list/ip/${t}`}}class HA extends Nt{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://www.shodan.io",this.name="Shodan",this.type="ip"}href(n){return this.baseURL+`/host/${n}`}}class Dl extends Nt{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://urlscan.io",this.name="urlscan.io",this.type="domain"}}class zA extends Dl{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/domain/${t}`}}class UA extends Dl{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/ip/${t}`}}class VA extends Dl{constructor(){super(),this.type="url"}href(t){const n=encodeURIComponent(`page.url:"${t}" OR task.url:"${t}"`);return this.baseURL+`/search/#${n}`}}var Mf={exports:{}};const jA={},GA=Object.freeze(Object.defineProperty({__proto__:null,default:jA},Symbol.toStringTag,{value:"Module"})),Lu=K_(GA);/**
799
+ * [js-sha256]{@link https://github.com/emn178/js-sha256}
800
+ *
801
+ * @version 0.11.0
802
+ * @author Chen, Yi-Cyuan [emn178@gmail.com]
803
+ * @copyright Chen, Yi-Cyuan 2014-2024
804
+ * @license MIT
805
+ */(function(e){(function(){var t="input is invalid type",n=typeof window=="object",r=n?window:{};r.JS_SHA256_NO_WINDOW&&(n=!1);var l=!n&&typeof self=="object",a=!r.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;a?r=nr:l&&(r=self);var d=!r.JS_SHA256_NO_COMMON_JS&&!0&&e.exports,p=!r.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",o="0123456789abcdef".split(""),g=[-2147483648,8388608,32768,128],i=[24,16,8,0],s=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],c=["hex","array","digest","arrayBuffer"],u=[];(r.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(b){return Object.prototype.toString.call(b)==="[object Array]"}),p&&(r.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(b){return typeof b=="object"&&b.buffer&&b.buffer.constructor===ArrayBuffer});var h=function(b,E){return function(L){return new C(E,!0).update(L)[b]()}},f=function(b){var E=h("hex",b);a&&(E=m(E,b)),E.create=function(){return new C(b)},E.update=function(M){return E.create().update(M)};for(var L=0;L<c.length;++L){var k=c[L];E[k]=h(k,b)}return E},m=function(b,E){var L=Lu,k=Lu.Buffer,M=E?"sha224":"sha256",A;k.from&&!r.JS_SHA256_NO_BUFFER_FROM?A=k.from:A=function(S){return new k(S)};var R=function(S){if(typeof S=="string")return L.createHash(M).update(S,"utf8").digest("hex");if(S==null)throw new Error(t);return S.constructor===ArrayBuffer&&(S=new Uint8Array(S)),Array.isArray(S)||ArrayBuffer.isView(S)||S.constructor===k?L.createHash(M).update(A(S)).digest("hex"):b(S)};return R},v=function(b,E){return function(L,k){return new $(L,E,!0).update(k)[b]()}},y=function(b){var E=v("hex",b);E.create=function(M){return new $(M,b)},E.update=function(M,A){return E.create(M).update(A)};for(var L=0;L<c.length;++L){var k=c[L];E[k]=v(k,b)}return E};function C(b,E){E?(u[0]=u[16]=u[1]=u[2]=u[3]=u[4]=u[5]=u[6]=u[7]=u[8]=u[9]=u[10]=u[11]=u[12]=u[13]=u[14]=u[15]=0,this.blocks=u):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],b?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=b}C.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(p&&b.constructor===ArrayBuffer)b=new Uint8Array(b);else if(!Array.isArray(b)&&(!p||!ArrayBuffer.isView(b)))throw new Error(t)}else throw new Error(t);E=!0}for(var k,M=0,A,R=b.length,S=this.blocks;M<R;){if(this.hashed&&(this.hashed=!1,S[0]=this.block,this.block=S[16]=S[1]=S[2]=S[3]=S[4]=S[5]=S[6]=S[7]=S[8]=S[9]=S[10]=S[11]=S[12]=S[13]=S[14]=S[15]=0),E)for(A=this.start;M<R&&A<64;++M)S[A>>>2]|=b[M]<<i[A++&3];else for(A=this.start;M<R&&A<64;++M)k=b.charCodeAt(M),k<128?S[A>>>2]|=k<<i[A++&3]:k<2048?(S[A>>>2]|=(192|k>>>6)<<i[A++&3],S[A>>>2]|=(128|k&63)<<i[A++&3]):k<55296||k>=57344?(S[A>>>2]|=(224|k>>>12)<<i[A++&3],S[A>>>2]|=(128|k>>>6&63)<<i[A++&3],S[A>>>2]|=(128|k&63)<<i[A++&3]):(k=65536+((k&1023)<<10|b.charCodeAt(++M)&1023),S[A>>>2]|=(240|k>>>18)<<i[A++&3],S[A>>>2]|=(128|k>>>12&63)<<i[A++&3],S[A>>>2]|=(128|k>>>6&63)<<i[A++&3],S[A>>>2]|=(128|k&63)<<i[A++&3]);this.lastByteIndex=A,this.bytes+=A-this.start,A>=64?(this.block=S[16],this.start=A-64,this.hash(),this.hashed=!0):this.start=A}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},C.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var b=this.blocks,E=this.lastByteIndex;b[16]=this.block,b[E>>>2]|=g[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()}},C.prototype.hash=function(){var b=this.h0,E=this.h1,L=this.h2,k=this.h3,M=this.h4,A=this.h5,R=this.h6,S=this.h7,w=this.blocks,x,T,O,I,N,P,H,V,U,W,j;for(x=16;x<64;++x)N=w[x-15],T=(N>>>7|N<<25)^(N>>>18|N<<14)^N>>>3,N=w[x-2],O=(N>>>17|N<<15)^(N>>>19|N<<13)^N>>>10,w[x]=w[x-16]+T+w[x-7]+O<<0;for(j=E&L,x=0;x<64;x+=4)this.first?(this.is224?(V=300032,N=w[0]-1413257819,S=N-150054599<<0,k=N+24177077<<0):(V=704751109,N=w[0]-210244248,S=N-1521486534<<0,k=N+143694565<<0),this.first=!1):(T=(b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10),O=(M>>>6|M<<26)^(M>>>11|M<<21)^(M>>>25|M<<7),V=b&E,I=V^b&L^j,H=M&A^~M&R,N=S+O+H+s[x]+w[x],P=T+I,S=k+N<<0,k=N+P<<0),T=(k>>>2|k<<30)^(k>>>13|k<<19)^(k>>>22|k<<10),O=(S>>>6|S<<26)^(S>>>11|S<<21)^(S>>>25|S<<7),U=k&b,I=U^k&E^V,H=S&M^~S&A,N=R+O+H+s[x+1]+w[x+1],P=T+I,R=L+N<<0,L=N+P<<0,T=(L>>>2|L<<30)^(L>>>13|L<<19)^(L>>>22|L<<10),O=(R>>>6|R<<26)^(R>>>11|R<<21)^(R>>>25|R<<7),W=L&k,I=W^L&b^U,H=R&S^~R&M,N=A+O+H+s[x+2]+w[x+2],P=T+I,A=E+N<<0,E=N+P<<0,T=(E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10),O=(A>>>6|A<<26)^(A>>>11|A<<21)^(A>>>25|A<<7),j=E&L,I=j^E&k^W,H=A&R^~A&S,N=M+O+H+s[x+3]+w[x+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+k<<0,this.h4=this.h4+M<<0,this.h5=this.h5+A<<0,this.h6=this.h6+R<<0,this.h7=this.h7+S<<0},C.prototype.hex=function(){this.finalize();var b=this.h0,E=this.h1,L=this.h2,k=this.h3,M=this.h4,A=this.h5,R=this.h6,S=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[k>>>28&15]+o[k>>>24&15]+o[k>>>20&15]+o[k>>>16&15]+o[k>>>12&15]+o[k>>>8&15]+o[k>>>4&15]+o[k&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[A>>>28&15]+o[A>>>24&15]+o[A>>>20&15]+o[A>>>16&15]+o[A>>>12&15]+o[A>>>8&15]+o[A>>>4&15]+o[A&15]+o[R>>>28&15]+o[R>>>24&15]+o[R>>>20&15]+o[R>>>16&15]+o[R>>>12&15]+o[R>>>8&15]+o[R>>>4&15]+o[R&15];return this.is224||(w+=o[S>>>28&15]+o[S>>>24&15]+o[S>>>20&15]+o[S>>>16&15]+o[S>>>12&15]+o[S>>>8&15]+o[S>>>4&15]+o[S&15]),w},C.prototype.toString=C.prototype.hex,C.prototype.digest=function(){this.finalize();var b=this.h0,E=this.h1,L=this.h2,k=this.h3,M=this.h4,A=this.h5,R=this.h6,S=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,k>>>24&255,k>>>16&255,k>>>8&255,k&255,M>>>24&255,M>>>16&255,M>>>8&255,M&255,A>>>24&255,A>>>16&255,A>>>8&255,A&255,R>>>24&255,R>>>16&255,R>>>8&255,R&255];return this.is224||w.push(S>>>24&255,S>>>16&255,S>>>8&255,S&255),w},C.prototype.array=C.prototype.digest,C.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 $(b,E,L){var k,M=typeof b;if(M==="string"){var A=[],R=b.length,S=0,w;for(k=0;k<R;++k)w=b.charCodeAt(k),w<128?A[S++]=w:w<2048?(A[S++]=192|w>>>6,A[S++]=128|w&63):w<55296||w>=57344?(A[S++]=224|w>>>12,A[S++]=128|w>>>6&63,A[S++]=128|w&63):(w=65536+((w&1023)<<10|b.charCodeAt(++k)&1023),A[S++]=240|w>>>18,A[S++]=128|w>>>12&63,A[S++]=128|w>>>6&63,A[S++]=128|w&63);b=A}else if(M==="object"){if(b===null)throw new Error(t);if(p&&b.constructor===ArrayBuffer)b=new Uint8Array(b);else if(!Array.isArray(b)&&(!p||!ArrayBuffer.isView(b)))throw new Error(t)}else throw new Error(t);b.length>64&&(b=new C(E,!0).update(b).array());var x=[],T=[];for(k=0;k<64;++k){var O=b[k]||0;x[k]=92^O,T[k]=54^O}C.call(this,E,L),this.update(T),this.oKeyPad=x,this.inner=!0,this.sharedMemory=L}$.prototype=new C,$.prototype.finalize=function(){if(C.prototype.finalize.call(this),this.inner){this.inner=!1;var b=this.array();C.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(b),C.prototype.finalize.call(this)}};var _=f();_.sha256=_,_.sha224=f(!0),_.sha256.hmac=y(),_.sha224.hmac=y(!0),d?e.exports=_:(r.sha256=_.sha256,r.sha224=_.sha224)})()})(Mf);var YA=Mf.exports,KA=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},Fl={},ZA=Object.prototype.hasOwnProperty,XA;function Mu(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return null}}function Ou(e){try{return encodeURIComponent(e)}catch{return null}}function qA(e){for(var t=/([^=?#&]+)=?([^&]*)/g,n={},r;r=t.exec(e);){var l=Mu(r[1]),a=Mu(r[2]);l===null||a===null||l in n||(n[l]=a)}return n}function QA(e,t){t=t||"";var n=[],r,l;typeof t!="string"&&(t="?");for(l in e)if(ZA.call(e,l)){if(r=e[l],!r&&(r===null||r===XA||isNaN(r))&&(r=""),l=Ou(l),r=Ou(r),l===null||r===null)continue;n.push(l+"="+r)}return n.length?t+n.join("&"):""}Fl.stringify=QA;Fl.parse=qA;var Of=KA,po=Fl,JA=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,If=/[\n\r\t]/g,e2=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,Nf=/:\d+$/,t2=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,n2=/^[a-zA-Z]:/;function Pl(e){return(e||"").toString().replace(JA,"")}var Ma=[["#","hash"],["?","query"],function(t,n){return Qt(n.protocol)?t.replace(/\\/g,"/"):t},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],Iu={hash:1,query:1};function Df(e){var t;typeof window<"u"?t=window:typeof nr<"u"?t=nr:typeof self<"u"?t=self:t={};var n=t.location||{};e=e||n;var r={},l=typeof e,a;if(e.protocol==="blob:")r=new nn(unescape(e.pathname),{});else if(l==="string"){r=new nn(e,{});for(a in Iu)delete r[a]}else if(l==="object"){for(a in e)a in Iu||(r[a]=e[a]);r.slashes===void 0&&(r.slashes=e2.test(e.href))}return r}function Qt(e){return e==="file:"||e==="ftp:"||e==="http:"||e==="https:"||e==="ws:"||e==="wss:"}function Ff(e,t){e=Pl(e),e=e.replace(If,""),t=t||{};var n=t2.exec(e),r=n[1]?n[1].toLowerCase():"",l=!!n[2],a=!!n[3],d=0,p;return l?a?(p=n[2]+n[3]+n[4],d=n[2].length+n[3].length):(p=n[2]+n[4],d=n[2].length):a?(p=n[3]+n[4],d=n[3].length):p=n[4],r==="file:"?d>=2&&(p=p.slice(2)):Qt(r)?p=n[4]:r?l&&(p=p.slice(2)):d>=2&&Qt(t.protocol)&&(p=n[4]),{protocol:r,slashes:l||Qt(r),slashesCount:d,rest:p}}function r2(e,t){if(e==="")return t;for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),r=n.length,l=n[r-1],a=!1,d=0;r--;)n[r]==="."?n.splice(r,1):n[r]===".."?(n.splice(r,1),d++):d&&(r===0&&(a=!0),n.splice(r,1),d--);return a&&n.unshift(""),(l==="."||l==="..")&&n.push(""),n.join("/")}function nn(e,t,n){if(e=Pl(e),e=e.replace(If,""),!(this instanceof nn))return new nn(e,t,n);var r,l,a,d,p,o,g=Ma.slice(),i=typeof t,s=this,c=0;for(i!=="object"&&i!=="string"&&(n=t,t=null),n&&typeof n!="function"&&(n=po.parse),t=Df(t),l=Ff(e||"",t),r=!l.protocol&&!l.slashes,s.slashes=l.slashes||r&&t.slashes,s.protocol=l.protocol||t.protocol||"",e=l.rest,(l.protocol==="file:"&&(l.slashesCount!==2||n2.test(e))||!l.slashes&&(l.protocol||l.slashesCount<2||!Qt(s.protocol)))&&(g[3]=[/(.*)/,"pathname"]);c<g.length;c++){if(d=g[c],typeof d=="function"){e=d(e,s);continue}a=d[0],o=d[1],a!==a?s[o]=e:typeof a=="string"?(p=a==="@"?e.lastIndexOf(a):e.indexOf(a),~p&&(typeof d[2]=="number"?(s[o]=e.slice(0,p),e=e.slice(p+d[2])):(s[o]=e.slice(p),e=e.slice(0,p)))):(p=a.exec(e))&&(s[o]=p[1],e=e.slice(0,p.index)),s[o]=s[o]||r&&d[3]&&t[o]||"",d[4]&&(s[o]=s[o].toLowerCase())}n&&(s.query=n(s.query)),r&&t.slashes&&s.pathname.charAt(0)!=="/"&&(s.pathname!==""||t.pathname!=="")&&(s.pathname=r2(s.pathname,t.pathname)),s.pathname.charAt(0)!=="/"&&Qt(s.protocol)&&(s.pathname="/"+s.pathname),Of(s.port,s.protocol)||(s.host=s.hostname,s.port=""),s.username=s.password="",s.auth&&(p=s.auth.indexOf(":"),~p?(s.username=s.auth.slice(0,p),s.username=encodeURIComponent(decodeURIComponent(s.username)),s.password=s.auth.slice(p+1),s.password=encodeURIComponent(decodeURIComponent(s.password))):s.username=encodeURIComponent(decodeURIComponent(s.auth)),s.auth=s.password?s.username+":"+s.password:s.username),s.origin=s.protocol!=="file:"&&Qt(s.protocol)&&s.host?s.protocol+"//"+s.host:"null",s.href=s.toString()}function i2(e,t,n){var r=this;switch(e){case"query":typeof t=="string"&&t.length&&(t=(n||po.parse)(t)),r[e]=t;break;case"port":r[e]=t,Of(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,Nf.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 a=t.indexOf(":");~a?(r.username=t.slice(0,a),r.username=encodeURIComponent(decodeURIComponent(r.username)),r.password=t.slice(a+1),r.password=encodeURIComponent(decodeURIComponent(r.password))):r.username=encodeURIComponent(decodeURIComponent(t))}for(var d=0;d<Ma.length;d++){var p=Ma[d];p[4]&&(r[p[1]]=r[p[1]].toLowerCase())}return r.auth=r.password?r.username+":"+r.password:r.username,r.origin=r.protocol!=="file:"&&Qt(r.protocol)&&r.host?r.protocol+"//"+r.host:"null",r.href=r.toString(),r}function s2(e){(!e||typeof e!="function")&&(e=po.stringify);var t,n=this,r=n.host,l=n.protocol;l&&l.charAt(l.length-1)!==":"&&(l+=":");var a=l+(n.protocol&&n.slashes||Qt(n.protocol)?"//":"");return n.username?(a+=n.username,n.password&&(a+=":"+n.password),a+="@"):n.password?(a+=":"+n.password,a+="@"):n.protocol!=="file:"&&Qt(n.protocol)&&!r&&n.pathname!=="/"&&(a+="@"),(r[r.length-1]===":"||Nf.test(n.hostname)&&!n.port)&&(r+=":"),a+=r+n.pathname,t=typeof n.query=="object"?e(n.query):n.query,t&&(a+=t.charAt(0)!=="?"?"?"+t:t),n.hash&&(a+=n.hash),a}nn.prototype={set:i2,toString:s2};nn.extractProtocol=Ff;nn.location=Df;nn.trimLeft=Pl;nn.qs=po;var o2=nn;const a2=Ir(o2);class go extends Nt{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.name="VirusTotal",this.baseURL="https://www.virustotal.com",this.type="domain"}}class l2 extends go{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/gui/domain/${t}/detection`}}class c2 extends go{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/gui/ip-address/${t}/details`}}class u2 extends go{constructor(){super(),this.type="url"}href(t){const n=YA.sha256(this.normalizeURL(t));return this.baseURL+`/gui/url/${n}/details`}normalizeURL(t){return new a2(t).pathname==="/"&&!t.endsWith("/")?`${t}/`:t}}class h2 extends go{constructor(){super(),this.type="hash"}href(t){return this.baseURL+`/gui/file/${t}/details`}}const d2=[new TA,new LA,new MA,new IA,new OA,new NA,new DA,new FA,new PA,new Tf,new BA,new WA,new HA,new zA,new UA,new VA,new l2,new h2,new c2,new u2],f2=Ce({name:"LinksItem",components:{LinkComponent:RA},props:{data:{type:String,required:!0},type:{type:String,required:!0}},setup(e){return{selectedLinks:Le(()=>d2.filter(n=>n.type===e.type))}}}),p2={class:"tags are-medium"};function g2(e,t,n,r,l,a){const d=ne("LinkComponent");return G(),ie("div",p2,[(G(!0),ie(Be,null,Ot(e.selectedLinks,p=>(G(),Se(d,{data:e.data,link:p,key:p.name},null,8,["data","link"]))),128))])}const m2=Ee(f2,[["render",g2]]),v2=Ce({name:"MessageItem",props:{message:{type:Object,required:!0},disposable:{type:Boolean,default:!1}},emits:["dispose"],setup(e,t){return{dispose:()=>{t.emit("dispose")}}}}),y2={class:"notification is-info is-light"};function b2(e,t,n,r,l,a){return G(),ie("div",y2,[e.disposable?(G(),ie("button",{key:0,class:"delete",onClick:t[0]||(t[0]=(...d)=>e.dispose&&e.dispose(...d))})):ge("",!0),D("p",null,we(e.message.message),1)])}const mo=Ee(v2,[["render",b2]]),w2=Ce({name:"ArtifactDetail",props:{artifact:{type:Object,required:!0}},components:{AS:DC,DnsRecords:GC,Links:m2,ReverseDnsNames:eA,Tags:Ii,ActionButtons:Rf,WhoisRecord:CA,CPEs:WC,Ports:XC,ErrorMessage:vt,Message:mo,Vulnerabilities:iA},emits:["refresh","delete"],setup(e,t){const n=Ke(),r=Ke(),l=Ke(),a=Ke(),d=f=>{l.value=f},p=()=>{l.value=void 0},o=()=>{t.emit("delete")},g=f=>{f.queued?a.value=f:t.emit("refresh")},i=()=>{a.value=void 0},s=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=f=>{if(f)return`https://maps.google.co.jp/maps?output=embed&q=${f.lat},${f.long}&z=3`},u=a_(),h=Mi();return ct(async()=>{if(e.artifact.dataType==="ip"){let f;if(e.artifact.geolocation)f=kf(e.artifact.geolocation.countryCode);else{const m=await u.perform(e.artifact.data);f=i$(m),r.value=m.countryCode}n.value=c(f)}}),{countryCode:r,getAlertsTask:h,googleMapSrc:n,truncate:Oi,urlscanLiveshotSrc:s,onDelete:o,onSetError:d,error:l,onDisposeError:p,message:a,onDisposeMessage:i,onSetMessage:g}}}),xt=e=>(dl("data-v-7f05c3bb"),e=e(),fl(),e),_2={class:"block"},$2={class:"is-size-2"},S2={class:"is-clearfix"},C2={class:"columns"},A2={key:0,class:"column is-half"},k2={key:0},x2={class:"is-size-4"},E2={class:"has-text-grey"},R2=["src"],T2={key:1},L2=xt(()=>D("h4",{class:"is-size-4"},"Live screenshot",-1)),M2=xt(()=>D("p",{class:"help"},"Hover to expand",-1)),O2=["src"],I2={class:"column"},N2=xt(()=>D("h4",{class:"is-size-4"},"Information",-1)),D2={class:"table is-fullwidth is-completely-borderless"},F2=xt(()=>D("th",null,"Data",-1)),P2=xt(()=>D("th",null,"Data type",-1)),B2=xt(()=>D("th",null,"Source",-1)),W2=xt(()=>D("th",null,"Query",-1)),H2={key:0},z2=xt(()=>D("th",null,"Tags",-1)),U2={class:"help"},V2={class:"block"},j2={class:"block"},G2={key:0,class:"block"},Y2=xt(()=>D("h4",{class:"is-size-4 mb-2"},"AS",-1)),K2={key:1,class:"block"},Z2=xt(()=>D("h4",{class:"is-size-4 mb-2"},"Reverse DNS",-1)),X2={key:2,class:"block"},q2=xt(()=>D("h4",{class:"is-size-4 mb-2"},"DNS records",-1)),Q2={key:3,class:"block"},J2=xt(()=>D("h4",{class:"is-size-4 mb-2"},"CPEs",-1)),ek={key:4,class:"block"},tk=xt(()=>D("h4",{class:"is-size-4 mb-2"},"Vulnerabilities",-1)),nk={key:5,class:"block"},rk=xt(()=>D("h4",{class:"is-size-4 mb-2"},"Ports",-1)),ik={key:6,class:"block"},sk=xt(()=>D("h4",{class:"is-size-4 mb-2"},"Whois record",-1));function ok(e,t,n,r,l,a){var y;const d=ne("ErrorMessage"),p=ne("Message"),o=ne("ActionButtons"),g=ne("Tags"),i=ne("Links"),s=ne("AS"),c=ne("ReverseDnsNames"),u=ne("DnsRecords"),h=ne("CPEs"),f=ne("Vulnerabilities"),m=ne("Ports"),v=ne("WhoisRecord");return G(),ie(Be,null,[e.error?(G(),Se(d,{key:0,class:"block",error:e.error,disposable:!0,onDispose:e.onDisposeError},null,8,["error","onDispose"])):ge("",!0),e.message?(G(),Se(p,{key:1,class:"block",message:e.message,disposable:!0,onDispose:e.onDisposeMessage},null,8,["message","onDispose"])):ge("",!0),D("div",_2,[D("h2",$2,we(e.artifact.id),1),D("p",S2,[ae(o,{artifact:e.artifact,onDelete:e.onDelete,onSetError:e.onSetError,onSetMessage:e.onSetMessage},null,8,["artifact","onDelete","onSetError","onSetMessage"])])]),D("div",C2,[e.googleMapSrc||e.urlscanLiveshotSrc?(G(),ie("div",A2,[e.googleMapSrc?(G(),ie("div",k2,[D("h4",x2,[rt(" Geolocation "),D("span",E2,we(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,R2)])):ge("",!0),e.urlscanLiveshotSrc?(G(),ie("div",T2,[L2,M2,D("img",{src:e.urlscanLiveshotSrc,class:"liveshot",alt:"liveshot"},null,8,O2)])):ge("",!0)])):ge("",!0),D("div",I2,[N2,D("table",D2,[D("tr",null,[F2,D("td",null,we(e.truncate(e.artifact.data,64)),1)]),D("tr",null,[P2,D("td",null,we(e.artifact.dataType),1)]),D("tr",null,[B2,D("td",null,we(e.artifact.source),1)]),D("tr",null,[W2,D("td",null,we(e.truncate(e.artifact.query||"N/A",64)),1)]),e.artifact.tags.length>0?(G(),ie("tr",H2,[z2,D("td",null,[ae(g,{tags:e.artifact.tags,"navigate-to":"Artifacts"},null,8,["tags"]),rt("/td>")])])):ge("",!0)]),D("p",U2,"Created at: "+we(e.artifact.createdAt),1)])]),D("div",V2,[ae(i,{data:e.artifact.data,type:e.artifact.dataType},null,8,["data","type"])]),D("div",j2,[e.artifact.autonomousSystem?(G(),ie("div",G2,[Y2,ae(s,{autonomousSystem:e.artifact.autonomousSystem},null,8,["autonomousSystem"])])):ge("",!0),e.artifact.reverseDnsNames?(G(),ie("div",K2,[Z2,ae(c,{reverseDnsNames:e.artifact.reverseDnsNames},null,8,["reverseDnsNames"])])):ge("",!0),e.artifact.dnsRecords?(G(),ie("div",X2,[q2,ae(u,{dnsRecords:e.artifact.dnsRecords},null,8,["dnsRecords"])])):ge("",!0),e.artifact.cpes?(G(),ie("div",Q2,[J2,ae(h,{cpes:e.artifact.cpes},null,8,["cpes"])])):ge("",!0),e.artifact.vulnerabilities?(G(),ie("div",ek,[tk,ae(f,{vulnerabilities:e.artifact.vulnerabilities},null,8,["vulnerabilities"])])):ge("",!0),e.artifact.ports?(G(),ie("div",nk,[rk,ae(m,{ports:e.artifact.ports},null,8,["ports"])])):ge("",!0),e.artifact.whoisRecord?(G(),ie("div",ik,[sk,ae(v,{whoisRecord:e.artifact.whoisRecord},null,8,["whoisRecord"])])):ge("",!0)])],64)}const ak=Ee(w2,[["render",ok],["__scopeId","data-v-7f05c3bb"]]),lk=Ce({name:"ArtifactDetailWrapper",components:{Artifact:ak,Loading:yn,ErrorMessage:vt},props:{id:{type:Number,required:!0}},setup(e){const t=i_(),n=Mr(),r=async()=>{await t.perform(e.id)},l=async()=>{await r()},a=async()=>{n.push("/")};return ct(async()=>{await r()}),ot(e,async()=>{await r()}),{getArtifactTask:t,onRefresh:l,onDelete:a}}});function ck(e,t,n,r,l,a){var g,i;const d=ne("Loading"),p=ne("ErrorMessage"),o=ne("Artifact");return G(),ie(Be,null,[e.getArtifactTask.isRunning?(G(),Se(d,{key:0})):ge("",!0),e.getArtifactTask.isError?(G(),Se(p,{key:1,error:(g=e.getArtifactTask.last)==null?void 0:g.error},null,8,["error"])):ge("",!0),(i=e.getArtifactTask.last)!=null&&i.value?(G(),Se(o,{key:2,artifact:e.getArtifactTask.last.value,onRefresh:e.onRefresh,onDelete:e.onDelete},null,8,["artifact","onRefresh","onDelete"])):ge("",!0)],64)}const uk=Ee(lk,[["render",ck]]),hk=Ce({name:"ArtifactView",components:{Artifact:uk},props:{id:{type:String,required:!0}},setup(e){const t=()=>{vn(`Artifact:${e.id} - Mihari`)};ct(()=>{t()}),ot(()=>e.id,()=>{t()})}});function dk(e,t,n,r,l,a){const d=ne("Artifact",!0);return G(),Se(d,{id:parseInt(e.id)},null,8,["id"])}const fk=Ee(hk,[["render",dk]]),pk=Ce({name:"ArtifactsItem",props:{artifact:{type:Object,required:!0}},components:{ErrorMessage:vt,ActionButtons:Rf,Message:mo,Tags:Ii},emits:["delete"],setup(e,t){const n=Ke(),r=Ke();return{onSetError:g=>{n.value=g},onDisposeError:()=>{n.value=void 0},onDelete:()=>{t.emit("delete")},error:n,truncate:Oi,message:r,onSetMessage:g=>{g.queued&&(r.value=g)},onDisposeMessage:()=>{r.value=void 0}}}}),gk={class:"box"},mk={class:"block"},vk={class:"table is-fullwidth is-completely-borderless"},yk=D("th",null,"Data",-1),bk=D("th",null,"Data Type",-1),wk=D("th",null,"Source",-1),_k=D("th",null,"Query",-1),$k={key:0},Sk=D("th",null,"Tags",-1),Ck=D("p",{class:"block is-clearfix"},null,-1),Ak={class:"help"};function kk(e,t,n,r,l,a){const d=ne("ErrorMessage"),p=ne("Message"),o=ne("ActionButtons"),g=ne("router-link"),i=ne("Tags");return G(),ie("div",gk,[e.error?(G(),Se(d,{key:0,class:"block",error:e.error,disposable:!0,onDispose:e.onDisposeError},null,8,["error","onDispose"])):ge("",!0),e.message?(G(),Se(p,{key:1,class:"block",message:e.message,disposable:!0,onDispose:e.onDisposeMessage},null,8,["message","onDispose"])):ge("",!0),D("div",mk,[D("p",null,[ae(o,{artifact:e.artifact,onDelete:e.onDelete,onSetError:e.onSetError,onSetMessage:e.onSetMessage},null,8,["artifact","onDelete","onSetError","onSetMessage"])]),ae(g,{class:"is-size-4",to:{name:"Artifact",params:{id:e.artifact.id}}},{default:nt(()=>[rt(we(e.artifact.id),1)]),_:1},8,["to"])]),D("table",vk,[D("tr",null,[yk,D("td",null,we(e.artifact.data),1)]),D("tr",null,[bk,D("td",null,we(e.artifact.dataType),1)]),D("tr",null,[wk,D("td",null,we(e.artifact.source),1)]),D("tr",null,[_k,D("td",null,we(e.truncate(e.artifact.query||"N/A",64)),1)]),e.artifact.tags.length>0?(G(),ie("tr",$k,[Sk,D("td",null,[ae(i,{tags:e.artifact.tags,"navigate-to":"Artifacts"},null,8,["tags"])])])):ge("",!0)]),Ck,D("p",Ak,"Created at: "+we(e.artifact.createdAt),1)])}const xk=Ee(pk,[["render",kk]]),Ek=Ce({name:"ArtifactsItem",props:{artifacts:{type:Object,required:!0}},components:{Artifact:xk,Pagination:Nl},emits:["update-page","refresh"],setup(e,t){const n=Le(()=>e.artifacts.results.length>0);return{onUpdatePage:a=>{t.emit("update-page",a)},onDelete:()=>{t.emit("refresh")},hasArtifacts:n}}}),Rk={key:0},Tk={class:"help"},Lk={key:1},Mk=D("div",{class:"notification is-warning is-light"},"There is no artifact to show",-1),Ok=[Mk];function Ik(e,t,n,r,l,a){const d=ne("Artifact"),p=ne("Pagination");return e.hasArtifacts?(G(),ie("div",Rk,[(G(!0),ie(Be,null,Ot(e.artifacts.results,o=>(G(),Se(d,{artifact:o,key:o.id,onDelete:e.onDelete},null,8,["artifact","onDelete"]))),128)),ae(p,{total:e.artifacts.total,currentPage:e.artifacts.currentPage,pageSize:e.artifacts.pageSize,onUpdatePage:e.onUpdatePage},null,8,["total","currentPage","pageSize","onUpdatePage"]),D("p",Tk," ("+we(e.artifacts.total)+" results in total, "+we(e.artifacts.results.length)+" shown) ",1)])):(G(),ie("div",Lk,Ok))}const Nk=Ee(Ek,[["render",Ik]]),Dk=Ce({name:"ArtifactsWrapper",components:{Artifacts:Nk,Loading:yn,ErrorMessage:vt},setup(){const e=kr("page","1"),t=kr("q",""),n=Ke(!1),r=Il(),l=async()=>{const g={q:t.value,page:parseInt(e.value)};return await r.perform(g)},a=g=>{console.log(g),e.value=g.toString()},d=async()=>{e.value="1",await l()},p=d,o=()=>{n.value=!n.value};return ct(async()=>{await l()}),ot(e,async()=>{await l()}),ot(t,async()=>{window.scrollTo({top:0,behavior:"smooth"})}),{getArtifactsTask:r,page:e,q:t,search:d,showHelp:n,toggleShowHelp:o,onUpdatePage:a,onRefresh:p}}}),Fk={class:"block"},Pk={class:"field has-addons"},Bk={class:"control is-expanded"},Wk={class:"control"},Hk={class:"icon is-small"},zk=D("span",null,"Search",-1),Uk={class:"control"},Vk={class:"icon is-small"},jk=D("span",null,"Help",-1),Gk={key:0,class:"content mt-3"},Yk=bl('<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),Kk=[Yk],Zk={key:0,class:"block"};function Xk(e,t,n,r,l,a){var i,s;const d=ne("font-awesome-icon"),p=ne("Loading"),o=ne("ErrorMessage"),g=ne("Artifacts");return G(),ie(Be,null,[D("div",Fk,[D("div",Pk,[D("p",Bk,[gl(D("input",{class:"input",type:"text","onUpdate:modelValue":t[0]||(t[0]=c=>e.q=c)},null,512),[[$l,e.q]])]),D("p",Wk,[D("a",{class:"button is-primary",onClick:t[1]||(t[1]=(...c)=>e.search&&e.search(...c))},[D("span",Hk,[ae(d,{icon:"search"})]),zk])]),D("p",Uk,[D("a",{class:"button is-info",onClick:t[2]||(t[2]=(...c)=>e.toggleShowHelp&&e.toggleShowHelp(...c))},[D("span",Vk,[ae(d,{icon:"question"})]),jk])])]),e.showHelp?(G(),ie("div",Gk,Kk)):ge("",!0)]),e.getArtifactsTask.performCount>0?(G(),ie("div",Zk,[e.getArtifactsTask.isRunning?(G(),Se(p,{key:0})):ge("",!0),e.getArtifactsTask.isError?(G(),Se(o,{key:1,error:(i=e.getArtifactsTask.last)==null?void 0:i.error},null,8,["error"])):ge("",!0),(s=e.getArtifactsTask.last)!=null&&s.value?(G(),Se(g,{key:2,artifacts:e.getArtifactsTask.last.value,onUpdatePage:e.onUpdatePage,onRefresh:e.onRefresh},null,8,["artifacts","onUpdatePage","onRefresh"])):ge("",!0)])):ge("",!0)],64)}const qk=Ee(Dk,[["render",Xk]]),Qk=Ce({name:"ArtifactsView",components:{Artifacts:qk},setup(){const e=()=>{vn("Artifacts - Mihari")};ct(()=>{e()})}});function Jk(e,t,n,r,l,a){const d=ne("Artifacts",!0);return G(),Se(d)}const ex=Ee(Qk,[["render",Jk]]),tx=Ce({name:"ConfigsItem",props:{configs:{type:Object,required:!0}}}),nx={class:"box"},rx={class:"table-container"},ix={class:"table is-fullwidth"},sx=D("thead",null,[D("tr",null,[D("th",null,"Name"),D("th",null,"Type"),D("th",null,"Configured?"),D("th",null,"Items")])],-1),ox={key:0,class:"button is-success is-small ml-1"},ax={class:"icon is-small"},lx=D("span",null,"Yes",-1),cx={key:1,class:"button is-warning is-small ml-1"},ux={class:"icon is-small"},hx=D("span",null,"No",-1),dx={class:"field is-grouped is-grouped-multiline"},fx={class:"tags has-addons"},px={class:"tag is-dark"};function gx(e,t,n,r,l,a){const d=ne("font-awesome-icon");return G(),ie("div",nx,[D("div",rx,[D("table",ix,[sx,D("tbody",null,[(G(!0),ie(Be,null,Ot(e.configs.results,p=>(G(),ie("tr",{key:p.name},[D("td",null,we(p.name),1),D("td",null,we(p.type),1),D("td",null,[p.configured?(G(),ie("button",ox,[D("span",ax,[ae(d,{icon:"check"})]),lx])):(G(),ie("button",cx,[D("span",ux,[ae(d,{icon:"exclamation"})]),hx]))]),D("td",null,[D("div",dx,[(G(!0),ie(Be,null,Ot(p.items,(o,g)=>(G(),ie("div",{class:"control",key:g},[D("div",fx,[D("span",px,we(o.key),1),D("span",{class:Vs(["tag",{"is-success":o.value,"is-warning":!o.value}])},we(o.value||"N/A"),3)])]))),128))])])]))),128))])])])])}const mx=Ee(tx,[["render",gx]]),vx=Ce({name:"ConfigsWrapper",components:{Configs:mx,Loading:yn,ErrorMessage:vt},setup(){const e=o_();return ct(async()=>{await e.perform()}),{getConfigsTask:e}}});function yx(e,t,n,r,l,a){var g,i;const d=ne("Loading"),p=ne("ErrorMessage"),o=ne("Configs");return G(),ie(Be,null,[e.getConfigsTask.isRunning?(G(),Se(d,{key:0})):ge("",!0),e.getConfigsTask.isError?(G(),Se(p,{key:1,error:(g=e.getConfigsTask.last)==null?void 0:g.error},null,8,["error"])):ge("",!0),(i=e.getConfigsTask.last)!=null&&i.value?(G(),Se(o,{key:2,configs:e.getConfigsTask.last.value},null,8,["configs"])):ge("",!0)],64)}const bx=Ee(vx,[["render",yx]]),wx=Ce({name:"ConfigView",components:{Configs:bx},setup(){vn("Configuration - Mihari")}});function _x(e,t,n,r,l,a){const d=ne("Configs");return G(),Se(d)}const $x=Ee(wx,[["render",_x]]);var Pf={exports:{}};(function(e,t){(function(){var n="ace",r=function(){return this}();!r&&typeof window<"u"&&(r=window);var l=function(i,s,c){if(typeof i!="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=s),l.modules[i]||(l.payloads[i]=c,l.modules[i]=null)};l.modules={},l.payloads={};var a=function(i,s,c){if(typeof s=="string"){var u=o(i,s);if(u!=null)return c&&c(),u}else if(Object.prototype.toString.call(s)==="[object Array]"){for(var h=[],f=0,m=s.length;f<m;++f){var v=o(i,s[f]);if(v==null&&d.original)return;h.push(v)}return c&&c.apply(null,h)||!0}},d=function(i,s){var c=a("",i,s);return c==null&&d.original?d.original.apply(this,arguments):c},p=function(i,s){if(s.indexOf("!")!==-1){var c=s.split("!");return p(i,c[0])+"!"+p(i,c[1])}if(s.charAt(0)=="."){var u=i.split("/").slice(0,-1).join("/");for(s=u+"/"+s;s.indexOf(".")!==-1&&h!=s;){var h=s;s=s.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return s},o=function(i,s){s=p(i,s);var c=l.modules[s];if(!c){if(c=l.payloads[s],typeof c=="function"){var u={},h={id:s,uri:"",exports:u,packaged:!0},f=function(v,y){return a(s,v,y)},m=c(f,u,h);u=m||h.exports,l.modules[s]=u,delete l.payloads[s]}c=l.modules[s]=u||c}return c};function g(i){var s=r;i&&(r[i]||(r[i]={}),s=r[i]),(!s.define||!s.define.packaged)&&(l.original=s.define,s.define=l,s.define.packaged=!0),(!s.require||!s.require.packaged)&&(d.original=s.require,s.require=d,s.require.packaged=!0)}g(n)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(n,r,l){function a(d,p,o){Object.defineProperty(d,p,{value:o,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||a(String.prototype,"startsWith",function(d,p){return p=p||0,this.lastIndexOf(d,p)===p}),String.prototype.endsWith||a(String.prototype,"endsWith",function(d,p){var o=this;(p===void 0||p>o.length)&&(p=o.length),p-=d.length;var g=o.indexOf(d,p);return g!==-1&&g===p}),String.prototype.repeat||a(String.prototype,"repeat",function(d){for(var p="",o=this;d>0;)d&1&&(p+=o),(d>>=1)&&(o+=o);return p}),String.prototype.includes||a(String.prototype,"includes",function(d,p){return this.indexOf(d,p)!=-1}),Object.assign||(Object.assign=function(d){if(d==null)throw new TypeError("Cannot convert undefined or null to object");for(var p=Object(d),o=1;o<arguments.length;o++){var g=arguments[o];g!=null&&Object.keys(g).forEach(function(i){p[i]=g[i]})}return p}),Object.values||(Object.values=function(d){return Object.keys(d).map(function(p){return d[p]})}),Array.prototype.find||a(Array.prototype,"find",function(d){for(var p=this.length,o=arguments[1],g=0;g<p;g++){var i=this[g];if(d.call(o,i,g,this))return i}}),Array.prototype.findIndex||a(Array.prototype,"findIndex",function(d){for(var p=this.length,o=arguments[1],g=0;g<p;g++){var i=this[g];if(d.call(o,i,g,this))return g}}),Array.prototype.includes||a(Array.prototype,"includes",function(d,p){return this.indexOf(d,p)!=-1}),Array.prototype.fill||a(Array.prototype,"fill",function(d){for(var p=this,o=p.length>>>0,g=arguments[1],i=g>>0,s=i<0?Math.max(o+i,0):Math.min(i,o),c=arguments[2],u=c===void 0?o:c>>0,h=u<0?Math.max(o+u,0):Math.min(u,o);s<h;)p[s]=d,s++;return p}),Array.of||a(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 a(d){if(typeof d!="object"||!d)return d;var p;if(Array.isArray(d)){p=[];for(var o=0;o<d.length;o++)p[o]=a(d[o]);return p}if(Object.prototype.toString.call(d)!=="[object Object]")return d;p={};for(var o in d)p[o]=a(d[o]);return p}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(n,r,l){r.last=function(p){return p[p.length-1]},r.stringReverse=function(p){return p.split("").reverse().join("")},r.stringRepeat=function(p,o){for(var g="";o>0;)o&1&&(g+=p),(o>>=1)&&(p+=p);return g};var a=/^\s\s*/,d=/\s\s*$/;r.stringTrimLeft=function(p){return p.replace(a,"")},r.stringTrimRight=function(p){return p.replace(d,"")},r.copyObject=function(p){var o={};for(var g in p)o[g]=p[g];return o},r.copyArray=function(p){for(var o=[],g=0,i=p.length;g<i;g++)p[g]&&typeof p[g]=="object"?o[g]=this.copyObject(p[g]):o[g]=p[g];return o},r.deepCopy=n("./deep_copy").deepCopy,r.arrayToMap=function(p){for(var o={},g=0;g<p.length;g++)o[p[g]]=1;return o},r.createMap=function(p){var o=Object.create(null);for(var g in p)o[g]=p[g];return o},r.arrayRemove=function(p,o){for(var g=0;g<=p.length;g++)o===p[g]&&p.splice(g,1)},r.escapeRegExp=function(p){return p.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},r.escapeHTML=function(p){return(""+p).replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},r.getMatchOffsets=function(p,o){var g=[];return p.replace(o,function(i){g.push({offset:arguments[arguments.length-2],length:i.length})}),g},r.deferredCall=function(p){var o=null,g=function(){o=null,p()},i=function(s){return i.cancel(),o=setTimeout(g,s||0),i};return i.schedule=i,i.call=function(){return this.cancel(),p(),i},i.cancel=function(){return clearTimeout(o),o=null,i},i.isPending=function(){return o},i},r.delayedCall=function(p,o){var g=null,i=function(){g=null,p()},s=function(c){g==null&&(g=setTimeout(i,c||o))};return s.delay=function(c){g&&clearTimeout(g),g=setTimeout(i,c||o)},s.schedule=s,s.call=function(){this.cancel(),p()},s.cancel=function(){g&&clearTimeout(g),g=null},s.isPending=function(){return g},s},r.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},r.skipEmptyMatch=function(p,o,g){return g&&p.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 a=typeof navigator=="object"?navigator:{},d=(/mac|win|linux/i.exec(a.platform)||["other"])[0].toLowerCase(),p=a.userAgent||"",o=a.appName||"";r.isWin=d=="win",r.isMac=d=="mac",r.isLinux=d=="linux",r.isIE=o=="Microsoft Internet Explorer"||o.indexOf("MSAppHost")>=0?parseFloat((p.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((p.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),r.isOldIE=r.isIE&&r.isIE<9,r.isGecko=r.isMozilla=p.match(/ Gecko\/\d+/),r.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",r.isWebKit=parseFloat(p.split("WebKit/")[1])||void 0,r.isChrome=parseFloat(p.split(" Chrome/")[1])||void 0,r.isSafari=parseFloat(p.split(" Safari/")[1])&&!r.isChrome||void 0,r.isEdge=parseFloat(p.split(" Edge/")[1])||void 0,r.isAIR=p.indexOf("AdobeAIR")>=0,r.isAndroid=p.indexOf("Android")>=0,r.isChromeOS=p.indexOf(" CrOS ")>=0,r.isIOS=/iPad|iPhone|iPod/.test(p)&&!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 a=n("./useragent"),d="http://www.w3.org/1999/xhtml";r.buildDom=function c(u,h,f){if(typeof u=="string"&&u){var m=document.createTextNode(u);return h&&h.appendChild(m),m}if(!Array.isArray(u))return u&&u.appendChild&&h&&h.appendChild(u),u;if(typeof u[0]!="string"||!u[0]){for(var v=[],y=0;y<u.length;y++){var C=c(u[y],h,f);C&&v.push(C)}return v}var $=document.createElement(u[0]),_=u[1],b=1;_&&typeof _=="object"&&!Array.isArray(_)&&(b=2);for(var y=b;y<u.length;y++)c(u[y],$,f);return b==2&&Object.keys(_).forEach(function(E){var L=_[E];E==="class"?$.className=Array.isArray(L)?L.join(" "):L:typeof L=="function"||E=="value"||E[0]=="$"?$[E]=L:E==="ref"?f&&(f[L]=$):E==="style"?typeof L=="string"&&($.style.cssText=L):L!=null&&$.setAttribute(E,L)}),h&&h.appendChild($),$},r.getDocumentHead=function(c){return c||(c=document),c.head||c.getElementsByTagName("head")[0]||c.documentElement},r.createElement=function(c,u){return document.createElementNS?document.createElementNS(u||d,c):document.createElement(c)},r.removeChildren=function(c){c.innerHTML=""},r.createTextNode=function(c,u){var h=u?u.ownerDocument:document;return h.createTextNode(c)},r.createFragment=function(c){var u=c?c.ownerDocument:document;return u.createDocumentFragment()},r.hasCssClass=function(c,u){var h=(c.className+"").split(/\s+/g);return h.indexOf(u)!==-1},r.addCssClass=function(c,u){r.hasCssClass(c,u)||(c.className+=" "+u)},r.removeCssClass=function(c,u){for(var h=c.className.split(/\s+/g);;){var f=h.indexOf(u);if(f==-1)break;h.splice(f,1)}c.className=h.join(" ")},r.toggleCssClass=function(c,u){for(var h=c.className.split(/\s+/g),f=!0;;){var m=h.indexOf(u);if(m==-1)break;f=!1,h.splice(m,1)}return f&&h.push(u),c.className=h.join(" "),f},r.setCssClass=function(c,u,h){h?r.addCssClass(c,u):r.removeCssClass(c,u)},r.hasCssString=function(c,u){var h=0,f;if(u=u||document,f=u.querySelectorAll("style")){for(;h<f.length;)if(f[h++].id===c)return!0}},r.removeElementById=function(c,u){u=u||document,u.getElementById(c)&&u.getElementById(c).remove()};var p,o=[];r.useStrictCSP=function(c){p=c,c==!1?g():o||(o=[])};function g(){var c=o;o=null,c&&c.forEach(function(u){i(u[0],u[1])})}function i(c,u,h){if(!(typeof document>"u")){if(o){if(h)g();else if(h===!1)return o.push([c,u])}if(!p){var f=h;!h||!h.getRootNode?f=document:(f=h.getRootNode(),(!f||f==h)&&(f=document));var m=f.ownerDocument||f;if(u&&r.hasCssString(u,f))return null;u&&(c+=`
806
+ /*# sourceURL=ace/css/`+u+" */");var v=r.createElement("style");v.appendChild(m.createTextNode(c)),u&&(v.id=u),f==m&&(f=r.getDocumentHead(m)),f.insertBefore(v,f.firstChild)}}}if(r.importCssString=i,r.importCssStylsheet=function(c,u){r.buildDom(["link",{rel:"stylesheet",href:c}],r.getDocumentHead(u))},r.scrollbarWidth=function(c){var u=r.createElement("ace_inner");u.style.width="100%",u.style.minWidth="0px",u.style.height="200px",u.style.display="block";var h=r.createElement("ace_outer"),f=h.style;f.position="absolute",f.left="-10000px",f.overflow="hidden",f.width="200px",f.minWidth="0px",f.height="150px",f.display="block",h.appendChild(u);var m=c&&c.documentElement||document&&document.documentElement;if(!m)return 0;m.appendChild(h);var v=u.offsetWidth;f.overflow="scroll";var y=u.offsetWidth;return v===y&&(y=h.clientWidth),m.removeChild(h),v-y},r.computedStyle=function(c,u){return window.getComputedStyle(c,"")||{}},r.setStyle=function(c,u,h){c[u]!==h&&(c[u]=h)},r.HAS_CSS_ANIMATION=!1,r.HAS_CSS_TRANSFORMS=!1,r.HI_DPI=a.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,a.isChromeOS&&(r.HI_DPI=!1),typeof document<"u"){var s=document.createElement("div");r.HI_DPI&&s.style.transform!==void 0&&(r.HAS_CSS_TRANSFORMS=!0),!a.isEdge&&typeof s.style.animationName<"u"&&(r.HAS_CSS_ANIMATION=!0),s=null}r.HAS_CSS_TRANSFORMS?r.translate=function(c,u,h){c.style.transform="translate("+Math.round(u)+"px, "+Math.round(h)+"px)"}:r.translate=function(c,u,h){c.style.top=Math.round(h)+"px",c.style.left=Math.round(u)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(n,r,l){/*
807
+ * based on code from:
808
+ *
809
+ * @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
810
+ * Available via the MIT or new BSD license.
811
+ * see: http://github.com/jrburke/requirejs for details
812
+ */var a=n("./dom");r.get=function(d,p){var o=new XMLHttpRequest;o.open("GET",d,!0),o.onreadystatechange=function(){o.readyState===4&&p(o.responseText)},o.send(null)},r.loadScript=function(d,p){var o=a.getDocumentHead(),g=document.createElement("script");g.src=d,o.appendChild(g),g.onload=g.onreadystatechange=function(i,s){(s||!g.readyState||g.readyState=="loaded"||g.readyState=="complete")&&(g=g.onload=g.onreadystatechange=null,s||p())}},r.qualifyURL=function(d){var p=document.createElement("a");return p.href=d,p.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(n,r,l){r.inherits=function(a,d){a.super_=d,a.prototype=Object.create(d.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}})},r.mixin=function(a,d){for(var p in d)a[p]=d[p];return a},r.implement=function(a,d){r.mixin(a,d)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(n,r,l){var a={},d=function(){this.propagationStopped=!0},p=function(){this.defaultPrevented=!0};a._emit=a._dispatchEvent=function(o,g){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var i=this._eventRegistry[o]||[],s=this._defaultHandlers[o];if(!(!i.length&&!s)){(typeof g!="object"||!g)&&(g={}),g.type||(g.type=o),g.stopPropagation||(g.stopPropagation=d),g.preventDefault||(g.preventDefault=p),i=i.slice();for(var c=0;c<i.length&&(i[c](g,this),!g.propagationStopped);c++);if(s&&!g.defaultPrevented)return s(g,this)}},a._signal=function(o,g){var i=(this._eventRegistry||{})[o];if(i){i=i.slice();for(var s=0;s<i.length;s++)i[s](g,this)}},a.once=function(o,g){var i=this;if(this.on(o,function s(){i.off(o,s),g.apply(null,arguments)}),!g)return new Promise(function(s){g=s})},a.setDefaultHandler=function(o,g){var i=this._defaultHandlers;if(i||(i=this._defaultHandlers={_disabled_:{}}),i[o]){var s=i[o],c=i._disabled_[o];c||(i._disabled_[o]=c=[]),c.push(s);var u=c.indexOf(g);u!=-1&&c.splice(u,1)}i[o]=g},a.removeDefaultHandler=function(o,g){var i=this._defaultHandlers;if(i){var s=i._disabled_[o];if(i[o]==g)s&&this.setDefaultHandler(o,s.pop());else if(s){var c=s.indexOf(g);c!=-1&&s.splice(c,1)}}},a.on=a.addEventListener=function(o,g,i){this._eventRegistry=this._eventRegistry||{};var s=this._eventRegistry[o];return s||(s=this._eventRegistry[o]=[]),s.indexOf(g)==-1&&s[i?"unshift":"push"](g),g},a.off=a.removeListener=a.removeEventListener=function(o,g){this._eventRegistry=this._eventRegistry||{};var i=this._eventRegistry[o];if(i){var s=i.indexOf(g);s!==-1&&i.splice(s,1)}},a.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=a}),ace.define("ace/lib/report_error",["require","exports","module"],function(n,r,l){r.reportError=function(d,p){var o=new Error(d);o.data=p,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 a=n("./oop"),d=n("./event_emitter").EventEmitter,p=n("./report_error").reportError,o={setOptions:function(c){Object.keys(c).forEach(function(u){this.setOption(u,c[u])},this)},getOptions:function(c){var u={};if(c)Array.isArray(c)||(u=c,c=Object.keys(u));else{var h=this.$options;c=Object.keys(h).filter(function(f){return!h[f].hidden})}return c.forEach(function(f){u[f]=this.getOption(f)},this),u},setOption:function(c,u){if(this["$"+c]!==u){var h=this.$options[c];if(!h)return g('misspelled option "'+c+'"');if(h.forwardTo)return this[h.forwardTo]&&this[h.forwardTo].setOption(c,u);h.handlesSet||(this["$"+c]=u),h&&h.set&&h.set.call(this,u)}},getOption:function(c){var u=this.$options[c];return u?u.forwardTo?this[u.forwardTo]&&this[u.forwardTo].getOption(c):u&&u.get?u.get.call(this):this["$"+c]:g('misspelled option "'+c+'"')}};function g(c){typeof console<"u"&&console.warn&&console.warn.apply(console,arguments)}var i,s=function(){function c(){this.$defaultOptions={}}return c.prototype.defineOptions=function(u,h,f){return u.$options||(this.$defaultOptions[h]=u.$options={}),Object.keys(f).forEach(function(m){var v=f[m];typeof v=="string"&&(v={forwardTo:v}),v.name||(v.name=m),u.$options[v.name]=v,"initialValue"in v&&(u["$"+v.name]=v.initialValue)}),a.implement(u,o),this},c.prototype.resetOptions=function(u){Object.keys(u.$options).forEach(function(h){var f=u.$options[h];"value"in f&&u.setOption(h,f.value)})},c.prototype.setDefaultValue=function(u,h,f){if(!u){for(u in this.$defaultOptions)if(this.$defaultOptions[u][h])break;if(!this.$defaultOptions[u][h])return!1}var m=this.$defaultOptions[u]||(this.$defaultOptions[u]={});m[h]&&(m.forwardTo?this.setDefaultValue(m.forwardTo,h,f):m[h].value=f)},c.prototype.setDefaultValues=function(u,h){Object.keys(h).forEach(function(f){this.setDefaultValue(u,f,h[f])},this)},c.prototype.setMessages=function(u){i=u},c.prototype.nls=function(u,h){i&&!i[u]&&g("No message found for '"+u+"' in the provided messages, falling back to default English message.");var f=i&&i[u]||u;return h&&(f=f.replace(/\$(\$|[\d]+)/g,function(m,v){return v=="$"?"$":h[v]})),f},c}();s.prototype.warn=g,s.prototype.reportError=p,a.implement(s.prototype,d),r.AppConfig=s}),ace.define("ace/theme/textmate-css",["require","exports","module"],function(n,r,l){l.exports=`.ace-tm .ace_gutter {
813
+ background: #f0f0f0;
814
+ color: #333;
815
+ }
816
+
817
+ .ace-tm .ace_print-margin {
818
+ width: 1px;
819
+ background: #e8e8e8;
820
+ }
821
+
822
+ .ace-tm .ace_fold {
823
+ background-color: #6B72E6;
824
+ }
825
+
826
+ .ace-tm {
827
+ background-color: #FFFFFF;
828
+ color: black;
829
+ }
830
+
831
+ .ace-tm .ace_cursor {
832
+ color: black;
833
+ }
834
+
835
+ .ace-tm .ace_invisible {
836
+ color: rgb(191, 191, 191);
837
+ }
838
+
839
+ .ace-tm .ace_storage,
840
+ .ace-tm .ace_keyword {
841
+ color: blue;
842
+ }
843
+
844
+ .ace-tm .ace_constant {
845
+ color: rgb(197, 6, 11);
846
+ }
847
+
848
+ .ace-tm .ace_constant.ace_buildin {
849
+ color: rgb(88, 72, 246);
850
+ }
851
+
852
+ .ace-tm .ace_constant.ace_language {
853
+ color: rgb(88, 92, 246);
854
+ }
855
+
856
+ .ace-tm .ace_constant.ace_library {
857
+ color: rgb(6, 150, 14);
858
+ }
859
+
860
+ .ace-tm .ace_invalid {
861
+ background-color: rgba(255, 0, 0, 0.1);
862
+ color: red;
863
+ }
864
+
865
+ .ace-tm .ace_support.ace_function {
866
+ color: rgb(60, 76, 114);
867
+ }
868
+
869
+ .ace-tm .ace_support.ace_constant {
870
+ color: rgb(6, 150, 14);
871
+ }
872
+
873
+ .ace-tm .ace_support.ace_type,
874
+ .ace-tm .ace_support.ace_class {
875
+ color: rgb(109, 121, 222);
876
+ }
877
+
878
+ .ace-tm .ace_keyword.ace_operator {
879
+ color: rgb(104, 118, 135);
880
+ }
881
+
882
+ .ace-tm .ace_string {
883
+ color: rgb(3, 106, 7);
884
+ }
885
+
886
+ .ace-tm .ace_comment {
887
+ color: rgb(76, 136, 107);
888
+ }
889
+
890
+ .ace-tm .ace_comment.ace_doc {
891
+ color: rgb(0, 102, 255);
892
+ }
893
+
894
+ .ace-tm .ace_comment.ace_doc.ace_tag {
895
+ color: rgb(128, 159, 191);
896
+ }
897
+
898
+ .ace-tm .ace_constant.ace_numeric {
899
+ color: rgb(0, 0, 205);
900
+ }
901
+
902
+ .ace-tm .ace_variable {
903
+ color: rgb(49, 132, 149);
904
+ }
905
+
906
+ .ace-tm .ace_xml-pe {
907
+ color: rgb(104, 104, 91);
908
+ }
909
+
910
+ .ace-tm .ace_entity.ace_name.ace_function {
911
+ color: #0000A2;
912
+ }
913
+
914
+
915
+ .ace-tm .ace_heading {
916
+ color: rgb(12, 7, 255);
917
+ }
918
+
919
+ .ace-tm .ace_list {
920
+ color:rgb(185, 6, 144);
921
+ }
922
+
923
+ .ace-tm .ace_meta.ace_tag {
924
+ color:rgb(0, 22, 142);
925
+ }
926
+
927
+ .ace-tm .ace_string.ace_regex {
928
+ color: rgb(255, 0, 0)
929
+ }
930
+
931
+ .ace-tm .ace_marker-layer .ace_selection {
932
+ background: rgb(181, 213, 255);
933
+ }
934
+ .ace-tm.ace_multiselect .ace_selection.ace_start {
935
+ box-shadow: 0 0 3px 0px white;
936
+ }
937
+ .ace-tm .ace_marker-layer .ace_step {
938
+ background: rgb(252, 255, 0);
939
+ }
940
+
941
+ .ace-tm .ace_marker-layer .ace_stack {
942
+ background: rgb(164, 229, 101);
943
+ }
944
+
945
+ .ace-tm .ace_marker-layer .ace_bracket {
946
+ margin: -1px 0 0 -1px;
947
+ border: 1px solid rgb(192, 192, 192);
948
+ }
949
+
950
+ .ace-tm .ace_marker-layer .ace_active-line {
951
+ background: rgba(0, 0, 0, 0.07);
952
+ }
953
+
954
+ .ace-tm .ace_gutter-active-line {
955
+ background-color : #dcdcdc;
956
+ }
957
+
958
+ .ace-tm .ace_marker-layer .ace_selected-word {
959
+ background: rgb(250, 250, 255);
960
+ border: 1px solid rgb(200, 200, 250);
961
+ }
962
+
963
+ .ace-tm .ace_indent-guide {
964
+ background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
965
+ }
966
+
967
+ .ace-tm .ace_indent-guide-active {
968
+ background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
969
+ }
970
+ `}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(n,r,l){r.isDark=!1,r.cssClass="ace-tm",r.cssText=n("./textmate-css"),r.$id="ace/theme/textmate";var a=n("../lib/dom");a.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 a=n("./lib/lang"),d=n("./lib/net"),p=n("./lib/dom"),o=n("./lib/app_config").AppConfig;l.exports=r=new o;var g={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};r.get=function(u){if(!g.hasOwnProperty(u))throw new Error("Unknown config key: "+u);return g[u]},r.set=function(u,h){if(g.hasOwnProperty(u))g[u]=h;else if(this.setDefaultValue("",u,h)==!1)throw new Error("Unknown config key: "+u);u=="useStrictCSP"&&p.useStrictCSP(h)},r.all=function(){return a.copyObject(g)},r.$modes={},r.moduleUrl=function(u,h){if(g.$moduleUrls[u])return g.$moduleUrls[u];var f=u.split("/");h=h||f[f.length-2]||"";var m=h=="snippets"?"/":"-",v=f[f.length-1];if(h=="worker"&&m=="-"){var y=new RegExp("^"+h+"[\\-_]|[\\-_]"+h+"$","g");v=v.replace(y,"")}(!v||v==h)&&f.length>1&&(v=f[f.length-2]);var C=g[h+"Path"];return C==null?C=g.basePath:m=="/"&&(h=m=""),C&&C.slice(-1)!="/"&&(C+="/"),C+h+m+v+this.get("suffix")},r.setModuleUrl=function(u,h){return g.$moduleUrls[u]=h};var i=function(u,h){if(u==="ace/theme/textmate"||u==="./theme/textmate")return h(null,n("./theme/textmate"));if(s)return s(u,h);console.error("loader is not configured")},s;r.setLoader=function(u){s=u},r.dynamicModules=Object.create(null),r.$loading={},r.$loaded={},r.loadModule=function(u,h){var f;if(Array.isArray(u))var m=u[0],v=u[1];else if(typeof u=="string")var v=u;var y=function(C){if(C&&!r.$loading[v])return h&&h(C);if(r.$loading[v]||(r.$loading[v]=[]),r.$loading[v].push(h),!(r.$loading[v].length>1)){var $=function(){i(v,function(_,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 $();d.loadScript(r.moduleUrl(v,m),$),c()}};if(r.dynamicModules[v])r.dynamicModules[v]().then(function(C){C.default?y(C.default):y(C)});else{try{f=this.$require(v)}catch{}y(f||r.$loaded[v])}},r.$require=function(u){if(typeof l.require=="function"){var h="require";return l[h](u)}},r.setModuleLoader=function(u,h){r.dynamicModules[u]=h};var c=function(){!g.basePath&&!g.workerPath&&!g.modePath&&!g.themePath&&!Object.keys(g.$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 a=n("./config");a.setLoader(function(g,i){n([g],function(s){i(null,s)})});var d=function(){return this||typeof window<"u"&&window}();l.exports=function(g){a.init=p,a.$require=n,g.require=n},p(!0);function p(g){if(!(!d||!d.document)){a.set("packaged",g||n.packaged||l.packaged||d.define&&(void 0).packaged);var i={},s="",c=document.currentScript||document._currentScript,u=c&&c.ownerDocument||document;c&&c.src&&(s=c.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var h=u.getElementsByTagName("script"),f=0;f<h.length;f++){var m=h[f],v=m.src||m.getAttribute("src");if(v){for(var y=m.attributes,C=0,$=y.length;C<$;C++){var _=y[C];_.name.indexOf("data-ace-")===0&&(i[o(_.name.replace(/^data-ace-/,""))]=_.value)}var b=v.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);b&&(s=b[1])}}s&&(i.base=i.base||s,i.packaged=!0),i.basePath=i.base,i.workerPath=i.workerPath||i.base,i.modePath=i.modePath||i.base,i.themePath=i.themePath||i.base,delete i.base;for(var E in i)typeof i[E]<"u"&&a.set(E,i[E])}}function o(g){return g.replace(/-(.)/g,function(i,s){return s.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(n,r,l){var a=function(){function d(p,o,g,i){this.start={row:p,column:o},this.end={row:g,column:i}}return d.prototype.isEqual=function(p){return this.start.row===p.start.row&&this.end.row===p.end.row&&this.start.column===p.start.column&&this.end.column===p.end.column},d.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},d.prototype.contains=function(p,o){return this.compare(p,o)==0},d.prototype.compareRange=function(p){var o,g=p.end,i=p.start;return o=this.compare(g.row,g.column),o==1?(o=this.compare(i.row,i.column),o==1?2:o==0?1:0):o==-1?-2:(o=this.compare(i.row,i.column),o==-1?-1:o==1?42:0)},d.prototype.comparePoint=function(p){return this.compare(p.row,p.column)},d.prototype.containsRange=function(p){return this.comparePoint(p.start)==0&&this.comparePoint(p.end)==0},d.prototype.intersects=function(p){var o=this.compareRange(p);return o==-1||o==0||o==1},d.prototype.isEnd=function(p,o){return this.end.row==p&&this.end.column==o},d.prototype.isStart=function(p,o){return this.start.row==p&&this.start.column==o},d.prototype.setStart=function(p,o){typeof p=="object"?(this.start.column=p.column,this.start.row=p.row):(this.start.row=p,this.start.column=o)},d.prototype.setEnd=function(p,o){typeof p=="object"?(this.end.column=p.column,this.end.row=p.row):(this.end.row=p,this.end.column=o)},d.prototype.inside=function(p,o){return this.compare(p,o)==0?!(this.isEnd(p,o)||this.isStart(p,o)):!1},d.prototype.insideStart=function(p,o){return this.compare(p,o)==0?!this.isEnd(p,o):!1},d.prototype.insideEnd=function(p,o){return this.compare(p,o)==0?!this.isStart(p,o):!1},d.prototype.compare=function(p,o){return!this.isMultiLine()&&p===this.start.row?o<this.start.column?-1:o>this.end.column?1:0:p<this.start.row?-1:p>this.end.row?1:this.start.row===p?o>=this.start.column?0:-1:this.end.row===p?o<=this.end.column?0:1:0},d.prototype.compareStart=function(p,o){return this.start.row==p&&this.start.column==o?-1:this.compare(p,o)},d.prototype.compareEnd=function(p,o){return this.end.row==p&&this.end.column==o?1:this.compare(p,o)},d.prototype.compareInside=function(p,o){return this.end.row==p&&this.end.column==o?1:this.start.row==p&&this.start.column==o?-1:this.compare(p,o)},d.prototype.clipRows=function(p,o){if(this.end.row>o)var g={row:o+1,column:0};else if(this.end.row<p)var g={row:p,column:0};if(this.start.row>o)var i={row:o+1,column:0};else if(this.start.row<p)var i={row:p,column:0};return d.fromPoints(i||this.start,g||this.end)},d.prototype.extend=function(p,o){var g=this.compare(p,o);if(g==0)return this;if(g==-1)var i={row:p,column:o};else var s={row:p,column:o};return d.fromPoints(i||this.start,s||this.end)},d.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},d.prototype.isMultiLine=function(){return this.start.row!==this.end.row},d.prototype.clone=function(){return d.fromPoints(this.start,this.end)},d.prototype.collapseRows=function(){return this.end.column==0?new d(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new d(this.start.row,0,this.end.row,0)},d.prototype.toScreenRange=function(p){var o=p.documentToScreenPosition(this.start),g=p.documentToScreenPosition(this.end);return new d(o.row,o.column,g.row,g.column)},d.prototype.moveBy=function(p,o){this.start.row+=p,this.start.column+=o,this.end.row+=p,this.end.column+=o},d}();a.fromPoints=function(d,p){return new a(d.row,d.column,p.row,p.column)},a.comparePoints=function(d,p){return d.row-p.row||d.column-p.column},r.Range=a}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(n,r,l){/*! @license
971
+ ==========================================================================
972
+ SproutCore -- JavaScript Application Framework
973
+ copyright 2006-2009, Sprout Systems Inc., Apple Inc. and contributors.
974
+
975
+ Permission is hereby granted, free of charge, to any person obtaining a
976
+ copy of this software and associated documentation files (the "Software"),
977
+ to deal in the Software without restriction, including without limitation
978
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
979
+ and/or sell copies of the Software, and to permit persons to whom the
980
+ Software is furnished to do so, subject to the following conditions:
981
+
982
+ The above copyright notice and this permission notice shall be included in
983
+ all copies or substantial portions of the Software.
984
+
985
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
986
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
987
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
988
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
989
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
990
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
991
+ DEALINGS IN THE SOFTWARE.
992
+
993
+ SproutCore and the SproutCore logo are trademarks of Sprout Systems, Inc.
994
+
995
+ For more information about SproutCore, visit http://www.sproutcore.com
996
+
997
+
998
+ ==========================================================================
999
+ @license */var a=n("./oop"),d=function(){var p={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:"*"}};p.PRINTABLE_KEYS[173]="-";var o,g;for(g in p.FUNCTION_KEYS)o=p.FUNCTION_KEYS[g].toLowerCase(),p[o]=parseInt(g,10);for(g in p.PRINTABLE_KEYS)o=p.PRINTABLE_KEYS[g].toLowerCase(),p[o]=parseInt(g,10);return a.mixin(p,p.MODIFIER_KEYS),a.mixin(p,p.PRINTABLE_KEYS),a.mixin(p,p.FUNCTION_KEYS),p.enter=p.return,p.escape=p.esc,p.del=p.delete,function(){for(var i=["cmd","ctrl","alt","shift"],s=Math.pow(2,i.length);s--;)p.KEY_MODS[s]=i.filter(function(c){return s&p.KEY_MODS[c]}).join("-")+"-"}(),p.KEY_MODS[0]="",p.KEY_MODS[-1]="input-",p}();a.mixin(r,d),r.default=r,r.keyCodeToString=function(p){var o=d[p];return typeof o!="string"&&(o=String.fromCharCode(p)),o.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(n,r,l){var a=n("./keys"),d=n("./useragent"),p=null,o=0,g;function i(){g=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return g={passive:!1},!0}})}catch{}}function s(){return g==null&&i(),g}function c(C,$,_){this.elem=C,this.type=$,this.callback=_}c.prototype.destroy=function(){h(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var u=r.addListener=function(C,$,_,b){C.addEventListener($,_,s()),b&&b.$toDestroy.push(new c(C,$,_))},h=r.removeListener=function(C,$,_){C.removeEventListener($,_,s())};r.stopEvent=function(C){return r.stopPropagation(C),r.preventDefault(C),!1},r.stopPropagation=function(C){C.stopPropagation&&C.stopPropagation()},r.preventDefault=function(C){C.preventDefault&&C.preventDefault()},r.getButton=function(C){return C.type=="dblclick"?0:C.type=="contextmenu"||d.isMac&&C.ctrlKey&&!C.altKey&&!C.shiftKey?2:C.button},r.capture=function(C,$,_){var b=C&&C.ownerDocument||document;function E(L){$&&$(L),_&&_(L),h(b,"mousemove",$),h(b,"mouseup",E),h(b,"dragstart",E)}return u(b,"mousemove",$),u(b,"mouseup",E),u(b,"dragstart",E),E},r.addMouseWheelListener=function(C,$,_){u(C,"wheel",function(b){var E=.15,L=b.deltaX||0,k=b.deltaY||0;switch(b.deltaMode){case b.DOM_DELTA_PIXEL:b.wheelX=L*E,b.wheelY=k*E;break;case b.DOM_DELTA_LINE:var M=15;b.wheelX=L*M,b.wheelY=k*M;break;case b.DOM_DELTA_PAGE:var A=150;b.wheelX=L*A,b.wheelY=k*A;break}$(b)},_)},r.addMultiMouseDownListener=function(C,$,_,b,E){var L=0,k,M,A,R={2:"dblclick",3:"tripleclick",4:"quadclick"};function S(w){if(r.getButton(w)!==0?L=0:w.detail>1?(L++,L>4&&(L=1)):L=1,d.isIE){var x=Math.abs(w.clientX-k)>5||Math.abs(w.clientY-M)>5;(!A||x)&&(L=1),A&&clearTimeout(A),A=setTimeout(function(){A=null},$[L-1]||600),L==1&&(k=w.clientX,M=w.clientY)}if(w._clicks=L,_[b]("mousedown",w),L>4)L=0;else if(L>1)return _[b](R[L],w)}Array.isArray(C)||(C=[C]),C.forEach(function(w){u(w,"mousedown",S,E)})};function f(C){return 0|(C.ctrlKey?1:0)|(C.altKey?2:0)|(C.shiftKey?4:0)|(C.metaKey?8:0)}r.getModifierString=function(C){return a.KEY_MODS[f(C)]};function m(C,$,_){var b=f($);if(!d.isMac&&p){if($.getModifierState&&($.getModifierState("OS")||$.getModifierState("Win"))&&(b|=8),p.altGr)if((3&b)!=3)p.altGr=0;else return;if(_===18||_===17){var E=$.location;if(_===17&&E===1)p[_]==1&&(o=$.timeStamp);else if(_===18&&b===3&&E===2){var L=$.timeStamp-o;L<50&&(p.altGr=!0)}}}if(_ in a.MODIFIER_KEYS&&(_=-1),!(!b&&_===13&&$.location===3&&(C($,b,-_),$.defaultPrevented))){if(d.isChromeOS&&b&8){if(C($,b,_),$.defaultPrevented)return;b&=-9}return!b&&!(_ in a.FUNCTION_KEYS)&&!(_ in a.PRINTABLE_KEYS)?!1:C($,b,_)}}r.addCommandKeyListener=function(C,$,_){var b=null;u(C,"keydown",function(E){p[E.keyCode]=(p[E.keyCode]||0)+1;var L=m($,E,E.keyCode);return b=E.defaultPrevented,L},_),u(C,"keypress",function(E){b&&(E.ctrlKey||E.altKey||E.shiftKey||E.metaKey)&&(r.stopEvent(E),b=null)},_),u(C,"keyup",function(E){p[E.keyCode]=null},_),p||(v(),u(window,"focus",v))};function v(){p=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!d.isOldIE){var y=1;r.nextTick=function(C,$){$=$||window;var _="zero-timeout-message-"+y++,b=function(E){E.data==_&&(r.stopPropagation(E),h($,"message",b),C())};u($,"message",b),$.postMessage(_,"*")}}r.$idleBlocked=!1,r.onIdle=function(C,$){return setTimeout(function _(){r.$idleBlocked?setTimeout(_,100):C()},$)},r.$idleBlockId=null,r.blockIdle=function(C){r.$idleBlockId&&clearTimeout(r.$idleBlockId),r.$idleBlocked=!0,r.$idleBlockId=setTimeout(function(){r.$idleBlocked=!1},C||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(C){setTimeout(C,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(n,r,l){var a;l.exports={lineMode:!1,pasteCancelled:function(){return a&&a>Date.now()-50?!0:a=!1},cancel:function(){a=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 a=n("../lib/event"),d=n("../config").nls,p=n("../lib/useragent"),o=n("../lib/dom"),g=n("../lib/lang"),i=n("../clipboard"),s=p.isChrome<18,c=p.isIE,u=p.isChrome>63,h=400,f=n("../lib/keys"),m=f.KEY_MODS,v=p.isIOS,y=v?/\s/:/\n/,C=p.isMobile,$;$=function(_,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",_.insertBefore(E,_.firstChild);var L=!1,k=!1,M=!1,A=!1,R="";C||(E.style.fontSize="1px");var S=!1,w=!1,x="",T=0,O=0,I=0,N=Number.MAX_SAFE_INTEGER,P=Number.MIN_SAFE_INTEGER,H=0;try{var V=document.activeElement===E}catch{}this.setNumberOfExtraLines=function(X){if(N=Number.MAX_SAFE_INTEGER,P=Number.MIN_SAFE_INTEGER,X<0){H=0;return}H=X},this.setAriaOptions=function(X){if(X.activeDescendant?(E.setAttribute("aria-haspopup","true"),E.setAttribute("aria-autocomplete",X.inline?"both":"list"),E.setAttribute("aria-activedescendant",X.activeDescendant)):(E.setAttribute("aria-haspopup","false"),E.setAttribute("aria-autocomplete","both"),E.removeAttribute("aria-activedescendant")),X.role&&E.setAttribute("role",X.role),X.setLabel&&(E.setAttribute("aria-roledescription",d("editor")),b.session)){var oe=b.session.selection.cursor.row;E.setAttribute("aria-label",d("Cursor at row $0",[oe+1]))}},this.setAriaOptions({role:"textbox"}),a.addListener(E,"blur",function(X){w||(b.onBlur(X),V=!1)},b),a.addListener(E,"focus",function(X){if(!w){if(V=!0,p.isEdge)try{if(!document.hasFocus())return}catch{}b.onFocus(X),p.isEdge?setTimeout(W):W()}},b),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:b.renderer.enableKeyboardAccessibility}),R||u||this.$focusScroll=="browser")return E.focus({preventScroll:!0});var X=E.style.top;E.style.position="fixed",E.style.top="0px";try{var oe=E.getBoundingClientRect().top!=0}catch{return}var de=[];if(oe)for(var _e=E.parentElement;_e&&_e.nodeType==1;)de.push(_e),_e.setAttribute("ace_nocontext","true"),!_e.parentElement&&_e.getRootNode?_e=_e.getRootNode().host:_e=_e.parentElement;E.focus({preventScroll:!0}),oe&&de.forEach(function(Oe){Oe.removeAttribute("ace_nocontext")}),setTimeout(function(){E.style.position="",E.style.top=="0px"&&(E.style.top=X)},0)},this.blur=function(){E.blur()},this.isFocused=function(){return V},b.on("beforeEndOperation",function(){var X=b.curOp,oe=X&&X.command&&X.command.name;if(oe!="insertstring"){var de=oe&&(X.docChanged||X.selectionChanged);M&&de&&(x=E.value="",le()),W()}});var U=function(X,oe){for(var de=oe,_e=1;_e<=X-N&&_e<2*H+1;_e++)de+=b.session.getLine(X-_e).length+1;return de},W=v?function(X){if(!(!V||L&&!X||A)){X||(X="");var oe=`
1000
+ ab`+X+`cde fg
1001
+ `;oe!=E.value&&(E.value=x=oe);var de=4,_e=4+(X.length||(b.selection.isEmpty()?0:1));(T!=de||O!=_e)&&E.setSelectionRange(de,_e),T=de,O=_e}}:function(){if(!(M||A)&&!(!V&&!Z)){M=!0;var X=0,oe=0,de="";if(b.session){var _e=b.selection,Oe=_e.getRange(),He=_e.cursor.row;He===P+1?(N=P+1,P=N+2*H):He===N-1?(P=N-1,N=P-2*H):(He<N-1||He>P+1)&&(N=He>H?He-H:0,P=He>H?He+H:2*H);for(var qe=[],Je=N;Je<=P;Je++)qe.push(b.session.getLine(Je));if(de=qe.join(`
1002
+ `),X=U(Oe.start.row,Oe.start.column),oe=U(Oe.end.row,Oe.end.column),Oe.start.row<N){var Ye=b.session.getLine(N-1);X=Oe.start.row<N-1?0:X,oe+=Ye.length+1,de=Ye+`
1003
+ `+de}else if(Oe.end.row>P){var Ve=b.session.getLine(P+1);oe=Oe.end.row>P+1?Ve.length:Oe.end.column,oe+=de.length+1,de=de+`
1004
+ `+Ve}else C&&He>0&&(de=`
1005
+ `+de,oe+=1,X+=1);de.length>h&&(X<h&&oe<h?de=de.slice(0,h):(de=`
1006
+ `,X==oe?X=oe=0:(X=0,oe=1)));var Xe=de+`
1007
+
1008
+ `;Xe!=x&&(E.value=x=Xe,T=O=Xe.length)}if(Z&&(T=E.selectionStart,O=E.selectionEnd),O!=oe||T!=X||E.selectionEnd!=O)try{E.setSelectionRange(X,oe),T=X,O=oe}catch{}M=!1}};this.resetSelection=W,V&&b.onFocus();var j=function(X){return X.selectionStart===0&&X.selectionEnd>=x.length&&X.value===x&&x&&X.selectionEnd!==O},q=function(X){M||(L?L=!1:j(E)?(b.selectAll(),W()):C&&E.selectionStart!=T&&W())},z=null;this.setInputHandler=function(X){z=X},this.getInputHandler=function(){return z};var Z=!1,K=function(X,oe){if(Z&&(Z=!1),k)return W(),X&&b.onPaste(X),k=!1,"";for(var de=E.selectionStart,_e=E.selectionEnd,Oe=T,He=x.length-O,qe=X,Je=X.length-de,Ye=X.length-_e,Ve=0;Oe>0&&x[Ve]==X[Ve];)Ve++,Oe--;for(qe=qe.slice(Ve),Ve=1;He>0&&x.length-Ve>T-1&&x[x.length-Ve]==X[X.length-Ve];)Ve++,He--;Je-=Ve-1,Ye-=Ve-1;var Xe=qe.length-Ve+1;if(Xe<0&&(Oe=-Xe,Xe=0),qe=qe.slice(0,Xe),!oe&&!qe&&!Je&&!Oe&&!He&&!Ye)return"";A=!0;var yt=!1;return p.isAndroid&&qe==". "&&(qe=" ",yt=!0),qe&&!Oe&&!He&&!Je&&!Ye||S?b.onTextInput(qe):b.onTextInput(qe,{extendLeft:Oe,extendRight:He,restoreStart:Je,restoreEnd:Ye}),A=!1,x=X,T=de,O=_e,I=Ye,yt?`
1009
+ `:qe},Q=function(X){if(M)return J();if(X&&X.inputType){if(X.inputType=="historyUndo")return b.execCommand("undo");if(X.inputType=="historyRedo")return b.execCommand("redo")}var oe=E.value,de=K(oe,!0);(oe.length>h+100||y.test(de)||C&&T<1&&T==O)&&W()},he=function(X,oe,de){var _e=X.clipboardData||window.clipboardData;if(!(!_e||s)){var Oe=c||de?"Text":"text/plain";try{return oe?_e.setData(Oe,oe)!==!1:_e.getData(Oe)}catch(He){if(!de)return he(He,oe,!0)}}},Ae=function(X,oe){var de=b.getCopyText();if(!de)return a.preventDefault(X);he(X,de)?(v&&(W(de),L=de,setTimeout(function(){L=!1},10)),oe?b.onCut():b.onCopy(),a.preventDefault(X)):(L=!0,E.value=de,E.select(),setTimeout(function(){L=!1,W(),oe?b.onCut():b.onCopy()}))},F=function(X){Ae(X,!0)},B=function(X){Ae(X,!1)},Y=function(X){var oe=he(X);i.pasteCancelled()||(typeof oe=="string"?(oe&&b.onPaste(oe,X),p.isIE&&setTimeout(W),a.preventDefault(X)):(E.value="",k=!0))};a.addCommandKeyListener(E,function(X,oe,de){if(!M)return b.onCommandKey(X,oe,de)},b),a.addListener(E,"select",q,b),a.addListener(E,"input",Q,b),a.addListener(E,"cut",F,b),a.addListener(E,"copy",B,b),a.addListener(E,"paste",Y,b),(!("oncut"in E)||!("oncopy"in E)||!("onpaste"in E))&&a.addListener(_,"keydown",function(X){if(!(p.isMac&&!X.metaKey||!X.ctrlKey))switch(X.keyCode){case 67:B(X);break;case 86:Y(X);break;case 88:F(X);break}},b);var ee=function(X){if(!(M||!b.onCompositionStart||b.$readOnly)&&(M={},!S)){X.data&&(M.useTextareaForIME=!1),setTimeout(J,0),b._signal("compositionStart"),b.on("mousedown",pe);var oe=b.getSelectionRange();oe.end.row=oe.start.row,oe.end.column=oe.start.column,M.markerRange=oe,M.selectionStart=T,b.onCompositionStart(M),M.useTextareaForIME?(x=E.value="",T=0,O=0):(E.msGetInputContext&&(M.context=E.msGetInputContext()),E.getInputContext&&(M.context=E.getInputContext()))}},J=function(){if(!(!M||!b.onCompositionUpdate||b.$readOnly)){if(S)return pe();if(M.useTextareaForIME)b.onCompositionUpdate(E.value);else{var X=E.value;K(X),M.markerRange&&(M.context&&(M.markerRange.start.column=M.selectionStart=M.context.compositionStartOffset),M.markerRange.end.column=M.markerRange.start.column+O-M.selectionStart+I)}}},le=function(X){!b.onCompositionEnd||b.$readOnly||(M=!1,b.onCompositionEnd(),b.off("mousedown",pe),X&&Q())};function pe(){w=!0,E.blur(),E.focus(),w=!1}var ce=g.delayedCall(J,50).schedule.bind(null,null);function fe(X){X.keyCode==27&&E.value.length<E.selectionStart&&(M||(x=E.value),T=O=-1,W()),ce()}a.addListener(E,"compositionstart",ee,b),a.addListener(E,"compositionupdate",J,b),a.addListener(E,"keyup",fe,b),a.addListener(E,"keydown",ce,b),a.addListener(E,"compositionend",le,b),this.getElement=function(){return E},this.setCommandMode=function(X){S=X,E.readOnly=!1},this.setReadOnly=function(X){S||(E.readOnly=X)},this.setCopyWithEmptySelection=function(X){},this.onContextMenu=function(X){Z=!0,W(),b._emit("nativecontextmenu",{target:b,domEvent:X}),this.moveToMouse(X,!0)},this.moveToMouse=function(X,oe){R||(R=E.style.cssText),E.style.cssText=(oe?"z-index:100000;":"")+(p.isIE?"opacity:0.1;":"")+"text-indent: -"+(T+O)*b.renderer.characterWidth*.5+"px;";var de=b.container.getBoundingClientRect(),_e=o.computedStyle(b.container),Oe=de.top+(parseInt(_e.borderTopWidth)||0),He=de.left+(parseInt(de.borderLeftWidth)||0),qe=de.bottom-Oe-E.clientHeight-2,Je=function(Ye){o.translate(E,Ye.clientX-He-2,Math.min(Ye.clientY-Oe-2,qe))};Je(X),X.type=="mousedown"&&(b.renderer.$isMousePressed=!0,clearTimeout(se),p.isWin&&a.capture(b.container,Je,me))},this.onContextMenuClose=me;var se;function me(){clearTimeout(se),se=setTimeout(function(){R&&(E.style.cssText=R,R=""),b.renderer.$isMousePressed=!1,b.renderer.$keepTextAreaAtCursor&&b.renderer.$moveTextAreaToCursor()},0)}var xe=function(X){b.textInput.onContextMenu(X),me()};a.addListener(E,"mouseup",xe,b),a.addListener(E,"mousedown",function(X){X.preventDefault(),me()},b),a.addListener(b.renderer.scroller,"contextmenu",xe,b),a.addListener(E,"contextmenu",xe,b),v&&ke(_,b,E);function ke(X,oe,de){var _e=null,Oe=!1;de.addEventListener("keydown",function(qe){_e&&clearTimeout(_e),Oe=!0},!0),de.addEventListener("keyup",function(qe){_e=setTimeout(function(){Oe=!1},100)},!0);var He=function(qe){if(document.activeElement===de&&!(Oe||M||oe.$mouseHandler.isMousePressed)&&!L){var Je=de.selectionStart,Ye=de.selectionEnd,Ve=null,Xe=0;if(Je==0?Ve=f.up:Je==1?Ve=f.home:Ye>O&&x[Ye]==`
1010
+ `?Ve=f.end:Je<T&&x[Je-1]==" "?(Ve=f.left,Xe=m.option):Je<T||Je==T&&O!=T&&Je==Ye?Ve=f.left:Ye>O&&x.slice(0,Ye).split(`
1011
+ `).length>2?Ve=f.down:Ye>O&&x[Ye-1]==" "?(Ve=f.right,Xe=m.option):(Ye>O||Ye==O&&O!=T&&Je==Ye)&&(Ve=f.right),Je!==Ye&&(Xe|=m.shift),Ve){var yt=oe.onCommandKey({},Xe,Ve);if(!yt&&oe.commands){Ve=f.keyCodeToString(Ve);var Dr=oe.commands.findKeyCommand(Xe,Ve);Dr&&oe.execCommand(Dr)}T=Je,O=Ye,W("")}}};document.addEventListener("selectionchange",He),oe.on("destroy",function(){document.removeEventListener("selectionchange",He)})}this.destroy=function(){E.parentElement&&E.parentElement.removeChild(E)}},r.TextInput=$,r.$setUserAgentForTests=function(_,b){C=_,v=b}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(n,r,l){var a=n("../lib/useragent"),d=0,p=550,o=function(){function s(c){c.$clickSelection=null;var u=c.editor;u.setDefaultHandler("mousedown",this.onMouseDown.bind(c)),u.setDefaultHandler("dblclick",this.onDoubleClick.bind(c)),u.setDefaultHandler("tripleclick",this.onTripleClick.bind(c)),u.setDefaultHandler("quadclick",this.onQuadClick.bind(c)),u.setDefaultHandler("mousewheel",this.onMouseWheel.bind(c));var h=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];h.forEach(function(f){c[f]=this[f]},this),c.selectByLines=this.extendSelectionBy.bind(c,"getLineRange"),c.selectByWords=this.extendSelectionBy.bind(c,"getWordRange")}return s.prototype.onMouseDown=function(c){var u=c.inSelection(),h=c.getDocumentPosition();this.mousedownEvent=c;var f=this.editor,m=c.getButton();if(m!==0){var v=f.getSelectionRange(),y=v.isEmpty();(y||m==1)&&f.selection.moveToPosition(h),m==2&&(f.textInput.onContextMenu(c.domEvent),a.isMozilla||c.preventDefault());return}if(this.mousedownEvent.time=Date.now(),u&&!f.isFocused()&&(f.focus(),this.$focusTimeout&&!this.$clickSelection&&!f.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(c);return}return this.captureMouse(c),this.startSelect(h,c.domEvent._clicks>1),c.preventDefault()},s.prototype.startSelect=function(c,u){c=c||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var h=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?h.selection.selectToPosition(c):u||h.selection.moveToPosition(c),u||this.select(),h.setStyle("ace_selecting"),this.setState("select"))},s.prototype.select=function(){var c,u=this.editor,h=u.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var f=this.$clickSelection.comparePoint(h);if(f==-1)c=this.$clickSelection.end;else if(f==1)c=this.$clickSelection.start;else{var m=i(this.$clickSelection,h);h=m.cursor,c=m.anchor}u.selection.setSelectionAnchor(c.row,c.column)}u.selection.selectToPosition(h),u.renderer.scrollCursorIntoView()},s.prototype.extendSelectionBy=function(c){var u,h=this.editor,f=h.renderer.screenToTextCoordinates(this.x,this.y),m=h.selection[c](f.row,f.column);if(this.$clickSelection){var v=this.$clickSelection.comparePoint(m.start),y=this.$clickSelection.comparePoint(m.end);if(v==-1&&y<=0)u=this.$clickSelection.end,(m.end.row!=f.row||m.end.column!=f.column)&&(f=m.start);else if(y==1&&v>=0)u=this.$clickSelection.start,(m.start.row!=f.row||m.start.column!=f.column)&&(f=m.end);else if(v==-1&&y==1)f=m.end,u=m.start;else{var C=i(this.$clickSelection,f);f=C.cursor,u=C.anchor}h.selection.setSelectionAnchor(u.row,u.column)}h.selection.selectToPosition(f),h.renderer.scrollCursorIntoView()},s.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},s.prototype.focusWait=function(){var c=g(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),u=Date.now();(c>d||u-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},s.prototype.onDoubleClick=function(c){var u=c.getDocumentPosition(),h=this.editor,f=h.session,m=f.getBracketRange(u);m?(m.isEmpty()&&(m.start.column--,m.end.column++),this.setState("select")):(m=h.selection.getWordRange(u.row,u.column),this.setState("selectByWords")),this.$clickSelection=m,this.select()},s.prototype.onTripleClick=function(c){var u=c.getDocumentPosition(),h=this.editor;this.setState("selectByLines");var f=h.getSelectionRange();f.isMultiLine()&&f.contains(u.row,u.column)?(this.$clickSelection=h.selection.getLineRange(f.start.row),this.$clickSelection.end=h.selection.getLineRange(f.end.row).end):this.$clickSelection=h.selection.getLineRange(u.row),this.select()},s.prototype.onQuadClick=function(c){var u=this.editor;u.selectAll(),this.$clickSelection=u.getSelectionRange(),this.setState("selectAll")},s.prototype.onMouseWheel=function(c){if(!c.getAccelKey()){c.getShiftKey()&&c.wheelY&&!c.wheelX&&(c.wheelX=c.wheelY,c.wheelY=0);var u=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var h=this.$lastScroll,f=c.domEvent.timeStamp,m=f-h.t,v=m?c.wheelX/m:h.vx,y=m?c.wheelY/m:h.vy;m<p&&(v=(v+h.vx)/2,y=(y+h.vy)/2);var C=Math.abs(v/y),$=!1;if(C>=1&&u.renderer.isScrollableBy(c.wheelX*c.speed,0)&&($=!0),C<=1&&u.renderer.isScrollableBy(0,c.wheelY*c.speed)&&($=!0),$)h.allowed=f;else if(f-h.allowed<p){var _=Math.abs(v)<=1.5*Math.abs(h.vx)&&Math.abs(y)<=1.5*Math.abs(h.vy);_?($=!0,h.allowed=f):h.allowed=0}if(h.t=f,h.vx=v,h.vy=y,$)return u.renderer.scrollBy(c.wheelX*c.speed,c.wheelY*c.speed),c.stop()}},s}();o.prototype.selectEnd=o.prototype.selectByLinesEnd,o.prototype.selectAllEnd=o.prototype.selectByLinesEnd,o.prototype.selectByWordsEnd=o.prototype.selectByLinesEnd,r.DefaultHandlers=o;function g(s,c,u,h){return Math.sqrt(Math.pow(u-s,2)+Math.pow(h-c,2))}function i(s,c){if(s.start.row==s.end.row)var u=2*c.column-s.start.column-s.end.column;else if(s.start.row==s.end.row-1&&!s.start.column&&!s.end.column)var u=c.column-4;else var u=2*c.row-s.start.row-s.end.row;return u<0?{cursor:s.start,anchor:s.end}:{cursor:s.end,anchor:s.start}}}),ace.define("ace/lib/scroll",["require","exports","module"],function(n,r,l){r.preventParentScroll=function(d){d.stopPropagation();var p=d.currentTarget,o=p.scrollHeight>p.clientHeight;o||d.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(n,r,l){var a=this&&this.__extends||function(){var f=function(m,v){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,C){y.__proto__=C}||function(y,C){for(var $ in C)Object.prototype.hasOwnProperty.call(C,$)&&(y[$]=C[$])},f(m,v)};return function(m,v){if(typeof v!="function"&&v!==null)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");f(m,v);function y(){this.constructor=m}m.prototype=v===null?Object.create(v):(y.prototype=v.prototype,new y)}}(),d=this&&this.__values||function(f){var m=typeof Symbol=="function"&&Symbol.iterator,v=m&&f[m],y=0;if(v)return v.call(f);if(f&&typeof f.length=="number")return{next:function(){return f&&y>=f.length&&(f=void 0),{value:f&&f[y++],done:!f}}};throw new TypeError(m?"Object is not iterable.":"Symbol.iterator is not defined.")},p=n("./lib/dom");n("./lib/event");var o=n("./range").Range,g=n("./lib/scroll").preventParentScroll,i="ace_tooltip",s=function(){function f(m){this.isOpen=!1,this.$element=null,this.$parentNode=m}return f.prototype.$init=function(){return this.$element=p.createElement("div"),this.$element.className=i,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},f.prototype.getElement=function(){return this.$element||this.$init()},f.prototype.setText=function(m){this.getElement().textContent=m},f.prototype.setHtml=function(m){this.getElement().innerHTML=m},f.prototype.setPosition=function(m,v){this.getElement().style.left=m+"px",this.getElement().style.top=v+"px"},f.prototype.setClassName=function(m){p.addCssClass(this.getElement(),m)},f.prototype.setTheme=function(m){this.$element.className=i+" "+(m.isDark?"ace_dark ":"")+(m.cssClass||"")},f.prototype.show=function(m,v,y){m!=null&&this.setText(m),v!=null&&y!=null&&this.setPosition(v,y),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},f.prototype.hide=function(m){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=i,this.isOpen=!1)},f.prototype.getHeight=function(){return this.getElement().offsetHeight},f.prototype.getWidth=function(){return this.getElement().offsetWidth},f.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},f}(),c=function(){function f(){this.popups=[]}return f.prototype.addPopup=function(m){this.popups.push(m),this.updatePopups()},f.prototype.removePopup=function(m){var v=this.popups.indexOf(m);v!==-1&&(this.popups.splice(v,1),this.updatePopups())},f.prototype.updatePopups=function(){var m,v,y,C;this.popups.sort(function(R,S){return S.priority-R.priority});var $=[];try{for(var _=d(this.popups),b=_.next();!b.done;b=_.next()){var E=b.value,L=!0;try{for(var k=(y=void 0,d($)),M=k.next();!M.done;M=k.next()){var A=M.value;if(this.doPopupsOverlap(A,E)){L=!1;break}}}catch(R){y={error:R}}finally{try{M&&!M.done&&(C=k.return)&&C.call(k)}finally{if(y)throw y.error}}L?$.push(E):E.hide()}}catch(R){m={error:R}}finally{try{b&&!b.done&&(v=_.return)&&v.call(_)}finally{if(m)throw m.error}}},f.prototype.doPopupsOverlap=function(m,v){var y=m.getElement().getBoundingClientRect(),C=v.getElement().getBoundingClientRect();return y.left<C.right&&y.right>C.left&&y.top<C.bottom&&y.bottom>C.top},f}(),u=new c;r.popupManager=u,r.Tooltip=s;var h=function(f){a(m,f);function m(v){v===void 0&&(v=document.body);var y=f.call(this,v)||this;y.timeout=void 0,y.lastT=0,y.idleTime=350,y.lastEvent=void 0,y.onMouseOut=y.onMouseOut.bind(y),y.onMouseMove=y.onMouseMove.bind(y),y.waitForHover=y.waitForHover.bind(y),y.hide=y.hide.bind(y);var C=y.getElement();return C.style.whiteSpace="pre-wrap",C.style.pointerEvents="auto",C.addEventListener("mouseout",y.onMouseOut),C.tabIndex=-1,C.addEventListener("blur",(function(){C.contains(document.activeElement)||this.hide()}).bind(y)),C.addEventListener("wheel",g),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 C=y.$mouseHandler.isMousePressed;if(this.isOpen){var $=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains($.row,$.column)||C||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||C||(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,C=v.getDocumentPosition(),$=y.session.getLine(C.row);if(C.column==$.length){var _=y.renderer.pixelToScreenCoordinates(v.clientX,v.clientY),b=y.session.documentToScreenPosition(C.row,C.column);if(b.column!=_.column||b.row!=_.row)return!0}return!1},m.prototype.setDataProvider=function(v){this.$gatherData=v},m.prototype.showForRange=function(v,y,C,$){var _=10;if(!($&&$!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var b=v.renderer;this.isOpen||(u.addPopup(this),this.$registerCloseEvents(),this.setTheme(b.theme)),this.isOpen=!0,this.addMarker(y,v.session),this.range=o.fromPoints(y.start,y.end);var E=b.textToScreenCoordinates(y.start.row,y.start.column),L=b.scroller.getBoundingClientRect();E.pageX<L.left&&(E.pageX=L.left);var k=this.getElement();k.innerHTML="",k.appendChild(C),k.style.maxHeight="",k.style.display="block";var M=k.clientHeight,A=k.clientWidth,R=window.innerHeight-E.pageY-b.lineHeight,S=!0;E.pageY-M<0&&E.pageY<R&&(S=!1),k.style.maxHeight=(S?E.pageY:R)-_+"px",k.style.top=S?"":E.pageY+b.lineHeight+"px",k.style.bottom=S?window.innerHeight-E.pageY+"px":"",k.style.left=Math.min(E.pageX,window.innerWidth-A-_)+"px"}},m.prototype.addMarker=function(v,y){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=y,this.marker=y&&y.addMarker(v,"ace_highlight-marker","text")},m.prototype.hide=function(v){!v&&document.activeElement==this.getElement()||v&&v.target&&(v.type!="keydown"||v.ctrlKey||v.metaKey)&&this.$element.contains(v.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,u.removePopup(this)))},m.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("wheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},m.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("wheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},m.prototype.onMouseOut=function(v){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!v.relatedTarget||this.getElement().contains(v.relatedTarget)||v&&v.currentTarget.contains(v.relatedTarget)||v.relatedTarget.classList.contains("ace_content")||this.hide())},m}(s);r.HoverTooltip=h}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config"],function(n,r,l){var a=this&&this.__extends||function(){var u=function(h,f){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,v){m.__proto__=v}||function(m,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(m[y]=v[y])},u(h,f)};return function(h,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");u(h,f);function m(){this.constructor=h}h.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}}(),d=this&&this.__values||function(u){var h=typeof Symbol=="function"&&Symbol.iterator,f=h&&u[h],m=0;if(f)return f.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&m>=u.length&&(u=void 0),{value:u&&u[m++],done:!u}}};throw new TypeError(h?"Object is not iterable.":"Symbol.iterator is not defined.")},p=n("../lib/dom"),o=n("../lib/event"),g=n("../tooltip").Tooltip,i=n("../config").nls;function s(u){var h=u.editor,f=h.renderer.$gutterLayer,m=new c(h);u.editor.setDefaultHandler("guttermousedown",function(b){if(!(!h.isFocused()||b.getButton()!=0)){var E=f.getRegion(b);if(E!="foldWidgets"){var L=b.getDocumentPosition().row,k=h.session.selection;if(b.getShiftKey())k.selectTo(L,0);else{if(b.domEvent.detail==2)return h.selectAll(),b.preventDefault();u.$clickSelection=h.selection.getLineRange(L)}return u.setState("selectByLines"),u.captureMouse(b),b.preventDefault()}}});var v,y;function C(){var b=y.getDocumentPosition().row,E=h.session.getLength();if(b==E){var L=h.renderer.pixelToScreenCoordinates(0,y.y).row,k=y.$pos;if(L>h.session.documentToScreenRow(k.row,k.column))return $()}if(m.showTooltip(b),!!m.isOpen)if(h.on("mousewheel",$),u.$tooltipFollowsMouse)_(y);else{var M=y.getGutterRow(),A=f.$lines.get(M);if(A){var R=A.element.querySelector(".ace_gutter_annotation"),S=R.getBoundingClientRect(),w=m.getElement().style;w.left=S.right+"px",w.top=S.bottom+"px"}else _(y)}}function $(){v&&(v=clearTimeout(v)),m.isOpen&&(m.hideTooltip(),h.off("mousewheel",$))}function _(b){m.setPosition(b.x,b.y)}u.editor.setDefaultHandler("guttermousemove",function(b){var E=b.domEvent.target||b.domEvent.srcElement;if(p.hasCssClass(E,"ace_fold-widget"))return $();m.isOpen&&u.$tooltipFollowsMouse&&_(b),y=b,!v&&(v=setTimeout(function(){v=null,y&&!u.isMousePressed?C():$()},50))}),o.addListener(h.renderer.$gutter,"mouseout",function(b){y=null,!(!m.isOpen||v)&&(v=setTimeout(function(){v=null,$()},50))},h),h.on("changeSession",$),h.on("input",$)}r.GutterHandler=s;var c=function(u){a(h,u);function h(f){var m=u.call(this,f.container)||this;return m.editor=f,m}return h.prototype.setPosition=function(f,m){var v=window.innerWidth||document.documentElement.clientWidth,y=window.innerHeight||document.documentElement.clientHeight,C=this.getWidth(),$=this.getHeight();f+=15,m+=15,f+C>v&&(f-=f+C-v),m+$>y&&(m-=20+$),g.prototype.setPosition.call(this,f,m)},Object.defineProperty(h,"annotationLabels",{get:function(){return{error:{singular:i("error"),plural:i("errors")},warning:{singular:i("warning"),plural:i("warnings")},info:{singular:i("information message"),plural:i("information messages")}}},enumerable:!1,configurable:!0}),h.prototype.showTooltip=function(f){var m=this.editor.renderer.$gutterLayer,v=m.$annotations[f],y;v?y={text:Array.from(v.text),type:Array.from(v.type)}:y={text:[],type:[]};var C=m.session.getFoldLine(f);if(C&&m.$showFoldedAnnotations){for(var $={error:[],warning:[],info:[]},_,b=f+1;b<=C.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($[L].push(m.$annotations[b].text[E]),L==="error"){_="error_fold";continue}if(L==="warning"){_="warning_fold";continue}}if(_==="error_fold"||_==="warning_fold"){var k="".concat(h.annotationsToSummaryString($)," in folded code.");y.text.push(k),y.type.push(_)}}if(y.text.length===0)return this.hide();for(var M={error:[],warning:[],info:[]},A=m.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",b=0;b<y.text.length;b++){var R="<span class='ace_".concat(y.type[b]," ").concat(A,"' aria-label='").concat(h.annotationLabels[y.type[b].replace("_fold","")].singular,"' role=img> </span> ").concat(y.text[b]);M[y.type[b].replace("_fold","")].push(R)}var S=[].concat(M.error,M.warning,M.info).join("<br>");this.setHtml(S),this.$element.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip")),this.show(),this.editor._signal("showGutterTooltip",this)},h.prototype.hideTooltip=function(){this.$element.removeAttribute("aria-live"),this.hide(),this.editor._signal("hideGutterTooltip",this)},h.annotationsToSummaryString=function(f){var m,v,y=[],C=["error","warning","info"];try{for(var $=d(C),_=$.next();!_.done;_=$.next()){var b=_.value;if(f[b].length){var E=f[b].length===1?h.annotationLabels[b].singular:h.annotationLabels[b].plural;y.push("".concat(f[b].length," ").concat(E))}}}catch(L){m={error:L}}finally{try{_&&!_.done&&(v=$.return)&&v.call($)}finally{if(m)throw m.error}}return y.join(", ")},h}(g);r.GutterTooltip=c}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(n,r,l){var a=n("../lib/event"),d=n("../lib/useragent"),p=function(){function o(g,i){this.speed,this.wheelX,this.wheelY,this.domEvent=g,this.editor=i,this.x=this.clientX=g.clientX,this.y=this.clientY=g.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return o.prototype.stopPropagation=function(){a.stopPropagation(this.domEvent),this.propagationStopped=!0},o.prototype.preventDefault=function(){a.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 g=this.getDocumentPosition().row,i=this.editor.session.documentToScreenRow(g,0),s=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return i-s},o.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var g=this.editor,i=g.getSelectionRange();if(i.isEmpty())this.$inSelection=!1;else{var s=this.getDocumentPosition();this.$inSelection=i.contains(s.row,s.column)}return this.$inSelection},o.prototype.getButton=function(){return a.getButton(this.domEvent)},o.prototype.getShiftKey=function(){return this.domEvent.shiftKey},o.prototype.getAccelKey=function(){return d.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},o}();r.MouseEvent=p}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(n,r,l){var a=n("../lib/dom"),d=n("../lib/event"),p=n("../lib/useragent"),o=200,g=200,i=5;function s(u){var h=u.editor,f=a.createElement("div");f.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",f.textContent=" ";var m=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];m.forEach(function(U){u[U]=this[U]},this),h.on("mousedown",this.onMouseDown.bind(u));var v=h.container,y,C,$,_,b,E,L=0,k,M,A,R,S;this.onDragStart=function(U){if(this.cancelDrag||!v.draggable){var W=this;return setTimeout(function(){W.startSelect(),W.captureMouse(U)},0),U.preventDefault()}b=h.getSelectionRange();var j=U.dataTransfer;j.effectAllowed=h.getReadOnly()?"copy":"copyMove",h.container.appendChild(f),j.setDragImage&&j.setDragImage(f,0,0),setTimeout(function(){h.container.removeChild(f)}),j.clearData(),j.setData("Text",h.session.getTextRange()),M=!0,this.setState("drag")},this.onDragEnd=function(U){if(v.draggable=!1,M=!1,this.setState(null),!h.getReadOnly()){var W=U.dataTransfer.dropEffect;!k&&W=="move"&&h.session.remove(h.getSelectionRange()),h.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(U){if(!(h.getReadOnly()||!H(U.dataTransfer)))return C=U.clientX,$=U.clientY,y||O(),L++,U.dataTransfer.dropEffect=k=V(U),d.preventDefault(U)},this.onDragOver=function(U){if(!(h.getReadOnly()||!H(U.dataTransfer)))return C=U.clientX,$=U.clientY,y||(O(),L++),N!==null&&(N=null),U.dataTransfer.dropEffect=k=V(U),d.preventDefault(U)},this.onDragLeave=function(U){if(L--,L<=0&&y)return I(),k=null,d.preventDefault(U)},this.onDrop=function(U){if(E){var W=U.dataTransfer;if(M)switch(k){case"move":b.contains(E.row,E.column)?b={start:E,end:E}:b=h.moveText(b,E);break;case"copy":b=h.moveText(b,E,!0);break}else{var j=W.getData("Text");b={start:E,end:h.session.insert(E,j)},h.focus(),k=null}return I(),d.preventDefault(U)}},d.addListener(v,"dragstart",this.onDragStart.bind(u),h),d.addListener(v,"dragend",this.onDragEnd.bind(u),h),d.addListener(v,"dragenter",this.onDragEnter.bind(u),h),d.addListener(v,"dragover",this.onDragOver.bind(u),h),d.addListener(v,"dragleave",this.onDragLeave.bind(u),h),d.addListener(v,"drop",this.onDrop.bind(u),h);function w(U,W){var j=Date.now(),q=!W||U.row!=W.row,z=!W||U.column!=W.column;if(!R||q||z)h.moveCursorToPosition(U),R=j,S={x:C,y:$};else{var Z=c(S.x,S.y,C,$);Z>i?R=null:j-R>=g&&(h.renderer.scrollCursorIntoView(),R=null)}}function x(U,W){var j=Date.now(),q=h.renderer.layerConfig.lineHeight,z=h.renderer.layerConfig.characterWidth,Z=h.renderer.scroller.getBoundingClientRect(),K={x:{left:C-Z.left,right:Z.right-C},y:{top:$-Z.top,bottom:Z.bottom-$}},Q=Math.min(K.x.left,K.x.right),he=Math.min(K.y.top,K.y.bottom),Ae={row:U.row,column:U.column};Q/z<=2&&(Ae.column+=K.x.left<K.x.right?-3:2),he/q<=1&&(Ae.row+=K.y.top<K.y.bottom?-1:1);var F=U.row!=Ae.row,B=U.column!=Ae.column,Y=!W||U.row!=W.row;F||B&&!Y?A?j-A>=o&&h.renderer.scrollCursorIntoView(Ae):A=j:A=null}function T(){var U=E;E=h.renderer.screenToTextCoordinates(C,$),w(E,U),x(E,U)}function O(){b=h.selection.toOrientedRange(),y=h.session.addMarker(b,"ace_selection",h.getSelectionStyle()),h.clearSelection(),h.isFocused()&&h.renderer.$cursorLayer.setBlinking(!1),clearInterval(_),T(),_=setInterval(T,20),L=0,d.addListener(document,"mousemove",P)}function I(){clearInterval(_),h.session.removeMarker(y),y=null,h.selection.fromOrientedRange(b),h.isFocused()&&!M&&h.$resetCursorStyle(),b=null,E=null,L=0,A=null,R=null,d.removeListener(document,"mousemove",P)}var N=null;function P(){N==null&&(N=setTimeout(function(){N!=null&&y&&I()},20))}function H(U){var W=U.types;return!W||Array.prototype.some.call(W,function(j){return j=="text/plain"||j=="Text"})}function V(U){var W=["copy","copymove","all","uninitialized"],j=["move","copymove","linkmove","all","uninitialized"],q=p.isMac?U.altKey:U.ctrlKey,z="uninitialized";try{z=U.dataTransfer.effectAllowed.toLowerCase()}catch{}var Z="none";return q&&W.indexOf(z)>=0?Z="copy":j.indexOf(z)>=0?Z="move":W.indexOf(z)>=0&&(Z="copy"),Z}}(function(){this.dragWait=function(){var u=Date.now()-this.mousedownEvent.time;u>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var u=this.editor.container;u.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(u){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var u=this.editor,h=u.container;h.draggable=!0,u.renderer.$cursorLayer.setBlinking(!1),u.setStyle("ace_dragging");var f=p.isWin?"default":"move";u.renderer.setCursorStyle(f),this.setState("dragReady")},this.onMouseDrag=function(u){var h=this.editor.container;if(p.isIE&&this.state=="dragReady"){var f=c(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);f>3&&h.dragDrop()}if(this.state==="dragWait"){var f=c(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);f>0&&(h.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(u){if(this.$dragEnabled){this.mousedownEvent=u;var h=this.editor,f=u.inSelection(),m=u.getButton(),v=u.domEvent.detail||1;if(v===1&&m===0&&f){if(u.editor.inMultiSelectMode&&(u.getAccelKey()||u.getShiftKey()))return;this.mousedownEvent.time=Date.now();var y=u.domEvent.target||u.domEvent.srcElement;if("unselectable"in y&&(y.unselectable="on"),h.getDragDelay()){if(p.isWebKit){this.cancelDrag=!0;var C=h.container;C.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(u,this.onMouseDrag.bind(this)),u.defaultPrevented=!0}}}}).call(s.prototype);function c(u,h,f,m){return Math.sqrt(Math.pow(f-u,2)+Math.pow(m-h,2))}r.DragdropHandler=s}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(n,r,l){var a=n("./mouse_event").MouseEvent,d=n("../lib/event"),p=n("../lib/dom");r.addTouchListeners=function(o,g){var i="scroll",s,c,u,h,f,m,v=0,y,C=0,$=0,_=0,b,E;function L(){var w=window.navigator&&window.navigator.clipboard,x=!1,T=function(){var I=g.getCopyText(),N=g.session.getUndoManager().hasUndo();E.replaceChild(p.buildDom(x?["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"||!x)return x=!x,T();N=="paste"?w.readText().then(function(P){g.execCommand(N,P)}):N&&((N=="cut"||N=="copy")&&(w?w.writeText(g.getCopyText()):document.execCommand("copy")),g.execCommand(N)),E.firstChild.style.display="none",x=!1,N!="openCommandPalette"&&g.focus()};E=p.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(I){i="menu",I.stopPropagation(),I.preventDefault(),g.textInput.focus()},ontouchend:function(I){I.stopPropagation(),I.preventDefault(),O(I)},onclick:O},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],g.container)}function k(){E||L();var w=g.selection.cursor,x=g.renderer.textToScreenCoordinates(w.row,w.column),T=g.renderer.textToScreenCoordinates(0,0).pageX,O=g.renderer.scrollLeft,I=g.container.getBoundingClientRect();E.style.top=x.pageY-I.top-3+"px",x.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",g.on("input",M)}function M(w){E&&(E.style.display="none"),g.off("input",M)}function A(){f=null,clearTimeout(f);var w=g.selection.getRange(),x=w.contains(y.row,y.column);(w.isEmpty()||!x)&&(g.selection.moveToPosition(y),g.selection.selectWord()),i="wait",k()}function R(){f=null,clearTimeout(f),g.selection.moveToPosition(y);var w=C>=2?g.selection.getLineRange(y.row):g.session.getBracketRange(y);w&&!w.isEmpty()?g.selection.setRange(w):g.selection.selectWord(),i="wait"}d.addListener(o,"contextmenu",function(w){if(b){var x=g.textInput.getElement();x.focus()}},g),d.addListener(o,"touchstart",function(w){var x=w.touches;if(f||x.length>1){clearTimeout(f),f=null,u=-1,i="zoom";return}b=g.$mouseHandler.isMousePressed=!0;var T=g.renderer.layerConfig.lineHeight,O=g.renderer.layerConfig.lineHeight,I=w.timeStamp;h=I;var N=x[0],P=N.clientX,H=N.clientY;Math.abs(s-P)+Math.abs(c-H)>T&&(u=-1),s=w.clientX=P,c=w.clientY=H,$=_=0;var V=new a(w,g);if(y=V.getDocumentPosition(),I-u<500&&x.length==1&&!v)C++,w.preventDefault(),w.button=0,R();else{C=0;var U=g.selection.cursor,W=g.selection.isEmpty()?U:g.selection.anchor,j=g.renderer.$cursorLayer.getPixelPosition(U,!0),q=g.renderer.$cursorLayer.getPixelPosition(W,!0),z=g.renderer.scroller.getBoundingClientRect(),Z=g.renderer.layerConfig.offset,K=g.renderer.scrollLeft,Q=function(F,B){return F=F/O,B=B/T-.75,F*F+B*B};if(w.clientX<z.left){i="zoom";return}var he=Q(w.clientX-z.left-j.left+K,w.clientY-z.top-j.top+Z),Ae=Q(w.clientX-z.left-q.left+K,w.clientY-z.top-q.top+Z);he<3.5&&Ae<3.5&&(i=he>Ae?"cursor":"anchor"),Ae<3.5?i="anchor":he<3.5?i="cursor":i="scroll",f=setTimeout(A,450)}u=I},g),d.addListener(o,"touchend",function(w){b=g.$mouseHandler.isMousePressed=!1,m&&clearInterval(m),i=="zoom"?(i="",v=0):f?(g.selection.moveToPosition(y),v=0,k()):i=="scroll"?(S(),M()):k(),clearTimeout(f),f=null},g),d.addListener(o,"touchmove",function(w){f&&(clearTimeout(f),f=null);var x=w.touches;if(!(x.length>1||i=="zoom")){var T=x[0],O=s-T.clientX,I=c-T.clientY;if(i=="wait")if(O*O+I*I>4)i="cursor";else return w.preventDefault();s=T.clientX,c=T.clientY,w.clientX=T.clientX,w.clientY=T.clientY;var N=w.timeStamp,P=N-h;if(h=N,i=="scroll"){var H=new a(w,g);H.speed=1,H.wheelX=O,H.wheelY=I,10*Math.abs(O)<Math.abs(I)&&(O=0),10*Math.abs(I)<Math.abs(O)&&(I=0),P!=0&&($=O/P,_=I/P),g._emit("mousewheel",H),H.propagationStopped||($=_=0)}else{var V=new a(w,g),U=V.getDocumentPosition();i=="cursor"?g.selection.moveCursorToPosition(U):i=="anchor"&&g.selection.setSelectionAnchor(U.row,U.column),g.renderer.scrollCursorIntoView(U),w.preventDefault()}}},g);function S(){v+=60,m=setInterval(function(){v--<=0&&(clearInterval(m),m=null),Math.abs($)<.01&&($=0),Math.abs(_)<.01&&(_=0),v<20&&($=.9*$),v<20&&(_=.9*_);var w=g.session.getScrollTop();g.renderer.scrollBy(10*$,10*_),w==g.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 a=n("../lib/event"),d=n("../lib/useragent"),p=n("./default_handlers").DefaultHandlers,o=n("./default_gutter_handler").GutterHandler,g=n("./mouse_event").MouseEvent,i=n("./dragdrop_handler").DragdropHandler,s=n("./touch_handler").addTouchListeners,c=n("../config"),u=function(){function h(f){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var m=this;this.editor=f,new p(this),new o(this),new i(this);var v=function($){var _=!document.hasFocus||!document.hasFocus()||!f.isFocused()&&document.activeElement==(f.textInput&&f.textInput.getElement());_&&window.focus(),f.focus(),setTimeout(function(){f.isFocused()||f.focus()})},y=f.renderer.getMouseEventTarget();a.addListener(y,"click",this.onMouseEvent.bind(this,"click"),f),a.addListener(y,"mousemove",this.onMouseMove.bind(this,"mousemove"),f),a.addMultiMouseDownListener([y,f.renderer.scrollBarV&&f.renderer.scrollBarV.inner,f.renderer.scrollBarH&&f.renderer.scrollBarH.inner,f.textInput&&f.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",f),a.addMouseWheelListener(f.container,this.onMouseWheel.bind(this,"mousewheel"),f),s(f.container,f);var C=f.renderer.$gutter;a.addListener(C,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),f),a.addListener(C,"click",this.onMouseEvent.bind(this,"gutterclick"),f),a.addListener(C,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),f),a.addListener(C,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),f),a.addListener(y,"mousedown",v,f),a.addListener(C,"mousedown",v,f),d.isIE&&f.renderer.scrollBarV&&(a.addListener(f.renderer.scrollBarV.element,"mousedown",v,f),a.addListener(f.renderer.scrollBarH.element,"mousedown",v,f)),f.on("mousemove",function($){if(!(m.state||m.$dragDelay||!m.$dragEnabled)){var _=f.renderer.screenToTextCoordinates($.x,$.y),b=f.session.selection.getRange(),E=f.renderer;!b.isEmpty()&&b.insideStart(_.row,_.column)?E.setCursorStyle("default"):E.setCursorStyle("")}},f)}return h.prototype.onMouseEvent=function(f,m){this.editor.session&&this.editor._emit(f,new g(m,this.editor))},h.prototype.onMouseMove=function(f,m){var v=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!v||!v.length||this.editor._emit(f,new g(m,this.editor))},h.prototype.onMouseWheel=function(f,m){var v=new g(m,this.editor);v.speed=this.$scrollSpeed*2,v.wheelX=m.wheelX,v.wheelY=m.wheelY,this.editor._emit(f,v)},h.prototype.setState=function(f){this.state=f},h.prototype.captureMouse=function(f,m){this.x=f.x,this.y=f.y,this.isMousePressed=!0;var v=this.editor,y=this.editor.renderer;y.$isMousePressed=!0;var C=this,$=function(k){if(k){if(d.isWebKit&&!k.which&&C.releaseMouse)return C.releaseMouse();C.x=k.clientX,C.y=k.clientY,m&&m(k),C.mouseEvent=new g(k,C.editor),C.$mouseMoved=!0}},_=function(k){v.off("beforeEndOperation",E),clearInterval(L),v.session&&b(),C[C.state+"End"]&&C[C.state+"End"](k),C.state="",C.isMousePressed=y.$isMousePressed=!1,y.$keepTextAreaAtCursor&&y.$moveTextAreaToCursor(),C.$onCaptureMouseMove=C.releaseMouse=null,k&&C.onMouseEvent("mouseup",k),v.endOperation()},b=function(){C[C.state]&&C[C.state](),C.$mouseMoved=!1};if(d.isOldIE&&f.domEvent.type=="dblclick")return setTimeout(function(){_(f)});var E=function(k){C.releaseMouse&&v.curOp.command.name&&v.curOp.selectionChanged&&(C[C.state+"End"]&&C[C.state+"End"](),C.state="",C.releaseMouse())};v.on("beforeEndOperation",E),v.startOperation({command:{name:"mouse"}}),C.$onCaptureMouseMove=$,C.releaseMouse=a.capture(this.editor.container,$,_);var L=setInterval(b,20)},h.prototype.cancelContextMenu=function(){var f=(function(m){m&&m.domEvent&&m.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",f),m&&m.domEvent&&a.stopEvent(m.domEvent))}).bind(this);setTimeout(f,10),this.editor.on("nativecontextmenu",f)},h.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},h}();u.prototype.releaseMouse=null,c.defineOptions(u.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:d.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),r.MouseHandler=u}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(n,r,l){var a=n("../lib/dom"),d=function(){function p(o){o.on("click",function(g){var i=g.getDocumentPosition(),s=o.session,c=s.getFoldAt(i.row,i.column,1);c&&(g.getAccelKey()?s.removeFold(c):s.expandFold(c),g.stop());var u=g.domEvent&&g.domEvent.target;u&&a.hasCssClass(u,"ace_inline_button")&&a.hasCssClass(u,"ace_toggle_wrap")&&(s.setOption("wrap",!s.getUseWrapMode()),o.renderer.scrollCursorIntoView())}),o.on("gutterclick",function(g){var i=o.renderer.$gutterLayer.getRegion(g);if(i=="foldWidgets"){var s=g.getDocumentPosition().row,c=o.session;c.foldWidgets&&c.foldWidgets[s]&&o.session.onFoldWidgetClick(s,g),o.isFocused()||o.focus(),g.stop()}}),o.on("gutterdblclick",function(g){var i=o.renderer.$gutterLayer.getRegion(g);if(i=="foldWidgets"){var s=g.getDocumentPosition().row,c=o.session,u=c.getParentFoldRangeData(s,!0),h=u.range||u.firstRange;if(h){s=h.start.row;var f=c.getFoldAt(s,c.getLine(s).length,1);f?c.removeFold(f):(c.addFold("...",h),o.renderer.scrollCursorIntoView({row:h.start.row,column:0}))}g.stop()}})}return p}();r.FoldHandler=d}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(n,r,l){var a=n("../lib/keys"),d=n("../lib/event"),p=function(){function o(g){this.$editor=g,this.$data={editor:g},this.$handlers=[],this.setDefaultHandler(g.commands)}return o.prototype.setDefaultHandler=function(g){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=g,this.addKeyboardHandler(g,0)},o.prototype.setKeyboardHandler=function(g){var i=this.$handlers;if(i[i.length-1]!=g){for(;i[i.length-1]&&i[i.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(i[i.length-1]);this.addKeyboardHandler(g,1)}},o.prototype.addKeyboardHandler=function(g,i){if(g){typeof g=="function"&&!g.handleKeyboard&&(g.handleKeyboard=g);var s=this.$handlers.indexOf(g);s!=-1&&this.$handlers.splice(s,1),i==null?this.$handlers.push(g):this.$handlers.splice(i,0,g),s==-1&&g.attach&&g.attach(this.$editor)}},o.prototype.removeKeyboardHandler=function(g){var i=this.$handlers.indexOf(g);return i==-1?!1:(this.$handlers.splice(i,1),g.detach&&g.detach(this.$editor),!0)},o.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},o.prototype.getStatusText=function(){var g=this.$data,i=g.editor;return this.$handlers.map(function(s){return s.getStatusText&&s.getStatusText(i,g)||""}).filter(Boolean).join(" ")},o.prototype.$callKeyboardHandlers=function(g,i,s,c){for(var u,h=!1,f=this.$editor.commands,m=this.$handlers.length;m--&&(u=this.$handlers[m].handleKeyboard(this.$data,g,i,s,c),!(!(!u||!u.command)&&(u.command=="null"?h=!0:h=f.exec(u.command,this.$editor,u.args,c),h&&c&&g!=-1&&u.passEvent!=!0&&u.command.passEvent!=!0&&d.stopEvent(c),h))););return!h&&g==-1&&(u={command:"insertstring"},h=f.exec("insertstring",this.$editor,i)),h&&this.$editor._signal&&this.$editor._signal("keyboardActivity",u),h},o.prototype.onCommandKey=function(g,i,s){var c=a.keyCodeToString(s);return this.$callKeyboardHandlers(i,c,s,g)},o.prototype.onTextInput=function(g){return this.$callKeyboardHandlers(-1,g)},o}();r.KeyBinding=p}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(n,r,l){var a=0,d=0,p=!1,o=!1,g=!1,i=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],s=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],c=0,u=1,h=0,f=1,m=2,v=3,y=4,C=5,$=6,_=7,b=8,E=9,L=10,k=11,M=12,A=13,R=14,S=15,w=16,x=17,T=18,O=[T,T,T,T,T,T,T,T,T,$,C,$,b,C,T,T,T,T,T,T,T,T,T,T,T,T,T,T,C,C,C,$,b,y,y,k,k,k,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,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,y,y,y,y,y,y,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,y,y,y,y,T,T,T,T,T,T,C,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,k,k,k,k,y,y,y,y,h,y,y,T,y,y,k,k,m,m,y,h,y,y,y,m,h,y,y,y,y,y],I=[b,b,b,b,b,b,b,b,b,b,b,T,T,T,h,f,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,b,C,A,R,S,w,x,E,k,k,k,k,k,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(U,W,j,q){var z=a?s:i,Z=null,K=null,Q=null,he=0,Ae=null,F=null,B=-1,Y=null,ee=null,J=[];if(!q)for(Y=0,q=[];Y<j;Y++)q[Y]=V(U[Y]);for(d=a,p=!1,o=!1,g=!1,ee=0;ee<j;ee++){if(Z=he,J[ee]=K=H(U,q,J,ee),he=z[Z][K],Ae=he&240,he&=15,W[ee]=Q=z[he][5],Ae>0)if(Ae==16){for(Y=B;Y<ee;Y++)W[Y]=1;B=-1}else B=-1;if(F=z[he][6],F)B==-1&&(B=ee);else if(B>-1){for(Y=B;Y<ee;Y++)W[Y]=Q;B=-1}q[ee]==C&&(W[ee]=0),d|=Q}if(g){for(Y=0;Y<j;Y++)if(q[Y]==$){W[Y]=a;for(var le=Y-1;le>=0&&q[le]==b;le--)W[le]=a}}}function P(U,W,j){if(!(d<U)){if(U==1&&a==u&&!o){j.reverse();return}for(var q=j.length,z=0,Z,K,Q,he;z<q;){if(W[z]>=U){for(Z=z+1;Z<q&&W[Z]>=U;)Z++;for(K=z,Q=Z-1;K<Q;K++,Q--)he=j[K],j[K]=j[Q],j[Q]=he;z=Z}z++}}}function H(U,W,j,q){var z=W[q],Z,K,Q,he;switch(z){case h:case f:p=!1;case y:case v:return z;case m:return p?v:m;case _:return p=!0,f;case b:return y;case E:return q<1||q+1>=W.length||(Z=j[q-1])!=m&&Z!=v||(K=W[q+1])!=m&&K!=v?y:(p&&(K=v),K==Z?K:y);case L:return Z=q>0?j[q-1]:C,Z==m&&q+1<W.length&&W[q+1]==m?m:y;case k:if(q>0&&j[q-1]==m)return m;if(p)return y;for(he=q+1,Q=W.length;he<Q&&W[he]==k;)he++;return he<Q&&W[he]==m?m:y;case M:for(Q=W.length,he=q+1;he<Q&&W[he]==M;)he++;if(he<Q){var Ae=U[q],F=Ae>=1425&&Ae<=2303||Ae==64286;if(Z=W[he],F&&(Z==f||Z==_))return f}return q<1||(Z=W[q-1])==C?y:j[q-1];case C:return p=!1,o=!0,a;case $:return g=!0,y;case A:case R:case w:case x:case S:p=!1;case T:return y}}function V(U){var W=U.charCodeAt(0),j=W>>8;return j==0?W>191?h:O[W]:j==5?/[\u0591-\u05f4]/.test(U)?f:h:j==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(U)?M:/[\u0660-\u0669\u066b-\u066c]/.test(U)?v:W==1642?k:/[\u06f0-\u06f9]/.test(U)?m:_:j==32&&W<=8287?I[W&255]:j==254&&W>=65136?_:y}r.L=h,r.R=f,r.EN=m,r.ON_R=3,r.AN=4,r.R_H=5,r.B=6,r.RLE=7,r.DOT="·",r.doBidiReorder=function(U,W,j){if(U.length<2)return{};var q=U.split(""),z=new Array(q.length),Z=new Array(q.length),K=[];a=j?u:c,N(q,K,q.length,W);for(var Q=0;Q<z.length;z[Q]=Q,Q++);P(2,K,z),P(1,K,z);for(var Q=0;Q<z.length-1;Q++)W[Q]===v?K[Q]=r.AN:K[Q]===f&&(W[Q]>_&&W[Q]<A||W[Q]===y||W[Q]===T)?K[Q]=r.ON_R:Q>0&&q[Q-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(q[Q])&&(K[Q-1]=K[Q]=r.R_H,Q++);q[q.length-1]===r.DOT&&(K[q.length-1]=r.B),q[0]==="‫"&&(K[0]=r.RLE);for(var Q=0;Q<z.length;Q++)Z[Q]=K[z[Q]];return{logicalFromVisual:z,bidiLevels:Z}},r.hasBidiCharacters=function(U,W){for(var j=!1,q=0;q<U.length;q++)W[q]=V(U.charAt(q)),!j&&(W[q]==f||W[q]==_||W[q]==v)&&(j=!0);return j},r.getVisualFromLogicalIdx=function(U,W){for(var j=0;j<W.logicalFromVisual.length;j++)if(W.logicalFromVisual[j]==U)return j;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(n,r,l){var a=n("./lib/bidiutil"),d=n("./lib/lang"),p=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,o=function(){function g(i){this.session=i,this.bidiMap={},this.currentRow=null,this.bidiUtil=a,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=p.test(i.getValue())}return g.prototype.isBidiRow=function(i,s,c){return this.seenBidi?(i!==this.currentRow&&(this.currentRow=i,this.updateRowLine(s,c),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},g.prototype.onChange=function(i){this.seenBidi?this.currentRow=null:i.action=="insert"&&p.test(i.lines.join(`
1012
+ `))&&(this.seenBidi=!0,this.currentRow=null)},g.prototype.getDocumentRow=function(){var i=0,s=this.session.$screenRowCache;if(s.length){var c=this.session.$getRowCacheIndex(s,this.currentRow);c>=0&&(i=this.session.$docRowCache[c])}return i},g.prototype.getSplitIndex=function(){var i=0,s=this.session.$screenRowCache;if(s.length)for(var c,u=this.session.$getRowCacheIndex(s,this.currentRow);this.currentRow-i>0&&(c=this.session.$getRowCacheIndex(s,this.currentRow-i-1),c===u);)u=c,i++;else i=this.currentRow;return i},g.prototype.updateRowLine=function(i,s){i===void 0&&(i=this.getDocumentRow());var c=i===this.session.getLength()-1,u=c?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(i),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var h=this.session.$wrapData[i];h&&(s===void 0&&(s=this.getSplitIndex()),s>0&&h.length?(this.wrapIndent=h.indent,this.wrapOffset=this.wrapIndent*this.charWidths[a.L],this.line=s<h.length?this.line.substring(h[s-1],h[s]):this.line.substring(h[h.length-1])):this.line=this.line.substring(0,h[s]),s==h.length&&(this.line+=this.showInvisibles?u:a.DOT))}else this.line+=this.showInvisibles?u:a.DOT;var f=this.session,m=0,v;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(y,C){return y===" "||f.isFullWidth(y.charCodeAt(0))?(v=y===" "?f.getScreenTabSize(C+m):2,m+=v-1,d.stringRepeat(a.DOT,v)):y}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==a.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},g.prototype.updateBidiMap=function(){var i=[];a.hasBidiCharacters(this.line,i)||this.isRtlDir?this.bidiMap=a.doBidiReorder(this.line,i,this.isRtlDir):this.bidiMap={}},g.prototype.markAsDirty=function(){this.currentRow=null},g.prototype.updateCharacterWidths=function(i){if(this.characterWidth!==i.$characterSize.width){this.fontMetrics=i;var s=this.characterWidth=i.$characterSize.width,c=i.$measureCharWidth("ה");this.charWidths[a.L]=this.charWidths[a.EN]=this.charWidths[a.ON_R]=s,this.charWidths[a.R]=this.charWidths[a.AN]=c,this.charWidths[a.R_H]=c*.45,this.charWidths[a.B]=this.charWidths[a.RLE]=0,this.currentRow=null}},g.prototype.setShowInvisibles=function(i){this.showInvisibles=i,this.currentRow=null},g.prototype.setEolChar=function(i){this.EOL=i},g.prototype.setContentWidth=function(i){this.contentWidth=i},g.prototype.isRtlLine=function(i){return this.$isRtl?!0:i!=null?this.session.getLine(i).charAt(0)==this.RLE:this.isRtlDir},g.prototype.setRtlDirection=function(i,s){for(var c=i.getCursorPosition(),u=i.selection.getSelectionAnchor().row;u<=c.row;u++)!s&&i.session.getLine(u).charAt(0)===i.session.$bidiHandler.RLE?i.session.doc.removeInLine(u,0,1):s&&i.session.getLine(u).charAt(0)!==i.session.$bidiHandler.RLE&&i.session.doc.insert({column:0,row:u},i.session.$bidiHandler.RLE)},g.prototype.getPosLeft=function(i){i-=this.wrapIndent;var s=this.line.charAt(0)===this.RLE?1:0,c=i>s?this.session.getOverwrite()?i:i-1:s,u=a.getVisualFromLogicalIdx(c,this.bidiMap),h=this.bidiMap.bidiLevels,f=0;!this.session.getOverwrite()&&i<=s&&h[u]%2!==0&&u++;for(var m=0;m<u;m++)f+=this.charWidths[h[m]];return!this.session.getOverwrite()&&i>s&&h[u]%2===0&&(f+=this.charWidths[h[u]]),this.wrapIndent&&(f+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(f+=this.rtlLineOffset),f},g.prototype.getSelections=function(i,s){var c=this.bidiMap,u=c.bidiLevels,h,f=[],m=0,v=Math.min(i,s)-this.wrapIndent,y=Math.max(i,s)-this.wrapIndent,C=!1,$=!1,_=0;this.wrapIndent&&(m+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var b,E=0;E<u.length;E++)b=c.logicalFromVisual[E],h=u[E],C=b>=v&&b<y,C&&!$?_=m:!C&&$&&f.push({left:_,width:m-_}),m+=this.charWidths[h],$=C;if(C&&E===u.length&&f.push({left:_,width:m-_}),this.isRtlDir)for(var L=0;L<f.length;L++)f[L].left+=this.rtlLineOffset;return f},g.prototype.offsetToCol=function(c){this.isRtlDir&&(c-=this.rtlLineOffset);var s=0,c=Math.max(c,0),u=0,h=0,f=this.bidiMap.bidiLevels,m=this.charWidths[f[h]];for(this.wrapIndent&&(c-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);c>u+m/2;){if(u+=m,h===f.length-1){m=0;break}m=this.charWidths[f[++h]]}return h>0&&f[h-1]%2!==0&&f[h]%2===0?(c<u&&h--,s=this.bidiMap.logicalFromVisual[h]):h>0&&f[h-1]%2===0&&f[h]%2!==0?s=1+(c>u?this.bidiMap.logicalFromVisual[h]:this.bidiMap.logicalFromVisual[h-1]):this.isRtlDir&&h===f.length-1&&m===0&&f[h-1]%2===0||!this.isRtlDir&&h===0&&f[h]%2!==0?s=1+this.bidiMap.logicalFromVisual[h]:(h>0&&f[h-1]%2!==0&&m!==0&&h--,s=this.bidiMap.logicalFromVisual[h]),s===0&&this.isRtlDir&&s++,s+this.wrapIndent},g}();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 a=n("./lib/oop"),d=n("./lib/lang"),p=n("./lib/event_emitter").EventEmitter,o=n("./range").Range,g=function(){function i(s){this.session=s,this.doc=s.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var c=this;this.cursor.on("change",function(u){c.$cursorChanged=!0,c.$silent||c._emit("changeCursor"),!c.$isEmpty&&!c.$silent&&c._emit("changeSelection"),!c.$keepDesiredColumnOnChange&&u.old.column!=u.value.column&&(c.$desiredColumn=null)}),this.anchor.on("change",function(){c.$anchorChanged=!0,!c.$isEmpty&&!c.$silent&&c._emit("changeSelection")})}return i.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},i.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},i.prototype.getCursor=function(){return this.lead.getPosition()},i.prototype.setAnchor=function(s,c){this.$isEmpty=!1,this.anchor.setPosition(s,c)},i.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},i.prototype.getSelectionLead=function(){return this.lead.getPosition()},i.prototype.isBackwards=function(){var s=this.anchor,c=this.lead;return s.row>c.row||s.row==c.row&&s.column>c.column},i.prototype.getRange=function(){var s=this.anchor,c=this.lead;return this.$isEmpty?o.fromPoints(c,c):this.isBackwards()?o.fromPoints(c,s):o.fromPoints(s,c)},i.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},i.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},i.prototype.setRange=function(s,c){var u=c?s.end:s.start,h=c?s.start:s.end;this.$setSelection(u.row,u.column,h.row,h.column)},i.prototype.$setSelection=function(s,c,u,h){if(!this.$silent){var f=this.$isEmpty,m=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(s,c),this.cursor.setPosition(u,h),this.$isEmpty=!o.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||f!=this.$isEmpty||m)&&this._emit("changeSelection")}},i.prototype.$moveSelection=function(s){var c=this.lead;this.$isEmpty&&this.setSelectionAnchor(c.row,c.column),s.call(this)},i.prototype.selectTo=function(s,c){this.$moveSelection(function(){this.moveCursorTo(s,c)})},i.prototype.selectToPosition=function(s){this.$moveSelection(function(){this.moveCursorToPosition(s)})},i.prototype.moveTo=function(s,c){this.clearSelection(),this.moveCursorTo(s,c)},i.prototype.moveToPosition=function(s){this.clearSelection(),this.moveCursorToPosition(s)},i.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},i.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},i.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},i.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},i.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},i.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},i.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},i.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},i.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},i.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},i.prototype.getWordRange=function(s,c){if(typeof c>"u"){var u=s||this.lead;s=u.row,c=u.column}return this.session.getWordRange(s,c)},i.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},i.prototype.selectAWord=function(){var s=this.getCursor(),c=this.session.getAWordRange(s.row,s.column);this.setSelectionRange(c)},i.prototype.getLineRange=function(s,c){var u=typeof s=="number"?s:this.lead.row,h,f=this.session.getFoldLine(u);return f?(u=f.start.row,h=f.end.row):h=u,c===!0?new o(u,0,h,this.session.getLine(h).length):new o(u,0,h+1,0)},i.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},i.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},i.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},i.prototype.wouldMoveIntoSoftTab=function(s,c,u){var h=s.column,f=s.column+c;return u<0&&(h=s.column-c,f=s.column),this.session.isTabStop(s)&&this.doc.getLine(s.row).slice(h,f).split(" ").length-1==c},i.prototype.moveCursorLeft=function(){var s=this.lead.getPosition(),c;if(c=this.session.getFoldAt(s.row,s.column,-1))this.moveCursorTo(c.start.row,c.start.column);else if(s.column===0)s.row>0&&this.moveCursorTo(s.row-1,this.doc.getLine(s.row-1).length);else{var u=this.session.getTabSize();this.wouldMoveIntoSoftTab(s,u,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-u):this.moveCursorBy(0,-1)}},i.prototype.moveCursorRight=function(){var s=this.lead.getPosition(),c;if(c=this.session.getFoldAt(s.row,s.column,1))this.moveCursorTo(c.end.row,c.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var u=this.session.getTabSize(),s=this.lead;this.wouldMoveIntoSoftTab(s,u,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,u):this.moveCursorBy(0,1)}},i.prototype.moveCursorLineStart=function(){var s=this.lead.row,c=this.lead.column,u=this.session.documentToScreenRow(s,c),h=this.session.screenToDocumentPosition(u,0),f=this.session.getDisplayLine(s,null,h.row,h.column),m=f.match(/^\s*/);m[0].length!=c&&!this.session.$useEmacsStyleLineStart&&(h.column+=m[0].length),this.moveCursorToPosition(h)},i.prototype.moveCursorLineEnd=function(){var s=this.lead,c=this.session.getDocumentLastRowColumnPosition(s.row,s.column);if(this.lead.column==c.column){var u=this.session.getLine(c.row);if(c.column==u.length){var h=u.search(/\s+$/);h>0&&(c.column=h)}}this.moveCursorTo(c.row,c.column)},i.prototype.moveCursorFileEnd=function(){var s=this.doc.getLength()-1,c=this.doc.getLine(s).length;this.moveCursorTo(s,c)},i.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},i.prototype.moveCursorLongWordRight=function(){var s=this.lead.row,c=this.lead.column,u=this.doc.getLine(s),h=u.substring(c);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var f=this.session.getFoldAt(s,c,1);if(f){this.moveCursorTo(f.end.row,f.end.column);return}if(this.session.nonTokenRe.exec(h)&&(c+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,h=u.substring(c)),c>=u.length){this.moveCursorTo(s,u.length),this.moveCursorRight(),s<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(h)&&(c+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(s,c)},i.prototype.moveCursorLongWordLeft=function(){var s=this.lead.row,c=this.lead.column,u;if(u=this.session.getFoldAt(s,c,-1)){this.moveCursorTo(u.start.row,u.start.column);return}var h=this.session.getFoldStringAt(s,c,-1);h==null&&(h=this.doc.getLine(s).substring(0,c));var f=d.stringReverse(h);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(f)&&(c-=this.session.nonTokenRe.lastIndex,f=f.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),c<=0){this.moveCursorTo(s,0),this.moveCursorLeft(),s>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(f)&&(c-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(s,c)},i.prototype.$shortWordEndIndex=function(s){var c=0,u,h=/\s/,f=this.session.tokenRe;if(f.lastIndex=0,this.session.tokenRe.exec(s))c=this.session.tokenRe.lastIndex;else{for(;(u=s[c])&&h.test(u);)c++;if(c<1){for(f.lastIndex=0;(u=s[c])&&!f.test(u);)if(f.lastIndex=0,c++,h.test(u))if(c>2){c--;break}else{for(;(u=s[c])&&h.test(u);)c++;if(c>2)break}}}return f.lastIndex=0,c},i.prototype.moveCursorShortWordRight=function(){var s=this.lead.row,c=this.lead.column,u=this.doc.getLine(s),h=u.substring(c),f=this.session.getFoldAt(s,c,1);if(f)return this.moveCursorTo(f.end.row,f.end.column);if(c==u.length){var m=this.doc.getLength();do s++,h=this.doc.getLine(s);while(s<m&&/^\s*$/.test(h));/^\s+/.test(h)||(h=""),c=0}var v=this.$shortWordEndIndex(h);this.moveCursorTo(s,c+v)},i.prototype.moveCursorShortWordLeft=function(){var s=this.lead.row,c=this.lead.column,u;if(u=this.session.getFoldAt(s,c,-1))return this.moveCursorTo(u.start.row,u.start.column);var h=this.session.getLine(s).substring(0,c);if(c===0){do s--,h=this.doc.getLine(s);while(s>0&&/^\s*$/.test(h));c=h.length,/\s+$/.test(h)||(h="")}var f=d.stringReverse(h),m=this.$shortWordEndIndex(f);return this.moveCursorTo(s,c-m)},i.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},i.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},i.prototype.moveCursorBy=function(s,c){var u=this.session.documentToScreenPosition(this.lead.row,this.lead.column),h;if(c===0&&(s!==0&&(this.session.$bidiHandler.isBidiRow(u.row,this.lead.row)?(h=this.session.$bidiHandler.getPosLeft(u.column),u.column=Math.round(h/this.session.$bidiHandler.charWidths[0])):h=u.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?u.column=this.$desiredColumn:this.$desiredColumn=u.column),s!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var f=this.session.lineWidgets[this.lead.row];s<0?s-=f.rowsAbove||0:s>0&&(s+=f.rowCount-(f.rowsAbove||0))}var m=this.session.screenToDocumentPosition(u.row+s,u.column,h);s!==0&&c===0&&m.row===this.lead.row&&(m.column,this.lead.column),this.moveCursorTo(m.row,m.column+c,c===0)},i.prototype.moveCursorToPosition=function(s){this.moveCursorTo(s.row,s.column)},i.prototype.moveCursorTo=function(s,c,u){var h=this.session.getFoldAt(s,c,1);h&&(s=h.start.row,c=h.start.column),this.$keepDesiredColumnOnChange=!0;var f=this.session.getLine(s);/[\uDC00-\uDFFF]/.test(f.charAt(c))&&f.charAt(c-1)&&(this.lead.row==s&&this.lead.column==c+1?c=c-1:c=c+1),this.lead.setPosition(s,c),this.$keepDesiredColumnOnChange=!1,u||(this.$desiredColumn=null)},i.prototype.moveCursorToScreen=function(s,c,u){var h=this.session.screenToDocumentPosition(s,c);this.moveCursorTo(h.row,h.column,u)},i.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},i.prototype.fromOrientedRange=function(s){this.setSelectionRange(s,s.cursor==s.start),this.$desiredColumn=s.desiredColumn||this.$desiredColumn},i.prototype.toOrientedRange=function(s){var c=this.getRange();return s?(s.start.column=c.start.column,s.start.row=c.start.row,s.end.column=c.end.column,s.end.row=c.end.row):s=c,s.cursor=this.isBackwards()?s.start:s.end,s.desiredColumn=this.$desiredColumn,s},i.prototype.getRangeOfMovements=function(s){var c=this.getCursor();try{s(this);var u=this.getCursor();return o.fromPoints(c,u)}catch{return o.fromPoints(c,c)}finally{this.moveCursorToPosition(c)}},i.prototype.toJSON=function(){if(this.rangeCount)var s=this.ranges.map(function(c){var u=c.clone();return u.isBackwards=c.cursor==c.start,u});else{var s=this.getRange();s.isBackwards=this.isBackwards()}return s},i.prototype.fromJSON=function(s){if(s.start==null)if(this.rangeList&&s.length>1){this.toSingleRange(s[0]);for(var c=s.length;c--;){var u=o.fromPoints(s[c].start,s[c].end);s[c].isBackwards&&(u.cursor=u.start),this.addRange(u,!0)}return}else s=s[0];this.rangeList&&this.toSingleRange(s),this.setSelectionRange(s,s.isBackwards)},i.prototype.isEqual=function(s){if((s.length||this.rangeCount)&&s.length!=this.rangeCount)return!1;if(!s.length||!this.ranges)return this.getRange().isEqual(s);for(var c=this.ranges.length;c--;)if(!this.ranges[c].isEqual(s[c]))return!1;return!0},i}();g.prototype.setSelectionAnchor=g.prototype.setAnchor,g.prototype.getSelectionAnchor=g.prototype.getAnchor,g.prototype.setSelectionRange=g.prototype.setRange,a.implement(g.prototype,p),r.Selection=g}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(n,r,l){var a=n("./lib/report_error").reportError,d=2e3,p=function(){function o(g){this.splitRegex,this.states=g,this.regExps={},this.matchMappings={};for(var i in this.states){for(var s=this.states[i],c=[],u=0,h=this.matchMappings[i]={defaultToken:"text"},f="g",m=[],v=0;v<s.length;v++){var y=s[v];if(y.defaultToken&&(h.defaultToken=y.defaultToken),y.caseInsensitive&&f.indexOf("i")===-1&&(f+="i"),y.unicode&&f.indexOf("u")===-1&&(f+="u"),y.regex!=null){y.regex instanceof RegExp&&(y.regex=y.regex.toString().slice(1,-1));var C=y.regex,$=new RegExp("(?:("+C+")|(.))").exec("a").length-2;Array.isArray(y.token)?y.token.length==1||$==1?y.token=y.token[0]:$-1!=y.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:y,groupCount:$-1}),y.token=y.token[0]):(y.tokenArray=y.token,y.token=null,y.onMatch=this.$arrayTokens):typeof y.token=="function"&&!y.onMatch&&($>1?y.onMatch=this.$applyToken:y.onMatch=y.token),$>1&&(/\\\d/.test(y.regex)?C=y.regex.replace(/\\([0-9]+)/g,function(_,b){return"\\"+(parseInt(b,10)+u+1)}):($=1,C=this.removeCapturingGroups(y.regex)),!y.splitRegex&&typeof y.token!="string"&&m.push(y)),h[u]=v,u+=$,c.push(C),y.onMatch||(y.onMatch=null)}}c.length||(h[0]=0,c.push("$")),m.forEach(function(_){_.splitRegex=this.createSplitterRegexp(_.regex,f)},this),this.regExps[i]=new RegExp("("+c.join(")|(")+")|($)",f)}}return o.prototype.$setMaxTokenCount=function(g){d=g|0},o.prototype.$applyToken=function(g){var i=this.splitRegex.exec(g).slice(1),s=this.token.apply(this,i);if(typeof s=="string")return[{type:s,value:g}];for(var c=[],u=0,h=s.length;u<h;u++)i[u]&&(c[c.length]={type:s[u],value:i[u]});return c},o.prototype.$arrayTokens=function(g){if(!g)return[];var i=this.splitRegex.exec(g);if(!i)return"text";for(var s=[],c=this.tokenArray,u=0,h=c.length;u<h;u++)i[u+1]&&(s[s.length]={type:c[u],value:i[u+1]});return s},o.prototype.removeCapturingGroups=function(g){var i=g.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(s,c){return c?"(?:":s});return i},o.prototype.createSplitterRegexp=function(g,i){if(g.indexOf("(?=")!=-1){var s=0,c=!1,u={};g.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(h,f,m,v,y,C){return c?c=y!="]":y?c=!0:v?(s==u.stack&&(u.end=C+1,u.stack=-1),s--):m&&(s++,m.length!=1&&(u.stack=s,u.start=C)),h}),u.end!=null&&/^\)*$/.test(g.substr(u.end))&&(g=g.substring(0,u.start)+g.substr(u.end))}return g.charAt(0)!="^"&&(g="^"+g),g.charAt(g.length-1)!="$"&&(g+="$"),new RegExp(g,(i||"").replace("g",""))},o.prototype.getLineTokens=function(g,i){if(i&&typeof i!="string"){var s=i.slice(0);i=s[0],i==="#tmp"&&(s.shift(),i=s.shift())}else var s=[];var c=i||"start",u=this.states[c];u||(c="start",u=this.states[c]);var h=this.matchMappings[c],f=this.regExps[c];f.lastIndex=0;for(var m,v=[],y=0,C=0,$={type:null,value:""};m=f.exec(g);){var _=h.defaultToken,b=null,E=m[0],L=f.lastIndex;if(L-E.length>y){var k=g.substring(y,L-E.length);$.type==_?$.value+=k:($.type&&v.push($),$={type:_,value:k})}for(var M=0;M<m.length-2;M++)if(m[M+1]!==void 0){b=u[h[M]],b.onMatch?_=b.onMatch(E,c,s,g):_=b.token,b.next&&(typeof b.next=="string"?c=b.next:c=b.next(c,s),u=this.states[c],u||(this.reportError("state doesn't exist",c),c="start",u=this.states[c]),h=this.matchMappings[c],y=L,f=this.regExps[c],f.lastIndex=L),b.consumeLineEnd&&(y=L);break}if(E){if(typeof _=="string")(!b||b.merge!==!1)&&$.type===_?$.value+=E:($.type&&v.push($),$={type:_,value:E});else if(_){$.type&&v.push($),$={type:null,value:""};for(var M=0;M<_.length;M++)v.push(_[M])}}if(y==g.length)break;if(y=L,C++>d){for(C>2*g.length&&this.reportError("infinite loop with in ace tokenizer",{startState:i,line:g});y<g.length;)$.type&&v.push($),$={value:g.substring(y,y+=500),type:"overflow"};c="start",s=[];break}}return $.type&&v.push($),s.length>1&&s[0]!==c&&s.unshift("#tmp",c),{tokens:v,state:s.length?s:c}},o}();p.prototype.reportError=a,r.Tokenizer=p}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(n,r,l){var a=n("../lib/deep_copy").deepCopy,d;d=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},(function(){this.addRules=function(g,i){if(!i){for(var s in g)this.$rules[s]=g[s];return}for(var s in g){for(var c=g[s],u=0;u<c.length;u++){var h=c[u];(h.next||h.onMatch)&&(typeof h.next=="string"&&h.next.indexOf(i)!==0&&(h.next=i+h.next),h.nextState&&h.nextState.indexOf(i)!==0&&(h.nextState=i+h.nextState))}this.$rules[i+s]=c}},this.getRules=function(){return this.$rules},this.embedRules=function(g,i,s,c,u){var h=typeof g=="function"?new g().getRules():g;if(c)for(var f=0;f<c.length;f++)c[f]=i+c[f];else{c=[];for(var m in h)c.push(i+m)}if(this.addRules(h,i),s)for(var v=Array.prototype[u?"push":"unshift"],f=0;f<c.length;f++)v.apply(this.$rules[c[f]],a(s));this.$embeds||(this.$embeds=[]),this.$embeds.push(i)},this.getEmbeds=function(){return this.$embeds};var p=function(g,i){return(g!="start"||i.length)&&i.unshift(this.nextState,g),this.nextState},o=function(g,i){return i.shift(),i.shift()||"start"};this.normalizeRules=function(){var g=0,i=this.$rules;function s(c){var u=i[c];u.processed=!0;for(var h=0;h<u.length;h++){var f=u[h],m=null;Array.isArray(f)&&(m=f,f={}),!f.regex&&f.start&&(f.regex=f.start,f.next||(f.next=[]),f.next.push({defaultToken:f.token},{token:f.token+".end",regex:f.end||f.start,next:"pop"}),f.token=f.token+".start",f.push=!0);var v=f.next||f.push;if(v&&Array.isArray(v)){var y=f.stateName;y||(y=f.token,typeof y!="string"&&(y=y[0]||""),i[y]&&(y+=g++)),i[y]=v,f.next=y,s(y)}else v=="pop"&&(f.next=o);if(f.push&&(f.nextState=f.next||f.push,f.next=p,delete f.push),f.rules)for(var C in f.rules)i[C]?i[C].push&&i[C].push.apply(i[C],f.rules[C]):i[C]=f.rules[C];var $=typeof f=="string"?f:f.include;if($&&($==="$self"&&($="start"),Array.isArray($)?m=$.map(function(b){return i[b]}):m=i[$]),m){var _=[h,1].concat(m);f.noEscape&&(_=_.filter(function(b){return!b.next})),u.splice.apply(u,_),h--}f.keywordMap&&(f.token=this.createKeywordMapper(f.keywordMap,f.defaultToken||"text",f.caseInsensitive),delete f.defaultToken)}}Object.keys(i).forEach(s,this)},this.createKeywordMapper=function(g,i,s,c){var u=Object.create(null);return this.$keywordList=[],Object.keys(g).forEach(function(h){for(var f=g[h],m=f.split(c||"|"),v=m.length;v--;){var y=m[v];this.$keywordList.push(y),s&&(y=y.toLowerCase()),u[y]=h}},this),g=null,s?function(h){return u[h.toLowerCase()]||i}:function(h){return u[h]||i}},this.getKeywords=function(){return this.$keywords}}).call(d.prototype),r.TextHighlightRules=d}),ace.define("ace/mode/behaviour",["require","exports","module"],function(n,r,l){var a;a=function(){this.$behaviours={}},(function(){this.add=function(d,p,o){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[d]:this.$behaviours[d]={}}this.$behaviours[d][p]=o},this.addBehaviours=function(d){for(var p in d)for(var o in d[p])this.add(p,o,d[p][o])},this.remove=function(d){this.$behaviours&&this.$behaviours[d]&&delete this.$behaviours[d]},this.inherit=function(d,p){if(typeof d=="function")var o=new d().getBehaviours(p);else var o=d.getBehaviours(p);this.addBehaviours(o)},this.getBehaviours=function(d){if(d){for(var p={},o=0;o<d.length;o++)this.$behaviours[d[o]]&&(p[d[o]]=this.$behaviours[d[o]]);return p}else return this.$behaviours}}).call(a.prototype),r.Behaviour=a}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(n,r,l){var a=n("./range").Range,d=function(){function p(o,g,i){this.$session=o,this.$row=g,this.$rowTokens=o.getTokens(g);var s=o.getTokenAt(g,i);this.$tokenIndex=s?s.index:-1}return p.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]},p.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]},p.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},p.prototype.getCurrentTokenRow=function(){return this.$row},p.prototype.getCurrentTokenColumn=function(){var o=this.$rowTokens,g=this.$tokenIndex,i=o[g].start;if(i!==void 0)return i;for(i=0;g>0;)g-=1,i+=o[g].value.length;return i},p.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},p.prototype.getCurrentTokenRange=function(){var o=this.$rowTokens[this.$tokenIndex],g=this.getCurrentTokenColumn();return new a(this.$row,g,this.$row,g+o.value.length)},p}();r.TokenIterator=d}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(n,r,l){var a=n("../../lib/oop"),d=n("../behaviour").Behaviour,p=n("../../token_iterator").TokenIterator,o=n("../../lib/lang"),g=["text","paren.rparen","rparen","paren","punctuation.operator"],i=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],s,c={},u={'"':'"',"'":"'"},h=function(v){var y=-1;if(v.multiSelect&&(y=v.selection.index,c.rangeCount!=v.multiSelect.rangeCount&&(c={rangeCount:v.multiSelect.rangeCount})),c[y])return s=c[y];s=c[y]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},f=function(v,y,C,$){var _=v.end.row-v.start.row;return{text:C+y+$,selection:[0,v.start.column+1,_,v.end.column+(_?0:1)]}},m;m=function(v){v=v||{},this.add("braces","insertion",function(y,C,$,_,b){var E=$.getCursorPosition(),L=_.doc.getLine(E.row);if(b=="{"){h($);var k=$.getSelectionRange(),M=_.doc.getTextRange(k);if(M!==""&&M!=="{"&&$.getWrapBehavioursEnabled())return f(k,M,"{","}");if(m.isSaneInsertion($,_))return/[\]\}\)]/.test(L[E.column])||$.inMultiSelectMode||v.braces?(m.recordAutoInsert($,_,"}"),{text:"{}",selection:[1,1]}):(m.recordMaybeInsert($,_,"{"),{text:"{",selection:[1,1]})}else if(b=="}"){h($);var A=L.substring(E.column,E.column+1);if(A=="}"){var R=_.$findOpeningBracket("}",{column:E.column+1,row:E.row});if(R!==null&&m.isAutoInsertedClosing(E,L,b))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(b==`
1013
+ `||b==`\r
1014
+ `){h($);var S="";m.isMaybeInsertedClosing(E,L)&&(S=o.stringRepeat("}",s.maybeInsertedBrackets),m.clearMaybeInsertedClosing());var A=L.substring(E.column,E.column+1);if(A==="}"){var w=_.findMatchingBracket({row:E.row,column:E.column+1},"}");if(!w)return null;var x=this.$getIndent(_.getLine(w.row))}else if(S)var x=this.$getIndent(L);else{m.clearMaybeInsertedClosing();return}var T=x+_.getTabString();return{text:`
1015
+ `+T+`
1016
+ `+x+S,selection:[1,T.length,1,T.length]}}else m.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(y,C,$,_,b){var E=_.doc.getTextRange(b);if(!b.isMultiLine()&&E=="{"){h($);var L=_.doc.getLine(b.start.row),k=L.substring(b.end.column,b.end.column+1);if(k=="}")return b.end.column++,b;s.maybeInsertedBrackets--}}),this.add("parens","insertion",function(y,C,$,_,b){if(b=="("){h($);var E=$.getSelectionRange(),L=_.doc.getTextRange(E);if(L!==""&&$.getWrapBehavioursEnabled())return f(E,L,"(",")");if(m.isSaneInsertion($,_))return m.recordAutoInsert($,_,")"),{text:"()",selection:[1,1]}}else if(b==")"){h($);var k=$.getCursorPosition(),M=_.doc.getLine(k.row),A=M.substring(k.column,k.column+1);if(A==")"){var R=_.$findOpeningBracket(")",{column:k.column+1,row:k.row});if(R!==null&&m.isAutoInsertedClosing(k,M,b))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(y,C,$,_,b){var E=_.doc.getTextRange(b);if(!b.isMultiLine()&&E=="("){h($);var L=_.doc.getLine(b.start.row),k=L.substring(b.start.column+1,b.start.column+2);if(k==")")return b.end.column++,b}}),this.add("brackets","insertion",function(y,C,$,_,b){if(b=="["){h($);var E=$.getSelectionRange(),L=_.doc.getTextRange(E);if(L!==""&&$.getWrapBehavioursEnabled())return f(E,L,"[","]");if(m.isSaneInsertion($,_))return m.recordAutoInsert($,_,"]"),{text:"[]",selection:[1,1]}}else if(b=="]"){h($);var k=$.getCursorPosition(),M=_.doc.getLine(k.row),A=M.substring(k.column,k.column+1);if(A=="]"){var R=_.$findOpeningBracket("]",{column:k.column+1,row:k.row});if(R!==null&&m.isAutoInsertedClosing(k,M,b))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(y,C,$,_,b){var E=_.doc.getTextRange(b);if(!b.isMultiLine()&&E=="["){h($);var L=_.doc.getLine(b.start.row),k=L.substring(b.start.column+1,b.start.column+2);if(k=="]")return b.end.column++,b}}),this.add("string_dquotes","insertion",function(y,C,$,_,b){var E=_.$mode.$quotes||u;if(b.length==1&&E[b]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(b)!=-1)return;h($);var L=b,k=$.getSelectionRange(),M=_.doc.getTextRange(k);if(M!==""&&(M.length!=1||!E[M])&&$.getWrapBehavioursEnabled())return f(k,M,L,L);if(!M){var A=$.getCursorPosition(),R=_.doc.getLine(A.row),S=R.substring(A.column-1,A.column),w=R.substring(A.column,A.column+1),x=_.getTokenAt(A.row,A.column),T=_.getTokenAt(A.row,A.column+1);if(S=="\\"&&x&&/escape/.test(x.type))return null;var O=x&&/string|escape/.test(x.type),I=!T||/string|escape/.test(T.type),N;if(w==L)N=O!==I,N&&/string\.end/.test(T.type)&&(N=!1);else{if(O&&!I||O&&I)return null;var P=_.$mode.tokenRe;P.lastIndex=0;var H=P.test(S);P.lastIndex=0;var V=P.test(w),U=_.$mode.$pairQuotesAfter,W=U&&U[L]&&U[L].test(S);if(!W&&H||V||w&&!/[\s;,.})\]\\]/.test(w))return null;var j=R[A.column-2];if(S==L&&(j==L||P.test(j)))return null;N=!0}return{text:N?L+L:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(y,C,$,_,b){var E=_.$mode.$quotes||u,L=_.doc.getTextRange(b);if(!b.isMultiLine()&&E.hasOwnProperty(L)){h($);var k=_.doc.getLine(b.start.row),M=k.substring(b.start.column+1,b.start.column+2);if(M==L)return b.end.column++,b}}),v.closeDocComment!==!1&&this.add("doc comment end","insertion",function(y,C,$,_,b){if(y==="doc-start"&&(b===`
1017
+ `||b===`\r
1018
+ `)&&$.selection.isEmpty()){var E=$.getCursorPosition(),L=_.doc.getLine(E.row),k=_.doc.getLine(E.row+1),M=this.$getIndent(L);if(/\s*\*/.test(k))return/^\s*\*/.test(L)?{text:b+M+"* ",selection:[1,3+M.length,1,3+M.length]}:{text:b+M+" * ",selection:[1,3+M.length,1,3+M.length]};if(/\/\*\*/.test(L.substring(0,E.column)))return{text:b+M+" * "+b+" "+M+"*/",selection:[1,4+M.length,1,4+M.length]}}})},m.isSaneInsertion=function(v,y){var C=v.getCursorPosition(),$=new p(y,C.row,C.column);if(!this.$matchTokenType($.getCurrentToken()||"text",g)){if(/[)}\]]/.test(v.session.getLine(C.row)[C.column]))return!0;var _=new p(y,C.row,C.column+1);if(!this.$matchTokenType(_.getCurrentToken()||"text",g))return!1}return $.stepForward(),$.getCurrentTokenRow()!==C.row||this.$matchTokenType($.getCurrentToken()||"text",i)},m.$matchTokenType=function(v,y){return y.indexOf(v.type||v)>-1},m.recordAutoInsert=function(v,y,C){var $=v.getCursorPosition(),_=y.doc.getLine($.row);this.isAutoInsertedClosing($,_,s.autoInsertedLineEnd[0])||(s.autoInsertedBrackets=0),s.autoInsertedRow=$.row,s.autoInsertedLineEnd=C+_.substr($.column),s.autoInsertedBrackets++},m.recordMaybeInsert=function(v,y,C){var $=v.getCursorPosition(),_=y.doc.getLine($.row);this.isMaybeInsertedClosing($,_)||(s.maybeInsertedBrackets=0),s.maybeInsertedRow=$.row,s.maybeInsertedLineStart=_.substr(0,$.column)+C,s.maybeInsertedLineEnd=_.substr($.column),s.maybeInsertedBrackets++},m.isAutoInsertedClosing=function(v,y,C){return s.autoInsertedBrackets>0&&v.row===s.autoInsertedRow&&C===s.autoInsertedLineEnd[0]&&y.substr(v.column)===s.autoInsertedLineEnd},m.isMaybeInsertedClosing=function(v,y){return s.maybeInsertedBrackets>0&&v.row===s.maybeInsertedRow&&y.substr(v.column)===s.maybeInsertedLineEnd&&y.substr(0,v.column)==s.maybeInsertedLineStart},m.popAutoInsertedClosing=function(){s.autoInsertedLineEnd=s.autoInsertedLineEnd.substr(1),s.autoInsertedBrackets--},m.clearMaybeInsertedClosing=function(){s&&(s.maybeInsertedBrackets=0,s.maybeInsertedRow=-1)},a.inherits(m,d),r.CstyleBehaviour=m}),ace.define("ace/unicode",["require","exports","module"],function(n,r,l){for(var a=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],d=0,p=[],o=0;o<a.length;o+=2)p.push(d+=a[o]),a[o+1]&&p.push(45,d+=a[o+1]);r.wordChars=String.fromCharCode.apply(null,p)}),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 a=n("../config"),d=n("../tokenizer").Tokenizer,p=n("./text_highlight_rules").TextHighlightRules,o=n("./behaviour/cstyle").CstyleBehaviour,g=n("../unicode"),i=n("../lib/lang"),s=n("../token_iterator").TokenIterator,c=n("../range").Range,u;u=function(){this.HighlightRules=p},(function(){this.$defaultBehaviour=new o,this.tokenRe=new RegExp("^["+g.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+g.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new d(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(h,f,m,v){var y=f.doc,C=!0,$=!0,_=1/0,b=f.getTabSize(),E=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var M=this.lineCommentStart.map(i.escapeRegExp).join("|"),L=this.lineCommentStart[0];else var M=i.escapeRegExp(this.lineCommentStart),L=this.lineCommentStart;M=new RegExp("^(\\s*)(?:"+M+") ?"),E=f.getUseSoftTabs();var S=function(V,U){var W=V.match(M);if(W){var j=W[1].length,q=W[0].length;!T(V,j,q)&&W[0][q-1]==" "&&q--,y.removeInLine(U,j,q)}},x=L+" ",R=function(V,U){(!C||/\S/.test(V))&&(T(V,_,_)?y.insertInLine({row:U,column:_},x):y.insertInLine({row:U,column:_},L))},w=function(V,U){return M.test(V)},T=function(V,U,W){for(var j=0;U--&&V.charAt(U)==" ";)j++;if(j%b!=0)return!1;for(var j=0;V.charAt(W++)==" ";)j++;return b>2?j%b!=b-1:j%b==0}}else{if(!this.blockComment)return!1;var L=this.blockComment.start,k=this.blockComment.end,M=new RegExp("^(\\s*)(?:"+i.escapeRegExp(L)+")"),A=new RegExp("(?:"+i.escapeRegExp(k)+")\\s*$"),R=function(N,P){w(N,P)||(!C||/\S/.test(N))&&(y.insertInLine({row:P,column:N.length},k),y.insertInLine({row:P,column:_},L))},S=function(N,P){var H;(H=N.match(A))&&y.removeInLine(P,N.length-H[0].length,N.length),(H=N.match(M))&&y.removeInLine(P,H[1].length,H[0].length)},w=function(N,P){if(M.test(N))return!0;for(var H=f.getTokens(P),V=0;V<H.length;V++)if(H[V].type==="comment")return!0}}function O(N){for(var P=m;P<=v;P++)N(y.getLine(P),P)}var I=1/0;O(function(N,P){var H=N.search(/\S/);H!==-1?(H<_&&(_=H),$&&!w(N,P)&&($=!1)):I>N.length&&(I=N.length)}),_==1/0&&(_=I,C=!1,$=!1),E&&_%b!=0&&(_=Math.floor(_/b)*b),O($?S:R)},this.toggleBlockComment=function(h,f,m,v){var y=this.blockComment;if(y){!y.start&&y[0]&&(y=y[0]);var C=new s(f,v.row,v.column),$=C.getCurrentToken();f.selection;var _=f.selection.toOrientedRange(),b,E;if($&&/comment/.test($.type)){for(var L,k;$&&/comment/.test($.type);){var M=$.value.indexOf(y.start);if(M!=-1){var A=C.getCurrentTokenRow(),R=C.getCurrentTokenColumn()+M;L=new c(A,R,A,R+y.start.length);break}$=C.stepBackward()}for(var C=new s(f,v.row,v.column),$=C.getCurrentToken();$&&/comment/.test($.type);){var M=$.value.indexOf(y.end);if(M!=-1){var A=C.getCurrentTokenRow(),R=C.getCurrentTokenColumn()+M;k=new c(A,R,A,R+y.end.length);break}$=C.stepForward()}k&&f.remove(k),L&&(f.remove(L),b=L.start.row,E=-y.start.length)}else E=y.start.length,b=m.start.row,f.insert(m.end,y.end),f.insert(m.start,y.start);_.start.row==b&&(_.start.column+=E),_.end.row==b&&(_.end.column+=E),f.selection.fromOrientedRange(_)}},this.getNextLineIndent=function(h,f,m){return this.$getIndent(f)},this.checkOutdent=function(h,f,m){return!1},this.autoOutdent=function(h,f,m){},this.$getIndent=function(h){return h.match(/^\s*/)[0]},this.createWorker=function(h){return null},this.createModeDelegates=function(h){this.$embeds=[],this.$modes={};for(var f in h)if(h[f]){var m=h[f],v=m.prototype.$id,y=a.$modes[v];y||(a.$modes[v]=y=new m),a.$modes[f]||(a.$modes[f]=y),this.$embeds.push(f),this.$modes[f]=y}for(var C=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],$=function(b){(function(E){var L=C[b],k=E[L];E[C[b]]=function(){return this.$delegator(L,arguments,k)}})(_)},_=this,f=0;f<C.length;f++)$(f)},this.$delegator=function(h,f,m){var v=f[0]||"start";if(typeof v!="string"){if(Array.isArray(v[2])){var y=v[2][v[2].length-1],C=this.$modes[y];if(C)return C[h].apply(C,[v[1]].concat([].slice.call(f,1)))}v=v[0]||"start"}for(var $=0;$<this.$embeds.length;$++)if(this.$modes[this.$embeds[$]]){var _=v.split(this.$embeds[$]);if(!_[0]&&_[1]){f[0]=_[1];var C=this.$modes[this.$embeds[$]];return C[h].apply(C,f)}}var b=m.apply(this,f);return m?b:void 0},this.transformAction=function(h,f,m,v,y){if(this.$behaviour){var C=this.$behaviour.getBehaviours();for(var $ in C)if(C[$][f]){var _=C[$][f].apply(this,arguments);if(_)return _}}},this.getKeywords=function(h){if(!this.completionKeywords){var f=this.$tokenizer.rules,m=[];for(var v in f)for(var y=f[v],C=0,$=y.length;C<$;C++)if(typeof y[C].token=="string")/keyword|support|storage/.test(y[C].token)&&m.push(y[C].regex);else if(typeof y[C].token=="object"){for(var _=0,b=y[C].token.length;_<b;_++)if(/keyword|support|storage/.test(y[C].token[_])){var v=y[C].regex.match(/\(.+?\)/g)[_];m.push(v.substr(1,v.length-2))}}this.completionKeywords=m}return h?m.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(h,f,m,v){var y=this.$keywordList||this.$createKeywordList();return y.map(function(C){return{name:C,value:C,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call(u.prototype),r.Mode=u}),ace.define("ace/apply_delta",["require","exports","module"],function(n,r,l){r.applyDelta=function(a,d,p){var o=d.start.row,g=d.start.column,i=a[o]||"";switch(d.action){case"insert":var s=d.lines;if(s.length===1)a[o]=i.substring(0,g)+d.lines[0]+i.substring(g);else{var c=[o,1].concat(d.lines);a.splice.apply(a,c),a[o]=i.substring(0,g)+a[o],a[o+d.lines.length-1]+=i.substring(g)}break;case"remove":var u=d.end.column,h=d.end.row;o===h?a[o]=i.substring(0,g)+i.substring(u):a.splice(o,h-o+1,i.substring(0,g)+a[h].substring(u));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(n,r,l){var a=n("./lib/oop"),d=n("./lib/event_emitter").EventEmitter,p=function(){function i(s,c,u){this.$onChange=this.onChange.bind(this),this.attach(s),typeof c!="number"?this.setPosition(c.row,c.column):this.setPosition(c,u)}return i.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},i.prototype.getDocument=function(){return this.document},i.prototype.onChange=function(s){if(!(s.start.row==s.end.row&&s.start.row!=this.row)&&!(s.start.row>this.row)){var c=g(s,{row:this.row,column:this.column},this.$insertRight);this.setPosition(c.row,c.column,!0)}},i.prototype.setPosition=function(s,c,u){var h;if(u?h={row:s,column:c}:h=this.$clipPositionToDocument(s,c),!(this.row==h.row&&this.column==h.column)){var f={row:this.row,column:this.column};this.row=h.row,this.column=h.column,this._signal("change",{old:f,value:h})}},i.prototype.detach=function(){this.document.off("change",this.$onChange)},i.prototype.attach=function(s){this.document=s||this.document,this.document.on("change",this.$onChange)},i.prototype.$clipPositionToDocument=function(s,c){var u={};return s>=this.document.getLength()?(u.row=Math.max(0,this.document.getLength()-1),u.column=this.document.getLine(u.row).length):s<0?(u.row=0,u.column=0):(u.row=s,u.column=Math.min(this.document.getLine(u.row).length,Math.max(0,c))),c<0&&(u.column=0),u},i}();p.prototype.$insertRight=!1,a.implement(p.prototype,d);function o(i,s,c){var u=c?i.column<=s.column:i.column<s.column;return i.row<s.row||i.row==s.row&&u}function g(i,s,c){var u=i.action=="insert",h=(u?1:-1)*(i.end.row-i.start.row),f=(u?1:-1)*(i.end.column-i.start.column),m=i.start,v=u?m:i.end;return o(s,m,c)?{row:s.row,column:s.column}:o(v,s,!c)?{row:s.row+h,column:s.column+(s.row==v.row?f:0)}:{row:m.row,column:m.column}}r.Anchor=p}),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 a=n("./lib/oop"),d=n("./apply_delta").applyDelta,p=n("./lib/event_emitter").EventEmitter,o=n("./range").Range,g=n("./anchor").Anchor,i=function(){function s(c){this.$lines=[""],c.length===0?this.$lines=[""]:Array.isArray(c)?this.insertMergedLines({row:0,column:0},c):this.insert({row:0,column:0},c)}return s.prototype.setValue=function(c){var u=this.getLength()-1;this.remove(new o(0,0,u,this.getLine(u).length)),this.insert({row:0,column:0},c||"")},s.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},s.prototype.createAnchor=function(c,u){return new g(this,c,u)},s.prototype.$detectNewLine=function(c){var u=c.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=u?u[1]:`
1019
+ `,this._signal("changeNewLineMode")},s.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
1020
+ `;case"unix":return`
1021
+ `;default:return this.$autoNewLine||`
1022
+ `}},s.prototype.setNewLineMode=function(c){this.$newLineMode!==c&&(this.$newLineMode=c,this._signal("changeNewLineMode"))},s.prototype.getNewLineMode=function(){return this.$newLineMode},s.prototype.isNewLine=function(c){return c==`\r
1023
+ `||c=="\r"||c==`
1024
+ `},s.prototype.getLine=function(c){return this.$lines[c]||""},s.prototype.getLines=function(c,u){return this.$lines.slice(c,u+1)},s.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},s.prototype.getLength=function(){return this.$lines.length},s.prototype.getTextRange=function(c){return this.getLinesForRange(c).join(this.getNewLineCharacter())},s.prototype.getLinesForRange=function(c){var u;if(c.start.row===c.end.row)u=[this.getLine(c.start.row).substring(c.start.column,c.end.column)];else{u=this.getLines(c.start.row,c.end.row),u[0]=(u[0]||"").substring(c.start.column);var h=u.length-1;c.end.row-c.start.row==h&&(u[h]=u[h].substring(0,c.end.column))}return u},s.prototype.insertLines=function(c,u){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(c,u)},s.prototype.removeLines=function(c,u){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(c,u)},s.prototype.insertNewLine=function(c){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(c,["",""])},s.prototype.insert=function(c,u){return this.getLength()<=1&&this.$detectNewLine(u),this.insertMergedLines(c,this.$split(u))},s.prototype.insertInLine=function(c,u){var h=this.clippedPos(c.row,c.column),f=this.pos(c.row,c.column+u.length);return this.applyDelta({start:h,end:f,action:"insert",lines:[u]},!0),this.clonePos(f)},s.prototype.clippedPos=function(c,u){var h=this.getLength();c===void 0?c=h:c<0?c=0:c>=h&&(c=h-1,u=void 0);var f=this.getLine(c);return u==null&&(u=f.length),u=Math.min(Math.max(u,0),f.length),{row:c,column:u}},s.prototype.clonePos=function(c){return{row:c.row,column:c.column}},s.prototype.pos=function(c,u){return{row:c,column:u}},s.prototype.$clipPosition=function(c){var u=this.getLength();return c.row>=u?(c.row=Math.max(0,u-1),c.column=this.getLine(u-1).length):(c.row=Math.max(0,c.row),c.column=Math.min(Math.max(c.column,0),this.getLine(c.row).length)),c},s.prototype.insertFullLines=function(c,u){c=Math.min(Math.max(c,0),this.getLength());var h=0;c<this.getLength()?(u=u.concat([""]),h=0):(u=[""].concat(u),c--,h=this.$lines[c].length),this.insertMergedLines({row:c,column:h},u)},s.prototype.insertMergedLines=function(c,u){var h=this.clippedPos(c.row,c.column),f={row:h.row+u.length-1,column:(u.length==1?h.column:0)+u[u.length-1].length};return this.applyDelta({start:h,end:f,action:"insert",lines:u}),this.clonePos(f)},s.prototype.remove=function(c){var u=this.clippedPos(c.start.row,c.start.column),h=this.clippedPos(c.end.row,c.end.column);return this.applyDelta({start:u,end:h,action:"remove",lines:this.getLinesForRange({start:u,end:h})}),this.clonePos(u)},s.prototype.removeInLine=function(c,u,h){var f=this.clippedPos(c,u),m=this.clippedPos(c,h);return this.applyDelta({start:f,end:m,action:"remove",lines:this.getLinesForRange({start:f,end:m})},!0),this.clonePos(f)},s.prototype.removeFullLines=function(c,u){c=Math.min(Math.max(0,c),this.getLength()-1),u=Math.min(Math.max(0,u),this.getLength()-1);var h=u==this.getLength()-1&&c>0,f=u<this.getLength()-1,m=h?c-1:c,v=h?this.getLine(m).length:0,y=f?u+1:u,C=f?0:this.getLine(y).length,$=new o(m,v,y,C),_=this.$lines.slice(c,u+1);return this.applyDelta({start:$.start,end:$.end,action:"remove",lines:this.getLinesForRange($)}),_},s.prototype.removeNewLine=function(c){c<this.getLength()-1&&c>=0&&this.applyDelta({start:this.pos(c,this.getLine(c).length),end:this.pos(c+1,0),action:"remove",lines:["",""]})},s.prototype.replace=function(c,u){if(c instanceof o||(c=o.fromPoints(c.start,c.end)),u.length===0&&c.isEmpty())return c.start;if(u==this.getTextRange(c))return c.end;this.remove(c);var h;return u?h=this.insert(c.start,u):h=c.start,h},s.prototype.applyDeltas=function(c){for(var u=0;u<c.length;u++)this.applyDelta(c[u])},s.prototype.revertDeltas=function(c){for(var u=c.length-1;u>=0;u--)this.revertDelta(c[u])},s.prototype.applyDelta=function(c,u){var h=c.action=="insert";(h?c.lines.length<=1&&!c.lines[0]:!o.comparePoints(c.start,c.end))||(h&&c.lines.length>2e4?this.$splitAndapplyLargeDelta(c,2e4):(d(this.$lines,c,u),this._signal("change",c)))},s.prototype.$safeApplyDelta=function(c){var u=this.$lines.length;(c.action=="remove"&&c.start.row<u&&c.end.row<u||c.action=="insert"&&c.start.row<=u)&&this.applyDelta(c)},s.prototype.$splitAndapplyLargeDelta=function(c,u){for(var h=c.lines,f=h.length-u+1,m=c.start.row,v=c.start.column,y=0,C=0;y<f;y=C){C+=u-1;var $=h.slice(y,C);$.push(""),this.applyDelta({start:this.pos(m+y,v),end:this.pos(m+C,v=0),action:c.action,lines:$},!0)}c.lines=h.slice(y),c.start.row=m+y,c.start.column=v,this.applyDelta(c,!0)},s.prototype.revertDelta=function(c){this.$safeApplyDelta({start:this.clonePos(c.start),end:this.clonePos(c.end),action:c.action=="insert"?"remove":"insert",lines:c.lines.slice()})},s.prototype.indexToPosition=function(c,u){for(var h=this.$lines||this.getAllLines(),f=this.getNewLineCharacter().length,m=u||0,v=h.length;m<v;m++)if(c-=h[m].length+f,c<0)return{row:m,column:c+h[m].length+f};return{row:v-1,column:c+h[v-1].length+f}},s.prototype.positionToIndex=function(c,u){for(var h=this.$lines||this.getAllLines(),f=this.getNewLineCharacter().length,m=0,v=Math.min(c.row,h.length),y=u||0;y<v;++y)m+=h[y].length+f;return m+c.column},s.prototype.$split=function(c){return c.split(/\r\n|\r|\n/)},s}();i.prototype.$autoNewLine="",i.prototype.$newLineMode="auto",a.implement(i.prototype,p),r.Document=i}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(n,r,l){var a=n("./lib/oop"),d=n("./lib/event_emitter").EventEmitter,p=function(){function o(g,i){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=g;var s=this;this.$worker=function(){if(s.running){for(var c=new Date,u=s.currentLine,h=-1,f=s.doc,m=u;s.lines[u];)u++;var v=f.getLength(),y=0;for(s.running=!1;u<v;){s.$tokenizeRow(u),h=u;do u++;while(s.lines[u]);if(y++,y%5===0&&new Date-c>20){s.running=setTimeout(s.$worker,20);break}}s.currentLine=u,h==-1&&(h=u),m<=h&&s.fireUpdateEvent(m,h)}}}return o.prototype.setTokenizer=function(g){this.tokenizer=g,this.lines=[],this.states=[],this.start(0)},o.prototype.setDocument=function(g){this.doc=g,this.lines=[],this.states=[],this.stop()},o.prototype.fireUpdateEvent=function(g,i){var s={first:g,last:i};this._signal("update",{data:s})},o.prototype.start=function(g){this.currentLine=Math.min(g||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(g){var i=g.start.row,s=g.end.row-i;if(s===0)this.lines[i]=null;else if(g.action=="remove")this.lines.splice(i,s+1,null),this.states.splice(i,s+1,null);else{var c=Array(s+1);c.unshift(i,1),this.lines.splice.apply(this.lines,c),this.states.splice.apply(this.states,c)}this.currentLine=Math.min(i,this.currentLine,this.doc.getLength()),this.stop()},o.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},o.prototype.getTokens=function(g){return this.lines[g]||this.$tokenizeRow(g)},o.prototype.getState=function(g){return this.currentLine==g&&this.$tokenizeRow(g),this.states[g]||"start"},o.prototype.$tokenizeRow=function(g){var i=this.doc.getLine(g),s=this.states[g-1],c=this.tokenizer.getLineTokens(i,s,g);return this.states[g]+""!=c.state+""?(this.states[g]=c.state,this.lines[g+1]=null,this.currentLine>g+1&&(this.currentLine=g+1)):this.currentLine==g&&(this.currentLine=g+1),this.lines[g]=c.tokens},o.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},o}();a.implement(p.prototype,d),r.BackgroundTokenizer=p}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(n,r,l){var a=n("./lib/lang"),d=n("./range").Range,p=function(){function o(g,i,s){s===void 0&&(s="text"),this.setRegexp(g),this.clazz=i,this.type=s}return o.prototype.setRegexp=function(g){this.regExp+""!=g+""&&(this.regExp=g,this.cache=[])},o.prototype.update=function(g,i,s,c){if(this.regExp)for(var u=c.firstRow,h=c.lastRow,f={},m=u;m<=h;m++){var v=this.cache[m];v==null&&(v=a.getMatchOffsets(s.getLine(m),this.regExp),v.length>this.MAX_RANGES&&(v=v.slice(0,this.MAX_RANGES)),v=v.map(function(_){return new d(m,_.offset,m,_.offset+_.length)}),this.cache[m]=v.length?v:"");for(var y=v.length;y--;){var C=v[y].toScreenRange(s),$=C.toString();f[$]||(f[$]=!0,i.drawSingleLineMarker(g,C,this.clazz,c))}}},o}();p.prototype.MAX_RANGES=500,r.SearchHighlight=p}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(n,r,l){var a=function(){function _(){this.$keepRedoStack,this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return _.prototype.addSession=function(b){this.$session=b},_.prototype.add=function(b,E,L){if(!this.$fromUndo&&b!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),E===!1||!this.lastDeltas){this.lastDeltas=[];var k=this.$undoStack.length;k>this.$undoDepth-1&&this.$undoStack.splice(0,k-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),b.id=this.$rev=++this.$maxRev}(b.action=="remove"||b.action=="insert")&&(this.$lastDelta=b),this.lastDeltas.push(b)}},_.prototype.addSelection=function(b,E){this.selections.push({value:b,rev:E||this.$rev})},_.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},_.prototype.markIgnored=function(b,E){E==null&&(E=this.$rev+1);for(var L=this.$undoStack,k=L.length;k--;){var M=L[k][0];if(M.id<=b)break;M.id<E&&(M.ignore=!0)}this.lastDeltas=null},_.prototype.getSelection=function(b,E){for(var L=this.selections,k=L.length;k--;){var M=L[k];if(M.rev<b)return E&&(M=L[k+1]),M}},_.prototype.getRevision=function(){return this.$rev},_.prototype.getDeltas=function(b,E){E==null&&(E=this.$rev+1);for(var L=this.$undoStack,k=null,M=0,A=L.length;A--;){var R=L[A][0];if(R.id<E&&!k&&(k=A+1),R.id<=b){M=A+1;break}}return L.slice(M,k)},_.prototype.getChangedRanges=function(b,E){E==null&&(E=this.$rev+1)},_.prototype.getChangedLines=function(b,E){E==null&&(E=this.$rev+1)},_.prototype.undo=function(b,E){this.lastDeltas=null;var L=this.$undoStack;if(d(L,L.length)){b||(b=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var k=L.pop(),M=null;return k&&(M=b.undoChanges(k,E),this.$redoStack.push(k),this.$syncRev()),this.$fromUndo=!1,M}},_.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);$(this.$redoStack,L),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(A){A[0].id=++this.$maxRev},this)}var k=this.$redoStack.pop(),M=null;return k&&(M=b.redoChanges(k,E),this.$undoStack.push(k),this.$syncRev()),this.$fromUndo=!1,M},_.prototype.$syncRev=function(){var b=this.$undoStack,E=b[b.length-1],L=E&&E[0].id||0;this.$redoStackBaseRev=L,this.$rev=L},_.prototype.reset=function(){this.lastDeltas=null,this.$lastDelta=null,this.$undoStack=[],this.$redoStack=[],this.$rev=0,this.mark=0,this.$redoStackBaseRev=this.$rev,this.selections=[]},_.prototype.canUndo=function(){return this.$undoStack.length>0},_.prototype.canRedo=function(){return this.$redoStack.length>0},_.prototype.bookmark=function(b){b==null&&(b=this.$rev),this.mark=b},_.prototype.isAtBookmark=function(){return this.$rev===this.mark},_.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},_.prototype.fromJSON=function(b){this.reset(),this.$undoStack=b.$undoStack,this.$redoStack=b.$redoStack},_.prototype.$prettyPrint=function(b){return b?s(b):s(this.$undoStack)+`
1025
+ ---
1026
+ `+s(this.$redoStack)},_}();a.prototype.hasUndo=a.prototype.canUndo,a.prototype.hasRedo=a.prototype.canRedo,a.prototype.isClean=a.prototype.isAtBookmark,a.prototype.markClean=a.prototype.bookmark;function d(_,b){for(var E=b;E--;){var L=_[E];if(L&&!L[0].ignore){for(;E<b-1;){var k=h(_[E],_[E+1]);_[E]=k[0],_[E+1]=k[1],E++}return!0}}}var p=n("./range").Range,o=p.comparePoints;p.comparePoints;function g(_){return{row:_.row,column:_.column}}function i(_){return{start:g(_.start),end:g(_.end),action:_.action,lines:_.lines.slice()}}function s(_){if(_=_||this,Array.isArray(_))return _.map(s).join(`
1027
+ `);var b="";return _.action?(b=_.action=="insert"?"+":"-",b+="["+_.lines+"]"):_.value&&(Array.isArray(_.value)?b=_.value.map(c).join(`
1028
+ `):b=c(_.value)),_.start&&(b+=c(_)),(_.id||_.rev)&&(b+=" ("+(_.id||_.rev)+")"),b}function c(_){return _.start.row+":"+_.start.column+"=>"+_.end.row+":"+_.end.column}function u(_,b){var E=_.action=="insert",L=b.action=="insert";if(E&&L)if(o(b.start,_.end)>=0)m(b,_,-1);else if(o(b.start,_.start)<=0)m(_,b,1);else return null;else if(E&&!L)if(o(b.start,_.end)>=0)m(b,_,-1);else if(o(b.end,_.start)<=0)m(_,b,-1);else return null;else if(!E&&L)if(o(b.start,_.start)>=0)m(b,_,1);else if(o(b.start,_.start)<=0)m(_,b,1);else return null;else if(!E&&!L)if(o(b.start,_.start)>=0)m(b,_,1);else if(o(b.end,_.start)<=0)m(_,b,-1);else return null;return[b,_]}function h(_,b){for(var E=_.length;E--;)for(var L=0;L<b.length;L++)if(!u(_[E],b[L])){for(;E<_.length;){for(;L--;)u(b[L],_[E]);L=b.length,E++}return[_,b]}return _.selectionBefore=b.selectionBefore=_.selectionAfter=b.selectionAfter=null,[b,_]}function f(_,b){var E=_.action=="insert",L=b.action=="insert";if(E&&L)o(_.start,b.start)<0?m(b,_,1):m(_,b,1);else if(E&&!L)o(_.start,b.end)>=0?m(_,b,-1):(o(_.start,b.start)<=0||m(_,p.fromPoints(b.start,_.start),-1),m(b,_,1));else if(!E&&L)o(b.start,_.end)>=0?m(b,_,-1):(o(b.start,_.start)<=0||m(b,p.fromPoints(_.start,b.start),-1),m(_,b,1));else if(!E&&!L)if(o(b.start,_.end)>=0)m(b,_,-1);else if(o(b.end,_.start)<=0)m(_,b,-1);else{var k,M;return o(_.start,b.start)<0&&(k=_,_=y(_,b.start)),o(_.end,b.end)>0&&(M=y(_,b.end)),v(b.end,_.start,_.end,-1),M&&!k&&(_.lines=M.lines,_.start=M.start,_.end=M.end,M=_),[b,k,M].filter(Boolean)}return[b,_]}function m(_,b,E){v(_.start,b.start,b.end,E),v(_.end,b.start,b.end,E)}function v(_,b,E,L){_.row==(L==1?b:E).row&&(_.column+=L*(E.column-b.column)),_.row+=L*(E.row-b.row)}function y(_,b){var E=_.lines,L=_.end;_.end=g(b);var k=_.end.row-_.start.row,M=E.splice(k,E.length),A=k?b.column:b.column-_.start.column;E.push(M[0].substring(0,A)),M[0]=M[0].substr(A);var R={start:g(b),end:L,lines:M,action:_.action};return R}function C(_,b){b=i(b);for(var E=_.length;E--;){for(var L=_[E],k=0;k<L.length;k++){var M=L[k],A=f(M,b);b=A[0],A.length!=2&&(A[2]?(L.splice(k+1,1,A[1],A[2]),k++):A[1]||(L.splice(k,1),k--))}L.length||_.splice(E,1)}return _}function $(_,b){for(var E=0;E<b.length;E++)for(var L=b[E],k=0;k<L.length;k++)C(_,L[k])}r.UndoManager=a}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(n,r,l){var a=n("../range").Range,d=function(){function p(o,g){this.foldData=o,Array.isArray(g)?this.folds=g:g=this.folds=[g];var i=g[g.length-1];this.range=new a(g[0].start.row,g[0].start.column,i.end.row,i.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(s){s.setFoldLine(this)},this)}return p.prototype.shiftRow=function(o){this.start.row+=o,this.end.row+=o,this.folds.forEach(function(g){g.start.row+=o,g.end.row+=o})},p.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(g,i){return-g.range.compareEnd(i.start.row,i.start.column)}),this.range.compareEnd(o.start.row,o.start.column)>0?(this.end.row=o.end.row,this.end.column=o.end.column):this.range.compareStart(o.end.row,o.end.column)<0&&(this.start.row=o.start.row,this.start.column=o.start.column)}else if(o.start.row==this.end.row)this.folds.push(o),this.end.row=o.end.row,this.end.column=o.end.column;else if(o.end.row==this.start.row)this.folds.unshift(o),this.start.row=o.start.row,this.start.column=o.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");o.foldLine=this},p.prototype.containsRow=function(o){return o>=this.start.row&&o<=this.end.row},p.prototype.walk=function(o,g,i){var s=0,c=this.folds,u,h,f,m=!0;g==null&&(g=this.end.row,i=this.end.column);for(var v=0;v<c.length;v++){if(u=c[v],h=u.range.compareStart(g,i),h==-1){o(null,g,i,s,m);return}if(f=o(null,u.start.row,u.start.column,s,m),f=!f&&o(u.placeholder,u.start.row,u.start.column,s),f||h===0)return;m=!u.sameRow,s=u.end.column}o(null,g,i,s,m)},p.prototype.getNextFoldTo=function(o,g){for(var i,s,c=0;c<this.folds.length;c++){if(i=this.folds[c],s=i.range.compareEnd(o,g),s==-1)return{fold:i,kind:"after"};if(s===0)return{fold:i,kind:"inside"}}return null},p.prototype.addRemoveChars=function(o,g,i){var s=this.getNextFoldTo(o,g),c,u;if(s){if(c=s.fold,s.kind=="inside"&&c.start.column!=g&&c.start.row!=o)window.console&&window.console.log(o,g,c);else if(c.start.row==o){u=this.folds;var h=u.indexOf(c);for(h===0&&(this.start.column+=i),h;h<u.length;h++){if(c=u[h],c.start.column+=i,!c.sameRow)return;c.end.column+=i}this.end.column+=i}}},p.prototype.split=function(o,g){var i=this.getNextFoldTo(o,g);if(!i||i.kind=="inside")return null;var s=i.fold,c=this.folds,u=this.foldData,h=c.indexOf(s),f=c[h-1];this.end.row=f.end.row,this.end.column=f.end.column,c=c.splice(h,c.length-h);var m=new p(u,c);return u.splice(u.indexOf(this)+1,0,m),m},p.prototype.merge=function(o){for(var g=o.folds,i=0;i<g.length;i++)this.addFold(g[i]);var s=this.foldData;s.splice(s.indexOf(o),1)},p.prototype.toString=function(){var o=[this.range.toString()+": ["];return this.folds.forEach(function(g){o.push(" "+g.toString())}),o.push("]"),o.join(`
1029
+ `)},p.prototype.idxToPosition=function(o){for(var g=0,i=0;i<this.folds.length;i++){var s=this.folds[i];if(o-=s.start.column-g,o<0)return{row:s.start.row,column:s.start.column+o};if(o-=s.placeholder.length,o<0)return s.start;g=s.end.column}return{row:this.end.row,column:this.end.column+o}},p}();r.FoldLine=d}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(n,r,l){var a=n("./range").Range,d=a.comparePoints,p=function(){function o(){this.ranges=[],this.$bias=1}return o.prototype.pointIndex=function(g,i,s){for(var c=this.ranges,u=s||0;u<c.length;u++){var h=c[u],f=d(g,h.end);if(!(f>0)){var m=d(g,h.start);return f===0?i&&m!==0?-u-2:u:m>0||m===0&&!i?u:-u-1}}return-u-1},o.prototype.add=function(g){var i=!g.isEmpty(),s=this.pointIndex(g.start,i);s<0&&(s=-s-1);var c=this.pointIndex(g.end,i,s);return c<0?c=-c-1:c++,this.ranges.splice(s,c-s,g)},o.prototype.addList=function(g){for(var i=[],s=g.length;s--;)i.push.apply(i,this.add(g[s]));return i},o.prototype.substractPoint=function(g){var i=this.pointIndex(g);if(i>=0)return this.ranges.splice(i,1)},o.prototype.merge=function(){var g=[],i=this.ranges;i=i.sort(function(f,m){return d(f.start,m.start)});for(var s=i[0],c,u=1;u<i.length;u++){c=s,s=i[u];var h=d(c.end,s.start);h<0||h==0&&!c.isEmpty()&&!s.isEmpty()||(d(c.end,s.end)<0&&(c.end.row=s.end.row,c.end.column=s.end.column),i.splice(u,1),g.push(s),s=c,u--)}return this.ranges=i,g},o.prototype.contains=function(g,i){return this.pointIndex({row:g,column:i})>=0},o.prototype.containsPoint=function(g){return this.pointIndex(g)>=0},o.prototype.rangeAtPoint=function(g){var i=this.pointIndex(g);if(i>=0)return this.ranges[i]},o.prototype.clipRows=function(g,i){var s=this.ranges;if(s[0].start.row>i||s[s.length-1].start.row<g)return[];var c=this.pointIndex({row:g,column:0});c<0&&(c=-c-1);var u=this.pointIndex({row:i,column:0},c);u<0&&(u=-u-1);for(var h=[],f=c;f<u;f++)h.push(s[f]);return h},o.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},o.prototype.attach=function(g){this.session&&this.detach(),this.session=g,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(g){for(var i=g.start,s=g.end,c=i.row,u=s.row,h=this.ranges,f=0,m=h.length;f<m;f++){var v=h[f];if(v.end.row>=c)break}if(g.action=="insert")for(var y=u-c,C=-i.column+s.column;f<m;f++){var v=h[f];if(v.start.row>c)break;if(v.start.row==c&&v.start.column>=i.column&&(v.start.column==i.column&&this.$bias<=0||(v.start.column+=C,v.start.row+=y)),v.end.row==c&&v.end.column>=i.column){if(v.end.column==i.column&&this.$bias<0)continue;v.end.column==i.column&&C>0&&f<m-1&&v.end.column>v.start.column&&v.end.column==h[f+1].start.column&&(v.end.column-=C),v.end.column+=C,v.end.row+=y}}else for(var y=c-u,C=i.column-s.column;f<m;f++){var v=h[f];if(v.start.row>u)break;v.end.row<u&&(c<v.end.row||c==v.end.row&&i.column<v.end.column)?(v.end.row=c,v.end.column=i.column):v.end.row==u?v.end.column<=s.column?(y||v.end.column>i.column)&&(v.end.column=i.column,v.end.row=i.row):(v.end.column+=C,v.end.row+=y):v.end.row>u&&(v.end.row+=y),v.start.row<u&&(c<v.start.row||c==v.start.row&&i.column<v.start.column)?(v.start.row=c,v.start.column=i.column):v.start.row==u?v.start.column<=s.column?(y||v.start.column>i.column)&&(v.start.column=i.column,v.start.row=i.row):(v.start.column+=C,v.start.row+=y):v.start.row>u&&(v.start.row+=y)}if(y!=0&&f<m)for(;f<m;f++){var v=h[f];v.start.row+=y,v.end.row+=y}},o}();p.prototype.comparePoints=d,r.RangeList=p}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(n,r,l){var a=this&&this.__extends||function(){var c=function(u,h){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var v in m)Object.prototype.hasOwnProperty.call(m,v)&&(f[v]=m[v])},c(u,h)};return function(u,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");c(u,h);function f(){this.constructor=u}u.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}}(),d=n("../range_list").RangeList,p=function(c){a(u,c);function u(h,f){var m=c.call(this)||this;return m.foldLine=null,m.placeholder=f,m.range=h,m.start=h.start,m.end=h.end,m.sameRow=h.start.row==h.end.row,m.subFolds=m.ranges=[],m}return u.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},u.prototype.setFoldLine=function(h){this.foldLine=h,this.subFolds.forEach(function(f){f.setFoldLine(h)})},u.prototype.clone=function(){var h=this.range.clone(),f=new u(h,this.placeholder);return this.subFolds.forEach(function(m){f.subFolds.push(m.clone())}),f.collapseChildren=this.collapseChildren,f},u.prototype.addSubFold=function(h){if(!this.range.isEqual(h)){g(h,this.start);for(var C=h.start.row,$=h.start.column,f=0,m=-1;f<this.subFolds.length&&(m=this.subFolds[f].range.compare(C,$),m==1);f++);var v=this.subFolds[f],y=0;if(m==0){if(v.range.containsRange(h))return v.addSubFold(h);y=1}for(var C=h.range.end.row,$=h.range.end.column,_=f,m=-1;_<this.subFolds.length&&(m=this.subFolds[_].range.compare(C,$),m==1);_++);m==0&&_++;for(var b=this.subFolds.splice(f,_-f,h),E=m==0?b.length-1:b.length,L=y;L<E;L++)h.addSubFold(b[L]);return h.setFoldLine(this.foldLine),h}},u.prototype.restoreRange=function(h){return s(h,this.start)},u}(d);function o(c,u){c.row-=u.row,c.row==0&&(c.column-=u.column)}function g(c,u){o(c.start,u),o(c.end,u)}function i(c,u){c.row==0&&(c.column+=u.column),c.row+=u.row}function s(c,u){i(c.start,u),i(c.end,u)}r.Fold=p}),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 a=n("../range").Range,d=n("./fold_line").FoldLine,p=n("./fold").Fold,o=n("../token_iterator").TokenIterator,g=n("../mouse/mouse_event").MouseEvent;function i(){this.getFoldAt=function(s,c,u){var h=this.getFoldLine(s);if(!h)return null;for(var f=h.folds,m=0;m<f.length;m++){var v=f[m].range;if(v.contains(s,c)){if(u==1&&v.isEnd(s,c)&&!v.isEmpty())continue;if(u==-1&&v.isStart(s,c)&&!v.isEmpty())continue;return f[m]}}},this.getFoldsInRange=function(s){var c=s.start,u=s.end,h=this.$foldData,f=[];c.column+=1,u.column-=1;for(var m=0;m<h.length;m++){var v=h[m].range.compareRange(s);if(v!=2){if(v==-2)break;for(var y=h[m].folds,C=0;C<y.length;C++){var $=y[C];if(v=$.range.compareRange(s),v==-2)break;if(v==2)continue;if(v==42)break;f.push($)}}}return c.column-=1,u.column+=1,f},this.getFoldsInRangeList=function(s){if(Array.isArray(s)){var c=[];s.forEach(function(u){c=c.concat(this.getFoldsInRange(u))},this)}else var c=this.getFoldsInRange(s);return c},this.getAllFolds=function(){for(var s=[],c=this.$foldData,u=0;u<c.length;u++)for(var h=0;h<c[u].folds.length;h++)s.push(c[u].folds[h]);return s},this.getFoldStringAt=function(s,c,u,h){if(h=h||this.getFoldLine(s),!h)return null;for(var f={end:{column:0}},m,v,y=0;y<h.folds.length;y++){v=h.folds[y];var C=v.range.compareEnd(s,c);if(C==-1){m=this.getLine(v.start.row).substring(f.end.column,v.start.column);break}else if(C===0)return null;f=v}return m||(m=this.getLine(v.start.row).substring(f.end.column)),u==-1?m.substring(0,c-f.end.column):u==1?m.substring(c-f.end.column):m},this.getFoldLine=function(s,c){var u=this.$foldData,h=0;for(c&&(h=u.indexOf(c)),h==-1&&(h=0),h;h<u.length;h++){var f=u[h];if(f.start.row<=s&&f.end.row>=s)return f;if(f.end.row>s)return null}return null},this.getNextFoldLine=function(s,c){var u=this.$foldData,h=0;for(c&&(h=u.indexOf(c)),h==-1&&(h=0),h;h<u.length;h++){var f=u[h];if(f.end.row>=s)return f}return null},this.getFoldedRowCount=function(s,c){for(var u=this.$foldData,h=c-s+1,f=0;f<u.length;f++){var m=u[f],v=m.end.row,y=m.start.row;if(v>=c){y<c&&(y>=s?h-=c-y:h=0);break}else v>=s&&(y>=s?h-=v-y:h-=v-s+1)}return h},this.$addFoldLine=function(s){return this.$foldData.push(s),this.$foldData.sort(function(c,u){return c.start.row-u.start.row}),s},this.addFold=function(s,c){var u=this.$foldData,h=!1,f;s instanceof p?f=s:(f=new p(c,s),f.collapseChildren=c.collapseChildren),this.$clipRangeToDocument(f.range);var m=f.start.row,v=f.start.column,y=f.end.row,C=f.end.column,$=this.getFoldAt(m,v,1),_=this.getFoldAt(y,C,-1);if($&&_==$)return $.addSubFold(f);$&&!$.range.isStart(m,v)&&this.removeFold($),_&&!_.range.isEnd(y,C)&&this.removeFold(_);var b=this.getFoldsInRange(f.range);b.length>0&&(this.removeFolds(b),f.collapseChildren||b.forEach(function(M){f.addSubFold(M)}));for(var E=0;E<u.length;E++){var L=u[E];if(y==L.start.row){L.addFold(f),h=!0;break}else if(m==L.end.row){if(L.addFold(f),h=!0,!f.sameRow){var k=u[E+1];if(k&&k.start.row==y){L.merge(k);break}}break}else if(y<=L.start.row)break}return h||(L=this.$addFoldLine(new d(this.$foldData,f))),this.$useWrapMode?this.$updateWrapData(L.start.row,L.start.row):this.$updateRowLengthCache(L.start.row,L.start.row),this.$modified=!0,this._signal("changeFold",{data:f,action:"add"}),f},this.addFolds=function(s){s.forEach(function(c){this.addFold(c)},this)},this.removeFold=function(s){var c=s.foldLine,u=c.start.row,h=c.end.row,f=this.$foldData,m=c.folds;if(m.length==1)f.splice(f.indexOf(c),1);else if(c.range.isEnd(s.end.row,s.end.column))m.pop(),c.end.row=m[m.length-1].end.row,c.end.column=m[m.length-1].end.column;else if(c.range.isStart(s.start.row,s.start.column))m.shift(),c.start.row=m[0].start.row,c.start.column=m[0].start.column;else if(s.sameRow)m.splice(m.indexOf(s),1);else{var v=c.split(s.start.row,s.start.column);m=v.folds,m.shift(),v.start.row=m[0].start.row,v.start.column=m[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(u,h):this.$updateRowLengthCache(u,h)),this.$modified=!0,this._signal("changeFold",{data:s,action:"remove"})},this.removeFolds=function(s){for(var c=[],u=0;u<s.length;u++)c.push(s[u]);c.forEach(function(h){this.removeFold(h)},this),this.$modified=!0},this.expandFold=function(s){this.removeFold(s),s.subFolds.forEach(function(c){s.restoreRange(c),this.addFold(c)},this),s.collapseChildren>0&&this.foldAll(s.start.row+1,s.end.row,s.collapseChildren-1),s.subFolds=[]},this.expandFolds=function(s){s.forEach(function(c){this.expandFold(c)},this)},this.unfold=function(s,c){var u,h;if(s==null)u=new a(0,0,this.getLength(),0),c==null&&(c=!0);else if(typeof s=="number")u=new a(s,0,s,this.getLine(s).length);else if("row"in s)u=a.fromPoints(s,s);else{if(Array.isArray(s))return h=[],s.forEach(function(m){h=h.concat(this.unfold(m))},this),h;u=s}h=this.getFoldsInRangeList(u);for(var f=h;h.length==1&&a.comparePoints(h[0].start,u.start)<0&&a.comparePoints(h[0].end,u.end)>0;)this.expandFolds(h),h=this.getFoldsInRangeList(u);if(c!=!1?this.removeFolds(h):this.expandFolds(h),f.length)return f},this.isRowFolded=function(s,c){return!!this.getFoldLine(s,c)},this.getRowFoldEnd=function(s,c){var u=this.getFoldLine(s,c);return u?u.end.row:s},this.getRowFoldStart=function(s,c){var u=this.getFoldLine(s,c);return u?u.start.row:s},this.getFoldDisplayLine=function(s,c,u,h,f){h==null&&(h=s.start.row),f==null&&(f=0),c==null&&(c=s.end.row),u==null&&(u=this.getLine(c).length);var m=this.doc,v="";return s.walk(function(y,C,$,_){if(!(C<h)){if(C==h){if($<f)return;_=Math.max(f,_)}y!=null?v+=y:v+=m.getLine(C).substring(_,$)}},c,u),v},this.getDisplayLine=function(s,c,u,h){var f=this.getFoldLine(s);if(f)return this.getFoldDisplayLine(f,s,c,u,h);var m;return m=this.doc.getLine(s),m.substring(h||0,c||m.length)},this.$cloneFoldData=function(){var s=[];return s=this.$foldData.map(function(c){var u=c.folds.map(function(h){return h.clone()});return new d(s,u)}),s},this.toggleFold=function(s){var c=this.selection,u=c.getRange(),h,f;if(u.isEmpty()){var m=u.start;if(h=this.getFoldAt(m.row,m.column),h){this.expandFold(h);return}else(f=this.findMatchingBracket(m))?u.comparePoint(f)==1?u.end=f:(u.start=f,u.start.column++,u.end.column--):(f=this.findMatchingBracket({row:m.row,column:m.column+1}))?(u.comparePoint(f)==1?u.end=f:u.start=f,u.start.column++):u=this.getCommentFoldRange(m.row,m.column)||u}else{var v=this.getFoldsInRange(u);if(s&&v.length){this.expandFolds(v);return}else v.length==1&&(h=v[0])}if(h||(h=this.getFoldAt(u.start.row,u.start.column)),h&&h.range.toString()==u.toString()){this.expandFold(h);return}var y="...";if(!u.isMultiLine()){if(y=this.getTextRange(u),y.length<4)return;y=y.trim().substring(0,2)+".."}this.addFold(y,u)},this.getCommentFoldRange=function(s,c,u){var h=new o(this,s,c),f=h.getCurrentToken(),m=f&&f.type;if(f&&/^comment|string/.test(m)){m=m.match(/comment|string/)[0],m=="comment"&&(m+="|doc-start|\\.doc");var v=new RegExp(m),y=new a;if(u!=1){do f=h.stepBackward();while(f&&v.test(f.type)&&!/^comment.end/.test(f.type));f=h.stepForward()}if(y.start.row=h.getCurrentTokenRow(),y.start.column=h.getCurrentTokenColumn()+(/^comment.start/.test(f.type)?f.value.length:2),h=new o(this,s,c),u!=-1){var C=-1;do if(f=h.stepForward(),C==-1){var $=this.getState(h.$row);v.test($)||(C=h.$row)}else if(h.$row>C)break;while(f&&v.test(f.type)&&!/^comment.start/.test(f.type));f=h.stepBackward()}else f=h.getCurrentToken();return y.end.row=h.getCurrentTokenRow(),y.end.column=h.getCurrentTokenColumn(),/^comment.end/.test(f.type)||(y.end.column+=f.value.length-2),y}},this.foldAll=function(s,c,u,h){u==null&&(u=1e5);var f=this.foldWidgets;if(f){c=c||this.getLength(),s=s||0;for(var m=s;m<c;m++)if(f[m]==null&&(f[m]=this.getFoldWidget(m)),f[m]=="start"&&!(h&&!h(m))){var v=this.getFoldWidgetRange(m);v&&v.isMultiLine()&&v.end.row<=c&&v.start.row>=s&&(m=v.end.row,v.collapseChildren=u,this.addFold("...",v))}}},this.foldToLevel=function(s){for(this.foldAll();s-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var s=this;this.foldAll(null,null,null,function(c){for(var u=s.getTokens(c),h=0;h<u.length;h++){var f=u[h];if(!(f.type=="text"&&/^\s+$/.test(f.value)))return!!/comment/.test(f.type)}})},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(s){if(!this.$foldStyles[s])throw new Error("invalid fold style: "+s+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=s){this.$foldStyle=s,s=="manual"&&this.unfold();var c=this.$foldMode;this.$setFolding(null),this.$setFolding(c)}},this.$setFolding=function(s){if(this.$foldMode!=s){if(this.$foldMode=s,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),!s||this.$foldStyle=="manual"){this.foldWidgets=null;return}this.foldWidgets=[],this.getFoldWidget=s.getFoldWidget.bind(s,this,this.$foldStyle),this.getFoldWidgetRange=s.getFoldWidgetRange.bind(s,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)}},this.getParentFoldRangeData=function(s,c){var u=this.foldWidgets;if(!u||c&&u[s])return{};for(var h=s-1,f;h>=0;){var m=u[h];if(m==null&&(m=u[h]=this.getFoldWidget(h)),m=="start"){var v=this.getFoldWidgetRange(h);if(f||(f=v),v&&v.end.row>=s)break}h--}return{range:h!==-1&&v,firstRange:f}},this.onFoldWidgetClick=function(s,c){c instanceof g&&(c=c.domEvent);var u={children:c.shiftKey,all:c.ctrlKey||c.metaKey,siblings:c.altKey},h=this.$toggleFoldWidget(s,u);if(!h){var f=c.target||c.srcElement;f&&/ace_fold-widget/.test(f.className)&&(f.className+=" ace_invalid")}},this.$toggleFoldWidget=function(s,c){if(this.getFoldWidget){var u=this.getFoldWidget(s),h=this.getLine(s),f=u==="end"?-1:1,m=this.getFoldAt(s,f===-1?0:h.length,f);if(m)return c.children||c.all?this.removeFold(m):this.expandFold(m),m;var v=this.getFoldWidgetRange(s,!0);if(v&&!v.isMultiLine()&&(m=this.getFoldAt(v.start.row,v.start.column,1),m&&v.isEqual(m.range)))return this.removeFold(m),m;if(c.siblings){var y=this.getParentFoldRangeData(s);if(y.range)var C=y.range.start.row+1,$=y.range.end.row;this.foldAll(C,$,c.all?1e4:0)}else c.children?($=v?v.end.row:this.getLength(),this.foldAll(s+1,$,c.all?1e4:0)):v&&(c.all&&(v.collapseChildren=1e4),this.addFold("...",v));return v}},this.toggleFoldWidget=function(s){var c=this.selection.getCursor().row;c=this.getRowFoldStart(c);var u=this.$toggleFoldWidget(c,{});if(!u){var h=this.getParentFoldRangeData(c,!0);if(u=h.range||h.firstRange,u){c=u.start.row;var f=this.getFoldAt(c,this.getLine(c).length,1);f?this.removeFold(f):this.addFold("...",u)}}},this.updateFoldWidgets=function(s){var c=s.start.row,u=s.end.row-c;if(u===0)this.foldWidgets[c]=null;else if(s.action=="remove")this.foldWidgets.splice(c,u+1,null);else{var h=Array(u+1);h.unshift(c,1),this.foldWidgets.splice.apply(this.foldWidgets,h)}},this.tokenizerUpdateFoldWidgets=function(s){var c=s.data;c.first!=c.last&&this.foldWidgets.length>c.first&&this.foldWidgets.splice(c.first,this.foldWidgets.length)}}r.Folding=i}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(n,r,l){var a=n("../token_iterator").TokenIterator,d=n("../range").Range;function p(){this.findMatchingBracket=function(o,g){if(o.column==0)return null;var i=g||this.getLine(o.row).charAt(o.column-1);if(i=="")return null;var s=i.match(/([\(\[\{])|([\)\]\}])/);return s?s[1]?this.$findClosingBracket(s[1],o):this.$findOpeningBracket(s[2],o):null},this.getBracketRange=function(o){var g=this.getLine(o.row),i=!0,s,c=g.charAt(o.column-1),u=c&&c.match(/([\(\[\{])|([\)\]\}])/);if(u||(c=g.charAt(o.column),o={row:o.row,column:o.column+1},u=c&&c.match(/([\(\[\{])|([\)\]\}])/),i=!1),!u)return null;if(u[1]){var h=this.$findClosingBracket(u[1],o);if(!h)return null;s=d.fromPoints(o,h),i||(s.end.column++,s.start.column--),s.cursor=s.end}else{var h=this.$findOpeningBracket(u[2],o);if(!h)return null;s=d.fromPoints(h,o),i||(s.start.column++,s.end.column--),s.cursor=s.start}return s},this.getMatchingBracketRanges=function(o,g){var i=this.getLine(o.row),s=/([\(\[\{])|([\)\]\}])/,c=!g&&i.charAt(o.column-1),u=c&&c.match(s);if(u||(c=(g===void 0||g)&&i.charAt(o.column),o={row:o.row,column:o.column+1},u=c&&c.match(s)),!u)return null;var h=new d(o.row,o.column-1,o.row,o.column),f=u[1]?this.$findClosingBracket(u[1],o):this.$findOpeningBracket(u[2],o);if(!f)return[h];var m=new d(f.row,f.column,f.row,f.column+1);return[h,m]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(o,g,i){var s=this.$brackets[o],c=1,u=new a(this,g.row,g.column),h=u.getCurrentToken();if(h||(h=u.stepForward()),!!h){i||(i=new RegExp("(\\.?"+h.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var f=g.column-u.getCurrentTokenColumn()-2,m=h.value;;){for(;f>=0;){var v=m.charAt(f);if(v==s){if(c-=1,c==0)return{row:u.getCurrentTokenRow(),column:f+u.getCurrentTokenColumn()}}else v==o&&(c+=1);f-=1}do h=u.stepBackward();while(h&&!i.test(h.type));if(h==null)break;m=h.value,f=m.length-1}return null}},this.$findClosingBracket=function(o,g,i){var s=this.$brackets[o],c=1,u=new a(this,g.row,g.column),h=u.getCurrentToken();if(h||(h=u.stepForward()),!!h){i||(i=new RegExp("(\\.?"+h.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var f=g.column-u.getCurrentTokenColumn();;){for(var m=h.value,v=m.length;f<v;){var y=m.charAt(f);if(y==s){if(c-=1,c==0)return{row:u.getCurrentTokenRow(),column:f+u.getCurrentTokenColumn()}}else y==o&&(c+=1);f+=1}do h=u.stepForward();while(h&&!i.test(h.type));if(h==null)break;f=0}return null}},this.getMatchingTags=function(o){var g=new a(this,o.row,o.column),i=this.$findTagName(g);if(i){var s=g.stepBackward();return s.value==="<"?this.$findClosingTag(g,i):this.$findOpeningTag(g,i)}},this.$findTagName=function(o){var g=o.getCurrentToken(),i=!1,s=!1;if(g&&g.type.indexOf("tag-name")===-1)do s?g=o.stepBackward():g=o.stepForward(),g&&(g.value==="/>"?s=!0:g.type.indexOf("tag-name")!==-1&&(i=!0));while(g&&!i);return g},this.$findClosingTag=function(o,g){var i,s=g.value,c=g.value,u=0,h=new d(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+1);g=o.stepForward();var f=new d(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+g.value.length),m=!1;do if(i=g,g=o.stepForward(),g){if(g.value===">"&&!m){var v=new d(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+1);m=!0}if(g.type.indexOf("tag-name")!==-1){if(s=g.value,c===s){if(i.value==="<")u++;else if(i.value==="</"&&(u--,u<0)){o.stepBackward();var y=new d(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+2);g=o.stepForward();var C=new d(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+g.value.length);if(g=o.stepForward(),g&&g.value===">")var $=new d(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+1);else return}}}else if(c===s&&g.value==="/>"&&(u--,u<0))var y=new d(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+2),C=y,$=C,v=new d(f.end.row,f.end.column,f.end.row,f.end.column+1)}while(g&&u>=0);if(h&&v&&y&&$&&f&&C)return{openTag:new d(h.start.row,h.start.column,v.end.row,v.end.column),closeTag:new d(y.start.row,y.start.column,$.end.row,$.end.column),openTagName:f,closeTagName:C}},this.$findOpeningTag=function(o,g){var i=o.getCurrentToken(),s=g.value,c=0,u=o.getCurrentTokenRow(),h=o.getCurrentTokenColumn(),f=h+2,m=new d(u,h,u,f);o.stepForward();var v=new d(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+g.value.length);if(g=o.stepForward(),!(!g||g.value!==">")){var y=new d(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+1);o.stepBackward(),o.stepBackward();do if(g=i,u=o.getCurrentTokenRow(),h=o.getCurrentTokenColumn(),f=h+g.value.length,i=o.stepBackward(),g){if(g.type.indexOf("tag-name")!==-1){if(s===g.value)if(i.value==="<"){if(c++,c>0){var C=new d(u,h,u,f),$=new d(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+1);do g=o.stepForward();while(g&&g.value!==">");var _=new d(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+1)}}else i.value==="</"&&c--}else if(g.value==="/>"){for(var b=0,E=i;E;){if(E.type.indexOf("tag-name")!==-1&&E.value===s){c--;break}else if(E.value==="<")break;E=o.stepBackward(),b++}for(var L=0;L<b;L++)o.stepForward()}}while(i&&c<=0);if($&&_&&m&&y&&C&&v)return{openTag:new d($.start.row,$.start.column,_.end.row,_.end.column),closeTag:new d(m.start.row,m.start.column,y.end.row,y.end.column),openTagName:C,closeTagName:v}}}}r.BracketMatch=p}),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 a=n("./lib/oop"),d=n("./lib/lang"),p=n("./bidihandler").BidiHandler,o=n("./config"),g=n("./lib/event_emitter").EventEmitter,i=n("./selection").Selection,s=n("./mode/text").Mode,c=n("./range").Range,u=n("./document").Document,h=n("./background_tokenizer").BackgroundTokenizer,f=n("./search_highlight").SearchHighlight,m=n("./undomanager").UndoManager,v=function(){function A(R,S){this.doc,this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$foldData=[],this.id="session"+ ++A.$uid,this.$foldData.toString=function(){return this.join(`
1030
+ `)},this.bgTokenizer=new h(new s().getTokenizer(),this);var w=this;this.bgTokenizer.on("update",function(x){w._signal("tokenizerUpdate",x)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof R!="object"||!R.getLine)&&(R=new u(R)),this.setDocument(R),this.selection=new i(this),this.$bidiHandler=new p(this),o.resetOptions(this),this.setMode(S),o._signal("session",this),this.destroyed=!1}return A.prototype.setDocument=function(R){this.doc&&this.doc.off("change",this.$onChange),this.doc=R,R.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},A.prototype.getDocument=function(){return this.doc},A.prototype.$resetRowCache=function(R){if(!R){this.$docRowCache=[],this.$screenRowCache=[];return}var S=this.$docRowCache.length,w=this.$getRowCacheIndex(this.$docRowCache,R)+1;S>w&&(this.$docRowCache.splice(w,S),this.$screenRowCache.splice(w,S))},A.prototype.$getRowCacheIndex=function(R,S){for(var w=0,x=R.length-1;w<=x;){var T=w+x>>1,O=R[T];if(S>O)w=T+1;else if(S<O)x=T-1;else return T}return w-1},A.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},A.prototype.onChangeFold=function(R){var S=R.data;this.$resetRowCache(S.start.row)},A.prototype.onChange=function(R){this.$modified=!0,this.$bidiHandler.onChange(R),this.$resetRowCache(R.start.row);var S=this.$updateInternalDataOnChange(R);!this.$fromUndo&&this.$undoManager&&(S&&S.length&&(this.$undoManager.add({action:"removeFolds",folds:S},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(R,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(R),this._signal("change",R)},A.prototype.setValue=function(R){this.doc.setValue(R),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},A.fromJSON=function(R){typeof R=="string"&&(R=JSON.parse(R));var S=new m;S.$undoStack=R.history.undo,S.$redoStack=R.history.redo,S.mark=R.history.mark,S.$rev=R.history.rev;var w=new A(R.value);return R.folds.forEach(function(x){w.addFold("...",c.fromPoints(x.start,x.end))}),w.setAnnotations(R.annotations),w.setBreakpoints(R.breakpoints),w.setMode(R.mode),w.setScrollLeft(R.scrollLeft),w.setScrollTop(R.scrollTop),w.setUndoManager(S),w.selection.fromJSON(R.selection),w},A.prototype.toJSON=function(){return{annotations:this.$annotations,breakpoints:this.$breakpoints,folds:this.getAllFolds().map(function(R){return R.range}),history:this.getUndoManager(),mode:this.$mode.$id,scrollLeft:this.$scrollLeft,scrollTop:this.$scrollTop,selection:this.selection.toJSON(),value:this.doc.getValue()}},A.prototype.toString=function(){return this.doc.getValue()},A.prototype.getSelection=function(){return this.selection},A.prototype.getState=function(R){return this.bgTokenizer.getState(R)},A.prototype.getTokens=function(R){return this.bgTokenizer.getTokens(R)},A.prototype.getTokenAt=function(R,S){var w=this.bgTokenizer.getTokens(R),x,T=0;if(S==null){var O=w.length-1;T=this.getLine(R).length}else for(var O=0;O<w.length&&(T+=w[O].value.length,!(T>=S));O++);return x=w[O],x?(x.index=O,x.start=T-x.value.length,x):null},A.prototype.setUndoManager=function(R){if(this.$undoManager=R,this.$informUndoManager&&this.$informUndoManager.cancel(),R){var S=this;R.addSession(this),this.$syncInformUndoManager=function(){S.$informUndoManager.cancel(),S.mergeUndoDeltas=!1},this.$informUndoManager=d.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},A.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},A.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},A.prototype.getTabString=function(){return this.getUseSoftTabs()?d.stringRepeat(" ",this.getTabSize()):" "},A.prototype.setUseSoftTabs=function(R){this.setOption("useSoftTabs",R)},A.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},A.prototype.setTabSize=function(R){this.setOption("tabSize",R)},A.prototype.getTabSize=function(){return this.$tabSize},A.prototype.isTabStop=function(R){return this.$useSoftTabs&&R.column%this.$tabSize===0},A.prototype.setNavigateWithinSoftTabs=function(R){this.setOption("navigateWithinSoftTabs",R)},A.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},A.prototype.setOverwrite=function(R){this.setOption("overwrite",R)},A.prototype.getOverwrite=function(){return this.$overwrite},A.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},A.prototype.addGutterDecoration=function(R,S){this.$decorations[R]||(this.$decorations[R]=""),this.$decorations[R]+=" "+S,this._signal("changeBreakpoint",{})},A.prototype.removeGutterDecoration=function(R,S){this.$decorations[R]=(this.$decorations[R]||"").replace(" "+S,""),this._signal("changeBreakpoint",{})},A.prototype.getBreakpoints=function(){return this.$breakpoints},A.prototype.setBreakpoints=function(R){this.$breakpoints=[];for(var S=0;S<R.length;S++)this.$breakpoints[R[S]]="ace_breakpoint";this._signal("changeBreakpoint",{})},A.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},A.prototype.setBreakpoint=function(R,S){S===void 0&&(S="ace_breakpoint"),S?this.$breakpoints[R]=S:delete this.$breakpoints[R],this._signal("changeBreakpoint",{})},A.prototype.clearBreakpoint=function(R){delete this.$breakpoints[R],this._signal("changeBreakpoint",{})},A.prototype.addMarker=function(R,S,w,x){var T=this.$markerId++,O={range:R,type:w||"line",renderer:typeof w=="function"?w:null,clazz:S,inFront:!!x,id:T};return x?(this.$frontMarkers[T]=O,this._signal("changeFrontMarker")):(this.$backMarkers[T]=O,this._signal("changeBackMarker")),T},A.prototype.addDynamicMarker=function(R,S){if(R.update){var w=this.$markerId++;return R.id=w,R.inFront=!!S,S?(this.$frontMarkers[w]=R,this._signal("changeFrontMarker")):(this.$backMarkers[w]=R,this._signal("changeBackMarker")),R}},A.prototype.removeMarker=function(R){var S=this.$frontMarkers[R]||this.$backMarkers[R];if(S){var w=S.inFront?this.$frontMarkers:this.$backMarkers;delete w[R],this._signal(S.inFront?"changeFrontMarker":"changeBackMarker")}},A.prototype.getMarkers=function(R){return R?this.$frontMarkers:this.$backMarkers},A.prototype.highlight=function(R){if(!this.$searchHighlight){var S=new f(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(S)}this.$searchHighlight.setRegexp(R)},A.prototype.highlightLines=function(R,S,w,x){typeof S!="number"&&(w=S,S=R),w||(w="ace_step");var T=new c(R,0,S,1/0);return T.id=this.addMarker(T,w,"fullLine",x),T},A.prototype.setAnnotations=function(R){this.$annotations=R,this._signal("changeAnnotation",{})},A.prototype.getAnnotations=function(){return this.$annotations||[]},A.prototype.clearAnnotations=function(){this.setAnnotations([])},A.prototype.$detectNewLine=function(R){var S=R.match(/^.*?(\r?\n)/m);S?this.$autoNewLine=S[1]:this.$autoNewLine=`
1031
+ `},A.prototype.getWordRange=function(R,S){var w=this.getLine(R),x=!1;if(S>0&&(x=!!w.charAt(S-1).match(this.tokenRe)),x||(x=!!w.charAt(S).match(this.tokenRe)),x)var T=this.tokenRe;else if(/^\s+$/.test(w.slice(S-1,S+1)))var T=/\s/;else var T=this.nonTokenRe;var O=S;if(O>0){do O--;while(O>=0&&w.charAt(O).match(T));O++}for(var I=S;I<w.length&&w.charAt(I).match(T);)I++;return new c(R,O,R,I)},A.prototype.getAWordRange=function(R,S){for(var w=this.getWordRange(R,S),x=this.getLine(w.end.row);x.charAt(w.end.column).match(/[ \t]/);)w.end.column+=1;return w},A.prototype.setNewLineMode=function(R){this.doc.setNewLineMode(R)},A.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},A.prototype.setUseWorker=function(R){this.setOption("useWorker",R)},A.prototype.getUseWorker=function(){return this.$useWorker},A.prototype.onReloadTokenizer=function(R){var S=R.data;this.bgTokenizer.start(S.first),this._signal("tokenizerUpdate",R)},A.prototype.setMode=function(R,S){if(R&&typeof R=="object"){if(R.getTokenizer)return this.$onChangeMode(R);var w=R,x=w.path}else x=R||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new s),this.$modes[x]&&!w){this.$onChangeMode(this.$modes[x]),S&&S();return}this.$modeId=x,o.loadModule(["mode",x],(function(T){if(this.$modeId!==x)return S&&S();this.$modes[x]&&!w?this.$onChangeMode(this.$modes[x]):T&&T.Mode&&(T=new T.Mode(w),w||(this.$modes[x]=T,T.$id=x),this.$onChangeMode(T)),S&&S()}).bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},A.prototype.$onChangeMode=function(R,S){if(S||(this.$modeId=R.$id),this.$mode!==R){var w=this.$mode;this.$mode=R,this.$stopWorker(),this.$useWorker&&this.$startWorker();var x=R.getTokenizer();if(x.on!==void 0){var T=this.onReloadTokenizer.bind(this);x.on("update",T)}this.bgTokenizer.setTokenizer(x),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=R.tokenRe,this.nonTokenRe=R.nonTokenRe,S||(R.attachToSession&&R.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(R.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:w,mode:R}))}},A.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},A.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(R){o.warn("Could not load worker",R),this.$worker=null}},A.prototype.getMode=function(){return this.$mode},A.prototype.setScrollTop=function(R){this.$scrollTop===R||isNaN(R)||(this.$scrollTop=R,this._signal("changeScrollTop",R))},A.prototype.getScrollTop=function(){return this.$scrollTop},A.prototype.setScrollLeft=function(R){this.$scrollLeft===R||isNaN(R)||(this.$scrollLeft=R,this._signal("changeScrollLeft",R))},A.prototype.getScrollLeft=function(){return this.$scrollLeft},A.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},A.prototype.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var R=0;return this.lineWidgets.forEach(function(S){S&&S.screenWidth>R&&(R=S.screenWidth)}),this.lineWidgetWidth=R},A.prototype.$computeWidth=function(R){if(this.$modified||R){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var S=this.doc.getAllLines(),w=this.$rowLengthCache,x=0,T=0,O=this.$foldData[T],I=O?O.start.row:1/0,N=S.length,P=0;P<N;P++){if(P>I){if(P=O.end.row+1,P>=N)break;O=this.$foldData[T++],I=O?O.start.row:1/0}w[P]==null&&(w[P]=this.$getStringScreenWidth(S[P])[0]),w[P]>x&&(x=w[P])}this.screenWidth=x}},A.prototype.getLine=function(R){return this.doc.getLine(R)},A.prototype.getLines=function(R,S){return this.doc.getLines(R,S)},A.prototype.getLength=function(){return this.doc.getLength()},A.prototype.getTextRange=function(R){return this.doc.getTextRange(R||this.selection.getRange())},A.prototype.insert=function(R,S){return this.doc.insert(R,S)},A.prototype.remove=function(R){return this.doc.remove(R)},A.prototype.removeFullLines=function(R,S){return this.doc.removeFullLines(R,S)},A.prototype.undoChanges=function(R,S){if(R.length){this.$fromUndo=!0;for(var w=R.length-1;w!=-1;w--){var x=R[w];x.action=="insert"||x.action=="remove"?this.doc.revertDelta(x):x.folds&&this.addFolds(x.folds)}!S&&this.$undoSelect&&(R.selectionBefore?this.selection.fromJSON(R.selectionBefore):this.selection.setRange(this.$getUndoSelection(R,!0))),this.$fromUndo=!1}},A.prototype.redoChanges=function(R,S){if(R.length){this.$fromUndo=!0;for(var w=0;w<R.length;w++){var x=R[w];(x.action=="insert"||x.action=="remove")&&this.doc.$safeApplyDelta(x)}!S&&this.$undoSelect&&(R.selectionAfter?this.selection.fromJSON(R.selectionAfter):this.selection.setRange(this.$getUndoSelection(R,!1))),this.$fromUndo=!1}},A.prototype.setUndoSelect=function(R){this.$undoSelect=R},A.prototype.$getUndoSelection=function(R,S){function w(N){return S?N.action!=="insert":N.action==="insert"}for(var x,T,O=0;O<R.length;O++){var I=R[O];if(I.start){if(!x){w(I)?x=c.fromPoints(I.start,I.end):x=c.fromPoints(I.start,I.start);continue}w(I)?(T=I.start,x.compare(T.row,T.column)==-1&&x.setStart(T),T=I.end,x.compare(T.row,T.column)==1&&x.setEnd(T)):(T=I.start,x.compare(T.row,T.column)==-1&&(x=c.fromPoints(I.start,I.start)))}}return x},A.prototype.replace=function(R,S){return this.doc.replace(R,S)},A.prototype.moveText=function(R,S,w){var x=this.getTextRange(R),T=this.getFoldsInRange(R),O=c.fromPoints(S,S);if(!w){this.remove(R);var I=R.start.row-R.end.row,N=I?-R.end.column:R.start.column-R.end.column;N&&(O.start.row==R.end.row&&O.start.column>R.end.column&&(O.start.column+=N),O.end.row==R.end.row&&O.end.column>R.end.column&&(O.end.column+=N)),I&&O.start.row>=R.end.row&&(O.start.row+=I,O.end.row+=I)}if(O.end=this.insert(O.start,x),T.length){var P=R.start,H=O.start,I=H.row-P.row,N=H.column-P.column;this.addFolds(T.map(function(W){return W=W.clone(),W.start.row==P.row&&(W.start.column+=N),W.end.row==P.row&&(W.end.column+=N),W.start.row+=I,W.end.row+=I,W}))}return O},A.prototype.indentRows=function(R,S,w){w=w.replace(/\t/g,this.getTabString());for(var x=R;x<=S;x++)this.doc.insertInLine({row:x,column:0},w)},A.prototype.outdentRows=function(R){for(var S=R.collapseRows(),w=new c(0,0,0,0),x=this.getTabSize(),T=S.start.row;T<=S.end.row;++T){var O=this.getLine(T);w.start.row=T,w.end.row=T;for(var I=0;I<x&&O.charAt(I)==" ";++I);I<x&&O.charAt(I)==" "?(w.start.column=I,w.end.column=I+1):(w.start.column=0,w.end.column=I),this.remove(w)}},A.prototype.$moveLines=function(R,S,w){if(R=this.getRowFoldStart(R),S=this.getRowFoldEnd(S),w<0){var x=this.getRowFoldStart(R+w);if(x<0)return 0;var T=x-R}else if(w>0){var x=this.getRowFoldEnd(S+w);if(x>this.doc.getLength()-1)return 0;var T=x-S}else{R=this.$clipRowToDocument(R),S=this.$clipRowToDocument(S);var T=S-R+1}var O=new c(R,0,S,Number.MAX_VALUE),I=this.getFoldsInRange(O).map(function(P){return P=P.clone(),P.start.row+=T,P.end.row+=T,P}),N=w==0?this.doc.getLines(R,S):this.doc.removeFullLines(R,S);return this.doc.insertFullLines(R+T,N),I.length&&this.addFolds(I),T},A.prototype.moveLinesUp=function(R,S){return this.$moveLines(R,S,-1)},A.prototype.moveLinesDown=function(R,S){return this.$moveLines(R,S,1)},A.prototype.duplicateLines=function(R,S){return this.$moveLines(R,S,0)},A.prototype.$clipRowToDocument=function(R){return Math.max(0,Math.min(R,this.doc.getLength()-1))},A.prototype.$clipColumnToRow=function(R,S){return S<0?0:Math.min(this.doc.getLine(R).length,S)},A.prototype.$clipPositionToDocument=function(R,S){if(S=Math.max(0,S),R<0)R=0,S=0;else{var w=this.doc.getLength();R>=w?(R=w-1,S=this.doc.getLine(w-1).length):S=Math.min(this.doc.getLine(R).length,S)}return{row:R,column:S}},A.prototype.$clipRangeToDocument=function(R){R.start.row<0?(R.start.row=0,R.start.column=0):R.start.column=this.$clipColumnToRow(R.start.row,R.start.column);var S=this.doc.getLength()-1;return R.end.row>S?(R.end.row=S,R.end.column=this.doc.getLine(S).length):R.end.column=this.$clipColumnToRow(R.end.row,R.end.column),R},A.prototype.setUseWrapMode=function(R){if(R!=this.$useWrapMode){if(this.$useWrapMode=R,this.$modified=!0,this.$resetRowCache(0),R){var S=this.getLength();this.$wrapData=Array(S),this.$updateWrapData(0,S-1)}this._signal("changeWrapMode")}},A.prototype.getUseWrapMode=function(){return this.$useWrapMode},A.prototype.setWrapLimitRange=function(R,S){(this.$wrapLimitRange.min!==R||this.$wrapLimitRange.max!==S)&&(this.$wrapLimitRange={min:R,max:S},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},A.prototype.adjustWrapLimit=function(R,S){var w=this.$wrapLimitRange;w.max<0&&(w={min:S,max:S});var x=this.$constrainWrapLimit(R,w.min,w.max);return x!=this.$wrapLimit&&x>1?(this.$wrapLimit=x,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},A.prototype.$constrainWrapLimit=function(R,S,w){return S&&(R=Math.max(S,R)),w&&(R=Math.min(w,R)),R},A.prototype.getWrapLimit=function(){return this.$wrapLimit},A.prototype.setWrapLimit=function(R){this.setWrapLimitRange(R,R)},A.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},A.prototype.$updateInternalDataOnChange=function(R){var S=this.$useWrapMode,w=R.action,x=R.start,T=R.end,O=x.row,I=T.row,N=I-O,P=null;if(this.$updating=!0,N!=0)if(w==="remove"){this[S?"$wrapData":"$rowLengthCache"].splice(O,N);var H=this.$foldData;P=this.getFoldsInRange(R),this.removeFolds(P);var V=this.getFoldLine(T.row),U=0;if(V){V.addRemoveChars(T.row,T.column,x.column-T.column),V.shiftRow(-N);var W=this.getFoldLine(O);W&&W!==V&&(W.merge(V),V=W),U=H.indexOf(V)+1}for(U;U<H.length;U++){var V=H[U];V.start.row>=T.row&&V.shiftRow(-N)}I=O}else{var j=Array(N);j.unshift(O,0);var q=S?this.$wrapData:this.$rowLengthCache;q.splice.apply(q,j);var H=this.$foldData,V=this.getFoldLine(O),U=0;if(V){var z=V.range.compareInside(x.row,x.column);z==0?(V=V.split(x.row,x.column),V&&(V.shiftRow(N),V.addRemoveChars(I,0,T.column-x.column))):z==-1&&(V.addRemoveChars(O,0,T.column-x.column),V.shiftRow(N)),U=H.indexOf(V)+1}for(U;U<H.length;U++){var V=H[U];V.start.row>=O&&V.shiftRow(N)}}else{N=Math.abs(R.start.column-R.end.column),w==="remove"&&(P=this.getFoldsInRange(R),this.removeFolds(P),N=-N);var V=this.getFoldLine(O);V&&V.addRemoveChars(O,x.column,N)}return S&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,S?this.$updateWrapData(O,I):this.$updateRowLengthCache(O,I),P},A.prototype.$updateRowLengthCache=function(R,S){this.$rowLengthCache[R]=null,this.$rowLengthCache[S]=null},A.prototype.$updateWrapData=function(R,S){var w=this.doc.getAllLines(),x=this.getTabSize(),T=this.$wrapData,O=this.$wrapLimit,I,N,P=R;for(S=Math.min(S,w.length-1);P<=S;)N=this.getFoldLine(P,N),N?(I=[],N.walk((function(H,V,U,W){var j;if(H!=null){j=this.$getDisplayTokens(H,I.length),j[0]=$;for(var q=1;q<j.length;q++)j[q]=_}else j=this.$getDisplayTokens(w[V].substring(W,U),I.length);I=I.concat(j)}).bind(this),N.end.row,w[N.end.row].length+1),T[N.start.row]=this.$computeWrapSplits(I,O,x),P=N.end.row+1):(I=this.$getDisplayTokens(w[P]),T[P]=this.$computeWrapSplits(I,O,x),P++)},A.prototype.$computeWrapSplits=function(R,S,w){if(R.length==0)return[];var x=[],T=R.length,O=0,I=0,N=this.$wrapAsCode,P=this.$indentedSoftWrap,H=S<=Math.max(2*w,8)||P===!1?0:Math.floor(S/2);function V(){var z=0;if(H===0)return z;if(P)for(var Z=0;Z<R.length;Z++){var K=R[Z];if(K==E)z+=1;else if(K==L)z+=w;else{if(K==k)continue;break}}return N&&P!==!1&&(z+=w),Math.min(z,H)}function U(z){for(var Z=z-O,K=O;K<z;K++){var Q=R[K];(Q===12||Q===2)&&(Z-=1)}x.length||(W=V(),x.indent=W),I+=Z,x.push(I),O=z}for(var W=0;T-O>S-W;){var j=O+S-W;if(R[j-1]>=E&&R[j]>=E){U(j);continue}if(R[j]==$||R[j]==_){for(j;j!=O-1&&R[j]!=$;j--);if(j>O){U(j);continue}for(j=O+S,j;j<R.length&&R[j]==_;j++);if(j==R.length)break;U(j);continue}for(var q=Math.max(j-(S-(S>>2)),O-1);j>q&&R[j]<$;)j--;if(N){for(;j>q&&R[j]<$;)j--;for(;j>q&&R[j]==b;)j--}else for(;j>q&&R[j]<E;)j--;if(j>q){U(++j);continue}j=O+S,R[j]==C&&j--,U(j-W)}return x},A.prototype.$getDisplayTokens=function(R,S){var w=[],x;S=S||0;for(var T=0;T<R.length;T++){var O=R.charCodeAt(T);if(O==9){x=this.getScreenTabSize(w.length+S),w.push(L);for(var I=1;I<x;I++)w.push(k)}else O==32?w.push(E):O>39&&O<48||O>57&&O<64?w.push(b):O>=4352&&M(O)?w.push(y,C):w.push(y)}return w},A.prototype.$getStringScreenWidth=function(R,S,w){if(S==0)return[0,0];S==null&&(S=1/0),w=w||0;var x,T;for(T=0;T<R.length&&(x=R.charCodeAt(T),x==9?w+=this.getScreenTabSize(w):x>=4352&&M(x)?w+=2:w+=1,!(w>S));T++);return[w,T]},A.prototype.getRowLength=function(R){var S=1;return this.lineWidgets&&(S+=this.lineWidgets[R]&&this.lineWidgets[R].rowCount||0),!this.$useWrapMode||!this.$wrapData[R]?S:this.$wrapData[R].length+S},A.prototype.getRowLineCount=function(R){return!this.$useWrapMode||!this.$wrapData[R]?1:this.$wrapData[R].length+1},A.prototype.getRowWrapIndent=function(R){if(this.$useWrapMode){var S=this.screenToDocumentPosition(R,Number.MAX_VALUE),w=this.$wrapData[S.row];return w.length&&w[0]<S.column?w.indent:0}else return 0},A.prototype.getScreenLastRowColumn=function(R){var S=this.screenToDocumentPosition(R,Number.MAX_VALUE);return this.documentToScreenColumn(S.row,S.column)},A.prototype.getDocumentLastRowColumn=function(R,S){var w=this.documentToScreenRow(R,S);return this.getScreenLastRowColumn(w)},A.prototype.getDocumentLastRowColumnPosition=function(R,S){var w=this.documentToScreenRow(R,S);return this.screenToDocumentPosition(w,Number.MAX_VALUE/10)},A.prototype.getRowSplitData=function(R){if(this.$useWrapMode)return this.$wrapData[R]},A.prototype.getScreenTabSize=function(R){return this.$tabSize-(R%this.$tabSize|0)},A.prototype.screenToDocumentRow=function(R,S){return this.screenToDocumentPosition(R,S).row},A.prototype.screenToDocumentColumn=function(R,S){return this.screenToDocumentPosition(R,S).column},A.prototype.screenToDocumentPosition=function(R,S,w){if(R<0)return{row:0,column:0};var x,T=0,O=0,I,N=0,P=0,H=this.$screenRowCache,V=this.$getRowCacheIndex(H,R),U=H.length;if(U&&V>=0)var N=H[V],T=this.$docRowCache[V],W=R>H[U-1];else var W=!U;for(var j=this.getLength()-1,q=this.getNextFoldLine(T),z=q?q.start.row:1/0;N<=R&&(P=this.getRowLength(T),!(N+P>R||T>=j));)N+=P,T++,T>z&&(T=q.end.row+1,q=this.getNextFoldLine(T,q),z=q?q.start.row:1/0),W&&(this.$docRowCache.push(T),this.$screenRowCache.push(N));if(q&&q.start.row<=T)x=this.getFoldDisplayLine(q),T=q.start.row;else{if(N+P<=R||T>j)return{row:j,column:this.getLine(j).length};x=this.getLine(T),q=null}var Z=0,K=Math.floor(R-N);if(this.$useWrapMode){var Q=this.$wrapData[T];Q&&(I=Q[K],K>0&&Q.length&&(Z=Q.indent,O=Q[K-1]||Q[Q.length-1],x=x.substring(O)))}return w!==void 0&&this.$bidiHandler.isBidiRow(N+K,T,K)&&(S=this.$bidiHandler.offsetToCol(w)),O+=this.$getStringScreenWidth(x,S-Z)[1],this.$useWrapMode&&O>=I&&(O=I-1),q?q.idxToPosition(O):{row:T,column:O}},A.prototype.documentToScreenPosition=function(R,S){if(typeof S>"u")var w=this.$clipPositionToDocument(R.row,R.column);else w=this.$clipPositionToDocument(R,S);R=w.row,S=w.column;var x=0,T=null,O=null;O=this.getFoldAt(R,S,1),O&&(R=O.start.row,S=O.start.column);var I,N=0,P=this.$docRowCache,H=this.$getRowCacheIndex(P,R),V=P.length;if(V&&H>=0)var N=P[H],x=this.$screenRowCache[H],U=R>P[V-1];else var U=!V;for(var W=this.getNextFoldLine(N),j=W?W.start.row:1/0;N<R;){if(N>=j){if(I=W.end.row+1,I>R)break;W=this.getNextFoldLine(I,W),j=W?W.start.row:1/0}else I=N+1;x+=this.getRowLength(N),N=I,U&&(this.$docRowCache.push(N),this.$screenRowCache.push(x))}var q="";W&&N>=j?(q=this.getFoldDisplayLine(W,R,S),T=W.start.row):(q=this.getLine(R).substring(0,S),T=R);var z=0;if(this.$useWrapMode){var Z=this.$wrapData[T];if(Z){for(var K=0;q.length>=Z[K];)x++,K++;q=q.substring(Z[K-1]||0,q.length),z=K>0?Z.indent:0}}return this.lineWidgets&&this.lineWidgets[N]&&this.lineWidgets[N].rowsAbove&&(x+=this.lineWidgets[N].rowsAbove),{row:x,column:z+this.$getStringScreenWidth(q)[0]}},A.prototype.documentToScreenColumn=function(R,S){return this.documentToScreenPosition(R,S).column},A.prototype.documentToScreenRow=function(R,S){return this.documentToScreenPosition(R,S).row},A.prototype.getScreenLength=function(){var R=0,S=null;if(this.$useWrapMode)for(var T=this.$wrapData.length,O=0,x=0,S=this.$foldData[x++],I=S?S.start.row:1/0;O<T;){var N=this.$wrapData[O];R+=N?N.length+1:1,O++,O>I&&(O=S.end.row+1,S=this.$foldData[x++],I=S?S.start.row:1/0)}else{R=this.getLength();for(var w=this.$foldData,x=0;x<w.length;x++)S=w[x],R-=S.end.row-S.start.row}return this.lineWidgets&&(R+=this.$getWidgetScreenLength()),R},A.prototype.$setFontMetrics=function(R){this.$enableVarChar&&(this.$getStringScreenWidth=function(S,w,x){if(w===0)return[0,0];w||(w=1/0),x=x||0;var T,O;for(O=0;O<S.length&&(T=S.charAt(O),T===" "?x+=this.getScreenTabSize(x):x+=R.getCharacterWidth(T),!(x>w));O++);return[x,O]})},A.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()},A}();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,a.implement(v.prototype,g);var y=1,C=2,$=3,_=4,b=9,E=10,L=11,k=12;function M(A){return A<4352?!1:A>=4352&&A<=4447||A>=4515&&A<=4519||A>=4602&&A<=4607||A>=9001&&A<=9002||A>=11904&&A<=11929||A>=11931&&A<=12019||A>=12032&&A<=12245||A>=12272&&A<=12283||A>=12288&&A<=12350||A>=12353&&A<=12438||A>=12441&&A<=12543||A>=12549&&A<=12589||A>=12593&&A<=12686||A>=12688&&A<=12730||A>=12736&&A<=12771||A>=12784&&A<=12830||A>=12832&&A<=12871||A>=12880&&A<=13054||A>=13056&&A<=19903||A>=19968&&A<=42124||A>=42128&&A<=42182||A>=43360&&A<=43388||A>=44032&&A<=55203||A>=55216&&A<=55238||A>=55243&&A<=55291||A>=63744&&A<=64255||A>=65040&&A<=65049||A>=65072&&A<=65106||A>=65108&&A<=65126||A>=65128&&A<=65131||A>=65281&&A<=65376||A>=65504&&A<=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(A){if(!A||A=="off"?A=!1:A=="free"?A=!0:A=="printMargin"?A=-1:typeof A=="string"&&(A=parseInt(A,10)||!1),this.$wrap!=A)if(this.$wrap=A,!A)this.setUseWrapMode(!1);else{var R=typeof A=="number"?A:null;this.setWrapLimitRange(R,R),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(A){A=A=="auto"?this.$mode.type!="text":A!="text",A!=this.$wrapAsCode&&(this.$wrapAsCode=A,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(A){this.$useWorker=A,this.$stopWorker(),A&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(A){A=parseInt(A),A>0&&this.$tabSize!==A&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=A,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(A){this.setFoldStyle(A)},handlesSet:!0},overwrite:{set:function(A){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(A){this.doc.setNewLineMode(A)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(A){this.setMode(A)},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 a=n("./lib/lang"),d=n("./lib/oop"),p=n("./range").Range,o=function(){function i(){this.$options={}}return i.prototype.set=function(s){return d.mixin(this.$options,s),this},i.prototype.getOptions=function(){return a.copyObject(this.$options)},i.prototype.setOptions=function(s){this.$options=s},i.prototype.find=function(s){var c=this.$options,u=this.$matchIterator(s,c);if(!u)return!1;var h=null;return u.forEach(function(f,m,v,y){return h=new p(f,m,v,y),m==y&&c.start&&c.start.start&&c.skipCurrent!=!1&&h.isEqual(c.start)?(h=null,!1):!0}),h},i.prototype.findAll=function(s){var c=this.$options;if(!c.needle)return[];this.$assembleRegExp(c);var u=c.range,h=u?s.getLines(u.start.row,u.end.row):s.doc.getAllLines(),f=[],m=c.re;if(c.$isMultiLine){var v=m.length,y=h.length-v,C;e:for(var $=m.offset||0;$<=y;$++){for(var _=0;_<v;_++)if(h[$+_].search(m[_])==-1)continue e;var b=h[$],E=h[$+v-1],L=b.length-b.match(m[0])[0].length,k=E.match(m[v-1])[0].length;C&&C.end.row===$&&C.end.column>L||(f.push(C=new p($,L,$+v-1,k)),v>2&&($=$+v-2))}}else for(var M=0;M<h.length;M++)for(var A=a.getMatchOffsets(h[M],m),_=0;_<A.length;_++){var R=A[_];f.push(new p(M,R.offset,M,R.offset+R.length))}if(u){for(var S=u.start.column,w=u.end.column,M=0,_=f.length-1;M<_&&f[M].start.column<S&&f[M].start.row==0;)M++;for(var x=u.end.row-u.start.row;M<_&&f[_].end.column>w&&f[_].end.row==x;)_--;for(f=f.slice(M,_+1),M=0,_=f.length;M<_;M++)f[M].start.row+=u.start.row,f[M].end.row+=u.start.row}return f},i.prototype.replace=function(s,c){var u=this.$options,h=this.$assembleRegExp(u);if(u.$isMultiLine)return c;if(h){var f=h.exec(s);if(!f||f[0].length!=s.length)return null;if(u.regExp||(c=c.replace(/\$/g,"$$$$")),c=s.replace(h,c),u.preserveCase){c=c.split("");for(var m=Math.min(s.length,s.length);m--;){var v=s[m];v&&v.toLowerCase()!=v?c[m]=c[m].toUpperCase():c[m]=c[m].toLowerCase()}c=c.join("")}return c}},i.prototype.$assembleRegExp=function(s,c){if(s.needle instanceof RegExp)return s.re=s.needle;var u=s.needle;if(!s.needle)return s.re=!1;s.regExp||(u=a.escapeRegExp(u));var h=s.caseSensitive?"gm":"gmi";try{new RegExp(u,"u"),s.$supportsUnicodeFlag=!0,h+="u"}catch{s.$supportsUnicodeFlag=!1}if(s.wholeWord&&(u=g(u,s)),s.$isMultiLine=!c&&/[\n\r]/.test(u),s.$isMultiLine)return s.re=this.$assembleMultilineRegExp(u,h);try{var f=new RegExp(u,h)}catch{f=!1}return s.re=f},i.prototype.$assembleMultilineRegExp=function(s,c){for(var u=s.replace(/\r\n|\r|\n/g,`$
1032
+ ^`).split(`
1033
+ `),h=[],f=0;f<u.length;f++)try{h.push(new RegExp(u[f],c))}catch{return!1}return h},i.prototype.$matchIterator=function(s,c){var u=this.$assembleRegExp(c);if(!u)return!1;var h=c.backwards==!0,f=c.skipCurrent!=!1,m=u.unicode,v=c.range,y=c.start;y||(y=v?v[h?"end":"start"]:s.selection.getRange()),y.start&&(y=y[f!=h?"end":"start"]);var C=v?v.start.row:0,$=v?v.end.row:s.getLength()-1;if(h)var _=function(L){var k=y.row;if(!E(k,y.column,L)){for(k--;k>=C;k--)if(E(k,Number.MAX_VALUE,L))return;if(c.wrap!=!1){for(k=$,C=y.row;k>=C;k--)if(E(k,Number.MAX_VALUE,L))return}}};else var _=function(k){var M=y.row;if(!E(M,y.column,k)){for(M=M+1;M<=$;M++)if(E(M,0,k))return;if(c.wrap!=!1){for(M=C,$=y.row;M<=$;M++)if(E(M,0,k))return}}};if(c.$isMultiLine)var b=u.length,E=function(L,k,M){var A=h?L-b+1:L;if(!(A<0||A+b>s.getLength())){var R=s.getLine(A),S=R.search(u[0]);if(!(!h&&S<k||S===-1)){for(var w=1;w<b;w++)if(R=s.getLine(A+w),R.search(u[w])==-1)return;var x=R.match(u[b-1])[0].length;if(!(h&&x>k)&&M(A,S,A+b-1,x))return!0}}};else if(h)var E=function(k,M,A){var R=s.getLine(k),S=[],w,x=0;for(u.lastIndex=0;w=u.exec(R);){var T=w[0].length;if(x=w.index,!T){if(x>=R.length)break;u.lastIndex=x+=a.skipEmptyMatch(R,x,m)}if(w.index+T>M)break;S.push(w.index,T)}for(var O=S.length-1;O>=0;O-=2){var I=S[O-1],T=S[O];if(A(k,I,k,I+T))return!0}};else var E=function(k,M,A){var R=s.getLine(k),S,w;for(u.lastIndex=M;w=u.exec(R);){var x=w[0].length;if(S=w.index,A(k,S,k,S+x))return!0;if(!x&&(u.lastIndex=S+=a.skipEmptyMatch(R,S,m),S>=R.length))return!1}};return{forEach:_}},i}();function g(i,s){var c=a.supportsLookbehind();function u(v,y){y===void 0&&(y=!0);var C=c&&s.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return C.test(v)||s.regExp?c&&s.$supportsUnicodeFlag?y?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var h=Array.from(i),f=h[0],m=h[h.length-1];return u(f)+i+u(m,!1)}r.Search=o}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(n,r,l){var a=this&&this.__extends||function(){var c=function(u,h){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var v in m)Object.prototype.hasOwnProperty.call(m,v)&&(f[v]=m[v])},c(u,h)};return function(u,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");c(u,h);function f(){this.constructor=u}u.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}}(),d=n("../lib/keys"),p=n("../lib/useragent"),o=d.KEY_MODS,g=function(){function c(u,h){this.$init(u,h,!1)}return c.prototype.$init=function(u,h,f){this.platform=h||(p.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(u),this.$singleCommand=f},c.prototype.addCommand=function(u){this.commands[u.name]&&this.removeCommand(u),this.commands[u.name]=u,u.bindKey&&this._buildKeyHash(u)},c.prototype.removeCommand=function(u,h){var f=u&&(typeof u=="string"?u:u.name);u=this.commands[f],h||delete this.commands[f];var m=this.commandKeyBinding;for(var v in m){var y=m[v];if(y==u)delete m[v];else if(Array.isArray(y)){var C=y.indexOf(u);C!=-1&&(y.splice(C,1),y.length==1&&(m[v]=y[0]))}}},c.prototype.bindKey=function(u,h,f){if(typeof u=="object"&&u&&(f==null&&(f=u.position),u=u[this.platform]),!!u){if(typeof h=="function")return this.addCommand({exec:h,bindKey:u,name:h.name||u});u.split("|").forEach(function(m){var v="";if(m.indexOf(" ")!=-1){var y=m.split(/\s+/);m=y.pop(),y.forEach(function(_){var b=this.parseKeys(_),E=o[b.hashId]+b.key;v+=(v?" ":"")+E,this._addCommandToBinding(v,"chainKeys")},this),v+=" "}var C=this.parseKeys(m),$=o[C.hashId]+C.key;this._addCommandToBinding(v+$,h,f)},this)}},c.prototype._addCommandToBinding=function(u,h,f){var m=this.commandKeyBinding,v;if(!h)delete m[u];else if(!m[u]||this.$singleCommand)m[u]=h;else{Array.isArray(m[u])?(v=m[u].indexOf(h))!=-1&&m[u].splice(v,1):m[u]=[m[u]],typeof f!="number"&&(f=i(h));var y=m[u];for(v=0;v<y.length;v++){var C=y[v],$=i(C);if($>f)break}y.splice(v,0,h)}},c.prototype.addCommands=function(u){u&&Object.keys(u).forEach(function(h){var f=u[h];if(f){if(typeof f=="string")return this.bindKey(f,h);typeof f=="function"&&(f={exec:f}),typeof f=="object"&&(f.name||(f.name=h),this.addCommand(f))}},this)},c.prototype.removeCommands=function(u){Object.keys(u).forEach(function(h){this.removeCommand(u[h])},this)},c.prototype.bindKeys=function(u){Object.keys(u).forEach(function(h){this.bindKey(h,u[h])},this)},c.prototype._buildKeyHash=function(u){this.bindKey(u.bindKey,u)},c.prototype.parseKeys=function(u){var h=u.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function($){return $}),f=h.pop(),m=d[f];if(d.FUNCTION_KEYS[m])f=d.FUNCTION_KEYS[m].toLowerCase();else if(h.length){if(h.length==1&&h[0]=="shift")return{key:f.toUpperCase(),hashId:-1}}else return{key:f,hashId:-1};for(var v=0,y=h.length;y--;){var C=d.KEY_MODS[h[y]];if(C==null)return typeof console<"u"&&console.error("invalid modifier "+h[y]+" in "+u),!1;v|=C}return{key:f,hashId:v}},c.prototype.findKeyCommand=function(u,h){var f=o[u]+h;return this.commandKeyBinding[f]},c.prototype.handleKeyboard=function(u,h,f,m){if(!(m<0)){var v=o[h]+f,y=this.commandKeyBinding[v];return u.$keyChain&&(u.$keyChain+=" "+v,y=this.commandKeyBinding[u.$keyChain]||y),y&&(y=="chainKeys"||y[y.length-1]=="chainKeys")?(u.$keyChain=u.$keyChain||v,{command:"null"}):(u.$keyChain&&((!h||h==4)&&f.length==1?u.$keyChain=u.$keyChain.slice(0,-v.length-1):(h==-1||m>0)&&(u.$keyChain="")),{command:y})}},c.prototype.getStatusText=function(u,h){return h.$keyChain||""},c}();function i(c){return typeof c=="object"&&c.bindKey&&c.bindKey.position||(c.isDefault?-100:0)}var s=function(c){a(u,c);function u(h,f){var m=c.call(this,h,f)||this;return m.$singleCommand=!0,m}return u}(g);s.call=function(c,u,h){g.prototype.$init.call(c,u,h,!0)},g.call=function(c,u,h){g.prototype.$init.call(c,u,h,!1)},r.HashHandler=s,r.MultiHashHandler=g}),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 a=this&&this.__extends||function(){var i=function(s,c){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,h){u.__proto__=h}||function(u,h){for(var f in h)Object.prototype.hasOwnProperty.call(h,f)&&(u[f]=h[f])},i(s,c)};return function(s,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");i(s,c);function u(){this.constructor=s}s.prototype=c===null?Object.create(c):(u.prototype=c.prototype,new u)}}(),d=n("../lib/oop"),p=n("../keyboard/hash_handler").MultiHashHandler,o=n("../lib/event_emitter").EventEmitter,g=function(i){a(s,i);function s(c,u){var h=i.call(this,u,c)||this;return h.byName=h.commands,h.setDefaultHandler("exec",function(f){return f.args?f.command.exec(f.editor,f.args,f.event,!1):f.command.exec(f.editor,{},f.event,!0)}),h}return s.prototype.exec=function(c,u,h){if(Array.isArray(c)){for(var f=c.length;f--;)if(this.exec(c[f],u,h))return!0;return!1}if(typeof c=="string"&&(c=this.commands[c]),!c||u&&u.$readOnly&&!c.readOnly||this.$checkCommandState!=!1&&c.isAvailable&&!c.isAvailable(u))return!1;var m={editor:u,command:c,args:h};return m.returnValue=this._emit("exec",m),this._signal("afterExec",m),m.returnValue!==!1},s.prototype.toggleRecording=function(c){if(!this.$inReplay)return c&&c._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=(function(u){this.macro.push([u.command,u.args])}).bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},s.prototype.replay=function(c){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(c);try{this.$inReplay=!0,this.macro.forEach(function(u){typeof u=="string"?this.exec(u,c):this.exec(u[0],c,u[1])},this)}finally{this.$inReplay=!1}}},s.prototype.trimMacro=function(c){return c.map(function(u){return typeof u[0]!="string"&&(u[0]=u[0].name),u[1]||(u=u[0]),u})},s}(p);d.implement(g.prototype,o),r.CommandManager=g}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(n,r,l){var a=n("../lib/lang"),d=n("../config"),p=n("../range").Range;function o(i,s){return{win:i,mac:s}}r.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:o("Ctrl-,","Command-,"),exec:function(i){d.loadModule("ace/ext/settings_menu",function(s){s.init(i),i.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:o("Alt-E","F4"),exec:function(i){d.loadModule("ace/ext/error_marker",function(s){s.showErrorMarker(i,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:o("Alt-Shift-E","Shift-F4"),exec:function(i){d.loadModule("ace/ext/error_marker",function(s){s.showErrorMarker(i,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:o("Ctrl-A","Command-A"),exec:function(i){i.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:o(null,"Ctrl-L"),exec:function(i){i.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:o("Ctrl-L","Command-L"),exec:function(i,s){typeof s=="number"&&!isNaN(s)&&i.gotoLine(s),i.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:o("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(i){i.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:o("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(i){i.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:o("F2","F2"),exec:function(i){i.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:o("Alt-F2","Alt-F2"),exec:function(i){i.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:o(null,"Ctrl-Command-Option-0"),exec:function(i){i.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:o(null,"Ctrl-Command-Option-0"),exec:function(i){i.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:o("Alt-0","Command-Option-0"),exec:function(i){i.session.foldAll(),i.session.unfold(i.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:o("Alt-Shift-0","Command-Option-Shift-0"),exec:function(i){i.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:o("Ctrl-K","Command-G"),exec:function(i){i.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:o("Ctrl-Shift-K","Command-Shift-G"),exec:function(i){i.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:o("Alt-K","Ctrl-G"),exec:function(i){i.selection.isEmpty()?i.selection.selectWord():i.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:o("Alt-Shift-K","Ctrl-Shift-G"),exec:function(i){i.selection.isEmpty()?i.selection.selectWord():i.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:o("Ctrl-F","Command-F"),exec:function(i){d.loadModule("ace/ext/searchbox",function(s){s.Search(i)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(i){i.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:o("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(i){i.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:o("Ctrl-Home","Command-Home|Command-Up"),exec:function(i){i.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:o("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(i){i.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:o("Up","Up|Ctrl-P"),exec:function(i,s){i.navigateUp(s.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:o("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(i){i.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:o("Ctrl-End","Command-End|Command-Down"),exec:function(i){i.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:o("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(i){i.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:o("Down","Down|Ctrl-N"),exec:function(i,s){i.navigateDown(s.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:o("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(i){i.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:o("Ctrl-Left","Option-Left"),exec:function(i){i.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:o("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(i){i.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:o("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(i){i.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:o("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(i){i.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:o("Left","Left|Ctrl-B"),exec:function(i,s){i.navigateLeft(s.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:o("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(i){i.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:o("Ctrl-Right","Option-Right"),exec:function(i){i.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:o("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(i){i.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:o("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(i){i.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:o("Shift-Right","Shift-Right"),exec:function(i){i.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:o("Right","Right|Ctrl-F"),exec:function(i,s){i.navigateRight(s.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(i){i.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:o(null,"Option-PageDown"),exec:function(i){i.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:o("PageDown","PageDown|Ctrl-V"),exec:function(i){i.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(i){i.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:o(null,"Option-PageUp"),exec:function(i){i.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(i){i.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:o("Ctrl-Up",null),exec:function(i){i.renderer.scrollBy(0,-2*i.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:o("Ctrl-Down",null),exec:function(i){i.renderer.scrollBy(0,2*i.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(i){i.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(i){i.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:o("Ctrl-Alt-E","Command-Option-E"),exec:function(i){i.commands.toggleRecording(i)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:o("Ctrl-Shift-E","Command-Shift-E"),exec:function(i){i.commands.replay(i)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:o("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(i){i.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:o("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(i){i.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:o("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(i){i.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:o(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(i){},readOnly:!0},{name:"cut",description:"Cut",exec:function(i){var s=i.$copyWithEmptySelection&&i.selection.isEmpty(),c=s?i.selection.getLineRange():i.selection.getRange();i._emit("cut",c),c.isEmpty()||i.session.remove(c),i.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(i,s){i.$handlePaste(s)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:o("Ctrl-D","Command-D"),exec:function(i){i.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:o("Ctrl-Shift-D","Command-Shift-D"),exec:function(i){i.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:o("Ctrl-Alt-S","Command-Alt-S"),exec:function(i){i.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:o("Ctrl-/","Command-/"),exec:function(i){i.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:o("Ctrl-Shift-/","Command-Shift-/"),exec:function(i){i.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:o("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(i){i.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:o("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(i){i.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:o("Ctrl-H","Command-Option-F"),exec:function(i){d.loadModule("ace/ext/searchbox",function(s){s.Search(i,!0)})}},{name:"undo",description:"Undo",bindKey:o("Ctrl-Z","Command-Z"),exec:function(i){i.undo()}},{name:"redo",description:"Redo",bindKey:o("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(i){i.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:o("Alt-Shift-Up","Command-Option-Up"),exec:function(i){i.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:o("Alt-Up","Option-Up"),exec:function(i){i.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:o("Alt-Shift-Down","Command-Option-Down"),exec:function(i){i.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:o("Alt-Down","Option-Down"),exec:function(i){i.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:o("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(i){i.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:o("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(i){i.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:o("Shift-Delete",null),exec:function(i){if(i.selection.isEmpty())i.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:o("Alt-Backspace","Command-Backspace"),exec:function(i){i.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:o("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(i){i.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:o("Ctrl-Shift-Backspace",null),exec:function(i){var s=i.selection.getRange();s.start.column=0,i.session.remove(s)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:o("Ctrl-Shift-Delete",null),exec:function(i){var s=i.selection.getRange();s.end.column=Number.MAX_VALUE,i.session.remove(s)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:o("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(i){i.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:o("Ctrl-Delete","Alt-Delete"),exec:function(i){i.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:o("Shift-Tab","Shift-Tab"),exec:function(i){i.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:o("Tab","Tab"),exec:function(i){i.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:o("Ctrl-[","Ctrl-["),exec:function(i){i.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:o("Ctrl-]","Ctrl-]"),exec:function(i){i.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(i,s){i.insert(s)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(i,s){i.insert(a.stringRepeat(s.text||"",s.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:o(null,"Ctrl-O"),exec:function(i){i.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:o("Alt-Shift-X","Ctrl-T"),exec:function(i){i.transposeLetters()},multiSelectAction:function(i){i.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:o("Ctrl-U","Ctrl-U"),exec:function(i){i.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:o("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(i){i.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:o(null,null),exec:function(i){i.autoIndent()},scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:o("Ctrl-Shift-L","Command-Shift-L"),exec:function(i){var s=i.selection.getRange();s.start.column=s.end.column=0,s.end.row++,i.selection.setRange(s,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:o("Ctrl+F3","F3"),exec:function(i){i.openLink()}},{name:"joinlines",description:"Join lines",bindKey:o(null,null),exec:function(i){for(var s=i.selection.isBackwards(),c=s?i.selection.getSelectionLead():i.selection.getSelectionAnchor(),u=s?i.selection.getSelectionAnchor():i.selection.getSelectionLead(),h=i.session.doc.getLine(c.row).length,f=i.session.doc.getTextRange(i.selection.getRange()),m=f.replace(/\n\s*/," ").length,v=i.session.doc.getLine(c.row),y=c.row+1;y<=u.row+1;y++){var C=a.stringTrimLeft(a.stringTrimRight(i.session.doc.getLine(y)));C.length!==0&&(C=" "+C),v+=C}u.row+1<i.session.doc.getLength()-1&&(v+=i.session.doc.getNewLineCharacter()),i.clearSelection(),i.session.doc.replace(new p(c.row,0,u.row+2,0),v),m>0?(i.selection.moveCursorTo(c.row,c.column),i.selection.selectTo(c.row,c.column+m)):(h=i.session.doc.getLine(c.row).length>h?h+1:h,i.selection.moveCursorTo(c.row,h))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:o(null,null),exec:function(i){var s=i.session.doc.getLength()-1,c=i.session.doc.getLine(s).length,u=i.selection.rangeList.ranges,h=[];u.length<1&&(u=[i.selection.getRange()]);for(var f=0;f<u.length;f++)f==u.length-1&&(u[f].end.row===s&&u[f].end.column===c||h.push(new p(u[f].end.row,u[f].end.column,s,c))),f===0?u[f].start.row===0&&u[f].start.column===0||h.push(new p(0,0,u[f].start.row,u[f].start.column)):h.push(new p(u[f-1].end.row,u[f-1].end.column,u[f].start.row,u[f].start.column));i.exitMultiSelectMode(),i.clearSelection();for(var f=0;f<h.length;f++)i.selection.addRange(h[f],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",description:"Add new line after the current line",exec:function(i){i.selection.clearSelection(),i.navigateLineEnd(),i.insert(`
1034
+ `)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(i){i.selection.clearSelection();var s=i.getCursorPosition();i.selection.moveTo(s.row-1,Number.MAX_VALUE),i.insert(`
1035
+ `),s.row===0&&i.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",exec:function(i){console.warn("This is an obsolete command. Please use `openCommandPalette` instead."),i.prompt({$type:"commands"})},readOnly:!0},{name:"openCommandPalette",description:"Open command palette",bindKey:o("F1","F1"),exec:function(i){i.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:o(null,null),exec:function(i){i.prompt({$type:"modes"})},readOnly:!0}];for(var g=1;g<9;g++)r.commands.push({name:"foldToLevel"+g,description:"Fold To Level "+g,level:g,exec:function(i){i.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(n,r,l){var a=n("./lib/dom"),d=function(){function p(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 p.prototype.getRowLength=function(o){var g;return this.lineWidgets?g=this.lineWidgets[o]&&this.lineWidgets[o].rowCount||0:g=0,!this.$useWrapMode||!this.$wrapData[o]?1+g:this.$wrapData[o].length+1+g},p.prototype.$getWidgetScreenLength=function(){var o=0;return this.lineWidgets.forEach(function(g){g&&g.rowCount&&!g.hidden&&(o+=g.rowCount)}),o},p.prototype.$onChangeEditor=function(o){this.attach(o.editor)},p.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)))},p.prototype.detach=function(o){var g=this.editor;if(g){this.editor=null,g.widgetManager=null,g.renderer.off("beforeRender",this.measureWidgets),g.renderer.off("afterRender",this.renderWidgets);var i=this.session.lineWidgets;i&&i.forEach(function(s){s&&s.el&&s.el.parentNode&&(s._inDocument=!1,s.el.parentNode.removeChild(s.el))})}},p.prototype.updateOnFold=function(o,g){var i=g.lineWidgets;if(!(!i||!o.action)){for(var s=o.data,c=s.start.row,u=s.end.row,h=o.action=="add",f=c+1;f<u;f++)i[f]&&(i[f].hidden=h);i[u]&&(h?i[c]?i[u].hidden=h:i[c]=i[u]:(i[c]==i[u]&&(i[c]=void 0),i[u].hidden=h))}},p.prototype.updateOnChange=function(o){var g=this.session.lineWidgets;if(g){var i=o.start.row,s=o.end.row-i;if(s!==0)if(o.action=="remove"){var c=g.splice(i+1,s);!g[i]&&c[c.length-1]&&(g[i]=c.pop()),c.forEach(function(h){h&&this.removeLineWidget(h)},this),this.$updateRows()}else{var u=new Array(s);g[i]&&g[i].column!=null&&o.start.column>g[i].column&&i++,u.unshift(i,0),g.splice.apply(g,u),this.$updateRows()}}},p.prototype.$updateRows=function(){var o=this.session.lineWidgets;if(o){var g=!0;o.forEach(function(i,s){if(i)for(g=!1,i.row=s;i.$oldWidget;)i.$oldWidget.row=s,i=i.$oldWidget}),g&&(this.session.lineWidgets=null)}},p.prototype.$registerLineWidget=function(o){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var g=this.session.lineWidgets[o.row];return g&&(o.$oldWidget=g,g.el&&g.el.parentNode&&(g.el.parentNode.removeChild(g.el),g._inDocument=!1)),this.session.lineWidgets[o.row]=o,o},p.prototype.addLineWidget=function(o){if(this.$registerLineWidget(o),o.session=this.session,!this.editor)return o;var g=this.editor.renderer;o.html&&!o.el&&(o.el=a.createElement("div"),o.el.innerHTML=o.html),o.text&&!o.el&&(o.el=a.createElement("div"),o.el.textContent=o.text),o.el&&(a.addCssClass(o.el,"ace_lineWidgetContainer"),o.className&&a.addCssClass(o.el,o.className),o.el.style.position="absolute",o.el.style.zIndex="5",g.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/g.layerConfig.lineHeight);var i=this.session.getFoldAt(o.row,0);if(o.$fold=i,i){var s=this.session.lineWidgets;o.row==i.end.row&&!s[i.start.row]?s[i.start.row]=o:o.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:o.row}}}),this.$updateRows(),this.renderWidgets(null,g),this.onWidgetChanged(o),o},p.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 g=this.session.lineWidgets[o.row];if(g==o)this.session.lineWidgets[o.row]=o.$oldWidget,o.$oldWidget&&this.onWidgetChanged(o.$oldWidget);else for(;g;){if(g.$oldWidget==o){g.$oldWidget=o.$oldWidget;break}g=g.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:o.row}}}),this.$updateRows()},p.prototype.getWidgetsAtRow=function(o){for(var g=this.session.lineWidgets,i=g&&g[o],s=[];i;)s.push(i),i=i.$oldWidget;return s},p.prototype.onWidgetChanged=function(o){this.session._changedWidgets.push(o),this.editor&&this.editor.renderer.updateFull()},p.prototype.measureWidgets=function(o,g){var i=this.session._changedWidgets,s=g.layerConfig;if(!(!i||!i.length)){for(var c=1/0,u=0;u<i.length;u++){var h=i[u];if(!(!h||!h.el)&&h.session==this.session){if(!h._inDocument){if(this.session.lineWidgets[h.row]!=h)continue;h._inDocument=!0,g.container.appendChild(h.el)}h.h=h.el.offsetHeight,h.fixedWidth||(h.w=h.el.offsetWidth,h.screenWidth=Math.ceil(h.w/s.characterWidth));var f=h.h/s.lineHeight;h.coverLine&&(f-=this.session.getRowLineCount(h.row),f<0&&(f=0)),h.rowCount!=f&&(h.rowCount=f,h.row<c&&(c=h.row))}}c!=1/0&&(this.session._emit("changeFold",{data:{start:{row:c}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},p.prototype.renderWidgets=function(o,g){var i=g.layerConfig,s=this.session.lineWidgets;if(s){for(var c=Math.min(this.firstRow,i.firstRow),u=Math.max(this.lastRow,i.lastRow,s.length);c>0&&!s[c];)c--;this.firstRow=i.firstRow,this.lastRow=i.lastRow,g.$cursorLayer.config=i;for(var h=c;h<=u;h++){var f=s[h];if(!(!f||!f.el)){if(f.hidden){f.el.style.top=-100-(f.pixelHeight||0)+"px";continue}f._inDocument||(f._inDocument=!0,g.container.appendChild(f.el));var m=g.$cursorLayer.getPixelPosition({row:h,column:0},!0).top;f.coverLine||(m+=i.lineHeight*this.session.getRowLineCount(f.row)),f.el.style.top=m-i.offset+"px";var v=f.coverGutter?0:g.gutterWidth;f.fixedWidth||(v-=g.scrollLeft),f.el.style.left=v+"px",f.fullWidth&&f.screenWidth&&(f.el.style.minWidth=i.width+2*i.padding+"px"),f.fixedWidth?f.el.style.right=g.scrollBar.getWidth()+"px":f.el.style.right=""}}}},p}();r.LineWidgets=d}),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys","ace/mouse/default_gutter_handler"],function(n,r,l){var a=n("../lib/keys"),d=n("../mouse/default_gutter_handler").GutterTooltip,p=function(){function g(i){this.editor=i,this.gutterLayer=i.renderer.$gutterLayer,this.element=i.renderer.$gutter,this.lines=i.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=new d(this.editor)}return g.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))},g.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))},g.prototype.$onGutterKeyDown=function(i){if(this.annotationTooltip.isOpen){i.preventDefault(),i.keyCode===a.escape&&this.annotationTooltip.hideTooltip();return}if(i.target===this.element){if(i.keyCode!=a.enter)return;i.preventDefault();var s=this.editor.getCursorPosition().row;this.editor.isRowVisible(s)||this.editor.scrollToLine(s,!0,!0),setTimeout((function(){var c=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),u=this.$findNearestFoldWidget(c),h=this.$findNearestAnnotation(c);if(!(u===null&&h===null)){if(u===null&&h!==null){this.activeRowIndex=h,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}if(u!==null&&h===null){this.activeRowIndex=u,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}if(Math.abs(h-c)<Math.abs(u-c)){this.activeRowIndex=h,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}else{this.activeRowIndex=u,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}}}).bind(this),10);return}this.$handleGutterKeyboardInteraction(i),setTimeout((function(){this.editor._signal("gutterkeydown",new o(i,this))}).bind(this),10)},g.prototype.$handleGutterKeyboardInteraction=function(i){if(i.keyCode===a.tab){i.preventDefault();return}if(i.keyCode===a.escape){i.preventDefault(),this.$blurGutter(),this.element.focus(),this.lane=null;return}if(i.keyCode===a.up){switch(i.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetUp();break;case"annotation":this.$moveAnnotationUp();break}return}if(i.keyCode===a.down){switch(i.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetDown();break;case"annotation":this.$moveAnnotationDown();break}return}if(i.keyCode===a.left){i.preventDefault(),this.$switchLane("annotation");return}if(i.keyCode===a.right){i.preventDefault(),this.$switchLane("fold");return}if(i.keyCode===a.enter||i.keyCode===a.space){switch(i.preventDefault(),this.activeLane){case"fold":if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="start"){var s=this.$rowIndexToRow(this.activeRowIndex);this.editor.session.onFoldWidgetClick(this.$rowIndexToRow(this.activeRowIndex),i),setTimeout((function(){this.$rowIndexToRow(this.activeRowIndex)!==s&&(this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=this.$rowToRowIndex(s),this.$focusFoldWidget(this.activeRowIndex))}).bind(this),10);break}else if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="end")break;return;case"annotation":var c=this.lines.cells[this.activeRowIndex].element.childNodes[2],u=c.getBoundingClientRect(),h=this.annotationTooltip.getElement().style;h.left=u.right+"px",h.top=u.bottom+"px",this.annotationTooltip.showTooltip(this.$rowIndexToRow(this.activeRowIndex));break}return}},g.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()},g.prototype.$isFoldWidgetVisible=function(i){var s=this.editor.isRowFullyVisible(this.$rowIndexToRow(i)),c=this.$getFoldWidget(i).style.display!=="none";return s&&c},g.prototype.$isAnnotationVisible=function(i){var s=this.editor.isRowFullyVisible(this.$rowIndexToRow(i)),c=this.$getAnnotation(i).style.display!=="none";return s&&c},g.prototype.$getFoldWidget=function(i){var s=this.lines.get(i),c=s.element;return c.childNodes[1]},g.prototype.$getAnnotation=function(i){var s=this.lines.get(i),c=s.element;return c.childNodes[2]},g.prototype.$findNearestFoldWidget=function(i){if(this.$isFoldWidgetVisible(i))return i;for(var s=0;i-s>0||i+s<this.lines.getLength()-1;){if(s++,i-s>=0&&this.$isFoldWidgetVisible(i-s))return i-s;if(i+s<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(i+s))return i+s}return null},g.prototype.$findNearestAnnotation=function(i){if(this.$isAnnotationVisible(i))return i;for(var s=0;i-s>0||i+s<this.lines.getLength()-1;){if(s++,i-s>=0&&this.$isAnnotationVisible(i-s))return i-s;if(i+s<=this.lines.getLength()-1&&this.$isAnnotationVisible(i+s))return i+s}return null},g.prototype.$focusFoldWidget=function(i){if(i!=null){var s=this.$getFoldWidget(i);s.classList.add(this.editor.renderer.keyboardFocusClassName),s.focus()}},g.prototype.$focusAnnotation=function(i){if(i!=null){var s=this.$getAnnotation(i);s.classList.add(this.editor.renderer.keyboardFocusClassName),s.focus()}},g.prototype.$blurFoldWidget=function(i){var s=this.$getFoldWidget(i);s.classList.remove(this.editor.renderer.keyboardFocusClassName),s.blur()},g.prototype.$blurAnnotation=function(i){var s=this.$getAnnotation(i);s.classList.remove(this.editor.renderer.keyboardFocusClassName),s.blur()},g.prototype.$moveFoldWidgetUp=function(){for(var i=this.activeRowIndex;i>0;)if(i--,this.$isFoldWidgetVisible(i)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=i,this.$focusFoldWidget(this.activeRowIndex);return}},g.prototype.$moveFoldWidgetDown=function(){for(var i=this.activeRowIndex;i<this.lines.getLength()-1;)if(i++,this.$isFoldWidgetVisible(i)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=i,this.$focusFoldWidget(this.activeRowIndex);return}},g.prototype.$moveAnnotationUp=function(){for(var i=this.activeRowIndex;i>0;)if(i--,this.$isAnnotationVisible(i)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=i,this.$focusAnnotation(this.activeRowIndex);return}},g.prototype.$moveAnnotationDown=function(){for(var i=this.activeRowIndex;i<this.lines.getLength()-1;)if(i++,this.$isAnnotationVisible(i)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=i,this.$focusAnnotation(this.activeRowIndex);return}},g.prototype.$switchLane=function(i){switch(i){case"annotation":if(this.activeLane==="annotation")break;var s=this.$findNearestAnnotation(this.activeRowIndex);if(s==null)break;this.activeLane="annotation",this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=s,this.$focusAnnotation(this.activeRowIndex);break;case"fold":if(this.activeLane==="fold")break;var c=this.$findNearestFoldWidget(this.activeRowIndex);if(c==null)break;this.activeLane="fold",this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=c,this.$focusFoldWidget(this.activeRowIndex);break}},g.prototype.$rowIndexToRow=function(i){var s=this.lines.get(i);return s?s.row:null},g.prototype.$rowToRowIndex=function(i){for(var s=0;s<this.lines.getLength();s++){var c=this.lines.get(s);if(c.row==i)return s}return null},g}();r.GutterKeyboardHandler=p;var o=function(){function g(i,s){this.gutterKeyboardHandler=s,this.domEvent=i}return g.prototype.getKey=function(){return a.keyCodeToString(this.domEvent.keyCode)},g.prototype.getRow=function(){return this.gutterKeyboardHandler.$rowIndexToRow(this.gutterKeyboardHandler.activeRowIndex)},g.prototype.isInAnnotationLane=function(){return this.gutterKeyboardHandler.activeLane==="annotation"},g.prototype.isInFoldLane=function(){return this.gutterKeyboardHandler.activeLane==="fold"},g}();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 a=this&&this.__values||function(S){var w=typeof Symbol=="function"&&Symbol.iterator,x=w&&S[w],T=0;if(x)return x.call(S);if(S&&typeof S.length=="number")return{next:function(){return S&&T>=S.length&&(S=void 0),{value:S&&S[T++],done:!S}}};throw new TypeError(w?"Object is not iterable.":"Symbol.iterator is not defined.")},d=n("./lib/oop"),p=n("./lib/dom"),o=n("./lib/lang"),g=n("./lib/useragent"),i=n("./keyboard/textinput").TextInput,s=n("./mouse/mouse_handler").MouseHandler,c=n("./mouse/fold_handler").FoldHandler,u=n("./keyboard/keybinding").KeyBinding,h=n("./edit_session").EditSession,f=n("./search").Search,m=n("./range").Range,v=n("./lib/event_emitter").EventEmitter,y=n("./commands/command_manager").CommandManager,C=n("./commands/default_commands").commands,$=n("./config"),_=n("./token_iterator").TokenIterator,b=n("./line_widgets").LineWidgets,E=n("./keyboard/gutter_handler").GutterKeyboardHandler,L=n("./config").nls,k=n("./clipboard"),M=n("./lib/keys"),A=function(){function S(w,x,T){this.session,this.$toDestroy=[];var O=w.getContainerElement();this.container=O,this.renderer=w,this.id="editor"+ ++S.$uid,this.commands=new y(g.isMac?"mac":"win",C),typeof document=="object"&&(this.textInput=new i(w.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new s(this),new c(this)),this.keyBinding=new u(this),this.$search=new f().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=o.delayedCall((function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}).bind(this)),this.on("change",function(I,N){N._$emitInputEvent.schedule(31)}),this.setSession(x||T&&T.session||new h("")),$.resetOptions(this),T&&this.setOptions(T),$._signal("editor",this)}return S.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=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)},S.prototype.startOperation=function(w){if(this.curOp){if(!w||this.curOp.command)return;this.prevOp=this.curOp}w||(this.previousCommand=null,w={}),this.$opResetTimer.schedule(),this.curOp=this.session.curOp={command:w.command||{},args:w.args,scrollTop:this.renderer.scrollTop},this.curOp.selectionBefore=this.selection.toJSON()},S.prototype.endOperation=function(w){if(this.curOp&&this.session){if(w&&w.returnValue===!1||!this.session)return this.curOp=null;if(w==!0&&this.curOp.command&&this.curOp.command.name=="mouse"||(this._signal("beforeEndOperation"),!this.curOp))return;var x=this.curOp.command,T=x&&x.scrollIntoView;if(T){switch(T){case"center-animate":T="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var O=this.selection.getRange(),I=this.renderer.layerConfig;(O.start.row>=I.lastRow||O.end.row<=I.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}T=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}var N=this.selection.toJSON();this.curOp.selectionAfter=N,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(N),this.prevOp=this.curOp,this.curOp=null}},S.prototype.$historyTracker=function(w){if(this.$mergeUndoDeltas){var x=this.prevOp,T=this.$mergeableCommands,O=x.command&&w.command.name==x.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(x.args)),this.mergeNextCommand=!0}else O=O&&T.indexOf(w.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(O=!1),O?this.session.mergeUndoDeltas=!0:T.indexOf(w.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},S.prototype.setKeyboardHandler=function(w,x){if(w&&typeof w=="string"&&w!="ace"){this.$keybindingId=w;var T=this;$.loadModule(["keybinding",w],function(O){T.$keybindingId==w&&T.keyBinding.setKeyboardHandler(O&&O.handler),x&&x()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(w),x&&x()},S.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},S.prototype.setSession=function(w){if(this.session!=w){this.curOp&&this.endOperation(),this.curOp={};var x=this.session;if(x){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:x}),this.curOp=null,x&&x._signal("changeEditor",{oldEditor:this}),w&&w._signal("changeEditor",{editor:this}),w&&!w.destroyed&&w.bgTokenizer.scheduleStart()}},S.prototype.getSession=function(){return this.session},S.prototype.setValue=function(w,x){return this.session.doc.setValue(w),x?x==1?this.navigateFileEnd():x==-1&&this.navigateFileStart():this.selectAll(),w},S.prototype.getValue=function(){return this.session.getValue()},S.prototype.getSelection=function(){return this.selection},S.prototype.resize=function(w){this.renderer.onResize(w)},S.prototype.setTheme=function(w,x){this.renderer.setTheme(w,x)},S.prototype.getTheme=function(){return this.renderer.getTheme()},S.prototype.setStyle=function(w){this.renderer.setStyle(w)},S.prototype.unsetStyle=function(w){this.renderer.unsetStyle(w)},S.prototype.getFontSize=function(){return this.getOption("fontSize")||p.computedStyle(this.container).fontSize},S.prototype.setFontSize=function(w){this.setOption("fontSize",w)},S.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var w=this;this.$highlightPending=!0,setTimeout(function(){w.$highlightPending=!1;var x=w.session;if(!(!x||x.destroyed)){x.$bracketHighlight&&(x.$bracketHighlight.markerIds.forEach(function(W){x.removeMarker(W)}),x.$bracketHighlight=null);var T=w.getCursorPosition(),O=w.getKeyboardHandler(),I=O&&O.$getDirectionForHighlight&&O.$getDirectionForHighlight(w),N=x.getMatchingBracketRanges(T,I);if(!N){var P=new _(x,T.row,T.column),H=P.getCurrentToken();if(H&&/\b(?:tag-open|tag-name)/.test(H.type)){var V=x.getMatchingTags(T);V&&(N=[V.openTagName,V.closeTagName])}}if(!N&&x.$mode.getMatching&&(N=x.$mode.getMatching(w.session)),!N){w.getHighlightIndentGuides()&&w.renderer.$textLayer.$highlightIndentGuide();return}var U="ace_bracket";Array.isArray(N)?N.length==1&&(U="ace_error_bracket"):N=[N],N.length==2&&(m.comparePoints(N[0].end,N[1].start)==0?N=[m.fromPoints(N[0].start,N[1].end)]:m.comparePoints(N[0].start,N[1].end)==0&&(N=[m.fromPoints(N[1].start,N[0].end)])),x.$bracketHighlight={ranges:N,markerIds:N.map(function(W){return x.addMarker(W,U,"text")})},w.getHighlightIndentGuides()&&w.renderer.$textLayer.$highlightIndentGuide()}},50)}},S.prototype.focus=function(){this.textInput.focus()},S.prototype.isFocused=function(){return this.textInput.isFocused()},S.prototype.blur=function(){this.textInput.blur()},S.prototype.onFocus=function(w){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",w))},S.prototype.onBlur=function(w){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",w))},S.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},S.prototype.onDocumentChange=function(w){var x=this.session.$useWrapMode,T=w.start.row==w.end.row?w.end.row:1/0;this.renderer.updateLines(w.start.row,T,x),this._signal("change",w),this.$cursorChange()},S.prototype.onTokenizerUpdate=function(w){var x=w.data;this.renderer.updateLines(x.first,x.last)},S.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},S.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},S.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},S.prototype.$updateHighlightActiveLine=function(){var w=this.getSession(),x;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(x=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(x=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(x=!1)),w.$highlightLineMarker&&!x)w.removeMarker(w.$highlightLineMarker.id),w.$highlightLineMarker=null;else if(!w.$highlightLineMarker&&x){var T=new m(x.row,x.column,x.row,1/0);T.id=w.addMarker(T,"ace_active-line","screenLine"),w.$highlightLineMarker=T}else x&&(w.$highlightLineMarker.start.row=x.row,w.$highlightLineMarker.end.row=x.row,w.$highlightLineMarker.start.column=x.column,w._signal("changeBackMarker"))},S.prototype.onSelectionChange=function(w){var x=this.session;if(x.$selectionMarker&&x.removeMarker(x.$selectionMarker),x.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var T=this.selection.getRange(),O=this.getSelectionStyle();x.$selectionMarker=x.addMarker(T,"ace_selection",O)}var I=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(I),this._signal("changeSelection")},S.prototype.$getSelectionHighLightRegexp=function(){var w=this.session,x=this.getSelectionRange();if(!(x.isEmpty()||x.isMultiLine())){var T=x.start.column,O=x.end.column,I=w.getLine(x.start.row),N=I.substring(T,O);if(!(N.length>5e3||!/[\w\d]/.test(N))){var P=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:N}),H=I.substring(T-1,O+1);if(P.test(H))return P}}},S.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},S.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},S.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},S.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},S.prototype.onChangeMode=function(w){this.renderer.updateText(),this._emit("changeMode",w)},S.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},S.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},S.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},S.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},S.prototype.getCopyText=function(){var w=this.getSelectedText(),x=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)+x)}}var P={text:w};return this._signal("copy",P),k.lineMode=T?P.text:!1,P.text},S.prototype.onCopy=function(){this.commands.exec("copy",this)},S.prototype.onCut=function(){this.commands.exec("cut",this)},S.prototype.onPaste=function(w,x){var T={text:w,event:x};this.commands.exec("paste",this,T)},S.prototype.$handlePaste=function(w){typeof w=="string"&&(w={text:w}),this._signal("paste",w);var x=w.text,T=x===k.lineMode,O=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)T?O.insert({row:this.selection.lead.row,column:0},x):this.insert(x);else if(T)this.selection.rangeList.ranges.forEach(function(U){O.insert({row:U.start.row,column:0},x)});else{var I=x.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,x);for(var H=N.length;H--;){var V=N[H];V.isEmpty()||O.remove(V),O.insert(V.start,I[H])}}},S.prototype.execCommand=function(w,x){return this.commands.exec(w,this,x)},S.prototype.insert=function(w,x){var T=this.session,O=T.getMode(),I=this.getCursorPosition();if(this.getBehavioursEnabled()&&!x){var N=O.transformAction(T.getState(I.row),"insertion",this,T,w);N&&(w!==N.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),w=N.text)}if(w==" "&&(w=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&w.indexOf(`
1036
+ `)==-1){var P=m.fromPoints(I,I);P.end.column+=w.length,this.session.remove(P)}}else{var P=this.getSelectionRange();I=this.session.remove(P),this.clearSelection()}if(w==`
1037
+ `||w==`\r
1038
+ `){var W=T.getLine(I.row);if(I.column>W.search(/\S|$/)){var H=W.substr(I.column).search(/\S|$/);T.doc.removeInLine(I.row,I.column,I.column+H)}}this.clearSelection();var V=I.column,U=T.getState(I.row),W=T.getLine(I.row),j=O.checkOutdent(U,W,w);if(T.insert(I,w),N&&N.selection&&(N.selection.length==2?this.selection.setSelectionRange(new m(I.row,V+N.selection[0],I.row,V+N.selection[1])):this.selection.setSelectionRange(new m(I.row+N.selection[0],N.selection[1],I.row+N.selection[2],N.selection[3]))),this.$enableAutoIndent){if(T.getDocument().isNewLine(w)){var q=O.getNextLineIndent(U,W.slice(0,I.column),T.getTabString());T.insert({row:I.row+1,column:0},q)}j&&O.autoOutdent(U,T,I.row)}},S.prototype.autoIndent=function(){for(var w=this.session,x=w.getMode(),T=this.selection.isEmpty()?[new m(0,0,w.doc.getLength()-1,0)]:this.selection.getAllRanges(),O="",I="",N="",P=w.getTabString(),H=0;H<T.length;H++)for(var V=T[H].start.row,U=T[H].end.row,W=V;W<=U;W++){W>0&&(O=w.getState(W-1),I=w.getLine(W-1),N=x.getNextLineIndent(O,I,P));var j=w.getLine(W),q=x.$getIndent(j);if(N!==q){if(q.length>0){var z=new m(W,0,W,q.length);w.remove(z)}N.length>0&&w.insert({row:W,column:0},N)}x.autoOutdent(O,w,W)}},S.prototype.onTextInput=function(w,x){if(!x)return this.keyBinding.onTextInput(w);this.startOperation({command:{name:"insertstring"}});var T=this.applyComposition.bind(this,w,x);this.selection.rangeCount?this.forEachSelection(T):T(),this.endOperation()},S.prototype.applyComposition=function(w,x){if(x.extendLeft||x.extendRight){var T=this.selection.getRange();T.start.column-=x.extendLeft,T.end.column+=x.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),x.restoreStart||x.restoreEnd){var T=this.selection.getRange();T.start.column-=x.restoreStart,T.end.column-=x.restoreEnd,this.selection.setRange(T)}},S.prototype.onCommandKey=function(w,x,T){return this.keyBinding.onCommandKey(w,x,T)},S.prototype.setOverwrite=function(w){this.session.setOverwrite(w)},S.prototype.getOverwrite=function(){return this.session.getOverwrite()},S.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},S.prototype.setScrollSpeed=function(w){this.setOption("scrollSpeed",w)},S.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},S.prototype.setDragDelay=function(w){this.setOption("dragDelay",w)},S.prototype.getDragDelay=function(){return this.getOption("dragDelay")},S.prototype.setSelectionStyle=function(w){this.setOption("selectionStyle",w)},S.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},S.prototype.setHighlightActiveLine=function(w){this.setOption("highlightActiveLine",w)},S.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},S.prototype.setHighlightGutterLine=function(w){this.setOption("highlightGutterLine",w)},S.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},S.prototype.setHighlightSelectedWord=function(w){this.setOption("highlightSelectedWord",w)},S.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},S.prototype.setAnimatedScroll=function(w){this.renderer.setAnimatedScroll(w)},S.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},S.prototype.setShowInvisibles=function(w){this.renderer.setShowInvisibles(w)},S.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},S.prototype.setDisplayIndentGuides=function(w){this.renderer.setDisplayIndentGuides(w)},S.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},S.prototype.setHighlightIndentGuides=function(w){this.renderer.setHighlightIndentGuides(w)},S.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},S.prototype.setShowPrintMargin=function(w){this.renderer.setShowPrintMargin(w)},S.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},S.prototype.setPrintMarginColumn=function(w){this.renderer.setPrintMarginColumn(w)},S.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},S.prototype.setReadOnly=function(w){this.setOption("readOnly",w)},S.prototype.getReadOnly=function(){return this.getOption("readOnly")},S.prototype.setBehavioursEnabled=function(w){this.setOption("behavioursEnabled",w)},S.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},S.prototype.setWrapBehavioursEnabled=function(w){this.setOption("wrapBehavioursEnabled",w)},S.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},S.prototype.setShowFoldWidgets=function(w){this.setOption("showFoldWidgets",w)},S.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},S.prototype.setFadeFoldWidgets=function(w){this.setOption("fadeFoldWidgets",w)},S.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},S.prototype.remove=function(w){this.selection.isEmpty()&&(w=="left"?this.selection.selectLeft():this.selection.selectRight());var x=this.getSelectionRange();if(this.getBehavioursEnabled()){var T=this.session,O=T.getState(x.start.row),I=T.getMode().transformAction(O,"deletion",this,T,x);if(x.end.column===0){var N=T.getTextRange(x);if(N[N.length-1]==`
1039
+ `){var P=T.getLine(x.end.row);/^\s+$/.test(P)&&(x.end.column=P.length)}}I&&(x=I)}this.session.remove(x),this.clearSelection()},S.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},S.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},S.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},S.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var w=this.getSelectionRange();w.start.column==w.end.column&&w.start.row==w.end.row&&(w.end.column=0,w.end.row++),this.session.remove(w),this.clearSelection()},S.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var w=this.getCursorPosition();this.insert(`
1040
+ `),this.moveCursorToPosition(w)},S.prototype.setGhostText=function(w,x){this.session.widgetManager||(this.session.widgetManager=new b(this.session),this.session.widgetManager.attach(this)),this.renderer.setGhostText(w,x)},S.prototype.removeGhostText=function(){this.session.widgetManager&&this.renderer.removeGhostText()},S.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var w=this.getCursorPosition(),x=w.column;if(x!==0){var T=this.session.getLine(w.row),O,I;x<T.length?(O=T.charAt(x)+T.charAt(x-1),I=new m(w.row,x-1,w.row,x+1)):(O=T.charAt(x-1)+T.charAt(x-2),I=new m(w.row,x-2,w.row,x)),this.session.replace(I,O),this.session.selection.moveToPosition(I.end)}}},S.prototype.toLowerCase=function(){var w=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var x=this.getSelectionRange(),T=this.session.getTextRange(x);this.session.replace(x,T.toLowerCase()),this.selection.setSelectionRange(w)},S.prototype.toUpperCase=function(){var w=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var x=this.getSelectionRange(),T=this.session.getTextRange(x);this.session.replace(x,T.toUpperCase()),this.selection.setSelectionRange(w)},S.prototype.indent=function(){var w=this.session,x=this.getSelectionRange();if(x.start.row<x.end.row){var T=this.$getSelectedRows();w.indentRows(T.first,T.last," ");return}else if(x.start.column<x.end.column){var O=w.getTextRange(x);if(!/^\s+$/.test(O)){var T=this.$getSelectedRows();w.indentRows(T.first,T.last," ");return}}var I=w.getLine(x.start.row),N=x.start,P=w.getTabSize(),H=w.documentToScreenColumn(N.row,N.column);if(this.session.getUseSoftTabs())var V=P-H%P,U=o.stringRepeat(" ",V);else{for(var V=H%P;I[x.start.column-1]==" "&&V;)x.start.column--,V--;this.selection.setSelectionRange(x),U=" "}return this.insert(U)},S.prototype.blockIndent=function(){var w=this.$getSelectedRows();this.session.indentRows(w.first,w.last," ")},S.prototype.blockOutdent=function(){var w=this.session.getSelection();this.session.outdentRows(w.getRange())},S.prototype.sortLines=function(){for(var w=this.$getSelectedRows(),x=this.session,T=[],O=w.first;O<=w.last;O++)T.push(x.getLine(O));T.sort(function(P,H){return P.toLowerCase()<H.toLowerCase()?-1:P.toLowerCase()>H.toLowerCase()?1:0});for(var I=new m(0,0,0,0),O=w.first;O<=w.last;O++){var N=x.getLine(O);I.start.row=O,I.end.row=O,I.end.column=N.length,x.replace(I,T[O-w.first])}},S.prototype.toggleCommentLines=function(){var w=this.session.getState(this.getCursorPosition().row),x=this.$getSelectedRows();this.session.getMode().toggleCommentLines(w,this.session,x.first,x.last)},S.prototype.toggleBlockComment=function(){var w=this.getCursorPosition(),x=this.session.getState(w.row),T=this.getSelectionRange();this.session.getMode().toggleBlockComment(x,this.session,T,w)},S.prototype.getNumberAt=function(w,x){var T=/[\-]?[0-9]+(?:\.[0-9]+)?/g;T.lastIndex=0;for(var O=this.session.getLine(w);T.lastIndex<x;){var I=T.exec(O);if(I.index<=x&&I.index+I[0].length>=x){var N={value:I[0],start:I.index,end:I.index+I[0].length};return N}}return null},S.prototype.modifyNumber=function(w){var x=this.selection.getCursor().row,T=this.selection.getCursor().column,O=new m(x,T-1,x,T),I=this.session.getTextRange(O);if(!isNaN(parseFloat(I))&&isFinite(I)){var N=this.getNumberAt(x,T);if(N){var P=N.value.indexOf(".")>=0?N.start+N.value.indexOf(".")+1:N.end,H=N.start+N.value.length-P,V=parseFloat(N.value);V*=Math.pow(10,H),P!==N.end&&T<P?w*=Math.pow(10,N.end-T-1):w*=Math.pow(10,N.end-T),V+=w,V/=Math.pow(10,H);var U=V.toFixed(H),W=new m(x,N.start,x,N.end);this.session.replace(W,U),this.moveCursorTo(x,Math.max(N.start+1,T+U.length-N.value.length))}}else this.toggleWord()},S.prototype.toggleWord=function(){var w=this.selection.getCursor().row,x=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=x-O-1;N<0&&(N=0);var P=0,H=0,V=this;T.match(/[A-Za-z0-9_]+/)&&I.forEach(function(he,Ae){H=P+he.length,N>=P&&N<=H&&(T=he,V.selection.clearSelection(),V.moveCursorTo(w,P+O),V.selection.selectTo(w,H+O)),P=H});for(var U=this.$toggleWordPairs,W,j=0;j<U.length;j++)for(var q=U[j],z=0;z<=1;z++){var Z=+!z,K=T.match(new RegExp("^\\s?_?("+o.escapeRegExp(q[z])+")\\s?$","i"));if(K){var Q=T.match(new RegExp("([_]|^|\\s)("+o.escapeRegExp(K[1])+")($|\\s)","g"));Q&&(W=T.replace(new RegExp(o.escapeRegExp(q[z]),"i"),function(he){var Ae=q[Z];return he.toUpperCase()==he?Ae=Ae.toUpperCase():he.charAt(0).toUpperCase()==he.charAt(0)&&(Ae=Ae.substr(0,0)+q[Z].charAt(0).toUpperCase()+Ae.substr(1)),Ae}),this.insert(W),W="")}}},S.prototype.findLinkAt=function(w,x){var T,O,I=this.session.getLine(w),N=I.split(/((?:https?|ftp):\/\/[\S]+)/),P=x;P<0&&(P=0);var H=0,V=0,U;try{for(var W=a(N),j=W.next();!j.done;j=W.next()){var q=j.value;if(V=H+q.length,P>=H&&P<=V&&q.match(/((?:https?|ftp):\/\/[\S]+)/)){U=q.replace(/[\s:.,'";}\]]+$/,"");break}H=V}}catch(z){T={error:z}}finally{try{j&&!j.done&&(O=W.return)&&O.call(W)}finally{if(T)throw T.error}}return U},S.prototype.openLink=function(){var w=this.selection.getCursor(),x=this.findLinkAt(w.row,w.column);return x&&window.open(x,"_blank"),x!=null},S.prototype.removeLines=function(){var w=this.$getSelectedRows();this.session.removeFullLines(w.first,w.last),this.clearSelection()},S.prototype.duplicateSelection=function(){var w=this.selection,x=this.session,T=w.getRange(),O=w.isBackwards();if(T.isEmpty()){var I=T.start.row;x.duplicateLines(I,I)}else{var N=O?T.start:T.end,P=x.insert(N,x.getTextRange(T));T.start=N,T.end=P,w.setSelectionRange(T,O)}},S.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},S.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},S.prototype.moveText=function(w,x,T){return this.session.moveText(w,x,T)},S.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},S.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},S.prototype.$moveLines=function(w,x){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,x?0:w),x&&w==-1&&(O=0),N.moveBy(O,0),I.fromOrientedRange(N)}else{var P=I.rangeList.ranges;I.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var H=0,V=0,U=P.length,W=0;W<U;W++){var j=W;P[W].moveBy(H,0),T=this.$getSelectedRows(P[W]);for(var q=T.first,z=T.last;++W<U;){V&&P[W].moveBy(V,0);var Z=this.$getSelectedRows(P[W]);if(x&&Z.first!=z)break;if(!x&&Z.first>z+1)break;z=Z.last}for(W--,H=this.session.$moveLines(q,z,x?0:w),x&&w==-1&&(j=W+1);j<=W;)P[j].moveBy(H,0),j++;x||(H=0),V+=H}I.fromOrientedRange(I.ranges[0]),I.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},S.prototype.$getSelectedRows=function(w){return w=(w||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(w.start.row),last:this.session.getRowFoldEnd(w.end.row)}},S.prototype.onCompositionStart=function(w){this.renderer.showComposition(w)},S.prototype.onCompositionUpdate=function(w){this.renderer.setCompositionText(w)},S.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},S.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},S.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},S.prototype.isRowVisible=function(w){return w>=this.getFirstVisibleRow()&&w<=this.getLastVisibleRow()},S.prototype.isRowFullyVisible=function(w){return w>=this.renderer.getFirstFullyVisibleRow()&&w<=this.renderer.getLastFullyVisibleRow()},S.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},S.prototype.$moveByPage=function(w,x){var T=this.renderer,O=this.renderer.layerConfig,I=w*Math.floor(O.height/O.lineHeight);x===!0?this.selection.$moveSelection(function(){this.moveCursorBy(I,0)}):x===!1&&(this.selection.moveCursorBy(I,0),this.selection.clearSelection());var N=T.scrollTop;T.scrollBy(0,I*O.lineHeight),x!=null&&T.scrollCursorIntoView(null,.5),T.animateScrolling(N)},S.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},S.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},S.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},S.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},S.prototype.scrollPageDown=function(){this.$moveByPage(1)},S.prototype.scrollPageUp=function(){this.$moveByPage(-1)},S.prototype.scrollToRow=function(w){this.renderer.scrollToRow(w)},S.prototype.scrollToLine=function(w,x,T,O){this.renderer.scrollToLine(w,x,T,O)},S.prototype.centerSelection=function(){var w=this.getSelectionRange(),x={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(x,.5)},S.prototype.getCursorPosition=function(){return this.selection.getCursor()},S.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},S.prototype.getSelectionRange=function(){return this.selection.getRange()},S.prototype.selectAll=function(){this.selection.selectAll()},S.prototype.clearSelection=function(){this.selection.clearSelection()},S.prototype.moveCursorTo=function(w,x){this.selection.moveCursorTo(w,x)},S.prototype.moveCursorToPosition=function(w){this.selection.moveCursorToPosition(w)},S.prototype.jumpToMatching=function(w,x){var T=this.getCursorPosition(),O=new _(this.session,T.row,T.column),I=O.getCurrentToken(),N=0;I&&I.type.indexOf("tag-name")!==-1&&(I=O.stepBackward());var P=I||O.stepForward();if(P){var H,V=!1,U={},W=T.column-P.start,j,q={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(P.value.match(/[{}()\[\]]/g)){for(;W<P.value.length&&!V;W++)if(q[P.value[W]])switch(j=q[P.value[W]]+"."+P.type.replace("rparen","lparen"),isNaN(U[j])&&(U[j]=0),P.value[W]){case"(":case"[":case"{":U[j]++;break;case")":case"]":case"}":U[j]--,U[j]===-1&&(H="bracket",V=!0);break}}else P.type.indexOf("tag-name")!==-1&&(isNaN(U[P.value])&&(U[P.value]=0),I.value==="<"&&N>1?U[P.value]++:I.value==="</"&&U[P.value]--,U[P.value]===-1&&(H="tag",V=!0));V||(I=P,N++,P=O.stepForward(),W=0)}while(P&&!V);if(H){var z,Z;if(H==="bracket")z=this.session.getBracketRange(T),z||(z=new m(O.getCurrentTokenRow(),O.getCurrentTokenColumn()+W-1,O.getCurrentTokenRow(),O.getCurrentTokenColumn()+W-1),Z=z.start,(x||Z.row===T.row&&Math.abs(Z.column-T.column)<2)&&(z=this.session.getBracketRange(Z)));else if(H==="tag"){if(!P||P.type.indexOf("tag-name")===-1)return;if(z=new m(O.getCurrentTokenRow(),O.getCurrentTokenColumn()-2,O.getCurrentTokenRow(),O.getCurrentTokenColumn()-2),z.compare(T.row,T.column)===0){var K=this.session.getMatchingTags(T);K&&(K.openTag.contains(T.row,T.column)?(z=K.closeTag,Z=z.start):(z=K.openTag,K.closeTag.start.row===T.row&&K.closeTag.start.column===T.column?Z=z.end:Z=z.start))}Z=Z||z.start}Z=z&&z.cursor||Z,Z&&(w?z&&x?this.selection.setRange(z):z&&z.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(Z.row,Z.column):this.selection.moveTo(Z.row,Z.column))}}},S.prototype.gotoLine=function(w,x,T){this.selection.clearSelection(),this.session.unfold({row:w-1,column:x||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(w-1,x||0),this.isRowFullyVisible(w-1)||this.scrollToLine(w-1,!0,T)},S.prototype.navigateTo=function(w,x){this.selection.moveTo(w,x)},S.prototype.navigateUp=function(w){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var x=this.selection.anchor.getPosition();return this.moveCursorToPosition(x)}this.selection.clearSelection(),this.selection.moveCursorBy(-w||-1,0)},S.prototype.navigateDown=function(w){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var x=this.selection.anchor.getPosition();return this.moveCursorToPosition(x)}this.selection.clearSelection(),this.selection.moveCursorBy(w||1,0)},S.prototype.navigateLeft=function(w){if(this.selection.isEmpty())for(w=w||1;w--;)this.selection.moveCursorLeft();else{var x=this.getSelectionRange().start;this.moveCursorToPosition(x)}this.clearSelection()},S.prototype.navigateRight=function(w){if(this.selection.isEmpty())for(w=w||1;w--;)this.selection.moveCursorRight();else{var x=this.getSelectionRange().end;this.moveCursorToPosition(x)}this.clearSelection()},S.prototype.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},S.prototype.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},S.prototype.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},S.prototype.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},S.prototype.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},S.prototype.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},S.prototype.replace=function(w,x){x&&this.$search.set(x);var T=this.$search.find(this.session),O=0;return T&&(this.$tryReplace(T,w)&&(O=1),this.selection.setSelectionRange(T),this.renderer.scrollSelectionIntoView(T.start,T.end)),O},S.prototype.replaceAll=function(w,x){x&&this.$search.set(x);var T=this.$search.findAll(this.session),O=0;if(!T.length)return O;var I=this.getSelectionRange();this.selection.moveTo(0,0);for(var N=T.length-1;N>=0;--N)this.$tryReplace(T[N],w)&&O++;return this.selection.setSelectionRange(I),O},S.prototype.$tryReplace=function(w,x){var T=this.session.getTextRange(w);return x=this.$search.replace(T,x),x!==null?(w.end=this.session.replace(w,x),w):null},S.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},S.prototype.find=function(w,x,T){x||(x={}),typeof w=="string"||w instanceof RegExp?x.needle=w:typeof w=="object"&&d.mixin(x,w);var O=this.selection.getRange();x.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(x),x.start||this.$search.set({start:O});var I=this.$search.find(this.session);if(x.preventScroll)return I;if(I)return this.revealRange(I,T),I;x.backwards?O.start=O.end:O.end=O.start,this.selection.setRange(O)},S.prototype.findNext=function(w,x){this.find({skipCurrent:!0,backwards:!1},w,x)},S.prototype.findPrevious=function(w,x){this.find(w,{skipCurrent:!0,backwards:!0},x)},S.prototype.revealRange=function(w,x){this.session.unfold(w),this.selection.setSelectionRange(w);var T=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(w.start,w.end,.5),x!==!1&&this.renderer.animateScrolling(T)},S.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},S.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},S.prototype.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(w){w.destroy()}),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},S.prototype.setAutoScrollEditorIntoView=function(w){if(w){var x,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&&(x=T.renderer.container.getBoundingClientRect())}),H=this.renderer.on("afterRender",function(){if(O&&x&&(T.isFocused()||T.searchBox&&T.searchBox.isFocused())){var V=T.renderer,U=V.$cursorLayer.$pixelPos,W=V.layerConfig,j=U.top-W.offset;U.top>=0&&j+x.top<0?O=!0:U.top<W.height&&U.top+x.top+W.lineHeight>window.innerHeight?O=!1:O=null,O!=null&&(I.style.top=j+"px",I.style.left=U.left+"px",I.style.height=W.lineHeight+"px",I.scrollIntoView(O)),O=x=null}});this.setAutoScrollEditorIntoView=function(V){V||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",N),this.renderer.off("afterRender",H),this.renderer.off("beforeRender",P))}}},S.prototype.$resetCursorStyle=function(){var w=this.$cursorStyle||"ace",x=this.renderer.$cursorLayer;x&&(x.setSmoothBlinking(/smooth/.test(w)),x.isBlinking=!this.$readOnly&&w!="wide",p.setCssClass(x.element,"ace_slim-cursors",/slim/.test(w)))},S.prototype.prompt=function(w,x,T){var O=this;$.loadModule("ace/ext/prompt",function(I){I.prompt(O,w,x,T)})},S}();A.$uid=0,A.prototype.curOp=null,A.prototype.prevOp={},A.prototype.$mergeableCommands=["backspace","del","insertstring"],A.prototype.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],d.implement(A.prototype,v),$.defineOptions(A.prototype,"editor",{selectionStyle:{set:function(S){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:S})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(S){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(S){this.textInput.setReadOnly(S),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(S){this.textInput.setCopyWithEmptySelection(S)},initialValue:!1},cursorStyle:{set:function(S){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(S){this.setAutoScrollEditorIntoView(S)}},keyboardHandler:{set:function(S){this.setKeyboardHandler(S)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(S){this.session.setValue(S)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(S){this.setSession(S)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(S){this.renderer.$gutterLayer.setShowLineNumbers(S),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),S&&this.$relativeLineNumbers?R.attach(this):R.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(S){this.$showLineNumbers&&S?R.attach(this):R.detach(this)}},placeholder:{set:function(S){this.$updatePlaceholder||(this.$updatePlaceholder=(function(){var w=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(w&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),p.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),p.addCssClass(this.container,"ace_hasPlaceholder");var x=p.createElement("div");x.className="ace_placeholder",x.textContent=this.$placeholder||"",this.renderer.placeholderNode=x,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!w&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}).bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(S){var w={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(O){O.blur(),O.renderer.scroller.focus()},readOnly:!0},x=function(O){if(O.target==this.renderer.scroller&&O.keyCode===M.enter){O.preventDefault();var I=this.getCursorPosition().row;this.isRowVisible(I)||this.scrollToLine(I,!0,!0),this.focus()}},T;S?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(g.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",x.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",x.bind(this)),this.commands.removeCommand(w),this.renderer.content.removeAttribute("aria-hidden"),this.renderer.$gutter.setAttribute("tabindex",-1),this.renderer.$gutter.setAttribute("aria-hidden",!0),this.renderer.$gutter.removeAttribute("role"),this.renderer.$gutter.removeAttribute("aria-roledescription"),this.renderer.$gutter.removeAttribute("aria-label"),this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName),T&&T.removeListener())},initialValue:!1},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",useResizeObserver:"renderer",useSvgGutterIcons:"renderer",showFoldedAnnotations:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var R={getText:function(S,w){return(Math.abs(S.selection.lead.row-w)||w+1+(w<9?"·":""))+""},getWidth:function(S,w,x){return Math.max(w.toString().length,(x.lastRow+1).toString().length,2)*x.characterWidth},update:function(S,w){w.renderer.$loop.schedule(w.renderer.CHANGE_GUTTER)},attach:function(S){S.renderer.$gutterLayer.$renderer=this,S.on("changeSelection",this.update),this.update(null,S)},detach:function(S){S.renderer.$gutterLayer.$renderer==this&&(S.renderer.$gutterLayer.$renderer=null),S.off("changeSelection",this.update),this.update(null,S)}};r.Editor=A}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(n,r,l){var a=n("../lib/dom"),d=function(){function p(o,g){this.element=o,this.canvasHeight=g||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return p.prototype.moveContainer=function(o){a.translate(this.element,0,-(o.firstRowScreen*o.lineHeight%this.canvasHeight)-o.offset*this.$offsetCoefficient)},p.prototype.pageChanged=function(o,g){return Math.floor(o.firstRowScreen*o.lineHeight/this.canvasHeight)!==Math.floor(g.firstRowScreen*g.lineHeight/this.canvasHeight)},p.prototype.computeLineTop=function(o,g,i){var s=g.firstRowScreen*g.lineHeight,c=Math.floor(s/this.canvasHeight),u=i.documentToScreenRow(o,0)*g.lineHeight;return u-c*this.canvasHeight},p.prototype.computeLineHeight=function(o,g,i){return g.lineHeight*i.getRowLineCount(o)},p.prototype.getLength=function(){return this.cells.length},p.prototype.get=function(o){return this.cells[o]},p.prototype.shift=function(){this.$cacheCell(this.cells.shift())},p.prototype.pop=function(){this.$cacheCell(this.cells.pop())},p.prototype.push=function(o){if(Array.isArray(o)){this.cells.push.apply(this.cells,o);for(var g=a.createFragment(this.element),i=0;i<o.length;i++)g.appendChild(o[i].element);this.element.appendChild(g)}else this.cells.push(o),this.element.appendChild(o.element)},p.prototype.unshift=function(o){if(Array.isArray(o)){this.cells.unshift.apply(this.cells,o);for(var g=a.createFragment(this.element),i=0;i<o.length;i++)g.appendChild(o[i].element);this.element.firstChild?this.element.insertBefore(g,this.element.firstChild):this.element.appendChild(g)}else this.cells.unshift(o),this.element.insertAdjacentElement("afterbegin",o.element)},p.prototype.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},p.prototype.$cacheCell=function(o){o&&(o.element.remove(),this.cellCache.push(o))},p.prototype.createCell=function(o,g,i,s){var c=this.cellCache.pop();if(!c){var u=a.createElement("div");s&&s(u),this.element.appendChild(u),c={element:u,text:"",row:o}}return c.row=o,c},p}();r.Lines=d}),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/layer/lines","ace/config"],function(n,r,l){var a=n("../lib/dom"),d=n("../lib/oop"),p=n("../lib/lang"),o=n("../lib/event_emitter").EventEmitter,g=n("./lines").Lines,i=n("../config").nls,s=function(){function u(h){this.element=a.createElement("div"),this.element.className="ace_layer ace_gutter-layer",h.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new g(this.element),this.$lines.$offsetCoefficient=1}return u.prototype.setSession=function(h){this.session&&this.session.off("change",this.$updateAnnotations),this.session=h,h&&h.on("change",this.$updateAnnotations)},u.prototype.addGutterDecoration=function(h,f){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(h,f)},u.prototype.removeGutterDecoration=function(h,f){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(h,f)},u.prototype.setAnnotations=function(h){this.$annotations=[];for(var f=0;f<h.length;f++){var m=h[f],v=m.row,y=this.$annotations[v];y||(y=this.$annotations[v]={text:[],type:[]});var C=m.text,$=m.type;C=C?p.escapeHTML(C):m.html||"",y.text.indexOf(C)===-1&&(y.text.push(C),y.type.push($));var _=m.className;_?y.className=_:$=="error"?y.className=" ace_error":$=="warning"&&y.className!=" ace_error"?y.className=" ace_warning":$=="info"&&!y.className&&(y.className=" ace_info")}},u.prototype.$updateAnnotations=function(h){if(this.$annotations.length){var f=h.start.row,m=h.end.row-f;if(m!==0)if(h.action=="remove")this.$annotations.splice(f,m+1,null);else{var v=new Array(m+1);v.unshift(f,1),this.$annotations.splice.apply(this.$annotations,v)}}},u.prototype.update=function(h){this.config=h;var f=this.session,m=h.firstRow,v=Math.min(h.lastRow+h.gutterOffset,f.getLength()-1);this.oldLastRow=v,this.config=h,this.$lines.moveContainer(h),this.$updateCursorRow();for(var y=f.getNextFoldLine(m),C=y?y.start.row:1/0,$=null,_=-1,b=m;;){if(b>C&&(b=y.end.row+1,y=f.getNextFoldLine(b,y),C=y?y.start.row:1/0),b>v){for(;this.$lines.getLength()>_+1;)this.$lines.pop();break}$=this.$lines.get(++_),$?$.row=b:($=this.$lines.createCell(b,h,this.session,c),this.$lines.push($)),this.$renderCell($,h,y,b),b++}this._signal("afterRender"),this.$updateGutterWidth(h)},u.prototype.$updateGutterWidth=function(h){var f=this.session,m=f.gutterRenderer||this.$renderer,v=f.$firstLineNumber,y=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||f.$useWrapMode)&&(y=f.getLength()+v-1);var C=m?m.getWidth(f,y,h):y.toString().length*h.characterWidth,$=this.$padding||this.$computePadding();C+=$.left+$.right,C!==this.gutterWidth&&!isNaN(C)&&(this.gutterWidth=C,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",C))},u.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var h=this.session.selection.getCursor();this.$cursorRow!==h.row&&(this.$cursorRow=h.row)}},u.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var h=this.session.selection.cursor.row;if(this.$cursorRow=h,!(this.$cursorCell&&this.$cursorCell.row==h)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var f=this.$lines.cells;this.$cursorCell=null;for(var m=0;m<f.length;m++){var v=f[m];if(v.row>=this.$cursorRow){if(v.row>this.$cursorRow){var y=this.session.getFoldLine(this.$cursorRow);if(m>0&&y&&y.start.row==f[m-1].row)v=f[m-1];else break}v.element.className="ace_gutter-active-line "+v.element.className,this.$cursorCell=v;break}}}}},u.prototype.scrollLines=function(h){var f=this.config;if(this.config=h,this.$updateCursorRow(),this.$lines.pageChanged(f,h))return this.update(h);this.$lines.moveContainer(h);var m=Math.min(h.lastRow+h.gutterOffset,this.session.getLength()-1),v=this.oldLastRow;if(this.oldLastRow=m,!f||v<h.firstRow)return this.update(h);if(m<f.firstRow)return this.update(h);if(f.firstRow<h.firstRow)for(var y=this.session.getFoldedRowCount(f.firstRow,h.firstRow-1);y>0;y--)this.$lines.shift();if(v>m)for(var y=this.session.getFoldedRowCount(m+1,v);y>0;y--)this.$lines.pop();h.firstRow<f.firstRow&&this.$lines.unshift(this.$renderLines(h,h.firstRow,f.firstRow-1)),m>v&&this.$lines.push(this.$renderLines(h,v+1,m)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(h)},u.prototype.$renderLines=function(h,f,m){for(var v=[],y=f,C=this.session.getNextFoldLine(y),$=C?C.start.row:1/0;y>$&&(y=C.end.row+1,C=this.session.getNextFoldLine(y,C),$=C?C.start.row:1/0),!(y>m);){var _=this.$lines.createCell(y,h,this.session,c);this.$renderCell(_,h,C,y),v.push(_),y++}return v},u.prototype.$renderCell=function(h,f,m,v){var y=h.element,C=this.session,$=y.childNodes[0],_=y.childNodes[1],b=y.childNodes[2],E=b.firstChild,L=C.$firstLineNumber,k=C.$breakpoints,M=C.$decorations,A=C.gutterRenderer||this.$renderer,R=this.$showFoldWidgets&&C.foldWidgets,S=m?m.start.row:Number.MAX_VALUE,w=f.lineHeight+"px",x=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",T=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",O=(A?A.getText(C,v):v+L).toString();if(this.$highlightGutterLine&&(v==this.$cursorRow||m&&v<this.$cursorRow&&v>=S&&this.$cursorRow<=m.end.row)&&(x+="ace_gutter-active-line ",this.$cursorCell!=h&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=h)),k[v]&&(x+=k[v]),M[v]&&(x+=M[v]),this.$annotations[v]&&v!==S&&(x+=this.$annotations[v].className),R){var I=R[v];I==null&&(I=R[v]=C.getFoldWidget(v))}if(I){var N="ace_fold-widget ace_"+I,P=I=="start"&&v==S&&v<m.end.row;if(P){N+=" ace_closed";for(var H="",V=!1,U=v+1;U<=m.end.row;U++)if(this.$annotations[U]){if(this.$annotations[U].className===" ace_error"){V=!0,H=" ace_error_fold";break}if(this.$annotations[U].className===" ace_warning"){V=!0,H=" ace_warning_fold";continue}}x+=H}else N+=" ace_open";_.className!=N&&(_.className=N),a.setStyle(_.style,"height",w),a.setStyle(_.style,"display","inline-block"),_.setAttribute("role","button"),_.setAttribute("tabindex","-1");var W=C.getFoldWidgetRange(v);W?_.setAttribute("aria-label",i("Toggle code folding, rows $0 through $1",[W.start.row+1,W.end.row+1])):m?_.setAttribute("aria-label",i("Toggle code folding, rows $0 through $1",[m.start.row+1,m.end.row+1])):_.setAttribute("aria-label",i("Toggle code folding, row $0",[v+1])),P?(_.setAttribute("aria-expanded","false"),_.setAttribute("title",i("Unfold code"))):(_.setAttribute("aria-expanded","true"),_.setAttribute("title",i("Fold code")))}else _&&(a.setStyle(_.style,"display","none"),_.setAttribute("tabindex","0"),_.removeAttribute("role"),_.removeAttribute("aria-label"));return V&&this.$showFoldedAnnotations?(b.className="ace_gutter_annotation",E.className=T,E.className+=H,a.setStyle(E.style,"height",w),a.setStyle(b.style,"display","block"),a.setStyle(b.style,"height",w),b.setAttribute("aria-label",i("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(" ","")),a.setStyle(E.style,"height",w),a.setStyle(b.style,"display","block"),a.setStyle(b.style,"height",w),b.setAttribute("aria-label",i("Read annotations row $0",[O])),b.setAttribute("tabindex","-1"),b.setAttribute("role","button")):(a.setStyle(b.style,"display","none"),b.removeAttribute("aria-label"),b.removeAttribute("role"),b.setAttribute("tabindex","0")),O!==$.data&&($.data=O),y.className!=x&&(y.className=x),a.setStyle(h.element.style,"height",this.$lines.computeLineHeight(v,f,C)+"px"),a.setStyle(h.element.style,"top",this.$lines.computeLineTop(v,f,C)+"px"),h.text=O,b.style.display==="none"&&_.style.display==="none"?h.element.setAttribute("aria-hidden",!0):h.element.setAttribute("aria-hidden",!1),h},u.prototype.setHighlightGutterLine=function(h){this.$highlightGutterLine=h},u.prototype.setShowLineNumbers=function(h){this.$renderer=!h&&{getWidth:function(){return 0},getText:function(){return""}}},u.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},u.prototype.setShowFoldWidgets=function(h){h?a.addCssClass(this.element,"ace_folding-enabled"):a.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=h,this.$padding=null},u.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},u.prototype.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var h=a.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(h.borderLeftWidth)||0)+(parseInt(h.paddingLeft)||0)+1,this.$padding.right=(parseInt(h.borderRightWidth)||0)+(parseInt(h.paddingRight)||0),this.$padding},u.prototype.getRegion=function(h){var f=this.$padding||this.$computePadding(),m=this.element.getBoundingClientRect();if(h.x<f.left+m.left)return"markers";if(this.$showFoldWidgets&&h.x>m.right-f.right)return"foldWidgets"},u}();s.prototype.$fixedWidth=!1,s.prototype.$highlightGutterLine=!0,s.prototype.$renderer="",s.prototype.$showLineNumbers=!0,s.prototype.$showFoldWidgets=!0,d.implement(s.prototype,o);function c(u){var h=document.createTextNode("");u.appendChild(h);var f=a.createElement("span");u.appendChild(f);var m=a.createElement("span");u.appendChild(m);var v=a.createElement("span");return m.appendChild(v),u}r.Gutter=s}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(n,r,l){var a=n("../range").Range,d=n("../lib/dom"),p=function(){function g(i){this.element=d.createElement("div"),this.element.className="ace_layer ace_marker-layer",i.appendChild(this.element)}return g.prototype.setPadding=function(i){this.$padding=i},g.prototype.setSession=function(i){this.session=i},g.prototype.setMarkers=function(i){this.markers=i},g.prototype.elt=function(i,s){var c=this.i!=-1&&this.element.childNodes[this.i];c?this.i++:(c=document.createElement("div"),this.element.appendChild(c),this.i=-1),c.style.cssText=s,c.className=i},g.prototype.update=function(i){if(i){this.config=i,this.i=0;var s;for(var c in this.markers){var u=this.markers[c];if(!u.range){u.update(s,this,this.session,i);continue}var h=u.range.clipRows(i.firstRow,i.lastRow);if(!h.isEmpty())if(h=h.toScreenRange(this.session),u.renderer){var f=this.$getTop(h.start.row,i),m=this.$padding+h.start.column*i.characterWidth;u.renderer(s,h,m,f,i)}else u.type=="fullLine"?this.drawFullLineMarker(s,h,u.clazz,i):u.type=="screenLine"?this.drawScreenLineMarker(s,h,u.clazz,i):h.isMultiLine()?u.type=="text"?this.drawTextMarker(s,h,u.clazz,i):this.drawMultiLineMarker(s,h,u.clazz,i):this.drawSingleLineMarker(s,h,u.clazz+" ace_start ace_br15",i)}if(this.i!=-1)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},g.prototype.$getTop=function(i,s){return(i-s.firstRowScreen)*s.lineHeight},g.prototype.drawTextMarker=function(i,s,c,u,h){for(var f=this.session,m=s.start.row,v=s.end.row,y=m,C=0,$=0,_=f.getScreenLastRowColumn(y),b=new a(y,s.start.column,y,$);y<=v;y++)b.start.row=b.end.row=y,b.start.column=y==m?s.start.column:f.getRowWrapIndent(y),b.end.column=_,C=$,$=_,_=y+1<v?f.getScreenLastRowColumn(y+1):y==v?0:s.end.column,this.drawSingleLineMarker(i,b,c+(y==m?" ace_start":"")+" ace_br"+o(y==m||y==m+1&&s.start.column,C<$,$>_,y==v),u,y==v?0:1,h)},g.prototype.drawMultiLineMarker=function(i,s,c,u,h){var f=this.$padding,m=u.lineHeight,v=this.$getTop(s.start.row,u),y=f+s.start.column*u.characterWidth;if(h=h||"",this.session.$bidiHandler.isBidiRow(s.start.row)){var C=s.clone();C.end.row=C.start.row,C.end.column=this.session.getLine(C.start.row).length,this.drawBidiSingleLineMarker(i,C,c+" ace_br1 ace_start",u,null,h)}else this.elt(c+" ace_br1 ace_start","height:"+m+"px;right:0;top:"+v+"px;left:"+y+"px;"+(h||""));if(this.session.$bidiHandler.isBidiRow(s.end.row)){var C=s.clone();C.start.row=C.end.row,C.start.column=0,this.drawBidiSingleLineMarker(i,C,c+" ace_br12",u,null,h)}else{v=this.$getTop(s.end.row,u);var $=s.end.column*u.characterWidth;this.elt(c+" ace_br12","height:"+m+"px;width:"+$+"px;top:"+v+"px;left:"+f+"px;"+(h||""))}if(m=(s.end.row-s.start.row-1)*u.lineHeight,!(m<=0)){v=this.$getTop(s.start.row+1,u);var _=(s.start.column?1:0)|(s.end.column?0:8);this.elt(c+(_?" ace_br"+_:""),"height:"+m+"px;right:0;top:"+v+"px;left:"+f+"px;"+(h||""))}},g.prototype.drawSingleLineMarker=function(i,s,c,u,h,f){if(this.session.$bidiHandler.isBidiRow(s.start.row))return this.drawBidiSingleLineMarker(i,s,c,u,h,f);var m=u.lineHeight,v=(s.end.column+(h||0)-s.start.column)*u.characterWidth,y=this.$getTop(s.start.row,u),C=this.$padding+s.start.column*u.characterWidth;this.elt(c,"height:"+m+"px;width:"+v+"px;top:"+y+"px;left:"+C+"px;"+(f||""))},g.prototype.drawBidiSingleLineMarker=function(i,s,c,u,h,f){var m=u.lineHeight,v=this.$getTop(s.start.row,u),y=this.$padding,C=this.session.$bidiHandler.getSelections(s.start.column,s.end.column);C.forEach(function($){this.elt(c,"height:"+m+"px;width:"+($.width+(h||0))+"px;top:"+v+"px;left:"+(y+$.left)+"px;"+(f||""))},this)},g.prototype.drawFullLineMarker=function(i,s,c,u,h){var f=this.$getTop(s.start.row,u),m=u.lineHeight;s.start.row!=s.end.row&&(m+=this.$getTop(s.end.row,u)-f),this.elt(c,"height:"+m+"px;top:"+f+"px;left:0;right:0;"+(h||""))},g.prototype.drawScreenLineMarker=function(i,s,c,u,h){var f=this.$getTop(s.start.row,u),m=u.lineHeight;this.elt(c,"height:"+m+"px;top:"+f+"px;left:0;right:0;"+(h||""))},g}();p.prototype.$padding=0;function o(g,i,s,c){return(g?1:0)|(i?2:0)|(s?4:0)|(c?8:0)}r.Marker=p}),ace.define("ace/layer/text_util",["require","exports","module"],function(n,r,l){var a=new Set(["text","rparen","lparen"]);r.isTextToken=function(d){return a.has(d)}}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter","ace/config","ace/layer/text_util"],function(n,r,l){var a=n("../lib/oop"),d=n("../lib/dom"),p=n("../lib/lang"),o=n("./lines").Lines,g=n("../lib/event_emitter").EventEmitter,i=n("../config").nls,s=n("./text_util").isTextToken,c=function(){function u(h){this.dom=d,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",h.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new o(this.element)}return u.prototype.$updateEolChar=function(){var h=this.session.doc,f=h.getNewLineCharacter()==`
1041
+ `&&h.getNewLineMode()!="windows",m=f?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=m)return this.EOL_CHAR=m,!0},u.prototype.setPadding=function(h){this.$padding=h,this.element.style.margin="0 "+h+"px"},u.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},u.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},u.prototype.$setFontMetrics=function(h){this.$fontMetrics=h,this.$fontMetrics.on("changeCharacterSize",(function(f){this._signal("changeCharacterSize",f)}).bind(this)),this.$pollSizeChanges()},u.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},u.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},u.prototype.setSession=function(h){this.session=h,h&&this.$computeTabString()},u.prototype.setShowInvisibles=function(h){return this.showInvisibles==h?!1:(this.showInvisibles=h,typeof h=="string"?(this.showSpaces=/tab/i.test(h),this.showTabs=/space/i.test(h),this.showEOL=/eol/i.test(h)):this.showSpaces=this.showTabs=this.showEOL=h,this.$computeTabString(),!0)},u.prototype.setDisplayIndentGuides=function(h){return this.displayIndentGuides==h?!1:(this.displayIndentGuides=h,this.$computeTabString(),!0)},u.prototype.setHighlightIndentGuides=function(h){return this.$highlightIndentGuides===h?!1:(this.$highlightIndentGuides=h,h)},u.prototype.$computeTabString=function(){var h=this.session.getTabSize();this.tabSize=h;for(var f=this.$tabStrings=[0],m=1;m<h+1;m++)if(this.showTabs){var v=this.dom.createElement("span");v.className="ace_invisible ace_invisible_tab",v.textContent=p.stringRepeat(this.TAB_CHAR,m),f.push(v)}else f.push(this.dom.createTextNode(p.stringRepeat(" ",m),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var y="ace_indent-guide",C=this.showSpaces?" ace_invisible ace_invisible_space":"",$=this.showSpaces?p.stringRepeat(this.SPACE_CHAR,this.tabSize):p.stringRepeat(" ",this.tabSize),_=this.showTabs?" ace_invisible ace_invisible_tab":"",b=this.showTabs?p.stringRepeat(this.TAB_CHAR,this.tabSize):$,v=this.dom.createElement("span");v.className=y+C,v.textContent=$,this.$tabStrings[" "]=v;var v=this.dom.createElement("span");v.className=y+_,v.textContent=b,this.$tabStrings[" "]=v}},u.prototype.updateLines=function(h,f,m){if(this.config.lastRow!=h.lastRow||this.config.firstRow!=h.firstRow)return this.update(h);this.config=h;for(var v=Math.max(f,h.firstRow),y=Math.min(m,h.lastRow),C=this.element.childNodes,$=0,b=h.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;$++}for(var _=!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 k=C[$++];if(k){this.dom.removeChildren(k),this.$renderLine(k,b,b==L?E:!1),_&&(k.style.top=this.$lines.computeLineTop(b,h,this.session)+"px");var M=h.lineHeight*this.session.getRowLength(b)+"px";k.style.height!=M&&(_=!0,k.style.height=M)}b++}if(_)for(;$<this.$lines.cells.length;){var A=this.$lines.cells[$++];A.element.style.top=this.$lines.computeLineTop(A.row,h,this.session)+"px"}},u.prototype.scrollLines=function(h){var f=this.config;if(this.config=h,this.$lines.pageChanged(f,h))return this.update(h);this.$lines.moveContainer(h);var m=h.lastRow,v=f?f.lastRow:-1;if(!f||v<h.firstRow)return this.update(h);if(m<f.firstRow)return this.update(h);if(!f||f.lastRow<h.firstRow)return this.update(h);if(h.lastRow<f.firstRow)return this.update(h);if(f.firstRow<h.firstRow)for(var y=this.session.getFoldedRowCount(f.firstRow,h.firstRow-1);y>0;y--)this.$lines.shift();if(f.lastRow>h.lastRow)for(var y=this.session.getFoldedRowCount(h.lastRow+1,f.lastRow);y>0;y--)this.$lines.pop();h.firstRow<f.firstRow&&this.$lines.unshift(this.$renderLinesFragment(h,h.firstRow,f.firstRow-1)),h.lastRow>f.lastRow&&this.$lines.push(this.$renderLinesFragment(h,f.lastRow+1,h.lastRow)),this.$highlightIndentGuide()},u.prototype.$renderLinesFragment=function(h,f,m){for(var v=[],y=f,C=this.session.getNextFoldLine(y),$=C?C.start.row:1/0;y>$&&(y=C.end.row+1,C=this.session.getNextFoldLine(y,C),$=C?C.start.row:1/0),!(y>m);){var _=this.$lines.createCell(y,h,this.session),b=_.element;this.dom.removeChildren(b),d.setStyle(b.style,"height",this.$lines.computeLineHeight(y,h,this.session)+"px"),d.setStyle(b.style,"top",this.$lines.computeLineTop(y,h,this.session)+"px"),this.$renderLine(b,y,y==$?C:!1),this.$useLineGroups()?b.className="ace_line_group":b.className="ace_line",v.push(_),y++}return v},u.prototype.update=function(h){this.$lines.moveContainer(h),this.config=h;for(var f=h.firstRow,m=h.lastRow,v=this.$lines;v.getLength();)v.pop();v.push(this.$renderLinesFragment(h,f,m))},u.prototype.$renderToken=function(h,f,m,v){for(var y=this,C=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,$=this.dom.createFragment(this.element),_,b=0;_=C.exec(v);){var E=_[1],L=_[2],k=_[3],M=_[4],A=_[5];if(!(!y.showSpaces&&L)){var R=b!=_.index?v.slice(b,_.index):"";if(b=_.index+_[0].length,R&&$.appendChild(this.dom.createTextNode(R,this.element)),E){var S=y.session.getScreenTabSize(f+_.index);$.appendChild(y.$tabStrings[S].cloneNode(!0)),f+=S-1}else if(L)if(y.showSpaces){var w=this.dom.createElement("span");w.className="ace_invisible ace_invisible_space",w.textContent=p.stringRepeat(y.SPACE_CHAR,L.length),$.appendChild(w)}else $.appendChild(this.dom.createTextNode(L,this.element));else if(k){var w=this.dom.createElement("span");w.className="ace_invisible ace_invisible_space ace_invalid",w.textContent=p.stringRepeat(y.SPACE_CHAR,k.length),$.appendChild(w)}else if(M){f+=1;var w=this.dom.createElement("span");w.style.width=y.config.characterWidth*2+"px",w.className=y.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",w.textContent=y.showSpaces?y.SPACE_CHAR:M,$.appendChild(w)}else if(A){f+=1;var w=this.dom.createElement("span");w.style.width=y.config.characterWidth*2+"px",w.className="ace_cjk",w.textContent=A,$.appendChild(w)}}}if($.appendChild(this.dom.createTextNode(b?v.slice(b):v,this.element)),s(m.type))h.appendChild($);else{var x="ace_"+m.type.replace(/\./g," ace_"),w=this.dom.createElement("span");m.type=="fold"&&(w.style.width=m.value.length*this.config.characterWidth+"px",w.setAttribute("title",i("Unfold code"))),w.className=x,w.appendChild($),h.appendChild(w)}return f+v.length},u.prototype.renderIndentGuide=function(h,f,m){var v=f.search(this.$indentGuideRe);if(v<=0||v>=m)return f;if(f[0]==" "){v-=v%this.tabSize;for(var y=v/this.tabSize,C=0;C<y;C++)h.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),f.substr(v)}else if(f[0]==" "){for(var C=0;C<v;C++)h.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),f.substr(v)}return this.$highlightIndentGuide(),f},u.prototype.$highlightIndentGuide=function(){if(!(!this.$highlightIndentGuides||!this.displayIndentGuides)){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var h=this.session.doc.$lines;if(h){var f=this.session.selection.getCursor(),m=/^\s*/.exec(this.session.doc.getLine(f.row))[0].length,v=Math.floor(m/this.tabSize);this.$highlightIndentGuideMarker={indentLevel:v,start:f.row};var y=this.session.$bracketHighlight;if(y){for(var C=this.session.$bracketHighlight.ranges,$=0;$<C.length;$++)if(f.row!==C[$].start.row){this.$highlightIndentGuideMarker.end=C[$].start.row,f.row>C[$].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&h[f.row]!==""&&f.column===h[f.row].length){this.$highlightIndentGuideMarker.dir=1;for(var $=f.row+1;$<h.length;$++){var _=h[$],b=/^\s*/.exec(_)[0].length;if(_!==""&&(this.$highlightIndentGuideMarker.end=$,b<=m))break}}this.$renderHighlightIndentGuide()}}},u.prototype.$clearActiveIndentGuide=function(){for(var h=this.$lines.cells,f=0;f<h.length;f++){var m=h[f],v=m.element.childNodes;if(v.length>0){for(var y=0;y<v.length;y++)if(v[y].classList&&v[y].classList.contains("ace_indent-guide-active")){v[y].classList.remove("ace_indent-guide-active");break}}}},u.prototype.$setIndentGuideActive=function(h,f){var m=this.session.doc.getLine(h.row);if(m!==""){var v=h.element.childNodes;if(v){var y=v[f-1];y&&y.classList&&y.classList.contains("ace_indent-guide")&&y.classList.add("ace_indent-guide-active")}}},u.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var h=this.$lines.cells;this.$clearActiveIndentGuide();var f=this.$highlightIndentGuideMarker.indentLevel;if(f!==0)if(this.$highlightIndentGuideMarker.dir===1)for(var m=0;m<h.length;m++){var v=h[m];if(this.$highlightIndentGuideMarker.end&&v.row>=this.$highlightIndentGuideMarker.start+1){if(v.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(v,f)}}else for(var m=h.length-1;m>=0;m--){var v=h[m];if(this.$highlightIndentGuideMarker.end&&v.row<this.$highlightIndentGuideMarker.start){if(v.row<=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(v,f)}}}},u.prototype.$createLineElement=function(h){var f=this.dom.createElement("div");return f.className="ace_line",f.style.height=this.config.lineHeight+"px",f},u.prototype.$renderWrappedLine=function(h,f,m){var v=0,y=0,C=m[0],$=0,_=this.$createLineElement();h.appendChild(_);for(var b=0;b<f.length;b++){var E=f[b],L=E.value;if(b==0&&this.displayIndentGuides){if(v=L.length,L=this.renderIndentGuide(_,L,C),!L)continue;v-=L.length}if(v+L.length<C)$=this.$renderToken(_,$,E,L),v+=L.length;else{for(;v+L.length>=C;)$=this.$renderToken(_,$,E,L.substring(0,C-v)),L=L.substring(C-v),v=C,_=this.$createLineElement(),h.appendChild(_),_.appendChild(this.dom.createTextNode(p.stringRepeat(" ",m.indent),this.element)),y++,$=0,C=m[y]||Number.MAX_VALUE;L.length!=0&&(v+=L.length,$=this.$renderToken(_,$,E,L))}}m[m.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(_,$,null,"",!0)},u.prototype.$renderSimpleLine=function(h,f){for(var m=0,v=0;v<f.length;v++){var y=f[v],C=y.value;if(!(v==0&&this.displayIndentGuides&&(C=this.renderIndentGuide(h,C),!C))){if(m+C.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(h,m,y,C);m=this.$renderToken(h,m,y,C)}}},u.prototype.$renderOverflowMessage=function(h,f,m,v,y){m&&this.$renderToken(h,f,m,v.slice(0,this.MAX_LINE_LENGTH-f));var C=this.dom.createElement("span");C.className="ace_inline_button ace_keyword ace_toggle_wrap",C.textContent=y?"<hide>":"<click to see more...>",h.appendChild(C)},u.prototype.$renderLine=function(h,f,m){if(!m&&m!=!1&&(m=this.session.getFoldLine(f)),m)var v=this.$getFoldLineTokens(f,m);else var v=this.session.getTokens(f);var y=h;if(v.length){var C=this.session.getRowSplitData(f);if(C&&C.length){this.$renderWrappedLine(h,v,C);var y=h.lastChild}else{var y=h;this.$useLineGroups()&&(y=this.$createLineElement(),h.appendChild(y)),this.$renderSimpleLine(y,v)}}else this.$useLineGroups()&&(y=this.$createLineElement(),h.appendChild(y));if(this.showEOL&&y){m&&(f=m.end.row);var $=this.dom.createElement("span");$.className="ace_invisible ace_invisible_eol",$.textContent=f==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,y.appendChild($)}},u.prototype.$getFoldLineTokens=function(h,f){var m=this.session,v=[];function y($,_,b){for(var E=0,L=0;L+$[E].value.length<_;)if(L+=$[E].value.length,E++,E==$.length)return;if(L!=_){var k=$[E].value.substring(_-L);k.length>b-_&&(k=k.substring(0,b-_)),v.push({type:$[E].type,value:k}),L=_+k.length,E+=1}for(;L<b&&E<$.length;){var k=$[E].value;k.length+L>b?v.push({type:$[E].type,value:k.substring(0,b-L)}):v.push($[E]),L+=k.length,E+=1}}var C=m.getTokens(h);return f.walk(function($,_,b,E,L){$!=null?v.push({type:"fold",value:$}):(L&&(C=m.getTokens(_)),C.length&&y(C,E,b))},f.end.row,this.session.getLine(f.end.row).length),v},u.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},u}();c.prototype.EOF_CHAR="¶",c.prototype.EOL_CHAR_LF="¬",c.prototype.EOL_CHAR_CRLF="¤",c.prototype.EOL_CHAR=c.prototype.EOL_CHAR_LF,c.prototype.TAB_CHAR="—",c.prototype.SPACE_CHAR="·",c.prototype.$padding=0,c.prototype.MAX_LINE_LENGTH=1e4,c.prototype.showInvisibles=!1,c.prototype.showSpaces=!1,c.prototype.showTabs=!1,c.prototype.showEOL=!1,c.prototype.displayIndentGuides=!0,c.prototype.$highlightIndentGuides=!0,c.prototype.$tabStrings=[],c.prototype.destroy={},c.prototype.onChangeTabSize=c.prototype.$computeTabString,a.implement(c.prototype,g),r.Text=c}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(n,r,l){var a=n("../lib/dom"),d=function(){function p(o){this.element=a.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(),a.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return p.prototype.$updateOpacity=function(o){for(var g=this.cursors,i=g.length;i--;)a.setStyle(g[i].style,"opacity",o?"":"0")},p.prototype.$startCssAnimation=function(){for(var o=this.cursors,g=o.length;g--;)o[g].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout((function(){this.$isAnimating&&a.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},p.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,a.removeCssClass(this.element,"ace_animate-blinking")},p.prototype.setPadding=function(o){this.$padding=o},p.prototype.setSession=function(o){this.session=o},p.prototype.setBlinking=function(o){o!=this.isBlinking&&(this.isBlinking=o,this.restartTimer())},p.prototype.setBlinkInterval=function(o){o!=this.blinkInterval&&(this.blinkInterval=o,this.restartTimer())},p.prototype.setSmoothBlinking=function(o){o!=this.smoothBlinking&&(this.smoothBlinking=o,a.setCssClass(this.element,"ace_smooth-blinking",o),this.$updateCursors(!0),this.restartTimer())},p.prototype.addCursor=function(){var o=a.createElement("div");return o.className="ace_cursor",this.element.appendChild(o),this.cursors.push(o),o},p.prototype.removeCursor=function(){if(this.cursors.length>1){var o=this.cursors.pop();return o.parentNode.removeChild(o),o}},p.prototype.hideCursor=function(){this.isVisible=!1,a.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},p.prototype.showCursor=function(){this.isVisible=!0,a.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},p.prototype.restartTimer=function(){var o=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,a.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&&a.addCssClass(this.element,"ace_smooth-blinking")}).bind(this))),a.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var g=(function(){this.timeoutId=setTimeout(function(){o(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){o(!0),g()},this.blinkInterval),g()}},p.prototype.getPixelPosition=function(o,g){if(!this.config||!this.session)return{left:0,top:0};o||(o=this.session.selection.getCursor());var i=this.session.documentToScreenPosition(o),s=this.$padding+(this.session.$bidiHandler.isBidiRow(i.row,o.row)?this.session.$bidiHandler.getPosLeft(i.column):i.column*this.config.characterWidth),c=(i.row-(g?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:s,top:c}},p.prototype.isCursorInView=function(o,g){return o.top>=0&&o.top<g.maxHeight},p.prototype.update=function(o){this.config=o;var g=this.session.$selectionMarkers,i=0,s=0;(g===void 0||g.length===0)&&(g=[{cursor:null}]);for(var i=0,c=g.length;i<c;i++){var u=this.getPixelPosition(g[i].cursor,!0);if(!((u.top>o.height+o.offset||u.top<0)&&i>1)){var h=this.cursors[s++]||this.addCursor(),f=h.style;this.drawCursor?this.drawCursor(h,u,o,g[i],this.session):this.isCursorInView(u,o)?(a.setStyle(f,"display","block"),a.translate(h,u.left,u.top),a.setStyle(f,"width",Math.round(o.characterWidth)+"px"),a.setStyle(f,"height",o.lineHeight+"px")):a.setStyle(f,"display","none")}}for(;this.cursors.length>s;)this.removeCursor();var m=this.session.getOverwrite();this.$setOverwrite(m),this.$pixelPos=u,this.restartTimer()},p.prototype.$setOverwrite=function(o){o!=this.overwrite&&(this.overwrite=o,o?a.addCssClass(this.element,"ace_overwrite-cursors"):a.removeCssClass(this.element,"ace_overwrite-cursors"))},p.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},p}();d.prototype.$padding=0,d.prototype.drawCursor=null,r.Cursor=d}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(n,r,l){var a=this&&this.__extends||function(){var h=function(f,m){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,y){v.__proto__=y}||function(v,y){for(var C in y)Object.prototype.hasOwnProperty.call(y,C)&&(v[C]=y[C])},h(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");h(f,m);function v(){this.constructor=f}f.prototype=m===null?Object.create(m):(v.prototype=m.prototype,new v)}}(),d=n("./lib/oop"),p=n("./lib/dom"),o=n("./lib/event"),g=n("./lib/event_emitter").EventEmitter,i=32768,s=function(){function h(f,m){this.element=p.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+m,this.inner=p.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),f.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,o.addListener(this.element,"scroll",this.onScroll.bind(this)),o.addListener(this.element,"mousedown",o.preventDefault)}return h.prototype.setVisible=function(f){this.element.style.display=f?"":"none",this.isVisible=f,this.coeff=1},h}();d.implement(s.prototype,g);var c=function(h){a(f,h);function f(m,v){var y=h.call(this,m,"-v")||this;return y.scrollTop=0,y.scrollHeight=0,v.$scrollbarWidth=y.width=p.scrollbarWidth(m.ownerDocument),y.inner.style.width=y.element.style.width=(y.width||15)+5+"px",y.$minWidth=0,y}return f.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var m=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-m)/(this.coeff-m)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},f.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},f.prototype.setHeight=function(m){this.element.style.height=m+"px"},f.prototype.setScrollHeight=function(m){this.scrollHeight=m,m>i?(this.coeff=i/m,m=i):this.coeff!=1&&(this.coeff=1),this.inner.style.height=m+"px"},f.prototype.setScrollTop=function(m){this.scrollTop!=m&&(this.skipEvent=!0,this.scrollTop=m,this.element.scrollTop=m*this.coeff)},f}(s);c.prototype.setInnerHeight=c.prototype.setScrollHeight;var u=function(h){a(f,h);function f(m,v){var y=h.call(this,m,"-h")||this;return y.scrollLeft=0,y.height=v.$scrollbarWidth,y.inner.style.height=y.element.style.height=(y.height||15)+5+"px",y}return f.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},f.prototype.getHeight=function(){return this.isVisible?this.height:0},f.prototype.setWidth=function(m){this.element.style.width=m+"px"},f.prototype.setInnerWidth=function(m){this.inner.style.width=m+"px"},f.prototype.setScrollWidth=function(m){this.inner.style.width=m+"px"},f.prototype.setScrollLeft=function(m){this.scrollLeft!=m&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=m)},f}(s);r.ScrollBar=c,r.ScrollBarV=c,r.ScrollBarH=u,r.VScrollBar=c,r.HScrollBar=u}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(n,r,l){var a=this&&this.__extends||function(){var u=function(h,f){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,v){m.__proto__=v}||function(m,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(m[y]=v[y])},u(h,f)};return function(h,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");u(h,f);function m(){this.constructor=h}h.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}}(),d=n("./lib/oop"),p=n("./lib/dom"),o=n("./lib/event"),g=n("./lib/event_emitter").EventEmitter;p.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{
1042
+ position: absolute;
1043
+ background: rgba(128, 128, 128, 0.6);
1044
+ -moz-box-sizing: border-box;
1045
+ box-sizing: border-box;
1046
+ border: 1px solid #bbb;
1047
+ border-radius: 2px;
1048
+ z-index: 8;
1049
+ }
1050
+ .ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {
1051
+ position: absolute;
1052
+ z-index: 6;
1053
+ background: none;
1054
+ overflow: hidden!important;
1055
+ }
1056
+ .ace_editor>.ace_sb-v {
1057
+ z-index: 6;
1058
+ right: 0;
1059
+ top: 0;
1060
+ width: 12px;
1061
+ }
1062
+ .ace_editor>.ace_sb-v div {
1063
+ z-index: 8;
1064
+ right: 0;
1065
+ width: 100%;
1066
+ }
1067
+ .ace_editor>.ace_sb-h {
1068
+ bottom: 0;
1069
+ left: 0;
1070
+ height: 12px;
1071
+ }
1072
+ .ace_editor>.ace_sb-h div {
1073
+ bottom: 0;
1074
+ height: 100%;
1075
+ }
1076
+ .ace_editor>.ace_sb_grabbed {
1077
+ z-index: 8;
1078
+ background: #000;
1079
+ }`,"ace_scrollbar.css",!1);var i=function(){function u(h,f){this.element=p.createElement("div"),this.element.className="ace_sb"+f,this.inner=p.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,h.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,o.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return u.prototype.setVisible=function(h){this.element.style.display=h?"":"none",this.isVisible=h,this.coeff=1},u}();d.implement(i.prototype,g);var s=function(u){a(h,u);function h(f,m){var v=u.call(this,f,"-v")||this;return v.scrollTop=0,v.scrollHeight=0,v.parent=f,v.width=v.VScrollWidth,v.renderer=m,v.inner.style.width=v.element.style.width=(v.width||15)+"px",v.$minWidth=0,v}return h.prototype.onMouseDown=function(f,m){if(f==="mousedown"&&!(o.getButton(m)!==0||m.detail===2)){if(m.target===this.inner){var v=this,y=m.clientY,C=function(M){y=M.clientY},$=function(){clearInterval(L)},_=m.clientY,b=this.thumbTop,E=function(){if(y!==void 0){var M=v.scrollTopFromThumbTop(b+y-_);M!==v.scrollTop&&v._emit("scroll",{data:M})}};o.capture(this.inner,C,$);var L=setInterval(E,20);return o.preventDefault(m)}var k=m.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(k)}),o.preventDefault(m)}},h.prototype.getHeight=function(){return this.height},h.prototype.scrollTopFromThumbTop=function(f){var m=f*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return m=m>>0,m<0?m=0:m>this.pageHeight-this.viewHeight&&(m=this.pageHeight-this.viewHeight),m},h.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},h.prototype.setHeight=function(f){this.height=Math.max(0,f),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},h.prototype.setScrollHeight=function(f,m){this.pageHeight===f&&!m||(this.pageHeight=f,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop})))},h.prototype.setScrollTop=function(f){this.scrollTop=f,f<0&&(f=0),this.thumbTop=f*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},h}(i);s.prototype.setInnerHeight=s.prototype.setScrollHeight;var c=function(u){a(h,u);function h(f,m){var v=u.call(this,f,"-h")||this;return v.scrollLeft=0,v.scrollWidth=0,v.height=v.HScrollHeight,v.inner.style.height=v.element.style.height=(v.height||12)+"px",v.renderer=m,v}return h.prototype.onMouseDown=function(f,m){if(f==="mousedown"&&!(o.getButton(m)!==0||m.detail===2)){if(m.target===this.inner){var v=this,y=m.clientX,C=function(M){y=M.clientX},$=function(){clearInterval(L)},_=m.clientX,b=this.thumbLeft,E=function(){if(y!==void 0){var M=v.scrollLeftFromThumbLeft(b+y-_);M!==v.scrollLeft&&v._emit("scroll",{data:M})}};o.capture(this.inner,C,$);var L=setInterval(E,20);return o.preventDefault(m)}var k=m.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(k)}),o.preventDefault(m)}},h.prototype.getHeight=function(){return this.isVisible?this.height:0},h.prototype.scrollLeftFromThumbLeft=function(f){var m=f*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return m=m>>0,m<0?m=0:m>this.pageWidth-this.viewWidth&&(m=this.pageWidth-this.viewWidth),m},h.prototype.setWidth=function(f){this.width=Math.max(0,f),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},h.prototype.setScrollWidth=function(f,m){this.pageWidth===f&&!m||(this.pageWidth=f,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft})))},h.prototype.setScrollLeft=function(f){this.scrollLeft=f,f<0&&(f=0),this.thumbLeft=f*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},h}(i);c.prototype.setInnerWidth=c.prototype.setScrollWidth,r.ScrollBar=s,r.ScrollBarV=s,r.ScrollBarH=c,r.VScrollBar=s,r.HScrollBar=c}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(n,r,l){var a=n("./lib/event"),d=function(){function p(o,g){this.onRender=o,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=g||window;var i=this;this._flush=function(s){i.pending=!1;var c=i.changes;if(c&&(a.blockIdle(100),i.changes=0,i.onRender(c)),i.changes){if(i.$recursionLimit--<0)return;i.schedule()}else i.$recursionLimit=2}}return p.prototype.schedule=function(o){this.changes=this.changes|o,this.changes&&!this.pending&&(a.nextFrame(this._flush),this.pending=!0)},p.prototype.clear=function(o){var g=this.changes;return this.changes=0,g},p}();r.RenderLoop=d}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(n,r,l){var a=n("../lib/oop"),d=n("../lib/dom"),p=n("../lib/lang"),o=n("../lib/event"),g=n("../lib/useragent"),i=n("../lib/event_emitter").EventEmitter,s=512,c=typeof ResizeObserver=="function",u=200,h=function(){function f(m){this.el=d.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=d.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=d.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),m.appendChild(this.el),this.$measureNode.textContent=p.stringRepeat("X",s),this.$characterSize={width:0,height:0},c?this.$addObserver():this.checkForSizeChanges()}return f.prototype.$setMeasureNodeStyles=function(m,v){m.width=m.height="auto",m.left=m.top="0px",m.visibility="hidden",m.position="absolute",m.whiteSpace="pre",g.isIE<8?m["font-family"]="inherit":m.font="inherit",m.overflow=v?"hidden":"visible"},f.prototype.checkForSizeChanges=function(m){if(m===void 0&&(m=this.$measureSizes()),m&&(this.$characterSize.width!==m.width||this.$characterSize.height!==m.height)){this.$measureNode.style.fontWeight="bold";var v=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=m,this.charSizes=Object.create(null),this.allowBoldFonts=v&&v.width===m.width&&v.height===m.height,this._emit("changeCharacterSize",{data:m})}},f.prototype.$addObserver=function(){var m=this;this.$observer=new window.ResizeObserver(function(v){m.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},f.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var m=this;return this.$pollSizeChangesTimer=o.onIdle(function v(){m.checkForSizeChanges(),o.onIdle(v,500)},500)},f.prototype.setPolling=function(m){m?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},f.prototype.$measureSizes=function(m){var v={height:(m||this.$measureNode).clientHeight,width:(m||this.$measureNode).clientWidth/s};return v.width===0||v.height===0?null:v},f.prototype.$measureCharWidth=function(m){this.$main.textContent=p.stringRepeat(m,s);var v=this.$main.getBoundingClientRect();return v.width/s},f.prototype.getCharacterWidth=function(m){var v=this.charSizes[m];return v===void 0&&(v=this.charSizes[m]=this.$measureCharWidth(m)/this.$characterSize.width),v},f.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},f.prototype.$getZoom=function(m){return!m||!m.parentElement?1:(window.getComputedStyle(m).zoom||1)*this.$getZoom(m.parentElement)},f.prototype.$initTransformMeasureNodes=function(){var m=function(v,y){return["div",{style:"position: absolute;top:"+v+"px;left:"+y+"px;"}]};this.els=d.buildDom([m(0,0),m(u,0),m(0,u),m(u,u)],this.el)},f.prototype.transformCoordinates=function(m,v){if(m){var y=this.$getZoom(this.el);m=b(1/y,m)}function C(P,H,V){var U=P[1]*H[0]-P[0]*H[1];return[(-H[1]*V[0]+H[0]*V[1])/U,(+P[1]*V[0]-P[0]*V[1])/U]}function $(P,H){return[P[0]-H[0],P[1]-H[1]]}function _(P,H){return[P[0]+H[0],P[1]+H[1]]}function b(P,H){return[P*H[0],P*H[1]]}this.els||this.$initTransformMeasureNodes();function E(P){var H=P.getBoundingClientRect();return[H.left,H.top]}var L=E(this.els[0]),k=E(this.els[1]),M=E(this.els[2]),A=E(this.els[3]),R=C($(A,k),$(A,M),$(_(k,M),_(A,L))),S=b(1+R[0],$(k,L)),w=b(1+R[1],$(M,L));if(v){var x=v,T=R[0]*x[0]/u+R[1]*x[1]/u+1,O=_(b(x[0],S),b(x[1],w));return _(b(1/T/u,O),L)}var I=$(m,L),N=C($(S,b(R[0],I)),$(w,b(R[1],I)),I);return b(u,N)},f}();h.prototype.$characterSize={width:0,height:0},a.implement(h.prototype,i),r.FontMetrics=h}),ace.define("ace/css/editor-css",["require","exports","module"],function(n,r,l){l.exports=`
1080
+ .ace_br1 {border-top-left-radius : 3px;}
1081
+ .ace_br2 {border-top-right-radius : 3px;}
1082
+ .ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}
1083
+ .ace_br4 {border-bottom-right-radius: 3px;}
1084
+ .ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}
1085
+ .ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}
1086
+ .ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}
1087
+ .ace_br8 {border-bottom-left-radius : 3px;}
1088
+ .ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}
1089
+ .ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}
1090
+ .ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}
1091
+ .ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
1092
+ .ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
1093
+ .ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
1094
+ .ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
1095
+
1096
+
1097
+ .ace_editor {
1098
+ position: relative;
1099
+ overflow: hidden;
1100
+ padding: 0;
1101
+ font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace;
1102
+ direction: ltr;
1103
+ text-align: left;
1104
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
1105
+ }
1106
+
1107
+ .ace_scroller {
1108
+ position: absolute;
1109
+ overflow: hidden;
1110
+ top: 0;
1111
+ bottom: 0;
1112
+ background-color: inherit;
1113
+ -ms-user-select: none;
1114
+ -moz-user-select: none;
1115
+ -webkit-user-select: none;
1116
+ user-select: none;
1117
+ cursor: text;
1118
+ }
1119
+
1120
+ .ace_content {
1121
+ position: absolute;
1122
+ box-sizing: border-box;
1123
+ min-width: 100%;
1124
+ contain: style size layout;
1125
+ font-variant-ligatures: no-common-ligatures;
1126
+ }
1127
+
1128
+ .ace_keyboard-focus:focus {
1129
+ box-shadow: inset 0 0 0 2px #5E9ED6;
1130
+ outline: none;
1131
+ }
1132
+
1133
+ .ace_dragging .ace_scroller:before{
1134
+ position: absolute;
1135
+ top: 0;
1136
+ left: 0;
1137
+ right: 0;
1138
+ bottom: 0;
1139
+ content: '';
1140
+ background: rgba(250, 250, 250, 0.01);
1141
+ z-index: 1000;
1142
+ }
1143
+ .ace_dragging.ace_dark .ace_scroller:before{
1144
+ background: rgba(0, 0, 0, 0.01);
1145
+ }
1146
+
1147
+ .ace_gutter {
1148
+ position: absolute;
1149
+ overflow : hidden;
1150
+ width: auto;
1151
+ top: 0;
1152
+ bottom: 0;
1153
+ left: 0;
1154
+ cursor: default;
1155
+ z-index: 4;
1156
+ -ms-user-select: none;
1157
+ -moz-user-select: none;
1158
+ -webkit-user-select: none;
1159
+ user-select: none;
1160
+ contain: style size layout;
1161
+ }
1162
+
1163
+ .ace_gutter-active-line {
1164
+ position: absolute;
1165
+ left: 0;
1166
+ right: 0;
1167
+ }
1168
+
1169
+ .ace_scroller.ace_scroll-left:after {
1170
+ content: "";
1171
+ position: absolute;
1172
+ top: 0;
1173
+ right: 0;
1174
+ bottom: 0;
1175
+ left: 0;
1176
+ box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
1177
+ pointer-events: none;
1178
+ }
1179
+
1180
+ .ace_gutter-cell, .ace_gutter-cell_svg-icons {
1181
+ position: absolute;
1182
+ top: 0;
1183
+ left: 0;
1184
+ right: 0;
1185
+ padding-left: 19px;
1186
+ padding-right: 6px;
1187
+ background-repeat: no-repeat;
1188
+ }
1189
+
1190
+ .ace_gutter-cell_svg-icons .ace_gutter_annotation {
1191
+ margin-left: -14px;
1192
+ float: left;
1193
+ }
1194
+
1195
+ .ace_gutter-cell .ace_gutter_annotation {
1196
+ margin-left: -19px;
1197
+ float: left;
1198
+ }
1199
+
1200
+ .ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold {
1201
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");
1202
+ background-repeat: no-repeat;
1203
+ background-position: 2px center;
1204
+ }
1205
+
1206
+ .ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {
1207
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");
1208
+ background-repeat: no-repeat;
1209
+ background-position: 2px center;
1210
+ }
1211
+
1212
+ .ace_gutter-cell.ace_info, .ace_icon.ace_info {
1213
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");
1214
+ background-repeat: no-repeat;
1215
+ background-position: 2px center;
1216
+ }
1217
+ .ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info {
1218
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");
1219
+ }
1220
+
1221
+ .ace_icon_svg.ace_error {
1222
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");
1223
+ background-color: crimson;
1224
+ }
1225
+ .ace_icon_svg.ace_warning {
1226
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");
1227
+ background-color: darkorange;
1228
+ }
1229
+ .ace_icon_svg.ace_info {
1230
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");
1231
+ background-color: royalblue;
1232
+ }
1233
+
1234
+ .ace_icon_svg.ace_error_fold {
1235
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
1236
+ background-color: crimson;
1237
+ }
1238
+ .ace_icon_svg.ace_warning_fold {
1239
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");
1240
+ background-color: darkorange;
1241
+ }
1242
+
1243
+ .ace_scrollbar {
1244
+ contain: strict;
1245
+ position: absolute;
1246
+ right: 0;
1247
+ bottom: 0;
1248
+ z-index: 6;
1249
+ }
1250
+
1251
+ .ace_scrollbar-inner {
1252
+ position: absolute;
1253
+ cursor: text;
1254
+ left: 0;
1255
+ top: 0;
1256
+ }
1257
+
1258
+ .ace_scrollbar-v{
1259
+ overflow-x: hidden;
1260
+ overflow-y: scroll;
1261
+ top: 0;
1262
+ }
1263
+
1264
+ .ace_scrollbar-h {
1265
+ overflow-x: scroll;
1266
+ overflow-y: hidden;
1267
+ left: 0;
1268
+ }
1269
+
1270
+ .ace_print-margin {
1271
+ position: absolute;
1272
+ height: 100%;
1273
+ }
1274
+
1275
+ .ace_text-input {
1276
+ position: absolute;
1277
+ z-index: 0;
1278
+ width: 0.5em;
1279
+ height: 1em;
1280
+ opacity: 0;
1281
+ background: transparent;
1282
+ -moz-appearance: none;
1283
+ appearance: none;
1284
+ border: none;
1285
+ resize: none;
1286
+ outline: none;
1287
+ overflow: hidden;
1288
+ font: inherit;
1289
+ padding: 0 1px;
1290
+ margin: 0 -1px;
1291
+ contain: strict;
1292
+ -ms-user-select: text;
1293
+ -moz-user-select: text;
1294
+ -webkit-user-select: text;
1295
+ user-select: text;
1296
+ /*with \`pre-line\` chrome inserts &nbsp; instead of space*/
1297
+ white-space: pre!important;
1298
+ }
1299
+ .ace_text-input.ace_composition {
1300
+ background: transparent;
1301
+ color: inherit;
1302
+ z-index: 1000;
1303
+ opacity: 1;
1304
+ }
1305
+ .ace_composition_placeholder { color: transparent }
1306
+ .ace_composition_marker {
1307
+ border-bottom: 1px solid;
1308
+ position: absolute;
1309
+ border-radius: 0;
1310
+ margin-top: 1px;
1311
+ }
1312
+
1313
+ [ace_nocontext=true] {
1314
+ transform: none!important;
1315
+ filter: none!important;
1316
+ clip-path: none!important;
1317
+ mask : none!important;
1318
+ contain: none!important;
1319
+ perspective: none!important;
1320
+ mix-blend-mode: initial!important;
1321
+ z-index: auto;
1322
+ }
1323
+
1324
+ .ace_layer {
1325
+ z-index: 1;
1326
+ position: absolute;
1327
+ overflow: hidden;
1328
+ /* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/
1329
+ word-wrap: normal;
1330
+ white-space: pre;
1331
+ height: 100%;
1332
+ width: 100%;
1333
+ box-sizing: border-box;
1334
+ /* setting pointer-events: auto; on node under the mouse, which changes
1335
+ during scroll, will break mouse wheel scrolling in Safari */
1336
+ pointer-events: none;
1337
+ }
1338
+
1339
+ .ace_gutter-layer {
1340
+ position: relative;
1341
+ width: auto;
1342
+ text-align: right;
1343
+ pointer-events: auto;
1344
+ height: 1000000px;
1345
+ contain: style size layout;
1346
+ }
1347
+
1348
+ .ace_text-layer {
1349
+ font: inherit !important;
1350
+ position: absolute;
1351
+ height: 1000000px;
1352
+ width: 1000000px;
1353
+ contain: style size layout;
1354
+ }
1355
+
1356
+ .ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {
1357
+ contain: style size layout;
1358
+ position: absolute;
1359
+ top: 0;
1360
+ left: 0;
1361
+ right: 0;
1362
+ }
1363
+
1364
+ .ace_hidpi .ace_text-layer,
1365
+ .ace_hidpi .ace_gutter-layer,
1366
+ .ace_hidpi .ace_content,
1367
+ .ace_hidpi .ace_gutter {
1368
+ contain: strict;
1369
+ }
1370
+ .ace_hidpi .ace_text-layer > .ace_line,
1371
+ .ace_hidpi .ace_text-layer > .ace_line_group {
1372
+ contain: strict;
1373
+ }
1374
+
1375
+ .ace_cjk {
1376
+ display: inline-block;
1377
+ text-align: center;
1378
+ }
1379
+
1380
+ .ace_cursor-layer {
1381
+ z-index: 4;
1382
+ }
1383
+
1384
+ .ace_cursor {
1385
+ z-index: 4;
1386
+ position: absolute;
1387
+ box-sizing: border-box;
1388
+ border-left: 2px solid;
1389
+ /* workaround for smooth cursor repaintng whole screen in chrome */
1390
+ transform: translatez(0);
1391
+ }
1392
+
1393
+ .ace_multiselect .ace_cursor {
1394
+ border-left-width: 1px;
1395
+ }
1396
+
1397
+ .ace_slim-cursors .ace_cursor {
1398
+ border-left-width: 1px;
1399
+ }
1400
+
1401
+ .ace_overwrite-cursors .ace_cursor {
1402
+ border-left-width: 0;
1403
+ border-bottom: 1px solid;
1404
+ }
1405
+
1406
+ .ace_hidden-cursors .ace_cursor {
1407
+ opacity: 0.2;
1408
+ }
1409
+
1410
+ .ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {
1411
+ opacity: 0;
1412
+ }
1413
+
1414
+ .ace_smooth-blinking .ace_cursor {
1415
+ transition: opacity 0.18s;
1416
+ }
1417
+
1418
+ .ace_animate-blinking .ace_cursor {
1419
+ animation-duration: 1000ms;
1420
+ animation-timing-function: step-end;
1421
+ animation-name: blink-ace-animate;
1422
+ animation-iteration-count: infinite;
1423
+ }
1424
+
1425
+ .ace_animate-blinking.ace_smooth-blinking .ace_cursor {
1426
+ animation-duration: 1000ms;
1427
+ animation-timing-function: ease-in-out;
1428
+ animation-name: blink-ace-animate-smooth;
1429
+ }
1430
+
1431
+ @keyframes blink-ace-animate {
1432
+ from, to { opacity: 1; }
1433
+ 60% { opacity: 0; }
1434
+ }
1435
+
1436
+ @keyframes blink-ace-animate-smooth {
1437
+ from, to { opacity: 1; }
1438
+ 45% { opacity: 1; }
1439
+ 60% { opacity: 0; }
1440
+ 85% { opacity: 0; }
1441
+ }
1442
+
1443
+ .ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {
1444
+ position: absolute;
1445
+ z-index: 3;
1446
+ }
1447
+
1448
+ .ace_marker-layer .ace_selection {
1449
+ position: absolute;
1450
+ z-index: 5;
1451
+ }
1452
+
1453
+ .ace_marker-layer .ace_bracket {
1454
+ position: absolute;
1455
+ z-index: 6;
1456
+ }
1457
+
1458
+ .ace_marker-layer .ace_error_bracket {
1459
+ position: absolute;
1460
+ border-bottom: 1px solid #DE5555;
1461
+ border-radius: 0;
1462
+ }
1463
+
1464
+ .ace_marker-layer .ace_active-line {
1465
+ position: absolute;
1466
+ z-index: 2;
1467
+ }
1468
+
1469
+ .ace_marker-layer .ace_selected-word {
1470
+ position: absolute;
1471
+ z-index: 4;
1472
+ box-sizing: border-box;
1473
+ }
1474
+
1475
+ .ace_line .ace_fold {
1476
+ box-sizing: border-box;
1477
+
1478
+ display: inline-block;
1479
+ height: 11px;
1480
+ margin-top: -2px;
1481
+ vertical-align: middle;
1482
+
1483
+ background-image:
1484
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
1485
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");
1486
+ background-repeat: no-repeat, repeat-x;
1487
+ background-position: center center, top left;
1488
+ color: transparent;
1489
+
1490
+ border: 1px solid black;
1491
+ border-radius: 2px;
1492
+
1493
+ cursor: pointer;
1494
+ pointer-events: auto;
1495
+ }
1496
+
1497
+ .ace_dark .ace_fold {
1498
+ }
1499
+
1500
+ .ace_fold:hover{
1501
+ background-image:
1502
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
1503
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");
1504
+ }
1505
+
1506
+ .ace_tooltip {
1507
+ background-color: #f5f5f5;
1508
+ border: 1px solid gray;
1509
+ border-radius: 1px;
1510
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
1511
+ color: black;
1512
+ max-width: 100%;
1513
+ padding: 3px 4px;
1514
+ position: fixed;
1515
+ z-index: 999999;
1516
+ box-sizing: border-box;
1517
+ cursor: default;
1518
+ white-space: pre-wrap;
1519
+ word-wrap: break-word;
1520
+ line-height: normal;
1521
+ font-style: normal;
1522
+ font-weight: normal;
1523
+ letter-spacing: normal;
1524
+ pointer-events: none;
1525
+ overflow: auto;
1526
+ max-width: min(60em, 66vw);
1527
+ overscroll-behavior: contain;
1528
+ }
1529
+ .ace_tooltip pre {
1530
+ white-space: pre-wrap;
1531
+ }
1532
+
1533
+ .ace_tooltip.ace_dark {
1534
+ background-color: #636363;
1535
+ color: #fff;
1536
+ }
1537
+
1538
+ .ace_tooltip:focus {
1539
+ outline: 1px solid #5E9ED6;
1540
+ }
1541
+
1542
+ .ace_icon {
1543
+ display: inline-block;
1544
+ width: 18px;
1545
+ vertical-align: top;
1546
+ }
1547
+
1548
+ .ace_icon_svg {
1549
+ display: inline-block;
1550
+ width: 12px;
1551
+ vertical-align: top;
1552
+ -webkit-mask-repeat: no-repeat;
1553
+ -webkit-mask-size: 12px;
1554
+ -webkit-mask-position: center;
1555
+ }
1556
+
1557
+ .ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {
1558
+ padding-right: 13px;
1559
+ }
1560
+
1561
+ .ace_fold-widget {
1562
+ box-sizing: border-box;
1563
+
1564
+ margin: 0 -12px 0 1px;
1565
+ display: none;
1566
+ width: 11px;
1567
+ vertical-align: top;
1568
+
1569
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");
1570
+ background-repeat: no-repeat;
1571
+ background-position: center;
1572
+
1573
+ border-radius: 3px;
1574
+
1575
+ border: 1px solid transparent;
1576
+ cursor: pointer;
1577
+ }
1578
+
1579
+ .ace_folding-enabled .ace_fold-widget {
1580
+ display: inline-block;
1581
+ }
1582
+
1583
+ .ace_fold-widget.ace_end {
1584
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");
1585
+ }
1586
+
1587
+ .ace_fold-widget.ace_closed {
1588
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");
1589
+ }
1590
+
1591
+ .ace_fold-widget:hover {
1592
+ border: 1px solid rgba(0, 0, 0, 0.3);
1593
+ background-color: rgba(255, 255, 255, 0.2);
1594
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
1595
+ }
1596
+
1597
+ .ace_fold-widget:active {
1598
+ border: 1px solid rgba(0, 0, 0, 0.4);
1599
+ background-color: rgba(0, 0, 0, 0.05);
1600
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
1601
+ }
1602
+ /**
1603
+ * Dark version for fold widgets
1604
+ */
1605
+ .ace_dark .ace_fold-widget {
1606
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");
1607
+ }
1608
+ .ace_dark .ace_fold-widget.ace_end {
1609
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");
1610
+ }
1611
+ .ace_dark .ace_fold-widget.ace_closed {
1612
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");
1613
+ }
1614
+ .ace_dark .ace_fold-widget:hover {
1615
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
1616
+ background-color: rgba(255, 255, 255, 0.1);
1617
+ }
1618
+ .ace_dark .ace_fold-widget:active {
1619
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
1620
+ }
1621
+
1622
+ .ace_inline_button {
1623
+ border: 1px solid lightgray;
1624
+ display: inline-block;
1625
+ margin: -1px 8px;
1626
+ padding: 0 5px;
1627
+ pointer-events: auto;
1628
+ cursor: pointer;
1629
+ }
1630
+ .ace_inline_button:hover {
1631
+ border-color: gray;
1632
+ background: rgba(200,200,200,0.2);
1633
+ display: inline-block;
1634
+ pointer-events: auto;
1635
+ }
1636
+
1637
+ .ace_fold-widget.ace_invalid {
1638
+ background-color: #FFB4B4;
1639
+ border-color: #DE5555;
1640
+ }
1641
+
1642
+ .ace_fade-fold-widgets .ace_fold-widget {
1643
+ transition: opacity 0.4s ease 0.05s;
1644
+ opacity: 0;
1645
+ }
1646
+
1647
+ .ace_fade-fold-widgets:hover .ace_fold-widget {
1648
+ transition: opacity 0.05s ease 0.05s;
1649
+ opacity:1;
1650
+ }
1651
+
1652
+ .ace_underline {
1653
+ text-decoration: underline;
1654
+ }
1655
+
1656
+ .ace_bold {
1657
+ font-weight: bold;
1658
+ }
1659
+
1660
+ .ace_nobold .ace_bold {
1661
+ font-weight: normal;
1662
+ }
1663
+
1664
+ .ace_italic {
1665
+ font-style: italic;
1666
+ }
1667
+
1668
+
1669
+ .ace_error-marker {
1670
+ background-color: rgba(255, 0, 0,0.2);
1671
+ position: absolute;
1672
+ z-index: 9;
1673
+ }
1674
+
1675
+ .ace_highlight-marker {
1676
+ background-color: rgba(255, 255, 0,0.2);
1677
+ position: absolute;
1678
+ z-index: 8;
1679
+ }
1680
+
1681
+ .ace_mobile-menu {
1682
+ position: absolute;
1683
+ line-height: 1.5;
1684
+ border-radius: 4px;
1685
+ -ms-user-select: none;
1686
+ -moz-user-select: none;
1687
+ -webkit-user-select: none;
1688
+ user-select: none;
1689
+ background: white;
1690
+ box-shadow: 1px 3px 2px grey;
1691
+ border: 1px solid #dcdcdc;
1692
+ color: black;
1693
+ }
1694
+ .ace_dark > .ace_mobile-menu {
1695
+ background: #333;
1696
+ color: #ccc;
1697
+ box-shadow: 1px 3px 2px grey;
1698
+ border: 1px solid #444;
1699
+
1700
+ }
1701
+ .ace_mobile-button {
1702
+ padding: 2px;
1703
+ cursor: pointer;
1704
+ overflow: hidden;
1705
+ }
1706
+ .ace_mobile-button:hover {
1707
+ background-color: #eee;
1708
+ opacity:1;
1709
+ }
1710
+ .ace_mobile-button:active {
1711
+ background-color: #ddd;
1712
+ }
1713
+
1714
+ .ace_placeholder {
1715
+ font-family: arial;
1716
+ transform: scale(0.9);
1717
+ transform-origin: left;
1718
+ white-space: pre;
1719
+ opacity: 0.7;
1720
+ margin: 0 10px;
1721
+ }
1722
+
1723
+ .ace_ghost_text {
1724
+ opacity: 0.5;
1725
+ font-style: italic;
1726
+ white-space: pre;
1727
+ }
1728
+
1729
+ .ace_screenreader-only {
1730
+ position:absolute;
1731
+ left:-10000px;
1732
+ top:auto;
1733
+ width:1px;
1734
+ height:1px;
1735
+ overflow:hidden;
1736
+ }`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(n,r,l){var a=n("../lib/dom"),d=n("../lib/oop"),p=n("../lib/event_emitter").EventEmitter,o=function(){function g(i,s){this.canvas=a.createElement("canvas"),this.renderer=s,this.pixelRatio=1,this.maxHeight=s.layerConfig.maxHeight,this.lineHeight=s.layerConfig.lineHeight,this.canvasHeight=i.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=i.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7px",this.canvas.style.position="absolute",this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},i.element.appendChild(this.canvas)}return g.prototype.$updateDecorators=function(i){var s=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;if(i){this.maxHeight=i.maxHeight,this.lineHeight=i.lineHeight,this.canvasHeight=i.height;var c=(i.lastRow+1)*this.lineHeight;c<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight}var u=this.canvas.getContext("2d");function h(A,R){return A.priority<R.priority?-1:A.priority>R.priority?1:0}var f=this.renderer.session.$annotations;if(u.clearRect(0,0,this.canvas.width,this.canvas.height),f){var m={info:1,warning:2,error:3};f.forEach(function(A){A.priority=m[A.type]||null}),f=f.sort(h);for(var v=this.renderer.session.$foldData,y=0;y<f.length;y++){var C=f[y].row,$=this.compensateFoldRows(C,v),_=Math.round((C-$)*this.lineHeight*this.heightRatio),b=Math.round((C-$)*this.lineHeight*this.heightRatio),E=Math.round(((C-$)*this.lineHeight+this.lineHeight)*this.heightRatio),L=E-b;if(L<this.minDecorationHeight){var k=(b+E)/2|0;k<this.halfMinDecorationHeight?k=this.halfMinDecorationHeight:k+this.halfMinDecorationHeight>this.canvasHeight&&(k=this.canvasHeight-this.halfMinDecorationHeight),b=Math.round(k-this.halfMinDecorationHeight),E=Math.round(k+this.halfMinDecorationHeight)}u.fillStyle=s[f[y].type]||null,u.fillRect(0,_,this.canvasWidth,E-b)}}var M=this.renderer.session.selection.getCursor();if(M){var $=this.compensateFoldRows(M.row,v),_=Math.round((M.row-$)*this.lineHeight*this.heightRatio);u.fillStyle="rgba(0, 0, 0, 0.5)",u.fillRect(0,_,this.canvasWidth,2)}},g.prototype.compensateFoldRows=function(i,s){var c=0;if(s&&s.length>0)for(var u=0;u<s.length;u++)i>s[u].start.row&&i<s[u].end.row?c+=i-s[u].start.row:i>=s[u].end.row&&(c+=s[u].end.row-s[u].start.row);return c},g}();d.implement(o.prototype,p),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 a=n("./lib/oop"),d=n("./lib/dom"),p=n("./lib/lang"),o=n("./config"),g=n("./layer/gutter").Gutter,i=n("./layer/marker").Marker,s=n("./layer/text").Text,c=n("./layer/cursor").Cursor,u=n("./scrollbar").HScrollBar,h=n("./scrollbar").VScrollBar,f=n("./scrollbar_custom").HScrollBar,m=n("./scrollbar_custom").VScrollBar,v=n("./renderloop").RenderLoop,y=n("./layer/font_metrics").FontMetrics,C=n("./lib/event_emitter").EventEmitter,$=n("./css/editor-css"),_=n("./layer/decorators").Decorator,b=n("./lib/useragent");d.importCssString($,"ace_editor.css",!1);var E=function(){function L(k,M){var A=this;this.container=k||d.createElement("div"),d.addCssClass(this.container,"ace_editor"),d.HI_DPI&&d.addCssClass(this.container,"ace_hidpi"),this.setTheme(M),o.get("useStrictCSP")==null&&o.set("useStrictCSP",!1),this.$gutter=d.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden","true"),this.scroller=d.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=d.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new g(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new i(this.content);var R=this.$textLayer=new s(this.content);this.canvas=R.element,this.$markerFront=new i(this.content),this.$cursorLayer=new c(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new h(this.container,this),this.scrollBarH=new u(this.container,this),this.scrollBarV.on("scroll",function(S){A.$scrollAnimation||A.session.setScrollTop(S.data-A.scrollMargin.top)}),this.scrollBarH.on("scroll",function(S){A.$scrollAnimation||A.session.setScrollLeft(S.data-A.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new y(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(S){A.updateCharacterSize(),A.onResize(!0,A.gutterWidth,A.$size.width,A.$size.height),A._signal("changeCharacterSize",S)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!b.isIOS,this.$loop=new v(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),o.resetOptions(this),o._signal("renderer",this)}return L.prototype.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),d.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},L.prototype.setSession=function(k){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=k,k&&this.scrollMargin.top&&k.getScrollTop()<=0&&k.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(k),this.$markerBack.setSession(k),this.$markerFront.setSession(k),this.$gutterLayer.setSession(k),this.$textLayer.setSession(k),k&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},L.prototype.updateLines=function(k,M,A){if(M===void 0&&(M=1/0),this.$changedLines?(this.$changedLines.firstRow>k&&(this.$changedLines.firstRow=k),this.$changedLines.lastRow<M&&(this.$changedLines.lastRow=M)):this.$changedLines={firstRow:k,lastRow:M},this.$changedLines.lastRow<this.layerConfig.firstRow)if(A)this.$changedLines.lastRow=this.layerConfig.lastRow;else return;this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},L.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},L.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},L.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},L.prototype.updateFull=function(k){k?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},L.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},L.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},L.prototype.onResize=function(k,M,A,R){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=k?1:0;var S=this.container;R||(R=S.clientHeight||S.scrollHeight),A||(A=S.clientWidth||S.scrollWidth);var w=this.$updateCachedSize(k,M,A,R);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!A&&!R)return this.resizing=0;k&&(this.$gutterLayer.$padding=null),k?this.$renderChanges(w|this.$changes,!0):this.$loop.schedule(w|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},L.prototype.$updateCachedSize=function(k,M,A,R){R-=this.$extraHeight||0;var S=0,w=this.$size,x={width:w.width,height:w.height,scrollerHeight:w.scrollerHeight,scrollerWidth:w.scrollerWidth};if(R&&(k||w.height!=R)&&(w.height=R,S|=this.CHANGE_SIZE,w.scrollerHeight=w.height,this.$horizScroll&&(w.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(w.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",S=S|this.CHANGE_SCROLL),A&&(k||w.width!=A)){S|=this.CHANGE_SIZE,w.width=A,M==null&&(M=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=M,d.setStyle(this.scrollBarH.element.style,"left",M+"px"),d.setStyle(this.scroller.style,"left",M+this.margin.left+"px"),w.scrollerWidth=Math.max(0,A-M-this.scrollBarV.getWidth()-this.margin.h),d.setStyle(this.$gutter.style,"left",this.margin.left+"px");var T=this.scrollBarV.getWidth()+"px";d.setStyle(this.scrollBarH.element.style,"right",T),d.setStyle(this.scroller.style,"right",T),d.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(w.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||k)&&(S|=this.CHANGE_FULL)}return w.$dirty=!A||!R,S&&this._signal("resize",x),S},L.prototype.onGutterResize=function(k){var M=this.$showGutter?k:0;M!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,M,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},L.prototype.adjustWrapLimit=function(){var k=this.$size.scrollerWidth-this.$padding*2,M=Math.floor(k/this.characterWidth);return this.session.adjustWrapLimit(M,this.$showPrintMargin&&this.$printMarginColumn)},L.prototype.setAnimatedScroll=function(k){this.setOption("animatedScroll",k)},L.prototype.getAnimatedScroll=function(){return this.$animatedScroll},L.prototype.setShowInvisibles=function(k){this.setOption("showInvisibles",k),this.session.$bidiHandler.setShowInvisibles(k)},L.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},L.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},L.prototype.setDisplayIndentGuides=function(k){this.setOption("displayIndentGuides",k)},L.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},L.prototype.setHighlightIndentGuides=function(k){this.setOption("highlightIndentGuides",k)},L.prototype.setShowPrintMargin=function(k){this.setOption("showPrintMargin",k)},L.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},L.prototype.setPrintMarginColumn=function(k){this.setOption("printMarginColumn",k)},L.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},L.prototype.getShowGutter=function(){return this.getOption("showGutter")},L.prototype.setShowGutter=function(k){return this.setOption("showGutter",k)},L.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},L.prototype.setFadeFoldWidgets=function(k){this.setOption("fadeFoldWidgets",k)},L.prototype.setHighlightGutterLine=function(k){this.setOption("highlightGutterLine",k)},L.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},L.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var k=d.createElement("div");k.className="ace_layer ace_print-margin-layer",this.$printMarginEl=d.createElement("div"),this.$printMarginEl.className="ace_print-margin",k.appendChild(this.$printMarginEl),this.content.insertBefore(k,this.content.firstChild)}var M=this.$printMarginEl.style;M.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",M.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},L.prototype.getContainerElement=function(){return this.container},L.prototype.getMouseEventTarget=function(){return this.scroller},L.prototype.getTextAreaContainer=function(){return this.container},L.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var k=this.textarea.style,M=this.$composition;if(!this.$keepTextAreaAtCursor&&!M){d.translate(this.textarea,-100,0);return}var A=this.$cursorLayer.$pixelPos;if(A){M&&M.markerRange&&(A=this.$cursorLayer.getPixelPosition(M.markerRange.start,!0));var R=this.layerConfig,S=A.top,w=A.left;S-=R.offset;var x=M&&M.useTextareaForIME||b.isMobile?this.lineHeight:1;if(S<0||S>R.height-x){d.translate(this.textarea,0,0);return}var T=1,O=this.$size.height-x;if(!M)S+=this.lineHeight;else if(M.useTextareaForIME){var I=this.textarea.value;T=this.characterWidth*this.session.$getStringScreenWidth(I)[0]}else S+=this.lineHeight+2;w-=this.scrollLeft,w>this.$size.scrollerWidth-T&&(w=this.$size.scrollerWidth-T),w+=this.gutterWidth+this.margin.left,d.setStyle(k,"height",x+"px"),d.setStyle(k,"width",T+"px"),d.translate(this.textarea,Math.min(w,this.$size.scrollerWidth-T),Math.min(S,O))}}},L.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},L.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},L.prototype.getLastFullyVisibleRow=function(){var k=this.layerConfig,M=k.lastRow,A=this.session.documentToScreenRow(M,0)*k.lineHeight;return A-this.session.getScrollTop()>k.height-k.lineHeight?M-1:M},L.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},L.prototype.setPadding=function(k){this.$padding=k,this.$textLayer.setPadding(k),this.$cursorLayer.setPadding(k),this.$markerFront.setPadding(k),this.$markerBack.setPadding(k),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},L.prototype.setScrollMargin=function(k,M,A,R){var S=this.scrollMargin;S.top=k|0,S.bottom=M|0,S.right=R|0,S.left=A|0,S.v=S.top+S.bottom,S.h=S.left+S.right,S.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-S.top),this.updateFull()},L.prototype.setMargin=function(k,M,A,R){var S=this.margin;S.top=k|0,S.bottom=M|0,S.right=R|0,S.left=A|0,S.v=S.top+S.bottom,S.h=S.left+S.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},L.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},L.prototype.setHScrollBarAlwaysVisible=function(k){this.setOption("hScrollBarAlwaysVisible",k)},L.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},L.prototype.setVScrollBarAlwaysVisible=function(k){this.setOption("vScrollBarAlwaysVisible",k)},L.prototype.$updateScrollBarV=function(){var k=this.layerConfig.maxHeight,M=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(k-=(M-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>k-M&&(k=this.scrollTop+M,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(k+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},L.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},L.prototype.freeze=function(){this.$frozen=!0},L.prototype.unfreeze=function(){this.$frozen=!1},L.prototype.$renderChanges=function(k,M){if(this.$changes&&(k|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!k&&!M){this.$changes|=k;return}if(this.$size.$dirty)return this.$changes|=k,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",k),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var A=this.layerConfig;if(k&this.CHANGE_FULL||k&this.CHANGE_SIZE||k&this.CHANGE_TEXT||k&this.CHANGE_LINES||k&this.CHANGE_SCROLL||k&this.CHANGE_H_SCROLL){if(k|=this.$computeLayerConfig()|this.$loop.clear(),A.firstRow!=this.layerConfig.firstRow&&A.firstRowScreen==this.layerConfig.firstRowScreen){var R=this.scrollTop+(A.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;R>0&&(this.scrollTop=R,k=k|this.CHANGE_SCROLL,k|=this.$computeLayerConfig()|this.$loop.clear())}A=this.layerConfig,this.$updateScrollBarV(),k&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),d.translate(this.content,-this.scrollLeft,-A.offset);var S=A.width+2*this.$padding+"px",w=A.minHeight+"px";d.setStyle(this.content.style,"width",S),d.setStyle(this.content.style,"height",w)}if(k&this.CHANGE_H_SCROLL&&(d.translate(this.content,-this.scrollLeft,-A.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),k&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(A),this.$showGutter&&this.$gutterLayer.update(A),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(A),this.$markerBack.update(A),this.$markerFront.update(A),this.$cursorLayer.update(A),this.$moveTextAreaToCursor(),this._signal("afterRender",k);return}if(k&this.CHANGE_SCROLL){this.$changedLines=null,k&this.CHANGE_TEXT||k&this.CHANGE_LINES?this.$textLayer.update(A):this.$textLayer.scrollLines(A),this.$showGutter&&(k&this.CHANGE_GUTTER||k&this.CHANGE_LINES?this.$gutterLayer.update(A):this.$gutterLayer.scrollLines(A)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(A),this.$markerBack.update(A),this.$markerFront.update(A),this.$cursorLayer.update(A),this.$moveTextAreaToCursor(),this._signal("afterRender",k);return}k&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(A),this.$showGutter&&this.$gutterLayer.update(A),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(A)):k&this.CHANGE_LINES?((this.$updateLines()||k&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(A),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(A)):k&this.CHANGE_TEXT||k&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(A),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(A)):k&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(A),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(A)),k&this.CHANGE_CURSOR&&(this.$cursorLayer.update(A),this.$moveTextAreaToCursor()),k&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(A),k&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(A),this._signal("afterRender",k)},L.prototype.$autosize=function(){var k=this.session.getScreenLength()*this.lineHeight,M=this.$maxLines*this.lineHeight,A=Math.min(M,Math.max((this.$minLines||1)*this.lineHeight,k))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(A+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&A>this.$maxPixelHeight&&(A=this.$maxPixelHeight);var R=A<=2*this.lineHeight,S=!R&&k>M;if(A!=this.desiredHeight||this.$size.height!=this.desiredHeight||S!=this.$vScroll){S!=this.$vScroll&&(this.$vScroll=S,this.scrollBarV.setVisible(S));var w=this.container.clientWidth;this.container.style.height=A+"px",this.$updateCachedSize(!0,this.$gutterWidth,w,A),this.desiredHeight=A,this._signal("autosize")}},L.prototype.$computeLayerConfig=function(){var k=this.session,M=this.$size,A=M.height<=2*this.lineHeight,R=this.session.getScreenLength(),S=R*this.lineHeight,w=this.$getLongestLine(),x=!A&&(this.$hScrollBarAlwaysVisible||M.scrollerWidth-w-2*this.$padding<0),T=this.$horizScroll!==x;T&&(this.$horizScroll=x,this.scrollBarH.setVisible(x));var O=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var I=M.scrollerHeight+this.lineHeight,N=!this.$maxLines&&this.$scrollPastEnd?(M.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;S+=N;var P=this.scrollMargin;this.session.setScrollTop(Math.max(-P.top,Math.min(this.scrollTop,S-M.scrollerHeight+P.bottom))),this.session.setScrollLeft(Math.max(-P.left,Math.min(this.scrollLeft,w+2*this.$padding-M.scrollerWidth+P.right)));var H=!A&&(this.$vScrollBarAlwaysVisible||M.scrollerHeight-S+N<0||this.scrollTop>P.top),V=O!==H;V&&(this.$vScroll=H,this.scrollBarV.setVisible(H));var U=this.scrollTop%this.lineHeight,W=Math.ceil(I/this.lineHeight)-1,j=Math.max(0,Math.round((this.scrollTop-U)/this.lineHeight)),q=j+W,z,Z,K=this.lineHeight;j=k.screenToDocumentRow(j,0);var Q=k.getFoldLine(j);Q&&(j=Q.start.row),z=k.documentToScreenRow(j,0),Z=k.getRowLength(j)*K,q=Math.min(k.screenToDocumentRow(q,0),k.getLength()-1),I=M.scrollerHeight+k.getRowLength(q)*K+Z,U=this.scrollTop-z*K;var he=0;return(this.layerConfig.width!=w||T)&&(he=this.CHANGE_H_SCROLL),(T||V)&&(he|=this.$updateCachedSize(!0,this.gutterWidth,M.width,M.height),this._signal("scrollbarVisibilityChanged"),V&&(w=this.$getLongestLine())),this.layerConfig={width:w,padding:this.$padding,firstRow:j,firstRowScreen:z,lastRow:q,lineHeight:K,characterWidth:this.characterWidth,minHeight:I,maxHeight:S,offset:U,gutterOffset:K?Math.max(0,Math.ceil((U+M.height-M.scrollerHeight)/K)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(w-this.$padding),he},L.prototype.$updateLines=function(){if(this.$changedLines){var k=this.$changedLines.firstRow,M=this.$changedLines.lastRow;this.$changedLines=null;var A=this.layerConfig;if(!(k>A.lastRow+1)&&!(M<A.firstRow)){if(M===1/0){this.$showGutter&&this.$gutterLayer.update(A),this.$textLayer.update(A);return}return this.$textLayer.updateLines(A,k,M),!0}}},L.prototype.$getLongestLine=function(){var k=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(k+=1),this.$textLayer&&k>this.$textLayer.MAX_LINE_LENGTH&&(k=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(k*this.characterWidth))},L.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},L.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},L.prototype.addGutterDecoration=function(k,M){this.$gutterLayer.addGutterDecoration(k,M)},L.prototype.removeGutterDecoration=function(k,M){this.$gutterLayer.removeGutterDecoration(k,M)},L.prototype.updateBreakpoints=function(k){this._rows=k,this.$loop.schedule(this.CHANGE_GUTTER)},L.prototype.setAnnotations=function(k){this.$gutterLayer.setAnnotations(k),this.$loop.schedule(this.CHANGE_GUTTER)},L.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},L.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},L.prototype.showCursor=function(){this.$cursorLayer.showCursor()},L.prototype.scrollSelectionIntoView=function(k,M,A){this.scrollCursorIntoView(k,A),this.scrollCursorIntoView(M,A)},L.prototype.scrollCursorIntoView=function(k,M,A){if(this.$size.scrollerHeight!==0){var R=this.$cursorLayer.getPixelPosition(k),S=R.left,w=R.top,x=A&&A.top||0,T=A&&A.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var O=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;O+x>w?(M&&O+x>w+this.lineHeight&&(w-=M*this.$size.scrollerHeight),w===0&&(w=-this.scrollMargin.top),this.session.setScrollTop(w)):O+this.$size.scrollerHeight-T<w+this.lineHeight&&(M&&O+this.$size.scrollerHeight-T<w-this.lineHeight&&(w+=M*this.$size.scrollerHeight),this.session.setScrollTop(w+this.lineHeight+T-this.$size.scrollerHeight));var I=this.scrollLeft,N=2*this.layerConfig.characterWidth;S-N<I?(S-=N,S<this.$padding+N&&(S=-this.scrollMargin.left),this.session.setScrollLeft(S)):(S+=N,I+this.$size.scrollerWidth<S+this.characterWidth?this.session.setScrollLeft(Math.round(S+this.characterWidth-this.$size.scrollerWidth)):I<=this.$padding&&S-I<this.characterWidth&&this.session.setScrollLeft(0))}},L.prototype.getScrollTop=function(){return this.session.getScrollTop()},L.prototype.getScrollLeft=function(){return this.session.getScrollLeft()},L.prototype.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},L.prototype.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},L.prototype.scrollToRow=function(k){this.session.setScrollTop(k*this.lineHeight)},L.prototype.alignCursor=function(k,M){typeof k=="number"&&(k={row:k,column:0});var A=this.$cursorLayer.getPixelPosition(k),R=this.$size.scrollerHeight-this.lineHeight,S=A.top-R*(M||0);return this.session.setScrollTop(S),S},L.prototype.$calcSteps=function(k,M){var A=0,R=this.STEPS,S=[],w=function(x,T,O){return O*(Math.pow(x-1,3)+1)+T};for(A=0;A<R;++A)S.push(w(A/this.STEPS,k,M-k));return S},L.prototype.scrollToLine=function(k,M,A,R){var S=this.$cursorLayer.getPixelPosition({row:k,column:0}),w=S.top;M&&(w-=this.$size.scrollerHeight/2);var x=this.scrollTop;this.session.setScrollTop(w),A!==!1&&this.animateScrolling(x,R)},L.prototype.animateScrolling=function(k,M){var A=this.scrollTop;if(!this.$animatedScroll)return;var R=this;if(k==A)return;if(this.$scrollAnimation){var S=this.$scrollAnimation.steps;if(S.length&&(k=S[0],k==A))return}var w=R.$calcSteps(k,A);this.$scrollAnimation={from:k,to:A,steps:w},clearInterval(this.$timer),R.session.setScrollTop(w.shift()),R.session.$scrollTop=A;function x(){R.$timer=clearInterval(R.$timer),R.$scrollAnimation=null,R.$stopAnimation=!1,M&&M()}this.$timer=setInterval(function(){if(R.$stopAnimation){x();return}if(!R.session)return clearInterval(R.$timer);w.length?(R.session.setScrollTop(w.shift()),R.session.$scrollTop=A):A!=null?(R.session.$scrollTop=-1,R.session.setScrollTop(A),A=null):x()},10)},L.prototype.scrollToY=function(k){this.scrollTop!==k&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=k)},L.prototype.scrollToX=function(k){this.scrollLeft!==k&&(this.scrollLeft=k),this.$loop.schedule(this.CHANGE_H_SCROLL)},L.prototype.scrollTo=function(k,M){this.session.setScrollTop(M),this.session.setScrollLeft(k)},L.prototype.scrollBy=function(k,M){M&&this.session.setScrollTop(this.session.getScrollTop()+M),k&&this.session.setScrollLeft(this.session.getScrollLeft()+k)},L.prototype.isScrollableBy=function(k,M){if(M<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||M>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||k<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||k>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},L.prototype.pixelToScreenCoordinates=function(k,M){var A;if(this.$hasCssTransforms){A={top:0,left:0};var R=this.$fontMetrics.transformCoordinates([k,M]);k=R[1]-this.gutterWidth-this.margin.left,M=R[0]}else A=this.scroller.getBoundingClientRect();var S=k+this.scrollLeft-A.left-this.$padding,w=S/this.characterWidth,x=Math.floor((M+this.scrollTop-A.top)/this.lineHeight),T=this.$blockCursor?Math.floor(w):Math.round(w);return{row:x,column:T,side:w-T>0?1:-1,offsetX:S}},L.prototype.screenToTextCoordinates=function(k,M){var A;if(this.$hasCssTransforms){A={top:0,left:0};var R=this.$fontMetrics.transformCoordinates([k,M]);k=R[1]-this.gutterWidth-this.margin.left,M=R[0]}else A=this.scroller.getBoundingClientRect();var S=k+this.scrollLeft-A.left-this.$padding,w=S/this.characterWidth,x=this.$blockCursor?Math.floor(w):Math.round(w),T=Math.floor((M+this.scrollTop-A.top)/this.lineHeight);return this.session.screenToDocumentPosition(T,Math.max(x,0),S)},L.prototype.textToScreenCoordinates=function(k,M){var A=this.scroller.getBoundingClientRect(),R=this.session.documentToScreenPosition(k,M),S=this.$padding+(this.session.$bidiHandler.isBidiRow(R.row,k)?this.session.$bidiHandler.getPosLeft(R.column):Math.round(R.column*this.characterWidth)),w=R.row*this.lineHeight;return{pageX:A.left+S-this.scrollLeft,pageY:A.top+w-this.scrollTop}},L.prototype.visualizeFocus=function(){d.addCssClass(this.container,"ace_focus")},L.prototype.visualizeBlur=function(){d.removeCssClass(this.container,"ace_focus")},L.prototype.showComposition=function(k){this.$composition=k,k.cssText||(k.cssText=this.textarea.style.cssText),k.useTextareaForIME==null&&(k.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(d.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):k.markerId=this.session.addMarker(k.markerRange,"ace_composition_marker","text")},L.prototype.setCompositionText=function(k){var M=this.session.selection.cursor;this.addToken(k,"composition_placeholder",M.row,M.column),this.$moveTextAreaToCursor()},L.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),d.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var k=this.session.selection.cursor;this.removeExtraToken(k.row,k.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},L.prototype.setGhostText=function(k,M){var A=this.session.selection.cursor,R=M||{row:A.row,column:A.column};this.removeGhostText();var S=k.split(`
1737
+ `);if(this.addToken(S[0],"ghost_text",R.row,R.column),this.$ghostText={text:k,position:{row:R.row,column:R.column}},S.length>1){this.$ghostTextWidget={text:S.slice(1).join(`
1738
+ `),row:R.row,column:R.column,className:"ace_ghost_text"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var w=this.$cursorLayer.getPixelPosition(R,!0),x=this.container,T=x.getBoundingClientRect().height,O=S.length*this.lineHeight,I=O<T-w.top;if(I)return;O<T?this.scrollBy(0,(S.length-1)*this.lineHeight):this.scrollBy(0,w.top)}},L.prototype.removeGhostText=function(){if(this.$ghostText){var k=this.$ghostText.position;this.removeExtraToken(k.row,k.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},L.prototype.addToken=function(k,M,A,R){var S=this.session;S.bgTokenizer.lines[A]=null;var w={type:M,value:k},x=S.getTokens(A);if(R==null||!x.length)x.push(w);else for(var T=0,O=0;O<x.length;O++){var I=x[O];if(T+=I.value.length,R<=T){var N=I.value.length-(T-R),P=I.value.slice(0,N),H=I.value.slice(N);x.splice(O,1,{type:I.type,value:P},w,{type:I.type,value:H});break}}this.updateLines(A,A)},L.prototype.removeExtraToken=function(k,M){this.session.bgTokenizer.lines[k]=null,this.updateLines(k,k)},L.prototype.setTheme=function(k,M){var A=this;if(this.$themeId=k,A._dispatchEvent("themeChange",{theme:k}),!k||typeof k=="string"){var R=k||this.$options.theme.initialValue;o.loadModule(["theme",R],S)}else S(k);function S(w){if(A.$themeId!=k)return M&&M();if(!w||!w.cssClass)throw new Error("couldn't load module "+k+" or it didn't call define");w.$id&&(A.$themeId=w.$id),d.importCssString(w.cssText,w.cssClass,A.container),A.theme&&d.removeCssClass(A.container,A.theme.cssClass);var x="padding"in w?w.padding:"padding"in(A.theme||{})?4:A.$padding;A.$padding&&x!=A.$padding&&A.setPadding(x),A.$theme=w.cssClass,A.theme=w,d.addCssClass(A.container,w.cssClass),d.setCssClass(A.container,"ace_dark",w.isDark),A.$size&&(A.$size.width=0,A.$updateSizeAsync()),A._dispatchEvent("themeLoaded",{theme:w}),M&&M()}},L.prototype.getTheme=function(){return this.$themeId},L.prototype.setStyle=function(k,M){d.setCssClass(this.container,k,M!==!1)},L.prototype.unsetStyle=function(k){d.removeCssClass(this.container,k)},L.prototype.setCursorStyle=function(k){d.setStyle(this.scroller.style,"cursor",k)},L.prototype.setMouseCursor=function(k){d.setStyle(this.scroller.style,"cursor",k)},L.prototype.attachToShadowRoot=function(){d.importCssString($,"ace_editor.css",this.container)},L.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent="",this.setOption("useResizeObserver",!1)},L.prototype.$updateCustomScrollbar=function(k){var M=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,k===!0?(this.scrollBarV=new m(this.container,this),this.scrollBarH=new f(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function(A){M.$scrollAnimation||M.session.setScrollTop(A.data-M.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(A){M.$scrollAnimation||M.session.setScrollLeft(A.data-M.scrollMargin.left)}),this.$scrollDecorator=new _(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new h(this.container,this),this.scrollBarH=new u(this.container,this),this.scrollBarV.addEventListener("scroll",function(A){M.$scrollAnimation||M.session.setScrollTop(A.data-M.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(A){M.$scrollAnimation||M.session.setScrollLeft(A.data-M.scrollMargin.left)}))},L.prototype.$addResizeObserver=function(){if(!(!window.ResizeObserver||this.$resizeObserver)){var k=this;this.$resizeTimer=p.delayedCall(function(){k.destroyed||k.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(M){var A=M[0].contentRect.width,R=M[0].contentRect.height;Math.abs(k.$size.width-A)>1||Math.abs(k.$size.height-R)>1?k.$resizeTimer.delay():k.$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,a.implement(E.prototype,C),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){d.setCssClass(this.$gutter,"ace_fade-fold-widgets",L)},initialValue:!1},showFoldWidgets:{set:function(L){this.$gutterLayer.setShowFoldWidgets(L),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(L){this.$textLayer.setDisplayIndentGuides(L)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(L){this.$textLayer.setHighlightIndentGuides(L)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(L){this.$gutterLayer.setHighlightGutterLine(L),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(L){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(L){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(L){typeof L=="number"&&(L=L+"px"),this.container.style.fontSize=L,this.updateFontSize()},initialValue:12},fontFamily:{set:function(L){this.container.style.fontFamily=L,this.updateFontSize()}},maxLines:{set:function(L){this.updateFull()}},minLines:{set:function(L){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(L){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(L){L=+L||0,this.$scrollPastEnd!=L&&(this.$scrollPastEnd=L,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(L){this.$gutterLayer.$fixedWidth=!!L,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(L){this.$updateCustomScrollbar(L)},initialValue:!1},theme:{set:function(L){this.setTheme(L)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!b.isMobile&&!b.isIE}}),r.VirtualRenderer=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 a=n("../lib/oop"),d=n("../lib/net"),p=n("../lib/event_emitter").EventEmitter,o=n("../config");function g(u){var h="importScripts('"+d.qualifyURL(u)+"');";try{return new Blob([h],{type:"application/javascript"})}catch{var f=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,m=new f;return m.append(h),m.getBlob("application/javascript")}}function i(u){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(o.get("loadWorkerFromBlob")){var h=g(u),f=window.URL||window.webkitURL,m=f.createObjectURL(h);return new Worker(m)}return new Worker(u)}var s=function(u){u.postMessage||(u=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=u,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){a.implement(this,p),this.$createWorkerFromOldConfig=function(u,h,f,m,v){if(n.nameToUrl&&!n.toUrl&&(n.toUrl=n.nameToUrl),o.get("packaged")||!n.toUrl)m=m||o.moduleUrl(h,"worker");else{var y=this.$normalizePath;m=m||y(n.toUrl("ace/worker/worker.js",null,"_"));var C={};u.forEach(function($){C[$]=y(n.toUrl($,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=i(m),v&&this.send("importScripts",v),this.$worker.postMessage({init:!0,tlns:C,module:h,classname:f}),this.$worker},this.onMessage=function(u){var h=u.data;switch(h.type){case"event":this._signal(h.name,{data:h.data});break;case"call":var f=this.callbacks[h.id];f&&(f(h.data),delete this.callbacks[h.id]);break;case"error":this.reportError(h.data);break;case"log":window.console&&console.log&&console.log.apply(console,h.data);break}},this.reportError=function(u){window.console&&console.error&&console.error(u)},this.$normalizePath=function(u){return d.qualifyURL(u)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(u){u.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(u,h){this.$worker.postMessage({command:u,args:h})},this.call=function(u,h,f){if(f){var m=this.callbackId++;this.callbacks[m]=f,h.push(m)}this.send(u,h)},this.emit=function(u,h){try{h.data&&h.data.err&&(h.data.err={message:h.data.err.message,stack:h.data.err.stack,code:h.data.err.code}),this.$worker&&this.$worker.postMessage({event:u,data:{data:h.data}})}catch(f){console.error(f.stack)}},this.attachToDocument=function(u){this.$doc&&this.terminate(),this.$doc=u,this.call("setValue",[u.getValue()]),u.on("change",this.changeListener,!0)},this.changeListener=function(u){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),u.action=="insert"?this.deltaQueue.push(u.start,u.lines):this.deltaQueue.push(u.start,u.end)},this.$sendDeltaQueue=function(){var u=this.deltaQueue;u&&(this.deltaQueue=null,u.length>50&&u.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:u}))}}).call(s.prototype);var c=function(u,h,f){var m=null,v=!1,y=Object.create(p),C=[],$=new s({messageBuffer:C,terminate:function(){},postMessage:function(b){C.push(b),m&&(v?setTimeout(_):_())}});$.setEmitSync=function(b){v=b};var _=function(){var b=C.shift();b.command?m[b.command].apply(m,b.args):b.event&&y._signal(b.event,b.data)};return y.postMessage=function(b){$.onMessage({data:b})},y.callback=function(b,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",h],function(b){for(m=new b[f](y);C.length;)_()}),$};r.UIWorkerClient=c,r.WorkerClient=s,r.createWorker=i}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(n,r,l){var a=n("./range").Range,d=n("./lib/event_emitter").EventEmitter,p=n("./lib/oop"),o=function(){function g(i,s,c,u,h,f){var m=this;this.length=s,this.session=i,this.doc=i.getDocument(),this.mainClass=h,this.othersClass=f,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=u,this.$onCursorChange=function(){setTimeout(function(){m.onCursorChange()})},this.$pos=c;var v=i.getUndoManager().$undoStack||i.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=v.length,this.setup(),i.selection.on("changeCursor",this.$onCursorChange)}return g.prototype.setup=function(){var i=this,s=this.doc,c=this.session;this.selectionBefore=c.selection.toJSON(),c.selection.inMultiSelectMode&&c.selection.toSingleRange(),this.pos=s.createAnchor(this.$pos.row,this.$pos.column);var u=this.pos;u.$insertRight=!0,u.detach(),u.markerId=c.addMarker(new a(u.row,u.column,u.row,u.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(h){var f=s.createAnchor(h.row,h.column);f.$insertRight=!0,f.detach(),i.others.push(f)}),c.setUndoSelect(!1)},g.prototype.showOtherMarkers=function(){if(!this.othersActive){var i=this.session,s=this;this.othersActive=!0,this.others.forEach(function(c){c.markerId=i.addMarker(new a(c.row,c.column,c.row,c.column+s.length),s.othersClass,null,!1)})}},g.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var i=0;i<this.others.length;i++)this.session.removeMarker(this.others[i].markerId)}},g.prototype.onUpdate=function(i){if(this.$updating)return this.updateAnchors(i);var s=i;if(s.start.row===s.end.row&&s.start.row===this.pos.row){this.$updating=!0;var c=i.action==="insert"?s.end.column-s.start.column:s.start.column-s.end.column,u=s.start.column>=this.pos.column&&s.start.column<=this.pos.column+this.length+1,h=s.start.column-this.pos.column;if(this.updateAnchors(i),u&&(this.length+=c),u&&!this.session.$fromUndo){if(i.action==="insert")for(var f=this.others.length-1;f>=0;f--){var m=this.others[f],v={row:m.row,column:m.column+h};this.doc.insertMergedLines(v,i.lines)}else if(i.action==="remove")for(var f=this.others.length-1;f>=0;f--){var m=this.others[f],v={row:m.row,column:m.column+h};this.doc.remove(new a(v.row,v.column,v.row,v.column-c))}}this.$updating=!1,this.updateMarkers()}},g.prototype.updateAnchors=function(i){this.pos.onChange(i);for(var s=this.others.length;s--;)this.others[s].onChange(i);this.updateMarkers()},g.prototype.updateMarkers=function(){if(!this.$updating){var i=this,s=this.session,c=function(h,f){s.removeMarker(h.markerId),h.markerId=s.addMarker(new a(h.row,h.column,h.row,h.column+i.length),f,null,!1)};c(this.pos,this.mainClass);for(var u=this.others.length;u--;)c(this.others[u],this.othersClass)}},g.prototype.onCursorChange=function(i){if(!(this.$updating||!this.session)){var s=this.session.selection.getCursor();s.row===this.pos.row&&s.column>=this.pos.column&&s.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",i)):(this.hideOtherMarkers(),this._emit("cursorLeave",i))}},g.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},g.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var i=this.session.getUndoManager(),s=(i.$undoStack||i.$undostack).length-this.$undoStackDepth,c=0;c<s;c++)i.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},g}();p.implement(o.prototype,d),r.PlaceHolder=o}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(n,r,l){var a=n("../lib/event"),d=n("../lib/useragent");function p(g,i){return g.row==i.row&&g.column==i.column}function o(g){var i=g.domEvent,s=i.altKey,c=i.shiftKey,u=i.ctrlKey,h=g.getAccelKey(),f=g.getButton();if(u&&d.isMac&&(f=i.button),g.editor.inMultiSelectMode&&f==2){g.editor.textInput.onContextMenu(g.domEvent);return}if(!u&&!s&&!h){f===0&&g.editor.inMultiSelectMode&&g.editor.exitMultiSelectMode();return}if(f===0){var m=g.editor,v=m.selection,y=m.inMultiSelectMode,C=g.getDocumentPosition(),$=v.getCursor(),_=g.inSelection()||v.isEmpty()&&p(C,$),b=g.x,E=g.y,L=function(H){b=H.clientX,E=H.clientY},k=m.session,M=m.renderer.pixelToScreenCoordinates(b,E),A=M,R;if(m.$mouseHandler.$enableJumpToDef)u&&s||h&&s?R=c?"block":"add":s&&m.$blockSelectEnabled&&(R="block");else if(h&&!s){if(R="add",!y&&c)return}else s&&m.$blockSelectEnabled&&(R="block");if(R&&d.isMac&&i.ctrlKey&&m.$mouseHandler.cancelContextMenu(),R=="add"){if(!y&&_)return;if(!y){var S=v.toOrientedRange();m.addSelectionMarker(S)}var w=v.rangeList.rangeAtPoint(C);m.inVirtualSelectionMode=!0,c&&(w=null,S=v.ranges[0]||S,m.removeSelectionMarker(S)),m.once("mouseup",function(){var H=v.toOrientedRange();w&&H.isEmpty()&&p(w.cursor,H.cursor)?v.substractPoint(H.cursor):(c?v.substractPoint(S.cursor):S&&(m.removeSelectionMarker(S),v.addRange(S)),v.addRange(H)),m.inVirtualSelectionMode=!1})}else if(R=="block"){g.stop(),m.inVirtualSelectionMode=!0;var x,T=[],O=function(){var H=m.renderer.pixelToScreenCoordinates(b,E),V=k.screenToDocumentPosition(H.row,H.column,H.offsetX);p(A,H)&&p(V,v.lead)||(A=H,m.selection.moveToPosition(V),m.renderer.scrollCursorIntoView(),m.removeSelectionMarkers(T),T=v.rectangularRangeBlock(A,M),m.$mouseHandler.$clickSelection&&T.length==1&&T[0].isEmpty()&&(T[0]=m.$mouseHandler.$clickSelection.clone()),T.forEach(m.addSelectionMarker,m),m.updateSelectionMarkers())};y&&!h?v.toSingleRange():!y&&h&&(x=v.toOrientedRange(),m.addSelectionMarker(x)),c?M=k.documentToScreenPosition(v.lead):v.moveToPosition(C),A={row:-1,column:-1};var I=function(H){O(),clearInterval(P),m.removeSelectionMarkers(T),T.length||(T=[v.toOrientedRange()]),x&&(m.removeSelectionMarker(x),v.toSingleRange(x));for(var V=0;V<T.length;V++)v.addRange(T[V]);m.inVirtualSelectionMode=!1,m.$mouseHandler.$clickSelection=null},N=O;a.capture(m.container,L,I);var P=setInterval(function(){N()},20);return g.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(d){d.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(d){d.selectMoreLines(1)},bindKey:{win:"Ctrl-Alt-Down",mac:"Ctrl-Alt-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorAboveSkipCurrent",description:"Add cursor above (skip current)",exec:function(d){d.selectMoreLines(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Up",mac:"Ctrl-Alt-Shift-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelowSkipCurrent",description:"Add cursor below (skip current)",exec:function(d){d.selectMoreLines(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Down",mac:"Ctrl-Alt-Shift-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreBefore",description:"Select more before",exec:function(d){d.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(d){d.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(d){d.selectMore(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Left",mac:"Ctrl-Alt-Shift-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextAfter",description:"Select next after",exec:function(d){d.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"toggleSplitSelectionIntoLines",description:"Split selection into lines",exec:function(d){d.multiSelect.rangeCount>1?d.multiSelect.joinSelections():d.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(d){d.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(d){d.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(d){d.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],r.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(d){d.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(d){return d&&d.inMultiSelectMode}}];var a=n("../keyboard/hash_handler").HashHandler;r.keyboardHandler=new a(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 a=n("./range_list").RangeList,d=n("./range").Range,p=n("./selection").Selection,o=n("./mouse/multi_select_handler").onMouseDown,g=n("./lib/event"),i=n("./lib/lang"),s=n("./commands/multi_select_commands");r.commands=s.defaultCommands.concat(s.multiSelectCommands);var c=n("./search").Search,u=new c;function h($,_,b){return u.$options.wrap=!0,u.$options.needle=_,u.$options.backwards=b==-1,u.find($)}var f=n("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(f.prototype),(function(){this.ranges=null,this.rangeList=null,this.addRange=function($,_){if($){if(!this.inMultiSelectMode&&this.rangeCount===0){var b=this.toOrientedRange();if(this.rangeList.add(b),this.rangeList.add($),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),_||this.fromOrientedRange($);this.rangeList.removeAll(),this.rangeList.add(b),this.$onAddRange(b)}$.cursor||($.cursor=$.end);var E=this.rangeList.add($);return this.$onAddRange($),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)),_||this.fromOrientedRange($)}},this.toSingleRange=function($){$=$||this.ranges[0];var _=this.rangeList.removeAll();_.length&&this.$onRemoveRange(_),$&&this.fromOrientedRange($)},this.substractPoint=function($){var _=this.rangeList.substractPoint($);if(_)return this.$onRemoveRange(_),_[0]},this.mergeOverlappingRanges=function(){var $=this.rangeList.merge();$.length&&this.$onRemoveRange($)},this.$onAddRange=function($){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift($),this._signal("addRange",{range:$})},this.$onRemoveRange=function($){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var _=this.rangeList.ranges.pop();$.push(_),this.rangeCount=0}for(var b=$.length;b--;){var E=this.ranges.indexOf($[b]);this.ranges.splice(E,1)}this._signal("removeRange",{ranges:$}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),_=_||this.ranges[0],_&&!_.isEqual(this.getRange())&&this.fromOrientedRange(_)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new a,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var $=this.ranges.length?this.ranges:[this.getRange()],_=[],b=0;b<$.length;b++){var E=$[b],L=E.start.row,k=E.end.row;if(L===k)_.push(E.clone());else{for(_.push(new d(L,E.start.column,L,this.session.getLine(L).length));++L<k;)_.push(this.getLineRange(L,!0));_.push(new d(k,0,k,E.end.column))}b==0&&!this.isBackwards()&&(_=_.reverse())}this.toSingleRange();for(var b=_.length;b--;)this.addRange(_[b])},this.joinSelections=function(){var $=this.rangeList.ranges,_=$[$.length-1],b=d.fromPoints($[0].start,_.end);this.toSingleRange(),this.setSelectionRange(b,_.cursor==_.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var $=this.rangeList.ranges,_=$[$.length-1],b=d.fromPoints($[0].start,_.end);this.toSingleRange(),this.setSelectionRange(b,_.cursor==_.start)}else{var E=this.session.documentToScreenPosition(this.cursor),L=this.session.documentToScreenPosition(this.anchor),k=this.rectangularRangeBlock(E,L);k.forEach(this.addRange,this)}},this.rectangularRangeBlock=function($,_,b){var E=[],L=$.column<_.column;if(L)var k=$.column,M=_.column,A=$.offsetX,R=_.offsetX;else var k=_.column,M=$.column,A=_.offsetX,R=$.offsetX;var S=$.row<_.row;if(S)var w=$.row,x=_.row;else var w=_.row,x=$.row;k<0&&(k=0),w<0&&(w=0),w==x&&(b=!0);for(var T,O=w;O<=x;O++){var I=d.fromPoints(this.session.screenToDocumentPosition(O,k,A),this.session.screenToDocumentPosition(O,M,R));if(I.isEmpty()){if(T&&v(I.end,T))break;T=I.end}I.cursor=L?I.start:I.end,E.push(I)}if(S&&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 H=N;H>=P;H--)E[H].isEmpty()&&E.splice(H,1)}return E}}).call(p.prototype);var m=n("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function($){$.cursor||($.cursor=$.end);var _=this.getSelectionStyle();return $.marker=this.session.addMarker($,"ace_selection",_),this.session.$selectionMarkers.push($),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,$},this.removeSelectionMarker=function($){if($.marker){this.session.removeMarker($.marker);var _=this.session.$selectionMarkers.indexOf($);_!=-1&&this.session.$selectionMarkers.splice(_,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function($){for(var _=this.session.$selectionMarkers,b=$.length;b--;){var E=$[b];if(E.marker){this.session.removeMarker(E.marker);var L=_.indexOf(E);L!=-1&&_.splice(L,1)}}this.session.selectionMarkerCount=_.length},this.$onAddRange=function($){this.addSelectionMarker($.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function($){this.removeSelectionMarkers($.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function($){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(s.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function($){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(s.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function($){var _=$.command,b=$.editor;if(b.multiSelect){if(_.multiSelectAction)_.multiSelectAction=="forEach"?E=b.forEachSelection(_,$.args):_.multiSelectAction=="forEachLine"?E=b.forEachSelection(_,$.args,!0):_.multiSelectAction=="single"?(b.exitMultiSelectMode(),E=_.exec(b,$.args||{})):E=_.multiSelectAction(b,$.args||{});else{var E=_.exec(b,$.args||{});b.multiSelect.addRange(b.multiSelect.toOrientedRange()),b.multiSelect.mergeOverlappingRanges()}return E}},this.forEachSelection=function($,_,b){if(!this.inVirtualSelectionMode){var E=b&&b.keepOrder,L=b==!0||b&&b.$byLines,k=this.session,M=this.selection,A=M.rangeList,R=(E?M:A).ranges,S;if(!R.length)return $.exec?$.exec(this,_||{}):$(this,_||{});var w=M._eventRegistry;M._eventRegistry={};var x=new p(k);this.inVirtualSelectionMode=!0;for(var T=R.length;T--;){if(L)for(;T>0&&R[T].start.row==R[T-1].end.row;)T--;x.fromOrientedRange(R[T]),x.index=T,this.selection=k.selection=x;var O=$.exec?$.exec(this,_||{}):$(this,_||{});!S&&O!==void 0&&(S=O),x.toOrientedRange(R[T])}x.detach(),this.selection=k.selection=M,this.inVirtualSelectionMode=!1,M._eventRegistry=w,M.mergeOverlappingRanges(),M.ranges[0]&&M.fromOrientedRange(M.ranges[0]);var I=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),I&&I.from==I.to&&this.renderer.animateScrolling(I.from),S}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var $="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var _=this.multiSelect.rangeList.ranges,b=[],E=0;E<_.length;E++)b.push(this.session.getTextRange(_[E]));var L=this.session.getDocument().getNewLineCharacter();$=b.join(L),$.length==(b.length-1)*L.length&&($="")}else this.selection.isEmpty()||($=this.session.getTextRange(this.getSelectionRange()));return $},this.$checkMultiselectChange=function($,_){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var b=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&_==this.multiSelect.anchor)return;var E=_==this.multiSelect.anchor?b.cursor==b.start?b.end:b.start:b.cursor;E.row!=_.row||this.session.$clipPositionToDocument(E.row,E.column).column!=_.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function($,_,b){if(_=_||{},_.needle=$||_.needle,_.needle==null){var E=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();_.needle=this.session.getTextRange(E)}this.$search.set(_);var L=this.$search.findAll(this.session);if(!L.length)return 0;var k=this.multiSelect;b||k.toSingleRange(L[0]);for(var M=L.length;M--;)k.addRange(L[M],!0);return E&&k.rangeList.rangeAtPoint(E.start)&&k.addRange(E,!0),L.length},this.selectMoreLines=function($,_){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 k=this.session.screenToDocumentPosition(L.row+$,L.column);if(b.isEmpty())var A=k;else var M=this.session.documentToScreenPosition(E?b.end:b.start),A=this.session.screenToDocumentPosition(M.row+$,M.column);if(E){var R=d.fromPoints(k,A);R.cursor=R.start}else{var R=d.fromPoints(A,k);R.cursor=R.end}if(R.desiredColumn=L.column,!this.selection.inMultiSelectMode)this.selection.addRange(b);else if(_)var S=b.cursor;this.selection.addRange(R),S&&this.selection.substractPoint(S)},this.transposeSelections=function($){for(var _=this.session,b=_.multiSelect,E=b.ranges,L=E.length;L--;){var k=E[L];if(k.isEmpty()){var M=_.getWordRange(k.start.row,k.start.column);k.start.row=M.start.row,k.start.column=M.start.column,k.end.row=M.end.row,k.end.column=M.end.column}}b.mergeOverlappingRanges();for(var A=[],L=E.length;L--;){var k=E[L];A.unshift(_.getTextRange(k))}$<0?A.unshift(A.pop()):A.push(A.shift());for(var L=E.length;L--;){var k=E[L],R=k.clone();_.replace(k,A[L]),k.start.row=R.start.row,k.start.column=R.start.column}b.fromOrientedRange(b.ranges[0])},this.selectMore=function($,_,b){var E=this.session,L=E.multiSelect,k=L.toOrientedRange();if(!(k.isEmpty()&&(k=E.getWordRange(k.start.row,k.start.column),k.cursor=$==-1?k.start:k.end,this.multiSelect.addRange(k),b))){var M=E.getTextRange(k),A=h(E,M,$);A&&(A.cursor=$==-1?A.start:A.end,this.session.unfold(A),this.multiSelect.addRange(A),this.renderer.scrollCursorIntoView(null,.5)),_&&this.multiSelect.substractPoint(k.cursor)}},this.alignCursors=function(){var $=this.session,_=$.multiSelect,b=_.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 k=this.selection.getRange(),M=k.start.row,A=k.end.row,R=M==A;if(R){var S=this.session.getLength(),w;do w=this.session.getLine(A);while(/[=:]/.test(w)&&++A<S);do w=this.session.getLine(M);while(/[=:]/.test(w)&&--M>0);M<0&&(M=0),A>=S&&(A=S-1)}var x=this.session.removeFullLines(M,A);x=this.$reAlignText(x,R),this.session.insert({row:M,column:0},x.join(`
1739
+ `)+`
1740
+ `),R||(k.start.column=0,k.end.column=x[x.length-1].length),this.selection.setRange(k)}else{L.forEach(function(N){_.substractPoint(N.cursor)});var T=0,O=1/0,I=b.map(function(N){var P=N.cursor,H=$.getLine(P.row),V=H.substr(P.column).search(/\S/g);return V==-1&&(V=0),P.column>T&&(T=P.column),V<O&&(O=V),V});b.forEach(function(N,P){var H=N.cursor,V=T-H.column,U=I[P]-O;V>U?$.insert(H,i.stringRepeat(" ",V-U)):$.remove(new d(H.row,H.column,H.row,H.column-V+U)),N.start.column=N.end.column=T,N.start.row=N.end.row=H.row,N.cursor=N.end}),_.fromOrientedRange(b[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function($,_){var b=!0,E=!0,L,k,M;return $.map(function(x){var T=x.match(/(\s*)(.*?)(\s*)([=:].*)/);return T?L==null?(L=T[1].length,k=T[2].length,M=T[3].length,T):(L+k+M!=T[1].length+T[2].length+T[3].length&&(E=!1),L!=T[1].length&&(b=!1),L>T[1].length&&(L=T[1].length),k<T[2].length&&(k=T[2].length),M>T[3].length&&(M=T[3].length),T):[x]}).map(_?R:b?E?S:R:w);function A(x){return i.stringRepeat(" ",x)}function R(x){return x[2]?A(L)+x[2]+A(k-x[2].length+M)+x[4].replace(/^([=:])\s+/,"$1 "):x[0]}function S(x){return x[2]?A(L+k-x[2].length)+x[2]+A(M)+x[4].replace(/^([=:])\s+/,"$1 "):x[0]}function w(x){return x[2]?A(L)+x[2]+A(M)+x[4].replace(/^([=:])\s+/,"$1 "):x[0]}}}).call(m.prototype);function v($,_){return $.row==_.row&&$.column==_.column}r.onSessionChange=function($){var _=$.session;_&&!_.multiSelect&&(_.$selectionMarkers=[],_.selection.$initRangeList(),_.multiSelect=_.selection),this.multiSelect=_&&_.multiSelect;var b=$.oldSession;b&&(b.multiSelect.off("addRange",this.$onAddRange),b.multiSelect.off("removeRange",this.$onRemoveRange),b.multiSelect.off("multiSelect",this.$onMultiSelect),b.multiSelect.off("singleSelect",this.$onSingleSelect),b.multiSelect.lead.off("change",this.$checkMultiselectChange),b.multiSelect.anchor.off("change",this.$checkMultiselectChange)),_&&(_.multiSelect.on("addRange",this.$onAddRange),_.multiSelect.on("removeRange",this.$onRemoveRange),_.multiSelect.on("multiSelect",this.$onMultiSelect),_.multiSelect.on("singleSelect",this.$onSingleSelect),_.multiSelect.lead.on("change",this.$checkMultiselectChange),_.multiSelect.anchor.on("change",this.$checkMultiselectChange)),_&&this.inMultiSelectMode!=_.selection.inMultiSelectMode&&(_.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function y($){$.$multiselectOnSessionChange||($.$onAddRange=$.$onAddRange.bind($),$.$onRemoveRange=$.$onRemoveRange.bind($),$.$onMultiSelect=$.$onMultiSelect.bind($),$.$onSingleSelect=$.$onSingleSelect.bind($),$.$multiselectOnSessionChange=r.onSessionChange.bind($),$.$checkMultiselectChange=$.$checkMultiselectChange.bind($),$.$multiselectOnSessionChange($),$.on("changeSession",$.$multiselectOnSessionChange),$.on("mousedown",o),$.commands.addCommands(s.defaultCommands),C($))}function C($){if(!$.textInput)return;var _=$.textInput.getElement(),b=!1;g.addListener(_,"keydown",function(L){var k=L.keyCode==18&&!(L.ctrlKey||L.shiftKey||L.metaKey);$.$blockSelectEnabled&&k?b||($.renderer.setMouseCursor("crosshair"),b=!0):b&&E()},$),g.addListener(_,"keyup",E,$),g.addListener(_,"blur",E,$);function E(L){b&&($.renderer.setMouseCursor(""),b=!1)}}r.MultiSelect=y,n("./config").defineOptions(m.prototype,"editor",{enableMultiselect:{set:function($){y(this),$?this.on("mousedown",o):this.off("mousedown",o)},value:!0},enableBlockSelect:{set:function($){this.$blockSelectEnabled=$},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(n,r,l){var a=n("../../range").Range,d=r.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(p,o,g){var i=p.getLine(g);return this.foldingStartMarker.test(i)?"start":o=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(i)?"end":""},this.getFoldWidgetRange=function(p,o,g){return null},this.indentationBlock=function(p,o,g){var i=/\S/,s=p.getLine(o),c=s.search(i);if(c!=-1){for(var u=g||s.length,h=p.getLength(),f=o,m=o;++o<h;){var v=p.getLine(o).search(i);if(v!=-1){if(v<=c){var y=p.getTokenAt(o,0);if(!y||y.type!=="string")break}m=o}}if(m>f){var C=p.getLine(m).length;return new a(f,u,m,C)}}},this.openingBracketBlock=function(p,o,g,i,s){var c={row:g,column:i+1},u=p.$findClosingBracket(o,c,s);if(u){var h=p.foldWidgets[u.row];return h==null&&(h=p.getFoldWidget(u.row)),h=="start"&&u.row>c.row&&(u.row--,u.column=p.getLine(u.row).length),a.fromPoints(c,u)}},this.closingBracketBlock=function(p,o,g,i,s){var c={row:g,column:i},u=p.$findOpeningBracket(o,c);if(u)return u.column++,c.column--,a.fromPoints(u,c)}}).call(d.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range","ace/config"],function(n,r,l){var a=n("../line_widgets").LineWidgets,d=n("../lib/dom"),p=n("../range").Range,o=n("../config").nls;function g(s,c,u){for(var h=0,f=s.length-1;h<=f;){var m=h+f>>1,v=u(c,s[m]);if(v>0)h=m+1;else if(v<0)f=m-1;else return m}return-(h+1)}function i(s,c,u){var h=s.getAnnotations().sort(p.comparePoints);if(h.length){var f=g(h,{row:c,column:-1},p.comparePoints);f<0&&(f=-f-1),f>=h.length?f=u>0?0:h.length-1:f===0&&u<0&&(f=h.length-1);var m=h[f];if(!(!m||!u)){if(m.row===c){do m=h[f+=u];while(m&&m.row===c);if(!m)return h.slice()}var v=[];c=m.row;do v[u<0?"unshift":"push"](m),m=h[f+=u];while(m&&m.row==c);return v.length&&v}}}r.showErrorMarker=function(s,c){var u=s.session;u.widgetManager||(u.widgetManager=new a(u),u.widgetManager.attach(s));var h=s.getCursorPosition(),f=h.row,m=u.widgetManager.getWidgetsAtRow(f).filter(function(k){return k.type=="errorMarker"})[0];m?m.destroy():f-=c;var v=i(u,f,c),y;if(v){var C=v[0];h.column=(C.pos&&typeof C.column!="number"?C.pos.sc:C.column)||0,h.row=C.row,y=s.renderer.$gutterLayer.$annotations[h.row]}else{if(m)return;y={text:[o("Looks good!")],className:"ace_ok"}}s.session.unfold(h.row),s.selection.moveToPosition(h);var $={row:h.row,fixedWidth:!0,coverGutter:!0,el:d.createElement("div"),type:"errorMarker"},_=$.el.appendChild(d.createElement("div")),b=$.el.appendChild(d.createElement("div"));b.className="error_widget_arrow "+y.className;var E=s.renderer.$cursorLayer.getPixelPosition(h).left;b.style.left=E+s.renderer.gutterWidth-5+"px",$.el.className="error_widget_wrapper",_.className="error_widget "+y.className,_.innerHTML=y.text.join("<br>"),_.appendChild(d.createElement("div"));var L=function(k,M,A){if(M===0&&(A==="esc"||A==="return"))return $.destroy(),{command:"null"}};$.destroy=function(){s.$mouseHandler.isMousePressed||(s.keyBinding.removeKeyboardHandler(L),u.widgetManager.removeLineWidget($),s.off("changeSelection",$.destroy),s.off("changeSession",$.destroy),s.off("mouseup",$.destroy),s.off("change",$.destroy))},s.keyBinding.addKeyboardHandler(L),s.on("changeSelection",$.destroy),s.on("changeSession",$.destroy),s.on("mouseup",$.destroy),s.on("change",$.destroy),s.session.widgetManager.addLineWidget($),$.el.onmousedown=s.focus.bind(s),s.renderer.scrollCursorIntoView(null,.5,{bottom:$.el.offsetHeight})},d.importCssString(`
1741
+ .error_widget_wrapper {
1742
+ background: inherit;
1743
+ color: inherit;
1744
+ border:none
1745
+ }
1746
+ .error_widget {
1747
+ border-top: solid 2px;
1748
+ border-bottom: solid 2px;
1749
+ margin: 5px 0;
1750
+ padding: 10px 40px;
1751
+ white-space: pre-wrap;
1752
+ }
1753
+ .error_widget.ace_error, .error_widget_arrow.ace_error{
1754
+ border-color: #ff5a5a
1755
+ }
1756
+ .error_widget.ace_warning, .error_widget_arrow.ace_warning{
1757
+ border-color: #F1D817
1758
+ }
1759
+ .error_widget.ace_info, .error_widget_arrow.ace_info{
1760
+ border-color: #5a5a5a
1761
+ }
1762
+ .error_widget.ace_ok, .error_widget_arrow.ace_ok{
1763
+ border-color: #5aaa5a
1764
+ }
1765
+ .error_widget_arrow {
1766
+ position: absolute;
1767
+ border: solid 5px;
1768
+ border-top-color: transparent!important;
1769
+ border-right-color: transparent!important;
1770
+ border-left-color: transparent!important;
1771
+ top: -5px;
1772
+ }
1773
+ `,"error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],function(n,r,l){n("./loader_build")(r);var a=n("./lib/dom"),d=n("./range").Range,p=n("./editor").Editor,o=n("./edit_session").EditSession,g=n("./undomanager").UndoManager,i=n("./virtual_renderer").VirtualRenderer;n("./worker/worker_client"),n("./keyboard/hash_handler"),n("./placeholder"),n("./multi_select"),n("./mode/folding/fold_mode"),n("./theme/textmate"),n("./ext/error_marker"),r.config=n("./config"),r.edit=function(s,c){if(typeof s=="string"){var u=s;if(s=document.getElementById(u),!s)throw new Error("ace.edit can't find div #"+u)}if(s&&s.env&&s.env.editor instanceof p)return s.env.editor;var h="";if(s&&/input|textarea/i.test(s.tagName)){var f=s;h=f.value,s=a.createElement("pre"),f.parentNode.replaceChild(s,f)}else s&&(h=s.textContent,s.innerHTML="");var m=r.createEditSession(h),v=new p(new i(s),m,c),y={document:m,editor:v,onResize:v.resize.bind(v,null)};return f&&(y.textarea=f),v.on("destroy",function(){y.editor.container.env=null}),v.container.env=v.env=y,v},r.createEditSession=function(s,c){var u=new o(s,c);return u.setUndoManager(new g),u},r.Range=d,r.Editor=p,r.EditSession=o,r.UndoManager=g,r.VirtualRenderer=i,r.version=r.config.version}),function(){ace.require(["ace/ace"],function(n){n&&(n.config.init(!0),n.define=ace.define);var r=function(){return this}();!r&&typeof window<"u"&&(r=window),!r&&typeof self<"u"&&(r=self),r.ace||(r.ace=n);for(var l in n)n.hasOwnProperty(l)&&(r.ace[l]=n[l]);r.ace.default=r.ace,e&&(e.exports=r.ace)})}()})(Pf);var Sx=Pf.exports;const Bl=Ir(Sx),Cx="/assets/mode-yaml-ELgwiJiP.js",Ax="data:text/javascript;base64,YWNlLmRlZmluZSgiYWNlL3RoZW1lL21vbm9rYWktY3NzIixbInJlcXVpcmUiLCJleHBvcnRzIiwibW9kdWxlIl0sZnVuY3Rpb24oZSx0LG4pe24uZXhwb3J0cz0iLmFjZS1tb25va2FpIC5hY2VfZ3V0dGVyIHtcbiAgYmFja2dyb3VuZDogIzJGMzEyOTtcbiAgY29sb3I6ICM4RjkwOEFcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfcHJpbnQtbWFyZ2luIHtcbiAgd2lkdGg6IDFweDtcbiAgYmFja2dyb3VuZDogIzU1NTY1MVxufVxuXG4uYWNlLW1vbm9rYWkge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjcyODIyO1xuICBjb2xvcjogI0Y4RjhGMlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9jdXJzb3Ige1xuICBjb2xvcjogI0Y4RjhGMFxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9zZWxlY3Rpb24ge1xuICBiYWNrZ3JvdW5kOiAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaS5hY2VfbXVsdGlzZWxlY3QgLmFjZV9zZWxlY3Rpb24uYWNlX3N0YXJ0IHtcbiAgYm94LXNoYWRvdzogMCAwIDNweCAwcHggIzI3MjgyMjtcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfbWFya2VyLWxheWVyIC5hY2Vfc3RlcCB7XG4gIGJhY2tncm91bmQ6IHJnYigxMDIsIDgyLCAwKVxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9icmFja2V0IHtcbiAgbWFyZ2luOiAtMXB4IDAgMCAtMXB4O1xuICBib3JkZXI6IDFweCBzb2xpZCAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX21hcmtlci1sYXllciAuYWNlX2FjdGl2ZS1saW5lIHtcbiAgYmFja2dyb3VuZDogIzIwMjAyMFxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9ndXR0ZXItYWN0aXZlLWxpbmUge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjcyNzI3XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX21hcmtlci1sYXllciAuYWNlX3NlbGVjdGVkLXdvcmQge1xuICBib3JkZXI6IDFweCBzb2xpZCAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2ludmlzaWJsZSB7XG4gIGNvbG9yOiAjNTI1MjRkXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2VudGl0eS5hY2VfbmFtZS5hY2VfdGFnLFxuLmFjZS1tb25va2FpIC5hY2Vfa2V5d29yZCxcbi5hY2UtbW9ub2thaSAuYWNlX21ldGEuYWNlX3RhZyxcbi5hY2UtbW9ub2thaSAuYWNlX3N0b3JhZ2Uge1xuICBjb2xvcjogI0Y5MjY3MlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9wdW5jdHVhdGlvbixcbi5hY2UtbW9ub2thaSAuYWNlX3B1bmN0dWF0aW9uLmFjZV90YWcge1xuICBjb2xvcjogI2ZmZlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9jb25zdGFudC5hY2VfY2hhcmFjdGVyLFxuLmFjZS1tb25va2FpIC5hY2VfY29uc3RhbnQuYWNlX2xhbmd1YWdlLFxuLmFjZS1tb25va2FpIC5hY2VfY29uc3RhbnQuYWNlX251bWVyaWMsXG4uYWNlLW1vbm9rYWkgLmFjZV9jb25zdGFudC5hY2Vfb3RoZXIge1xuICBjb2xvcjogI0FFODFGRlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9pbnZhbGlkIHtcbiAgY29sb3I6ICNGOEY4RjA7XG4gIGJhY2tncm91bmQtY29sb3I6ICNGOTI2NzJcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfaW52YWxpZC5hY2VfZGVwcmVjYXRlZCB7XG4gIGNvbG9yOiAjRjhGOEYwO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjQUU4MUZGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N1cHBvcnQuYWNlX2NvbnN0YW50LFxuLmFjZS1tb25va2FpIC5hY2Vfc3VwcG9ydC5hY2VfZnVuY3Rpb24ge1xuICBjb2xvcjogIzY2RDlFRlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9mb2xkIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI0E2RTIyRTtcbiAgYm9yZGVyLWNvbG9yOiAjRjhGOEYyXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N0b3JhZ2UuYWNlX3R5cGUsXG4uYWNlLW1vbm9rYWkgLmFjZV9zdXBwb3J0LmFjZV9jbGFzcyxcbi5hY2UtbW9ub2thaSAuYWNlX3N1cHBvcnQuYWNlX3R5cGUge1xuICBmb250LXN0eWxlOiBpdGFsaWM7XG4gIGNvbG9yOiAjNjZEOUVGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2VudGl0eS5hY2VfbmFtZS5hY2VfZnVuY3Rpb24sXG4uYWNlLW1vbm9rYWkgLmFjZV9lbnRpdHkuYWNlX290aGVyLFxuLmFjZS1tb25va2FpIC5hY2VfZW50aXR5LmFjZV9vdGhlci5hY2VfYXR0cmlidXRlLW5hbWUsXG4uYWNlLW1vbm9rYWkgLmFjZV92YXJpYWJsZSB7XG4gIGNvbG9yOiAjQTZFMjJFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3ZhcmlhYmxlLmFjZV9wYXJhbWV0ZXIge1xuICBmb250LXN0eWxlOiBpdGFsaWM7XG4gIGNvbG9yOiAjRkQ5NzFGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N0cmluZyB7XG4gIGNvbG9yOiAjRTZEQjc0XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2NvbW1lbnQge1xuICBjb2xvcjogIzc1NzE1RVxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9pbmRlbnQtZ3VpZGUge1xuICBiYWNrZ3JvdW5kOiB1cmwoZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFBRUFBQUFDQ0FZQUFBQ1pnYlluQUFBQUVrbEVRVlFJbVdQUTBGRDBaWEJ6ZC93UEFBalZBb3hlU2dOZUFBQUFBRWxGVGtTdVFtQ0MpIHJpZ2h0IHJlcGVhdC15XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2luZGVudC1ndWlkZS1hY3RpdmUge1xuICBiYWNrZ3JvdW5kOiB1cmwoZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFBRUFBQUFDQ0FZQUFBQ1pnYlluQUFBQUVrbEVRVlFJVzJQUTFkWDl6ekJ6NXN6L0FCQ2NCRkZlbnRMbEFBQUFBRWxGVGtTdVFtQ0MpIHJpZ2h0IHJlcGVhdC15O1xufVxuIn0pLGFjZS5kZWZpbmUoImFjZS90aGVtZS9tb25va2FpIixbInJlcXVpcmUiLCJleHBvcnRzIiwibW9kdWxlIiwiYWNlL3RoZW1lL21vbm9rYWktY3NzIiwiYWNlL2xpYi9kb20iXSxmdW5jdGlvbihlLHQsbil7dC5pc0Rhcms9ITAsdC5jc3NDbGFzcz0iYWNlLW1vbm9rYWkiLHQuY3NzVGV4dD1lKCIuL21vbm9rYWktY3NzIik7dmFyIHI9ZSgiLi4vbGliL2RvbSIpO3IuaW1wb3J0Q3NzU3RyaW5nKHQuY3NzVGV4dCx0LmNzc0NsYXNzLCExKX0pOyAgICAgICAgICAgICAgICAoZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICAgICAgYWNlLnJlcXVpcmUoWyJhY2UvdGhlbWUvbW9ub2thaSJdLCBmdW5jdGlvbihtKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0eXBlb2YgbW9kdWxlID09ICJvYmplY3QiICYmIHR5cGVvZiBleHBvcnRzID09ICJvYmplY3QiICYmIG1vZHVsZSkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgbW9kdWxlLmV4cG9ydHMgPSBtOwogICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgICB9KSgpOwogICAgICAgICAgICA=";Bl.config.setModuleUrl("ace/mode/yaml",Cx);Bl.config.setModuleUrl("ace/theme/monokai",Ax);var Bf=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(l,a){return l[0]===n?(r=a,!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,a=this.__entries__;l<a.length;l++){var d=a[l];n.call(r,d[1],d[0])}},t}()}(),Oa=typeof window<"u"&&typeof document<"u"&&window.document===document,Ns=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")()}(),kx=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Ns):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),xx=2;function Ex(e,t){var n=!1,r=!1,l=0;function a(){n&&(n=!1,e()),r&&p()}function d(){kx(a)}function p(){var o=Date.now();if(n){if(o-l<xx)return;r=!0}else n=!0,r=!1,setTimeout(d,t);l=o}return p}var Rx=20,Tx=["top","right","bottom","left","width","height","size","weight"],Lx=typeof MutationObserver<"u",Mx=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Ex(this.refresh.bind(this),Rx)}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(){!Oa||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Lx?(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(){!Oa||!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=Tx.some(function(a){return!!~r.indexOf(a)});l&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Wf=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},xr=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Ns},Hf=vo(0,0,0,0);function Ds(e){return parseFloat(e)||0}function Nu(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,l){var a=e["border-"+l+"-width"];return r+Ds(a)},0)}function Ox(e){for(var t=["top","right","bottom","left"],n={},r=0,l=t;r<l.length;r++){var a=l[r],d=e["padding-"+a];n[a]=Ds(d)}return n}function Ix(e){var t=e.getBBox();return vo(0,0,t.width,t.height)}function Nx(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Hf;var r=xr(e).getComputedStyle(e),l=Ox(r),a=l.left+l.right,d=l.top+l.bottom,p=Ds(r.width),o=Ds(r.height);if(r.boxSizing==="border-box"&&(Math.round(p+a)!==t&&(p-=Nu(r,"left","right")+a),Math.round(o+d)!==n&&(o-=Nu(r,"top","bottom")+d)),!Fx(e)){var g=Math.round(p+a)-t,i=Math.round(o+d)-n;Math.abs(g)!==1&&(p-=g),Math.abs(i)!==1&&(o-=i)}return vo(l.left,l.top,p,o)}var Dx=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof xr(e).SVGGraphicsElement}:function(e){return e instanceof xr(e).SVGElement&&typeof e.getBBox=="function"}}();function Fx(e){return e===xr(e).document.documentElement}function Px(e){return Oa?Dx(e)?Ix(e):Nx(e):Hf}function Bx(e){var t=e.x,n=e.y,r=e.width,l=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,d=Object.create(a.prototype);return Wf(d,{x:t,y:n,width:r,height:l,top:n,right:t+r,bottom:l+n,left:t}),d}function vo(e,t,n,r){return{x:e,y:t,width:n,height:r}}var Wx=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=vo(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=Px(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}(),Hx=function(){function e(t,n){var r=Bx(n);Wf(this,{target:t,contentRect:r})}return e}(),zx=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new Bf,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 xr(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new Wx(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 xr(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 Hx(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}(),zf=typeof WeakMap<"u"?new WeakMap:new Bf,Uf=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=Mx.getInstance(),r=new zx(t,n,this);zf.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Uf.prototype[e]=function(){var t;return(t=zf.get(this))[e].apply(t,arguments)}});var Ux=function(){return typeof Ns.ResizeObserver<"u"?Ns.ResizeObserver:Uf}();const Du=["blur","input","change","changeSelectionStyle","changeSession","copy","focus","paste"],Vf=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",...Du],render(){return eo("div")},mounted(){const e=this._editor=sl(Bl.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)}),Du.forEach(t=>{const n="on"+ki(t);typeof this.$.vnode.props[n]=="function"&&e.on(t,this.$emit.bind(this,t))}),this._ro=new Ux(()=>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)}}}),Vx=Ce({name:"RuleInputForm",components:{VAceEditor:Vf},props:{yaml:{type:String,required:!0}},emits:["update-yaml"],setup(e,t){const n=ll(e,"yaml");return Uh(()=>{t.emit("update-yaml",n.value)}),{yamlInput:n}}}),jx={class:"block"};function Gx(e,t,n,r,l,a){const d=ne("VAceEditor");return G(),ie("div",jx,[ae(d,{class:"vue-ace-editor",value:e.yamlInput,"onUpdate:value":t[0]||(t[0]=p=>e.yamlInput=p),lang:"yaml",theme:"monokai",options:{fontSize:16,minLines:6,maxLines:1e4}},null,8,["value"])])}const jf=Ee(Vx,[["render",Gx]]),Yx=Ce({name:"EditRule",components:{InputForm:jf,ErrorMessage:vt},props:{rule:{type:Object,required:!0}},setup(e){const t=Mr(),n=ll(e.rule.yaml),r=h_();return{edit:async()=>{const d=await r.perform({yaml:n.value});t.push({name:"Rule",params:{id:d.id}})},yaml:n,updateYAML:d=>{n.value=d},updateRuleTask:r}}}),Kx={class:"block"},Zx={class:"is-size-2 block"},Xx={class:"field is-grouped is-grouped-centered"},qx={class:"control"},Qx={class:"icon is-small"},Jx=D("span",null,"Edit",-1),eE={key:0,class:"block"},tE=D("hr",null,null,-1);function nE(e,t,n,r,l,a){var g,i;const d=ne("InputForm"),p=ne("font-awesome-icon"),o=ne("ErrorMessage");return G(),ie(Be,null,[D("div",Kx,[D("h2",Zx,"Edit rule: "+we(e.rule.id),1),ae(d,{yaml:e.yaml,"onUpdate:yaml":t[0]||(t[0]=s=>e.yaml=s),onUpdateYaml:e.updateYAML},null,8,["yaml","onUpdateYaml"]),D("div",Xx,[D("p",qx,[D("a",{class:"button is-primary",onClick:t[1]||(t[1]=(...s)=>e.edit&&e.edit(...s))},[D("span",Qx,[ae(p,{icon:"edit"})]),Jx])])])]),(g=e.updateRuleTask.last)!=null&&g.error?(G(),ie("div",eE,[tE,ae(o,{error:(i=e.updateRuleTask.last)==null?void 0:i.error},null,8,["error"])])):ge("",!0)],64)}const rE=Ee(Yx,[["render",nE]]),iE=Ce({name:"EditRuleWrapper",components:{EditRule:rE,Loading:yn,ErrorMessage:vt},props:{id:{type:String,required:!0}},setup(e){const t=df(),n=async()=>{await t.perform(e.id)};return ct(async()=>{await n()}),ot(e,async()=>{await n()}),{getRuleTask:t}}});function sE(e,t,n,r,l,a){var g,i;const d=ne("Loading"),p=ne("ErrorMessage"),o=ne("EditRule");return G(),ie(Be,null,[e.getRuleTask.isRunning?(G(),Se(d,{key:0})):ge("",!0),e.getRuleTask.isError?(G(),Se(p,{key:1,error:(g=e.getRuleTask.last)==null?void 0:g.error},null,8,["error"])):ge("",!0),(i=e.getRuleTask.last)!=null&&i.value?(G(),Se(o,{key:2,rule:e.getRuleTask.last.value},null,8,["rule"])):ge("",!0)],64)}const oE=Ee(iE,[["render",sE]]),aE=Ce({name:"EditRuleView",components:{EditRule:oE},props:{id:{type:String,required:!0}},setup(e){const t=()=>{vn(`Edit rule:${e.id} - Mihari`)};ct(()=>{t()}),ot(()=>e.id,()=>{t()})}});function lE(e,t,n,r,l,a){const d=ne("EditRule",!0);return G(),Se(d,{id:e.id},null,8,["id"])}const cE=Ee(aE,[["render",lE]]);function uE(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(p,o){var g=o.match(/\n([\t ]+|(?!\s).)/g);return g?p.concat(g.map(function(i){var s,c;return(c=(s=i.match(/[\t ]/g))===null||s===void 0?void 0:s.length)!==null&&c!==void 0?c:0})):p},[]);if(l.length){var a=new RegExp(`
1774
+ [ ]{`+Math.min.apply(Math,l)+"}","g");r=r.map(function(p){return p.replace(a,`
1775
+ `)})}r[0]=r[0].replace(/^\r?\n/,"");var d=r[0];return t.forEach(function(p,o){var g=d.match(/(?:^|\n)( *)$/),i=g?g[1]:"",s=p;typeof p=="string"&&p.includes(`
1776
+ `)&&(s=String(p).split(`
1777
+ `).map(function(c,u){return u===0?c:""+i+c}).join(`
1778
+ `)),d+=s+r[o+1]}),d}var qi,hE=new Uint8Array(16);function dE(){if(!qi&&(qi=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!qi))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return qi(hE)}const fE=/^(?:[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 pE(e){return typeof e=="string"&&fE.test(e)}var ft=[];for(var zo=0;zo<256;++zo)ft.push((zo+256).toString(16).substr(1));function gE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(ft[e[t+0]]+ft[e[t+1]]+ft[e[t+2]]+ft[e[t+3]]+"-"+ft[e[t+4]]+ft[e[t+5]]+"-"+ft[e[t+6]]+ft[e[t+7]]+"-"+ft[e[t+8]]+ft[e[t+9]]+"-"+ft[e[t+10]]+ft[e[t+11]]+ft[e[t+12]]+ft[e[t+13]]+ft[e[t+14]]+ft[e[t+15]]).toLowerCase();if(!pE(n))throw TypeError("Stringified UUID is invalid");return n}function mE(e,t,n){e=e||{};var r=e.random||(e.rng||dE)();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 gE(r)}function vE(){const e=mE(),t=Nr();return uE`---
1779
+ id: ${e}
1780
+ title: Title goes here
1781
+ description: Description goes here
1782
+ created_on: ${t.format("YYYY-MM-DD")}
1783
+ queries: []`}const yE=Ce({name:"NewRule",components:{InputForm:jf,ErrorMessage:vt},setup(){const e=Mr(),t=Ke(vE()),n=u_();return{yaml:t,create:async()=>{const a=await n.perform({yaml:t.value});e.push({name:"Rule",params:{id:a.id}})},updateYAML:a=>{t.value=a},createRuleTask:n}}}),bE={class:"block"},wE=D("h2",{class:"is-size-2 block"},"New rule",-1),_E={class:"field is-grouped is-grouped-centered"},$E={class:"control"},SE={class:"icon is-small"},CE=D("span",null,"Create",-1),AE={key:0,class:"block"},kE=D("hr",null,null,-1);function xE(e,t,n,r,l,a){var g,i;const d=ne("InputForm"),p=ne("font-awesome-icon"),o=ne("ErrorMessage");return G(),ie(Be,null,[D("div",bE,[wE,ae(d,{yaml:e.yaml,"onUpdate:yaml":t[0]||(t[0]=s=>e.yaml=s),onUpdateYaml:e.updateYAML},null,8,["yaml","onUpdateYaml"]),D("div",_E,[D("p",$E,[D("a",{class:"button is-primary",onClick:t[1]||(t[1]=(...s)=>e.create&&e.create(...s))},[D("span",SE,[ae(p,{icon:"plus"})]),CE])])])]),(g=e.createRuleTask.last)!=null&&g.error?(G(),ie("div",AE,[kE,ae(o,{error:(i=e.createRuleTask.last)==null?void 0:i.error},null,8,["error"])])):ge("",!0)],64)}const EE=Ee(yE,[["render",xE]]),RE=Ce({name:"NewRuleView",components:{NewRule:EE},setup(){const e=()=>{vn("New rule - Mihari")};ct(()=>{e()})}});function TE(e,t,n,r,l,a){const d=ne("NewRule",!0);return G(),Se(d)}const LE=Ee(RE,[["render",TE]]),ME=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=l_(),a=c_(),d=Mi(),p=Il(),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(s){Qe.isAxiosError(s)&&t.emit("set-error")}},g=async()=>{try{const i=await a.perform(e.rule.id);t.emit("set-message",i)}catch(i){Qe.isAxiosError(i)&&t.emit("set-error",i)}};return ct(()=>{d.perform({q:r.value,page:1,limit:0}),p.perform({q:r.value,page:1,limit:0})}),{deleteRule:o,searchRule:g,searchRuleTask:a,href:n,getAlertsTask:d,getArtifactsTask:p,q:r}}}),OE={class:"buttons is-pulled-right"},IE=D("span",null,"Alerts:",-1),NE=D("span",null,"Artifacts:",-1),DE=["href"],FE=D("span",null,"JSON",-1),PE={class:"icon is-small"},BE=D("span",null,"Search",-1),WE={class:"icon is-small"},HE=D("span",null,"Edit",-1),zE={class:"icon is-small"},UE=D("span",null,"Delete",-1),VE={class:"icon is-small"};function jE(e,t,n,r,l,a){const d=ne("router-link"),p=ne("font-awesome-icon");return G(),ie("span",OE,[ae(d,{class:"button is-warning is-small is-rounded",to:{name:"Alerts",query:{q:e.q}}},{default:nt(()=>{var o,g;return[IE,D("span",null,we((g=(o=e.getAlertsTask.last)==null?void 0:o.value)==null?void 0:g.total),1)]}),_:1},8,["to"]),ae(d,{class:"button is-success is-small is-rounded",to:{name:"Artifacts",query:{q:e.q}}},{default:nt(()=>{var o,g;return[NE,D("span",null,we((g=(o=e.getArtifactsTask.last)==null?void 0:o.value)==null?void 0:g.total),1)]}),_:1},8,["to"]),D("a",{class:"button is-link is-light is-small",href:e.href,target:"_blank"},[FE,D("span",PE,[ae(p,{icon:"barcode"})])],8,DE),D("button",{class:"button is-primary is-light is-small",onClick:t[0]||(t[0]=(...o)=>e.searchRule&&e.searchRule(...o))},[BE,D("span",WE,[e.searchRuleTask.isRunning?(G(),Se(p,{key:0,icon:"spinner",spin:""})):(G(),Se(p,{key:1,icon:"magnifying-glass"}))])]),ae(d,{class:"button is-info is-light is-small",to:{name:"EditRule",params:{id:e.rule.id}}},{default:nt(()=>[HE,D("span",zE,[ae(p,{icon:"edit"})])]),_:1},8,["to"]),D("button",{class:"button is-light is-small",onClick:t[1]||(t[1]=(...o)=>e.deleteRule&&e.deleteRule(...o))},[UE,D("span",VE,[ae(p,{icon:"times"})])])])}const Gf=Ee(ME,[["render",jE]]),GE=Ce({name:"YAML",components:{VAceEditor:Vf},props:{yaml:{type:String,required:!0}},setup(){}}),YE={class:"block"};function KE(e,t,n,r,l,a){const d=ne("VAceEditor");return G(),ie("div",YE,[ae(d,{class:"vue-ace-editor",value:e.yaml,lang:"yaml",theme:"monokai",options:{readOnly:!0,fontSize:16,maxLines:1e4,minLines:6}},null,8,["value"])])}const ZE=Ee(GE,[["render",KE]]),XE=Ce({name:"RuleDetailItem",props:{rule:{type:Object,required:!0}},components:{YAML:ZE,Alerts:Ef,ErrorMessage:vt,Message:mo,ActionButtons:Gf},emits:["delete","refresh"],setup(e,t){const n=Ke(),r=Ke();return{onSetMessage:i=>{i.queued?r.value=i:t.emit("refresh")},onDisposeMessage:()=>{r.value=void 0},message:r,onSetError:i=>{n.value=i},error:n,onDisposeError:()=>{n.value=void 0},onDelete:()=>{t.emit("delete")},onRefresh:()=>{t.emit("refresh")}}}}),qE={class:"block"},QE={class:"is-size-2 block"},JE={class:"block is-clearfix"},eR=D("hr",null,null,-1),tR={class:"block"},nR=D("h2",{class:"is-size-2 block"},"Alerts",-1);function rR(e,t,n,r,l,a){const d=ne("ErrorMessage"),p=ne("Message"),o=ne("ActionButtons"),g=ne("YAML"),i=ne("Alerts");return G(),ie(Be,null,[D("div",qE,[D("h2",QE,we(e.rule.id),1),e.error?(G(),Se(d,{key:0,class:"mt-3 mb-3",error:e.error,disposable:!0,onDispose:e.onDisposeError},null,8,["error","onDispose"])):ge("",!0),e.message?(G(),Se(p,{key:1,class:"block",message:e.message,disposable:!0,onDispose:e.onDisposeMessage},null,8,["message","onDispose"])):ge("",!0),D("p",JE,[ae(o,{rule:e.rule,onSetMessage:e.onSetMessage,onDelete:e.onDelete,onSetError:e.onSetError},null,8,["rule","onSetMessage","onDelete","onSetError"])]),ae(g,{yaml:e.rule.yaml},null,8,["yaml"])]),eR,D("div",tR,[nR,ae(i,{ruleId:e.rule.id},null,8,["ruleId"])])],64)}const iR=Ee(XE,[["render",rR]]),sR=Ce({name:"RuleDetailWrapper",components:{Rule:iR,Loading:yn,ErrorMessage:vt},props:{id:{type:String,required:!0}},setup(e){const t=df(),n=Mr(),r=async()=>{await t.perform(e.id)},l=async()=>{await r()},a=()=>{n.push("/")};return ct(async()=>{await r()}),ot(e,async()=>{await r()}),{getRuleTask:t,onRefresh:l,onDelete:a}}});function oR(e,t,n,r,l,a){var g,i;const d=ne("Loading"),p=ne("ErrorMessage"),o=ne("Rule");return G(),ie(Be,null,[e.getRuleTask.isRunning?(G(),Se(d,{key:0})):ge("",!0),e.getRuleTask.isError?(G(),Se(p,{key:1,error:(g=e.getRuleTask.last)==null?void 0:g.error},null,8,["error"])):ge("",!0),(i=e.getRuleTask.last)!=null&&i.value?(G(),Se(o,{key:2,rule:e.getRuleTask.last.value,onRefresh:e.onRefresh,onDelete:e.onDelete},null,8,["rule","onRefresh","onDelete"])):ge("",!0)],64)}const aR=Ee(sR,[["render",oR]]),lR=Ce({name:"RuleView",components:{Rule:aR},props:{id:{type:String,required:!0}},setup(e){const t=()=>{vn(`Rule:${e.id} - Mihari`)};ct(()=>{t()}),ot(()=>e.id,()=>{t()})}});function cR(e,t,n,r,l,a){const d=ne("Rule",!0);return G(),Se(d,{id:e.id},null,8,["id"])}const uR=Ee(lR,[["render",cR]]),hR=Ce({name:"RuleItem",props:{rule:{type:Object,required:!0}},components:{ActionButtons:Gf,Tags:Ii,ErrorMessage:vt,Message:mo},emits:["delete"],setup(e,t){const n=Ke(),r=Ke();return{onSetError:g=>{n.value=g},onDisposeError:()=>{n.value=void 0},onSetMessage:g=>{r.value=g},onDelete:()=>{t.emit("delete")},error:n,message:r,onDisposeMessage:()=>{r.value=void 0}}}}),dR={class:"box"},fR={class:"block"},pR={class:"table is-fullwidth is-completely-borderless"},gR=D("th",null,"Title",-1),mR=D("th",null,"Description",-1),vR={key:0},yR=D("th",null,"Tags",-1),bR=D("p",{class:"block is-clearfix"},null,-1),wR={class:"help"};function _R(e,t,n,r,l,a){const d=ne("ErrorMessage"),p=ne("Message"),o=ne("ActionButtons"),g=ne("router-link"),i=ne("Tags");return G(),ie("div",dR,[e.error?(G(),Se(d,{key:0,class:"block",error:e.error,disposable:!0,onDispose:e.onDisposeError},null,8,["error","onDispose"])):ge("",!0),e.message?(G(),Se(p,{key:1,class:"block",message:e.message,disposable:!0,onDispose:e.onDisposeMessage},null,8,["message","onDispose"])):ge("",!0),D("div",fR,[D("p",null,[ae(o,{rule:e.rule,onSetError:e.onSetError,onDelete:e.onDelete,onSetMessage:e.onSetMessage},null,8,["rule","onSetError","onDelete","onSetMessage"])]),ae(g,{class:"is-size-4",to:{name:"Rule",params:{id:e.rule.id}}},{default:nt(()=>[rt(we(e.rule.id),1)]),_:1},8,["to"])]),D("table",pR,[D("tr",null,[gR,D("td",null,we(e.rule.title),1)]),D("tr",null,[mR,D("td",null,we(e.rule.description),1)]),e.rule.tags.length>0?(G(),ie("tr",vR,[yR,D("td",null,[ae(i,{tags:e.rule.tags,"navigate-to":"Rules"},null,8,["tags"])])])):ge("",!0)]),bR,D("p",wR,"Created at: "+we(e.rule.createdAt),1)])}const $R=Ee(hR,[["render",_R]]),SR=Ce({name:"RulesItem",props:{rules:{type:Object,required:!0}},components:{Pagination:Nl,Rule:$R},emits:["update-page","refresh"],setup(e,t){const n=Ke(),r=d=>{t.emit("update-page",d)},l=()=>{t.emit("refresh")},a=Le(()=>e.rules.results.length>0);return{onUpdatePage:r,onRefresh:l,hasRules:a,error:n}}}),CR={key:0,class:"block"},AR={class:"help"},kR={key:1,class:"block"},xR=D("div",{class:"notification is-warning is-light"},"There is no alert to show",-1),ER=[xR];function RR(e,t,n,r,l,a){const d=ne("Rule"),p=ne("Pagination");return e.hasRules?(G(),ie("div",CR,[(G(!0),ie(Be,null,Ot(e.rules.results,o=>(G(),Se(d,{rule:o,key:o.id,onRefresh:e.onRefresh,onDelete:e.onRefresh},null,8,["rule","onRefresh","onDelete"]))),128)),ae(p,{currentPage:e.rules.currentPage,total:e.rules.total,pageSize:e.rules.pageSize,onUpdatePage:e.onUpdatePage},null,8,["currentPage","total","pageSize","onUpdatePage"]),D("p",AR,"("+we(e.rules.total)+" results in total, "+we(e.rules.results.length)+" shown)",1)])):(G(),ie("div",kR,ER))}const TR=Ee(SR,[["render",RR]]),LR=Ce({name:"RulesWrapper",components:{Rules:TR,Loading:yn,ErrorMessage:vt},setup(){const e=kr("page","1"),t=kr("q",""),n=Ke(!1),r=hf(),l=async()=>{const g={q:t.value,page:parseInt(e.value)};return await r.perform(g)},a=g=>{e.value=g.toString()},d=async()=>{e.value="1",await l()},p=d,o=()=>{n.value=!n.value};return ct(async()=>{await l()}),ot(e,async()=>{await l()}),ot(t,async()=>{window.scrollTo({top:0,behavior:"smooth"})}),{getRulesTask:r,page:e,q:t,search:d,showHelp:n,toggleShowHelp:o,onUpdatePage:a,onRefresh:p}}}),MR={class:"block"},OR={class:"field has-addons"},IR={class:"control is-expanded"},NR={class:"control"},DR={class:"icon is-small"},FR=D("span",null,"Search",-1),PR={class:"control"},BR={class:"icon is-small"},WR=D("span",null,"Help",-1),HR={key:0,class:"content mt-3"},zR=bl('<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),UR={key:0,class:"block"};function VR(e,t,n,r,l,a){var s,c;const d=ne("font-awesome-icon"),p=ne("router-link"),o=ne("Loading"),g=ne("ErrorMessage"),i=ne("Rules");return G(),ie(Be,null,[D("div",MR,[D("div",OR,[D("p",IR,[gl(D("input",{class:"input",type:"text","onUpdate:modelValue":t[0]||(t[0]=u=>e.q=u)},null,512),[[$l,e.q]])]),D("p",NR,[D("a",{class:"button is-primary",onClick:t[1]||(t[1]=(...u)=>e.search&&e.search(...u))},[D("span",DR,[ae(d,{icon:"search"})]),FR])]),D("p",PR,[D("a",{class:"button is-info",onClick:t[2]||(t[2]=(...u)=>e.toggleShowHelp&&e.toggleShowHelp(...u))},[D("span",BR,[ae(d,{icon:"question"})]),WR])])]),e.showHelp?(G(),ie("div",HR,[zR,D("ul",null,[D("li",null,[ae(p,{to:{name:"Rules",query:{q:"title:foo AND created_at >= 2020-01-01"}}},{default:nt(()=>[rt("title:foo AND created_at >= 2020-01-01")]),_:1})])])])):ge("",!0)]),e.getRulesTask.performCount>0?(G(),ie("div",UR,[e.getRulesTask.isRunning?(G(),Se(o,{key:0})):ge("",!0),e.getRulesTask.isError?(G(),Se(g,{key:1,error:(s=e.getRulesTask.last)==null?void 0:s.error},null,8,["error"])):ge("",!0),(c=e.getRulesTask.last)!=null&&c.value?(G(),Se(i,{key:2,rules:e.getRulesTask.last.value,onUpdatePage:e.onUpdatePage,onRefresh:e.onRefresh},null,8,["rules","onUpdatePage","onRefresh"])):ge("",!0)])):ge("",!0)],64)}const jR=Ee(LR,[["render",VR]]),GR=Ce({name:"RulesView",components:{Rules:jR},setup(){vn("Rules - Mihari")}});function YR(e,t,n,r,l,a){const d=ne("Rules",!0);return G(),Se(d)}const KR=Ee(GR,[["render",YR]]),ZR=[{path:"/",name:"Alerts",component:pC},{path:"/alerts/:id",name:"Alert",component:dS,props:!0},{path:"/config",name:"Config",component:$x},{path:"/artifacts/",name:"Artifacts",component:ex},{path:"/artifacts/:id",name:"Artifact",component:fk,props:!0},{path:"/rules",name:"Rules",component:KR},{path:"/rules/new",name:"NewRule",component:LE},{path:"/rules/:id",name:"Rule",component:uR,props:!0},{path:"/rules/:id/edit",name:"EditRule",component:cE,props:!0}],XR=V0({history:b0(),routes:ZR});Eg.add(Ig,Kg,jg,Mg,Yg,Dg,Tg,Hg,Wg,Vg,Ug,Og,uh,Bg,Pg,Fg,Gg);const Yf=dy(Hy);Yf.component("font-awesome-icon",ky);Yf.use(XR).mount("#app");