mihari 6.3.0 → 7.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (161) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +4 -10
  3. data/.rubocop.yml +2 -0
  4. data/Dockerfile +14 -0
  5. data/config.ru +5 -3
  6. data/docker-compose.yml +61 -0
  7. data/exe/mihari +2 -1
  8. data/lefthook.yml +8 -0
  9. data/lib/mihari/actor.rb +4 -4
  10. data/lib/mihari/analyzers/base.rb +16 -0
  11. data/lib/mihari/analyzers/binaryedge.rb +4 -2
  12. data/lib/mihari/analyzers/censys.rb +7 -5
  13. data/lib/mihari/analyzers/circl.rb +5 -3
  14. data/lib/mihari/analyzers/crtsh.rb +10 -2
  15. data/lib/mihari/analyzers/dnstwister.rb +1 -1
  16. data/lib/mihari/analyzers/feed.rb +12 -20
  17. data/lib/mihari/analyzers/fofa.rb +6 -8
  18. data/lib/mihari/analyzers/greynoise.rb +4 -2
  19. data/lib/mihari/analyzers/hunterhow.rb +4 -2
  20. data/lib/mihari/analyzers/onyphe.rb +4 -2
  21. data/lib/mihari/analyzers/otx.rb +5 -3
  22. data/lib/mihari/analyzers/passivetotal.rb +29 -12
  23. data/lib/mihari/analyzers/pulsedive.rb +5 -3
  24. data/lib/mihari/analyzers/securitytrails.rb +32 -8
  25. data/lib/mihari/analyzers/shodan.rb +4 -2
  26. data/lib/mihari/analyzers/urlscan.rb +4 -2
  27. data/lib/mihari/analyzers/virustotal.rb +5 -5
  28. data/lib/mihari/analyzers/virustotal_intelligence.rb +4 -2
  29. data/lib/mihari/analyzers/zoomeye.rb +4 -2
  30. data/lib/mihari/cli/{main.rb → application.rb} +17 -5
  31. data/lib/mihari/cli/artifact.rb +14 -0
  32. data/lib/mihari/cli/config.rb +14 -0
  33. data/lib/mihari/cli/rule.rb +1 -0
  34. data/lib/mihari/cli/tag.rb +14 -0
  35. data/lib/mihari/clients/base.rb +2 -2
  36. data/lib/mihari/clients/binaryedge.rb +2 -2
  37. data/lib/mihari/clients/crtsh.rb +3 -10
  38. data/lib/mihari/clients/fofa.rb +1 -1
  39. data/lib/mihari/clients/hunterhow.rb +1 -1
  40. data/lib/mihari/clients/mmdb.rb +28 -0
  41. data/lib/mihari/clients/passivetotal.rb +7 -20
  42. data/lib/mihari/clients/securitytrails.rb +19 -43
  43. data/lib/mihari/clients/shodan_internet_db.rb +28 -0
  44. data/lib/mihari/clients/the_hive.rb +7 -5
  45. data/lib/mihari/commands/alert.rb +53 -11
  46. data/lib/mihari/commands/artifact.rb +66 -0
  47. data/lib/mihari/commands/config.rb +23 -0
  48. data/lib/mihari/commands/database.rb +1 -1
  49. data/lib/mihari/commands/rule.rb +40 -27
  50. data/lib/mihari/commands/search.rb +10 -11
  51. data/lib/mihari/commands/sidekiq.rb +31 -0
  52. data/lib/mihari/commands/tag.rb +46 -0
  53. data/lib/mihari/commands/web.rb +6 -7
  54. data/lib/mihari/{mixins/autonomous_system.rb → concerns/autonomous_system_normalizable.rb} +5 -3
  55. data/lib/mihari/concerns/configurable.rb +72 -0
  56. data/lib/mihari/concerns/database_connectable.rb +16 -0
  57. data/lib/mihari/{mixins/unwrap_error.rb → concerns/error_unwrappable.rb} +5 -3
  58. data/lib/mihari/{mixins/falsepositive.rb → concerns/falsepositive_validatable.rb} +5 -3
  59. data/lib/mihari/{mixins/refang.rb → concerns/refangable.rb} +5 -3
  60. data/lib/mihari/{mixins → concerns}/retriable.rb +4 -2
  61. data/lib/mihari/config.rb +13 -12
  62. data/lib/mihari/database.rb +30 -42
  63. data/lib/mihari/emitters/database.rb +5 -6
  64. data/lib/mihari/emitters/misp.rb +4 -11
  65. data/lib/mihari/emitters/slack.rb +7 -5
  66. data/lib/mihari/emitters/the_hive.rb +8 -58
  67. data/lib/mihari/emitters/webhook.rb +6 -6
  68. data/lib/mihari/enrichers/google_public_dns.rb +1 -1
  69. data/lib/mihari/enrichers/mmdb.rb +28 -0
  70. data/lib/mihari/enrichers/shodan.rb +3 -5
  71. data/lib/mihari/enrichers/whois.rb +3 -3
  72. data/lib/mihari/entities/alert.rb +3 -10
  73. data/lib/mihari/entities/artifact.rb +6 -14
  74. data/lib/mihari/entities/config.rb +2 -2
  75. data/lib/mihari/entities/cpe.rb +1 -0
  76. data/lib/mihari/entities/dns.rb +1 -0
  77. data/lib/mihari/entities/geolocation.rb +1 -0
  78. data/lib/mihari/entities/ip_address.rb +1 -3
  79. data/lib/mihari/entities/messages.rb +17 -0
  80. data/lib/mihari/entities/pagination.rb +11 -0
  81. data/lib/mihari/entities/port.rb +1 -0
  82. data/lib/mihari/entities/reverse_dns.rb +1 -0
  83. data/lib/mihari/entities/rule.rb +2 -20
  84. data/lib/mihari/entities/tag.rb +2 -2
  85. data/lib/mihari/entities/whois.rb +1 -0
  86. data/lib/mihari/errors.rb +2 -4
  87. data/lib/mihari/http.rb +4 -0
  88. data/lib/mihari/models/alert.rb +21 -53
  89. data/lib/mihari/models/artifact.rb +61 -97
  90. data/lib/mihari/models/autonomous_system.rb +0 -24
  91. data/lib/mihari/models/concerns/searchable.rb +50 -0
  92. data/lib/mihari/models/cpe.rb +0 -23
  93. data/lib/mihari/models/dns.rb +0 -20
  94. data/lib/mihari/models/geolocation.rb +0 -24
  95. data/lib/mihari/models/port.rb +3 -10
  96. data/lib/mihari/models/reverse_dns.rb +0 -23
  97. data/lib/mihari/models/rule.rb +16 -57
  98. data/lib/mihari/models/tag.rb +17 -1
  99. data/lib/mihari/models/tagging.rb +1 -1
  100. data/lib/mihari/models/whois.rb +0 -17
  101. data/lib/mihari/rule.rb +35 -24
  102. data/lib/mihari/schemas/alert.rb +1 -0
  103. data/lib/mihari/schemas/analyzer.rb +3 -2
  104. data/lib/mihari/schemas/concerns/orrable.rb +24 -0
  105. data/lib/mihari/schemas/emitter.rb +1 -2
  106. data/lib/mihari/schemas/enricher.rb +3 -4
  107. data/lib/mihari/schemas/macros.rb +1 -1
  108. data/lib/mihari/schemas/options.rb +0 -2
  109. data/lib/mihari/schemas/rule.rb +1 -2
  110. data/lib/mihari/services/builders.rb +158 -0
  111. data/lib/mihari/services/creators.rb +22 -0
  112. data/lib/mihari/services/destroyers.rb +41 -0
  113. data/lib/mihari/services/enrichers.rb +25 -0
  114. data/lib/mihari/services/feed.rb +107 -0
  115. data/lib/mihari/services/getters.rb +58 -0
  116. data/lib/mihari/services/initializers.rb +22 -0
  117. data/lib/mihari/services/{alert_builder.rb → proxies.rb} +10 -40
  118. data/lib/mihari/services/searchers.rb +91 -0
  119. data/lib/mihari/sidekiq/application.rb +13 -0
  120. data/lib/mihari/sidekiq/jobs.rb +36 -0
  121. data/lib/mihari/structs/censys.rb +1 -1
  122. data/lib/mihari/structs/config.rb +10 -10
  123. data/lib/mihari/structs/filters.rb +12 -130
  124. data/lib/mihari/structs/google_public_dns.rb +1 -1
  125. data/lib/mihari/structs/greynoise.rb +1 -1
  126. data/lib/mihari/structs/mmdb.rb +115 -0
  127. data/lib/mihari/structs/onyphe.rb +1 -1
  128. data/lib/mihari/structs/shodan.rb +2 -2
  129. data/lib/mihari/version.rb +1 -1
  130. data/lib/mihari/web/{app.rb → application.rb} +28 -15
  131. data/lib/mihari/web/endpoints/alerts.rb +34 -73
  132. data/lib/mihari/web/endpoints/artifacts.rb +27 -111
  133. data/lib/mihari/web/endpoints/configs.rb +3 -5
  134. data/lib/mihari/web/endpoints/ip_addresses.rb +14 -15
  135. data/lib/mihari/web/endpoints/rules.rb +58 -130
  136. data/lib/mihari/web/endpoints/tags.rb +21 -17
  137. data/lib/mihari/web/middleware/capture_exceptions.rb +25 -0
  138. data/lib/mihari/web/middleware/{connection_adapter.rb → connection.rb} +4 -2
  139. data/lib/mihari/web/public/assets/index-cQUcyII5.js +1766 -0
  140. data/lib/mihari/web/public/assets/index-dVaNxqTC.css +1 -0
  141. data/lib/mihari/web/public/index.html +2 -2
  142. data/lib/mihari/web/public/redoc-static.html +385 -385
  143. data/lib/mihari.rb +56 -28
  144. data/mihari.gemspec +12 -4
  145. data/mkdocs.yml +5 -2
  146. data/requirements.txt +1 -1
  147. metadata +164 -34
  148. data/lib/mihari/commands/mixins.rb +0 -11
  149. data/lib/mihari/enrichers/ipinfo.rb +0 -52
  150. data/lib/mihari/entities/message.rb +0 -9
  151. data/lib/mihari/feed/parser.rb +0 -38
  152. data/lib/mihari/feed/reader.rb +0 -111
  153. data/lib/mihari/mixins/configurable.rb +0 -68
  154. data/lib/mihari/schemas/mixins.rb +0 -20
  155. data/lib/mihari/services/alert_runner.rb +0 -20
  156. data/lib/mihari/services/rule_builder.rb +0 -46
  157. data/lib/mihari/structs/ipinfo.rb +0 -53
  158. data/lib/mihari/web/endpoints/exports.rb +0 -0
  159. data/lib/mihari/web/middleware/error_notification_adapter.rb +0 -35
  160. data/lib/mihari/web/public/assets/index-81613_nX.js +0 -1763
  161. data/lib/mihari/web/public/assets/index-Wv6xUrTI.css +0 -1
@@ -1,1763 +0,0 @@
1
- var tp=Object.defineProperty;var np=(e,t,n)=>t in e?tp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Le=(e,t,n)=>(np(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 d of document.querySelectorAll('link[rel="modulepreload"]'))i(d);new MutationObserver(d=>{for(const u of d)if(u.type==="childList")for(const h of u.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&i(h)}).observe(document,{childList:!0,subtree:!0});function n(d){const u={};return d.integrity&&(u.integrity=d.integrity),d.referrerPolicy&&(u.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?u.credentials="include":d.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function i(d){if(d.ep)return;d.ep=!0;const u=n(d);fetch(d.href,u)}})();function xl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(d){return Object.getOwnPropertyDescriptor(e,d).enumerable})),n.push.apply(n,i)}return n}function pe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xl(Object(n),!0).forEach(function(i){qe(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xl(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function ao(e){"@babel/helpers - typeof";return ao=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},ao(e)}function ip(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function El(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function rp(e,t,n){return t&&El(e.prototype,t),n&&El(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function qe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wa(e,t){return sp(e)||lp(e,t)||$u(e,t)||up()}function wr(e){return op(e)||ap(e)||$u(e)||cp()}function op(e){if(Array.isArray(e))return Ms(e)}function sp(e){if(Array.isArray(e))return e}function ap(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lp(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i=[],d=!0,u=!1,h,g;try{for(n=n.call(e);!(d=(h=n.next()).done)&&(i.push(h.value),!(t&&i.length===t));d=!0);}catch(s){u=!0,g=s}finally{try{!d&&n.return!=null&&n.return()}finally{if(u)throw g}}return i}}function $u(e,t){if(e){if(typeof e=="string")return Ms(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 Ms(e,t)}}function Ms(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function cp(){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 up(){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 Rl=function(){},$a={},Cu={},Su=null,_u={mark:Rl,measure:Rl};try{typeof window<"u"&&($a=window),typeof document<"u"&&(Cu=document),typeof MutationObserver<"u"&&(Su=MutationObserver),typeof performance<"u"&&(_u=performance)}catch{}var hp=$a.navigator||{},Ll=hp.userAgent,Tl=Ll===void 0?"":Ll,An=$a,ze=Cu,Ml=Su,Tr=_u;An.document;var cn=!!ze.documentElement&&!!ze.head&&typeof ze.addEventListener=="function"&&typeof ze.createElement=="function",Au=~Tl.indexOf("MSIE")||~Tl.indexOf("Trident/"),Mr,Or,Ir,Fr,Nr,sn="___FONT_AWESOME___",Os=16,ku="fa",xu="svg-inline--fa",Xn="data-fa-i2svg",Is="data-fa-pseudo-element",fp="data-fa-pseudo-element-pending",Ca="data-prefix",Sa="data-icon",Ol="fontawesome-i2svg",dp="async",pp=["HTML","HEAD","STYLE","SCRIPT"],Eu=function(){try{return!0}catch{return!1}}(),Ue="classic",Ze="sharp",_a=[Ue,Ze];function $r(e){return new Proxy(e,{get:function(n,i){return i in n?n[i]:n[Ue]}})}var ir=$r((Mr={},qe(Mr,Ue,{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"}),qe(Mr,Ze,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"}),Mr)),rr=$r((Or={},qe(Or,Ue,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),qe(Or,Ze,{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"}),Or)),or=$r((Ir={},qe(Ir,Ue,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),qe(Ir,Ze,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"}),Ir)),gp=$r((Fr={},qe(Fr,Ue,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),qe(Fr,Ze,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"}),Fr)),mp=/fa(s|r|l|t|d|b|k|ss|sr|sl|st)?[\-\ ]/,Ru="fa-layers-text",vp=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,yp=$r((Nr={},qe(Nr,Ue,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),qe(Nr,Ze,{900:"fass",400:"fasr",300:"fasl",100:"fast"}),Nr)),Lu=[1,2,3,4,5,6,7,8,9,10],bp=Lu.concat([11,12,13,14,15,16,17,18,19,20]),wp=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Un={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},sr=new Set;Object.keys(rr[Ue]).map(sr.add.bind(sr));Object.keys(rr[Ze]).map(sr.add.bind(sr));var $p=[].concat(_a,wr(sr),["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",Un.GROUP,Un.SWAP_OPACITY,Un.PRIMARY,Un.SECONDARY]).concat(Lu.map(function(e){return"".concat(e,"x")})).concat(bp.map(function(e){return"w-".concat(e)})),Gi=An.FontAwesomeConfig||{};function Cp(e){var t=ze.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function Sp(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(ze&&typeof ze.querySelector=="function"){var _p=[["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"]];_p.forEach(function(e){var t=wa(e,2),n=t[0],i=t[1],d=Sp(Cp(n));d!=null&&(Gi[i]=d)})}var Tu={styleDefault:"solid",familyDefault:"classic",cssPrefix:ku,replacementClass:xu,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Gi.familyPrefix&&(Gi.cssPrefix=Gi.familyPrefix);var vi=pe(pe({},Tu),Gi);vi.autoReplaceSvg||(vi.observeMutations=!1);var ye={};Object.keys(Tu).forEach(function(e){Object.defineProperty(ye,e,{enumerable:!0,set:function(n){vi[e]=n,Ki.forEach(function(i){return i(ye)})},get:function(){return vi[e]}})});Object.defineProperty(ye,"familyPrefix",{enumerable:!0,set:function(t){vi.cssPrefix=t,Ki.forEach(function(n){return n(ye)})},get:function(){return vi.cssPrefix}});An.FontAwesomeConfig=ye;var Ki=[];function Ap(e){return Ki.push(e),function(){Ki.splice(Ki.indexOf(e),1)}}var dn=Os,Ht={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function kp(e){if(!(!e||!cn)){var t=ze.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=ze.head.childNodes,i=null,d=n.length-1;d>-1;d--){var u=n[d],h=(u.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(h)>-1&&(i=u)}return ze.head.insertBefore(t,i),e}}var xp="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function ar(){for(var e=12,t="";e-- >0;)t+=xp[Math.random()*62|0];return t}function xi(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Aa(e){return e.classList?xi(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function Mu(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Ep(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(Mu(e[n]),'" ')},"").trim()}function xo(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function ka(e){return e.size!==Ht.size||e.x!==Ht.x||e.y!==Ht.y||e.rotate!==Ht.rotate||e.flipX||e.flipY}function Rp(e){var t=e.transform,n=e.containerWidth,i=e.iconWidth,d={transform:"translate(".concat(n/2," 256)")},u="translate(".concat(t.x*32,", ").concat(t.y*32,") "),h="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),g="rotate(".concat(t.rotate," 0 0)"),s={transform:"".concat(u," ").concat(h," ").concat(g)},p={transform:"translate(".concat(i/2*-1," -256)")};return{outer:d,inner:s,path:p}}function Lp(e){var t=e.transform,n=e.width,i=n===void 0?Os:n,d=e.height,u=d===void 0?Os:d,h=e.startCentered,g=h===void 0?!1:h,s="";return g&&Au?s+="translate(".concat(t.x/dn-i/2,"em, ").concat(t.y/dn-u/2,"em) "):g?s+="translate(calc(-50% + ".concat(t.x/dn,"em), calc(-50% + ").concat(t.y/dn,"em)) "):s+="translate(".concat(t.x/dn,"em, ").concat(t.y/dn,"em) "),s+="scale(".concat(t.size/dn*(t.flipX?-1:1),", ").concat(t.size/dn*(t.flipY?-1:1),") "),s+="rotate(".concat(t.rotate,"deg) "),s}var Tp=`: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 Ou(){var e=ku,t=xu,n=ye.cssPrefix,i=ye.replacementClass,d=Tp;if(n!==e||i!==t){var u=new RegExp("\\.".concat(e,"\\-"),"g"),h=new RegExp("\\--".concat(e,"\\-"),"g"),g=new RegExp("\\.".concat(t),"g");d=d.replace(u,".".concat(n,"-")).replace(h,"--".concat(n,"-")).replace(g,".".concat(i))}return d}var Il=!1;function cs(){ye.autoAddCss&&!Il&&(kp(Ou()),Il=!0)}var Mp={mixout:function(){return{dom:{css:Ou,insertCss:cs}}},hooks:function(){return{beforeDOMElementCreation:function(){cs()},beforeI2svg:function(){cs()}}}},an=An||{};an[sn]||(an[sn]={});an[sn].styles||(an[sn].styles={});an[sn].hooks||(an[sn].hooks={});an[sn].shims||(an[sn].shims=[]);var Ft=an[sn],Iu=[],Op=function e(){ze.removeEventListener("DOMContentLoaded",e),lo=1,Iu.map(function(t){return t()})},lo=!1;cn&&(lo=(ze.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(ze.readyState),lo||ze.addEventListener("DOMContentLoaded",Op));function Ip(e){cn&&(lo?setTimeout(e,0):Iu.push(e))}function Cr(e){var t=e.tag,n=e.attributes,i=n===void 0?{}:n,d=e.children,u=d===void 0?[]:d;return typeof e=="string"?Mu(e):"<".concat(t," ").concat(Ep(i),">").concat(u.map(Cr).join(""),"</").concat(t,">")}function Fl(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Fp=function(t,n){return function(i,d,u,h){return t.call(n,i,d,u,h)}},us=function(t,n,i,d){var u=Object.keys(t),h=u.length,g=d!==void 0?Fp(n,d):n,s,p,o;for(i===void 0?(s=1,o=t[u[0]]):(s=0,o=i);s<h;s++)p=u[s],o=g(o,t[p],p,t);return o};function Np(e){for(var t=[],n=0,i=e.length;n<i;){var d=e.charCodeAt(n++);if(d>=55296&&d<=56319&&n<i){var u=e.charCodeAt(n++);(u&64512)==56320?t.push(((d&1023)<<10)+(u&1023)+65536):(t.push(d),n--)}else t.push(d)}return t}function Fs(e){var t=Np(e);return t.length===1?t[0].toString(16):null}function Pp(e,t){var n=e.length,i=e.charCodeAt(t),d;return i>=55296&&i<=56319&&n>t+1&&(d=e.charCodeAt(t+1),d>=56320&&d<=57343)?(i-55296)*1024+d-56320+65536:i}function Nl(e){return Object.keys(e).reduce(function(t,n){var i=e[n],d=!!i.icon;return d?t[i.iconName]=i.icon:t[n]=i,t},{})}function Ns(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=n.skipHooks,d=i===void 0?!1:i,u=Nl(t);typeof Ft.hooks.addPack=="function"&&!d?Ft.hooks.addPack(e,Nl(t)):Ft.styles[e]=pe(pe({},Ft.styles[e]||{}),u),e==="fas"&&Ns("fa",t)}var Pr,Dr,Br,li=Ft.styles,Dp=Ft.shims,Bp=(Pr={},qe(Pr,Ue,Object.values(or[Ue])),qe(Pr,Ze,Object.values(or[Ze])),Pr),xa=null,Fu={},Nu={},Pu={},Du={},Bu={},Wp=(Dr={},qe(Dr,Ue,Object.keys(ir[Ue])),qe(Dr,Ze,Object.keys(ir[Ze])),Dr);function Hp(e){return~$p.indexOf(e)}function Up(e,t){var n=t.split("-"),i=n[0],d=n.slice(1).join("-");return i===e&&d!==""&&!Hp(d)?d:null}var Wu=function(){var t=function(u){return us(li,function(h,g,s){return h[s]=us(g,u,{}),h},{})};Fu=t(function(d,u,h){if(u[3]&&(d[u[3]]=h),u[2]){var g=u[2].filter(function(s){return typeof s=="number"});g.forEach(function(s){d[s.toString(16)]=h})}return d}),Nu=t(function(d,u,h){if(d[h]=h,u[2]){var g=u[2].filter(function(s){return typeof s=="string"});g.forEach(function(s){d[s]=h})}return d}),Bu=t(function(d,u,h){var g=u[2];return d[h]=h,g.forEach(function(s){d[s]=h}),d});var n="far"in li||ye.autoFetchSvg,i=us(Dp,function(d,u){var h=u[0],g=u[1],s=u[2];return g==="far"&&!n&&(g="fas"),typeof h=="string"&&(d.names[h]={prefix:g,iconName:s}),typeof h=="number"&&(d.unicodes[h.toString(16)]={prefix:g,iconName:s}),d},{names:{},unicodes:{}});Pu=i.names,Du=i.unicodes,xa=Eo(ye.styleDefault,{family:ye.familyDefault})};Ap(function(e){xa=Eo(e.styleDefault,{family:ye.familyDefault})});Wu();function Ea(e,t){return(Fu[e]||{})[t]}function zp(e,t){return(Nu[e]||{})[t]}function zn(e,t){return(Bu[e]||{})[t]}function Hu(e){return Pu[e]||{prefix:null,iconName:null}}function Vp(e){var t=Du[e],n=Ea("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function kn(){return xa}var Ra=function(){return{prefix:null,iconName:null,rest:[]}};function Eo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,i=n===void 0?Ue:n,d=ir[i][e],u=rr[i][e]||rr[i][d],h=e in Ft.styles?e:null;return u||h||null}var Pl=(Br={},qe(Br,Ue,Object.keys(or[Ue])),qe(Br,Ze,Object.keys(or[Ze])),Br);function Ro(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.skipLookups,d=i===void 0?!1:i,u=(t={},qe(t,Ue,"".concat(ye.cssPrefix,"-").concat(Ue)),qe(t,Ze,"".concat(ye.cssPrefix,"-").concat(Ze)),t),h=null,g=Ue;(e.includes(u[Ue])||e.some(function(p){return Pl[Ue].includes(p)}))&&(g=Ue),(e.includes(u[Ze])||e.some(function(p){return Pl[Ze].includes(p)}))&&(g=Ze);var s=e.reduce(function(p,o){var r=Up(ye.cssPrefix,o);if(li[o]?(o=Bp[g].includes(o)?gp[g][o]:o,h=o,p.prefix=o):Wp[g].indexOf(o)>-1?(h=o,p.prefix=Eo(o,{family:g})):r?p.iconName=r:o!==ye.replacementClass&&o!==u[Ue]&&o!==u[Ze]&&p.rest.push(o),!d&&p.prefix&&p.iconName){var a=h==="fa"?Hu(p.iconName):{},c=zn(p.prefix,p.iconName);a.prefix&&(h=null),p.iconName=a.iconName||c||p.iconName,p.prefix=a.prefix||p.prefix,p.prefix==="far"&&!li.far&&li.fas&&!ye.autoFetchSvg&&(p.prefix="fas")}return p},Ra());return(e.includes("fa-brands")||e.includes("fab"))&&(s.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(s.prefix="fad"),!s.prefix&&g===Ze&&(li.fass||ye.autoFetchSvg)&&(s.prefix="fass",s.iconName=zn(s.prefix,s.iconName)||s.iconName),(s.prefix==="fa"||h==="fa")&&(s.prefix=kn()||"fas"),s}var jp=function(){function e(){ip(this,e),this.definitions={}}return rp(e,[{key:"add",value:function(){for(var n=this,i=arguments.length,d=new Array(i),u=0;u<i;u++)d[u]=arguments[u];var h=d.reduce(this._pullDefinitions,{});Object.keys(h).forEach(function(g){n.definitions[g]=pe(pe({},n.definitions[g]||{}),h[g]),Ns(g,h[g]);var s=or[Ue][g];s&&Ns(s,h[g]),Wu()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(n,i){var d=i.prefix&&i.iconName&&i.icon?{0:i}:i;return Object.keys(d).map(function(u){var h=d[u],g=h.prefix,s=h.iconName,p=h.icon,o=p[2];n[g]||(n[g]={}),o.length>0&&o.forEach(function(r){typeof r=="string"&&(n[g][r]=p)}),n[g][s]=p}),n}}]),e}(),Dl=[],ci={},hi={},Gp=Object.keys(hi);function Kp(e,t){var n=t.mixoutsTo;return Dl=e,ci={},Object.keys(hi).forEach(function(i){Gp.indexOf(i)===-1&&delete hi[i]}),Dl.forEach(function(i){var d=i.mixout?i.mixout():{};if(Object.keys(d).forEach(function(h){typeof d[h]=="function"&&(n[h]=d[h]),ao(d[h])==="object"&&Object.keys(d[h]).forEach(function(g){n[h]||(n[h]={}),n[h][g]=d[h][g]})}),i.hooks){var u=i.hooks();Object.keys(u).forEach(function(h){ci[h]||(ci[h]=[]),ci[h].push(u[h])})}i.provides&&i.provides(hi)}),n}function Ps(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),d=2;d<n;d++)i[d-2]=arguments[d];var u=ci[e]||[];return u.forEach(function(h){t=h.apply(null,[t].concat(i))}),t}function Zn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var d=ci[e]||[];d.forEach(function(u){u.apply(null,n)})}function ln(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return hi[e]?hi[e].apply(null,t):void 0}function Ds(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,n=e.prefix||kn();if(t)return t=zn(n,t)||t,Fl(Uu.definitions,n,t)||Fl(Ft.styles,n,t)}var Uu=new jp,Yp=function(){ye.autoReplaceSvg=!1,ye.observeMutations=!1,Zn("noAuto")},Xp={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return cn?(Zn("beforeI2svg",t),ln("pseudoElements2svg",t),ln("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;ye.autoReplaceSvg===!1&&(ye.autoReplaceSvg=!0),ye.observeMutations=!0,Ip(function(){Jp({autoReplaceSvgRoot:n}),Zn("watch",t)})}},Zp={icon:function(t){if(t===null)return null;if(ao(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:zn(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],i=Eo(t[0]);return{prefix:i,iconName:zn(i,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(ye.cssPrefix,"-"))>-1||t.match(mp))){var d=Ro(t.split(" "),{skipLookups:!0});return{prefix:d.prefix||kn(),iconName:zn(d.prefix,d.iconName)||d.iconName}}if(typeof t=="string"){var u=kn();return{prefix:u,iconName:zn(u,t)||t}}}},Ct={noAuto:Yp,config:ye,dom:Xp,parse:Zp,library:Uu,findIconDefinition:Ds,toHtml:Cr},Jp=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,i=n===void 0?ze:n;(Object.keys(Ft.styles).length>0||ye.autoFetchSvg)&&cn&&ye.autoReplaceSvg&&Ct.dom.i2svg({node:i})};function Lo(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(i){return Cr(i)})}}),Object.defineProperty(e,"node",{get:function(){if(cn){var i=ze.createElement("div");return i.innerHTML=e.html,i.children}}}),e}function Qp(e){var t=e.children,n=e.main,i=e.mask,d=e.attributes,u=e.styles,h=e.transform;if(ka(h)&&n.found&&!i.found){var g=n.width,s=n.height,p={x:g/s/2,y:.5};d.style=xo(pe(pe({},u),{},{"transform-origin":"".concat(p.x+h.x/16,"em ").concat(p.y+h.y/16,"em")}))}return[{tag:"svg",attributes:d,children:t}]}function qp(e){var t=e.prefix,n=e.iconName,i=e.children,d=e.attributes,u=e.symbol,h=u===!0?"".concat(t,"-").concat(ye.cssPrefix,"-").concat(n):u;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:pe(pe({},d),{},{id:h}),children:i}]}]}function La(e){var t=e.icons,n=t.main,i=t.mask,d=e.prefix,u=e.iconName,h=e.transform,g=e.symbol,s=e.title,p=e.maskId,o=e.titleId,r=e.extra,a=e.watchable,c=a===void 0?!1:a,l=i.found?i:n,f=l.width,m=l.height,v=d==="fak",y=[ye.replacementClass,u?"".concat(ye.cssPrefix,"-").concat(u):""].filter(function(x){return r.classes.indexOf(x)===-1}).filter(function(x){return x!==""||!!x}).concat(r.classes).join(" "),k={children:[],attributes:pe(pe({},r.attributes),{},{"data-prefix":d,"data-icon":u,class:y,role:r.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(f," ").concat(m)})},S=v&&!~r.classes.indexOf("fa-fw")?{width:"".concat(f/m*16*.0625,"em")}:{};c&&(k.attributes[Xn]=""),s&&(k.children.push({tag:"title",attributes:{id:k.attributes["aria-labelledby"]||"title-".concat(o||ar())},children:[s]}),delete k.attributes.title);var _=pe(pe({},k),{},{prefix:d,iconName:u,main:n,mask:i,maskId:p,transform:h,symbol:g,styles:pe(pe({},S),r.styles)}),$=i.found&&n.found?ln("generateAbstractMask",_)||{children:[],attributes:{}}:ln("generateAbstractIcon",_)||{children:[],attributes:{}},R=$.children,T=$.attributes;return _.children=R,_.attributes=T,g?qp(_):Qp(_)}function Bl(e){var t=e.content,n=e.width,i=e.height,d=e.transform,u=e.title,h=e.extra,g=e.watchable,s=g===void 0?!1:g,p=pe(pe(pe({},h.attributes),u?{title:u}:{}),{},{class:h.classes.join(" ")});s&&(p[Xn]="");var o=pe({},h.styles);ka(d)&&(o.transform=Lp({transform:d,startCentered:!0,width:n,height:i}),o["-webkit-transform"]=o.transform);var r=xo(o);r.length>0&&(p.style=r);var a=[];return a.push({tag:"span",attributes:p,children:[t]}),u&&a.push({tag:"span",attributes:{class:"sr-only"},children:[u]}),a}function eg(e){var t=e.content,n=e.title,i=e.extra,d=pe(pe(pe({},i.attributes),n?{title:n}:{}),{},{class:i.classes.join(" ")}),u=xo(i.styles);u.length>0&&(d.style=u);var h=[];return h.push({tag:"span",attributes:d,children:[t]}),n&&h.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),h}var hs=Ft.styles;function Bs(e){var t=e[0],n=e[1],i=e.slice(4),d=wa(i,1),u=d[0],h=null;return Array.isArray(u)?h={tag:"g",attributes:{class:"".concat(ye.cssPrefix,"-").concat(Un.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ye.cssPrefix,"-").concat(Un.SECONDARY),fill:"currentColor",d:u[0]}},{tag:"path",attributes:{class:"".concat(ye.cssPrefix,"-").concat(Un.PRIMARY),fill:"currentColor",d:u[1]}}]}:h={tag:"path",attributes:{fill:"currentColor",d:u}},{found:!0,width:t,height:n,icon:h}}var tg={found:!1,width:512,height:512};function ng(e,t){!Eu&&!ye.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Ws(e,t){var n=t;return t==="fa"&&ye.styleDefault!==null&&(t=kn()),new Promise(function(i,d){if(ln("missingIconAbstract"),n==="fa"){var u=Hu(e)||{};e=u.iconName||e,t=u.prefix||t}if(e&&t&&hs[t]&&hs[t][e]){var h=hs[t][e];return i(Bs(h))}ng(e,t),i(pe(pe({},tg),{},{icon:ye.showMissingIcons&&e?ln("missingIconAbstract")||{}:{}}))})}var Wl=function(){},Hs=ye.measurePerformance&&Tr&&Tr.mark&&Tr.measure?Tr:{mark:Wl,measure:Wl},Ui='FA "6.5.1"',ig=function(t){return Hs.mark("".concat(Ui," ").concat(t," begins")),function(){return zu(t)}},zu=function(t){Hs.mark("".concat(Ui," ").concat(t," ends")),Hs.measure("".concat(Ui," ").concat(t),"".concat(Ui," ").concat(t," begins"),"".concat(Ui," ").concat(t," ends"))},Ta={begin:ig,end:zu},qr=function(){};function Hl(e){var t=e.getAttribute?e.getAttribute(Xn):null;return typeof t=="string"}function rg(e){var t=e.getAttribute?e.getAttribute(Ca):null,n=e.getAttribute?e.getAttribute(Sa):null;return t&&n}function og(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(ye.replacementClass)}function sg(){if(ye.autoReplaceSvg===!0)return eo.replace;var e=eo[ye.autoReplaceSvg];return e||eo.replace}function ag(e){return ze.createElementNS("http://www.w3.org/2000/svg",e)}function lg(e){return ze.createElement(e)}function Vu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,i=n===void 0?e.tag==="svg"?ag:lg:n;if(typeof e=="string")return ze.createTextNode(e);var d=i(e.tag);Object.keys(e.attributes||[]).forEach(function(h){d.setAttribute(h,e.attributes[h])});var u=e.children||[];return u.forEach(function(h){d.appendChild(Vu(h,{ceFn:i}))}),d}function cg(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var eo={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(d){n.parentNode.insertBefore(Vu(d),n)}),n.getAttribute(Xn)===null&&ye.keepOriginalSource){var i=ze.createComment(cg(n));n.parentNode.replaceChild(i,n)}else n.remove()},nest:function(t){var n=t[0],i=t[1];if(~Aa(n).indexOf(ye.replacementClass))return eo.replace(t);var d=new RegExp("".concat(ye.cssPrefix,"-.*"));if(delete i[0].attributes.id,i[0].attributes.class){var u=i[0].attributes.class.split(" ").reduce(function(g,s){return s===ye.replacementClass||s.match(d)?g.toSvg.push(s):g.toNode.push(s),g},{toNode:[],toSvg:[]});i[0].attributes.class=u.toSvg.join(" "),u.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",u.toNode.join(" "))}var h=i.map(function(g){return Cr(g)}).join(`
761
- `);n.setAttribute(Xn,""),n.innerHTML=h}};function Ul(e){e()}function ju(e,t){var n=typeof t=="function"?t:qr;if(e.length===0)n();else{var i=Ul;ye.mutateApproach===dp&&(i=An.requestAnimationFrame||Ul),i(function(){var d=sg(),u=Ta.begin("mutate");e.map(d),u(),n()})}}var Ma=!1;function Gu(){Ma=!0}function Us(){Ma=!1}var co=null;function zl(e){if(Ml&&ye.observeMutations){var t=e.treeCallback,n=t===void 0?qr:t,i=e.nodeCallback,d=i===void 0?qr:i,u=e.pseudoElementsCallback,h=u===void 0?qr:u,g=e.observeMutationsRoot,s=g===void 0?ze:g;co=new Ml(function(p){if(!Ma){var o=kn();xi(p).forEach(function(r){if(r.type==="childList"&&r.addedNodes.length>0&&!Hl(r.addedNodes[0])&&(ye.searchPseudoElements&&h(r.target),n(r.target)),r.type==="attributes"&&r.target.parentNode&&ye.searchPseudoElements&&h(r.target.parentNode),r.type==="attributes"&&Hl(r.target)&&~wp.indexOf(r.attributeName))if(r.attributeName==="class"&&rg(r.target)){var a=Ro(Aa(r.target)),c=a.prefix,l=a.iconName;r.target.setAttribute(Ca,c||o),l&&r.target.setAttribute(Sa,l)}else og(r.target)&&d(r.target)})}}),cn&&co.observe(s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function ug(){co&&co.disconnect()}function hg(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(i,d){var u=d.split(":"),h=u[0],g=u.slice(1);return h&&g.length>0&&(i[h]=g.join(":").trim()),i},{})),n}function fg(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),i=e.innerText!==void 0?e.innerText.trim():"",d=Ro(Aa(e));return d.prefix||(d.prefix=kn()),t&&n&&(d.prefix=t,d.iconName=n),d.iconName&&d.prefix||(d.prefix&&i.length>0&&(d.iconName=zp(d.prefix,e.innerText)||Ea(d.prefix,Fs(e.innerText))),!d.iconName&&ye.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(d.iconName=e.firstChild.data)),d}function dg(e){var t=xi(e.attributes).reduce(function(d,u){return d.name!=="class"&&d.name!=="style"&&(d[u.name]=u.value),d},{}),n=e.getAttribute("title"),i=e.getAttribute("data-fa-title-id");return ye.autoA11y&&(n?t["aria-labelledby"]="".concat(ye.replacementClass,"-title-").concat(i||ar()):(t["aria-hidden"]="true",t.focusable="false")),t}function pg(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Ht,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Vl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=fg(e),i=n.iconName,d=n.prefix,u=n.rest,h=dg(e),g=Ps("parseNodeAttributes",{},e),s=t.styleParser?hg(e):[];return pe({iconName:i,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:d,transform:Ht,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:u,styles:s,attributes:h}},g)}var gg=Ft.styles;function Ku(e){var t=ye.autoReplaceSvg==="nest"?Vl(e,{styleParser:!1}):Vl(e);return~t.extra.classes.indexOf(Ru)?ln("generateLayersText",e,t):ln("generateSvgReplacementMutation",e,t)}var xn=new Set;_a.map(function(e){xn.add("fa-".concat(e))});Object.keys(ir[Ue]).map(xn.add.bind(xn));Object.keys(ir[Ze]).map(xn.add.bind(xn));xn=wr(xn);function jl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!cn)return Promise.resolve();var n=ze.documentElement.classList,i=function(r){return n.add("".concat(Ol,"-").concat(r))},d=function(r){return n.remove("".concat(Ol,"-").concat(r))},u=ye.autoFetchSvg?xn:_a.map(function(o){return"fa-".concat(o)}).concat(Object.keys(gg));u.includes("fa")||u.push("fa");var h=[".".concat(Ru,":not([").concat(Xn,"])")].concat(u.map(function(o){return".".concat(o,":not([").concat(Xn,"])")})).join(", ");if(h.length===0)return Promise.resolve();var g=[];try{g=xi(e.querySelectorAll(h))}catch{}if(g.length>0)i("pending"),d("complete");else return Promise.resolve();var s=Ta.begin("onTree"),p=g.reduce(function(o,r){try{var a=Ku(r);a&&o.push(a)}catch(c){Eu||c.name==="MissingIcon"&&console.error(c)}return o},[]);return new Promise(function(o,r){Promise.all(p).then(function(a){ju(a,function(){i("active"),i("complete"),d("pending"),typeof t=="function"&&t(),s(),o()})}).catch(function(a){s(),r(a)})})}function mg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Ku(e).then(function(n){n&&ju([n],t)})}function vg(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=(t||{}).icon?t:Ds(t||{}),d=n.mask;return d&&(d=(d||{}).icon?d:Ds(d||{})),e(i,pe(pe({},n),{},{mask:d}))}}var yg=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.transform,d=i===void 0?Ht:i,u=n.symbol,h=u===void 0?!1:u,g=n.mask,s=g===void 0?null:g,p=n.maskId,o=p===void 0?null:p,r=n.title,a=r===void 0?null:r,c=n.titleId,l=c===void 0?null:c,f=n.classes,m=f===void 0?[]:f,v=n.attributes,y=v===void 0?{}:v,k=n.styles,S=k===void 0?{}:k;if(t){var _=t.prefix,$=t.iconName,R=t.icon;return Lo(pe({type:"icon"},t),function(){return Zn("beforeDOMElementCreation",{iconDefinition:t,params:n}),ye.autoA11y&&(a?y["aria-labelledby"]="".concat(ye.replacementClass,"-title-").concat(l||ar()):(y["aria-hidden"]="true",y.focusable="false")),La({icons:{main:Bs(R),mask:s?Bs(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:_,iconName:$,transform:pe(pe({},Ht),d),symbol:h,title:a,maskId:o,titleId:l,extra:{attributes:y,styles:S,classes:m}})})}},bg={mixout:function(){return{icon:vg(yg)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=jl,n.nodeCallback=mg,n}}},provides:function(t){t.i2svg=function(n){var i=n.node,d=i===void 0?ze:i,u=n.callback,h=u===void 0?function(){}:u;return jl(d,h)},t.generateSvgReplacementMutation=function(n,i){var d=i.iconName,u=i.title,h=i.titleId,g=i.prefix,s=i.transform,p=i.symbol,o=i.mask,r=i.maskId,a=i.extra;return new Promise(function(c,l){Promise.all([Ws(d,g),o.iconName?Ws(o.iconName,o.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(f){var m=wa(f,2),v=m[0],y=m[1];c([n,La({icons:{main:v,mask:y},prefix:g,iconName:d,transform:s,symbol:p,maskId:r,title:u,titleId:h,extra:a,watchable:!0})])}).catch(l)})},t.generateAbstractIcon=function(n){var i=n.children,d=n.attributes,u=n.main,h=n.transform,g=n.styles,s=xo(g);s.length>0&&(d.style=s);var p;return ka(h)&&(p=ln("generateAbstractTransformGrouping",{main:u,transform:h,containerWidth:u.width,iconWidth:u.width})),i.push(p||u.icon),{children:i,attributes:d}}}},wg={mixout:function(){return{layer:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=i.classes,u=d===void 0?[]:d;return Lo({type:"layer"},function(){Zn("beforeDOMElementCreation",{assembler:n,params:i});var h=[];return n(function(g){Array.isArray(g)?g.map(function(s){h=h.concat(s.abstract)}):h=h.concat(g.abstract)}),[{tag:"span",attributes:{class:["".concat(ye.cssPrefix,"-layers")].concat(wr(u)).join(" ")},children:h}]})}}}},$g={mixout:function(){return{counter:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=i.title,u=d===void 0?null:d,h=i.classes,g=h===void 0?[]:h,s=i.attributes,p=s===void 0?{}:s,o=i.styles,r=o===void 0?{}:o;return Lo({type:"counter",content:n},function(){return Zn("beforeDOMElementCreation",{content:n,params:i}),eg({content:n.toString(),title:u,extra:{attributes:p,styles:r,classes:["".concat(ye.cssPrefix,"-layers-counter")].concat(wr(g))}})})}}}},Cg={mixout:function(){return{text:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=i.transform,u=d===void 0?Ht:d,h=i.title,g=h===void 0?null:h,s=i.classes,p=s===void 0?[]:s,o=i.attributes,r=o===void 0?{}:o,a=i.styles,c=a===void 0?{}:a;return Lo({type:"text",content:n},function(){return Zn("beforeDOMElementCreation",{content:n,params:i}),Bl({content:n,transform:pe(pe({},Ht),u),title:g,extra:{attributes:r,styles:c,classes:["".concat(ye.cssPrefix,"-layers-text")].concat(wr(p))}})})}}},provides:function(t){t.generateLayersText=function(n,i){var d=i.title,u=i.transform,h=i.extra,g=null,s=null;if(Au){var p=parseInt(getComputedStyle(n).fontSize,10),o=n.getBoundingClientRect();g=o.width/p,s=o.height/p}return ye.autoA11y&&!d&&(h.attributes["aria-hidden"]="true"),Promise.resolve([n,Bl({content:n.innerHTML,width:g,height:s,transform:u,title:d,extra:h,watchable:!0})])}}},Sg=new RegExp('"',"ug"),Gl=[1105920,1112319];function _g(e){var t=e.replace(Sg,""),n=Pp(t,0),i=n>=Gl[0]&&n<=Gl[1],d=t.length===2?t[0]===t[1]:!1;return{value:Fs(d?t[0]:t),isSecondary:i||d}}function Kl(e,t){var n="".concat(fp).concat(t.replace(":","-"));return new Promise(function(i,d){if(e.getAttribute(n)!==null)return i();var u=xi(e.children),h=u.filter(function(R){return R.getAttribute(Is)===t})[0],g=An.getComputedStyle(e,t),s=g.getPropertyValue("font-family").match(vp),p=g.getPropertyValue("font-weight"),o=g.getPropertyValue("content");if(h&&!s)return e.removeChild(h),i();if(s&&o!=="none"&&o!==""){var r=g.getPropertyValue("content"),a=~["Sharp"].indexOf(s[2])?Ze:Ue,c=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(s[2])?rr[a][s[2].toLowerCase()]:yp[a][p],l=_g(r),f=l.value,m=l.isSecondary,v=s[0].startsWith("FontAwesome"),y=Ea(c,f),k=y;if(v){var S=Vp(f);S.iconName&&S.prefix&&(y=S.iconName,c=S.prefix)}if(y&&!m&&(!h||h.getAttribute(Ca)!==c||h.getAttribute(Sa)!==k)){e.setAttribute(n,k),h&&e.removeChild(h);var _=pg(),$=_.extra;$.attributes[Is]=t,Ws(y,c).then(function(R){var T=La(pe(pe({},_),{},{icons:{main:R,mask:Ra()},prefix:c,iconName:k,extra:$,watchable:!0})),x=ze.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(x,e.firstChild):e.appendChild(x),x.outerHTML=T.map(function(M){return Cr(M)}).join(`
762
- `),e.removeAttribute(n),i()}).catch(d)}else i()}else i()})}function Ag(e){return Promise.all([Kl(e,"::before"),Kl(e,"::after")])}function kg(e){return e.parentNode!==document.head&&!~pp.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Is)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Yl(e){if(cn)return new Promise(function(t,n){var i=xi(e.querySelectorAll("*")).filter(kg).map(Ag),d=Ta.begin("searchPseudoElements");Gu(),Promise.all(i).then(function(){d(),Us(),t()}).catch(function(){d(),Us(),n()})})}var xg={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=Yl,n}}},provides:function(t){t.pseudoElements2svg=function(n){var i=n.node,d=i===void 0?ze:i;ye.searchPseudoElements&&Yl(d)}}},Xl=!1,Eg={mixout:function(){return{dom:{unwatch:function(){Gu(),Xl=!0}}}},hooks:function(){return{bootstrap:function(){zl(Ps("mutationObserverCallbacks",{}))},noAuto:function(){ug()},watch:function(n){var i=n.observeMutationsRoot;Xl?Us():zl(Ps("mutationObserverCallbacks",{observeMutationsRoot:i}))}}}},Zl=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(i,d){var u=d.toLowerCase().split("-"),h=u[0],g=u.slice(1).join("-");if(h&&g==="h")return i.flipX=!0,i;if(h&&g==="v")return i.flipY=!0,i;if(g=parseFloat(g),isNaN(g))return i;switch(h){case"grow":i.size=i.size+g;break;case"shrink":i.size=i.size-g;break;case"left":i.x=i.x-g;break;case"right":i.x=i.x+g;break;case"up":i.y=i.y-g;break;case"down":i.y=i.y+g;break;case"rotate":i.rotate=i.rotate+g;break}return i},n)},Rg={mixout:function(){return{parse:{transform:function(n){return Zl(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,i){var d=i.getAttribute("data-fa-transform");return d&&(n.transform=Zl(d)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var i=n.main,d=n.transform,u=n.containerWidth,h=n.iconWidth,g={transform:"translate(".concat(u/2," 256)")},s="translate(".concat(d.x*32,", ").concat(d.y*32,") "),p="scale(".concat(d.size/16*(d.flipX?-1:1),", ").concat(d.size/16*(d.flipY?-1:1),") "),o="rotate(".concat(d.rotate," 0 0)"),r={transform:"".concat(s," ").concat(p," ").concat(o)},a={transform:"translate(".concat(h/2*-1," -256)")},c={outer:g,inner:r,path:a};return{tag:"g",attributes:pe({},c.outer),children:[{tag:"g",attributes:pe({},c.inner),children:[{tag:i.icon.tag,children:i.icon.children,attributes:pe(pe({},i.icon.attributes),c.path)}]}]}}}},fs={x:0,y:0,width:"100%",height:"100%"};function Jl(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 Lg(e){return e.tag==="g"?e.children:[e]}var Tg={hooks:function(){return{parseNodeAttributes:function(n,i){var d=i.getAttribute("data-fa-mask"),u=d?Ro(d.split(" ").map(function(h){return h.trim()})):Ra();return u.prefix||(u.prefix=kn()),n.mask=u,n.maskId=i.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var i=n.children,d=n.attributes,u=n.main,h=n.mask,g=n.maskId,s=n.transform,p=u.width,o=u.icon,r=h.width,a=h.icon,c=Rp({transform:s,containerWidth:r,iconWidth:p}),l={tag:"rect",attributes:pe(pe({},fs),{},{fill:"white"})},f=o.children?{children:o.children.map(Jl)}:{},m={tag:"g",attributes:pe({},c.inner),children:[Jl(pe({tag:o.tag,attributes:pe(pe({},o.attributes),c.path)},f))]},v={tag:"g",attributes:pe({},c.outer),children:[m]},y="mask-".concat(g||ar()),k="clip-".concat(g||ar()),S={tag:"mask",attributes:pe(pe({},fs),{},{id:y,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[l,v]},_={tag:"defs",children:[{tag:"clipPath",attributes:{id:k},children:Lg(a)},S]};return i.push(_,{tag:"rect",attributes:pe({fill:"currentColor","clip-path":"url(#".concat(k,")"),mask:"url(#".concat(y,")")},fs)}),{children:i,attributes:d}}}},Mg={provides:function(t){var n=!1;An.matchMedia&&(n=An.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var i=[],d={fill:"currentColor"},u={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};i.push({tag:"path",attributes:pe(pe({},d),{},{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 h=pe(pe({},u),{},{attributeName:"opacity"}),g={tag:"circle",attributes:pe(pe({},d),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||g.children.push({tag:"animate",attributes:pe(pe({},u),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:pe(pe({},h),{},{values:"1;0;1;1;0;1;"})}),i.push(g),i.push({tag:"path",attributes:pe(pe({},d),{},{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:pe(pe({},h),{},{values:"1;0;0;0;0;1;"})}]}),n||i.push({tag:"path",attributes:pe(pe({},d),{},{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:pe(pe({},h),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:i}}}},Og={hooks:function(){return{parseNodeAttributes:function(n,i){var d=i.getAttribute("data-fa-symbol"),u=d===null?!1:d===""?!0:d;return n.symbol=u,n}}}},Ig=[Mp,bg,wg,$g,Cg,xg,Eg,Rg,Tg,Mg,Og];Kp(Ig,{mixoutsTo:Ct});Ct.noAuto;Ct.config;var Fg=Ct.library;Ct.dom;var zs=Ct.parse;Ct.findIconDefinition;Ct.toHtml;var Ng=Ct.icon;Ct.layer;Ct.text;Ct.counter;var Pg={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"]},Dg={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"]},Bg=Dg,Wg={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"]},Hg={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"]},Ug=Hg,zg={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"]},Vg=zg,jg={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"]},Gg={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"]},Kg=Gg,Yg={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"]},Xg={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"]},Zg={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"]},Jg={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"]};function To(e,t){const n=Object.create(null),i=e.split(",");for(let d=0;d<i.length;d++)n[i[d]]=!0;return t?d=>!!n[d.toLowerCase()]:d=>!!n[d]}const De={},fi=[],zt=()=>{},Qg=()=>!1,Sr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Oa=e=>e.startsWith("onUpdate:"),Ve=Object.assign,Ia=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},qg=Object.prototype.hasOwnProperty,Ie=(e,t)=>qg.call(e,t),ge=Array.isArray,di=e=>Ei(e)==="[object Map]",ti=e=>Ei(e)==="[object Set]",Ql=e=>Ei(e)==="[object Date]",em=e=>Ei(e)==="[object RegExp]",Se=e=>typeof e=="function",je=e=>typeof e=="string",En=e=>typeof e=="symbol",Be=e=>e!==null&&typeof e=="object",Fa=e=>(Be(e)||Se(e))&&Se(e.then)&&Se(e.catch),Yu=Object.prototype.toString,Ei=e=>Yu.call(e),tm=e=>Ei(e).slice(8,-1),Xu=e=>Ei(e)==="[object Object]",Na=e=>je(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Yi=To(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Mo=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},nm=/-(\w)/g,vt=Mo(e=>e.replace(nm,(t,n)=>n?n.toUpperCase():"")),im=/\B([A-Z])/g,_t=Mo(e=>e.replace(im,"-$1").toLowerCase()),Ri=Mo(e=>e.charAt(0).toUpperCase()+e.slice(1)),Xi=Mo(e=>e?`on${Ri(e)}`:""),Rn=(e,t)=>!Object.is(e,t),pi=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},uo=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ho=e=>{const t=parseFloat(e);return isNaN(t)?e:t},fo=e=>{const t=je(e)?Number(e):NaN;return isNaN(t)?e:t};let ql;const Vs=()=>ql||(ql=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),rm="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console",om=To(rm);function _r(e){if(ge(e)){const t={};for(let n=0;n<e.length;n++){const i=e[n],d=je(i)?cm(i):_r(i);if(d)for(const u in d)t[u]=d[u]}return t}else if(je(e)||Be(e))return e}const sm=/;(?![^(]*\))/g,am=/:([^]+)/,lm=/\/\*[^]*?\*\//g;function cm(e){const t={};return e.replace(lm,"").split(sm).forEach(n=>{if(n){const i=n.split(am);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function Ar(e){let t="";if(je(e))t=e;else if(ge(e))for(let n=0;n<e.length;n++){const i=Ar(e[n]);i&&(t+=i+" ")}else if(Be(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function um(e){if(!e)return null;let{class:t,style:n}=e;return t&&!je(t)&&(e.class=Ar(t)),n&&(e.style=_r(n)),e}const hm="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",fm=To(hm);function Zu(e){return!!e||e===""}function dm(e,t){if(e.length!==t.length)return!1;let n=!0;for(let i=0;n&&i<e.length;i++)n=Ln(e[i],t[i]);return n}function Ln(e,t){if(e===t)return!0;let n=Ql(e),i=Ql(t);if(n||i)return n&&i?e.getTime()===t.getTime():!1;if(n=En(e),i=En(t),n||i)return e===t;if(n=ge(e),i=ge(t),n||i)return n&&i?dm(e,t):!1;if(n=Be(e),i=Be(t),n||i){if(!n||!i)return!1;const d=Object.keys(e).length,u=Object.keys(t).length;if(d!==u)return!1;for(const h in e){const g=e.hasOwnProperty(h),s=t.hasOwnProperty(h);if(g&&!s||!g&&s||!Ln(e[h],t[h]))return!1}}return String(e)===String(t)}function Oo(e,t){return e.findIndex(n=>Ln(n,t))}const Ae=e=>je(e)?e:e==null?"":ge(e)||Be(e)&&(e.toString===Yu||!Se(e.toString))?JSON.stringify(e,Ju,2):String(e),Ju=(e,t)=>t&&t.__v_isRef?Ju(e,t.value):di(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,d],u)=>(n[ds(i,u)+" =>"]=d,n),{})}:ti(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ds(n))}:En(t)?ds(t):Be(t)&&!ge(t)&&!Xu(t)?String(t):t,ds=(e,t="")=>{var n;return En(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let bt;class Pa{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=bt,!t&&bt&&(this.index=(bt.scopes||(bt.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=bt;try{return bt=this,t()}finally{bt=n}}}on(){bt=this}off(){bt=this.parent}stop(t){if(this._active){let n,i;for(n=0,i=this.effects.length;n<i;n++)this.effects[n].stop();for(n=0,i=this.cleanups.length;n<i;n++)this.cleanups[n]();if(this.scopes)for(n=0,i=this.scopes.length;n<i;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const d=this.parent.scopes.pop();d&&d!==this&&(this.parent.scopes[this.index]=d,d.index=this.index)}this.parent=void 0,this._active=!1}}}function Qu(e){return new Pa(e)}function qu(e,t=bt){t&&t.active&&t.effects.push(e)}function Da(){return bt}function eh(e){bt&&bt.cleanups.push(e)}const Ba=e=>{const t=new Set(e);return t.w=0,t.n=0,t},th=e=>(e.w&Tn)>0,nh=e=>(e.n&Tn)>0,pm=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Tn},gm=e=>{const{deps:t}=e;if(t.length){let n=0;for(let i=0;i<t.length;i++){const d=t[i];th(d)&&!nh(d)?d.delete(e):t[n++]=d,d.w&=~Tn,d.n&=~Tn}t.length=n}},po=new WeakMap;let zi=0,Tn=1;const js=30;let Mt;const jn=Symbol(""),Gs=Symbol("");class yi{constructor(t,n=null,i){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,qu(this,i)}run(){if(!this.active)return this.fn();let t=Mt,n=Sn;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Mt,Mt=this,Sn=!0,Tn=1<<++zi,zi<=js?pm(this):ec(this),this.fn()}finally{zi<=js&&gm(this),Tn=1<<--zi,Mt=this.parent,Sn=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Mt===this?this.deferStop=!0:this.active&&(ec(this),this.onStop&&this.onStop(),this.active=!1)}}function ec(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}function mm(e,t){e.effect instanceof yi&&(e=e.effect.fn);const n=new yi(e);t&&(Ve(n,t),t.scope&&qu(n,t.scope)),(!t||!t.lazy)&&n.run();const i=n.run.bind(n);return i.effect=n,i}function vm(e){e.effect.stop()}let Sn=!0;const ih=[];function Li(){ih.push(Sn),Sn=!1}function Ti(){const e=ih.pop();Sn=e===void 0?!0:e}function yt(e,t,n){if(Sn&&Mt){let i=po.get(e);i||po.set(e,i=new Map);let d=i.get(n);d||i.set(n,d=Ba()),rh(d)}}function rh(e,t){let n=!1;zi<=js?nh(e)||(e.n|=Tn,n=!th(e)):n=!e.has(Mt),n&&(e.add(Mt),Mt.deps.push(e))}function tn(e,t,n,i,d,u){const h=po.get(e);if(!h)return;let g=[];if(t==="clear")g=[...h.values()];else if(n==="length"&&ge(e)){const s=Number(i);h.forEach((p,o)=>{(o==="length"||!En(o)&&o>=s)&&g.push(p)})}else switch(n!==void 0&&g.push(h.get(n)),t){case"add":ge(e)?Na(n)&&g.push(h.get("length")):(g.push(h.get(jn)),di(e)&&g.push(h.get(Gs)));break;case"delete":ge(e)||(g.push(h.get(jn)),di(e)&&g.push(h.get(Gs)));break;case"set":di(e)&&g.push(h.get(jn));break}if(g.length===1)g[0]&&Ks(g[0]);else{const s=[];for(const p of g)p&&s.push(...p);Ks(Ba(s))}}function Ks(e,t){const n=ge(e)?e:[...e];for(const i of n)i.computed&&tc(i);for(const i of n)i.computed||tc(i)}function tc(e,t){(e!==Mt||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function ym(e,t){var n;return(n=po.get(e))==null?void 0:n.get(t)}const bm=To("__proto__,__v_isRef,__isVue"),oh=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(En)),nc=wm();function wm(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const i=Me(this);for(let u=0,h=this.length;u<h;u++)yt(i,"get",u+"");const d=i[t](...n);return d===-1||d===!1?i[t](...n.map(Me)):d}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Li();const i=Me(this)[t].apply(this,n);return Ti(),i}}),e}function $m(e){const t=Me(this);return yt(t,"has",e),t.hasOwnProperty(e)}class sh{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,i){const d=this._isReadonly,u=this._shallow;if(n==="__v_isReactive")return!d;if(n==="__v_isReadonly")return d;if(n==="__v_isShallow")return u;if(n==="__v_raw")return i===(d?u?fh:hh:u?uh:ch).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;const h=ge(t);if(!d){if(h&&Ie(nc,n))return Reflect.get(nc,n,i);if(n==="hasOwnProperty")return $m}const g=Reflect.get(t,n,i);return(En(n)?oh.has(n):bm(n))||(d||yt(t,"get",n),u)?g:rt(g)?h&&Na(n)?g:g.value:Be(g)?d?No(g):Mi(g):g}}class ah extends sh{constructor(t=!1){super(!1,t)}set(t,n,i,d){let u=t[n];if(!this._shallow){const s=Jn(u);if(!lr(i)&&!Jn(i)&&(u=Me(u),i=Me(i)),!ge(t)&&rt(u)&&!rt(i))return s?!1:(u.value=i,!0)}const h=ge(t)&&Na(n)?Number(n)<t.length:Ie(t,n),g=Reflect.set(t,n,i,d);return t===Me(d)&&(h?Rn(i,u)&&tn(t,"set",n,i):tn(t,"add",n,i)),g}deleteProperty(t,n){const i=Ie(t,n);t[n];const d=Reflect.deleteProperty(t,n);return d&&i&&tn(t,"delete",n,void 0),d}has(t,n){const i=Reflect.has(t,n);return(!En(n)||!oh.has(n))&&yt(t,"has",n),i}ownKeys(t){return yt(t,"iterate",ge(t)?"length":jn),Reflect.ownKeys(t)}}class lh extends sh{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Cm=new ah,Sm=new lh,_m=new ah(!0),Am=new lh(!0),Wa=e=>e,Io=e=>Reflect.getPrototypeOf(e);function Wr(e,t,n=!1,i=!1){e=e.__v_raw;const d=Me(e),u=Me(t);n||(Rn(t,u)&&yt(d,"get",t),yt(d,"get",u));const{has:h}=Io(d),g=i?Wa:n?za:cr;if(h.call(d,t))return g(e.get(t));if(h.call(d,u))return g(e.get(u));e!==d&&e.get(t)}function Hr(e,t=!1){const n=this.__v_raw,i=Me(n),d=Me(e);return t||(Rn(e,d)&&yt(i,"has",e),yt(i,"has",d)),e===d?n.has(e):n.has(e)||n.has(d)}function Ur(e,t=!1){return e=e.__v_raw,!t&&yt(Me(e),"iterate",jn),Reflect.get(e,"size",e)}function ic(e){e=Me(e);const t=Me(this);return Io(t).has.call(t,e)||(t.add(e),tn(t,"add",e,e)),this}function rc(e,t){t=Me(t);const n=Me(this),{has:i,get:d}=Io(n);let u=i.call(n,e);u||(e=Me(e),u=i.call(n,e));const h=d.call(n,e);return n.set(e,t),u?Rn(t,h)&&tn(n,"set",e,t):tn(n,"add",e,t),this}function oc(e){const t=Me(this),{has:n,get:i}=Io(t);let d=n.call(t,e);d||(e=Me(e),d=n.call(t,e)),i&&i.call(t,e);const u=t.delete(e);return d&&tn(t,"delete",e,void 0),u}function sc(){const e=Me(this),t=e.size!==0,n=e.clear();return t&&tn(e,"clear",void 0,void 0),n}function zr(e,t){return function(i,d){const u=this,h=u.__v_raw,g=Me(h),s=t?Wa:e?za:cr;return!e&&yt(g,"iterate",jn),h.forEach((p,o)=>i.call(d,s(p),s(o),u))}}function Vr(e,t,n){return function(...i){const d=this.__v_raw,u=Me(d),h=di(u),g=e==="entries"||e===Symbol.iterator&&h,s=e==="keys"&&h,p=d[e](...i),o=n?Wa:t?za:cr;return!t&&yt(u,"iterate",s?Gs:jn),{next(){const{value:r,done:a}=p.next();return a?{value:r,done:a}:{value:g?[o(r[0]),o(r[1])]:o(r),done:a}},[Symbol.iterator](){return this}}}}function pn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function km(){const e={get(u){return Wr(this,u)},get size(){return Ur(this)},has:Hr,add:ic,set:rc,delete:oc,clear:sc,forEach:zr(!1,!1)},t={get(u){return Wr(this,u,!1,!0)},get size(){return Ur(this)},has:Hr,add:ic,set:rc,delete:oc,clear:sc,forEach:zr(!1,!0)},n={get(u){return Wr(this,u,!0)},get size(){return Ur(this,!0)},has(u){return Hr.call(this,u,!0)},add:pn("add"),set:pn("set"),delete:pn("delete"),clear:pn("clear"),forEach:zr(!0,!1)},i={get(u){return Wr(this,u,!0,!0)},get size(){return Ur(this,!0)},has(u){return Hr.call(this,u,!0)},add:pn("add"),set:pn("set"),delete:pn("delete"),clear:pn("clear"),forEach:zr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(u=>{e[u]=Vr(u,!1,!1),n[u]=Vr(u,!0,!1),t[u]=Vr(u,!1,!0),i[u]=Vr(u,!0,!0)}),[e,n,t,i]}const[xm,Em,Rm,Lm]=km();function Fo(e,t){const n=t?e?Lm:Rm:e?Em:xm;return(i,d,u)=>d==="__v_isReactive"?!e:d==="__v_isReadonly"?e:d==="__v_raw"?i:Reflect.get(Ie(n,d)&&d in i?n:i,d,u)}const Tm={get:Fo(!1,!1)},Mm={get:Fo(!1,!0)},Om={get:Fo(!0,!1)},Im={get:Fo(!0,!0)},ch=new WeakMap,uh=new WeakMap,hh=new WeakMap,fh=new WeakMap;function Fm(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Nm(e){return e.__v_skip||!Object.isExtensible(e)?0:Fm(tm(e))}function Mi(e){return Jn(e)?e:Po(e,!1,Cm,Tm,ch)}function Ha(e){return Po(e,!1,_m,Mm,uh)}function No(e){return Po(e,!0,Sm,Om,hh)}function Pm(e){return Po(e,!0,Am,Im,fh)}function Po(e,t,n,i,d){if(!Be(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const u=d.get(e);if(u)return u;const h=Nm(e);if(h===0)return e;const g=new Proxy(e,h===2?i:n);return d.set(e,g),g}function Gn(e){return Jn(e)?Gn(e.__v_raw):!!(e&&e.__v_isReactive)}function Jn(e){return!!(e&&e.__v_isReadonly)}function lr(e){return!!(e&&e.__v_isShallow)}function Ua(e){return Gn(e)||Jn(e)}function Me(e){const t=e&&e.__v_raw;return t?Me(t):e}function Do(e){return uo(e,"__v_skip",!0),e}const cr=e=>Be(e)?Mi(e):e,za=e=>Be(e)?No(e):e;function Va(e){Sn&&Mt&&(e=Me(e),rh(e.dep||(e.dep=Ba())))}function Bo(e,t){e=Me(e);const n=e.dep;n&&Ks(n)}function rt(e){return!!(e&&e.__v_isRef===!0)}function Ke(e){return ph(e,!1)}function dh(e){return ph(e,!0)}function ph(e,t){return rt(e)?e:new Dm(e,t)}class Dm{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Me(t),this._value=n?t:cr(t)}get value(){return Va(this),this._value}set value(t){const n=this.__v_isShallow||lr(t)||Jn(t);t=n?t:Me(t),Rn(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:cr(t),Bo(this))}}function Bm(e){Bo(e)}function nn(e){return rt(e)?e.value:e}function Wm(e){return Se(e)?e():nn(e)}const Hm={get:(e,t,n)=>nn(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const d=e[t];return rt(d)&&!rt(n)?(d.value=n,!0):Reflect.set(e,t,n,i)}};function ja(e){return Gn(e)?e:new Proxy(e,Hm)}class Um{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:i}=t(()=>Va(this),()=>Bo(this));this._get=n,this._set=i}get value(){return this._get()}set value(t){this._set(t)}}function Ga(e){return new Um(e)}function zm(e){const t=ge(e)?new Array(e.length):{};for(const n in e)t[n]=gh(e,n);return t}class Vm{constructor(t,n,i){this._object=t,this._key=n,this._defaultValue=i,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 ym(Me(this._object),this._key)}}class jm{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function ur(e,t,n){return rt(e)?e:Se(e)?new jm(e):Be(e)&&arguments.length>1?gh(e,t,n):Ke(e)}function gh(e,t,n){const i=e[t];return rt(i)?i:new Vm(e,t,n)}class Gm{constructor(t,n,i,d){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new yi(t,()=>{this._dirty||(this._dirty=!0,Bo(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!d,this.__v_isReadonly=i}get value(){const t=Me(this);return Va(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Km(e,t,n=!1){let i,d;const u=Se(e);return u?(i=e,d=zt):(i=e.get,d=e.set),new Gm(i,d,u||!d,n)}function Ym(e,...t){}function Xm(e,t){}function rn(e,t,n,i){let d;try{d=i?e(...i):e()}catch(u){ni(u,t,n)}return d}function $t(e,t,n,i){if(Se(e)){const u=rn(e,t,n,i);return u&&Fa(u)&&u.catch(h=>{ni(h,t,n)}),u}const d=[];for(let u=0;u<e.length;u++)d.push($t(e[u],t,n,i));return d}function ni(e,t,n,i=!0){const d=t?t.vnode:null;if(t){let u=t.parent;const h=t.proxy,g=n;for(;u;){const p=u.ec;if(p){for(let o=0;o<p.length;o++)if(p[o](e,h,g)===!1)return}u=u.parent}const s=t.appContext.config.errorHandler;if(s){rn(s,null,10,[e,h,g]);return}}Zm(e,n,d,i)}function Zm(e,t,n,i=!0){console.error(e)}let hr=!1,Ys=!1;const at=[];let Bt=0;const gi=[];let Jt=null,Wn=0;const mh=Promise.resolve();let Ka=null;function jt(e){const t=Ka||mh;return e?t.then(this?e.bind(this):e):t}function Jm(e){let t=Bt+1,n=at.length;for(;t<n;){const i=t+n>>>1,d=at[i],u=fr(d);u<e||u===e&&d.pre?t=i+1:n=i}return t}function Wo(e){(!at.length||!at.includes(e,hr&&e.allowRecurse?Bt+1:Bt))&&(e.id==null?at.push(e):at.splice(Jm(e.id),0,e),vh())}function vh(){!hr&&!Ys&&(Ys=!0,Ka=mh.then(yh))}function Qm(e){const t=at.indexOf(e);t>Bt&&at.splice(t,1)}function go(e){ge(e)?gi.push(...e):(!Jt||!Jt.includes(e,e.allowRecurse?Wn+1:Wn))&&gi.push(e),vh()}function ac(e,t,n=hr?Bt+1:0){for(;n<at.length;n++){const i=at[n];if(i&&i.pre){if(e&&i.id!==e.uid)continue;at.splice(n,1),n--,i()}}}function mo(e){if(gi.length){const t=[...new Set(gi)];if(gi.length=0,Jt){Jt.push(...t);return}for(Jt=t,Jt.sort((n,i)=>fr(n)-fr(i)),Wn=0;Wn<Jt.length;Wn++)Jt[Wn]();Jt=null,Wn=0}}const fr=e=>e.id==null?1/0:e.id,qm=(e,t)=>{const n=fr(e)-fr(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function yh(e){Ys=!1,hr=!0,at.sort(qm);try{for(Bt=0;Bt<at.length;Bt++){const t=at[Bt];t&&t.active!==!1&&rn(t,null,14)}}finally{Bt=0,at.length=0,mo(),hr=!1,Ka=null,(at.length||gi.length)&&yh()}}let si,jr=[];function bh(e,t){var n,i;si=e,si?(si.enabled=!0,jr.forEach(({event:d,args:u})=>si.emit(d,...u)),jr=[]):typeof window<"u"&&window.HTMLElement&&!((i=(n=window.navigator)==null?void 0:n.userAgent)!=null&&i.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(u=>{bh(u,t)}),setTimeout(()=>{si||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,jr=[])},3e3)):jr=[]}function ev(e,t,...n){if(e.isUnmounted)return;const i=e.vnode.props||De;let d=n;const u=t.startsWith("update:"),h=u&&t.slice(7);if(h&&h in i){const o=`${h==="modelValue"?"model":h}Modifiers`,{number:r,trim:a}=i[o]||De;a&&(d=n.map(c=>je(c)?c.trim():c)),r&&(d=n.map(ho))}let g,s=i[g=Xi(t)]||i[g=Xi(vt(t))];!s&&u&&(s=i[g=Xi(_t(t))]),s&&$t(s,e,6,d);const p=i[g+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[g])return;e.emitted[g]=!0,$t(p,e,6,d)}}function wh(e,t,n=!1){const i=t.emitsCache,d=i.get(e);if(d!==void 0)return d;const u=e.emits;let h={},g=!1;if(!Se(e)){const s=p=>{const o=wh(p,t,!0);o&&(g=!0,Ve(h,o))};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!u&&!g?(Be(e)&&i.set(e,null),null):(ge(u)?u.forEach(s=>h[s]=null):Ve(h,u),Be(e)&&i.set(e,h),h)}function Ho(e,t){return!e||!Sr(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ie(e,t[0].toLowerCase()+t.slice(1))||Ie(e,_t(t))||Ie(e,t))}let et=null,Uo=null;function dr(e){const t=et;return et=e,Uo=e&&e.type.__scopeId||null,t}function Ya(e){Uo=e}function Xa(){Uo=null}const tv=e=>kt;function kt(e,t=et,n){if(!t||e._n)return e;const i=(...d)=>{i._d&&ta(-1);const u=dr(t);let h;try{h=e(...d)}finally{dr(u),i._d&&ta(1)}return h};return i._n=!0,i._c=!0,i._d=!0,i}function to(e){const{type:t,vnode:n,proxy:i,withProxy:d,props:u,propsOptions:[h],slots:g,attrs:s,emit:p,render:o,renderCache:r,data:a,setupState:c,ctx:l,inheritAttrs:f}=e;let m,v;const y=dr(e);try{if(n.shapeFlag&4){const S=d||i,_=S;m=wt(o.call(_,S,r,u,c,a,l)),v=s}else{const S=t;m=wt(S.length>1?S(u,{attrs:s,slots:g,emit:p}):S(u,null)),v=t.props?s:iv(s)}}catch(S){qi.length=0,ni(S,e,1),m=fe(lt)}let k=m;if(v&&f!==!1){const S=Object.keys(v),{shapeFlag:_}=k;S.length&&_&7&&(h&&S.some(Oa)&&(v=rv(v,h)),k=Gt(k,v))}return n.dirs&&(k=Gt(k),k.dirs=k.dirs?k.dirs.concat(n.dirs):n.dirs),n.transition&&(k.transition=n.transition),m=k,dr(y),m}function nv(e){let t;for(let n=0;n<e.length;n++){const i=e[n];if(Mn(i)){if(i.type!==lt||i.children==="v-if"){if(t)return;t=i}}else return}return t}const iv=e=>{let t;for(const n in e)(n==="class"||n==="style"||Sr(n))&&((t||(t={}))[n]=e[n]);return t},rv=(e,t)=>{const n={};for(const i in e)(!Oa(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function ov(e,t,n){const{props:i,children:d,component:u}=e,{props:h,children:g,patchFlag:s}=t,p=u.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&s>=0){if(s&1024)return!0;if(s&16)return i?lc(i,h,p):!!h;if(s&8){const o=t.dynamicProps;for(let r=0;r<o.length;r++){const a=o[r];if(h[a]!==i[a]&&!Ho(p,a))return!0}}}else return(d||g)&&(!g||!g.$stable)?!0:i===h?!1:i?h?lc(i,h,p):!0:!!h;return!1}function lc(e,t,n){const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let d=0;d<i.length;d++){const u=i[d];if(t[u]!==e[u]&&!Ho(n,u))return!0}return!1}function Za({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const Ja="components",sv="directives";function he(e,t){return Qa(Ja,e,!0,t)||e}const $h=Symbol.for("v-ndc");function av(e){return je(e)?Qa(Ja,e,!1)||e:e||$h}function lv(e){return Qa(sv,e)}function Qa(e,t,n=!0,i=!1){const d=et||Je;if(d){const u=d.type;if(e===Ja){const g=ra(u,!1);if(g&&(g===t||g===vt(t)||g===Ri(vt(t))))return u}const h=cc(d[e]||u[e],t)||cc(d.appContext[e],t);return!h&&i?u:h}}function cc(e,t){return e&&(e[t]||e[vt(t)]||e[Ri(vt(t))])}const Ch=e=>e.__isSuspense,cv={name:"Suspense",__isSuspense:!0,process(e,t,n,i,d,u,h,g,s,p){e==null?hv(t,n,i,d,u,h,g,s,p):fv(e,t,n,i,d,h,g,s,p)},hydrate:dv,create:qa,normalize:pv},uv=cv;function pr(e,t){const n=e.props&&e.props[t];Se(n)&&n()}function hv(e,t,n,i,d,u,h,g,s){const{p,o:{createElement:o}}=s,r=o("div"),a=e.suspense=qa(e,d,i,t,r,n,u,h,g,s);p(null,a.pendingBranch=e.ssContent,r,null,i,a,u,h),a.deps>0?(pr(e,"onPending"),pr(e,"onFallback"),p(null,e.ssFallback,t,n,i,null,u,h),mi(a,e.ssFallback)):a.resolve(!1,!0)}function fv(e,t,n,i,d,u,h,g,{p:s,um:p,o:{createElement:o}}){const r=t.suspense=e.suspense;r.vnode=t,t.el=e.el;const a=t.ssContent,c=t.ssFallback,{activeBranch:l,pendingBranch:f,isInFallback:m,isHydrating:v}=r;if(f)r.pendingBranch=a,It(a,f)?(s(f,a,r.hiddenContainer,null,d,r,u,h,g),r.deps<=0?r.resolve():m&&(s(l,c,n,i,d,null,u,h,g),mi(r,c))):(r.pendingId++,v?(r.isHydrating=!1,r.activeBranch=f):p(f,d,r),r.deps=0,r.effects.length=0,r.hiddenContainer=o("div"),m?(s(null,a,r.hiddenContainer,null,d,r,u,h,g),r.deps<=0?r.resolve():(s(l,c,n,i,d,null,u,h,g),mi(r,c))):l&&It(a,l)?(s(l,a,n,i,d,r,u,h,g),r.resolve(!0)):(s(null,a,r.hiddenContainer,null,d,r,u,h,g),r.deps<=0&&r.resolve()));else if(l&&It(a,l))s(l,a,n,i,d,r,u,h,g),mi(r,a);else if(pr(t,"onPending"),r.pendingBranch=a,r.pendingId++,s(null,a,r.hiddenContainer,null,d,r,u,h,g),r.deps<=0)r.resolve();else{const{timeout:y,pendingId:k}=r;y>0?setTimeout(()=>{r.pendingId===k&&r.fallback(c)},y):y===0&&r.fallback(c)}}function qa(e,t,n,i,d,u,h,g,s,p,o=!1){const{p:r,m:a,um:c,n:l,o:{parentNode:f,remove:m}}=p;let v;const y=gv(e);y&&t!=null&&t.pendingBranch&&(v=t.pendingId,t.deps++);const k=e.props?fo(e.props.timeout):void 0,S={vnode:e,parent:t,parentComponent:n,isSVG:h,container:i,hiddenContainer:d,anchor:u,deps:0,pendingId:0,timeout:typeof k=="number"?k:-1,activeBranch:null,pendingBranch:null,isInFallback:!o,isHydrating:o,isUnmounted:!1,effects:[],resolve(_=!1,$=!1){const{vnode:R,activeBranch:T,pendingBranch:x,pendingId:M,effects:b,parentComponent:A,container:C}=S;let w=!1;if(S.isHydrating)S.isHydrating=!1;else if(!_){w=T&&x.transition&&x.transition.mode==="out-in",w&&(T.transition.afterLeave=()=>{M===S.pendingId&&(a(x,C,l(T),0),go(b))});let{anchor:O}=S;T&&(O=l(T),c(T,A,S,!0)),w||a(x,C,O,0)}mi(S,x),S.pendingBranch=null,S.isInFallback=!1;let E=S.parent,L=!1;for(;E;){if(E.pendingBranch){E.effects.push(...b),L=!0;break}E=E.parent}!L&&!w&&go(b),S.effects=[],y&&t&&t.pendingBranch&&v===t.pendingId&&(t.deps--,t.deps===0&&!$&&t.resolve()),pr(R,"onResolve")},fallback(_){if(!S.pendingBranch)return;const{vnode:$,activeBranch:R,parentComponent:T,container:x,isSVG:M}=S;pr($,"onFallback");const b=l(R),A=()=>{S.isInFallback&&(r(null,_,x,b,T,null,M,g,s),mi(S,_))},C=_.transition&&_.transition.mode==="out-in";C&&(R.transition.afterLeave=A),S.isInFallback=!0,c(R,T,null,!0),C||A()},move(_,$,R){S.activeBranch&&a(S.activeBranch,_,$,R),S.container=_},next(){return S.activeBranch&&l(S.activeBranch)},registerDep(_,$){const R=!!S.pendingBranch;R&&S.deps++;const T=_.vnode.el;_.asyncDep.catch(x=>{ni(x,_,0)}).then(x=>{if(_.isUnmounted||S.isUnmounted||S.pendingId!==_.suspenseId)return;_.asyncResolved=!0;const{vnode:M}=_;na(_,x,!1),T&&(M.el=T);const b=!T&&_.subTree.el;$(_,M,f(T||_.subTree.el),T?null:l(_.subTree),S,h,s),b&&m(b),Za(_,M.el),R&&--S.deps===0&&S.resolve()})},unmount(_,$){S.isUnmounted=!0,S.activeBranch&&c(S.activeBranch,n,_,$),S.pendingBranch&&c(S.pendingBranch,n,_,$)}};return S}function dv(e,t,n,i,d,u,h,g,s){const p=t.suspense=qa(t,i,n,e.parentNode,document.createElement("div"),null,d,u,h,g,!0),o=s(e,p.pendingBranch=t.ssContent,n,p,u,h);return p.deps===0&&p.resolve(!1,!0),o}function pv(e){const{shapeFlag:t,children:n}=e,i=t&32;e.ssContent=uc(i?n.default:n),e.ssFallback=i?uc(n.fallback):fe(lt)}function uc(e){let t;if(Se(e)){const n=ei&&e._c;n&&(e._d=!1,q()),e=e(),n&&(e._d=!0,t=mt,Qh())}return ge(e)&&(e=nv(e)),e=wt(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Sh(e,t){t&&t.pendingBranch?ge(e)?t.effects.push(...e):t.effects.push(e):go(e)}function mi(e,t){e.activeBranch=t;const{vnode:n,parentComponent:i}=e,d=n.el=t.el;i&&i.subTree===n&&(i.vnode.el=d,Za(i,d))}function gv(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}function _h(e,t){return kr(e,null,t)}function Ah(e,t){return kr(e,null,{flush:"post"})}function mv(e,t){return kr(e,null,{flush:"sync"})}const Gr={};function Ye(e,t,n){return kr(e,t,n)}function kr(e,t,{immediate:n,deep:i,flush:d,onTrack:u,onTrigger:h}=De){var g;const s=Da()===((g=Je)==null?void 0:g.scope)?Je:null;let p,o=!1,r=!1;if(rt(e)?(p=()=>e.value,o=lr(e)):Gn(e)?(p=()=>e,i=!0):ge(e)?(r=!0,o=e.some(S=>Gn(S)||lr(S)),p=()=>e.map(S=>{if(rt(S))return S.value;if(Gn(S))return Vn(S);if(Se(S))return rn(S,s,2)})):Se(e)?t?p=()=>rn(e,s,2):p=()=>{if(!(s&&s.isUnmounted))return a&&a(),$t(e,s,3,[c])}:p=zt,t&&i){const S=p;p=()=>Vn(S())}let a,c=S=>{a=y.onStop=()=>{rn(S,s,4),a=y.onStop=void 0}},l;if(wi)if(c=zt,t?n&&$t(t,s,3,[p(),r?[]:void 0,c]):p(),d==="sync"){const S=uf();l=S.__watcherHandles||(S.__watcherHandles=[])}else return zt;let f=r?new Array(e.length).fill(Gr):Gr;const m=()=>{if(y.active)if(t){const S=y.run();(i||o||(r?S.some((_,$)=>Rn(_,f[$])):Rn(S,f)))&&(a&&a(),$t(t,s,3,[S,f===Gr?void 0:r&&f[0]===Gr?[]:f,c]),f=S)}else y.run()};m.allowRecurse=!!t;let v;d==="sync"?v=m:d==="post"?v=()=>it(m,s&&s.suspense):(m.pre=!0,s&&(m.id=s.uid),v=()=>Wo(m));const y=new yi(p,v);t?n?m():f=y.run():d==="post"?it(y.run.bind(y),s&&s.suspense):y.run();const k=()=>{y.stop(),s&&s.scope&&Ia(s.scope.effects,y)};return l&&l.push(k),k}function vv(e,t,n){const i=this.proxy,d=je(e)?e.includes(".")?kh(i,e):()=>i[e]:e.bind(i,i);let u;Se(t)?u=t:(u=t.handler,n=t);const h=Je;On(this);const g=kr(d,u.bind(i),n);return h?On(h):_n(),g}function kh(e,t){const n=t.split(".");return()=>{let i=e;for(let d=0;d<n.length&&i;d++)i=i[n[d]];return i}}function Vn(e,t){if(!Be(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),rt(e))Vn(e.value,t);else if(ge(e))for(let n=0;n<e.length;n++)Vn(e[n],t);else if(ti(e)||di(e))e.forEach(n=>{Vn(n,t)});else if(Xu(e))for(const n in e)Vn(e[n],t);return e}function Ot(e,t){const n=et;if(n===null)return e;const i=Yo(n)||n.proxy,d=e.dirs||(e.dirs=[]);for(let u=0;u<t.length;u++){let[h,g,s,p=De]=t[u];h&&(Se(h)&&(h={mounted:h,updated:h}),h.deep&&Vn(g),d.push({dir:h,instance:i,value:g,oldValue:void 0,arg:s,modifiers:p}))}return e}function Dt(e,t,n,i){const d=e.dirs,u=t&&t.dirs;for(let h=0;h<d.length;h++){const g=d[h];u&&(g.oldValue=u[h].value);let s=g.dir[i];s&&(Li(),$t(s,n,8,[e.el,g,e,t]),Ti())}}const wn=Symbol("_leaveCb"),Kr=Symbol("_enterCb");function el(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return tt(()=>{e.isMounted=!0}),Oi(()=>{e.isUnmounting=!0}),e}const St=[Function,Array],tl={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:St,onEnter:St,onAfterEnter:St,onEnterCancelled:St,onBeforeLeave:St,onLeave:St,onAfterLeave:St,onLeaveCancelled:St,onBeforeAppear:St,onAppear:St,onAfterAppear:St,onAppearCancelled:St},yv={name:"BaseTransition",props:tl,setup(e,{slots:t}){const n=Lt(),i=el();let d;return()=>{const u=t.default&&zo(t.default(),!0);if(!u||!u.length)return;let h=u[0];if(u.length>1){for(const f of u)if(f.type!==lt){h=f;break}}const g=Me(e),{mode:s}=g;if(i.isLeaving)return ps(h);const p=hc(h);if(!p)return ps(h);const o=bi(p,g,i,n);Qn(p,o);const r=n.subTree,a=r&&hc(r);let c=!1;const{getTransitionKey:l}=p.type;if(l){const f=l();d===void 0?d=f:f!==d&&(d=f,c=!0)}if(a&&a.type!==lt&&(!It(p,a)||c)){const f=bi(a,g,i,n);if(Qn(a,f),s==="out-in")return i.isLeaving=!0,f.afterLeave=()=>{i.isLeaving=!1,n.update.active!==!1&&n.update()},ps(h);s==="in-out"&&p.type!==lt&&(f.delayLeave=(m,v,y)=>{const k=Eh(i,a);k[String(a.key)]=a,m[wn]=()=>{v(),m[wn]=void 0,delete o.delayedLeave},o.delayedLeave=y})}return h}}},xh=yv;function Eh(e,t){const{leavingVNodes:n}=e;let i=n.get(t.type);return i||(i=Object.create(null),n.set(t.type,i)),i}function bi(e,t,n,i){const{appear:d,mode:u,persisted:h=!1,onBeforeEnter:g,onEnter:s,onAfterEnter:p,onEnterCancelled:o,onBeforeLeave:r,onLeave:a,onAfterLeave:c,onLeaveCancelled:l,onBeforeAppear:f,onAppear:m,onAfterAppear:v,onAppearCancelled:y}=t,k=String(e.key),S=Eh(n,e),_=(T,x)=>{T&&$t(T,i,9,x)},$=(T,x)=>{const M=x[1];_(T,x),ge(T)?T.every(b=>b.length<=1)&&M():T.length<=1&&M()},R={mode:u,persisted:h,beforeEnter(T){let x=g;if(!n.isMounted)if(d)x=f||g;else return;T[wn]&&T[wn](!0);const M=S[k];M&&It(e,M)&&M.el[wn]&&M.el[wn](),_(x,[T])},enter(T){let x=s,M=p,b=o;if(!n.isMounted)if(d)x=m||s,M=v||p,b=y||o;else return;let A=!1;const C=T[Kr]=w=>{A||(A=!0,w?_(b,[T]):_(M,[T]),R.delayedLeave&&R.delayedLeave(),T[Kr]=void 0)};x?$(x,[T,C]):C()},leave(T,x){const M=String(e.key);if(T[Kr]&&T[Kr](!0),n.isUnmounting)return x();_(r,[T]);let b=!1;const A=T[wn]=C=>{b||(b=!0,x(),C?_(l,[T]):_(c,[T]),T[wn]=void 0,S[M]===e&&delete S[M])};S[M]=e,a?$(a,[T,A]):A()},clone(T){return bi(T,t,n,i)}};return R}function ps(e){if(xr(e))return e=Gt(e),e.children=null,e}function hc(e){return xr(e)?e.children?e.children[0]:void 0:e}function Qn(e,t){e.shapeFlag&6&&e.component?Qn(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function zo(e,t=!1,n){let i=[],d=0;for(let u=0;u<e.length;u++){let h=e[u];const g=n==null?h.key:String(n)+String(h.key!=null?h.key:u);h.type===_e?(h.patchFlag&128&&d++,i=i.concat(zo(h.children,t,g))):(t||h.type!==lt)&&i.push(g!=null?Gt(h,{key:g}):h)}if(d>1)for(let u=0;u<i.length;u++)i[u].patchFlag=-2;return i}/*! #__NO_SIDE_EFFECTS__ */function $e(e,t){return Se(e)?Ve({name:e.name},t,{setup:e}):e}const Kn=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function bv(e){Se(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:i,delay:d=200,timeout:u,suspensible:h=!0,onError:g}=e;let s=null,p,o=0;const r=()=>(o++,s=null,a()),a=()=>{let c;return s||(c=s=t().catch(l=>{if(l=l instanceof Error?l:new Error(String(l)),g)return new Promise((f,m)=>{g(l,()=>f(r()),()=>m(l),o+1)});throw l}).then(l=>c!==s&&s?s:(l&&(l.__esModule||l[Symbol.toStringTag]==="Module")&&(l=l.default),p=l,l)))};return $e({name:"AsyncComponentWrapper",__asyncLoader:a,get __asyncResolved(){return p},setup(){const c=Je;if(p)return()=>gs(p,c);const l=y=>{s=null,ni(y,c,13,!i)};if(h&&c.suspense||wi)return a().then(y=>()=>gs(y,c)).catch(y=>(l(y),()=>i?fe(i,{error:y}):null));const f=Ke(!1),m=Ke(),v=Ke(!!d);return d&&setTimeout(()=>{v.value=!1},d),u!=null&&setTimeout(()=>{if(!f.value&&!m.value){const y=new Error(`Async component timed out after ${u}ms.`);l(y),m.value=y}},u),a().then(()=>{f.value=!0,c.parent&&xr(c.parent.vnode)&&Wo(c.parent.update)}).catch(y=>{l(y),m.value=y}),()=>{if(f.value&&p)return gs(p,c);if(m.value&&i)return fe(i,{error:m.value});if(n&&!v.value)return fe(n)}}})}function gs(e,t){const{ref:n,props:i,children:d,ce:u}=t.vnode,h=fe(e,i,d);return h.ref=n,h.ce=u,delete t.vnode.ce,h}const xr=e=>e.type.__isKeepAlive,wv={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Lt(),i=n.ctx;if(!i.renderer)return()=>{const y=t.default&&t.default();return y&&y.length===1?y[0]:y};const d=new Map,u=new Set;let h=null;const g=n.suspense,{renderer:{p:s,m:p,um:o,o:{createElement:r}}}=i,a=r("div");i.activate=(y,k,S,_,$)=>{const R=y.component;p(y,k,S,0,g),s(R.vnode,y,k,S,R,g,_,y.slotScopeIds,$),it(()=>{R.isDeactivated=!1,R.a&&pi(R.a);const T=y.props&&y.props.onVnodeMounted;T&&gt(T,R.parent,y)},g)},i.deactivate=y=>{const k=y.component;p(y,a,null,1,g),it(()=>{k.da&&pi(k.da);const S=y.props&&y.props.onVnodeUnmounted;S&&gt(S,k.parent,y),k.isDeactivated=!0},g)};function c(y){ms(y),o(y,n,g,!0)}function l(y){d.forEach((k,S)=>{const _=ra(k.type);_&&(!y||!y(_))&&f(S)})}function f(y){const k=d.get(y);!h||!It(k,h)?c(k):h&&ms(h),d.delete(y),u.delete(y)}Ye(()=>[e.include,e.exclude],([y,k])=>{y&&l(S=>Vi(y,S)),k&&l(S=>!Vi(k,S))},{flush:"post",deep:!0});let m=null;const v=()=>{m!=null&&d.set(m,vs(n.subTree))};return tt(v),jo(v),Oi(()=>{d.forEach(y=>{const{subTree:k,suspense:S}=n,_=vs(k);if(y.type===_.type&&y.key===_.key){ms(_);const $=_.component.da;$&&it($,S);return}c(y)})}),()=>{if(m=null,!t.default)return null;const y=t.default(),k=y[0];if(y.length>1)return h=null,y;if(!Mn(k)||!(k.shapeFlag&4)&&!(k.shapeFlag&128))return h=null,k;let S=vs(k);const _=S.type,$=ra(Kn(S)?S.type.__asyncResolved||{}:_),{include:R,exclude:T,max:x}=e;if(R&&(!$||!Vi(R,$))||T&&$&&Vi(T,$))return h=S,k;const M=S.key==null?_:S.key,b=d.get(M);return S.el&&(S=Gt(S),k.shapeFlag&128&&(k.ssContent=S)),m=M,b?(S.el=b.el,S.component=b.component,S.transition&&Qn(S,S.transition),S.shapeFlag|=512,u.delete(M),u.add(M)):(u.add(M),x&&u.size>parseInt(x,10)&&f(u.values().next().value)),S.shapeFlag|=256,h=S,Ch(k.type)?k:S}}},$v=wv;function Vi(e,t){return ge(e)?e.some(n=>Vi(n,t)):je(e)?e.split(",").includes(t):em(e)?e.test(t):!1}function Rh(e,t){Th(e,"a",t)}function Lh(e,t){Th(e,"da",t)}function Th(e,t,n=Je){const i=e.__wdc||(e.__wdc=()=>{let d=n;for(;d;){if(d.isDeactivated)return;d=d.parent}return e()});if(Vo(t,i,n),n){let d=n.parent;for(;d&&d.parent;)xr(d.parent.vnode)&&Cv(i,t,n,d),d=d.parent}}function Cv(e,t,n,i){const d=Vo(t,e,i,!0);Go(()=>{Ia(i[t],d)},n)}function ms(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function vs(e){return e.shapeFlag&128?e.ssContent:e}function Vo(e,t,n=Je,i=!1){if(n){const d=n[e]||(n[e]=[]),u=t.__weh||(t.__weh=(...h)=>{if(n.isUnmounted)return;Li(),On(n);const g=$t(t,n,e,h);return _n(),Ti(),g});return i?d.unshift(u):d.push(u),u}}const un=e=>(t,n=Je)=>(!wi||e==="sp")&&Vo(e,(...i)=>t(...i),n),Mh=un("bm"),tt=un("m"),Oh=un("bu"),jo=un("u"),Oi=un("bum"),Go=un("um"),Ih=un("sp"),Fh=un("rtg"),Nh=un("rtc");function Ph(e,t=Je){Vo("ec",e,t)}function ct(e,t,n,i){let d;const u=n&&n[i];if(ge(e)||je(e)){d=new Array(e.length);for(let h=0,g=e.length;h<g;h++)d[h]=t(e[h],h,void 0,u&&u[h])}else if(typeof e=="number"){d=new Array(e);for(let h=0;h<e;h++)d[h]=t(h+1,h,void 0,u&&u[h])}else if(Be(e))if(e[Symbol.iterator])d=Array.from(e,(h,g)=>t(h,g,void 0,u&&u[g]));else{const h=Object.keys(e);d=new Array(h.length);for(let g=0,s=h.length;g<s;g++){const p=h[g];d[g]=t(e[p],p,g,u&&u[g])}}else d=[];return n&&(n[i]=d),d}function Sv(e,t){for(let n=0;n<t.length;n++){const i=t[n];if(ge(i))for(let d=0;d<i.length;d++)e[i[d].name]=i[d].fn;else i&&(e[i.name]=i.key?(...d)=>{const u=i.fn(...d);return u&&(u.key=i.key),u}:i.fn)}return e}function _v(e,t,n={},i,d){if(et.isCE||et.parent&&Kn(et.parent)&&et.parent.isCE)return t!=="default"&&(n.name=t),fe("slot",n,i&&i());let u=e[t];u&&u._c&&(u._d=!1),q();const h=u&&Dh(u(n)),g=Te(_e,{key:n.key||h&&h.key||`_${t}`},h||(i?i():[]),h&&e._===1?64:-2);return!d&&g.scopeId&&(g.slotScopeIds=[g.scopeId+"-s"]),u&&u._c&&(u._d=!0),g}function Dh(e){return e.some(t=>Mn(t)?!(t.type===lt||t.type===_e&&!Dh(t.children)):!0)?e:null}function Av(e,t){const n={};for(const i in e)n[t&&/[A-Z]/.test(i)?`on:${i}`:Xi(i)]=e[i];return n}const Xs=e=>e?of(e)?Yo(e)||e.proxy:Xs(e.parent):null,Zi=Ve(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=>Xs(e.parent),$root:e=>Xs(e.root),$emit:e=>e.emit,$options:e=>nl(e),$forceUpdate:e=>e.f||(e.f=()=>Wo(e.update)),$nextTick:e=>e.n||(e.n=jt.bind(e.proxy)),$watch:e=>vv.bind(e)}),ys=(e,t)=>e!==De&&!e.__isScriptSetup&&Ie(e,t),Zs={get({_:e},t){const{ctx:n,setupState:i,data:d,props:u,accessCache:h,type:g,appContext:s}=e;let p;if(t[0]!=="$"){const c=h[t];if(c!==void 0)switch(c){case 1:return i[t];case 2:return d[t];case 4:return n[t];case 3:return u[t]}else{if(ys(i,t))return h[t]=1,i[t];if(d!==De&&Ie(d,t))return h[t]=2,d[t];if((p=e.propsOptions[0])&&Ie(p,t))return h[t]=3,u[t];if(n!==De&&Ie(n,t))return h[t]=4,n[t];Js&&(h[t]=0)}}const o=Zi[t];let r,a;if(o)return t==="$attrs"&&yt(e,"get",t),o(e);if((r=g.__cssModules)&&(r=r[t]))return r;if(n!==De&&Ie(n,t))return h[t]=4,n[t];if(a=s.config.globalProperties,Ie(a,t))return a[t]},set({_:e},t,n){const{data:i,setupState:d,ctx:u}=e;return ys(d,t)?(d[t]=n,!0):i!==De&&Ie(i,t)?(i[t]=n,!0):Ie(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(u[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:d,propsOptions:u}},h){let g;return!!n[h]||e!==De&&Ie(e,h)||ys(t,h)||(g=u[0])&&Ie(g,h)||Ie(i,h)||Ie(Zi,h)||Ie(d.config.globalProperties,h)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ie(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},kv=Ve({},Zs,{get(e,t){if(t!==Symbol.unscopables)return Zs.get(e,t,e)},has(e,t){return t[0]!=="_"&&!om(t)}});function xv(){return null}function Ev(){return null}function Rv(e){}function Lv(e){}function Tv(){return null}function Mv(){}function Ov(e,t){return null}function Iv(){return Bh().slots}function Fv(){return Bh().attrs}function Nv(e,t,n){const i=Lt();if(n&&n.local){const d=Ke(e[t]);return Ye(()=>e[t],u=>d.value=u),Ye(d,u=>{u!==e[t]&&i.emit(`update:${t}`,u)}),d}else return{__v_isRef:!0,get value(){return e[t]},set value(d){i.emit(`update:${t}`,d)}}}function Bh(){const e=Lt();return e.setupContext||(e.setupContext=lf(e))}function gr(e){return ge(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Pv(e,t){const n=gr(e);for(const i in t){if(i.startsWith("__skip"))continue;let d=n[i];d?ge(d)||Se(d)?d=n[i]={type:d,default:t[i]}:d.default=t[i]:d===null&&(d=n[i]={default:t[i]}),d&&t[`__skip_${i}`]&&(d.skipFactory=!0)}return n}function Dv(e,t){return!e||!t?e||t:ge(e)&&ge(t)?e.concat(t):Ve({},gr(e),gr(t))}function Bv(e,t){const n={};for(const i in e)t.includes(i)||Object.defineProperty(n,i,{enumerable:!0,get:()=>e[i]});return n}function Wv(e){const t=Lt();let n=e();return _n(),Fa(n)&&(n=n.catch(i=>{throw On(t),i})),[n,()=>On(t)]}let Js=!0;function Hv(e){const t=nl(e),n=e.proxy,i=e.ctx;Js=!1,t.beforeCreate&&fc(t.beforeCreate,e,"bc");const{data:d,computed:u,methods:h,watch:g,provide:s,inject:p,created:o,beforeMount:r,mounted:a,beforeUpdate:c,updated:l,activated:f,deactivated:m,beforeDestroy:v,beforeUnmount:y,destroyed:k,unmounted:S,render:_,renderTracked:$,renderTriggered:R,errorCaptured:T,serverPrefetch:x,expose:M,inheritAttrs:b,components:A,directives:C,filters:w}=t;if(p&&Uv(p,i,null),h)for(const O in h){const I=h[O];Se(I)&&(i[O]=I.bind(n))}if(d){const O=d.call(n,n);Be(O)&&(e.data=Mi(O))}if(Js=!0,u)for(const O in u){const I=u[O],F=Se(I)?I.bind(n,n):Se(I.get)?I.get.bind(n,n):zt,D=!Se(I)&&Se(I.set)?I.set.bind(n):zt,W=Ee({get:F,set:D});Object.defineProperty(i,O,{enumerable:!0,configurable:!0,get:()=>W.value,set:j=>W.value=j})}if(g)for(const O in g)Wh(g[O],i,n,O);if(s){const O=Se(s)?s.call(n):s;Reflect.ownKeys(O).forEach(I=>{Ji(I,O[I])})}o&&fc(o,e,"c");function L(O,I){ge(I)?I.forEach(F=>O(F.bind(n))):I&&O(I.bind(n))}if(L(Mh,r),L(tt,a),L(Oh,c),L(jo,l),L(Rh,f),L(Lh,m),L(Ph,T),L(Nh,$),L(Fh,R),L(Oi,y),L(Go,S),L(Ih,x),ge(M))if(M.length){const O=e.exposed||(e.exposed={});M.forEach(I=>{Object.defineProperty(O,I,{get:()=>n[I],set:F=>n[I]=F})})}else e.exposed||(e.exposed={});_&&e.render===zt&&(e.render=_),b!=null&&(e.inheritAttrs=b),A&&(e.components=A),C&&(e.directives=C)}function Uv(e,t,n=zt){ge(e)&&(e=Qs(e));for(const i in e){const d=e[i];let u;Be(d)?"default"in d?u=xt(d.from||i,d.default,!0):u=xt(d.from||i):u=xt(d),rt(u)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>u.value,set:h=>u.value=h}):t[i]=u}}function fc(e,t,n){$t(ge(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,n)}function Wh(e,t,n,i){const d=i.includes(".")?kh(n,i):()=>n[i];if(je(e)){const u=t[e];Se(u)&&Ye(d,u)}else if(Se(e))Ye(d,e.bind(n));else if(Be(e))if(ge(e))e.forEach(u=>Wh(u,t,n,i));else{const u=Se(e.handler)?e.handler.bind(n):t[e.handler];Se(u)&&Ye(d,u,e)}}function nl(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:d,optionsCache:u,config:{optionMergeStrategies:h}}=e.appContext,g=u.get(t);let s;return g?s=g:!d.length&&!n&&!i?s=t:(s={},d.length&&d.forEach(p=>vo(s,p,h,!0)),vo(s,t,h)),Be(t)&&u.set(t,s),s}function vo(e,t,n,i=!1){const{mixins:d,extends:u}=t;u&&vo(e,u,n,!0),d&&d.forEach(h=>vo(e,h,n,!0));for(const h in t)if(!(i&&h==="expose")){const g=zv[h]||n&&n[h];e[h]=g?g(e[h],t[h]):t[h]}return e}const zv={data:dc,props:pc,emits:pc,methods:ji,computed:ji,beforeCreate:ft,created:ft,beforeMount:ft,mounted:ft,beforeUpdate:ft,updated:ft,beforeDestroy:ft,beforeUnmount:ft,destroyed:ft,unmounted:ft,activated:ft,deactivated:ft,errorCaptured:ft,serverPrefetch:ft,components:ji,directives:ji,watch:jv,provide:dc,inject:Vv};function dc(e,t){return t?e?function(){return Ve(Se(e)?e.call(this,this):e,Se(t)?t.call(this,this):t)}:t:e}function Vv(e,t){return ji(Qs(e),Qs(t))}function Qs(e){if(ge(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ft(e,t){return e?[...new Set([].concat(e,t))]:t}function ji(e,t){return e?Ve(Object.create(null),e,t):t}function pc(e,t){return e?ge(e)&&ge(t)?[...new Set([...e,...t])]:Ve(Object.create(null),gr(e),gr(t??{})):t}function jv(e,t){if(!e)return t;if(!t)return e;const n=Ve(Object.create(null),e);for(const i in t)n[i]=ft(e[i],t[i]);return n}function Hh(){return{app:null,config:{isNativeTag:Qg,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Gv=0;function Kv(e,t){return function(i,d=null){Se(i)||(i=Ve({},i)),d!=null&&!Be(d)&&(d=null);const u=Hh(),h=new WeakSet;let g=!1;const s=u.app={_uid:Gv++,_component:i,_props:d,_container:null,_context:u,_instance:null,version:ff,get config(){return u.config},set config(p){},use(p,...o){return h.has(p)||(p&&Se(p.install)?(h.add(p),p.install(s,...o)):Se(p)&&(h.add(p),p(s,...o))),s},mixin(p){return u.mixins.includes(p)||u.mixins.push(p),s},component(p,o){return o?(u.components[p]=o,s):u.components[p]},directive(p,o){return o?(u.directives[p]=o,s):u.directives[p]},mount(p,o,r){if(!g){const a=fe(i,d);return a.appContext=u,o&&t?t(a,p):e(a,p,r),g=!0,s._container=p,p.__vue_app__=s,Yo(a.component)||a.component.proxy}},unmount(){g&&(e(null,s._container),delete s._container.__vue_app__)},provide(p,o){return u.provides[p]=o,s},runWithContext(p){mr=s;try{return p()}finally{mr=null}}};return s}}let mr=null;function Ji(e,t){if(Je){let n=Je.provides;const i=Je.parent&&Je.parent.provides;i===n&&(n=Je.provides=Object.create(i)),n[e]=t}}function xt(e,t,n=!1){const i=Je||et;if(i||mr){const d=i?i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:mr._context.provides;if(d&&e in d)return d[e];if(arguments.length>1)return n&&Se(t)?t.call(i&&i.proxy):t}}function Yv(){return!!(Je||et||mr)}function Xv(e,t,n,i=!1){const d={},u={};uo(u,Ko,1),e.propsDefaults=Object.create(null),Uh(e,t,d,u);for(const h in e.propsOptions[0])h in d||(d[h]=void 0);n?e.props=i?d:Ha(d):e.type.props?e.props=d:e.props=u,e.attrs=u}function Zv(e,t,n,i){const{props:d,attrs:u,vnode:{patchFlag:h}}=e,g=Me(d),[s]=e.propsOptions;let p=!1;if((i||h>0)&&!(h&16)){if(h&8){const o=e.vnode.dynamicProps;for(let r=0;r<o.length;r++){let a=o[r];if(Ho(e.emitsOptions,a))continue;const c=t[a];if(s)if(Ie(u,a))c!==u[a]&&(u[a]=c,p=!0);else{const l=vt(a);d[l]=qs(s,g,l,c,e,!1)}else c!==u[a]&&(u[a]=c,p=!0)}}}else{Uh(e,t,d,u)&&(p=!0);let o;for(const r in g)(!t||!Ie(t,r)&&((o=_t(r))===r||!Ie(t,o)))&&(s?n&&(n[r]!==void 0||n[o]!==void 0)&&(d[r]=qs(s,g,r,void 0,e,!0)):delete d[r]);if(u!==g)for(const r in u)(!t||!Ie(t,r))&&(delete u[r],p=!0)}p&&tn(e,"set","$attrs")}function Uh(e,t,n,i){const[d,u]=e.propsOptions;let h=!1,g;if(t)for(let s in t){if(Yi(s))continue;const p=t[s];let o;d&&Ie(d,o=vt(s))?!u||!u.includes(o)?n[o]=p:(g||(g={}))[o]=p:Ho(e.emitsOptions,s)||(!(s in i)||p!==i[s])&&(i[s]=p,h=!0)}if(u){const s=Me(n),p=g||De;for(let o=0;o<u.length;o++){const r=u[o];n[r]=qs(d,s,r,p[r],e,!Ie(p,r))}}return h}function qs(e,t,n,i,d,u){const h=e[n];if(h!=null){const g=Ie(h,"default");if(g&&i===void 0){const s=h.default;if(h.type!==Function&&!h.skipFactory&&Se(s)){const{propsDefaults:p}=d;n in p?i=p[n]:(On(d),i=p[n]=s.call(null,t),_n())}else i=s}h[0]&&(u&&!g?i=!1:h[1]&&(i===""||i===_t(n))&&(i=!0))}return i}function zh(e,t,n=!1){const i=t.propsCache,d=i.get(e);if(d)return d;const u=e.props,h={},g=[];let s=!1;if(!Se(e)){const o=r=>{s=!0;const[a,c]=zh(r,t,!0);Ve(h,a),c&&g.push(...c)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!u&&!s)return Be(e)&&i.set(e,fi),fi;if(ge(u))for(let o=0;o<u.length;o++){const r=vt(u[o]);gc(r)&&(h[r]=De)}else if(u)for(const o in u){const r=vt(o);if(gc(r)){const a=u[o],c=h[r]=ge(a)||Se(a)?{type:a}:Ve({},a);if(c){const l=yc(Boolean,c.type),f=yc(String,c.type);c[0]=l>-1,c[1]=f<0||l<f,(l>-1||Ie(c,"default"))&&g.push(r)}}}const p=[h,g];return Be(e)&&i.set(e,p),p}function gc(e){return e[0]!=="$"}function mc(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function vc(e,t){return mc(e)===mc(t)}function yc(e,t){return ge(t)?t.findIndex(n=>vc(n,e)):Se(t)&&vc(t,e)?0:-1}const Vh=e=>e[0]==="_"||e==="$stable",il=e=>ge(e)?e.map(wt):[wt(e)],Jv=(e,t,n)=>{if(t._n)return t;const i=kt((...d)=>il(t(...d)),n);return i._c=!1,i},jh=(e,t,n)=>{const i=e._ctx;for(const d in e){if(Vh(d))continue;const u=e[d];if(Se(u))t[d]=Jv(d,u,i);else if(u!=null){const h=il(u);t[d]=()=>h}}},Gh=(e,t)=>{const n=il(t);e.slots.default=()=>n},Qv=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Me(t),uo(t,"_",n)):jh(t,e.slots={})}else e.slots={},t&&Gh(e,t);uo(e.slots,Ko,1)},qv=(e,t,n)=>{const{vnode:i,slots:d}=e;let u=!0,h=De;if(i.shapeFlag&32){const g=t._;g?n&&g===1?u=!1:(Ve(d,t),!n&&g===1&&delete d._):(u=!t.$stable,jh(t,d)),h=t}else t&&(Gh(e,t),h={default:1});if(u)for(const g in d)!Vh(g)&&h[g]==null&&delete d[g]};function yo(e,t,n,i,d=!1){if(ge(e)){e.forEach((a,c)=>yo(a,t&&(ge(t)?t[c]:t),n,i,d));return}if(Kn(i)&&!d)return;const u=i.shapeFlag&4?Yo(i.component)||i.component.proxy:i.el,h=d?null:u,{i:g,r:s}=e,p=t&&t.r,o=g.refs===De?g.refs={}:g.refs,r=g.setupState;if(p!=null&&p!==s&&(je(p)?(o[p]=null,Ie(r,p)&&(r[p]=null)):rt(p)&&(p.value=null)),Se(s))rn(s,g,12,[h,o]);else{const a=je(s),c=rt(s);if(a||c){const l=()=>{if(e.f){const f=a?Ie(r,s)?r[s]:o[s]:s.value;d?ge(f)&&Ia(f,u):ge(f)?f.includes(u)||f.push(u):a?(o[s]=[u],Ie(r,s)&&(r[s]=o[s])):(s.value=[u],e.k&&(o[e.k]=s.value))}else a?(o[s]=h,Ie(r,s)&&(r[s]=h)):c&&(s.value=h,e.k&&(o[e.k]=h))};h?(l.id=-1,it(l,n)):l()}}}let gn=!1;const Yr=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",Xr=e=>e.nodeType===8;function ey(e){const{mt:t,p:n,o:{patchProp:i,createText:d,nextSibling:u,parentNode:h,remove:g,insert:s,createComment:p}}=e,o=(k,S)=>{if(!S.hasChildNodes()){n(null,k,S),mo(),S._vnode=k;return}gn=!1,r(S.firstChild,k,null,null,null),mo(),S._vnode=k,gn&&console.error("Hydration completed but contains mismatches.")},r=(k,S,_,$,R,T=!1)=>{const x=Xr(k)&&k.data==="[",M=()=>f(k,S,_,$,R,x),{type:b,ref:A,shapeFlag:C,patchFlag:w}=S;let E=k.nodeType;S.el=k,w===-2&&(T=!1,S.dynamicChildren=null);let L=null;switch(b){case qn:E!==3?S.children===""?(s(S.el=d(""),h(k),k),L=k):L=M():(k.data!==S.children&&(gn=!0,k.data=S.children),L=u(k));break;case lt:y(k)?(L=u(k),v(S.el=k.content.firstChild,k,_)):E!==8||x?L=M():L=u(k);break;case Yn:if(x&&(k=u(k),E=k.nodeType),E===1||E===3){L=k;const O=!S.children.length;for(let I=0;I<S.staticCount;I++)O&&(S.children+=L.nodeType===1?L.outerHTML:L.data),I===S.staticCount-1&&(S.anchor=L),L=u(L);return x?u(L):L}else M();break;case _e:x?L=l(k,S,_,$,R,T):L=M();break;default:if(C&1)(E!==1||S.type.toLowerCase()!==k.tagName.toLowerCase())&&!y(k)?L=M():L=a(k,S,_,$,R,T);else if(C&6){S.slotScopeIds=R;const O=h(k);if(x?L=m(k):Xr(k)&&k.data==="teleport start"?L=m(k,k.data,"teleport end"):L=u(k),t(S,O,null,_,$,Yr(O),T),Kn(S)){let I;x?(I=fe(_e),I.anchor=L?L.previousSibling:O.lastChild):I=k.nodeType===3?dt(""):fe("div"),I.el=k,S.component.subTree=I}}else C&64?E!==8?L=M():L=S.type.hydrate(k,S,_,$,R,T,e,c):C&128&&(L=S.type.hydrate(k,S,_,$,Yr(h(k)),R,T,e,r))}return A!=null&&yo(A,null,$,S),L},a=(k,S,_,$,R,T)=>{T=T||!!S.dynamicChildren;const{type:x,props:M,patchFlag:b,shapeFlag:A,dirs:C,transition:w}=S,E=x==="input"||x==="option";if(E||b!==-1){C&&Dt(S,null,_,"created");let L=!1;if(y(k)){L=Zh($,w)&&_&&_.vnode.props&&_.vnode.props.appear;const I=k.content.firstChild;L&&w.beforeEnter(I),v(I,k,_),S.el=k=I}if(M)if(E||!T||b&48)for(const I in M)(E&&(I.endsWith("value")||I==="indeterminate")||Sr(I)&&!Yi(I)||I[0]===".")&&i(k,I,null,M[I],!1,void 0,_);else M.onClick&&i(k,"onClick",null,M.onClick,!1,void 0,_);let O;if((O=M&&M.onVnodeBeforeMount)&&gt(O,_,S),C&&Dt(S,null,_,"beforeMount"),((O=M&&M.onVnodeMounted)||C||L)&&Sh(()=>{O&&gt(O,_,S),L&&w.enter(k),C&&Dt(S,null,_,"mounted")},$),A&16&&!(M&&(M.innerHTML||M.textContent))){let I=c(k.firstChild,S,k,_,$,R,T);for(;I;){gn=!0;const F=I;I=I.nextSibling,g(F)}}else A&8&&k.textContent!==S.children&&(gn=!0,k.textContent=S.children)}return k.nextSibling},c=(k,S,_,$,R,T,x)=>{x=x||!!S.dynamicChildren;const M=S.children,b=M.length;for(let A=0;A<b;A++){const C=x?M[A]:M[A]=wt(M[A]);if(k)k=r(k,C,$,R,T,x);else{if(C.type===qn&&!C.children)continue;gn=!0,n(null,C,_,null,$,R,Yr(_),T)}}return k},l=(k,S,_,$,R,T)=>{const{slotScopeIds:x}=S;x&&(R=R?R.concat(x):x);const M=h(k),b=c(u(k),S,M,_,$,R,T);return b&&Xr(b)&&b.data==="]"?u(S.anchor=b):(gn=!0,s(S.anchor=p("]"),M,b),b)},f=(k,S,_,$,R,T)=>{if(gn=!0,S.el=null,T){const b=m(k);for(;;){const A=u(k);if(A&&A!==b)g(A);else break}}const x=u(k),M=h(k);return g(k),n(null,S,M,x,_,$,Yr(M),R),x},m=(k,S="[",_="]")=>{let $=0;for(;k;)if(k=u(k),k&&Xr(k)&&(k.data===S&&$++,k.data===_)){if($===0)return u(k);$--}return k},v=(k,S,_)=>{const $=S.parentNode;$&&$.replaceChild(k,S);let R=_;for(;R;)R.vnode.el===S&&(R.vnode.el=R.subTree.el=k),R=R.parent},y=k=>k.nodeType===1&&k.tagName.toLowerCase()==="template";return[o,r]}const it=Sh;function Kh(e){return Xh(e)}function Yh(e){return Xh(e,ey)}function Xh(e,t){const n=Vs();n.__VUE__=!0;const{insert:i,remove:d,patchProp:u,createElement:h,createText:g,createComment:s,setText:p,setElementText:o,parentNode:r,nextSibling:a,setScopeId:c=zt,insertStaticContent:l}=e,f=(P,B,G,J=null,te=null,ie=null,le=!1,se=null,ce=!!B.dynamicChildren)=>{if(P===B)return;P&&!It(P,B)&&(J=z(P),j(P,te,ie,!0),P=null),B.patchFlag===-2&&(ce=!1,B.dynamicChildren=null);const{type:re,ref:ve,shapeFlag:de}=B;switch(re){case qn:m(P,B,G,J);break;case lt:v(P,B,G,J);break;case Yn:P==null&&y(B,G,J,le);break;case _e:A(P,B,G,J,te,ie,le,se,ce);break;default:de&1?_(P,B,G,J,te,ie,le,se,ce):de&6?C(P,B,G,J,te,ie,le,se,ce):(de&64||de&128)&&re.process(P,B,G,J,te,ie,le,se,ce,Y)}ve!=null&&te&&yo(ve,P&&P.ref,ie,B||P,!B)},m=(P,B,G,J)=>{if(P==null)i(B.el=g(B.children),G,J);else{const te=B.el=P.el;B.children!==P.children&&p(te,B.children)}},v=(P,B,G,J)=>{P==null?i(B.el=s(B.children||""),G,J):B.el=P.el},y=(P,B,G,J)=>{[P.el,P.anchor]=l(P.children,B,G,J,P.el,P.anchor)},k=({el:P,anchor:B},G,J)=>{let te;for(;P&&P!==B;)te=a(P),i(P,G,J),P=te;i(B,G,J)},S=({el:P,anchor:B})=>{let G;for(;P&&P!==B;)G=a(P),d(P),P=G;d(B)},_=(P,B,G,J,te,ie,le,se,ce)=>{le=le||B.type==="svg",P==null?$(B,G,J,te,ie,le,se,ce):x(P,B,te,ie,le,se,ce)},$=(P,B,G,J,te,ie,le,se)=>{let ce,re;const{type:ve,props:de,shapeFlag:me,transition:Ce,dirs:Q}=P;if(ce=P.el=h(P.type,ie,de&&de.is,de),me&8?o(ce,P.children):me&16&&T(P.children,ce,null,J,te,ie&&ve!=="foreignObject",le,se),Q&&Dt(P,null,J,"created"),R(ce,P,P.scopeId,le,J),de){for(const ue in de)ue!=="value"&&!Yi(ue)&&u(ce,ue,null,de[ue],ie,P.children,J,te,Z);"value"in de&&u(ce,"value",null,de.value),(re=de.onVnodeBeforeMount)&&gt(re,J,P)}Q&&Dt(P,null,J,"beforeMount");const ae=Zh(te,Ce);ae&&Ce.beforeEnter(ce),i(ce,B,G),((re=de&&de.onVnodeMounted)||ae||Q)&&it(()=>{re&&gt(re,J,P),ae&&Ce.enter(ce),Q&&Dt(P,null,J,"mounted")},te)},R=(P,B,G,J,te)=>{if(G&&c(P,G),J)for(let ie=0;ie<J.length;ie++)c(P,J[ie]);if(te){let ie=te.subTree;if(B===ie){const le=te.vnode;R(P,le,le.scopeId,le.slotScopeIds,te.parent)}}},T=(P,B,G,J,te,ie,le,se,ce=0)=>{for(let re=ce;re<P.length;re++){const ve=P[re]=se?$n(P[re]):wt(P[re]);f(null,ve,B,G,J,te,ie,le,se)}},x=(P,B,G,J,te,ie,le)=>{const se=B.el=P.el;let{patchFlag:ce,dynamicChildren:re,dirs:ve}=B;ce|=P.patchFlag&16;const de=P.props||De,me=B.props||De;let Ce;G&&Dn(G,!1),(Ce=me.onVnodeBeforeUpdate)&&gt(Ce,G,B,P),ve&&Dt(B,P,G,"beforeUpdate"),G&&Dn(G,!0);const Q=te&&B.type!=="foreignObject";if(re?M(P.dynamicChildren,re,se,G,J,Q,ie):le||I(P,B,se,null,G,J,Q,ie,!1),ce>0){if(ce&16)b(se,B,de,me,G,J,te);else if(ce&2&&de.class!==me.class&&u(se,"class",null,me.class,te),ce&4&&u(se,"style",de.style,me.style,te),ce&8){const ae=B.dynamicProps;for(let ue=0;ue<ae.length;ue++){const be=ae[ue],Re=de[be],Fe=me[be];(Fe!==Re||be==="value")&&u(se,be,Re,Fe,te,P.children,G,J,Z)}}ce&1&&P.children!==B.children&&o(se,B.children)}else!le&&re==null&&b(se,B,de,me,G,J,te);((Ce=me.onVnodeUpdated)||ve)&&it(()=>{Ce&&gt(Ce,G,B,P),ve&&Dt(B,P,G,"updated")},J)},M=(P,B,G,J,te,ie,le)=>{for(let se=0;se<B.length;se++){const ce=P[se],re=B[se],ve=ce.el&&(ce.type===_e||!It(ce,re)||ce.shapeFlag&70)?r(ce.el):G;f(ce,re,ve,null,J,te,ie,le,!0)}},b=(P,B,G,J,te,ie,le)=>{if(G!==J){if(G!==De)for(const se in G)!Yi(se)&&!(se in J)&&u(P,se,G[se],null,le,B.children,te,ie,Z);for(const se in J){if(Yi(se))continue;const ce=J[se],re=G[se];ce!==re&&se!=="value"&&u(P,se,re,ce,le,B.children,te,ie,Z)}"value"in J&&u(P,"value",G.value,J.value)}},A=(P,B,G,J,te,ie,le,se,ce)=>{const re=B.el=P?P.el:g(""),ve=B.anchor=P?P.anchor:g("");let{patchFlag:de,dynamicChildren:me,slotScopeIds:Ce}=B;Ce&&(se=se?se.concat(Ce):Ce),P==null?(i(re,G,J),i(ve,G,J),T(B.children,G,ve,te,ie,le,se,ce)):de>0&&de&64&&me&&P.dynamicChildren?(M(P.dynamicChildren,me,G,te,ie,le,se),(B.key!=null||te&&B===te.subTree)&&rl(P,B,!0)):I(P,B,G,ve,te,ie,le,se,ce)},C=(P,B,G,J,te,ie,le,se,ce)=>{B.slotScopeIds=se,P==null?B.shapeFlag&512?te.ctx.activate(B,G,J,le,ce):w(B,G,J,te,ie,le,ce):E(P,B,ce)},w=(P,B,G,J,te,ie,le)=>{const se=P.component=rf(P,J,te);if(xr(P)&&(se.ctx.renderer=Y),sf(se),se.asyncDep){if(te&&te.registerDep(se,L),!P.el){const ce=se.subTree=fe(lt);v(null,ce,B,G)}return}L(se,P,B,G,te,ie,le)},E=(P,B,G)=>{const J=B.component=P.component;if(ov(P,B,G))if(J.asyncDep&&!J.asyncResolved){O(J,B,G);return}else J.next=B,Qm(J.update),J.update();else B.el=P.el,J.vnode=B},L=(P,B,G,J,te,ie,le)=>{const se=()=>{if(P.isMounted){let{next:ve,bu:de,u:me,parent:Ce,vnode:Q}=P,ae=ve,ue;Dn(P,!1),ve?(ve.el=Q.el,O(P,ve,le)):ve=Q,de&&pi(de),(ue=ve.props&&ve.props.onVnodeBeforeUpdate)&&gt(ue,Ce,ve,Q),Dn(P,!0);const be=to(P),Re=P.subTree;P.subTree=be,f(Re,be,r(Re.el),z(Re),P,te,ie),ve.el=be.el,ae===null&&Za(P,be.el),me&&it(me,te),(ue=ve.props&&ve.props.onVnodeUpdated)&&it(()=>gt(ue,Ce,ve,Q),te)}else{let ve;const{el:de,props:me}=B,{bm:Ce,m:Q,parent:ae}=P,ue=Kn(B);if(Dn(P,!1),Ce&&pi(Ce),!ue&&(ve=me&&me.onVnodeBeforeMount)&&gt(ve,ae,B),Dn(P,!0),de&&ee){const be=()=>{P.subTree=to(P),ee(de,P.subTree,P,te,null)};ue?B.type.__asyncLoader().then(()=>!P.isUnmounted&&be()):be()}else{const be=P.subTree=to(P);f(null,be,G,J,P,te,ie),B.el=be.el}if(Q&&it(Q,te),!ue&&(ve=me&&me.onVnodeMounted)){const be=B;it(()=>gt(ve,ae,be),te)}(B.shapeFlag&256||ae&&Kn(ae.vnode)&&ae.vnode.shapeFlag&256)&&P.a&&it(P.a,te),P.isMounted=!0,B=G=J=null}},ce=P.effect=new yi(se,()=>Wo(re),P.scope),re=P.update=()=>ce.run();re.id=P.uid,Dn(P,!0),re()},O=(P,B,G)=>{B.component=P;const J=P.vnode.props;P.vnode=B,P.next=null,Zv(P,B.props,J,G),qv(P,B.children,G),Li(),ac(P),Ti()},I=(P,B,G,J,te,ie,le,se,ce=!1)=>{const re=P&&P.children,ve=P?P.shapeFlag:0,de=B.children,{patchFlag:me,shapeFlag:Ce}=B;if(me>0){if(me&128){D(re,de,G,J,te,ie,le,se,ce);return}else if(me&256){F(re,de,G,J,te,ie,le,se,ce);return}}Ce&8?(ve&16&&Z(re,te,ie),de!==re&&o(G,de)):ve&16?Ce&16?D(re,de,G,J,te,ie,le,se,ce):Z(re,te,ie,!0):(ve&8&&o(G,""),Ce&16&&T(de,G,J,te,ie,le,se,ce))},F=(P,B,G,J,te,ie,le,se,ce)=>{P=P||fi,B=B||fi;const re=P.length,ve=B.length,de=Math.min(re,ve);let me;for(me=0;me<de;me++){const Ce=B[me]=ce?$n(B[me]):wt(B[me]);f(P[me],Ce,G,null,te,ie,le,se,ce)}re>ve?Z(P,te,ie,!0,!1,de):T(B,G,J,te,ie,le,se,ce,de)},D=(P,B,G,J,te,ie,le,se,ce)=>{let re=0;const ve=B.length;let de=P.length-1,me=ve-1;for(;re<=de&&re<=me;){const Ce=P[re],Q=B[re]=ce?$n(B[re]):wt(B[re]);if(It(Ce,Q))f(Ce,Q,G,null,te,ie,le,se,ce);else break;re++}for(;re<=de&&re<=me;){const Ce=P[de],Q=B[me]=ce?$n(B[me]):wt(B[me]);if(It(Ce,Q))f(Ce,Q,G,null,te,ie,le,se,ce);else break;de--,me--}if(re>de){if(re<=me){const Ce=me+1,Q=Ce<ve?B[Ce].el:J;for(;re<=me;)f(null,B[re]=ce?$n(B[re]):wt(B[re]),G,Q,te,ie,le,se,ce),re++}}else if(re>me)for(;re<=de;)j(P[re],te,ie,!0),re++;else{const Ce=re,Q=re,ae=new Map;for(re=Q;re<=me;re++){const xe=B[re]=ce?$n(B[re]):wt(B[re]);xe.key!=null&&ae.set(xe.key,re)}let ue,be=0;const Re=me-Q+1;let Fe=!1,Ge=0;const Pe=new Array(Re);for(re=0;re<Re;re++)Pe[re]=0;for(re=Ce;re<=de;re++){const xe=P[re];if(be>=Re){j(xe,te,ie,!0);continue}let He;if(xe.key!=null)He=ae.get(xe.key);else for(ue=Q;ue<=me;ue++)if(Pe[ue-Q]===0&&It(xe,B[ue])){He=ue;break}He===void 0?j(xe,te,ie,!0):(Pe[He-Q]=re+1,He>=Ge?Ge=He:Fe=!0,f(xe,B[He],G,null,te,ie,le,se,ce),be++)}const We=Fe?ty(Pe):fi;for(ue=We.length-1,re=Re-1;re>=0;re--){const xe=Q+re,He=B[xe],fn=xe+1<ve?B[xe+1].el:J;Pe[re]===0?f(null,He,G,fn,te,ie,le,se,ce):Fe&&(ue<0||re!==We[ue]?W(He,G,fn,2):ue--)}}},W=(P,B,G,J,te=null)=>{const{el:ie,type:le,transition:se,children:ce,shapeFlag:re}=P;if(re&6){W(P.component.subTree,B,G,J);return}if(re&128){P.suspense.move(B,G,J);return}if(re&64){le.move(P,B,G,Y);return}if(le===_e){i(ie,B,G);for(let de=0;de<ce.length;de++)W(ce[de],B,G,J);i(P.anchor,B,G);return}if(le===Yn){k(P,B,G);return}if(J!==2&&re&1&&se)if(J===0)se.beforeEnter(ie),i(ie,B,G),it(()=>se.enter(ie),te);else{const{leave:de,delayLeave:me,afterLeave:Ce}=se,Q=()=>i(ie,B,G),ae=()=>{de(ie,()=>{Q(),Ce&&Ce()})};me?me(ie,Q,ae):ae()}else i(ie,B,G)},j=(P,B,G,J=!1,te=!1)=>{const{type:ie,props:le,ref:se,children:ce,dynamicChildren:re,shapeFlag:ve,patchFlag:de,dirs:me}=P;if(se!=null&&yo(se,null,G,P,!0),ve&256){B.ctx.deactivate(P);return}const Ce=ve&1&&me,Q=!Kn(P);let ae;if(Q&&(ae=le&&le.onVnodeBeforeUnmount)&&gt(ae,B,P),ve&6)K(P.component,G,J);else{if(ve&128){P.suspense.unmount(G,J);return}Ce&&Dt(P,null,B,"beforeUnmount"),ve&64?P.type.remove(P,B,G,te,Y,J):re&&(ie!==_e||de>0&&de&64)?Z(re,B,G,!1,!0):(ie===_e&&de&384||!te&&ve&16)&&Z(ce,B,G),J&&H(P)}(Q&&(ae=le&&le.onVnodeUnmounted)||Ce)&&it(()=>{ae&&gt(ae,B,P),Ce&&Dt(P,null,B,"unmounted")},G)},H=P=>{const{type:B,el:G,anchor:J,transition:te}=P;if(B===_e){U(G,J);return}if(B===Yn){S(P);return}const ie=()=>{d(G),te&&!te.persisted&&te.afterLeave&&te.afterLeave()};if(P.shapeFlag&1&&te&&!te.persisted){const{leave:le,delayLeave:se}=te,ce=()=>le(G,ie);se?se(P.el,ie,ce):ce()}else ie()},U=(P,B)=>{let G;for(;P!==B;)G=a(P),d(P),P=G;d(B)},K=(P,B,G)=>{const{bum:J,scope:te,update:ie,subTree:le,um:se}=P;J&&pi(J),te.stop(),ie&&(ie.active=!1,j(le,P,B,G)),se&&it(se,B),it(()=>{P.isUnmounted=!0},B),B&&B.pendingBranch&&!B.isUnmounted&&P.asyncDep&&!P.asyncResolved&&P.suspenseId===B.pendingId&&(B.deps--,B.deps===0&&B.resolve())},Z=(P,B,G,J=!1,te=!1,ie=0)=>{for(let le=ie;le<P.length;le++)j(P[le],B,G,J,te)},z=P=>P.shapeFlag&6?z(P.component.subTree):P.shapeFlag&128?P.suspense.next():a(P.anchor||P.el),X=(P,B,G)=>{P==null?B._vnode&&j(B._vnode,null,null,!0):f(B._vnode||null,P,B,null,null,null,G),ac(),mo(),B._vnode=P},Y={p:f,um:j,m:W,r:H,mt:w,mc:T,pc:I,pbc:M,n:z,o:e};let V,ee;return t&&([V,ee]=t(Y)),{render:X,hydrate:V,createApp:Kv(X,V)}}function Dn({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Zh(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function rl(e,t,n=!1){const i=e.children,d=t.children;if(ge(i)&&ge(d))for(let u=0;u<i.length;u++){const h=i[u];let g=d[u];g.shapeFlag&1&&!g.dynamicChildren&&((g.patchFlag<=0||g.patchFlag===32)&&(g=d[u]=$n(d[u]),g.el=h.el),n||rl(h,g)),g.type===qn&&(g.el=h.el)}}function ty(e){const t=e.slice(),n=[0];let i,d,u,h,g;const s=e.length;for(i=0;i<s;i++){const p=e[i];if(p!==0){if(d=n[n.length-1],e[d]<p){t[i]=d,n.push(i);continue}for(u=0,h=n.length-1;u<h;)g=u+h>>1,e[n[g]]<p?u=g+1:h=g;p<e[n[u]]&&(u>0&&(t[i]=n[u-1]),n[u]=i)}}for(u=n.length,h=n[u-1];u-- >0;)n[u]=h,h=t[h];return n}const ny=e=>e.__isTeleport,Qi=e=>e&&(e.disabled||e.disabled===""),bc=e=>typeof SVGElement<"u"&&e instanceof SVGElement,ea=(e,t)=>{const n=e&&e.to;return je(n)?t?t(n):null:n},iy={name:"Teleport",__isTeleport:!0,process(e,t,n,i,d,u,h,g,s,p){const{mc:o,pc:r,pbc:a,o:{insert:c,querySelector:l,createText:f,createComment:m}}=p,v=Qi(t.props);let{shapeFlag:y,children:k,dynamicChildren:S}=t;if(e==null){const _=t.el=f(""),$=t.anchor=f("");c(_,n,i),c($,n,i);const R=t.target=ea(t.props,l),T=t.targetAnchor=f("");R&&(c(T,R),h=h||bc(R));const x=(M,b)=>{y&16&&o(k,M,b,d,u,h,g,s)};v?x(n,$):R&&x(R,T)}else{t.el=e.el;const _=t.anchor=e.anchor,$=t.target=e.target,R=t.targetAnchor=e.targetAnchor,T=Qi(e.props),x=T?n:$,M=T?_:R;if(h=h||bc($),S?(a(e.dynamicChildren,S,x,d,u,h,g),rl(e,t,!0)):s||r(e,t,x,M,d,u,h,g,!1),v)T?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Zr(t,n,_,p,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const b=t.target=ea(t.props,l);b&&Zr(t,b,null,p,0)}else T&&Zr(t,$,R,p,1)}Jh(t)},remove(e,t,n,i,{um:d,o:{remove:u}},h){const{shapeFlag:g,children:s,anchor:p,targetAnchor:o,target:r,props:a}=e;if(r&&u(o),h&&u(p),g&16){const c=h||!Qi(a);for(let l=0;l<s.length;l++){const f=s[l];d(f,t,n,c,!!f.dynamicChildren)}}},move:Zr,hydrate:ry};function Zr(e,t,n,{o:{insert:i},m:d},u=2){u===0&&i(e.targetAnchor,t,n);const{el:h,anchor:g,shapeFlag:s,children:p,props:o}=e,r=u===2;if(r&&i(h,t,n),(!r||Qi(o))&&s&16)for(let a=0;a<p.length;a++)d(p[a],t,n,2);r&&i(g,t,n)}function ry(e,t,n,i,d,u,{o:{nextSibling:h,parentNode:g,querySelector:s}},p){const o=t.target=ea(t.props,s);if(o){const r=o._lpa||o.firstChild;if(t.shapeFlag&16)if(Qi(t.props))t.anchor=p(h(e),t,g(e),n,i,d,u),t.targetAnchor=r;else{t.anchor=h(e);let a=r;for(;a;)if(a=h(a),a&&a.nodeType===8&&a.data==="teleport anchor"){t.targetAnchor=a,o._lpa=t.targetAnchor&&h(t.targetAnchor);break}p(r,t,o,n,i,d,u)}Jh(t)}return t.anchor&&h(t.anchor)}const oy=iy;function Jh(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n&&n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const _e=Symbol.for("v-fgt"),qn=Symbol.for("v-txt"),lt=Symbol.for("v-cmt"),Yn=Symbol.for("v-stc"),qi=[];let mt=null;function q(e=!1){qi.push(mt=e?null:[])}function Qh(){qi.pop(),mt=qi[qi.length-1]||null}let ei=1;function ta(e){ei+=e}function qh(e){return e.dynamicChildren=ei>0?mt||fi:null,Qh(),ei>0&&mt&&mt.push(e),e}function oe(e,t,n,i,d,u){return qh(N(e,t,n,i,d,u,!0))}function Te(e,t,n,i,d){return qh(fe(e,t,n,i,d,!0))}function Mn(e){return e?e.__v_isVNode===!0:!1}function It(e,t){return e.type===t.type&&e.key===t.key}function sy(e){}const Ko="__vInternal",ef=({key:e})=>e??null,no=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?je(e)||rt(e)||Se(e)?{i:et,r:e,k:t,f:!!n}:e:null);function N(e,t=null,n=null,i=0,d=null,u=e===_e?0:1,h=!1,g=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ef(t),ref:t&&no(t),scopeId:Uo,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:u,patchFlag:i,dynamicProps:d,dynamicChildren:null,appContext:null,ctx:et};return g?(ol(s,n),u&128&&e.normalize(s)):n&&(s.shapeFlag|=je(n)?8:16),ei>0&&!h&&mt&&(s.patchFlag>0||u&6)&&s.patchFlag!==32&&mt.push(s),s}const fe=ay;function ay(e,t=null,n=null,i=0,d=null,u=!1){if((!e||e===$h)&&(e=lt),Mn(e)){const g=Gt(e,t,!0);return n&&ol(g,n),ei>0&&!u&&mt&&(g.shapeFlag&6?mt[mt.indexOf(e)]=g:mt.push(g)),g.patchFlag|=-2,g}if(gy(e)&&(e=e.__vccOpts),t){t=tf(t);let{class:g,style:s}=t;g&&!je(g)&&(t.class=Ar(g)),Be(s)&&(Ua(s)&&!ge(s)&&(s=Ve({},s)),t.style=_r(s))}const h=je(e)?1:Ch(e)?128:ny(e)?64:Be(e)?4:Se(e)?2:0;return N(e,t,n,i,d,h,u,!0)}function tf(e){return e?Ua(e)||Ko in e?Ve({},e):e:null}function Gt(e,t,n=!1){const{props:i,ref:d,patchFlag:u,children:h}=e,g=t?nf(i||{},t):i;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:g,key:g&&ef(g),ref:t&&t.ref?n&&d?ge(d)?d.concat(no(t)):[d,no(t)]:no(t):d,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:h,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==_e?u===-1?16:u|16:u,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Gt(e.ssContent),ssFallback:e.ssFallback&&Gt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function dt(e=" ",t=0){return fe(qn,null,e,t)}function ly(e,t){const n=fe(Yn,null,e);return n.staticCount=t,n}function we(e="",t=!1){return t?(q(),Te(lt,null,e)):fe(lt,null,e)}function wt(e){return e==null||typeof e=="boolean"?fe(lt):ge(e)?fe(_e,null,e.slice()):typeof e=="object"?$n(e):fe(qn,null,String(e))}function $n(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Gt(e)}function ol(e,t){let n=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(ge(t))n=16;else if(typeof t=="object")if(i&65){const d=t.default;d&&(d._c&&(d._d=!1),ol(e,d()),d._c&&(d._d=!0));return}else{n=32;const d=t._;!d&&!(Ko in t)?t._ctx=et:d===3&&et&&(et.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Se(t)?(t={default:t,_ctx:et},n=32):(t=String(t),i&64?(n=16,t=[dt(t)]):n=8);e.children=t,e.shapeFlag|=n}function nf(...e){const t={};for(let n=0;n<e.length;n++){const i=e[n];for(const d in i)if(d==="class")t.class!==i.class&&(t.class=Ar([t.class,i.class]));else if(d==="style")t.style=_r([t.style,i.style]);else if(Sr(d)){const u=t[d],h=i[d];h&&u!==h&&!(ge(u)&&u.includes(h))&&(t[d]=u?[].concat(u,h):h)}else d!==""&&(t[d]=i[d])}return t}function gt(e,t,n,i=null){$t(e,t,7,[n,i])}const cy=Hh();let uy=0;function rf(e,t,n){const i=e.type,d=(t?t.appContext:e.appContext)||cy,u={uid:uy++,vnode:e,type:i,parent:t,appContext:d,root:null,next:null,subTree:null,effect:null,update:null,scope:new Pa(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(d.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:zh(i,d),emitsOptions:wh(i,d),emit:null,emitted:null,propsDefaults:De,inheritAttrs:i.inheritAttrs,ctx:De,data:De,props:De,attrs:De,slots:De,refs:De,setupState:De,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 u.ctx={_:u},u.root=t?t.root:u,u.emit=ev.bind(null,u),e.ce&&e.ce(u),u}let Je=null;const Lt=()=>Je||et;let sl,oi,wc="__VUE_INSTANCE_SETTERS__";(oi=Vs()[wc])||(oi=Vs()[wc]=[]),oi.push(e=>Je=e),sl=e=>{oi.length>1?oi.forEach(t=>t(e)):oi[0](e)};const On=e=>{sl(e),e.scope.on()},_n=()=>{Je&&Je.scope.off(),sl(null)};function of(e){return e.vnode.shapeFlag&4}let wi=!1;function sf(e,t=!1){wi=t;const{props:n,children:i}=e.vnode,d=of(e);Xv(e,n,d,t),Qv(e,i);const u=d?hy(e,t):void 0;return wi=!1,u}function hy(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Do(new Proxy(e.ctx,Zs));const{setup:i}=n;if(i){const d=e.setupContext=i.length>1?lf(e):null;On(e),Li();const u=rn(i,e,0,[e.props,d]);if(Ti(),_n(),Fa(u)){if(u.then(_n,_n),t)return u.then(h=>{na(e,h,t)}).catch(h=>{ni(h,e,0)});e.asyncDep=u}else na(e,u,t)}else af(e,t)}function na(e,t,n){Se(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Be(t)&&(e.setupState=ja(t)),af(e,n)}let bo,ia;function fy(e){bo=e,ia=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,kv))}}const dy=()=>!bo;function af(e,t,n){const i=e.type;if(!e.render){if(!t&&bo&&!i.render){const d=i.template||nl(e).template;if(d){const{isCustomElement:u,compilerOptions:h}=e.appContext.config,{delimiters:g,compilerOptions:s}=i,p=Ve(Ve({isCustomElement:u,delimiters:g},h),s);i.render=bo(d,p)}}e.render=i.render||zt,ia&&ia(e)}{On(e),Li();try{Hv(e)}finally{Ti(),_n()}}}function py(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return yt(e,"get","$attrs"),t[n]}}))}function lf(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return py(e)},slots:e.slots,emit:e.emit,expose:t}}function Yo(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ja(Do(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Zi)return Zi[n](e)},has(t,n){return n in t||n in Zi}}))}function ra(e,t=!0){return Se(e)?e.displayName||e.name:e.name||t&&e.__name}function gy(e){return Se(e)&&"__vccOpts"in e}const Ee=(e,t)=>Km(e,t,wi);function Ii(e,t,n){const i=arguments.length;return i===2?Be(t)&&!ge(t)?Mn(t)?fe(e,null,[t]):fe(e,t):fe(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&Mn(n)&&(n=[n]),fe(e,t,n))}const cf=Symbol.for("v-scx"),uf=()=>xt(cf);function my(){}function vy(e,t,n,i){const d=n[i];if(d&&hf(d,e))return d;const u=t();return u.memo=e.slice(),n[i]=u}function hf(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let i=0;i<n.length;i++)if(Rn(n[i],t[i]))return!1;return ei>0&&mt&&mt.push(e),!0}const ff="3.3.12",yy={createComponentInstance:rf,setupComponent:sf,renderComponentRoot:to,setCurrentRenderingInstance:dr,isVNode:Mn,normalizeVNode:wt},by=yy,wy=null,$y=null,Cy="http://www.w3.org/2000/svg",Hn=typeof document<"u"?document:null,$c=Hn&&Hn.createElement("template"),Sy={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,i)=>{const d=t?Hn.createElementNS(Cy,e):Hn.createElement(e,n?{is:n}:void 0);return e==="select"&&i&&i.multiple!=null&&d.setAttribute("multiple",i.multiple),d},createText:e=>Hn.createTextNode(e),createComment:e=>Hn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Hn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,d,u){const h=n?n.previousSibling:t.lastChild;if(d&&(d===u||d.nextSibling))for(;t.insertBefore(d.cloneNode(!0),n),!(d===u||!(d=d.nextSibling)););else{$c.innerHTML=i?`<svg>${e}</svg>`:e;const g=$c.content;if(i){const s=g.firstChild;for(;s.firstChild;)g.appendChild(s.firstChild);g.removeChild(s)}t.insertBefore(g,n)}return[h?h.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},mn="transition",Pi="animation",$i=Symbol("_vtc"),al=(e,{slots:t})=>Ii(xh,pf(e),t);al.displayName="Transition";const df={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},_y=al.props=Ve({},tl,df),Bn=(e,t=[])=>{ge(e)?e.forEach(n=>n(...t)):e&&e(...t)},Cc=e=>e?ge(e)?e.some(t=>t.length>1):e.length>1:!1;function pf(e){const t={};for(const A in e)A in df||(t[A]=e[A]);if(e.css===!1)return t;const{name:n="v",type:i,duration:d,enterFromClass:u=`${n}-enter-from`,enterActiveClass:h=`${n}-enter-active`,enterToClass:g=`${n}-enter-to`,appearFromClass:s=u,appearActiveClass:p=h,appearToClass:o=g,leaveFromClass:r=`${n}-leave-from`,leaveActiveClass:a=`${n}-leave-active`,leaveToClass:c=`${n}-leave-to`}=e,l=Ay(d),f=l&&l[0],m=l&&l[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:k,onLeave:S,onLeaveCancelled:_,onBeforeAppear:$=v,onAppear:R=y,onAppearCancelled:T=k}=t,x=(A,C,w)=>{bn(A,C?o:g),bn(A,C?p:h),w&&w()},M=(A,C)=>{A._isLeaving=!1,bn(A,r),bn(A,c),bn(A,a),C&&C()},b=A=>(C,w)=>{const E=A?R:y,L=()=>x(C,A,w);Bn(E,[C,L]),Sc(()=>{bn(C,A?s:u),Zt(C,A?o:g),Cc(E)||_c(C,i,f,L)})};return Ve(t,{onBeforeEnter(A){Bn(v,[A]),Zt(A,u),Zt(A,h)},onBeforeAppear(A){Bn($,[A]),Zt(A,s),Zt(A,p)},onEnter:b(!1),onAppear:b(!0),onLeave(A,C){A._isLeaving=!0;const w=()=>M(A,C);Zt(A,r),mf(),Zt(A,a),Sc(()=>{A._isLeaving&&(bn(A,r),Zt(A,c),Cc(S)||_c(A,i,m,w))}),Bn(S,[A,w])},onEnterCancelled(A){x(A,!1),Bn(k,[A])},onAppearCancelled(A){x(A,!0),Bn(T,[A])},onLeaveCancelled(A){M(A),Bn(_,[A])}})}function Ay(e){if(e==null)return null;if(Be(e))return[bs(e.enter),bs(e.leave)];{const t=bs(e);return[t,t]}}function bs(e){return fo(e)}function Zt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[$i]||(e[$i]=new Set)).add(t)}function bn(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.remove(i));const n=e[$i];n&&(n.delete(t),n.size||(e[$i]=void 0))}function Sc(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let ky=0;function _c(e,t,n,i){const d=e._endId=++ky,u=()=>{d===e._endId&&i()};if(n)return setTimeout(u,n);const{type:h,timeout:g,propCount:s}=gf(e,t);if(!h)return i();const p=h+"end";let o=0;const r=()=>{e.removeEventListener(p,a),u()},a=c=>{c.target===e&&++o>=s&&r()};setTimeout(()=>{o<s&&r()},g+1),e.addEventListener(p,a)}function gf(e,t){const n=window.getComputedStyle(e),i=l=>(n[l]||"").split(", "),d=i(`${mn}Delay`),u=i(`${mn}Duration`),h=Ac(d,u),g=i(`${Pi}Delay`),s=i(`${Pi}Duration`),p=Ac(g,s);let o=null,r=0,a=0;t===mn?h>0&&(o=mn,r=h,a=u.length):t===Pi?p>0&&(o=Pi,r=p,a=s.length):(r=Math.max(h,p),o=r>0?h>p?mn:Pi:null,a=o?o===mn?u.length:s.length:0);const c=o===mn&&/\b(transform|all)(,|$)/.test(i(`${mn}Property`).toString());return{type:o,timeout:r,propCount:a,hasTransform:c}}function Ac(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,i)=>kc(n)+kc(e[i])))}function kc(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function mf(){return document.body.offsetHeight}function xy(e,t,n){const i=e[$i];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ll=Symbol("_vod"),vf={beforeMount(e,{value:t},{transition:n}){e[ll]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Di(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:i}){!t!=!n&&(i?t?(i.beforeEnter(e),Di(e,!0),i.enter(e)):i.leave(e,()=>{Di(e,!1)}):Di(e,t))},beforeUnmount(e,{value:t}){Di(e,t)}};function Di(e,t){e.style.display=t?e[ll]:"none"}function Ey(){vf.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const yf=Symbol("");function Ry(e){const t=Lt();if(!t)return;const n=t.ut=(d=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(u=>sa(u,d))},i=()=>{const d=e(t.proxy);oa(t.subTree,d),n(d)};Ah(i),tt(()=>{const d=new MutationObserver(i);d.observe(t.subTree.el.parentNode,{childList:!0}),Go(()=>d.disconnect())})}function oa(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{oa(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)sa(e.el,t);else if(e.type===_e)e.children.forEach(n=>oa(n,t));else if(e.type===Yn){let{el:n,anchor:i}=e;for(;n&&(sa(n,t),n!==i);)n=n.nextSibling}}function sa(e,t){if(e.nodeType===1){const n=e.style;let i="";for(const d in t)n.setProperty(`--${d}`,t[d]),i+=`--${d}: ${t[d]};`;n[yf]=i}}function Ly(e,t,n){const i=e.style,d=je(n);if(n&&!d){if(t&&!je(t))for(const u in t)n[u]==null&&aa(i,u,"");for(const u in n)aa(i,u,n[u])}else{const u=i.display;if(d){if(t!==n){const h=i[yf];h&&(n+=";"+h),i.cssText=n}}else t&&e.removeAttribute("style");ll in e&&(i.display=u)}}const xc=/\s*!important$/;function aa(e,t,n){if(ge(n))n.forEach(i=>aa(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=Ty(e,t);xc.test(n)?e.setProperty(_t(i),n.replace(xc,""),"important"):e[i]=n}}const Ec=["Webkit","Moz","ms"],ws={};function Ty(e,t){const n=ws[t];if(n)return n;let i=vt(t);if(i!=="filter"&&i in e)return ws[t]=i;i=Ri(i);for(let d=0;d<Ec.length;d++){const u=Ec[d]+i;if(u in e)return ws[t]=u}return t}const Rc="http://www.w3.org/1999/xlink";function My(e,t,n,i,d){if(i&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Rc,t.slice(6,t.length)):e.setAttributeNS(Rc,t,n);else{const u=fm(t);n==null||u&&!Zu(n)?e.removeAttribute(t):e.setAttribute(t,u?"":n)}}function Oy(e,t,n,i,d,u,h){if(t==="innerHTML"||t==="textContent"){i&&h(i,d,u),e[t]=n??"";return}const g=e.tagName;if(t==="value"&&g!=="PROGRESS"&&!g.includes("-")){e._value=n;const p=g==="OPTION"?e.getAttribute("value"):e.value,o=n??"";p!==o&&(e.value=o),n==null&&e.removeAttribute(t);return}let s=!1;if(n===""||n==null){const p=typeof e[t];p==="boolean"?n=Zu(n):n==null&&p==="string"?(n="",s=!0):p==="number"&&(n=0,s=!0)}try{e[t]=n}catch{}s&&e.removeAttribute(t)}function Qt(e,t,n,i){e.addEventListener(t,n,i)}function Iy(e,t,n,i){e.removeEventListener(t,n,i)}const Lc=Symbol("_vei");function Fy(e,t,n,i,d=null){const u=e[Lc]||(e[Lc]={}),h=u[t];if(i&&h)h.value=i;else{const[g,s]=Ny(t);if(i){const p=u[t]=By(i,d);Qt(e,g,p,s)}else h&&(Iy(e,g,h,s),u[t]=void 0)}}const Tc=/(?:Once|Passive|Capture)$/;function Ny(e){let t;if(Tc.test(e)){t={};let i;for(;i=e.match(Tc);)e=e.slice(0,e.length-i[0].length),t[i[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):_t(e.slice(2)),t]}let $s=0;const Py=Promise.resolve(),Dy=()=>$s||(Py.then(()=>$s=0),$s=Date.now());function By(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;$t(Wy(i,n.value),t,5,[i])};return n.value=e,n.attached=Dy(),n}function Wy(e,t){if(ge(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(i=>d=>!d._stopped&&i&&i(d))}else return t}const Mc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Hy=(e,t,n,i,d=!1,u,h,g,s)=>{t==="class"?xy(e,i,d):t==="style"?Ly(e,n,i):Sr(t)?Oa(t)||Fy(e,t,n,i,h):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Uy(e,t,i,d))?Oy(e,t,i,u,h,g,s):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),My(e,t,i,d))};function Uy(e,t,n,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in e&&Mc(t)&&Se(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 d=e.tagName;if(d==="IMG"||d==="VIDEO"||d==="CANVAS"||d==="SOURCE")return!1}return Mc(t)&&je(n)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function bf(e,t){const n=$e(e);class i extends Xo{constructor(u){super(n,u,t)}}return i.def=n,i}/*! #__NO_SIDE_EFFECTS__ */const zy=e=>bf(e,Rf),Vy=typeof HTMLElement<"u"?HTMLElement:class{};class Xo extends Vy{constructor(t,n={},i){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&i?i(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),jt(()=>{this._connected||(la(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let i=0;i<this.attributes.length;i++)this._setAttr(this.attributes[i].name);this._ob=new MutationObserver(i=>{for(const d of i)this._setAttr(d.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(i,d=!1)=>{const{props:u,styles:h}=i;let g;if(u&&!ge(u))for(const s in u){const p=u[s];(p===Number||p&&p.type===Number)&&(s in this._props&&(this._props[s]=fo(this._props[s])),(g||(g=Object.create(null)))[vt(s)]=!0)}this._numberProps=g,d&&this._resolveProps(i),this._applyStyles(h),this._update()},n=this._def.__asyncLoader;n?n().then(i=>t(i,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,i=ge(n)?n:Object.keys(n||{});for(const d of Object.keys(this))d[0]!=="_"&&i.includes(d)&&this._setProp(d,this[d],!0,!1);for(const d of i.map(vt))Object.defineProperty(this,d,{get(){return this._getProp(d)},set(u){this._setProp(d,u)}})}_setAttr(t){let n=this.getAttribute(t);const i=vt(t);this._numberProps&&this._numberProps[i]&&(n=fo(n)),this._setProp(i,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,i=!0,d=!0){n!==this._props[t]&&(this._props[t]=n,d&&this._instance&&this._update(),i&&(n===!0?this.setAttribute(_t(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(_t(t),n+""):n||this.removeAttribute(_t(t))))}_update(){la(this._createVNode(),this.shadowRoot)}_createVNode(){const t=fe(this._def,Ve({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const i=(u,h)=>{this.dispatchEvent(new CustomEvent(u,{detail:h}))};n.emit=(u,...h)=>{i(u,h),_t(u)!==u&&i(_t(u),h)};let d=this;for(;d=d&&(d.parentNode||d.host);)if(d instanceof Xo){n.parent=d._instance,n.provides=d._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const i=document.createElement("style");i.textContent=n,this.shadowRoot.appendChild(i)})}}function jy(e="$style"){{const t=Lt();if(!t)return De;const n=t.type.__cssModules;if(!n)return De;const i=n[e];return i||De}}const wf=new WeakMap,$f=new WeakMap,wo=Symbol("_moveCb"),Oc=Symbol("_enterCb"),Cf={name:"TransitionGroup",props:Ve({},_y,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Lt(),i=el();let d,u;return jo(()=>{if(!d.length)return;const h=e.moveClass||`${e.name||"v"}-move`;if(!Jy(d[0].el,n.vnode.el,h))return;d.forEach(Yy),d.forEach(Xy);const g=d.filter(Zy);mf(),g.forEach(s=>{const p=s.el,o=p.style;Zt(p,h),o.transform=o.webkitTransform=o.transitionDuration="";const r=p[wo]=a=>{a&&a.target!==p||(!a||/transform$/.test(a.propertyName))&&(p.removeEventListener("transitionend",r),p[wo]=null,bn(p,h))};p.addEventListener("transitionend",r)})}),()=>{const h=Me(e),g=pf(h);let s=h.tag||_e;d=u,u=t.default?zo(t.default()):[];for(let p=0;p<u.length;p++){const o=u[p];o.key!=null&&Qn(o,bi(o,g,i,n))}if(d)for(let p=0;p<d.length;p++){const o=d[p];Qn(o,bi(o,g,i,n)),wf.set(o,o.el.getBoundingClientRect())}return fe(s,null,u)}}},Gy=e=>delete e.mode;Cf.props;const Ky=Cf;function Yy(e){const t=e.el;t[wo]&&t[wo](),t[Oc]&&t[Oc]()}function Xy(e){$f.set(e,e.el.getBoundingClientRect())}function Zy(e){const t=wf.get(e),n=$f.get(e),i=t.left-n.left,d=t.top-n.top;if(i||d){const u=e.el.style;return u.transform=u.webkitTransform=`translate(${i}px,${d}px)`,u.transitionDuration="0s",e}}function Jy(e,t,n){const i=e.cloneNode(),d=e[$i];d&&d.forEach(g=>{g.split(/\s+/).forEach(s=>s&&i.classList.remove(s))}),n.split(/\s+/).forEach(g=>g&&i.classList.add(g)),i.style.display="none";const u=t.nodeType===1?t:t.parentNode;u.appendChild(i);const{hasTransform:h}=gf(i);return u.removeChild(i),h}const In=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ge(t)?n=>pi(t,n):t};function Qy(e){e.target.composing=!0}function Ic(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Et=Symbol("_assign"),Nt={created(e,{modifiers:{lazy:t,trim:n,number:i}},d){e[Et]=In(d);const u=i||d.props&&d.props.type==="number";Qt(e,t?"change":"input",h=>{if(h.target.composing)return;let g=e.value;n&&(g=g.trim()),u&&(g=ho(g)),e[Et](g)}),n&&Qt(e,"change",()=>{e.value=e.value.trim()}),t||(Qt(e,"compositionstart",Qy),Qt(e,"compositionend",Ic),Qt(e,"change",Ic))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:i,number:d}},u){if(e[Et]=In(u),e.composing)return;const h=d||e.type==="number"?ho(e.value):e.value,g=t??"";h!==g&&(document.activeElement===e&&e.type!=="range"&&(n||i&&e.value.trim()===g)||(e.value=g))}},cl={deep:!0,created(e,t,n){e[Et]=In(n),Qt(e,"change",()=>{const i=e._modelValue,d=Ci(e),u=e.checked,h=e[Et];if(ge(i)){const g=Oo(i,d),s=g!==-1;if(u&&!s)h(i.concat(d));else if(!u&&s){const p=[...i];p.splice(g,1),h(p)}}else if(ti(i)){const g=new Set(i);u?g.add(d):g.delete(d),h(g)}else h(Sf(e,u))})},mounted:Fc,beforeUpdate(e,t,n){e[Et]=In(n),Fc(e,t,n)}};function Fc(e,{value:t,oldValue:n},i){e._modelValue=t,ge(t)?e.checked=Oo(t,i.props.value)>-1:ti(t)?e.checked=t.has(i.props.value):t!==n&&(e.checked=Ln(t,Sf(e,!0)))}const ul={created(e,{value:t},n){e.checked=Ln(t,n.props.value),e[Et]=In(n),Qt(e,"change",()=>{e[Et](Ci(e))})},beforeUpdate(e,{value:t,oldValue:n},i){e[Et]=In(i),t!==n&&(e.checked=Ln(t,i.props.value))}},vr={deep:!0,created(e,{value:t,modifiers:{number:n}},i){const d=ti(t);Qt(e,"change",()=>{const u=Array.prototype.filter.call(e.options,h=>h.selected).map(h=>n?ho(Ci(h)):Ci(h));e[Et](e.multiple?d?new Set(u):u:u[0])}),e[Et]=In(i)},mounted(e,{value:t}){Nc(e,t)},beforeUpdate(e,t,n){e[Et]=In(n)},updated(e,{value:t}){Nc(e,t)}};function Nc(e,t){const n=e.multiple;if(!(n&&!ge(t)&&!ti(t))){for(let i=0,d=e.options.length;i<d;i++){const u=e.options[i],h=Ci(u);if(n)ge(t)?u.selected=Oo(t,h)>-1:u.selected=t.has(h);else if(Ln(Ci(u),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Ci(e){return"_value"in e?e._value:e.value}function Sf(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const _f={created(e,t,n){Jr(e,t,n,null,"created")},mounted(e,t,n){Jr(e,t,n,null,"mounted")},beforeUpdate(e,t,n,i){Jr(e,t,n,i,"beforeUpdate")},updated(e,t,n,i){Jr(e,t,n,i,"updated")}};function Af(e,t){switch(e){case"SELECT":return vr;case"TEXTAREA":return Nt;default:switch(t){case"checkbox":return cl;case"radio":return ul;default:return Nt}}}function Jr(e,t,n,i,d){const h=Af(e.tagName,n.props&&n.props.type)[d];h&&h(e,t,n,i)}function qy(){Nt.getSSRProps=({value:e})=>({value:e}),ul.getSSRProps=({value:e},t)=>{if(t.props&&Ln(t.props.value,e))return{checked:!0}},cl.getSSRProps=({value:e},t)=>{if(ge(e)){if(t.props&&Oo(e,t.props.value)>-1)return{checked:!0}}else if(ti(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},_f.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=Af(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const e0=["ctrl","shift","alt","meta"],t0={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>e0.some(n=>e[`${n}Key`]&&!t.includes(n))},n0=(e,t)=>e._withMods||(e._withMods=(n,...i)=>{for(let d=0;d<t.length;d++){const u=t0[t[d]];if(u&&u(n,t))return}return e(n,...i)}),i0={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},r0=(e,t)=>e._withKeys||(e._withKeys=n=>{if(!("key"in n))return;const i=_t(n.key);if(t.some(d=>d===i||i0[d]===i))return e(n)}),kf=Ve({patchProp:Hy},Sy);let er,Pc=!1;function xf(){return er||(er=Kh(kf))}function Ef(){return er=Pc?er:Yh(kf),Pc=!0,er}const la=(...e)=>{xf().render(...e)},Rf=(...e)=>{Ef().hydrate(...e)},Lf=(...e)=>{const t=xf().createApp(...e),{mount:n}=t;return t.mount=i=>{const d=Tf(i);if(!d)return;const u=t._component;!Se(u)&&!u.render&&!u.template&&(u.template=d.innerHTML),d.innerHTML="";const h=n(d,!1,d instanceof SVGElement);return d instanceof Element&&(d.removeAttribute("v-cloak"),d.setAttribute("data-v-app","")),h},t},o0=(...e)=>{const t=Ef().createApp(...e),{mount:n}=t;return t.mount=i=>{const d=Tf(i);if(d)return n(d,!0,d instanceof SVGElement)},t};function Tf(e){return je(e)?document.querySelector(e):e}let Dc=!1;const s0=()=>{Dc||(Dc=!0,qy(),Ey())},a0=()=>{},l0=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:xh,BaseTransitionPropsValidators:tl,Comment:lt,EffectScope:Pa,Fragment:_e,KeepAlive:$v,ReactiveEffect:yi,Static:Yn,Suspense:uv,Teleport:oy,Text:qn,Transition:al,TransitionGroup:Ky,VueElement:Xo,assertNumber:Xm,callWithAsyncErrorHandling:$t,callWithErrorHandling:rn,camelize:vt,capitalize:Ri,cloneVNode:Gt,compatUtils:$y,compile:a0,computed:Ee,createApp:Lf,createBlock:Te,createCommentVNode:we,createElementBlock:oe,createElementVNode:N,createHydrationRenderer:Yh,createPropsRestProxy:Bv,createRenderer:Kh,createSSRApp:o0,createSlots:Sv,createStaticVNode:ly,createTextVNode:dt,createVNode:fe,customRef:Ga,defineAsyncComponent:bv,defineComponent:$e,defineCustomElement:bf,defineEmits:Ev,defineExpose:Rv,defineModel:Mv,defineOptions:Lv,defineProps:xv,defineSSRCustomElement:zy,defineSlots:Tv,get devtools(){return si},effect:mm,effectScope:Qu,getCurrentInstance:Lt,getCurrentScope:Da,getTransitionRawChildren:zo,guardReactiveProps:tf,h:Ii,handleError:ni,hasInjectionContext:Yv,hydrate:Rf,initCustomFormatter:my,initDirectivesForSSR:s0,inject:xt,isMemoSame:hf,isProxy:Ua,isReactive:Gn,isReadonly:Jn,isRef:rt,isRuntimeOnly:dy,isShallow:lr,isVNode:Mn,markRaw:Do,mergeDefaults:Pv,mergeModels:Dv,mergeProps:nf,nextTick:jt,normalizeClass:Ar,normalizeProps:um,normalizeStyle:_r,onActivated:Rh,onBeforeMount:Mh,onBeforeUnmount:Oi,onBeforeUpdate:Oh,onDeactivated:Lh,onErrorCaptured:Ph,onMounted:tt,onRenderTracked:Nh,onRenderTriggered:Fh,onScopeDispose:eh,onServerPrefetch:Ih,onUnmounted:Go,onUpdated:jo,openBlock:q,popScopeId:Xa,provide:Ji,proxyRefs:ja,pushScopeId:Ya,queuePostFlushCb:go,reactive:Mi,readonly:No,ref:Ke,registerRuntimeCompiler:fy,render:la,renderList:ct,renderSlot:_v,resolveComponent:he,resolveDirective:lv,resolveDynamicComponent:av,resolveFilter:wy,resolveTransitionHooks:bi,setBlockTracking:ta,setDevtoolsHook:bh,setTransitionHooks:Qn,shallowReactive:Ha,shallowReadonly:Pm,shallowRef:dh,ssrContextKey:cf,ssrUtils:by,stop:vm,toDisplayString:Ae,toHandlerKey:Xi,toHandlers:Av,toRaw:Me,toRef:ur,toRefs:zm,toValue:Wm,transformVNodeArgs:sy,triggerRef:Bm,unref:nn,useAttrs:Fv,useCssModule:jy,useCssVars:Ry,useModel:Nv,useSSRContext:uf,useSlots:Iv,useTransitionState:el,vModelCheckbox:cl,vModelDynamic:_f,vModelRadio:ul,vModelSelect:vr,vModelText:Nt,vShow:vf,version:ff,warn:Ym,watch:Ye,watchEffect:_h,watchPostEffect:Ah,watchSyncEffect:mv,withAsyncContext:Wv,withCtx:kt,withDefaults:Ov,withDirectives:Ot,withKeys:r0,withMemo:vy,withModifiers:n0,withScopeId:tv},Symbol.toStringTag,{value:"Module"}));function Bc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(d){return Object.getOwnPropertyDescriptor(e,d).enumerable})),n.push.apply(n,i)}return n}function qt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Bc(Object(n),!0).forEach(function(i){pt(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bc(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function $o(e){"@babel/helpers - typeof";return $o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$o(e)}function pt(e,t,n){return t=f0(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c0(e,t){if(e==null)return{};var n={},i=Object.keys(e),d,u;for(u=0;u<i.length;u++)d=i[u],!(t.indexOf(d)>=0)&&(n[d]=e[d]);return n}function u0(e,t){if(e==null)return{};var n=c0(e,t),i,d;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(d=0;d<u.length;d++)i=u[d],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function h0(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function f0(e){var t=h0(e,"string");return typeof t=="symbol"?t:String(t)}var d0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Mf={exports:{}};(function(e){(function(t){var n=function(v,y,k){if(!p(y)||r(y)||a(y)||c(y)||s(y))return y;var S,_=0,$=0;if(o(y))for(S=[],$=y.length;_<$;_++)S.push(n(v,y[_],k));else{S={};for(var R in y)Object.prototype.hasOwnProperty.call(y,R)&&(S[v(R,k)]=n(v,y[R],k))}return S},i=function(v,y){y=y||{};var k=y.separator||"_",S=y.split||/(?=[A-Z])/;return v.split(S).join(k)},d=function(v){return l(v)?v:(v=v.replace(/[\-_\s]+(.)?/g,function(y,k){return k?k.toUpperCase():""}),v.substr(0,1).toLowerCase()+v.substr(1))},u=function(v){var y=d(v);return y.substr(0,1).toUpperCase()+y.substr(1)},h=function(v,y){return i(v,y).toLowerCase()},g=Object.prototype.toString,s=function(v){return typeof v=="function"},p=function(v){return v===Object(v)},o=function(v){return g.call(v)=="[object Array]"},r=function(v){return g.call(v)=="[object Date]"},a=function(v){return g.call(v)=="[object RegExp]"},c=function(v){return g.call(v)=="[object Boolean]"},l=function(v){return v=v-0,v===v},f=function(v,y){var k=y&&"process"in y?y.process:y;return typeof k!="function"?v:function(S,_){return k(S,v,_)}},m={camelize:d,decamelize:h,pascalize:u,depascalize:h,camelizeKeys:function(v,y){return n(f(d,y),v)},decamelizeKeys:function(v,y){return n(f(h,y),v,y)},pascalizeKeys:function(v,y){return n(f(u,y),v)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=m:t.humps=m})(d0)})(Mf);var p0=Mf.exports,g0=["class","style"];function m0(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var i=n.indexOf(":"),d=p0.camelize(n.slice(0,i)),u=n.slice(i+1).trim();return t[d]=u,t},{})}function v0(e){return e.split(/\s+/).reduce(function(t,n){return t[n]=!0,t},{})}function Of(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 i=(e.children||[]).map(function(s){return Of(s)}),d=Object.keys(e.attributes||{}).reduce(function(s,p){var o=e.attributes[p];switch(p){case"class":s.class=v0(o);break;case"style":s.style=m0(o);break;default:s.attrs[p]=o}return s},{attrs:{},class:{},style:{}});n.class;var u=n.style,h=u===void 0?{}:u,g=u0(n,g0);return Ii(e.tag,qt(qt(qt({},t),{},{class:d.class,style:qt(qt({},d.style),h)},d.attrs),g),i)}var If=!1;try{If=!0}catch{}function y0(){if(!If&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Cs(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?pt({},e,t):{}}function b0(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"},pt(t,"fa-".concat(e.size),e.size!==null),pt(t,"fa-rotate-".concat(e.rotation),e.rotation!==null),pt(t,"fa-pull-".concat(e.pull),e.pull!==null),pt(t,"fa-swap-opacity",e.swapOpacity),pt(t,"fa-bounce",e.bounce),pt(t,"fa-shake",e.shake),pt(t,"fa-beat",e.beat),pt(t,"fa-fade",e.fade),pt(t,"fa-beat-fade",e.beatFade),pt(t,"fa-flash",e.flash),pt(t,"fa-spin-pulse",e.spinPulse),pt(t,"fa-spin-reverse",e.spinReverse),t);return Object.keys(n).map(function(i){return n[i]?i:null}).filter(function(i){return i})}function Wc(e){if(e&&$o(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(zs.icon)return zs.icon(e);if(e===null)return null;if($o(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}var w0=$e({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 i=n.attrs,d=Ee(function(){return Wc(t.icon)}),u=Ee(function(){return Cs("classes",b0(t))}),h=Ee(function(){return Cs("transform",typeof t.transform=="string"?zs.transform(t.transform):t.transform)}),g=Ee(function(){return Cs("mask",Wc(t.mask))}),s=Ee(function(){return Ng(d.value,qt(qt(qt(qt({},u.value),h.value),g.value),{},{symbol:t.symbol,title:t.title,titleId:t.titleId,maskId:t.maskId}))});Ye(s,function(o){if(!o)return y0("Could not find one or more icon(s)",d.value,g.value)},{immediate:!0});var p=Ee(function(){return s.value?Of(s.value.abstract[0],{},i):null});return function(){return p.value}}});const $0=$e({name:"NavbarItem"}),ke=(e,t)=>{const n=e.__vccOpts||e;for(const[i,d]of t)n[i]=d;return n},Zo=e=>(Ya("data-v-19d4e9a4"),e=e(),Xa(),e),C0={role:"navigation","aria-label":"main navigation",class:"navbar is-fixed-top"},S0=Zo(()=>N("div",{class:"navbar-brand"},[N("a",{class:"navbar-item"},[N("h1",{class:"title"},"Mihari")]),N("a",{role:"button","aria-label":"menu",class:"navbar-burger burger"},[N("span",{"aria-hidden":"true"}),N("span",{"aria-hidden":"true"}),N("span",{"aria-hidden":"true"})])],-1)),_0={class:"navbar-menu"},A0=Zo(()=>N("div",{class:"navbar-start"},null,-1)),k0={class:"navbar-end"},x0=Zo(()=>N("a",{class:"navbar-item"},[N("a",{href:"/redoc-static.html",target:"_blank",class:"navbar-item"},"API")],-1)),E0=Zo(()=>N("a",{class:"navbar-item"},[N("a",{href:"https://github.com/ninoseki/mihari",target:"_blank",class:"navbar-item"},"GitHub")],-1));function R0(e,t,n,i,d,u){const h=he("router-link");return q(),oe("nav",C0,[S0,N("div",_0,[A0,N("div",k0,[fe(h,{class:"navbar-item",to:{name:"Alerts"}},{default:kt(()=>[dt("Alerts")]),_:1}),fe(h,{class:"navbar-item",to:{name:"NewRule"}},{default:kt(()=>[dt("New rule")]),_:1}),fe(h,{class:"navbar-item",to:{name:"Rules"}},{default:kt(()=>[dt("Rules")]),_:1}),fe(h,{class:"navbar-item",to:{name:"Configs"}},{default:kt(()=>[dt("Configs")]),_:1}),x0,E0])])])}const L0=ke($0,[["render",R0],["__scopeId","data-v-19d4e9a4"]]),T0=$e({name:"App",components:{Navbar:L0}}),M0={class:"section is-medium"},O0={class:"container"};function I0(e,t,n,i,d,u){const h=he("Navbar"),g=he("router-view");return q(),oe(_e,null,[fe(h),N("section",M0,[N("div",O0,[fe(g)])])],64)}const F0=ke(T0,[["render",I0]]);/*!
763
- * vue-router v4.2.5
764
- * (c) 2023 Eduardo San Martin Morote
765
- * @license MIT
766
- */const ai=typeof window<"u";function N0(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Ne=Object.assign;function Ss(e,t){const n={};for(const i in t){const d=t[i];n[i]=Pt(d)?d.map(e):e(d)}return n}const tr=()=>{},Pt=Array.isArray,P0=/\/$/,D0=e=>e.replace(P0,"");function _s(e,t,n="/"){let i,d={},u="",h="";const g=t.indexOf("#");let s=t.indexOf("?");return g<s&&g>=0&&(s=-1),s>-1&&(i=t.slice(0,s),u=t.slice(s+1,g>-1?g:t.length),d=e(u)),g>-1&&(i=i||t.slice(0,g),h=t.slice(g,t.length)),i=U0(i??t,n),{fullPath:i+(u&&"?")+u+h,path:i,query:d,hash:h}}function B0(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Hc(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function W0(e,t,n){const i=t.matched.length-1,d=n.matched.length-1;return i>-1&&i===d&&Si(t.matched[i],n.matched[d])&&Ff(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Si(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ff(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!H0(e[n],t[n]))return!1;return!0}function H0(e,t){return Pt(e)?Uc(e,t):Pt(t)?Uc(t,e):e===t}function Uc(e,t){return Pt(t)?e.length===t.length&&e.every((n,i)=>n===t[i]):e.length===1&&e[0]===t}function U0(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),i=e.split("/"),d=i[i.length-1];(d===".."||d===".")&&i.push("");let u=n.length-1,h,g;for(h=0;h<i.length;h++)if(g=i[h],g!==".")if(g==="..")u>1&&u--;else break;return n.slice(0,u).join("/")+"/"+i.slice(h-(h===i.length?1:0)).join("/")}var yr;(function(e){e.pop="pop",e.push="push"})(yr||(yr={}));var nr;(function(e){e.back="back",e.forward="forward",e.unknown=""})(nr||(nr={}));function z0(e){if(!e)if(ai){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),D0(e)}const V0=/^[^#]+#/;function j0(e,t){return e.replace(V0,"#")+t}function G0(e,t){const n=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-n.left-(t.left||0),top:i.top-n.top-(t.top||0)}}const Jo=()=>({left:window.pageXOffset,top:window.pageYOffset});function K0(e){let t;if("el"in e){const n=e.el,i=typeof n=="string"&&n.startsWith("#"),d=typeof n=="string"?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!d)return;t=G0(d,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function zc(e,t){return(history.state?history.state.position-t:-1)+e}const ca=new Map;function Y0(e,t){ca.set(e,t)}function X0(e){const t=ca.get(e);return ca.delete(e),t}let Z0=()=>location.protocol+"//"+location.host;function Nf(e,t){const{pathname:n,search:i,hash:d}=t,u=e.indexOf("#");if(u>-1){let g=d.includes(e.slice(u))?e.slice(u).length:1,s=d.slice(g);return s[0]!=="/"&&(s="/"+s),Hc(s,"")}return Hc(n,e)+i+d}function J0(e,t,n,i){let d=[],u=[],h=null;const g=({state:a})=>{const c=Nf(e,location),l=n.value,f=t.value;let m=0;if(a){if(n.value=c,t.value=a,h&&h===l){h=null;return}m=f?a.position-f.position:0}else i(c);d.forEach(v=>{v(n.value,l,{delta:m,type:yr.pop,direction:m?m>0?nr.forward:nr.back:nr.unknown})})};function s(){h=n.value}function p(a){d.push(a);const c=()=>{const l=d.indexOf(a);l>-1&&d.splice(l,1)};return u.push(c),c}function o(){const{history:a}=window;a.state&&a.replaceState(Ne({},a.state,{scroll:Jo()}),"")}function r(){for(const a of u)a();u=[],window.removeEventListener("popstate",g),window.removeEventListener("beforeunload",o)}return window.addEventListener("popstate",g),window.addEventListener("beforeunload",o,{passive:!0}),{pauseListeners:s,listen:p,destroy:r}}function Vc(e,t,n,i=!1,d=!1){return{back:e,current:t,forward:n,replaced:i,position:window.history.length,scroll:d?Jo():null}}function Q0(e){const{history:t,location:n}=window,i={value:Nf(e,n)},d={value:t.state};d.value||u(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function u(s,p,o){const r=e.indexOf("#"),a=r>-1?(n.host&&document.querySelector("base")?e:e.slice(r))+s:Z0()+e+s;try{t[o?"replaceState":"pushState"](p,"",a),d.value=p}catch(c){console.error(c),n[o?"replace":"assign"](a)}}function h(s,p){const o=Ne({},t.state,Vc(d.value.back,s,d.value.forward,!0),p,{position:d.value.position});u(s,o,!0),i.value=s}function g(s,p){const o=Ne({},d.value,t.state,{forward:s,scroll:Jo()});u(o.current,o,!0);const r=Ne({},Vc(i.value,s,null),{position:o.position+1},p);u(s,r,!1),i.value=s}return{location:i,state:d,push:g,replace:h}}function q0(e){e=z0(e);const t=Q0(e),n=J0(e,t.state,t.location,t.replace);function i(u,h=!0){h||n.pauseListeners(),history.go(u)}const d=Ne({location:"",base:e,go:i,createHref:j0.bind(null,e)},t,n);return Object.defineProperty(d,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(d,"state",{enumerable:!0,get:()=>t.state.value}),d}function eb(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),q0(e)}function tb(e){return typeof e=="string"||e&&typeof e=="object"}function Pf(e){return typeof e=="string"||typeof e=="symbol"}const vn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Df=Symbol("");var jc;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(jc||(jc={}));function _i(e,t){return Ne(new Error,{type:e,[Df]:!0},t)}function Xt(e,t){return e instanceof Error&&Df in e&&(t==null||!!(e.type&t))}const Gc="[^/]+?",nb={sensitive:!1,strict:!1,start:!0,end:!0},ib=/[.+*?^${}()[\]/\\]/g;function rb(e,t){const n=Ne({},nb,t),i=[];let d=n.start?"^":"";const u=[];for(const p of e){const o=p.length?[]:[90];n.strict&&!p.length&&(d+="/");for(let r=0;r<p.length;r++){const a=p[r];let c=40+(n.sensitive?.25:0);if(a.type===0)r||(d+="/"),d+=a.value.replace(ib,"\\$&"),c+=40;else if(a.type===1){const{value:l,repeatable:f,optional:m,regexp:v}=a;u.push({name:l,repeatable:f,optional:m});const y=v||Gc;if(y!==Gc){c+=10;try{new RegExp(`(${y})`)}catch(S){throw new Error(`Invalid custom RegExp for param "${l}" (${y}): `+S.message)}}let k=f?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;r||(k=m&&p.length<2?`(?:/${k})`:"/"+k),m&&(k+="?"),d+=k,c+=20,m&&(c+=-8),f&&(c+=-20),y===".*"&&(c+=-50)}o.push(c)}i.push(o)}if(n.strict&&n.end){const p=i.length-1;i[p][i[p].length-1]+=.7000000000000001}n.strict||(d+="/?"),n.end?d+="$":n.strict&&(d+="(?:/|$)");const h=new RegExp(d,n.sensitive?"":"i");function g(p){const o=p.match(h),r={};if(!o)return null;for(let a=1;a<o.length;a++){const c=o[a]||"",l=u[a-1];r[l.name]=c&&l.repeatable?c.split("/"):c}return r}function s(p){let o="",r=!1;for(const a of e){(!r||!o.endsWith("/"))&&(o+="/"),r=!1;for(const c of a)if(c.type===0)o+=c.value;else if(c.type===1){const{value:l,repeatable:f,optional:m}=c,v=l in p?p[l]:"";if(Pt(v)&&!f)throw new Error(`Provided param "${l}" is an array but it is not repeatable (* or + modifiers)`);const y=Pt(v)?v.join("/"):v;if(!y)if(m)a.length<2&&(o.endsWith("/")?o=o.slice(0,-1):r=!0);else throw new Error(`Missing required param "${l}"`);o+=y}}return o||"/"}return{re:h,score:i,keys:u,parse:g,stringify:s}}function ob(e,t){let n=0;for(;n<e.length&&n<t.length;){const i=t[n]-e[n];if(i)return i;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function sb(e,t){let n=0;const i=e.score,d=t.score;for(;n<i.length&&n<d.length;){const u=ob(i[n],d[n]);if(u)return u;n++}if(Math.abs(d.length-i.length)===1){if(Kc(i))return 1;if(Kc(d))return-1}return d.length-i.length}function Kc(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const ab={type:0,value:""},lb=/[a-zA-Z0-9_]/;function cb(e){if(!e)return[[]];if(e==="/")return[[ab]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(c){throw new Error(`ERR (${n})/"${p}": ${c}`)}let n=0,i=n;const d=[];let u;function h(){u&&d.push(u),u=[]}let g=0,s,p="",o="";function r(){p&&(n===0?u.push({type:0,value:p}):n===1||n===2||n===3?(u.length>1&&(s==="*"||s==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),u.push({type:1,value:p,regexp:o,repeatable:s==="*"||s==="+",optional:s==="*"||s==="?"})):t("Invalid state to consume buffer"),p="")}function a(){p+=s}for(;g<e.length;){if(s=e[g++],s==="\\"&&n!==2){i=n,n=4;continue}switch(n){case 0:s==="/"?(p&&r(),h()):s===":"?(r(),n=1):a();break;case 4:a(),n=i;break;case 1:s==="("?n=2:lb.test(s)?a():(r(),n=0,s!=="*"&&s!=="?"&&s!=="+"&&g--);break;case 2:s===")"?o[o.length-1]=="\\"?o=o.slice(0,-1)+s:n=3:o+=s;break;case 3:r(),n=0,s!=="*"&&s!=="?"&&s!=="+"&&g--,o="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${p}"`),r(),h(),d}function ub(e,t,n){const i=rb(cb(e.path),n),d=Ne(i,{record:e,parent:t,children:[],alias:[]});return t&&!d.record.aliasOf==!t.record.aliasOf&&t.children.push(d),d}function hb(e,t){const n=[],i=new Map;t=Zc({strict:!1,end:!0,sensitive:!1},t);function d(o){return i.get(o)}function u(o,r,a){const c=!a,l=fb(o);l.aliasOf=a&&a.record;const f=Zc(t,o),m=[l];if("alias"in o){const k=typeof o.alias=="string"?[o.alias]:o.alias;for(const S of k)m.push(Ne({},l,{components:a?a.record.components:l.components,path:S,aliasOf:a?a.record:l}))}let v,y;for(const k of m){const{path:S}=k;if(r&&S[0]!=="/"){const _=r.record.path,$=_[_.length-1]==="/"?"":"/";k.path=r.record.path+(S&&$+S)}if(v=ub(k,r,f),a?a.alias.push(v):(y=y||v,y!==v&&y.alias.push(v),c&&o.name&&!Xc(v)&&h(o.name)),l.children){const _=l.children;for(let $=0;$<_.length;$++)u(_[$],v,a&&a.children[$])}a=a||v,(v.record.components&&Object.keys(v.record.components).length||v.record.name||v.record.redirect)&&s(v)}return y?()=>{h(y)}:tr}function h(o){if(Pf(o)){const r=i.get(o);r&&(i.delete(o),n.splice(n.indexOf(r),1),r.children.forEach(h),r.alias.forEach(h))}else{const r=n.indexOf(o);r>-1&&(n.splice(r,1),o.record.name&&i.delete(o.record.name),o.children.forEach(h),o.alias.forEach(h))}}function g(){return n}function s(o){let r=0;for(;r<n.length&&sb(o,n[r])>=0&&(o.record.path!==n[r].record.path||!Bf(o,n[r]));)r++;n.splice(r,0,o),o.record.name&&!Xc(o)&&i.set(o.record.name,o)}function p(o,r){let a,c={},l,f;if("name"in o&&o.name){if(a=i.get(o.name),!a)throw _i(1,{location:o});f=a.record.name,c=Ne(Yc(r.params,a.keys.filter(y=>!y.optional).map(y=>y.name)),o.params&&Yc(o.params,a.keys.map(y=>y.name))),l=a.stringify(c)}else if("path"in o)l=o.path,a=n.find(y=>y.re.test(l)),a&&(c=a.parse(l),f=a.record.name);else{if(a=r.name?i.get(r.name):n.find(y=>y.re.test(r.path)),!a)throw _i(1,{location:o,currentLocation:r});f=a.record.name,c=Ne({},r.params,o.params),l=a.stringify(c)}const m=[];let v=a;for(;v;)m.unshift(v.record),v=v.parent;return{name:f,path:l,params:c,matched:m,meta:pb(m)}}return e.forEach(o=>u(o)),{addRoute:u,resolve:p,removeRoute:h,getRoutes:g,getRecordMatcher:d}}function Yc(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}function fb(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:db(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function db(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const i in e.components)t[i]=typeof n=="object"?n[i]:n;return t}function Xc(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function pb(e){return e.reduce((t,n)=>Ne(t,n.meta),{})}function Zc(e,t){const n={};for(const i in e)n[i]=i in t?t[i]:e[i];return n}function Bf(e,t){return t.children.some(n=>n===e||Bf(e,n))}const Wf=/#/g,gb=/&/g,mb=/\//g,vb=/=/g,yb=/\?/g,Hf=/\+/g,bb=/%5B/g,wb=/%5D/g,Uf=/%5E/g,$b=/%60/g,zf=/%7B/g,Cb=/%7C/g,Vf=/%7D/g,Sb=/%20/g;function hl(e){return encodeURI(""+e).replace(Cb,"|").replace(bb,"[").replace(wb,"]")}function _b(e){return hl(e).replace(zf,"{").replace(Vf,"}").replace(Uf,"^")}function ua(e){return hl(e).replace(Hf,"%2B").replace(Sb,"+").replace(Wf,"%23").replace(gb,"%26").replace($b,"`").replace(zf,"{").replace(Vf,"}").replace(Uf,"^")}function Ab(e){return ua(e).replace(vb,"%3D")}function kb(e){return hl(e).replace(Wf,"%23").replace(yb,"%3F")}function xb(e){return e==null?"":kb(e).replace(mb,"%2F")}function Co(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function Eb(e){const t={};if(e===""||e==="?")return t;const i=(e[0]==="?"?e.slice(1):e).split("&");for(let d=0;d<i.length;++d){const u=i[d].replace(Hf," "),h=u.indexOf("="),g=Co(h<0?u:u.slice(0,h)),s=h<0?null:Co(u.slice(h+1));if(g in t){let p=t[g];Pt(p)||(p=t[g]=[p]),p.push(s)}else t[g]=s}return t}function Jc(e){let t="";for(let n in e){const i=e[n];if(n=Ab(n),i==null){i!==void 0&&(t+=(t.length?"&":"")+n);continue}(Pt(i)?i.map(u=>u&&ua(u)):[i&&ua(i)]).forEach(u=>{u!==void 0&&(t+=(t.length?"&":"")+n,u!=null&&(t+="="+u))})}return t}function Rb(e){const t={};for(const n in e){const i=e[n];i!==void 0&&(t[n]=Pt(i)?i.map(d=>d==null?null:""+d):i==null?i:""+i)}return t}const Lb=Symbol(""),Qc=Symbol(""),Qo=Symbol(""),fl=Symbol(""),ha=Symbol("");function Bi(){let e=[];function t(i){return e.push(i),()=>{const d=e.indexOf(i);d>-1&&e.splice(d,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Cn(e,t,n,i,d){const u=i&&(i.enterCallbacks[d]=i.enterCallbacks[d]||[]);return()=>new Promise((h,g)=>{const s=r=>{r===!1?g(_i(4,{from:n,to:t})):r instanceof Error?g(r):tb(r)?g(_i(2,{from:t,to:r})):(u&&i.enterCallbacks[d]===u&&typeof r=="function"&&u.push(r),h())},p=e.call(i&&i.instances[d],t,n,s);let o=Promise.resolve(p);e.length<3&&(o=o.then(s)),o.catch(r=>g(r))})}function As(e,t,n,i){const d=[];for(const u of e)for(const h in u.components){let g=u.components[h];if(!(t!=="beforeRouteEnter"&&!u.instances[h]))if(Tb(g)){const p=(g.__vccOpts||g)[t];p&&d.push(Cn(p,n,i,u,h))}else{let s=g();d.push(()=>s.then(p=>{if(!p)return Promise.reject(new Error(`Couldn't resolve component "${h}" at "${u.path}"`));const o=N0(p)?p.default:p;u.components[h]=o;const a=(o.__vccOpts||o)[t];return a&&Cn(a,n,i,u,h)()}))}}return d}function Tb(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function qc(e){const t=xt(Qo),n=xt(fl),i=Ee(()=>t.resolve(nn(e.to))),d=Ee(()=>{const{matched:s}=i.value,{length:p}=s,o=s[p-1],r=n.matched;if(!o||!r.length)return-1;const a=r.findIndex(Si.bind(null,o));if(a>-1)return a;const c=eu(s[p-2]);return p>1&&eu(o)===c&&r[r.length-1].path!==c?r.findIndex(Si.bind(null,s[p-2])):a}),u=Ee(()=>d.value>-1&&Fb(n.params,i.value.params)),h=Ee(()=>d.value>-1&&d.value===n.matched.length-1&&Ff(n.params,i.value.params));function g(s={}){return Ib(s)?t[nn(e.replace)?"replace":"push"](nn(e.to)).catch(tr):Promise.resolve()}return{route:i,href:Ee(()=>i.value.href),isActive:u,isExactActive:h,navigate:g}}const Mb=$e({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:qc,setup(e,{slots:t}){const n=Mi(qc(e)),{options:i}=xt(Qo),d=Ee(()=>({[tu(e.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[tu(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const u=t.default&&t.default(n);return e.custom?u:Ii("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:d.value},u)}}}),Ob=Mb;function Ib(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 Fb(e,t){for(const n in t){const i=t[n],d=e[n];if(typeof i=="string"){if(i!==d)return!1}else if(!Pt(d)||d.length!==i.length||i.some((u,h)=>u!==d[h]))return!1}return!0}function eu(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const tu=(e,t,n)=>e??t??n,Nb=$e({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const i=xt(ha),d=Ee(()=>e.route||i.value),u=xt(Qc,0),h=Ee(()=>{let p=nn(u);const{matched:o}=d.value;let r;for(;(r=o[p])&&!r.components;)p++;return p}),g=Ee(()=>d.value.matched[h.value]);Ji(Qc,Ee(()=>h.value+1)),Ji(Lb,g),Ji(ha,d);const s=Ke();return Ye(()=>[s.value,g.value,e.name],([p,o,r],[a,c,l])=>{o&&(o.instances[r]=p,c&&c!==o&&p&&p===a&&(o.leaveGuards.size||(o.leaveGuards=c.leaveGuards),o.updateGuards.size||(o.updateGuards=c.updateGuards))),p&&o&&(!c||!Si(o,c)||!a)&&(o.enterCallbacks[r]||[]).forEach(f=>f(p))},{flush:"post"}),()=>{const p=d.value,o=e.name,r=g.value,a=r&&r.components[o];if(!a)return nu(n.default,{Component:a,route:p});const c=r.props[o],l=c?c===!0?p.params:typeof c=="function"?c(p):c:null,m=Ii(a,Ne({},l,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(r.instances[o]=null)},ref:s}));return nu(n.default,{Component:m,route:p})||m}}});function nu(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Pb=Nb;function Db(e){const t=hb(e.routes,e),n=e.parseQuery||Eb,i=e.stringifyQuery||Jc,d=e.history,u=Bi(),h=Bi(),g=Bi(),s=dh(vn);let p=vn;ai&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const o=Ss.bind(null,z=>""+z),r=Ss.bind(null,xb),a=Ss.bind(null,Co);function c(z,X){let Y,V;return Pf(z)?(Y=t.getRecordMatcher(z),V=X):V=z,t.addRoute(V,Y)}function l(z){const X=t.getRecordMatcher(z);X&&t.removeRoute(X)}function f(){return t.getRoutes().map(z=>z.record)}function m(z){return!!t.getRecordMatcher(z)}function v(z,X){if(X=Ne({},X||s.value),typeof z=="string"){const G=_s(n,z,X.path),J=t.resolve({path:G.path},X),te=d.createHref(G.fullPath);return Ne(G,J,{params:a(J.params),hash:Co(G.hash),redirectedFrom:void 0,href:te})}let Y;if("path"in z)Y=Ne({},z,{path:_s(n,z.path,X.path).path});else{const G=Ne({},z.params);for(const J in G)G[J]==null&&delete G[J];Y=Ne({},z,{params:r(G)}),X.params=r(X.params)}const V=t.resolve(Y,X),ee=z.hash||"";V.params=o(a(V.params));const P=B0(i,Ne({},z,{hash:_b(ee),path:V.path})),B=d.createHref(P);return Ne({fullPath:P,hash:ee,query:i===Jc?Rb(z.query):z.query||{}},V,{redirectedFrom:void 0,href:B})}function y(z){return typeof z=="string"?_s(n,z,s.value.path):Ne({},z)}function k(z,X){if(p!==z)return _i(8,{from:X,to:z})}function S(z){return R(z)}function _(z){return S(Ne(y(z),{replace:!0}))}function $(z){const X=z.matched[z.matched.length-1];if(X&&X.redirect){const{redirect:Y}=X;let V=typeof Y=="function"?Y(z):Y;return typeof V=="string"&&(V=V.includes("?")||V.includes("#")?V=y(V):{path:V},V.params={}),Ne({query:z.query,hash:z.hash,params:"path"in V?{}:z.params},V)}}function R(z,X){const Y=p=v(z),V=s.value,ee=z.state,P=z.force,B=z.replace===!0,G=$(Y);if(G)return R(Ne(y(G),{state:typeof G=="object"?Ne({},ee,G.state):ee,force:P,replace:B}),X||Y);const J=Y;J.redirectedFrom=X;let te;return!P&&W0(i,V,Y)&&(te=_i(16,{to:J,from:V}),W(V,V,!0,!1)),(te?Promise.resolve(te):M(J,V)).catch(ie=>Xt(ie)?Xt(ie,2)?ie:D(ie):I(ie,J,V)).then(ie=>{if(ie){if(Xt(ie,2))return R(Ne({replace:B},y(ie.to),{state:typeof ie.to=="object"?Ne({},ee,ie.to.state):ee,force:P}),X||J)}else ie=A(J,V,!0,B,ee);return b(J,V,ie),ie})}function T(z,X){const Y=k(z,X);return Y?Promise.reject(Y):Promise.resolve()}function x(z){const X=U.values().next().value;return X&&typeof X.runWithContext=="function"?X.runWithContext(z):z()}function M(z,X){let Y;const[V,ee,P]=Bb(z,X);Y=As(V.reverse(),"beforeRouteLeave",z,X);for(const G of V)G.leaveGuards.forEach(J=>{Y.push(Cn(J,z,X))});const B=T.bind(null,z,X);return Y.push(B),Z(Y).then(()=>{Y=[];for(const G of u.list())Y.push(Cn(G,z,X));return Y.push(B),Z(Y)}).then(()=>{Y=As(ee,"beforeRouteUpdate",z,X);for(const G of ee)G.updateGuards.forEach(J=>{Y.push(Cn(J,z,X))});return Y.push(B),Z(Y)}).then(()=>{Y=[];for(const G of P)if(G.beforeEnter)if(Pt(G.beforeEnter))for(const J of G.beforeEnter)Y.push(Cn(J,z,X));else Y.push(Cn(G.beforeEnter,z,X));return Y.push(B),Z(Y)}).then(()=>(z.matched.forEach(G=>G.enterCallbacks={}),Y=As(P,"beforeRouteEnter",z,X),Y.push(B),Z(Y))).then(()=>{Y=[];for(const G of h.list())Y.push(Cn(G,z,X));return Y.push(B),Z(Y)}).catch(G=>Xt(G,8)?G:Promise.reject(G))}function b(z,X,Y){g.list().forEach(V=>x(()=>V(z,X,Y)))}function A(z,X,Y,V,ee){const P=k(z,X);if(P)return P;const B=X===vn,G=ai?history.state:{};Y&&(V||B?d.replace(z.fullPath,Ne({scroll:B&&G&&G.scroll},ee)):d.push(z.fullPath,ee)),s.value=z,W(z,X,Y,B),D()}let C;function w(){C||(C=d.listen((z,X,Y)=>{if(!K.listening)return;const V=v(z),ee=$(V);if(ee){R(Ne(ee,{replace:!0}),V).catch(tr);return}p=V;const P=s.value;ai&&Y0(zc(P.fullPath,Y.delta),Jo()),M(V,P).catch(B=>Xt(B,12)?B:Xt(B,2)?(R(B.to,V).then(G=>{Xt(G,20)&&!Y.delta&&Y.type===yr.pop&&d.go(-1,!1)}).catch(tr),Promise.reject()):(Y.delta&&d.go(-Y.delta,!1),I(B,V,P))).then(B=>{B=B||A(V,P,!1),B&&(Y.delta&&!Xt(B,8)?d.go(-Y.delta,!1):Y.type===yr.pop&&Xt(B,20)&&d.go(-1,!1)),b(V,P,B)}).catch(tr)}))}let E=Bi(),L=Bi(),O;function I(z,X,Y){D(z);const V=L.list();return V.length?V.forEach(ee=>ee(z,X,Y)):console.error(z),Promise.reject(z)}function F(){return O&&s.value!==vn?Promise.resolve():new Promise((z,X)=>{E.add([z,X])})}function D(z){return O||(O=!z,w(),E.list().forEach(([X,Y])=>z?Y(z):X()),E.reset()),z}function W(z,X,Y,V){const{scrollBehavior:ee}=e;if(!ai||!ee)return Promise.resolve();const P=!Y&&X0(zc(z.fullPath,0))||(V||!Y)&&history.state&&history.state.scroll||null;return jt().then(()=>ee(z,X,P)).then(B=>B&&K0(B)).catch(B=>I(B,z,X))}const j=z=>d.go(z);let H;const U=new Set,K={currentRoute:s,listening:!0,addRoute:c,removeRoute:l,hasRoute:m,getRoutes:f,resolve:v,options:e,push:S,replace:_,go:j,back:()=>j(-1),forward:()=>j(1),beforeEach:u.add,beforeResolve:h.add,afterEach:g.add,onError:L.add,isReady:F,install(z){const X=this;z.component("RouterLink",Ob),z.component("RouterView",Pb),z.config.globalProperties.$router=X,Object.defineProperty(z.config.globalProperties,"$route",{enumerable:!0,get:()=>nn(s)}),ai&&!H&&s.value===vn&&(H=!0,S(d.location).catch(ee=>{}));const Y={};for(const ee in vn)Object.defineProperty(Y,ee,{get:()=>s.value[ee],enumerable:!0});z.provide(Qo,X),z.provide(fl,Ha(Y)),z.provide(ha,s);const V=z.unmount;U.add(z),z.unmount=function(){U.delete(z),U.size<1&&(p=vn,C&&C(),C=null,s.value=vn,H=!1,O=!1),V()}}};function Z(z){return z.reduce((X,Y)=>X.then(()=>x(Y)),Promise.resolve())}return K}function Bb(e,t){const n=[],i=[],d=[],u=Math.max(t.matched.length,e.matched.length);for(let h=0;h<u;h++){const g=t.matched[h];g&&(e.matched.find(p=>Si(p,g))?i.push(g):n.push(g));const s=e.matched[h];s&&(t.matched.find(p=>Si(p,s))||d.push(s))}return[n,i,d]}function Er(){return xt(Qo)}function Wb(){return xt(fl)}function jf(e){return Da()?(eh(e),!0):!1}function So(e){return typeof e=="function"?e():nn(e)}const Gf=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Hb=()=>{};function Ub(e){return e||Lt()}function zb(...e){if(e.length!==1)return ur(...e);const t=e[0];return typeof t=="function"?No(Ga(()=>({get:t,set:Hb}))):Ke(t)}function Vb(e,t){const n=Ub(t);n&&Oi(e,n)}function jb(e){var t;const n=So(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Gb=Gf?window:void 0,Kb=Gf?window.document:void 0;function Yb(){const e=Ke(!1);return Lt()&&tt(()=>{e.value=!0}),e}function Xb(e){const t=Yb();return Ee(()=>(t.value,!!e()))}function Zb(e,t,n={}){const{window:i=Gb,...d}=n;let u;const h=Xb(()=>i&&"MutationObserver"in i),g=()=>{u&&(u.disconnect(),u=void 0)},s=Ye(()=>jb(e),r=>{g(),h.value&&i&&r&&(u=new MutationObserver(t),u.observe(r,d))},{immediate:!0}),p=()=>u==null?void 0:u.takeRecords(),o=()=>{g(),s()};return jf(o),{isSupported:h,stop:o,takeRecords:p}}function ii(e=null,t={}){var n,i,d;const{document:u=Kb,restoreOnUnmount:h=r=>r}=t,g=(n=u==null?void 0:u.title)!=null?n:"",s=zb((i=e??(u==null?void 0:u.title))!=null?i:null),p=e&&typeof e=="function";function o(r){if(!("titleTemplate"in t))return r;const a=t.titleTemplate||"%s";return typeof a=="function"?a(r):So(a).replace(/%s/g,r)}return Ye(s,(r,a)=>{r!==a&&u&&(u.title=o(typeof r=="string"?r:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&u&&!p&&Zb((d=u.head)==null?void 0:d.querySelector("title"),()=>{u&&u.title!==s.value&&(s.value=o(u.title))},{childList:!0}),Vb(()=>{if(h){const r=h(g,s.value||"");r!=null&&u&&(u.title=r)}}),s}const ks=new WeakMap;function At(e,t,n={}){const{mode:i="replace",route:d=Wb(),router:u=Er(),transform:h=r=>r}=n;ks.has(u)||ks.set(u,new Map);const g=ks.get(u);let s=d.query[e];jf(()=>{s=void 0});let p;const o=Ga((r,a)=>(p=a,{get(){return r(),h(s!==void 0?s:So(t))},set(c){s!==c&&(s=c,g.set(e,c),a(),jt(()=>{if(g.size===0)return;const l=Object.fromEntries(g.entries());g.clear();const{params:f,query:m,hash:v}=d;u[So(i)]({params:f,query:{...m,...l},hash:v})}))}}));return Ye(()=>d.query[e],r=>{s=r,p()},{flush:"sync"}),o}/*! CAF: shared.mjs
767
- v15.0.1 (c) 2022 Kyle Simpson
768
- MIT License: http://getify.mit-license.org
769
- */const en=Symbol("Cleanup Function"),Kf=Symbol("Timeout Token"),ui=Symbol("Signal Reason"),st=Symbol("Unset"),[io,Jb]=function(){var t=new AbortController,n=!!Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t.signal),"reason");try{t.abort()}catch{}return[n,dl(t.signal.reason)]}();class Fn{constructor(t=new AbortController){var n;this.controller=t,this.signal=t.signal,this.signal[ui]=st;var i=(d,u)=>{var h=()=>{if(u&&this.signal){let g=qo(this.signal);this._trackSignalReason(g),u(g!==st?g:void 0)}u=null};this.signal.addEventListener("abort",h,!1),n=()=>{this.signal&&(this.signal.removeEventListener("abort",h,!1),this.signal.pr&&(this.signal.pr[en]=null)),h=null}};this.signal.pr=new Promise(i),this.signal.pr[en]=n,this.signal.pr.catch(n),i=n=null}abort(...t){var n=t.length>0?t[0]:st;this._trackSignalReason(n),this.controller&&(io&&n!==st?this.controller.abort(n):this.controller.abort())}discard(){this.signal&&(this.signal.pr&&(this.signal.pr[en]&&this.signal.pr[en](),this.signal.pr=null),delete this.signal[ui],io||(this.signal.reason=null),this.signal=null),this.controller=null}_trackSignalReason(t){this.signal&&t!==st&&(io||"reason"in this.signal||(this.signal.reason=t),this.signal[ui]===st&&(this.signal[ui]=t))}}function qo(e){return e&&e.aborted?io&&Jb?dl(e.reason)?st:e.reason:ui in e?e[ui]:st:st}function Yf(e){if(e.pr)return e.pr;var t,n=new Promise(function(d,u){t=()=>{if(u&&e){let h=qo(e);u(h!==st?h:void 0)}u=null},e.addEventListener("abort",t,!1)});return n[en]=function(){e&&(e.removeEventListener("abort",t,!1),e=null),n&&(n=n[en]=t=null)},n.catch(n[en]),n}function Xf(e){e instanceof AbortController&&(e=new Fn(e));var t=e&&e instanceof Fn?e.signal:e;return{tokenOrSignal:e,signal:t,signalPr:Yf(t)}}function Qb(e){return typeof e=="function"}function dl(e){return typeof e=="object"&&e instanceof Error&&e.name=="AbortError"}function es(e,t){dl(t)||t===st?e.abort():e.abort(t)}/*! CAF: caf.mjs
770
- v15.0.1 (c) 2022 Kyle Simpson
771
- MIT License: http://getify.mit-license.org
772
- */const qb=Object.assign(ew,{cancelToken:Fn,delay:Zf,timeout:tw,signalRace:nw,signalAll:iw,tokenCycle:rw});function ew(e){return function(n,...i){var d,u;if({tokenOrSignal:n,signal:d,signalPr:u}=Xf(n),d.aborted)return u;var h=u.catch(function(r){var a=qo(d);a=a!==st?a:r;try{var c=g.return();throw c.value!==void 0?c.value:a!==st?a:void 0}finally{g=s=h=p=null}}),{it:g,result:s}=ow.call(this,e,d,...i),p=Promise.race([s,h]);if(n!==d&&n[Kf]){let o=function(a){es(n,a),Qb(n.discard)&&n.discard(),n=o=null};p.then(o,o)}else p.catch(()=>{}),n=null;return i=null,p}}function Zf(e,t){var n,i;return typeof e=="number"&&typeof t!="number"&&([t,e]=[e,t]),e&&({tokenOrSignal:e,signal:n,signalPr:i}=Xf(e)),n&&n.aborted?i:new Promise(function(u,h){n&&(i.catch(function(){if(h&&n&&g){let p=qo(n);clearTimeout(g),h(p!==st?p:`delay (${t}) interrupted`),u=h=g=n=null}}),i=null);var g=setTimeout(function(){u(`delayed: ${t}`),u=h=g=n=null},t)})}function tw(e,t="Timeout"){e=Number(e)||0;var n=new Fn;return Zf(n.signal,e).then(()=>i(t),i),Object.defineProperty(n,Kf,{value:!0,writable:!1,enumerable:!1,configurable:!1}),n;function i(...d){es(n,d.length>0?d[0]:st),n.discard(),n=null}}function Jf(e){return e.reduce(function(n,i){var d=Yf(i);return n[0].push(d),i.pr||n[1].push(d),n},[[],[]])}function Qf(e,t,n){e.then(function(d){es(t,d),t.discard(),t=null}).then(function(){for(let d of n)d[en]&&d[en]();n=null})}function qf(e){return e.catch(t=>t)}function nw(e){var t=new Fn,[n,i]=Jf(e);return Qf(qf(Promise.race(n)),t,i),t.signal}function iw(e){var t=new Fn,[n,i]=Jf(e);return Qf(Promise.all(n.map(qf)),t,i),t.signal}function rw(){var e;return function(...n){return e&&(es(e,n.length>0?n[0]:st),e.discard()),e=new Fn}}function ow(e,...t){var n=e.apply(this,t);return e=t=null,{it:n,result:function i(d){try{var u=n.next(d);d=null}catch(h){return Promise.reject(h)}return function h(g){var s=Promise.resolve(g.value);return g.done?n=null:(s=s.then(i,function(o){return Promise.resolve(n.throw(o)).then(h)})).catch(function(){n=null}),g=null,s}(u)}()}}function fa(){fa=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,i=typeof Symbol=="function"?Symbol:{},d=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",h=i.toStringTag||"@@toStringTag";function g(M,b,A){return Object.defineProperty(M,b,{value:A,enumerable:!0,configurable:!0,writable:!0}),M[b]}try{g({},"")}catch{g=function(b,A,C){return b[A]=C}}function s(M,b,A,C){var w=Object.create((b&&b.prototype instanceof r?b:r).prototype),E=new R(C||[]);return w._invoke=function(L,O,I){var F="suspendedStart";return function(D,W){if(F==="executing")throw new Error("Generator is already running");if(F==="completed"){if(D==="throw")throw W;return{value:void 0,done:!0}}for(I.method=D,I.arg=W;;){var j=I.delegate;if(j){var H=S(j,I);if(H){if(H===o)continue;return H}}if(I.method==="next")I.sent=I._sent=I.arg;else if(I.method==="throw"){if(F==="suspendedStart")throw F="completed",I.arg;I.dispatchException(I.arg)}else I.method==="return"&&I.abrupt("return",I.arg);F="executing";var U=p(L,O,I);if(U.type==="normal"){if(F=I.done?"completed":"suspendedYield",U.arg===o)continue;return{value:U.arg,done:I.done}}U.type==="throw"&&(F="completed",I.method="throw",I.arg=U.arg)}}}(M,A,E),w}function p(M,b,A){try{return{type:"normal",arg:M.call(b,A)}}catch(C){return{type:"throw",arg:C}}}e.wrap=s;var o={};function r(){}function a(){}function c(){}var l={};g(l,d,function(){return this});var f=Object.getPrototypeOf,m=f&&f(f(T([])));m&&m!==t&&n.call(m,d)&&(l=m);var v=c.prototype=r.prototype=Object.create(l);function y(M){["next","throw","return"].forEach(function(b){g(M,b,function(A){return this._invoke(b,A)})})}function k(M,b){function A(w,E,L,O){var I=p(M[w],M,E);if(I.type!=="throw"){var F=I.arg,D=F.value;return D&&typeof D=="object"&&n.call(D,"__await")?b.resolve(D.__await).then(function(W){A("next",W,L,O)},function(W){A("throw",W,L,O)}):b.resolve(D).then(function(W){F.value=W,L(F)},function(W){return A("throw",W,L,O)})}O(I.arg)}var C;this._invoke=function(w,E){function L(){return new b(function(O,I){A(w,E,O,I)})}return C=C?C.then(L,L):L()}}function S(M,b){var A=M.iterator[b.method];if(A===void 0){if(b.delegate=null,b.method==="throw"){if(M.iterator.return&&(b.method="return",b.arg=void 0,S(M,b),b.method==="throw"))return o;b.method="throw",b.arg=new TypeError("The iterator does not provide a 'throw' method")}return o}var C=p(A,M.iterator,b.arg);if(C.type==="throw")return b.method="throw",b.arg=C.arg,b.delegate=null,o;var w=C.arg;return w?w.done?(b[M.resultName]=w.value,b.next=M.nextLoc,b.method!=="return"&&(b.method="next",b.arg=void 0),b.delegate=null,o):w:(b.method="throw",b.arg=new TypeError("iterator result is not an object"),b.delegate=null,o)}function _(M){var b={tryLoc:M[0]};1 in M&&(b.catchLoc=M[1]),2 in M&&(b.finallyLoc=M[2],b.afterLoc=M[3]),this.tryEntries.push(b)}function $(M){var b=M.completion||{};b.type="normal",delete b.arg,M.completion=b}function R(M){this.tryEntries=[{tryLoc:"root"}],M.forEach(_,this),this.reset(!0)}function T(M){if(M){var b=M[d];if(b)return b.call(M);if(typeof M.next=="function")return M;if(!isNaN(M.length)){var A=-1,C=function w(){for(;++A<M.length;)if(n.call(M,A))return w.value=M[A],w.done=!1,w;return w.value=void 0,w.done=!0,w};return C.next=C}}return{next:x}}function x(){return{value:void 0,done:!0}}return a.prototype=c,g(v,"constructor",c),g(c,"constructor",a),a.displayName=g(c,h,"GeneratorFunction"),e.isGeneratorFunction=function(M){var b=typeof M=="function"&&M.constructor;return!!b&&(b===a||(b.displayName||b.name)==="GeneratorFunction")},e.mark=function(M){return Object.setPrototypeOf?Object.setPrototypeOf(M,c):(M.__proto__=c,g(M,h,"GeneratorFunction")),M.prototype=Object.create(v),M},e.awrap=function(M){return{__await:M}},y(k.prototype),g(k.prototype,u,function(){return this}),e.AsyncIterator=k,e.async=function(M,b,A,C,w){w===void 0&&(w=Promise);var E=new k(s(M,b,A,C),w);return e.isGeneratorFunction(b)?E:E.next().then(function(L){return L.done?L.value:E.next()})},y(v),g(v,h,"Generator"),g(v,d,function(){return this}),g(v,"toString",function(){return"[object Generator]"}),e.keys=function(M){var b=[];for(var A in M)b.push(A);return b.reverse(),function C(){for(;b.length;){var w=b.pop();if(w in M)return C.value=w,C.done=!1,C}return C.done=!0,C}},e.values=T,R.prototype={constructor:R,reset:function(M){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach($),!M)for(var b in this)b.charAt(0)==="t"&&n.call(this,b)&&!isNaN(+b.slice(1))&&(this[b]=void 0)},stop:function(){this.done=!0;var M=this.tryEntries[0].completion;if(M.type==="throw")throw M.arg;return this.rval},dispatchException:function(M){if(this.done)throw M;var b=this;function A(I,F){return E.type="throw",E.arg=M,b.next=I,F&&(b.method="next",b.arg=void 0),!!F}for(var C=this.tryEntries.length-1;C>=0;--C){var w=this.tryEntries[C],E=w.completion;if(w.tryLoc==="root")return A("end");if(w.tryLoc<=this.prev){var L=n.call(w,"catchLoc"),O=n.call(w,"finallyLoc");if(L&&O){if(this.prev<w.catchLoc)return A(w.catchLoc,!0);if(this.prev<w.finallyLoc)return A(w.finallyLoc)}else if(L){if(this.prev<w.catchLoc)return A(w.catchLoc,!0)}else{if(!O)throw new Error("try statement without catch or finally");if(this.prev<w.finallyLoc)return A(w.finallyLoc)}}}},abrupt:function(M,b){for(var A=this.tryEntries.length-1;A>=0;--A){var C=this.tryEntries[A];if(C.tryLoc<=this.prev&&n.call(C,"finallyLoc")&&this.prev<C.finallyLoc){var w=C;break}}w&&(M==="break"||M==="continue")&&w.tryLoc<=b&&b<=w.finallyLoc&&(w=null);var E=w?w.completion:{};return E.type=M,E.arg=b,w?(this.method="next",this.next=w.finallyLoc,o):this.complete(E)},complete:function(M,b){if(M.type==="throw")throw M.arg;return M.type==="break"||M.type==="continue"?this.next=M.arg:M.type==="return"?(this.rval=this.arg=M.arg,this.method="return",this.next="end"):M.type==="normal"&&b&&(this.next=b),o},finish:function(M){for(var b=this.tryEntries.length-1;b>=0;--b){var A=this.tryEntries[b];if(A.finallyLoc===M)return this.complete(A.completion,A.afterLoc),$(A),o}},catch:function(M){for(var b=this.tryEntries.length-1;b>=0;--b){var A=this.tryEntries[b];if(A.tryLoc===M){var C=A.completion;if(C.type==="throw"){var w=C.arg;$(A)}return w}}throw new Error("illegal catch attempt")},delegateYield:function(M,b,A){return this.delegate={iterator:T(M),resultName:b,nextLoc:A},this.method==="next"&&(this.arg=void 0),o}},e}var sw=function(e){return e._runningInstances.length>=e._maxConcurrency},aw=function(e){var t=e._activeInstances[0];t&&t.cancel()},lw=function(e){e._enqueuedInstances.forEach(function(t){t.isEnqueued=!1,t.isDropped=!0})};function Wi(e,t){return t?function(n,i,d){return Ee(function(){return n().filter(function(u){return u[i]})})}(function(){return e()._instances},t):Ee(function(){return[]})}function cw(e){return Ee(function(){return e().length})}function iu(e){return Ee(function(){var t=e();return t[t.length-1]})}function uw(e){return Ee(function(){return e()[0]})}function ed(e){return Mi(e)}function ut(e){return fw(fa().mark(function t(n){var i=arguments;return fa().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",e.apply(void 0,[n].concat([].slice.call(i,1))));case 1:case"end":return d.stop()}},t)}))}function hw(e,t,n){var i,d,u={id:n.id,isDropped:!1,isEnqueued:!1,hasStarted:!1,isRunning:!1,isFinished:!1,isCanceling:!1,isCanceled:Ee(function(){return h.isCanceling&&h.isFinished}),isActive:Ee(function(){return h.isRunning&&!h.isCanceling}),isSuccessful:!1,isNotDropped:Ee(function(){return!h.isDropped}),isError:Ee(function(){return!!h.error}),status:Ee(function(){var s=[[h.isRunning,"running"],[h.isEnqueued,"enqueued"],[h.isCanceled,"canceled"],[h.isCanceling,"canceling"],[h.isDropped,"dropped"],[h.isError,"error"],[h.isSuccessful,"success"]].find(function(p){return p[0]});return s&&s[1]}),error:null,value:null,cancel:function(s){if((s===void 0?{force:!1}:s).force||(h.isCanceling=!0,h.isEnqueued&&(h.isFinished=!0),h.isEnqueued=!1),h.token&&h._canAbort){h.token.abort("cancel");try{h.token.discard()}catch{}h.token=void 0,h._canAbort=!1}},canceledOn:function(s){return s.pr.catch(function(p){h.cancel()}),h},_run:function(){(function(s,p,o,r){var a=new Fn,c=qb(p,a);function l(){s.isRunning=!1,s.isFinished=!0}s.token=a,s.hasStarted=!0,s.isRunning=!0,s.isEnqueued=!1,c.call.apply(c,[s,a].concat(o)).then(function(f){s.value=f,s.isSuccessful=!0,l(),s._deferredObject.resolve(f),s._canAbort=!1,r.onFinish(s)}).catch(function(f){f!=="cancel"&&(s.error=f),l(),s._shouldThrow&&s._deferredObject.reject(f),r.onFinish(s)})})(h,e,t,n)},_handled:!0,_deferredObject:(i={},d=new Promise(function(s,p){i.resolve=s,i.reject=p}),i.promise=d,i),_shouldThrow:!1,_canAbort:!0,then:function(s,p){return h._shouldThrow=!0,h._deferredObject.promise.then(s,p)},catch:function(s,p){return p===void 0&&(p=!0),h._shouldThrow=p,h._deferredObject.promise.catch(s)},finally:function(s){return h._shouldThrow=!0,h._deferredObject.promise.finally(s)}},h=ed(u),g=n.modifiers;return g.drop?h.isDropped=!0:g.enqueue?h.isEnqueued=!0:h._run(),h}function fw(e,t){t===void 0&&(t={cancelOnUnmount:!0});var n=Lt(),i=Qu(),d={_isRestartable:!1,_isDropping:!1,_isEnqueuing:!1,_isKeepingLatest:!1,_maxConcurrency:1,_hasConcurrency:Ee(function(){return u._isRestartable||u._isDropping||u._isEnqueuing||u._isKeepingLatest}),isIdle:Ee(function(){return!u.isRunning}),isRunning:Ee(function(){return!!u._instances.find(function(h){return h.isRunning})}),isError:Ee(function(){return!(!u.last||!u.last.isError)}),_instances:[],_successfulInstances:Wi(function(){return u},"isSuccessful"),_runningInstances:Wi(function(){return u},"isRunning"),_enqueuedInstances:Wi(function(){return u},"isEnqueued"),_notDroppedInstances:Wi(function(){return u},"isNotDropped"),_activeInstances:Wi(function(){return u},"isActive"),performCount:cw(function(){return u._instances}),last:iu(function(){return u._notDroppedInstances}),lastSuccessful:iu(function(){return u._successfulInstances}),firstEnqueued:uw(function(){return u._enqueuedInstances}),cancelAll:function(h){var g=(h===void 0?{force:!1}:h).force;u._instances.forEach(function(s){try{(g||!s.isDropped&&!s.isFinished)&&s.cancel({force:g})}catch(p){if(p!=="cancel")throw p}})},perform:function(){var h=arguments,g={enqueue:!1,drop:!1};u._hasConcurrency&&sw(u)&&(u._isDropping&&(g.drop=!0),u._isRestartable&&aw(u),u._isKeepingLatest&&lw(u),(u._isEnqueuing||u._isKeepingLatest)&&(g.enqueue=!0));var s=function(){return dw(u)},p=function(){return hw(e,[].slice.call(h),{modifiers:g,onFinish:s,scope:i,id:u._instances.length+1})},o=i.active?i.run(p):p();return i.active||console.warn("Task instance has been created in inactive scope. Perhaps youre creating task out of setup?"),u._instances=[].concat(u._instances,[o]),o},clear:function(){this.cancelAll({force:!0}),this._instances=[]},destroy:function(){i.stop(),this.clear()},restartable:function(){return u._resetModifierFlags(),u._isRestartable=!0,u},drop:function(){return u._resetModifierFlags(),u._isDropping=!0,u},enqueue:function(){return u._resetModifierFlags(),u._isEnqueuing=!0,u},keepLatest:function(){return u._resetModifierFlags(),u._isKeepingLatest=!0,u},_resetModifierFlags:function(){u._isKeepingLatest=!1,u._isRestartable=!1,u._isEnqueuing=!1,u._isDropping=!1},maxConcurrency:function(h){return u._maxConcurrency=h,u}},u=ed(d);return n&&t.cancelOnUnmount&&Oi(function(){u._instances&&u.destroy()}),u}function dw(e){if(e._isEnqueuing||e._isKeepingLatest){var t=e.firstEnqueued;t&&t._run()}}function td(e,t){return function(){return e.apply(t,arguments)}}const{toString:pw}=Object.prototype,{getPrototypeOf:pl}=Object,ts=(e=>t=>{const n=pw.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Yt=e=>(e=e.toLowerCase(),t=>ts(t)===e),ns=e=>t=>typeof t===e,{isArray:Fi}=Array,br=ns("undefined");function gw(e){return e!==null&&!br(e)&&e.constructor!==null&&!br(e.constructor)&&Rt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const nd=Yt("ArrayBuffer");function mw(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&nd(e.buffer),t}const vw=ns("string"),Rt=ns("function"),id=ns("number"),is=e=>e!==null&&typeof e=="object",yw=e=>e===!0||e===!1,ro=e=>{if(ts(e)!=="object")return!1;const t=pl(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},bw=Yt("Date"),ww=Yt("File"),$w=Yt("Blob"),Cw=Yt("FileList"),Sw=e=>is(e)&&Rt(e.pipe),_w=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Rt(e.append)&&((t=ts(e))==="formdata"||t==="object"&&Rt(e.toString)&&e.toString()==="[object FormData]"))},Aw=Yt("URLSearchParams"),kw=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Rr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let i,d;if(typeof e!="object"&&(e=[e]),Fi(e))for(i=0,d=e.length;i<d;i++)t.call(null,e[i],i,e);else{const u=n?Object.getOwnPropertyNames(e):Object.keys(e),h=u.length;let g;for(i=0;i<h;i++)g=u[i],t.call(null,e[g],g,e)}}function rd(e,t){t=t.toLowerCase();const n=Object.keys(e);let i=n.length,d;for(;i-- >0;)if(d=n[i],t===d.toLowerCase())return d;return null}const od=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,sd=e=>!br(e)&&e!==od;function da(){const{caseless:e}=sd(this)&&this||{},t={},n=(i,d)=>{const u=e&&rd(t,d)||d;ro(t[u])&&ro(i)?t[u]=da(t[u],i):ro(i)?t[u]=da({},i):Fi(i)?t[u]=i.slice():t[u]=i};for(let i=0,d=arguments.length;i<d;i++)arguments[i]&&Rr(arguments[i],n);return t}const xw=(e,t,n,{allOwnKeys:i}={})=>(Rr(t,(d,u)=>{n&&Rt(d)?e[u]=td(d,n):e[u]=d},{allOwnKeys:i}),e),Ew=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Rw=(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Lw=(e,t,n,i)=>{let d,u,h;const g={};if(t=t||{},e==null)return t;do{for(d=Object.getOwnPropertyNames(e),u=d.length;u-- >0;)h=d[u],(!i||i(h,e,t))&&!g[h]&&(t[h]=e[h],g[h]=!0);e=n!==!1&&pl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Tw=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return i!==-1&&i===n},Mw=e=>{if(!e)return null;if(Fi(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},Ow=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&pl(Uint8Array)),Iw=(e,t)=>{const i=(e&&e[Symbol.iterator]).call(e);let d;for(;(d=i.next())&&!d.done;){const u=d.value;t.call(e,u[0],u[1])}},Fw=(e,t)=>{let n;const i=[];for(;(n=e.exec(t))!==null;)i.push(n);return i},Nw=Yt("HTMLFormElement"),Pw=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,d){return i.toUpperCase()+d}),ru=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Dw=Yt("RegExp"),ad=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};Rr(n,(d,u)=>{let h;(h=t(d,u,e))!==!1&&(i[u]=h||d)}),Object.defineProperties(e,i)},Bw=e=>{ad(e,(t,n)=>{if(Rt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=e[n];if(Rt(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Ww=(e,t)=>{const n={},i=d=>{d.forEach(u=>{n[u]=!0})};return Fi(e)?i(e):i(String(e).split(t)),n},Hw=()=>{},Uw=(e,t)=>(e=+e,Number.isFinite(e)?e:t),xs="abcdefghijklmnopqrstuvwxyz",ou="0123456789",ld={DIGIT:ou,ALPHA:xs,ALPHA_DIGIT:xs+xs.toUpperCase()+ou},zw=(e=16,t=ld.ALPHA_DIGIT)=>{let n="";const{length:i}=t;for(;e--;)n+=t[Math.random()*i|0];return n};function Vw(e){return!!(e&&Rt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const jw=e=>{const t=new Array(10),n=(i,d)=>{if(is(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[d]=i;const u=Fi(i)?[]:{};return Rr(i,(h,g)=>{const s=n(h,d+1);!br(s)&&(u[g]=s)}),t[d]=void 0,u}}return i};return n(e,0)},Gw=Yt("AsyncFunction"),Kw=e=>e&&(is(e)||Rt(e))&&Rt(e.then)&&Rt(e.catch),ne={isArray:Fi,isArrayBuffer:nd,isBuffer:gw,isFormData:_w,isArrayBufferView:mw,isString:vw,isNumber:id,isBoolean:yw,isObject:is,isPlainObject:ro,isUndefined:br,isDate:bw,isFile:ww,isBlob:$w,isRegExp:Dw,isFunction:Rt,isStream:Sw,isURLSearchParams:Aw,isTypedArray:Ow,isFileList:Cw,forEach:Rr,merge:da,extend:xw,trim:kw,stripBOM:Ew,inherits:Rw,toFlatObject:Lw,kindOf:ts,kindOfTest:Yt,endsWith:Tw,toArray:Mw,forEachEntry:Iw,matchAll:Fw,isHTMLForm:Nw,hasOwnProperty:ru,hasOwnProp:ru,reduceDescriptors:ad,freezeMethods:Bw,toObjectSet:Ww,toCamelCase:Pw,noop:Hw,toFiniteNumber:Uw,findKey:rd,global:od,isContextDefined:sd,ALPHABET:ld,generateString:zw,isSpecCompliantForm:Vw,toJSONObject:jw,isAsyncFn:Gw,isThenable:Kw};function Oe(e,t,n,i,d){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),i&&(this.request=i),d&&(this.response=d)}ne.inherits(Oe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ne.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const cd=Oe.prototype,ud={};["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=>{ud[e]={value:e}});Object.defineProperties(Oe,ud);Object.defineProperty(cd,"isAxiosError",{value:!0});Oe.from=(e,t,n,i,d,u)=>{const h=Object.create(cd);return ne.toFlatObject(e,h,function(s){return s!==Error.prototype},g=>g!=="isAxiosError"),Oe.call(h,e.message,t,n,i,d),h.cause=e,h.name=e.name,u&&Object.assign(h,u),h};const Yw=null;function pa(e){return ne.isPlainObject(e)||ne.isArray(e)}function hd(e){return ne.endsWith(e,"[]")?e.slice(0,-2):e}function su(e,t,n){return e?e.concat(t).map(function(d,u){return d=hd(d),!n&&u?"["+d+"]":d}).join(n?".":""):t}function Xw(e){return ne.isArray(e)&&!e.some(pa)}const Zw=ne.toFlatObject(ne,{},null,function(t){return/^is[A-Z]/.test(t)});function rs(e,t,n){if(!ne.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ne.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,m){return!ne.isUndefined(m[f])});const i=n.metaTokens,d=n.visitor||o,u=n.dots,h=n.indexes,s=(n.Blob||typeof Blob<"u"&&Blob)&&ne.isSpecCompliantForm(t);if(!ne.isFunction(d))throw new TypeError("visitor must be a function");function p(l){if(l===null)return"";if(ne.isDate(l))return l.toISOString();if(!s&&ne.isBlob(l))throw new Oe("Blob is not supported. Use a Buffer instead.");return ne.isArrayBuffer(l)||ne.isTypedArray(l)?s&&typeof Blob=="function"?new Blob([l]):Buffer.from(l):l}function o(l,f,m){let v=l;if(l&&!m&&typeof l=="object"){if(ne.endsWith(f,"{}"))f=i?f:f.slice(0,-2),l=JSON.stringify(l);else if(ne.isArray(l)&&Xw(l)||(ne.isFileList(l)||ne.endsWith(f,"[]"))&&(v=ne.toArray(l)))return f=hd(f),v.forEach(function(k,S){!(ne.isUndefined(k)||k===null)&&t.append(h===!0?su([f],S,u):h===null?f:f+"[]",p(k))}),!1}return pa(l)?!0:(t.append(su(m,f,u),p(l)),!1)}const r=[],a=Object.assign(Zw,{defaultVisitor:o,convertValue:p,isVisitable:pa});function c(l,f){if(!ne.isUndefined(l)){if(r.indexOf(l)!==-1)throw Error("Circular reference detected in "+f.join("."));r.push(l),ne.forEach(l,function(v,y){(!(ne.isUndefined(v)||v===null)&&d.call(t,v,ne.isString(y)?y.trim():y,f,a))===!0&&c(v,f?f.concat(y):[y])}),r.pop()}}if(!ne.isObject(e))throw new TypeError("data must be an object");return c(e),t}function au(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function gl(e,t){this._pairs=[],e&&rs(e,this,t)}const fd=gl.prototype;fd.append=function(t,n){this._pairs.push([t,n])};fd.toString=function(t){const n=t?function(i){return t.call(this,i,au)}:au;return this._pairs.map(function(d){return n(d[0])+"="+n(d[1])},"").join("&")};function Jw(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function dd(e,t,n){if(!t)return e;const i=n&&n.encode||Jw,d=n&&n.serialize;let u;if(d?u=d(t,n):u=ne.isURLSearchParams(t)?t.toString():new gl(t,n).toString(i),u){const h=e.indexOf("#");h!==-1&&(e=e.slice(0,h)),e+=(e.indexOf("?")===-1?"?":"&")+u}return e}class Qw{constructor(){this.handlers=[]}use(t,n,i){return this.handlers.push({fulfilled:t,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ne.forEach(this.handlers,function(i){i!==null&&t(i)})}}const lu=Qw,pd={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},qw=typeof URLSearchParams<"u"?URLSearchParams:gl,e1=typeof FormData<"u"?FormData:null,t1=typeof Blob<"u"?Blob:null,n1={isBrowser:!0,classes:{URLSearchParams:qw,FormData:e1,Blob:t1},protocols:["http","https","file","blob","url","data"]},gd=typeof window<"u"&&typeof document<"u",i1=(e=>gd&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),r1=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",o1=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:gd,hasStandardBrowserEnv:i1,hasStandardBrowserWebWorkerEnv:r1},Symbol.toStringTag,{value:"Module"})),Ut={...o1,...n1};function s1(e,t){return rs(e,new Ut.classes.URLSearchParams,Object.assign({visitor:function(n,i,d,u){return Ut.isNode&&ne.isBuffer(n)?(this.append(i,n.toString("base64")),!1):u.defaultVisitor.apply(this,arguments)}},t))}function a1(e){return ne.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function l1(e){const t={},n=Object.keys(e);let i;const d=n.length;let u;for(i=0;i<d;i++)u=n[i],t[u]=e[u];return t}function md(e){function t(n,i,d,u){let h=n[u++];const g=Number.isFinite(+h),s=u>=n.length;return h=!h&&ne.isArray(d)?d.length:h,s?(ne.hasOwnProp(d,h)?d[h]=[d[h],i]:d[h]=i,!g):((!d[h]||!ne.isObject(d[h]))&&(d[h]=[]),t(n,i,d[h],u)&&ne.isArray(d[h])&&(d[h]=l1(d[h])),!g)}if(ne.isFormData(e)&&ne.isFunction(e.entries)){const n={};return ne.forEachEntry(e,(i,d)=>{t(a1(i),d,n,0)}),n}return null}function c1(e,t,n){if(ne.isString(e))try{return(t||JSON.parse)(e),ne.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(e)}const ml={transitional:pd,adapter:["xhr","http"],transformRequest:[function(t,n){const i=n.getContentType()||"",d=i.indexOf("application/json")>-1,u=ne.isObject(t);if(u&&ne.isHTMLForm(t)&&(t=new FormData(t)),ne.isFormData(t))return d&&d?JSON.stringify(md(t)):t;if(ne.isArrayBuffer(t)||ne.isBuffer(t)||ne.isStream(t)||ne.isFile(t)||ne.isBlob(t))return t;if(ne.isArrayBufferView(t))return t.buffer;if(ne.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let g;if(u){if(i.indexOf("application/x-www-form-urlencoded")>-1)return s1(t,this.formSerializer).toString();if((g=ne.isFileList(t))||i.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return rs(g?{"files[]":t}:t,s&&new s,this.formSerializer)}}return u||d?(n.setContentType("application/json",!1),c1(t)):t}],transformResponse:[function(t){const n=this.transitional||ml.transitional,i=n&&n.forcedJSONParsing,d=this.responseType==="json";if(t&&ne.isString(t)&&(i&&!this.responseType||d)){const h=!(n&&n.silentJSONParsing)&&d;try{return JSON.parse(t)}catch(g){if(h)throw g.name==="SyntaxError"?Oe.from(g,Oe.ERR_BAD_RESPONSE,this,null,this.response):g}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ut.classes.FormData,Blob:Ut.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ne.forEach(["delete","get","head","post","put","patch"],e=>{ml.headers[e]={}});const vl=ml,u1=ne.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),h1=e=>{const t={};let n,i,d;return e&&e.split(`
773
- `).forEach(function(h){d=h.indexOf(":"),n=h.substring(0,d).trim().toLowerCase(),i=h.substring(d+1).trim(),!(!n||t[n]&&u1[n])&&(n==="set-cookie"?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t},cu=Symbol("internals");function Hi(e){return e&&String(e).trim().toLowerCase()}function oo(e){return e===!1||e==null?e:ne.isArray(e)?e.map(oo):String(e)}function f1(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(e);)t[i[1]]=i[2];return t}const d1=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Es(e,t,n,i,d){if(ne.isFunction(i))return i.call(this,t,n);if(d&&(t=n),!!ne.isString(t)){if(ne.isString(i))return t.indexOf(i)!==-1;if(ne.isRegExp(i))return i.test(t)}}function p1(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,i)=>n.toUpperCase()+i)}function g1(e,t){const n=ne.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+n,{value:function(d,u,h){return this[i].call(this,t,d,u,h)},configurable:!0})})}class os{constructor(t){t&&this.set(t)}set(t,n,i){const d=this;function u(g,s,p){const o=Hi(s);if(!o)throw new Error("header name must be a non-empty string");const r=ne.findKey(d,o);(!r||d[r]===void 0||p===!0||p===void 0&&d[r]!==!1)&&(d[r||s]=oo(g))}const h=(g,s)=>ne.forEach(g,(p,o)=>u(p,o,s));return ne.isPlainObject(t)||t instanceof this.constructor?h(t,n):ne.isString(t)&&(t=t.trim())&&!d1(t)?h(h1(t),n):t!=null&&u(n,t,i),this}get(t,n){if(t=Hi(t),t){const i=ne.findKey(this,t);if(i){const d=this[i];if(!n)return d;if(n===!0)return f1(d);if(ne.isFunction(n))return n.call(this,d,i);if(ne.isRegExp(n))return n.exec(d);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Hi(t),t){const i=ne.findKey(this,t);return!!(i&&this[i]!==void 0&&(!n||Es(this,this[i],i,n)))}return!1}delete(t,n){const i=this;let d=!1;function u(h){if(h=Hi(h),h){const g=ne.findKey(i,h);g&&(!n||Es(i,i[g],g,n))&&(delete i[g],d=!0)}}return ne.isArray(t)?t.forEach(u):u(t),d}clear(t){const n=Object.keys(this);let i=n.length,d=!1;for(;i--;){const u=n[i];(!t||Es(this,this[u],u,t,!0))&&(delete this[u],d=!0)}return d}normalize(t){const n=this,i={};return ne.forEach(this,(d,u)=>{const h=ne.findKey(i,u);if(h){n[h]=oo(d),delete n[u];return}const g=t?p1(u):String(u).trim();g!==u&&delete n[u],n[g]=oo(d),i[g]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ne.forEach(this,(i,d)=>{i!=null&&i!==!1&&(n[d]=t&&ne.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
774
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const i=new this(t);return n.forEach(d=>i.set(d)),i}static accessor(t){const i=(this[cu]=this[cu]={accessors:{}}).accessors,d=this.prototype;function u(h){const g=Hi(h);i[g]||(g1(d,h),i[g]=!0)}return ne.isArray(t)?t.forEach(u):u(t),this}}os.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ne.reduceDescriptors(os.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(i){this[n]=i}}});ne.freezeMethods(os);const on=os;function Rs(e,t){const n=this||vl,i=t||n,d=on.from(i.headers);let u=i.data;return ne.forEach(e,function(g){u=g.call(n,u,d.normalize(),t?t.status:void 0)}),d.normalize(),u}function vd(e){return!!(e&&e.__CANCEL__)}function Lr(e,t,n){Oe.call(this,e??"canceled",Oe.ERR_CANCELED,t,n),this.name="CanceledError"}ne.inherits(Lr,Oe,{__CANCEL__:!0});function m1(e,t,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new Oe("Request failed with status code "+n.status,[Oe.ERR_BAD_REQUEST,Oe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const v1=Ut.hasStandardBrowserEnv?{write(e,t,n,i,d,u){const h=[e+"="+encodeURIComponent(t)];ne.isNumber(n)&&h.push("expires="+new Date(n).toGMTString()),ne.isString(i)&&h.push("path="+i),ne.isString(d)&&h.push("domain="+d),u===!0&&h.push("secure"),document.cookie=h.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 y1(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function b1(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function yd(e,t){return e&&!y1(t)?b1(e,t):t}const w1=Ut.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let i;function d(u){let h=u;return t&&(n.setAttribute("href",h),h=n.href),n.setAttribute("href",h),{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 i=d(window.location.href),function(h){const g=ne.isString(h)?d(h):h;return g.protocol===i.protocol&&g.host===i.host}}():function(){return function(){return!0}}();function $1(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function C1(e,t){e=e||10;const n=new Array(e),i=new Array(e);let d=0,u=0,h;return t=t!==void 0?t:1e3,function(s){const p=Date.now(),o=i[u];h||(h=p),n[d]=s,i[d]=p;let r=u,a=0;for(;r!==d;)a+=n[r++],r=r%e;if(d=(d+1)%e,d===u&&(u=(u+1)%e),p-h<t)return;const c=o&&p-o;return c?Math.round(a*1e3/c):void 0}}function uu(e,t){let n=0;const i=C1(50,250);return d=>{const u=d.loaded,h=d.lengthComputable?d.total:void 0,g=u-n,s=i(g),p=u<=h;n=u;const o={loaded:u,total:h,progress:h?u/h:void 0,bytes:g,rate:s||void 0,estimated:s&&h&&p?(h-u)/s:void 0,event:d};o[t?"download":"upload"]=!0,e(o)}}const S1=typeof XMLHttpRequest<"u",_1=S1&&function(e){return new Promise(function(n,i){let d=e.data;const u=on.from(e.headers).normalize();let{responseType:h,withXSRFToken:g}=e,s;function p(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}let o;if(ne.isFormData(d)){if(Ut.hasStandardBrowserEnv||Ut.hasStandardBrowserWebWorkerEnv)u.setContentType(!1);else if((o=u.getContentType())!==!1){const[f,...m]=o?o.split(";").map(v=>v.trim()).filter(Boolean):[];u.setContentType([f||"multipart/form-data",...m].join("; "))}}let r=new XMLHttpRequest;if(e.auth){const f=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";u.set("Authorization","Basic "+btoa(f+":"+m))}const a=yd(e.baseURL,e.url);r.open(e.method.toUpperCase(),dd(a,e.params,e.paramsSerializer),!0),r.timeout=e.timeout;function c(){if(!r)return;const f=on.from("getAllResponseHeaders"in r&&r.getAllResponseHeaders()),v={data:!h||h==="text"||h==="json"?r.responseText:r.response,status:r.status,statusText:r.statusText,headers:f,config:e,request:r};m1(function(k){n(k),p()},function(k){i(k),p()},v),r=null}if("onloadend"in r?r.onloadend=c:r.onreadystatechange=function(){!r||r.readyState!==4||r.status===0&&!(r.responseURL&&r.responseURL.indexOf("file:")===0)||setTimeout(c)},r.onabort=function(){r&&(i(new Oe("Request aborted",Oe.ECONNABORTED,e,r)),r=null)},r.onerror=function(){i(new Oe("Network Error",Oe.ERR_NETWORK,e,r)),r=null},r.ontimeout=function(){let m=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const v=e.transitional||pd;e.timeoutErrorMessage&&(m=e.timeoutErrorMessage),i(new Oe(m,v.clarifyTimeoutError?Oe.ETIMEDOUT:Oe.ECONNABORTED,e,r)),r=null},Ut.hasStandardBrowserEnv&&(g&&ne.isFunction(g)&&(g=g(e)),g||g!==!1&&w1(a))){const f=e.xsrfHeaderName&&e.xsrfCookieName&&v1.read(e.xsrfCookieName);f&&u.set(e.xsrfHeaderName,f)}d===void 0&&u.setContentType(null),"setRequestHeader"in r&&ne.forEach(u.toJSON(),function(m,v){r.setRequestHeader(v,m)}),ne.isUndefined(e.withCredentials)||(r.withCredentials=!!e.withCredentials),h&&h!=="json"&&(r.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&r.addEventListener("progress",uu(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&r.upload&&r.upload.addEventListener("progress",uu(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=f=>{r&&(i(!f||f.type?new Lr(null,e,r):f),r.abort(),r=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const l=$1(a);if(l&&Ut.protocols.indexOf(l)===-1){i(new Oe("Unsupported protocol "+l+":",Oe.ERR_BAD_REQUEST,e));return}r.send(d||null)})},ga={http:Yw,xhr:_1};ne.forEach(ga,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const hu=e=>`- ${e}`,A1=e=>ne.isFunction(e)||e===null||e===!1,bd={getAdapter:e=>{e=ne.isArray(e)?e:[e];const{length:t}=e;let n,i;const d={};for(let u=0;u<t;u++){n=e[u];let h;if(i=n,!A1(n)&&(i=ga[(h=String(n)).toLowerCase()],i===void 0))throw new Oe(`Unknown adapter '${h}'`);if(i)break;d[h||"#"+u]=i}if(!i){const u=Object.entries(d).map(([g,s])=>`adapter ${g} `+(s===!1?"is not supported by the environment":"is not available in the build"));let h=t?u.length>1?`since :
775
- `+u.map(hu).join(`
776
- `):" "+hu(u[0]):"as no adapter specified";throw new Oe("There is no suitable adapter to dispatch the request "+h,"ERR_NOT_SUPPORT")}return i},adapters:ga};function Ls(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Lr(null,e)}function fu(e){return Ls(e),e.headers=on.from(e.headers),e.data=Rs.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),bd.getAdapter(e.adapter||vl.adapter)(e).then(function(i){return Ls(e),i.data=Rs.call(e,e.transformResponse,i),i.headers=on.from(i.headers),i},function(i){return vd(i)||(Ls(e),i&&i.response&&(i.response.data=Rs.call(e,e.transformResponse,i.response),i.response.headers=on.from(i.response.headers))),Promise.reject(i)})}const du=e=>e instanceof on?e.toJSON():e;function Ai(e,t){t=t||{};const n={};function i(p,o,r){return ne.isPlainObject(p)&&ne.isPlainObject(o)?ne.merge.call({caseless:r},p,o):ne.isPlainObject(o)?ne.merge({},o):ne.isArray(o)?o.slice():o}function d(p,o,r){if(ne.isUndefined(o)){if(!ne.isUndefined(p))return i(void 0,p,r)}else return i(p,o,r)}function u(p,o){if(!ne.isUndefined(o))return i(void 0,o)}function h(p,o){if(ne.isUndefined(o)){if(!ne.isUndefined(p))return i(void 0,p)}else return i(void 0,o)}function g(p,o,r){if(r in t)return i(p,o);if(r in e)return i(void 0,p)}const s={url:u,method:u,data:u,baseURL:h,transformRequest:h,transformResponse:h,paramsSerializer:h,timeout:h,timeoutMessage:h,withCredentials:h,withXSRFToken:h,adapter:h,responseType:h,xsrfCookieName:h,xsrfHeaderName:h,onUploadProgress:h,onDownloadProgress:h,decompress:h,maxContentLength:h,maxBodyLength:h,beforeRedirect:h,transport:h,httpAgent:h,httpsAgent:h,cancelToken:h,socketPath:h,responseEncoding:h,validateStatus:g,headers:(p,o)=>d(du(p),du(o),!0)};return ne.forEach(Object.keys(Object.assign({},e,t)),function(o){const r=s[o]||d,a=r(e[o],t[o],o);ne.isUndefined(a)&&r!==g||(n[o]=a)}),n}const wd="1.6.2",yl={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{yl[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const pu={};yl.transitional=function(t,n,i){function d(u,h){return"[Axios v"+wd+"] Transitional option '"+u+"'"+h+(i?". "+i:"")}return(u,h,g)=>{if(t===!1)throw new Oe(d(h," has been removed"+(n?" in "+n:"")),Oe.ERR_DEPRECATED);return n&&!pu[h]&&(pu[h]=!0,console.warn(d(h," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(u,h,g):!0}};function k1(e,t,n){if(typeof e!="object")throw new Oe("options must be an object",Oe.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let d=i.length;for(;d-- >0;){const u=i[d],h=t[u];if(h){const g=e[u],s=g===void 0||h(g,u,e);if(s!==!0)throw new Oe("option "+u+" must be "+s,Oe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Oe("Unknown option "+u,Oe.ERR_BAD_OPTION)}}const ma={assertOptions:k1,validators:yl},yn=ma.validators;class _o{constructor(t){this.defaults=t,this.interceptors={request:new lu,response:new lu}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ai(this.defaults,n);const{transitional:i,paramsSerializer:d,headers:u}=n;i!==void 0&&ma.assertOptions(i,{silentJSONParsing:yn.transitional(yn.boolean),forcedJSONParsing:yn.transitional(yn.boolean),clarifyTimeoutError:yn.transitional(yn.boolean)},!1),d!=null&&(ne.isFunction(d)?n.paramsSerializer={serialize:d}:ma.assertOptions(d,{encode:yn.function,serialize:yn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let h=u&&ne.merge(u.common,u[n.method]);u&&ne.forEach(["delete","get","head","post","put","patch","common"],l=>{delete u[l]}),n.headers=on.concat(h,u);const g=[];let s=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(n)===!1||(s=s&&f.synchronous,g.unshift(f.fulfilled,f.rejected))});const p=[];this.interceptors.response.forEach(function(f){p.push(f.fulfilled,f.rejected)});let o,r=0,a;if(!s){const l=[fu.bind(this),void 0];for(l.unshift.apply(l,g),l.push.apply(l,p),a=l.length,o=Promise.resolve(n);r<a;)o=o.then(l[r++],l[r++]);return o}a=g.length;let c=n;for(r=0;r<a;){const l=g[r++],f=g[r++];try{c=l(c)}catch(m){f.call(this,m);break}}try{o=fu.call(this,c)}catch(l){return Promise.reject(l)}for(r=0,a=p.length;r<a;)o=o.then(p[r++],p[r++]);return o}getUri(t){t=Ai(this.defaults,t);const n=yd(t.baseURL,t.url);return dd(n,t.params,t.paramsSerializer)}}ne.forEach(["delete","get","head","options"],function(t){_o.prototype[t]=function(n,i){return this.request(Ai(i||{},{method:t,url:n,data:(i||{}).data}))}});ne.forEach(["post","put","patch"],function(t){function n(i){return function(u,h,g){return this.request(Ai(g||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:u,data:h}))}}_o.prototype[t]=n(),_o.prototype[t+"Form"]=n(!0)});const so=_o;class bl{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(u){n=u});const i=this;this.promise.then(d=>{if(!i._listeners)return;let u=i._listeners.length;for(;u-- >0;)i._listeners[u](d);i._listeners=null}),this.promise.then=d=>{let u;const h=new Promise(g=>{i.subscribe(g),u=g}).then(d);return h.cancel=function(){i.unsubscribe(u)},h},t(function(u,h,g){i.reason||(i.reason=new Lr(u,h,g),n(i.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 bl(function(d){t=d}),cancel:t}}}const x1=bl;function E1(e){return function(n){return e.apply(null,n)}}function R1(e){return ne.isObject(e)&&e.isAxiosError===!0}const va={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(va).forEach(([e,t])=>{va[t]=e});const L1=va;function $d(e){const t=new so(e),n=td(so.prototype.request,t);return ne.extend(n,so.prototype,t,{allOwnKeys:!0}),ne.extend(n,t,null,{allOwnKeys:!0}),n.create=function(d){return $d(Ai(e,d))},n}const Qe=$d(vl);Qe.Axios=so;Qe.CanceledError=Lr;Qe.CancelToken=x1;Qe.isCancel=vd;Qe.VERSION=wd;Qe.toFormData=rs;Qe.AxiosError=Oe;Qe.Cancel=Qe.CanceledError;Qe.all=function(t){return Promise.all(t)};Qe.spread=E1;Qe.isAxiosError=R1;Qe.mergeConfig=Ai;Qe.AxiosHeaders=on;Qe.formToJSON=e=>md(ne.isHTMLForm(e)?new FormData(e):e);Qe.getAdapter=bd.getAdapter;Qe.HttpStatusCode=L1;Qe.default=Qe;const T1=Qe,ot=T1.create({headers:{Accept:"application/json"}}),ht={async getConfigs(){return(await ot.get("/api/configs")).data},async getAlerts(e){return e.page=e.page||1,(await ot.get("/api/alerts",{params:e})).data},async getTags(){return(await ot.get("/api/tags")).data.tags},async getRuleSet(){return(await ot.get("/api/rules/ids")).data.ruleIds},async deleteAlert(e){await ot.delete(`/api/alerts/${e}`)},async getArtifact(e){return(await ot.get(`/api/artifacts/${e}`)).data},async enrichArtifact(e){await ot.get(`/api/artifacts/${e}/enrich`)},async deleteArtifact(e){await ot.delete(`/api/artifacts/${e}`)},async getRules(e){return e.page=e.page||1,(await ot.get("/api/rules",{params:e})).data},async getRule(e){return(await ot.get(`/api/rules/${e}`)).data},async runRule(e){await ot.get(`/api/rules/${e}/run`)},async createRule(e){return(await ot.post("/api/rules/",e)).data},async updateRule(e){return(await ot.put("/api/rules/",e)).data},async deleteRule(e){await ot.delete(`/api/rules/${e}`)},async deleteTag(e){await ot.delete(`/api/tags/${e}`)},async getIPInfo(e){return(await ot.get(`/api/ip_addresses/${e}`)).data}};function wl(){return ut(async(e,t)=>await ht.getAlerts(t))}function M1(){return ut(async(e,t)=>await ht.deleteAlert(t))}function Cd(){return ut(async()=>await ht.getTags())}function O1(){return ut(async(e,t)=>await ht.deleteTag(t))}function I1(){return ut(async()=>await ht.getRuleSet())}function F1(){return ut(async(e,t)=>await ht.getArtifact(t))}function Sd(){return ut(async(e,t)=>await ht.deleteArtifact(t))}function N1(){return ut(async(e,t)=>await ht.enrichArtifact(t))}function P1(){return ut(async()=>await ht.getConfigs())}function D1(){return ut(async(e,t)=>await ht.getIPInfo(t))}function B1(){return ut(async(e,t)=>await ht.getRules(t))}function _d(){return ut(async(e,t)=>await ht.getRule(t))}function W1(){return ut(async(e,t)=>await ht.deleteRule(t))}function H1(){return ut(async(e,t)=>await ht.runRule(t))}function U1(){return ut(async(e,t)=>await ht.createRule(t))}function z1(){return ut(async(e,t)=>await ht.updateRule(t))}var Nn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Pn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ad(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function i(){return this instanceof i?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(i){var d=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(n,i,d.get?d:{enumerable:!0,get:function(){return e[i]}})}),n}var kd={exports:{}};(function(e){(function(t,n){var i="…",d=/(((ftp|https?):\/\/)[\-\w@:%_\+.~#?,&\/\/=]+)|((mailto:)?[_.\w-]{1,300}@(.{1,300}\.)[a-zA-Z]{2,3})/g;function u(g,s,p){return p.length===g.length||!s.ellipsis||(p+=s.ellipsis),p}function h(g,s,p){var o="",r=!0,a=s,c,l;if(p=p||{},p.ellipsis=typeof p.ellipsis>"u"?i:p.ellipsis,!g||g.length===0)return"";for(r=!0;r;){if(d.lastIndex=o.length,r=d.exec(g),!r||r.index-o.length>=a||d.lastIndex>=s+3e3)return o+=g.substring(o.length,s),u(g,p,o);if(c=r[0],l=r.index,o+=g.substring(o.length,l+c.length),a-=l+c.length,a<=0)break}return u(g,p,o)}e.exports?e.exports=h:t.truncate=h})(String)})(kd);var V1=kd.exports;const $l=Pn(V1),j1=$e({name:"ArtifactTag",props:{artifact:{type:Object,required:!0}},setup(e){const t=Ke(!1),n=Ke(!1),i=Sd();return{deleteArtifact:async()=>{window.confirm(`Are you sure you want to delete ${e.artifact.data}?`)&&(await i.perform(e.artifact.id),t.value=!0)},hideDeleteButton:()=>{n.value=!1},isDeleteButtonEnabled:n,isDeleted:t,showDeleteButton:()=>{n.value=!0},truncate:$l}}}),G1={key:0,class:"control"};function K1(e,t,n,i,d,u){const h=he("router-link");return e.isDeleted?we("",!0):(q(),oe("div",G1,[N("div",{class:"tags has-addons are-medium",onMouseover:t[1]||(t[1]=(...g)=>e.showDeleteButton&&e.showDeleteButton(...g)),onMouseleave:t[2]||(t[2]=(...g)=>e.hideDeleteButton&&e.hideDeleteButton(...g))},[fe(h,{class:"tag is-link is-light",to:{name:"Artifact",params:{id:e.artifact.id}}},{default:kt(()=>[dt(Ae(e.truncate(e.artifact.data,32)),1)]),_:1},8,["to"]),e.isDeleteButtonEnabled?(q(),oe("span",{key:0,class:"tag is-delete",onClick:t[0]||(t[0]=(...g)=>e.deleteArtifact&&e.deleteArtifact(...g))})):we("",!0)],32)]))}const Y1=ke(j1,[["render",K1]]),X1=$e({name:"ArtifactTags",components:{ArtifactComponent:Y1},props:{artifacts:{type:Array,required:!0}}}),Z1={class:"field is-grouped is-grouped-multiline"};function J1(e,t,n,i,d,u){const h=he("ArtifactComponent");return q(),oe("div",Z1,[(q(!0),oe(_e,null,ct(e.artifacts,g=>(q(),Te(h,{key:g.id,artifact:g},null,8,["artifact"]))),128))])}const Q1=ke(X1,[["render",J1]]),q1=$e({name:"TagItem",props:{tag:{type:Object,required:!0}},setup(e,t){const n=Ke(!1),i=Ke(!1),d=O1();return{updateTag:()=>{t.emit("update-tag",e.tag.name)},isDeleted:n,deleteTag:async()=>{window.confirm(`Are you sure you want to delete ${e.tag.name} (ID: ${e.tag.id})?`)&&(await d.perform(e.tag.id),n.value=!0)},showDeleteButton:()=>{i.value=!0},hideDeleteButton:()=>{i.value=!1},isDeleteButtonEnabled:i}}}),e$={key:0,class:"control"};function t$(e,t,n,i,d,u){return e.isDeleted?we("",!0):(q(),oe("div",e$,[N("div",{class:"tags has-addons are-medium",onMouseover:t[2]||(t[2]=(...h)=>e.showDeleteButton&&e.showDeleteButton(...h)),onMouseleave:t[3]||(t[3]=(...h)=>e.hideDeleteButton&&e.hideDeleteButton(...h))},[N("span",{class:"tag is-info is-light",onClick:t[0]||(t[0]=(...h)=>e.updateTag&&e.updateTag(...h))},Ae(e.tag.name),1),e.isDeleteButtonEnabled?(q(),oe("a",{key:0,class:"tag is-delete",onClick:t[1]||(t[1]=(...h)=>e.deleteTag&&e.deleteTag(...h))})):we("",!0)],32)]))}const n$=ke(q1,[["render",t$]]),i$=$e({name:"TagsItem",components:{TagComponent:n$},props:{tags:{type:Array,required:!0}},setup(e,t){return{updateTag:i=>{t.emit("update-tag",i)}}}}),r$={class:"field is-grouped is-grouped-multiline"};function o$(e,t,n,i,d,u){const h=he("TagComponent");return q(),oe("div",r$,[(q(!0),oe(_e,null,ct(e.tags,g=>(q(),Te(h,{tag:g,key:g.name,onUpdateTag:e.updateTag},null,8,["tag","onUpdateTag"]))),128))])}const xd=ke(i$,[["render",o$]]);var Ed={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(Nn,function(){var n=1e3,i=6e4,d=36e5,u="millisecond",h="second",g="minute",s="hour",p="day",o="week",r="month",a="quarter",c="year",l="date",f="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(w){var E=["th","st","nd","rd"],L=w%100;return"["+w+(E[(L-20)%10]||E[L]||E[0])+"]"}},k=function(w,E,L){var O=String(w);return!O||O.length>=E?w:""+Array(E+1-O.length).join(L)+w},S={s:k,z:function(w){var E=-w.utcOffset(),L=Math.abs(E),O=Math.floor(L/60),I=L%60;return(E<=0?"+":"-")+k(O,2,"0")+":"+k(I,2,"0")},m:function w(E,L){if(E.date()<L.date())return-w(L,E);var O=12*(L.year()-E.year())+(L.month()-E.month()),I=E.clone().add(O,r),F=L-I<0,D=E.clone().add(O+(F?-1:1),r);return+(-(O+(L-I)/(F?I-D:D-I))||0)},a:function(w){return w<0?Math.ceil(w)||0:Math.floor(w)},p:function(w){return{M:r,y:c,w:o,d:p,D:l,h:s,m:g,s:h,ms:u,Q:a}[w]||String(w||"").toLowerCase().replace(/s$/,"")},u:function(w){return w===void 0}},_="en",$={};$[_]=y;var R="$isDayjsObject",T=function(w){return w instanceof A||!(!w||!w[R])},x=function w(E,L,O){var I;if(!E)return _;if(typeof E=="string"){var F=E.toLowerCase();$[F]&&(I=F),L&&($[F]=L,I=F);var D=E.split("-");if(!I&&D.length>1)return w(D[0])}else{var W=E.name;$[W]=E,I=W}return!O&&I&&(_=I),I||!O&&_},M=function(w,E){if(T(w))return w.clone();var L=typeof E=="object"?E:{};return L.date=w,L.args=arguments,new A(L)},b=S;b.l=x,b.i=T,b.w=function(w,E){return M(w,{locale:E.$L,utc:E.$u,x:E.$x,$offset:E.$offset})};var A=function(){function w(L){this.$L=x(L.locale,null,!0),this.parse(L),this.$x=this.$x||L.x||{},this[R]=!0}var E=w.prototype;return E.parse=function(L){this.$d=function(O){var I=O.date,F=O.utc;if(I===null)return new Date(NaN);if(b.u(I))return new Date;if(I instanceof Date)return new Date(I);if(typeof I=="string"&&!/Z$/i.test(I)){var D=I.match(m);if(D){var W=D[2]-1||0,j=(D[7]||"0").substring(0,3);return F?new Date(Date.UTC(D[1],W,D[3]||1,D[4]||0,D[5]||0,D[6]||0,j)):new Date(D[1],W,D[3]||1,D[4]||0,D[5]||0,D[6]||0,j)}}return new Date(I)}(L),this.init()},E.init=function(){var L=this.$d;this.$y=L.getFullYear(),this.$M=L.getMonth(),this.$D=L.getDate(),this.$W=L.getDay(),this.$H=L.getHours(),this.$m=L.getMinutes(),this.$s=L.getSeconds(),this.$ms=L.getMilliseconds()},E.$utils=function(){return b},E.isValid=function(){return this.$d.toString()!==f},E.isSame=function(L,O){var I=M(L);return this.startOf(O)<=I&&I<=this.endOf(O)},E.isAfter=function(L,O){return M(L)<this.startOf(O)},E.isBefore=function(L,O){return this.endOf(O)<M(L)},E.$g=function(L,O,I){return b.u(L)?this[O]:this.set(I,L)},E.unix=function(){return Math.floor(this.valueOf()/1e3)},E.valueOf=function(){return this.$d.getTime()},E.startOf=function(L,O){var I=this,F=!!b.u(O)||O,D=b.p(L),W=function(Y,V){var ee=b.w(I.$u?Date.UTC(I.$y,V,Y):new Date(I.$y,V,Y),I);return F?ee:ee.endOf(p)},j=function(Y,V){return b.w(I.toDate()[Y].apply(I.toDate("s"),(F?[0,0,0,0]:[23,59,59,999]).slice(V)),I)},H=this.$W,U=this.$M,K=this.$D,Z="set"+(this.$u?"UTC":"");switch(D){case c:return F?W(1,0):W(31,11);case r:return F?W(1,U):W(0,U+1);case o:var z=this.$locale().weekStart||0,X=(H<z?H+7:H)-z;return W(F?K-X:K+(6-X),U);case p:case l:return j(Z+"Hours",0);case s:return j(Z+"Minutes",1);case g:return j(Z+"Seconds",2);case h:return j(Z+"Milliseconds",3);default:return this.clone()}},E.endOf=function(L){return this.startOf(L,!1)},E.$set=function(L,O){var I,F=b.p(L),D="set"+(this.$u?"UTC":""),W=(I={},I[p]=D+"Date",I[l]=D+"Date",I[r]=D+"Month",I[c]=D+"FullYear",I[s]=D+"Hours",I[g]=D+"Minutes",I[h]=D+"Seconds",I[u]=D+"Milliseconds",I)[F],j=F===p?this.$D+(O-this.$W):O;if(F===r||F===c){var H=this.clone().set(l,1);H.$d[W](j),H.init(),this.$d=H.set(l,Math.min(this.$D,H.daysInMonth())).$d}else W&&this.$d[W](j);return this.init(),this},E.set=function(L,O){return this.clone().$set(L,O)},E.get=function(L){return this[b.p(L)]()},E.add=function(L,O){var I,F=this;L=Number(L);var D=b.p(O),W=function(U){var K=M(F);return b.w(K.date(K.date()+Math.round(U*L)),F)};if(D===r)return this.set(r,this.$M+L);if(D===c)return this.set(c,this.$y+L);if(D===p)return W(1);if(D===o)return W(7);var j=(I={},I[g]=i,I[s]=d,I[h]=n,I)[D]||1,H=this.$d.getTime()+L*j;return b.w(H,this)},E.subtract=function(L,O){return this.add(-1*L,O)},E.format=function(L){var O=this,I=this.$locale();if(!this.isValid())return I.invalidDate||f;var F=L||"YYYY-MM-DDTHH:mm:ssZ",D=b.z(this),W=this.$H,j=this.$m,H=this.$M,U=I.weekdays,K=I.months,Z=I.meridiem,z=function(V,ee,P,B){return V&&(V[ee]||V(O,F))||P[ee].slice(0,B)},X=function(V){return b.s(W%12||12,V,"0")},Y=Z||function(V,ee,P){var B=V<12?"AM":"PM";return P?B.toLowerCase():B};return F.replace(v,function(V,ee){return ee||function(P){switch(P){case"YY":return String(O.$y).slice(-2);case"YYYY":return b.s(O.$y,4,"0");case"M":return H+1;case"MM":return b.s(H+1,2,"0");case"MMM":return z(I.monthsShort,H,K,3);case"MMMM":return z(K,H);case"D":return O.$D;case"DD":return b.s(O.$D,2,"0");case"d":return String(O.$W);case"dd":return z(I.weekdaysMin,O.$W,U,2);case"ddd":return z(I.weekdaysShort,O.$W,U,3);case"dddd":return U[O.$W];case"H":return String(W);case"HH":return b.s(W,2,"0");case"h":return X(1);case"hh":return X(2);case"a":return Y(W,j,!0);case"A":return Y(W,j,!1);case"m":return String(j);case"mm":return b.s(j,2,"0");case"s":return String(O.$s);case"ss":return b.s(O.$s,2,"0");case"SSS":return b.s(O.$ms,3,"0");case"Z":return D}return null}(V)||D.replace(":","")})},E.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},E.diff=function(L,O,I){var F,D=this,W=b.p(O),j=M(L),H=(j.utcOffset()-this.utcOffset())*i,U=this-j,K=function(){return b.m(D,j)};switch(W){case c:F=K()/12;break;case r:F=K();break;case a:F=K()/3;break;case o:F=(U-H)/6048e5;break;case p:F=(U-H)/864e5;break;case s:F=U/d;break;case g:F=U/i;break;case h:F=U/n;break;default:F=U}return I?F:b.a(F)},E.daysInMonth=function(){return this.endOf(r).$D},E.$locale=function(){return $[this.$L]},E.locale=function(L,O){if(!L)return this.$L;var I=this.clone(),F=x(L,O,!0);return F&&(I.$L=F),I},E.clone=function(){return b.w(this.$d,this)},E.toDate=function(){return new Date(this.valueOf())},E.toJSON=function(){return this.isValid()?this.toISOString():null},E.toISOString=function(){return this.$d.toISOString()},E.toString=function(){return this.$d.toUTCString()},w}(),C=A.prototype;return M.prototype=C,[["$ms",u],["$s",h],["$m",g],["$H",s],["$W",p],["$M",r],["$y",c],["$D",l]].forEach(function(w){C[w[1]]=function(E){return this.$g(E,w[0],w[1])}}),M.extend=function(w,E){return w.$i||(w(E,A,M),w.$i=!0),M},M.locale=x,M.isDayjs=T,M.unix=function(w){return M(1e3*w)},M.en=$[_],M.Ls=$,M.p={},M})})(Ed);var s$=Ed.exports;const Ni=Pn(s$);var Rd={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(Nn,function(){return function(n,i,d){n=n||{};var u=i.prototype,h={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function g(p,o,r,a){return u.fromToBase(p,o,r,a)}d.en.relativeTime=h,u.fromToBase=function(p,o,r,a,c){for(var l,f,m,v=r.$locale().relativeTime||h,y=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],k=y.length,S=0;S<k;S+=1){var _=y[S];_.d&&(l=a?d(p).diff(r,_.d,!0):r.diff(p,_.d,!0));var $=(n.rounding||Math.round)(Math.abs(l));if(m=l>0,$<=_.r||!_.r){$<=1&&S>0&&(_=y[S-1]);var R=v[_.l];c&&($=c(""+$)),f=typeof R=="string"?R.replace("%d",$):R($,o,_.l,m);break}}if(o)return f;var T=m?v.future:v.past;return typeof T=="function"?T(f):T.replace("%s",f)},u.to=function(p,o){return g(p,o,this,!0)},u.from=function(p,o){return g(p,o,this)};var s=function(p){return p.$u?d.utc():d()};u.toNow=function(p){return this.to(s(this),p)},u.fromNow=function(p){return this.from(s(this),p)}}})})(Rd);var a$=Rd.exports;const l$=Pn(a$);var Ld={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(Nn,function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},i={};return function(d,u,h){var g,s=function(a,c,l){l===void 0&&(l={});var f=new Date(a),m=function(v,y){y===void 0&&(y={});var k=y.timeZoneName||"short",S=v+"|"+k,_=i[S];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:k}),i[S]=_),_}(c,l);return m.formatToParts(f)},p=function(a,c){for(var l=s(a,c),f=[],m=0;m<l.length;m+=1){var v=l[m],y=v.type,k=v.value,S=n[y];S>=0&&(f[S]=parseInt(k,10))}var _=f[3],$=_===24?0:_,R=f[0]+"-"+f[1]+"-"+f[2]+" "+$+":"+f[4]+":"+f[5]+":000",T=+a;return(h.utc(R).valueOf()-(T-=T%1e3))/6e4},o=u.prototype;o.tz=function(a,c){a===void 0&&(a=g);var l=this.utcOffset(),f=this.toDate(),m=f.toLocaleString("en-US",{timeZone:a}),v=Math.round((f-new Date(m))/1e3/60),y=h(m,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(f.getTimezoneOffset()/15)-v,!0);if(c){var k=y.utcOffset();y=y.add(l-k,"minute")}return y.$x.$timezone=a,y},o.offsetName=function(a){var c=this.$x.$timezone||h.tz.guess(),l=s(this.valueOf(),c,{timeZoneName:a}).find(function(f){return f.type.toLowerCase()==="timezonename"});return l&&l.value};var r=o.startOf;o.startOf=function(a,c){if(!this.$x||!this.$x.$timezone)return r.call(this,a,c);var l=h(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return r.call(l,a,c).tz(this.$x.$timezone,!0)},h.tz=function(a,c,l){var f=l&&c,m=l||c||g,v=p(+h(),m);if(typeof a!="string")return h(a).tz(m);var y=function($,R,T){var x=$-60*R*1e3,M=p(x,T);if(R===M)return[x,R];var b=p(x-=60*(M-R)*1e3,T);return M===b?[x,M]:[$-60*Math.min(M,b)*1e3,Math.max(M,b)]}(h.utc(a,f).valueOf(),v,m),k=y[0],S=y[1],_=h(k).utcOffset(S);return _.$x.$timezone=m,_},h.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},h.tz.setDefault=function(a){g=a}}})})(Ld);var c$=Ld.exports;const u$=Pn(c$);var Td={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(Nn,function(){var n="minute",i=/[+-]\d\d(?::?\d\d)?/g,d=/([+-]|\d\d)/g;return function(u,h,g){var s=h.prototype;g.utc=function(f){var m={date:f,utc:!0,args:arguments};return new h(m)},s.utc=function(f){var m=g(this.toDate(),{locale:this.$L,utc:!0});return f?m.add(this.utcOffset(),n):m},s.local=function(){return g(this.toDate(),{locale:this.$L,utc:!1})};var p=s.parse;s.parse=function(f){f.utc&&(this.$u=!0),this.$utils().u(f.$offset)||(this.$offset=f.$offset),p.call(this,f)};var o=s.init;s.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 o.call(this)};var r=s.utcOffset;s.utcOffset=function(f,m){var v=this.$utils().u;if(v(f))return this.$u?0:v(this.$offset)?r.call(this):this.$offset;if(typeof f=="string"&&(f=function(_){_===void 0&&(_="");var $=_.match(i);if(!$)return null;var R=(""+$[0]).match(d)||["-",0,0],T=R[0],x=60*+R[1]+ +R[2];return x===0?0:T==="+"?x:-x}(f),f===null))return this;var y=Math.abs(f)<=16?60*f:f,k=this;if(m)return k.$offset=y,k.$u=f===0,k;if(f!==0){var S=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(k=this.local().add(y+S,n)).$offset=y,k.$x.$localOffset=S}else k=this.utc();return k};var a=s.format;s.format=function(f){var m=f||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return a.call(this,m)},s.valueOf=function(){var f=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*f},s.isUTC=function(){return!!this.$u},s.toISOString=function(){return this.toDate().toISOString()},s.toString=function(){return this.toDate().toUTCString()};var c=s.toDate;s.toDate=function(f){return f==="s"&&this.$offset?g(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():c.call(this)};var l=s.diff;s.diff=function(f,m,v){if(f&&this.$u===f.$u)return l.call(this,f,m,v);var y=this.local(),k=g(f).local();return l.call(y,k,m,v)}}})})(Td);var h$=Td.exports;const f$=Pn(h$),d$=[{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 p$(e){return d$.find(n=>n.code===e)}Ni.extend(l$);Ni.extend(u$);Ni.extend(f$);function g$(e){return Ni(e).local().format("YYYY-MM-DD HH:mm:ss")}function m$(e){return Ni(e).local().fromNow()}function Md(e){const t=p$(e);if(t!==void 0)return{lat:t.lat,long:t.long}}function v$(e){if(e.loc!==void 0){const t=e.loc.split(",");if(t.length===2){const n=t[0],i=t[1];return{lat:parseFloat(n),long:parseFloat(i)}}}return Md(e.countryCode)}function Wt(e){if(!(e===""||!e))return e.toString()}const y$=$e({name:"AlertItem",components:{Artifacts:Q1,Tags:xd},props:{alert:{type:Object,required:!0}},setup(e,t){const n=u=>{t.emit("update-tag",u)},i=M1();return{updateTag:n,deleteAlert:async()=>{window.confirm(`Are you sure you want to delete ${e.alert.id}?`)&&(await i.perform(e.alert.id),t.emit("refresh-page"))},getLocalDatetime:g$,getHumanizedRelativeTime:m$}}}),b$={class:"box"},w$={class:"table is-fullwidth is-completely-borderless"},$$=N("th",null,"ID",-1),C$=N("span",null,"Delete",-1),S$={class:"icon is-small"},_$=N("th",null,"Rule",-1),A$=N("th",null,"Artifacts",-1),k$={key:0},x$=N("th",null,"Tags",-1),E$={class:"help"};function R$(e,t,n,i,d,u){const h=he("font-awesome-icon"),g=he("router-link"),s=he("Artifacts"),p=he("Tags");return q(),oe("div",b$,[N("table",w$,[N("tr",null,[$$,N("td",null,[dt(Ae(e.alert.id)+" ",1),N("button",{class:"button is-light is-small is-pulled-right",onClick:t[0]||(t[0]=(...o)=>e.deleteAlert&&e.deleteAlert(...o))},[C$,N("span",S$,[fe(h,{icon:"times"})])])])]),N("tr",null,[_$,N("td",null,[fe(g,{to:{name:"Rule",params:{id:e.alert.ruleId}}},{default:kt(()=>[dt(Ae(e.alert.ruleId),1)]),_:1},8,["to"])])]),N("tr",null,[A$,N("td",null,[fe(s,{artifacts:e.alert.artifacts},null,8,["artifacts"])])]),e.alert.tags.length>0?(q(),oe("tr",k$,[x$,N("td",null,[fe(p,{tags:e.alert.tags,onUpdateTag:e.updateTag},null,8,["tags","onUpdateTag"])])])):we("",!0)]),N("p",E$,"Created at: "+Ae(e.alert.createdAt),1)])}const L$=ke(y$,[["render",R$]]),T$=$e({name:"AlertsPagination",props:{currentPage:{type:Number,required:!0},pageSize:{type:Number,required:!0},total:{type:Number,required:!0}},emits:["update-page"],setup(e,t){const n=Ee(()=>Math.ceil(e.total/e.pageSize)),i=Ee(()=>n.value===1),d=Ee(()=>e.currentPage>1),u=Ee(()=>e.currentPage-1!==1),h=Ee(()=>e.currentPage<n.value),g=Ee(()=>e.currentPage+1!==n.value);return{updatePage:p=>{t.emit("update-page",p)},hasNextPage:h,hasOnlyOnePage:i,hasPreviousPage:d,isNextPageNotLast:g,isPreviousPageNotFirst:u,totalPageCount:n}}}),M$={key:0,class:"message is-warning"},O$=N("div",{class:"message-body"},"There is no result to show.",-1),I$=[O$],F$={key:1,class:"pagination",role:"navigation","aria-label":"pagination"},N$={key:0,class:"pagination-list"},P$={key:1,class:"pagination-list"},D$={key:0},B$={key:1},W$=N("span",{class:"pagination-ellipsis"},"…",-1),H$=[W$],U$={key:2},z$={key:3},V$={key:4},j$=N("span",{class:"pagination-ellipsis"},"…",-1),G$=[j$],K$={key:5};function Y$(e,t,n,i,d,u){return e.total===0?(q(),oe("article",M$,I$)):(q(),oe("nav",F$,[e.hasOnlyOnePage?(q(),oe("ul",N$,[N("li",null,[N("a",{class:"pagination-link mt-2 is-current",onClick:t[0]||(t[0]=h=>e.updatePage(1))},"1")])])):(q(),oe("ul",P$,[e.hasPreviousPage&&e.isPreviousPageNotFirst?(q(),oe("li",D$,[N("a",{class:"pagination-link mt-2",onClick:t[1]||(t[1]=h=>e.updatePage(1))}," 1")])):we("",!0),e.hasPreviousPage&&e.isPreviousPageNotFirst?(q(),oe("li",B$,H$)):we("",!0),e.hasPreviousPage?(q(),oe("li",U$,[N("a",{class:"pagination-link mt-2",onClick:t[2]||(t[2]=h=>e.updatePage(e.currentPage-1))},Ae(e.currentPage-1),1)])):we("",!0),N("li",null,[N("a",{class:"pagination-link mt-2 is-current",onClick:t[3]||(t[3]=h=>e.updatePage(e.currentPage))},Ae(e.currentPage),1)]),e.hasNextPage?(q(),oe("li",z$,[N("a",{class:"pagination-link mt-2",onClick:t[4]||(t[4]=h=>e.updatePage(e.currentPage+1))},Ae(e.currentPage+1),1)])):we("",!0),e.hasNextPage&&e.isNextPageNotLast?(q(),oe("li",V$,G$)):we("",!0),e.hasNextPage&&e.isNextPageNotLast?(q(),oe("li",K$,[N("a",{class:"pagination-link mt-2",onClick:t[5]||(t[5]=h=>e.updatePage(e.totalPageCount))},Ae(e.totalPageCount),1)])):we("",!0)]))]))}const Od=ke(T$,[["render",Y$]]),X$=$e({name:"AlertsItem",components:{Alert:L$,Pagination:Od},props:{page:{type:String,required:!0},alerts:{type:Object,required:!0}},emits:["update-page","refresh-page","update-tag"],setup(e,t){const n=()=>{window.scrollTo({top:0})};return{updatePage:h=>{n(),t.emit("update-page",h)},updateTag:h=>{n(),t.emit("update-tag",h)},refreshPage:()=>{n(),t.emit("refresh-page")}}}}),Z$={class:"help"};function J$(e,t,n,i,d,u){const h=he("Alert"),g=he("Pagination");return q(),oe(_e,null,[(q(!0),oe(_e,null,ct(e.alerts.alerts,(s,p)=>(q(),Te(h,{alert:s,key:p,onRefreshPage:e.refreshPage,onUpdateTag:e.updateTag},null,8,["alert","onRefreshPage","onUpdateTag"]))),128)),fe(g,{total:e.alerts.total,currentPage:e.alerts.currentPage,pageSize:e.alerts.pageSize,onUpdatePage:e.updatePage},null,8,["total","currentPage","pageSize","onUpdatePage"]),N("p",Z$,"("+Ae(e.alerts.total)+" results in total, "+Ae(e.alerts.alerts.length)+" shown)",1)],64)}const Id=ke(X$,[["render",J$]]),Q$=$e({name:"AlertsForm",props:{tags:{type:Array,required:!0},ruleSet:{type:Array,required:!0},page:{type:String,required:!0},tag:{type:String,required:!1}},setup(e){const t=At("artifact"),n=At("fromAt"),i=At("tag",e.tag||null),d=At("ruleId"),u=At("toAt"),h=()=>({artifact:Wt(t.value),page:parseInt(e.page),ruleId:Wt(d.value),tag:Wt(i.value),toAt:Wt(u.value),fromAt:Wt(n.value)});return Ye(()=>e.tag,()=>{i.value=e.tag||null}),{artifact:t,fromAt:n,getSearchParams:h,ruleId:d,toAt:u,tagInput:i}}}),q$={class:"columns"},eC={class:"column"},tC={class:"field is-horizontal"},nC=N("div",{class:"field-label is-normal"},[N("label",{class:"label"},"Rule")],-1),iC={class:"field-body"},rC={class:"field"},oC={class:"control"},sC={class:"select"},aC=N("option",null,null,-1),lC={class:"column"},cC={class:"field is-horizontal"},uC=N("div",{class:"field-label is-normal"},[N("label",{class:"label"},"Artifact")],-1),hC={class:"field-body"},fC={class:"field"},dC={class:"control"},pC={class:"columns"},gC={class:"column"},mC={class:"field is-horizontal"},vC=N("div",{class:"field-label is-normal"},[N("label",{class:"label"},"Tag")],-1),yC={class:"field-body"},bC={class:"field"},wC={class:"control"},$C={class:"select"},CC=N("option",null,null,-1),SC=N("div",{class:"column"},null,-1),_C={class:"columns"},AC={class:"column"},kC={class:"field is-horizontal"},xC=N("div",{class:"field-label is-normal"},[N("label",{class:"label"},"From")],-1),EC={class:"field-body"},RC={class:"field"},LC={class:"control"},TC={class:"column"},MC={class:"field is-horizontal"},OC=N("div",{class:"field-label is-normal"},[N("label",{class:"label"},"To")],-1),IC={class:"field-body"},FC={class:"field"},NC={class:"control"};function PC(e,t,n,i,d,u){return q(),oe(_e,null,[N("div",q$,[N("div",eC,[N("div",tC,[nC,N("div",iC,[N("div",rC,[N("div",oC,[N("div",sC,[Ot(N("select",{"onUpdate:modelValue":t[0]||(t[0]=h=>e.ruleId=h)},[aC,(q(!0),oe(_e,null,ct(e.ruleSet,h=>(q(),oe("option",{key:h},Ae(h),1))),128))],512),[[vr,e.ruleId]])])])])])])]),N("div",lC,[N("div",cC,[uC,N("div",hC,[N("div",fC,[N("p",dC,[Ot(N("input",{class:"input",type:"text","onUpdate:modelValue":t[1]||(t[1]=h=>e.artifact=h)},null,512),[[Nt,e.artifact]])])])])])])]),N("div",pC,[N("div",gC,[N("div",mC,[vC,N("div",yC,[N("div",bC,[N("div",wC,[N("div",$C,[Ot(N("select",{"onUpdate:modelValue":t[2]||(t[2]=h=>e.tagInput=h)},[CC,(q(!0),oe(_e,null,ct(e.tags,h=>(q(),oe("option",{key:h},Ae(h),1))),128))],512),[[vr,e.tagInput]])])])])])])]),SC]),N("div",_C,[N("div",AC,[N("div",kC,[xC,N("div",EC,[N("div",RC,[N("p",LC,[Ot(N("input",{class:"input",type:"date","onUpdate:modelValue":t[3]||(t[3]=h=>e.fromAt=h)},null,512),[[Nt,e.fromAt]])])])])])]),N("div",TC,[N("div",MC,[OC,N("div",IC,[N("div",FC,[N("p",NC,[Ot(N("input",{class:"input",type:"date","onUpdate:modelValue":t[4]||(t[4]=h=>e.toAt=h)},null,512),[[Nt,e.toAt]])])])])])])])],64)}const DC=ke(Q$,[["render",PC]]);var Fd={exports:{}};const BC=Ad(l0);(function(e,t){(function(n,i){e.exports=i(BC)})(Nn,function(n){return function(){var i={789:function(g){g.exports=n}},d={};function u(g){var s=d[g];if(s!==void 0)return s.exports;var p=d[g]={exports:{}};return i[g](p,p.exports,u),p.exports}u.d=function(g,s){for(var p in s)u.o(s,p)&&!u.o(g,p)&&Object.defineProperty(g,p,{enumerable:!0,get:s[p]})},u.o=function(g,s){return Object.prototype.hasOwnProperty.call(g,s)},u.r=function(g){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(g,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(g,"__esModule",{value:!0})};var h={};return function(){function g(b,A){(A==null||A>b.length)&&(A=b.length);for(var C=0,w=new Array(A);C<A;C++)w[C]=b[C];return w}function s(b,A){if(b){if(typeof b=="string")return g(b,A);var C=Object.prototype.toString.call(b).slice(8,-1);return C==="Object"&&b.constructor&&(C=b.constructor.name),C==="Map"||C==="Set"?Array.from(b):C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C)?g(b,A):void 0}}function p(b){return function(A){if(Array.isArray(A))return g(A)}(b)||function(A){if(typeof Symbol<"u"&&A[Symbol.iterator]!=null||A["@@iterator"]!=null)return Array.from(A)}(b)||s(b)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
777
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function o(b,A,C){return A in b?Object.defineProperty(b,A,{value:C,enumerable:!0,configurable:!0,writable:!0}):b[A]=C,b}u.r(h),u.d(h,{default:function(){return M}});var r=u(789),a=(0,r.defineComponent)({props:{data:{required:!0,type:String},onClick:Function},render:function(){var b=this.data,A=this.onClick;return(0,r.createVNode)("span",{class:"vjs-tree-brackets",onClick:A},[b])}}),c=(0,r.defineComponent)({emits:["change","update:modelValue"],props:{checked:{type:Boolean,default:!1},isMultiple:Boolean,onChange:Function},setup:function(b,A){var C=A.emit;return{uiType:(0,r.computed)(function(){return b.isMultiple?"checkbox":"radio"}),model:(0,r.computed)({get:function(){return b.checked},set:function(w){return C("update:modelValue",w)}})}},render:function(){var b=this.uiType,A=this.model,C=this.$emit;return(0,r.createVNode)("label",{class:["vjs-check-controller",A?"is-checked":""],onClick:function(w){return w.stopPropagation()}},[(0,r.createVNode)("span",{class:"vjs-check-controller-inner is-".concat(b)},null),(0,r.createVNode)("input",{checked:A,class:"vjs-check-controller-original is-".concat(b),type:b,onChange:function(){return C("change",A)}},null)])}}),l=(0,r.defineComponent)({props:{nodeType:{required:!0,type:String},onClick:Function},render:function(){var b=this.nodeType,A=this.onClick,C=b==="objectStart"||b==="arrayStart";return C||b==="objectCollapsed"||b==="arrayCollapsed"?(0,r.createVNode)("span",{class:"vjs-carets vjs-carets-".concat(C?"open":"close"),onClick:A},[(0,r.createVNode)("svg",{viewBox:"0 0 1024 1024",focusable:"false","data-icon":"caret-down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[(0,r.createVNode)("path",{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"},null)])]):null}});function f(b){return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},f(b)}function m(b){return Object.prototype.toString.call(b).slice(8,-1).toLowerCase()}function v(b){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"root",C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,w=arguments.length>3?arguments[3]:void 0,E=w||{},L=E.key,O=E.index,I=E.type,F=I===void 0?"content":I,D=E.showComma,W=D!==void 0&&D,j=E.length,H=j===void 0?1:j,U=m(b);if(U==="array"){var K=y(b.map(function(X,Y,V){return v(X,"".concat(A,"[").concat(Y,"]"),C+1,{index:Y,showComma:Y!==V.length-1,length:H,type:F})}));return[v("[",A,C,{showComma:!1,key:L,length:b.length,type:"arrayStart"})[0]].concat(K,v("]",A,C,{showComma:W,length:b.length,type:"arrayEnd"})[0])}if(U==="object"){var Z=Object.keys(b),z=y(Z.map(function(X,Y,V){return v(b[X],/^[a-zA-Z_]\w*$/.test(X)?"".concat(A,".").concat(X):"".concat(A,'["').concat(X,'"]'),C+1,{key:X,showComma:Y!==V.length-1,length:H,type:F})}));return[v("{",A,C,{showComma:!1,key:L,index:O,length:Z.length,type:"objectStart"})[0]].concat(z,v("}",A,C,{showComma:W,length:Z.length,type:"objectEnd"})[0])}return[{content:b,level:C,key:L,index:O,path:A,showComma:W,length:H,type:F}]}function y(b){if(typeof Array.prototype.flat=="function")return b.flat();for(var A=p(b),C=[];A.length;){var w=A.shift();Array.isArray(w)?A.unshift.apply(A,p(w)):C.push(w)}return C}function k(b){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new WeakMap;if(b==null)return b;if(b instanceof Date)return new Date(b);if(b instanceof RegExp)return new RegExp(b);if(f(b)!=="object")return b;if(A.get(b))return A.get(b);if(Array.isArray(b)){var C=b.map(function(L){return k(L,A)});return A.set(b,C),C}var w={};for(var E in b)w[E]=k(b[E],A);return A.set(b,w),w}function S(b,A){var C=Object.keys(b);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(b);A&&(w=w.filter(function(E){return Object.getOwnPropertyDescriptor(b,E).enumerable})),C.push.apply(C,w)}return C}function _(b){for(var A=1;A<arguments.length;A++){var C=arguments[A]!=null?arguments[A]:{};A%2?S(Object(C),!0).forEach(function(w){o(b,w,C[w])}):Object.getOwnPropertyDescriptors?Object.defineProperties(b,Object.getOwnPropertyDescriptors(C)):S(Object(C)).forEach(function(w){Object.defineProperty(b,w,Object.getOwnPropertyDescriptor(C,w))})}return b}var $={showLength:{type:Boolean,default:!1},showDoubleQuotes:{type:Boolean,default:!0},renderNodeKey:Function,renderNodeValue:Function,selectableType:String,showSelectController:{type:Boolean,default:!1},showLine:{type:Boolean,default:!0},showLineNumber:{type:Boolean,default:!1},selectOnClickNode:{type:Boolean,default:!0},nodeSelectable:{type:Function,default:function(){return!0}},highlightSelectedNode:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!1},showKeyValueSpace:{type:Boolean,default:!0},editable:{type:Boolean,default:!1},editableTrigger:{type:String,default:"click"},onNodeClick:{type:Function},onBracketsClick:{type:Function},onIconClick:{type:Function},onValueChange:{type:Function}},R=(0,r.defineComponent)({name:"TreeNode",props:_(_({},$),{},{node:{type:Object,required:!0},collapsed:Boolean,checked:Boolean,style:Object,onSelectedChange:{type:Function}}),emits:["nodeClick","bracketsClick","iconClick","selectedChange","valueChange"],setup:function(b,A){var C=A.emit,w=(0,r.computed)(function(){return m(b.node.content)}),E=(0,r.computed)(function(){return"vjs-value vjs-value-".concat(w.value)}),L=(0,r.computed)(function(){return b.showDoubleQuotes?'"'.concat(b.node.key,'"'):b.node.key}),O=(0,r.computed)(function(){return b.selectableType==="multiple"}),I=(0,r.computed)(function(){return b.selectableType==="single"}),F=(0,r.computed)(function(){return b.nodeSelectable(b.node)&&(O.value||I.value)}),D=(0,r.reactive)({editing:!1}),W=function(Y){var V,ee,P=(ee=(V=Y.target)===null||V===void 0?void 0:V.value)==="null"?null:ee==="undefined"?void 0:ee==="true"||ee!=="false"&&(ee[0]+ee[ee.length-1]==='""'||ee[0]+ee[ee.length-1]==="''"?ee.slice(1,-1):typeof Number(ee)=="number"&&!isNaN(Number(ee))||ee==="NaN"?Number(ee):ee);C("valueChange",P,b.node.path)},j=(0,r.computed)(function(){var Y,V=(Y=b.node)===null||Y===void 0?void 0:Y.content;return V===null?V="null":V===void 0&&(V="undefined"),w.value==="string"?'"'.concat(V,'"'):V+""}),H=function(){var Y=b.renderNodeValue;return Y?Y({node:b.node,defaultValue:j.value}):j.value},U=function(){C("bracketsClick",!b.collapsed,b.node.path)},K=function(){C("iconClick",!b.collapsed,b.node.path)},Z=function(){C("selectedChange",b.node)},z=function(){C("nodeClick",b.node),F.value&&b.selectOnClickNode&&C("selectedChange",b.node)},X=function(Y){if(b.editable&&!D.editing){D.editing=!0;var V=function ee(P){var B;P.target!==Y.target&&((B=P.target)===null||B===void 0?void 0:B.parentElement)!==Y.target&&(D.editing=!1,document.removeEventListener("click",ee))};document.removeEventListener("click",V),document.addEventListener("click",V)}};return function(){var Y,V=b.node;return(0,r.createVNode)("div",{class:{"vjs-tree-node":!0,"has-selector":b.showSelectController,"has-carets":b.showIcon,"is-highlight":b.highlightSelectedNode&&b.checked},onClick:z,style:b.style},[b.showLineNumber&&(0,r.createVNode)("span",{class:"vjs-node-index"},[V.id+1]),b.showSelectController&&F.value&&V.type!=="objectEnd"&&V.type!=="arrayEnd"&&(0,r.createVNode)(c,{isMultiple:O.value,checked:b.checked,onChange:Z},null),(0,r.createVNode)("div",{class:"vjs-indent"},[Array.from(Array(V.level)).map(function(ee,P){return(0,r.createVNode)("div",{key:P,class:{"vjs-indent-unit":!0,"has-line":b.showLine}},null)}),b.showIcon&&(0,r.createVNode)(l,{nodeType:V.type,onClick:K},null)]),V.key&&(0,r.createVNode)("span",{class:"vjs-key"},[(Y=b.renderNodeKey,Y?Y({node:b.node,defaultKey:L.value||""}):L.value),(0,r.createVNode)("span",{class:"vjs-colon"},[":".concat(b.showKeyValueSpace?" ":"")])]),(0,r.createVNode)("span",null,[V.type!=="content"&&V.content?(0,r.createVNode)(a,{data:V.content.toString(),onClick:U},null):(0,r.createVNode)("span",{class:E.value,onClick:!b.editable||b.editableTrigger&&b.editableTrigger!=="click"?void 0:X,onDblclick:b.editable&&b.editableTrigger==="dblclick"?X:void 0},[b.editable&&D.editing?(0,r.createVNode)("input",{value:j.value,onChange:W,style:{padding:"3px 8px",border:"1px solid #eee",boxShadow:"none",boxSizing:"border-box",borderRadius:5,fontFamily:"inherit"}},null):H()]),V.showComma&&(0,r.createVNode)("span",null,[","]),b.showLength&&b.collapsed&&(0,r.createVNode)("span",{class:"vjs-comment"},[(0,r.createTextVNode)(" // "),V.length,(0,r.createTextVNode)(" items ")])])])}}});function T(b,A){var C=Object.keys(b);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(b);A&&(w=w.filter(function(E){return Object.getOwnPropertyDescriptor(b,E).enumerable})),C.push.apply(C,w)}return C}function x(b){for(var A=1;A<arguments.length;A++){var C=arguments[A]!=null?arguments[A]:{};A%2?T(Object(C),!0).forEach(function(w){o(b,w,C[w])}):Object.getOwnPropertyDescriptors?Object.defineProperties(b,Object.getOwnPropertyDescriptors(C)):T(Object(C)).forEach(function(w){Object.defineProperty(b,w,Object.getOwnPropertyDescriptor(C,w))})}return b}var M=(0,r.defineComponent)({name:"Tree",props:x(x({},$),{},{data:{type:[String,Number,Boolean,Array,Object],default:null},collapsedNodeLength:{type:Number,default:1/0},deep:{type:Number,default:1/0},pathCollapsible:{type:Function,default:function(){return!1}},rootPath:{type:String,default:"root"},virtual:{type:Boolean,default:!1},height:{type:Number,default:400},itemHeight:{type:Number,default:20},selectedValue:{type:[String,Array],default:function(){return""}},collapsedOnClickBrackets:{type:Boolean,default:!0},style:Object,onSelectedChange:{type:Function}}),slots:["renderNodeKey","renderNodeValue"],emits:["nodeClick","bracketsClick","iconClick","selectedChange","update:selectedValue","update:data"],setup:function(b,A){var C=A.emit,w=A.slots,E=(0,r.ref)(),L=(0,r.computed)(function(){return v(b.data,b.rootPath)}),O=function(V,ee){return L.value.reduce(function(P,B){var G,J=B.level>=V||B.length>=ee,te=(G=b.pathCollapsible)===null||G===void 0?void 0:G.call(b,B);return B.type!=="objectStart"&&B.type!=="arrayStart"||!J&&!te?P:x(x({},P),{},o({},B.path,1))},{})},I=(0,r.reactive)({translateY:0,visibleData:null,hiddenPaths:O(b.deep,b.collapsedNodeLength)}),F=(0,r.computed)(function(){for(var V=null,ee=[],P=L.value.length,B=0;B<P;B++){var G=x(x({},L.value[B]),{},{id:B}),J=I.hiddenPaths[G.path];if(V&&V.path===G.path){var te=V.type==="objectStart",ie=x(x(x({},G),V),{},{showComma:G.showComma,content:te?"{...}":"[...]",type:te?"objectCollapsed":"arrayCollapsed"});V=null,ee.push(ie)}else{if(J&&!V){V=G;continue}if(V)continue;ee.push(G)}}return ee}),D=(0,r.computed)(function(){var V=b.selectedValue;return V&&b.selectableType==="multiple"&&Array.isArray(V)?V:[V]}),W=(0,r.computed)(function(){return!b.selectableType||b.selectOnClickNode||b.showSelectController?"":"When selectableType is not null, selectOnClickNode and showSelectController cannot be false at the same time, because this will cause the selection to fail."}),j=function(){var V=F.value;if(b.virtual){var ee,P=b.height/b.itemHeight,B=((ee=E.value)===null||ee===void 0?void 0:ee.scrollTop)||0,G=Math.floor(B/b.itemHeight),J=G<0?0:G+P>V.length?V.length-P:G;J<0&&(J=0);var te=J+P;I.translateY=J*b.itemHeight,I.visibleData=V.filter(function(ie,le){return le>=J&&le<te})}else I.visibleData=V},H=function(){j()},U=function(V){var ee,P,B=V.path,G=b.selectableType;if(G==="multiple"){var J=D.value.findIndex(function(se){return se===B}),te=p(D.value);J!==-1?te.splice(J,1):te.push(B),C("update:selectedValue",te),C("selectedChange",te,p(D.value))}else if(G==="single"&&D.value[0]!==B){var ie=(ee=D.value,P=1,function(se){if(Array.isArray(se))return se}(ee)||function(se,ce){var re=se==null?null:typeof Symbol<"u"&&se[Symbol.iterator]||se["@@iterator"];if(re!=null){var ve,de,me=[],Ce=!0,Q=!1;try{for(re=re.call(se);!(Ce=(ve=re.next()).done)&&(me.push(ve.value),!ce||me.length!==ce);Ce=!0);}catch(ae){Q=!0,de=ae}finally{try{Ce||re.return==null||re.return()}finally{if(Q)throw de}}return me}}(ee,P)||s(ee,P)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
778
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}())[0],le=B;C("update:selectedValue",le),C("selectedChange",le,ie)}},K=function(V){C("nodeClick",V)},Z=function(V,ee){if(V)I.hiddenPaths=x(x({},I.hiddenPaths),{},o({},ee,1));else{var P=x({},I.hiddenPaths);delete P[ee],I.hiddenPaths=P}},z=function(V,ee){b.collapsedOnClickBrackets&&Z(V,ee),C("bracketsClick",V)},X=function(V,ee){Z(V,ee),C("iconClick",V)},Y=function(V,ee){var P=k(b.data),B=b.rootPath;new Function("data","val","data".concat(ee.slice(B.length),"=val"))(P,V),C("update:data",P)};return(0,r.watchEffect)(function(){W.value&&function(V){throw new Error("[VueJSONPretty] ".concat(V))}(W.value)}),(0,r.watchEffect)(function(){F.value&&j()}),(0,r.watch)(function(){return b.deep},function(V){V&&(I.hiddenPaths=O(V,b.collapsedNodeLength))}),(0,r.watch)(function(){return b.collapsedNodeLength},function(V){V&&(I.hiddenPaths=O(b.deep,V))}),function(){var V,ee,P=(V=b.renderNodeKey)!==null&&V!==void 0?V:w.renderNodeKey,B=(ee=b.renderNodeValue)!==null&&ee!==void 0?ee:w.renderNodeValue,G=I.visibleData&&I.visibleData.map(function(J){return(0,r.createVNode)(R,{key:J.id,node:J,collapsed:!!I.hiddenPaths[J.path],showDoubleQuotes:b.showDoubleQuotes,showLength:b.showLength,checked:D.value.includes(J.path),selectableType:b.selectableType,showLine:b.showLine,showLineNumber:b.showLineNumber,showSelectController:b.showSelectController,selectOnClickNode:b.selectOnClickNode,nodeSelectable:b.nodeSelectable,highlightSelectedNode:b.highlightSelectedNode,editable:b.editable,editableTrigger:b.editableTrigger,showIcon:b.showIcon,showKeyValueSpace:b.showKeyValueSpace,renderNodeKey:P,renderNodeValue:B,onNodeClick:K,onBracketsClick:z,onIconClick:X,onSelectedChange:U,onValueChange:Y,style:b.itemHeight&&b.itemHeight!==20?{lineHeight:"".concat(b.itemHeight,"px")}:{}},null)});return(0,r.createVNode)("div",{ref:E,class:{"vjs-tree":!0,"is-virtual":b.virtual},onScroll:b.virtual?H:void 0,style:b.showLineNumber?x({paddingLeft:"".concat(12*Number(L.value.length.toString().length),"px")},b.style):b.style},[b.virtual?(0,r.createVNode)("div",{class:"vjs-tree-list",style:{height:"".concat(b.height,"px")}},[(0,r.createVNode)("div",{class:"vjs-tree-list-holder",style:{height:"".concat(F.value.length*b.itemHeight,"px")}},[(0,r.createVNode)("div",{class:"vjs-tree-list-holder-inner",style:{transform:"translateY(".concat(I.translateY,"px)")}},[G])])]):G])}}})}(),h}()})})(Fd);var WC=Fd.exports;const Nd=Pn(WC),HC=$e({name:"ErrorItem",props:{error:{type:Object,required:!0}},components:{VueJsonPretty:Nd}}),UC={class:"notification is-danger is-light"},zC={key:0},VC={key:1},jC={key:0,class:"message"},GC={class:"message-body"};function KC(e,t,n,i,d,u){var g,s;const h=he("VueJsonPretty");return q(),oe(_e,null,[N("div",UC,[(g=e.error.response.data)!=null&&g.message?(q(),oe("p",zC,Ae(e.error.response.data.message),1)):(q(),oe("p",VC,Ae(e.error),1))]),(s=e.error.response.data)!=null&&s.details?(q(),oe("article",jC,[N("div",GC,[fe(h,{data:e.error.response.data.details},null,8,["data"])])])):we("",!0)],64)}const hn=ke(HC,[["render",KC]]),YC=$e({name:"LoadingItem"}),XC={class:"has-text-centered"},ZC={class:"fa-3x"};function JC(e,t,n,i,d,u){const h=he("font-awesome-icon");return q(),oe("div",XC,[N("div",ZC,[fe(h,{icon:"spinner",spin:""})])])}const ri=ke(YC,[["render",JC]]),QC=$e({name:"AlertsWrapper",components:{AlertsComponent:Id,FormComponent:DC,Loading:ri,ErrorMessage:hn},setup(){const e=At("page","1"),t=Ke(void 0),n=Ke(),i=wl(),d=Cd(),u=I1(),h=async()=>{var c;const a=(c=n.value)==null?void 0:c.getSearchParams();return await i.perform(a)},g=a=>{e.value=a.toString()},s=()=>{e.value="1"},p=async()=>{s(),await h()},o=a=>{t.value===a?t.value=void 0:t.value=a,jt(async()=>await p())},r=async()=>{await p()};return tt(async()=>{d.perform(),u.perform(),await h()}),Ye([e,t],async()=>{jt(async()=>await h())}),{getAlertsTask:i,getRuleSetTask:u,getTagsTask:d,refreshPage:r,search:p,tag:t,updatePage:g,updateTag:o,form:n,page:e}}}),qC={class:"box mb-6"},eS=N("hr",null,null,-1),tS={class:"columns"},nS={class:"column"},iS={class:"field is-grouped is-grouped-centered"},rS={class:"control"},oS={class:"icon is-small"},sS=N("span",null,"Search",-1),aS={key:0},lS=N("hr",null,null,-1);function cS(e,t,n,i,d,u){var r,a,c,l;const h=he("FormComponent"),g=he("font-awesome-icon"),s=he("Loading"),p=he("ErrorMessage"),o=he("AlertsComponent");return q(),oe(_e,null,[N("div",qC,[fe(h,{ref:"form",ruleSet:((r=e.getRuleSetTask.last)==null?void 0:r.value)||[],tags:((a=e.getTagsTask.last)==null?void 0:a.value)||[],page:e.page,tag:e.tag},null,8,["ruleSet","tags","page","tag"]),eS,N("div",tS,[N("div",nS,[N("div",iS,[N("p",rS,[N("a",{class:"button is-primary",onClick:t[0]||(t[0]=(...f)=>e.search&&e.search(...f))},[N("span",oS,[fe(g,{icon:"search"})]),sS])])])])])]),e.getAlertsTask.performCount>0?(q(),oe("div",aS,[lS,e.getAlertsTask.isRunning?(q(),Te(s,{key:0})):we("",!0),e.getAlertsTask.isError?(q(),Te(p,{key:1,error:(c=e.getAlertsTask.last)==null?void 0:c.error},null,8,["error"])):we("",!0),(l=e.getAlertsTask.last)!=null&&l.value?(q(),Te(o,{key:2,alerts:e.getAlertsTask.last.value,page:e.page,onRefreshPage:e.refreshPage,onUpdatePage:e.updatePage,onUpdateTag:e.updateTag},null,8,["alerts","page","onRefreshPage","onUpdatePage","onUpdateTag"])):we("",!0)])):we("",!0)],64)}const uS=ke(QC,[["render",cS]]),hS=$e({name:"AlertsView",components:{Alerts:uS},setup(){ii("Alerts - Mihari")}});function fS(e,t,n,i,d,u){const h=he("Alerts",!0);return q(),Te(h)}const dS=ke(hS,[["render",fS]]),pS=$e({name:"AlertsWithPagination",props:{ruleId:{type:String},artifact:{type:String}},components:{Alerts:Id,Loading:ri},setup(e){const t=Ke(1),n=Ke(void 0),i=wl(),d=async()=>{const p={artifact:e.artifact,page:t.value,ruleId:e.ruleId,tag:n.value,toAt:void 0,fromAt:void 0};return await i.perform(p)},u=p=>{t.value=p},h=()=>{t.value=1},g=async()=>{h(),await d()},s=p=>{n.value===p?n.value=void 0:n.value=p};return tt(async()=>{await d()}),Ye([e,t,n],async()=>{jt(async()=>await d())}),{page:t,getAlertsTask:i,refreshPage:g,updatePage:u,updateTag:s}}});function gS(e,t,n,i,d,u){var s;const h=he("Loading"),g=he("Alerts");return q(),oe(_e,null,[e.getAlertsTask.isRunning?(q(),Te(h,{key:0})):we("",!0),(s=e.getAlertsTask.last)!=null&&s.value?(q(),Te(g,{key:1,page:e.page.toString(),alerts:e.getAlertsTask.last.value,onRefreshPage:e.refreshPage,onUpdatePage:e.updatePage,onUpdateTag:e.updateTag},null,8,["page","alerts","onRefreshPage","onUpdatePage","onUpdateTag"])):we("",!0)],64)}const Pd=ke(pS,[["render",gS]]),mS=$e({name:"AS",props:{autonomousSystem:{type:Object,required:!0}}}),vS={class:"tags are-medium"},yS={class:"tag"};function bS(e,t,n,i,d,u){return q(),oe("div",vS,[N("span",yS,Ae(e.autonomousSystem.asn),1)])}const wS=ke(mS,[["render",bS]]),$S=$e({name:"CPEsItem",props:{cpes:{type:Array,required:!0}}}),CS={class:"tags are-medium"};function SS(e,t,n,i,d,u){return q(),oe("div",CS,[(q(!0),oe(_e,null,ct(e.cpes,h=>(q(),oe("span",{class:"tag",key:h.cpe},Ae(h.cpe),1))),128))])}const _S=ke($S,[["render",SS]]),AS=$e({name:"DnsRecords",props:{dnsRecords:{type:Array,required:!0}},setup(){return{truncate:$l}}}),kS={class:"field is-grouped is-grouped-multiline"},xS={class:"tags has-addons are-medium"},ES={class:"tag is-dark"},RS={class:"tag"};function LS(e,t,n,i,d,u){return q(),oe("div",kS,[(q(!0),oe(_e,null,ct(e.dnsRecords,(h,g)=>(q(),oe("div",{class:"control",key:g},[N("div",xS,[N("span",ES,Ae(h.resource),1),N("span",RS,Ae(e.truncate(h.value,50)),1)])]))),128))])}const TS=ke(AS,[["render",LS]]),MS=$e({name:"PortsItem",props:{ports:{type:Array,required:!0}}}),OS={class:"tags are-medium"};function IS(e,t,n,i,d,u){return q(),oe("div",OS,[(q(!0),oe(_e,null,ct(e.ports,h=>(q(),oe("span",{class:"tag",key:h.port},Ae(h.port),1))),128))])}const FS=ke(MS,[["render",IS]]),NS=$e({name:"ReverseDnsNames",props:{reverseDnsNames:{type:Array,required:!0}}}),PS={class:"tags are-medium"};function DS(e,t,n,i,d,u){return q(),oe("div",PS,[(q(!0),oe(_e,null,ct(e.reverseDnsNames,h=>(q(),oe("span",{class:"tag",key:h.name},Ae(h.name),1))),128))])}const BS=ke(NS,[["render",DS]]),WS=$e({name:"TagsItem",props:{tags:{type:Array,required:!0}}}),HS={class:"tags are-medium"};function US(e,t,n,i,d,u){const h=he("router-link");return q(),oe("div",HS,[(q(!0),oe(_e,null,ct(e.tags,g=>(q(),Te(h,{class:"tag is-info is-light",key:g.id,to:{name:"Alerts",query:{tag:g.name}}},{default:kt(()=>[dt(Ae(g.name),1)]),_:2},1032,["to"]))),128))])}const zS=ke(WS,[["render",US]]),VS=$e({name:"WhoisRecord",props:{whoisRecord:{type:Object,required:!0}}}),jS={class:"field is-grouped is-grouped-multiline"},GS={class:"control"},KS={class:"tags has-addons are-medium"},YS=N("span",{class:"tag is-dark"},"Registrar",-1),XS={class:"tag is-light"},ZS={class:"control"},JS={class:"tags has-addons are-medium"},QS=N("span",{class:"tag is-dark"},"Created on",-1),qS={class:"tag is-light"},e_={class:"control"},t_={class:"tags has-addons are-medium"},n_=N("span",{class:"tag is-dark"},"Updated on",-1),i_={class:"tag is-light"},r_={class:"control"},o_={class:"tags has-addons are-medium"},s_=N("span",{class:"tag is-dark"},"Expires on",-1),a_={class:"tag is-light"};function l_(e,t,n,i,d,u){var h;return q(),oe("div",jS,[N("div",GS,[N("div",KS,[YS,N("span",XS,Ae(((h=e.whoisRecord.registrar)==null?void 0:h.name)||"N/A"),1)])]),N("div",ZS,[N("div",JS,[QS,N("span",qS,Ae(e.whoisRecord.createdOn||"N/A"),1)])]),N("div",e_,[N("div",t_,[n_,N("span",i_,Ae(e.whoisRecord.updatedOn||"N/A"),1)])]),N("div",r_,[N("div",o_,[s_,N("span",a_,Ae(e.whoisRecord.expiresOn||"N/A"),1)])])])}const c_=ke(VS,[["render",l_]]),u_=$e({name:"LinkItem",props:{data:{type:String,required:!0},link:{type:Object,required:!0}}}),h_=["href"],f_=["src"];function d_(e,t,n,i,d,u){return q(),oe("a",{href:e.link.href(e.data),class:"tag is-white",target:"_blank"},[N("img",{src:e.link.favicon(),alt:"favicon"},null,8,f_),N("span",null,Ae(e.link.name),1)],8,h_)}const p_=ke(u_,[["render",d_],["__scopeId","data-v-66270500"]]);class Tt{constructor(){Le(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 g_ extends Tt{constructor(){super();Le(this,"baseURL");Le(this,"name");Le(this,"type");this.baseURL="https://app.any.run",this.name="ANY.RUN",this.type="hash"}href(n){return this.baseURL+`/submissions/#filehash:${n}`}}class m_ extends Tt{constructor(){super();Le(this,"baseURL");Le(this,"name");Le(this,"type");this.baseURL="https://search.censys.io",this.name="Censys",this.type="ip"}href(n){return this.baseURL+`/hosts/${n}`}}class v_ extends Tt{constructor(){super();Le(this,"baseURL");Le(this,"name");Le(this,"type");this.baseURL="https://crt.sh",this.name="crt.sh",this.type="domain"}href(n){return this.baseURL+`/?q=${n}`}}class y_ extends Tt{constructor(){super();Le(this,"baseURL");Le(this,"name");Le(this,"type");this.baseURL="https://dnslytics.com",this.name="DNSlytics",this.type="ip"}href(n){return this.baseURL+`/ip/${n}`}}class b_ extends Tt{constructor(){super();Le(this,"baseURL");Le(this,"name");Le(this,"type");this.baseURL="https://dnslytics.com",this.name="DNSlytics",this.type="domain"}href(n){return this.baseURL+`/domain/${n}`}}class w_ extends Tt{constructor(){super();Le(this,"baseURL");Le(this,"name");Le(this,"type");this.baseURL="https://www.greynoise.io",this.name="GreyNoise",this.type="ip"}href(n){return this.baseURL+`/viz/query?gnql=ip:${n}`}}class $_ extends Tt{constructor(){super();Le(this,"baseURL");Le(this,"name");Le(this,"type");this.baseURL="https://analyze.intezer.com",this.name="Intezer",this.type="hash"}href(n){return this.baseURL+`/#/files/${n}`}}class Dd extends Tt{constructor(){super();Le(this,"baseURL");Le(this,"name");Le(this,"type");this.baseURL="https://otx.alienvault.com",this.name="OTX",this.type="ip"}href(n){return this.baseURL+`/indicator/ip/${n}`}}class C_ extends Dd{constructor(){super();Le(this,"type");this.type="domain"}href(n){return this.baseURL+`/indicator/domain/${n}`}}class Bd extends Tt{constructor(){super();Le(this,"baseURL");Le(this,"name");Le(this,"type");this.baseURL="https://securitytrails.com",this.name="SecurityTrails",this.type="domain"}}class S_ extends Bd{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/domain/${t}/dns`}}class __ extends Bd{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/list/ip/${t}`}}class A_ extends Tt{constructor(){super();Le(this,"baseURL");Le(this,"name");Le(this,"type");this.baseURL="https://www.shodan.io",this.name="Shodan",this.type="ip"}href(n){return this.baseURL+`/host/${n}`}}class Cl extends Tt{constructor(){super();Le(this,"baseURL");Le(this,"name");Le(this,"type");this.baseURL="https://urlscan.io",this.name="urlscan.io",this.type="domain"}}class k_ extends Cl{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/domain/${t}`}}class x_ extends Cl{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/ip/${t}`}}class E_ extends Cl{constructor(){super(),this.type="url"}href(t){const n=encodeURIComponent(`page.url:"${t}" OR task.url:"${t}"`);return this.baseURL+`/search/#${n}`}}var Wd={exports:{}};const R_={},L_=Object.freeze(Object.defineProperty({__proto__:null,default:R_},Symbol.toStringTag,{value:"Module"})),gu=Ad(L_);/**
779
- * [js-sha256]{@link https://github.com/emn178/js-sha256}
780
- *
781
- * @version 0.10.1
782
- * @author Chen, Yi-Cyuan [emn178@gmail.com]
783
- * @copyright Chen, Yi-Cyuan 2014-2023
784
- * @license MIT
785
- */(function(e){(function(){var t="input is invalid type",n=typeof window=="object",i=n?window:{};i.JS_SHA256_NO_WINDOW&&(n=!1);var d=!n&&typeof self=="object",u=!i.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;u?i=Nn:d&&(i=self);var h=!i.JS_SHA256_NO_COMMON_JS&&!0&&e.exports,g=!i.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",s="0123456789abcdef".split(""),p=[-2147483648,8388608,32768,128],o=[24,16,8,0],r=[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],a=["hex","array","digest","arrayBuffer"],c=[];(i.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function($){return Object.prototype.toString.call($)==="[object Array]"}),g&&(i.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function($){return typeof $=="object"&&$.buffer&&$.buffer.constructor===ArrayBuffer});var l=function($,R){return function(T){return new k(R,!0).update(T)[$]()}},f=function($){var R=l("hex",$);u&&(R=m(R,$)),R.create=function(){return new k($)},R.update=function(M){return R.create().update(M)};for(var T=0;T<a.length;++T){var x=a[T];R[x]=l(x,$)}return R},m=function($,R){var T=gu,x=gu.Buffer,M=R?"sha224":"sha256",b;x.from&&!i.JS_SHA256_NO_BUFFER_FROM?b=x.from:b=function(C){return new x(C)};var A=function(C){if(typeof C=="string")return T.createHash(M).update(C,"utf8").digest("hex");if(C==null)throw new Error(t);return C.constructor===ArrayBuffer&&(C=new Uint8Array(C)),Array.isArray(C)||ArrayBuffer.isView(C)||C.constructor===x?T.createHash(M).update(b(C)).digest("hex"):$(C)};return A},v=function($,R){return function(T,x){return new S(T,R,!0).update(x)[$]()}},y=function($){var R=v("hex",$);R.create=function(M){return new S(M,$)},R.update=function(M,b){return R.create(M).update(b)};for(var T=0;T<a.length;++T){var x=a[T];R[x]=v(x,$)}return R};function k($,R){R?(c[0]=c[16]=c[1]=c[2]=c[3]=c[4]=c[5]=c[6]=c[7]=c[8]=c[9]=c[10]=c[11]=c[12]=c[13]=c[14]=c[15]=0,this.blocks=c):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],$?(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=$}k.prototype.update=function($){if(!this.finalized){var R,T=typeof $;if(T!=="string"){if(T==="object"){if($===null)throw new Error(t);if(g&&$.constructor===ArrayBuffer)$=new Uint8Array($);else if(!Array.isArray($)&&(!g||!ArrayBuffer.isView($)))throw new Error(t)}else throw new Error(t);R=!0}for(var x,M=0,b,A=$.length,C=this.blocks;M<A;){if(this.hashed&&(this.hashed=!1,C[0]=this.block,C[16]=C[1]=C[2]=C[3]=C[4]=C[5]=C[6]=C[7]=C[8]=C[9]=C[10]=C[11]=C[12]=C[13]=C[14]=C[15]=0),R)for(b=this.start;M<A&&b<64;++M)C[b>>2]|=$[M]<<o[b++&3];else for(b=this.start;M<A&&b<64;++M)x=$.charCodeAt(M),x<128?C[b>>2]|=x<<o[b++&3]:x<2048?(C[b>>2]|=(192|x>>6)<<o[b++&3],C[b>>2]|=(128|x&63)<<o[b++&3]):x<55296||x>=57344?(C[b>>2]|=(224|x>>12)<<o[b++&3],C[b>>2]|=(128|x>>6&63)<<o[b++&3],C[b>>2]|=(128|x&63)<<o[b++&3]):(x=65536+((x&1023)<<10|$.charCodeAt(++M)&1023),C[b>>2]|=(240|x>>18)<<o[b++&3],C[b>>2]|=(128|x>>12&63)<<o[b++&3],C[b>>2]|=(128|x>>6&63)<<o[b++&3],C[b>>2]|=(128|x&63)<<o[b++&3]);this.lastByteIndex=b,this.bytes+=b-this.start,b>=64?(this.block=C[16],this.start=b-64,this.hash(),this.hashed=!0):this.start=b}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},k.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var $=this.blocks,R=this.lastByteIndex;$[16]=this.block,$[R>>2]|=p[R&3],this.block=$[16],R>=56&&(this.hashed||this.hash(),$[0]=this.block,$[16]=$[1]=$[2]=$[3]=$[4]=$[5]=$[6]=$[7]=$[8]=$[9]=$[10]=$[11]=$[12]=$[13]=$[14]=$[15]=0),$[14]=this.hBytes<<3|this.bytes>>>29,$[15]=this.bytes<<3,this.hash()}},k.prototype.hash=function(){var $=this.h0,R=this.h1,T=this.h2,x=this.h3,M=this.h4,b=this.h5,A=this.h6,C=this.h7,w=this.blocks,E,L,O,I,F,D,W,j,H,U,K;for(E=16;E<64;++E)F=w[E-15],L=(F>>>7|F<<25)^(F>>>18|F<<14)^F>>>3,F=w[E-2],O=(F>>>17|F<<15)^(F>>>19|F<<13)^F>>>10,w[E]=w[E-16]+L+w[E-7]+O<<0;for(K=R&T,E=0;E<64;E+=4)this.first?(this.is224?(j=300032,F=w[0]-1413257819,C=F-150054599<<0,x=F+24177077<<0):(j=704751109,F=w[0]-210244248,C=F-1521486534<<0,x=F+143694565<<0),this.first=!1):(L=($>>>2|$<<30)^($>>>13|$<<19)^($>>>22|$<<10),O=(M>>>6|M<<26)^(M>>>11|M<<21)^(M>>>25|M<<7),j=$&R,I=j^$&T^K,W=M&b^~M&A,F=C+O+W+r[E]+w[E],D=L+I,C=x+F<<0,x=F+D<<0),L=(x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10),O=(C>>>6|C<<26)^(C>>>11|C<<21)^(C>>>25|C<<7),H=x&$,I=H^x&R^j,W=C&M^~C&b,F=A+O+W+r[E+1]+w[E+1],D=L+I,A=T+F<<0,T=F+D<<0,L=(T>>>2|T<<30)^(T>>>13|T<<19)^(T>>>22|T<<10),O=(A>>>6|A<<26)^(A>>>11|A<<21)^(A>>>25|A<<7),U=T&x,I=U^T&$^H,W=A&C^~A&M,F=b+O+W+r[E+2]+w[E+2],D=L+I,b=R+F<<0,R=F+D<<0,L=(R>>>2|R<<30)^(R>>>13|R<<19)^(R>>>22|R<<10),O=(b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7),K=R&T,I=K^R&x^U,W=b&A^~b&C,F=M+O+W+r[E+3]+w[E+3],D=L+I,M=$+F<<0,$=F+D<<0,this.chromeBugWorkAround=!0;this.h0=this.h0+$<<0,this.h1=this.h1+R<<0,this.h2=this.h2+T<<0,this.h3=this.h3+x<<0,this.h4=this.h4+M<<0,this.h5=this.h5+b<<0,this.h6=this.h6+A<<0,this.h7=this.h7+C<<0},k.prototype.hex=function(){this.finalize();var $=this.h0,R=this.h1,T=this.h2,x=this.h3,M=this.h4,b=this.h5,A=this.h6,C=this.h7,w=s[$>>28&15]+s[$>>24&15]+s[$>>20&15]+s[$>>16&15]+s[$>>12&15]+s[$>>8&15]+s[$>>4&15]+s[$&15]+s[R>>28&15]+s[R>>24&15]+s[R>>20&15]+s[R>>16&15]+s[R>>12&15]+s[R>>8&15]+s[R>>4&15]+s[R&15]+s[T>>28&15]+s[T>>24&15]+s[T>>20&15]+s[T>>16&15]+s[T>>12&15]+s[T>>8&15]+s[T>>4&15]+s[T&15]+s[x>>28&15]+s[x>>24&15]+s[x>>20&15]+s[x>>16&15]+s[x>>12&15]+s[x>>8&15]+s[x>>4&15]+s[x&15]+s[M>>28&15]+s[M>>24&15]+s[M>>20&15]+s[M>>16&15]+s[M>>12&15]+s[M>>8&15]+s[M>>4&15]+s[M&15]+s[b>>28&15]+s[b>>24&15]+s[b>>20&15]+s[b>>16&15]+s[b>>12&15]+s[b>>8&15]+s[b>>4&15]+s[b&15]+s[A>>28&15]+s[A>>24&15]+s[A>>20&15]+s[A>>16&15]+s[A>>12&15]+s[A>>8&15]+s[A>>4&15]+s[A&15];return this.is224||(w+=s[C>>28&15]+s[C>>24&15]+s[C>>20&15]+s[C>>16&15]+s[C>>12&15]+s[C>>8&15]+s[C>>4&15]+s[C&15]),w},k.prototype.toString=k.prototype.hex,k.prototype.digest=function(){this.finalize();var $=this.h0,R=this.h1,T=this.h2,x=this.h3,M=this.h4,b=this.h5,A=this.h6,C=this.h7,w=[$>>24&255,$>>16&255,$>>8&255,$&255,R>>24&255,R>>16&255,R>>8&255,R&255,T>>24&255,T>>16&255,T>>8&255,T&255,x>>24&255,x>>16&255,x>>8&255,x&255,M>>24&255,M>>16&255,M>>8&255,M&255,b>>24&255,b>>16&255,b>>8&255,b&255,A>>24&255,A>>16&255,A>>8&255,A&255];return this.is224||w.push(C>>24&255,C>>16&255,C>>8&255,C&255),w},k.prototype.array=k.prototype.digest,k.prototype.arrayBuffer=function(){this.finalize();var $=new ArrayBuffer(this.is224?28:32),R=new DataView($);return R.setUint32(0,this.h0),R.setUint32(4,this.h1),R.setUint32(8,this.h2),R.setUint32(12,this.h3),R.setUint32(16,this.h4),R.setUint32(20,this.h5),R.setUint32(24,this.h6),this.is224||R.setUint32(28,this.h7),$};function S($,R,T){var x,M=typeof $;if(M==="string"){var b=[],A=$.length,C=0,w;for(x=0;x<A;++x)w=$.charCodeAt(x),w<128?b[C++]=w:w<2048?(b[C++]=192|w>>6,b[C++]=128|w&63):w<55296||w>=57344?(b[C++]=224|w>>12,b[C++]=128|w>>6&63,b[C++]=128|w&63):(w=65536+((w&1023)<<10|$.charCodeAt(++x)&1023),b[C++]=240|w>>18,b[C++]=128|w>>12&63,b[C++]=128|w>>6&63,b[C++]=128|w&63);$=b}else if(M==="object"){if($===null)throw new Error(t);if(g&&$.constructor===ArrayBuffer)$=new Uint8Array($);else if(!Array.isArray($)&&(!g||!ArrayBuffer.isView($)))throw new Error(t)}else throw new Error(t);$.length>64&&($=new k(R,!0).update($).array());var E=[],L=[];for(x=0;x<64;++x){var O=$[x]||0;E[x]=92^O,L[x]=54^O}k.call(this,R,T),this.update(L),this.oKeyPad=E,this.inner=!0,this.sharedMemory=T}S.prototype=new k,S.prototype.finalize=function(){if(k.prototype.finalize.call(this),this.inner){this.inner=!1;var $=this.array();k.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update($),k.prototype.finalize.call(this)}};var _=f();_.sha256=_,_.sha224=f(!0),_.sha256.hmac=y(),_.sha224.hmac=y(!0),h?e.exports=_:(i.sha256=_.sha256,i.sha224=_.sha224)})()})(Wd);var T_=Wd.exports,M_=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},Sl={},O_=Object.prototype.hasOwnProperty,I_;function mu(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return null}}function vu(e){try{return encodeURIComponent(e)}catch{return null}}function F_(e){for(var t=/([^=?#&]+)=?([^&]*)/g,n={},i;i=t.exec(e);){var d=mu(i[1]),u=mu(i[2]);d===null||u===null||d in n||(n[d]=u)}return n}function N_(e,t){t=t||"";var n=[],i,d;typeof t!="string"&&(t="?");for(d in e)if(O_.call(e,d)){if(i=e[d],!i&&(i===null||i===I_||isNaN(i))&&(i=""),d=vu(d),i=vu(i),d===null||i===null)continue;n.push(d+"="+i)}return n.length?t+n.join("&"):""}Sl.stringify=N_;Sl.parse=F_;var Hd=M_,ss=Sl,P_=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,Ud=/[\n\r\t]/g,D_=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,zd=/:\d+$/,B_=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,W_=/^[a-zA-Z]:/;function _l(e){return(e||"").toString().replace(P_,"")}var ya=[["#","hash"],["?","query"],function(t,n){return Vt(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]],yu={hash:1,query:1};function Vd(e){var t;typeof window<"u"?t=window:typeof Nn<"u"?t=Nn:typeof self<"u"?t=self:t={};var n=t.location||{};e=e||n;var i={},d=typeof e,u;if(e.protocol==="blob:")i=new Kt(unescape(e.pathname),{});else if(d==="string"){i=new Kt(e,{});for(u in yu)delete i[u]}else if(d==="object"){for(u in e)u in yu||(i[u]=e[u]);i.slashes===void 0&&(i.slashes=D_.test(e.href))}return i}function Vt(e){return e==="file:"||e==="ftp:"||e==="http:"||e==="https:"||e==="ws:"||e==="wss:"}function jd(e,t){e=_l(e),e=e.replace(Ud,""),t=t||{};var n=B_.exec(e),i=n[1]?n[1].toLowerCase():"",d=!!n[2],u=!!n[3],h=0,g;return d?u?(g=n[2]+n[3]+n[4],h=n[2].length+n[3].length):(g=n[2]+n[4],h=n[2].length):u?(g=n[3]+n[4],h=n[3].length):g=n[4],i==="file:"?h>=2&&(g=g.slice(2)):Vt(i)?g=n[4]:i?d&&(g=g.slice(2)):h>=2&&Vt(t.protocol)&&(g=n[4]),{protocol:i,slashes:d||Vt(i),slashesCount:h,rest:g}}function H_(e,t){if(e==="")return t;for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),i=n.length,d=n[i-1],u=!1,h=0;i--;)n[i]==="."?n.splice(i,1):n[i]===".."?(n.splice(i,1),h++):h&&(i===0&&(u=!0),n.splice(i,1),h--);return u&&n.unshift(""),(d==="."||d==="..")&&n.push(""),n.join("/")}function Kt(e,t,n){if(e=_l(e),e=e.replace(Ud,""),!(this instanceof Kt))return new Kt(e,t,n);var i,d,u,h,g,s,p=ya.slice(),o=typeof t,r=this,a=0;for(o!=="object"&&o!=="string"&&(n=t,t=null),n&&typeof n!="function"&&(n=ss.parse),t=Vd(t),d=jd(e||"",t),i=!d.protocol&&!d.slashes,r.slashes=d.slashes||i&&t.slashes,r.protocol=d.protocol||t.protocol||"",e=d.rest,(d.protocol==="file:"&&(d.slashesCount!==2||W_.test(e))||!d.slashes&&(d.protocol||d.slashesCount<2||!Vt(r.protocol)))&&(p[3]=[/(.*)/,"pathname"]);a<p.length;a++){if(h=p[a],typeof h=="function"){e=h(e,r);continue}u=h[0],s=h[1],u!==u?r[s]=e:typeof u=="string"?(g=u==="@"?e.lastIndexOf(u):e.indexOf(u),~g&&(typeof h[2]=="number"?(r[s]=e.slice(0,g),e=e.slice(g+h[2])):(r[s]=e.slice(g),e=e.slice(0,g)))):(g=u.exec(e))&&(r[s]=g[1],e=e.slice(0,g.index)),r[s]=r[s]||i&&h[3]&&t[s]||"",h[4]&&(r[s]=r[s].toLowerCase())}n&&(r.query=n(r.query)),i&&t.slashes&&r.pathname.charAt(0)!=="/"&&(r.pathname!==""||t.pathname!=="")&&(r.pathname=H_(r.pathname,t.pathname)),r.pathname.charAt(0)!=="/"&&Vt(r.protocol)&&(r.pathname="/"+r.pathname),Hd(r.port,r.protocol)||(r.host=r.hostname,r.port=""),r.username=r.password="",r.auth&&(g=r.auth.indexOf(":"),~g?(r.username=r.auth.slice(0,g),r.username=encodeURIComponent(decodeURIComponent(r.username)),r.password=r.auth.slice(g+1),r.password=encodeURIComponent(decodeURIComponent(r.password))):r.username=encodeURIComponent(decodeURIComponent(r.auth)),r.auth=r.password?r.username+":"+r.password:r.username),r.origin=r.protocol!=="file:"&&Vt(r.protocol)&&r.host?r.protocol+"//"+r.host:"null",r.href=r.toString()}function U_(e,t,n){var i=this;switch(e){case"query":typeof t=="string"&&t.length&&(t=(n||ss.parse)(t)),i[e]=t;break;case"port":i[e]=t,Hd(t,i.protocol)?t&&(i.host=i.hostname+":"+t):(i.host=i.hostname,i[e]="");break;case"hostname":i[e]=t,i.port&&(t+=":"+i.port),i.host=t;break;case"host":i[e]=t,zd.test(t)?(t=t.split(":"),i.port=t.pop(),i.hostname=t.join(":")):(i.hostname=t,i.port="");break;case"protocol":i.protocol=t.toLowerCase(),i.slashes=!n;break;case"pathname":case"hash":if(t){var d=e==="pathname"?"/":"#";i[e]=t.charAt(0)!==d?d+t:t}else i[e]=t;break;case"username":case"password":i[e]=encodeURIComponent(t);break;case"auth":var u=t.indexOf(":");~u?(i.username=t.slice(0,u),i.username=encodeURIComponent(decodeURIComponent(i.username)),i.password=t.slice(u+1),i.password=encodeURIComponent(decodeURIComponent(i.password))):i.username=encodeURIComponent(decodeURIComponent(t))}for(var h=0;h<ya.length;h++){var g=ya[h];g[4]&&(i[g[1]]=i[g[1]].toLowerCase())}return i.auth=i.password?i.username+":"+i.password:i.username,i.origin=i.protocol!=="file:"&&Vt(i.protocol)&&i.host?i.protocol+"//"+i.host:"null",i.href=i.toString(),i}function z_(e){(!e||typeof e!="function")&&(e=ss.stringify);var t,n=this,i=n.host,d=n.protocol;d&&d.charAt(d.length-1)!==":"&&(d+=":");var u=d+(n.protocol&&n.slashes||Vt(n.protocol)?"//":"");return n.username?(u+=n.username,n.password&&(u+=":"+n.password),u+="@"):n.password?(u+=":"+n.password,u+="@"):n.protocol!=="file:"&&Vt(n.protocol)&&!i&&n.pathname!=="/"&&(u+="@"),(i[i.length-1]===":"||zd.test(n.hostname)&&!n.port)&&(i+=":"),u+=i+n.pathname,t=typeof n.query=="object"?e(n.query):n.query,t&&(u+=t.charAt(0)!=="?"?"?"+t:t),n.hash&&(u+=n.hash),u}Kt.prototype={set:U_,toString:z_};Kt.extractProtocol=jd;Kt.location=Vd;Kt.trimLeft=_l;Kt.qs=ss;var V_=Kt;const j_=Pn(V_);class as extends Tt{constructor(){super();Le(this,"baseURL");Le(this,"name");Le(this,"type");this.name="VirusTotal",this.baseURL="https://www.virustotal.com",this.type="domain"}}class G_ extends as{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/gui/domain/${t}/detection`}}class K_ extends as{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/gui/ip-address/${t}/details`}}class Y_ extends as{constructor(){super(),this.type="url"}href(t){const n=T_.sha256(this.normalizeURL(t));return this.baseURL+`/gui/url/${n}/details`}normalizeURL(t){return new j_(t).pathname==="/"&&!t.endsWith("/")?`${t}/`:t}}class X_ extends as{constructor(){super(),this.type="hash"}href(t){return this.baseURL+`/gui/file/${t}/details`}}const Z_=[new g_,new m_,new v_,new b_,new y_,new w_,new $_,new C_,new Dd,new S_,new __,new A_,new k_,new x_,new E_,new G_,new X_,new K_,new Y_],J_=$e({name:"LinksItem",components:{LinkComponent:p_},props:{data:{type:String,required:!0},type:{type:String,required:!0}},setup(e){const t=Z_;return{selectedLinks:Ee(()=>e.type===void 0?t:t.filter(i=>i.type===e.type))}}}),Q_={class:"tags are-medium"};function q_(e,t,n,i,d,u){const h=he("LinkComponent");return q(),oe("div",Q_,[(q(!0),oe(_e,null,ct(e.selectedLinks,g=>(q(),Te(h,{data:e.data,link:g,key:g.name},null,8,["data","link"]))),128))])}const eA=ke(J_,[["render",q_]]),tA=$e({name:"ArtifactItem",props:{artifact:{type:Object,required:!0}},components:{Alerts:Pd,AS:wS,DnsRecords:TS,Links:eA,ReverseDnsNames:BS,Tags:zS,VueJsonPretty:Nd,WhoisRecord:c_,CPEs:_S,Ports:FS},emits:["refresh"],setup(e,t){const n=Ke(void 0),i=Ke(void 0),d=Ke(!1),u=Ee(()=>`/api/artifacts/${e.artifact.id}`),h=Er(),g=Ee(()=>{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}`}),s=m=>{if(m!==void 0)return`https://maps.google.co.jp/maps?output=embed&q=${m.lat},${m.long}&z=3`},p=D1(),o=wl(),r=Sd(),a=N1(),c=async()=>{window.confirm(`Are you sure you want to delete ${e.artifact.data}?`)&&(await r.perform(e.artifact.id),h.push("/"))},l=async()=>{await a.perform(e.artifact.id),t.emit("refresh")},f=()=>{d.value=!d.value};return tt(async()=>{if(e.artifact.dataType==="ip"){let m;if(e.artifact.geolocation===null){const v=await p.perform(e.artifact.data);m=v$(v),i.value=v.countryCode}else m=Md(e.artifact.geolocation.countryCode);n.value=s(m)}}),{countryCode:i,deleteArtifact:c,enrichArtifact:l,enrichArtifactTask:a,flipShowMetadata:f,getAlertsTask:o,googleMapSrc:n,href:u,showMetadata:d,truncate:$l,urlscanLiveshotSrc:g}}}),Xe=e=>(Ya("data-v-541a0d58"),e=e(),Xa(),e),nA={class:"column"},iA=Xe(()=>N("h2",{class:"is-size-2 mb-4"},"Artifact",-1)),rA={class:"columns"},oA={key:0,class:"column is-half"},sA={key:0},aA={class:"is-size-4 mb-2"},lA={class:"has-text-grey"},cA=["src"],uA={key:1},hA=Xe(()=>N("h4",{class:"is-size-4 mb-2"},[dt(" Live screenshot "),N("span",{class:"has-text-grey"},"Hover to expand")],-1)),fA=["src"],dA={class:"column"},pA={class:"block"},gA=Xe(()=>N("h4",{class:"is-size-4 mb-2"},"Information",-1)),mA={class:"buttons is-pulled-right"},vA=["href"],yA=Xe(()=>N("span",null,"JSON",-1)),bA={class:"icon is-small"},wA=Xe(()=>N("span",null,"Metadata",-1)),$A={class:"icon is-small"},CA=Xe(()=>N("span",null,"Enrich",-1)),SA={class:"icon is-small"},_A=Xe(()=>N("span",null,"Delete",-1)),AA={class:"icon is-small"},kA={class:"table is-fullwidth is-completely-borderless"},xA=Xe(()=>N("th",null,"ID",-1)),EA=Xe(()=>N("th",null,"Data type",-1)),RA=Xe(()=>N("th",null,"Data",-1)),LA=Xe(()=>N("th",null,"Source",-1)),TA=Xe(()=>N("th",null,"Query",-1)),MA={key:0},OA=Xe(()=>N("th",null,"Tags",-1)),IA={key:0},FA={class:"modal is-active"},NA={class:"modal-card"},PA={class:"modal-card-head"},DA=Xe(()=>N("p",{class:"modal-card-title"},"Metadata",-1)),BA={class:"modal-card-body"},WA={key:0,class:"block"},HA=Xe(()=>N("h4",{class:"is-size-4 mb-2"},"AS",-1)),UA={key:1,class:"block"},zA=Xe(()=>N("h4",{class:"is-size-4 mb-2"},"Reverse DNS",-1)),VA={key:2,class:"block"},jA=Xe(()=>N("h4",{class:"is-size-4 mb-2"},"DNS records",-1)),GA={key:3,class:"block"},KA=Xe(()=>N("h4",{class:"is-size-4 mb-2"},"CPEs",-1)),YA={key:4,class:"block"},XA=Xe(()=>N("h4",{class:"is-size-4 mb-2"},"Ports",-1)),ZA={key:5,class:"block"},JA=Xe(()=>N("h4",{class:"is-size-4 mb-2"},"Whois record",-1)),QA={class:"block"},qA=Xe(()=>N("h4",{class:"is-size-4 mb-2"},"Links",-1)),e2=Xe(()=>N("hr",null,null,-1)),t2={class:"column"},n2=Xe(()=>N("h2",{class:"is-size-2 mb-4"},"Related alerts",-1));function i2(e,t,n,i,d,u){var v;const h=he("font-awesome-icon"),g=he("Tags"),s=he("VueJsonPretty"),p=he("AS"),o=he("ReverseDnsNames"),r=he("DnsRecords"),a=he("CPEs"),c=he("Ports"),l=he("WhoisRecord"),f=he("Links"),m=he("Alerts");return q(),oe(_e,null,[N("div",nA,[iA,N("div",rA,[e.googleMapSrc!==void 0||e.urlscanLiveshotSrc!==void 0?(q(),oe("div",oA,[e.googleMapSrc?(q(),oe("div",sA,[N("h4",aA,[dt(" Geolocation "),N("span",lA,Ae(e.countryCode||((v=e.artifact.geolocation)==null?void 0:v.countryCode)),1)]),N("iframe",{class:"mb-4",src:e.googleMapSrc,width:"100%",height:"240px"},null,8,cA)])):we("",!0),e.urlscanLiveshotSrc?(q(),oe("div",uA,[hA,N("img",{src:e.urlscanLiveshotSrc,class:"liveshot",alt:"liveshot"},null,8,fA)])):we("",!0)])):we("",!0),N("div",dA,[N("div",pA,[gA,N("span",mA,[N("a",{class:"button is-link is-light is-small",href:e.href,target:"_blank"},[yA,N("span",bA,[fe(h,{icon:"barcode"})])],8,vA),e.artifact.metadata?(q(),oe("button",{key:0,class:"button is-info is-light is-small",onClick:t[0]||(t[0]=(...y)=>e.flipShowMetadata&&e.flipShowMetadata(...y))},[wA,N("span",$A,[fe(h,{icon:"info-circle"})])])):we("",!0),N("button",{class:"button is-primary is-light is-small",onClick:t[1]||(t[1]=(...y)=>e.enrichArtifact&&e.enrichArtifact(...y))},[CA,N("span",SA,[e.enrichArtifactTask.isRunning?(q(),Te(h,{key:0,icon:"spinner",spin:""})):(q(),Te(h,{key:1,icon:"lightbulb"}))])]),N("button",{class:"button is-light is-small",onClick:t[2]||(t[2]=(...y)=>e.deleteArtifact&&e.deleteArtifact(...y))},[_A,N("span",AA,[fe(h,{icon:"times"})])])]),N("table",kA,[N("tr",null,[xA,N("td",null,Ae(e.artifact.id),1)]),N("tr",null,[EA,N("td",null,Ae(e.artifact.dataType),1)]),N("tr",null,[RA,N("td",null,Ae(e.truncate(e.artifact.data,64)),1)]),N("tr",null,[LA,N("td",null,Ae(e.artifact.source),1)]),N("tr",null,[TA,N("td",null,Ae(e.truncate(e.artifact.query||"N/A",64)),1)]),e.artifact.tags.length>0?(q(),oe("tr",MA,[OA,N("td",null,[fe(g,{tags:e.artifact.tags},null,8,["tags"])])])):we("",!0)])]),e.artifact.metadata&&e.showMetadata?(q(),oe("div",IA,[N("div",FA,[N("div",{class:"modal-background",onClick:t[3]||(t[3]=(...y)=>e.flipShowMetadata&&e.flipShowMetadata(...y))}),N("div",NA,[N("header",PA,[DA,N("button",{class:"delete","aria-label":"close",onClick:t[4]||(t[4]=(...y)=>e.flipShowMetadata&&e.flipShowMetadata(...y))})]),N("section",BA,[fe(s,{data:e.artifact.metadata},null,8,["data"])])])])])):we("",!0)])]),e.artifact.autonomousSystem?(q(),oe("div",WA,[HA,fe(p,{autonomousSystem:e.artifact.autonomousSystem},null,8,["autonomousSystem"])])):we("",!0),e.artifact.reverseDnsNames?(q(),oe("div",UA,[zA,fe(o,{reverseDnsNames:e.artifact.reverseDnsNames},null,8,["reverseDnsNames"])])):we("",!0),e.artifact.dnsRecords?(q(),oe("div",VA,[jA,fe(r,{dnsRecords:e.artifact.dnsRecords},null,8,["dnsRecords"])])):we("",!0),e.artifact.cpes?(q(),oe("div",GA,[KA,fe(a,{cpes:e.artifact.cpes},null,8,["cpes"])])):we("",!0),e.artifact.ports?(q(),oe("div",YA,[XA,fe(c,{ports:e.artifact.ports},null,8,["ports"])])):we("",!0),e.artifact.whoisRecord?(q(),oe("div",ZA,[JA,fe(l,{whoisRecord:e.artifact.whoisRecord},null,8,["whoisRecord"])])):we("",!0),N("div",QA,[qA,fe(f,{data:e.artifact.data,type:e.artifact.dataType},null,8,["data","type"])])]),e2,N("div",t2,[n2,fe(m,{artifact:e.artifact.data},null,8,["artifact"])])],64)}const r2=ke(tA,[["render",i2],["__scopeId","data-v-541a0d58"]]),o2=$e({name:"ArtifactWrapper",components:{ArtifactComponent:r2,Loading:ri,ErrorMessage:hn},props:{id:{type:String,required:!0}},setup(e){const t=F1(),n=async()=>{await t.perform(e.id)},i=async()=>{await n()};return tt(async()=>{await n()}),Ye(e,async()=>{await n()}),{getArtifactTask:t,refresh:i}}});function s2(e,t,n,i,d,u){var p,o;const h=he("Loading"),g=he("ErrorMessage"),s=he("ArtifactComponent");return q(),oe(_e,null,[e.getArtifactTask.isRunning?(q(),Te(h,{key:0})):we("",!0),e.getArtifactTask.isError?(q(),Te(g,{key:1,error:(p=e.getArtifactTask.last)==null?void 0:p.error},null,8,["error"])):we("",!0),(o=e.getArtifactTask.last)!=null&&o.value?(q(),Te(s,{key:2,artifact:e.getArtifactTask.last.value,onRefresh:e.refresh},null,8,["artifact","onRefresh"])):we("",!0)],64)}const a2=ke(o2,[["render",s2]]),l2=$e({name:"ArtifactView",components:{Artifact:a2},props:{id:{type:String,required:!0}},setup(e){const t=()=>{ii(`Artifact:${e.id} - Mihari`)};tt(()=>{t()}),Ye(()=>e.id,()=>{t()})}});function c2(e,t,n,i,d,u){const h=he("Artifact",!0);return q(),Te(h,{id:e.id},null,8,["id"])}const u2=ke(l2,[["render",c2]]),h2=$e({name:"ConfigsItem",props:{configs:{type:Array,required:!0}}}),f2={class:"box"},d2={class:"table-container"},p2={class:"table is-fullwidth"},g2=N("thead",null,[N("tr",null,[N("th",null,"Name"),N("th",null,"Type"),N("th",null,"Configured"),N("th",null,"Key-value(s)")])],-1),m2={key:0,class:"button is-success is-small ml-1"},v2={class:"icon is-small"},y2=N("span",null,"Yes",-1),b2={key:1,class:"button is-warning is-small ml-1"},w2={class:"icon is-small"},$2=N("span",null,"No",-1),C2={key:0},S2={key:1};function _2(e,t,n,i,d,u){const h=he("font-awesome-icon");return q(),oe("div",f2,[N("div",d2,[N("table",p2,[g2,N("tbody",null,[(q(!0),oe(_e,null,ct(e.configs,g=>(q(),oe("tr",{key:g.name},[N("td",null,Ae(g.name),1),N("td",null,Ae(g.type),1),N("td",null,[g.isConfigured?(q(),oe("button",m2,[N("span",v2,[fe(h,{icon:"check"})]),y2])):(q(),oe("button",b2,[N("span",w2,[fe(h,{icon:"exclamation"})]),$2]))]),N("td",null,[N("ul",null,[(q(!0),oe(_e,null,ct(g.values,(s,p)=>(q(),oe("li",{key:p},[N("strong",null,Ae(s.key),1),dt(": "),s.value?(q(),oe("code",C2,Ae(s.value),1)):(q(),oe("span",S2,"N/A"))]))),128))])])]))),128))])])])])}const A2=ke(h2,[["render",_2]]),k2=$e({name:"ConfigsWrapper",components:{Configs:A2,Loading:ri,ErrorMessage:hn},setup(){const e=P1();return tt(async()=>{await e.perform()}),{getConfigsTask:e}}});function x2(e,t,n,i,d,u){var p,o;const h=he("Loading"),g=he("ErrorMessage"),s=he("Configs");return q(),oe(_e,null,[e.getConfigsTask.isRunning?(q(),Te(h,{key:0})):we("",!0),e.getConfigsTask.isError?(q(),Te(g,{key:1,error:(p=e.getConfigsTask.last)==null?void 0:p.error},null,8,["error"])):we("",!0),(o=e.getConfigsTask.last)!=null&&o.value?(q(),Te(s,{key:2,configs:e.getConfigsTask.last.value},null,8,["configs"])):we("",!0)],64)}const E2=ke(k2,[["render",x2]]),R2=$e({name:"ConfigView",components:{Configs:E2},setup(){ii("Config - Mihari")}});function L2(e,t,n,i,d,u){const h=he("Configs",!0);return q(),Te(h)}const T2=ke(R2,[["render",L2]]);var Gd={exports:{}};(function(e,t){(function(){var n="ace",i=function(){return this}();!i&&typeof window<"u"&&(i=window);var d=function(o,r,a){if(typeof o!="string"){d.original?d.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(a=r),d.modules[o]||(d.payloads[o]=a,d.modules[o]=null)};d.modules={},d.payloads={};var u=function(o,r,a){if(typeof r=="string"){var c=s(o,r);if(c!=null)return a&&a(),c}else if(Object.prototype.toString.call(r)==="[object Array]"){for(var l=[],f=0,m=r.length;f<m;++f){var v=s(o,r[f]);if(v==null&&h.original)return;l.push(v)}return a&&a.apply(null,l)||!0}},h=function(o,r){var a=u("",o,r);return a==null&&h.original?h.original.apply(this,arguments):a},g=function(o,r){if(r.indexOf("!")!==-1){var a=r.split("!");return g(o,a[0])+"!"+g(o,a[1])}if(r.charAt(0)=="."){var c=o.split("/").slice(0,-1).join("/");for(r=c+"/"+r;r.indexOf(".")!==-1&&l!=r;){var l=r;r=r.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return r},s=function(o,r){r=g(o,r);var a=d.modules[r];if(!a){if(a=d.payloads[r],typeof a=="function"){var c={},l={id:r,uri:"",exports:c,packaged:!0},f=function(v,y){return u(r,v,y)},m=a(f,c,l);c=m||l.exports,d.modules[r]=c,delete d.payloads[r]}a=d.modules[r]=c||a}return a};function p(o){var r=i;o&&(i[o]||(i[o]={}),r=i[o]),(!r.define||!r.define.packaged)&&(d.original=r.define,r.define=d,r.define.packaged=!0),(!r.require||!r.require.packaged)&&(h.original=r.require,r.require=h,r.require.packaged=!0)}p(n)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(n,i,d){function u(h,g,s){Object.defineProperty(h,g,{value:s,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||u(String.prototype,"startsWith",function(h,g){return g=g||0,this.lastIndexOf(h,g)===g}),String.prototype.endsWith||u(String.prototype,"endsWith",function(h,g){var s=this;(g===void 0||g>s.length)&&(g=s.length),g-=h.length;var p=s.indexOf(h,g);return p!==-1&&p===g}),String.prototype.repeat||u(String.prototype,"repeat",function(h){for(var g="",s=this;h>0;)h&1&&(g+=s),(h>>=1)&&(s+=s);return g}),String.prototype.includes||u(String.prototype,"includes",function(h,g){return this.indexOf(h,g)!=-1}),Object.assign||(Object.assign=function(h){if(h==null)throw new TypeError("Cannot convert undefined or null to object");for(var g=Object(h),s=1;s<arguments.length;s++){var p=arguments[s];p!=null&&Object.keys(p).forEach(function(o){g[o]=p[o]})}return g}),Object.values||(Object.values=function(h){return Object.keys(h).map(function(g){return h[g]})}),Array.prototype.find||u(Array.prototype,"find",function(h){for(var g=this.length,s=arguments[1],p=0;p<g;p++){var o=this[p];if(h.call(s,o,p,this))return o}}),Array.prototype.findIndex||u(Array.prototype,"findIndex",function(h){for(var g=this.length,s=arguments[1],p=0;p<g;p++){var o=this[p];if(h.call(s,o,p,this))return p}}),Array.prototype.includes||u(Array.prototype,"includes",function(h,g){return this.indexOf(h,g)!=-1}),Array.prototype.fill||u(Array.prototype,"fill",function(h){for(var g=this,s=g.length>>>0,p=arguments[1],o=p>>0,r=o<0?Math.max(s+o,0):Math.min(o,s),a=arguments[2],c=a===void 0?s:a>>0,l=c<0?Math.max(s+c,0):Math.min(c,s);r<l;)g[r]=h,r++;return g}),Array.of||u(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(n,i,d){n("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(n,i,d){i.deepCopy=function u(h){if(typeof h!="object"||!h)return h;var g;if(Array.isArray(h)){g=[];for(var s=0;s<h.length;s++)g[s]=u(h[s]);return g}if(Object.prototype.toString.call(h)!=="[object Object]")return h;g={};for(var s in h)g[s]=u(h[s]);return g}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(n,i,d){i.last=function(g){return g[g.length-1]},i.stringReverse=function(g){return g.split("").reverse().join("")},i.stringRepeat=function(g,s){for(var p="";s>0;)s&1&&(p+=g),(s>>=1)&&(g+=g);return p};var u=/^\s\s*/,h=/\s\s*$/;i.stringTrimLeft=function(g){return g.replace(u,"")},i.stringTrimRight=function(g){return g.replace(h,"")},i.copyObject=function(g){var s={};for(var p in g)s[p]=g[p];return s},i.copyArray=function(g){for(var s=[],p=0,o=g.length;p<o;p++)g[p]&&typeof g[p]=="object"?s[p]=this.copyObject(g[p]):s[p]=g[p];return s},i.deepCopy=n("./deep_copy").deepCopy,i.arrayToMap=function(g){for(var s={},p=0;p<g.length;p++)s[g[p]]=1;return s},i.createMap=function(g){var s=Object.create(null);for(var p in g)s[p]=g[p];return s},i.arrayRemove=function(g,s){for(var p=0;p<=g.length;p++)s===g[p]&&g.splice(p,1)},i.escapeRegExp=function(g){return g.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},i.escapeHTML=function(g){return(""+g).replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},i.getMatchOffsets=function(g,s){var p=[];return g.replace(s,function(o){p.push({offset:arguments[arguments.length-2],length:o.length})}),p},i.deferredCall=function(g){var s=null,p=function(){s=null,g()},o=function(r){return o.cancel(),s=setTimeout(p,r||0),o};return o.schedule=o,o.call=function(){return this.cancel(),g(),o},o.cancel=function(){return clearTimeout(s),s=null,o},o.isPending=function(){return s},o},i.delayedCall=function(g,s){var p=null,o=function(){p=null,g()},r=function(a){p==null&&(p=setTimeout(o,a||s))};return r.delay=function(a){p&&clearTimeout(p),p=setTimeout(o,a||s)},r.schedule=r,r.call=function(){this.cancel(),g()},r.cancel=function(){p&&clearTimeout(p),p=null},r.isPending=function(){return p},r},i.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},i.skipEmptyMatch=function(g,s,p){return p&&g.codePointAt(s)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(n,i,d){i.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},i.getOS=function(){return i.isMac?i.OS.MAC:i.isLinux?i.OS.LINUX:i.OS.WINDOWS};var u=typeof navigator=="object"?navigator:{},h=(/mac|win|linux/i.exec(u.platform)||["other"])[0].toLowerCase(),g=u.userAgent||"",s=u.appName||"";i.isWin=h=="win",i.isMac=h=="mac",i.isLinux=h=="linux",i.isIE=s=="Microsoft Internet Explorer"||s.indexOf("MSAppHost")>=0?parseFloat((g.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((g.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),i.isOldIE=i.isIE&&i.isIE<9,i.isGecko=i.isMozilla=g.match(/ Gecko\/\d+/),i.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",i.isWebKit=parseFloat(g.split("WebKit/")[1])||void 0,i.isChrome=parseFloat(g.split(" Chrome/")[1])||void 0,i.isSafari=parseFloat(g.split(" Safari/")[1])&&!i.isChrome||void 0,i.isEdge=parseFloat(g.split(" Edge/")[1])||void 0,i.isAIR=g.indexOf("AdobeAIR")>=0,i.isAndroid=g.indexOf("Android")>=0,i.isChromeOS=g.indexOf(" CrOS ")>=0,i.isIOS=/iPad|iPhone|iPod/.test(g)&&!window.MSStream,i.isIOS&&(i.isMac=!0),i.isMobile=i.isIOS||i.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(n,i,d){var u=n("./useragent"),h="http://www.w3.org/1999/xhtml";i.buildDom=function a(c,l,f){if(typeof c=="string"&&c){var m=document.createTextNode(c);return l&&l.appendChild(m),m}if(!Array.isArray(c))return c&&c.appendChild&&l&&l.appendChild(c),c;if(typeof c[0]!="string"||!c[0]){for(var v=[],y=0;y<c.length;y++){var k=a(c[y],l,f);k&&v.push(k)}return v}var S=document.createElement(c[0]),_=c[1],$=1;_&&typeof _=="object"&&!Array.isArray(_)&&($=2);for(var y=$;y<c.length;y++)a(c[y],S,f);return $==2&&Object.keys(_).forEach(function(R){var T=_[R];R==="class"?S.className=Array.isArray(T)?T.join(" "):T:typeof T=="function"||R=="value"||R[0]=="$"?S[R]=T:R==="ref"?f&&(f[T]=S):R==="style"?typeof T=="string"&&(S.style.cssText=T):T!=null&&S.setAttribute(R,T)}),l&&l.appendChild(S),S},i.getDocumentHead=function(a){return a||(a=document),a.head||a.getElementsByTagName("head")[0]||a.documentElement},i.createElement=function(a,c){return document.createElementNS?document.createElementNS(c||h,a):document.createElement(a)},i.removeChildren=function(a){a.innerHTML=""},i.createTextNode=function(a,c){var l=c?c.ownerDocument:document;return l.createTextNode(a)},i.createFragment=function(a){var c=a?a.ownerDocument:document;return c.createDocumentFragment()},i.hasCssClass=function(a,c){var l=(a.className+"").split(/\s+/g);return l.indexOf(c)!==-1},i.addCssClass=function(a,c){i.hasCssClass(a,c)||(a.className+=" "+c)},i.removeCssClass=function(a,c){for(var l=a.className.split(/\s+/g);;){var f=l.indexOf(c);if(f==-1)break;l.splice(f,1)}a.className=l.join(" ")},i.toggleCssClass=function(a,c){for(var l=a.className.split(/\s+/g),f=!0;;){var m=l.indexOf(c);if(m==-1)break;f=!1,l.splice(m,1)}return f&&l.push(c),a.className=l.join(" "),f},i.setCssClass=function(a,c,l){l?i.addCssClass(a,c):i.removeCssClass(a,c)},i.hasCssString=function(a,c){var l=0,f;if(c=c||document,f=c.querySelectorAll("style")){for(;l<f.length;)if(f[l++].id===a)return!0}},i.removeElementById=function(a,c){c=c||document,c.getElementById(a)&&c.getElementById(a).remove()};var g,s=[];i.useStrictCSP=function(a){g=a,a==!1?p():s||(s=[])};function p(){var a=s;s=null,a&&a.forEach(function(c){o(c[0],c[1])})}function o(a,c,l){if(!(typeof document>"u")){if(s){if(l)p();else if(l===!1)return s.push([a,c])}if(!g){var f=l;!l||!l.getRootNode?f=document:(f=l.getRootNode(),(!f||f==l)&&(f=document));var m=f.ownerDocument||f;if(c&&i.hasCssString(c,f))return null;c&&(a+=`
786
- /*# sourceURL=ace/css/`+c+" */");var v=i.createElement("style");v.appendChild(m.createTextNode(a)),c&&(v.id=c),f==m&&(f=i.getDocumentHead(m)),f.insertBefore(v,f.firstChild)}}}if(i.importCssString=o,i.importCssStylsheet=function(a,c){i.buildDom(["link",{rel:"stylesheet",href:a}],i.getDocumentHead(c))},i.scrollbarWidth=function(a){var c=i.createElement("ace_inner");c.style.width="100%",c.style.minWidth="0px",c.style.height="200px",c.style.display="block";var l=i.createElement("ace_outer"),f=l.style;f.position="absolute",f.left="-10000px",f.overflow="hidden",f.width="200px",f.minWidth="0px",f.height="150px",f.display="block",l.appendChild(c);var m=a&&a.documentElement||document&&document.documentElement;if(!m)return 0;m.appendChild(l);var v=c.offsetWidth;f.overflow="scroll";var y=c.offsetWidth;return v===y&&(y=l.clientWidth),m.removeChild(l),v-y},i.computedStyle=function(a,c){return window.getComputedStyle(a,"")||{}},i.setStyle=function(a,c,l){a[c]!==l&&(a[c]=l)},i.HAS_CSS_ANIMATION=!1,i.HAS_CSS_TRANSFORMS=!1,i.HI_DPI=u.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,u.isChromeOS&&(i.HI_DPI=!1),typeof document<"u"){var r=document.createElement("div");i.HI_DPI&&r.style.transform!==void 0&&(i.HAS_CSS_TRANSFORMS=!0),!u.isEdge&&typeof r.style.animationName<"u"&&(i.HAS_CSS_ANIMATION=!0),r=null}i.HAS_CSS_TRANSFORMS?i.translate=function(a,c,l){a.style.transform="translate("+Math.round(c)+"px, "+Math.round(l)+"px)"}:i.translate=function(a,c,l){a.style.top=Math.round(l)+"px",a.style.left=Math.round(c)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(n,i,d){/*
787
- * based on code from:
788
- *
789
- * @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
790
- * Available via the MIT or new BSD license.
791
- * see: http://github.com/jrburke/requirejs for details
792
- */var u=n("./dom");i.get=function(h,g){var s=new XMLHttpRequest;s.open("GET",h,!0),s.onreadystatechange=function(){s.readyState===4&&g(s.responseText)},s.send(null)},i.loadScript=function(h,g){var s=u.getDocumentHead(),p=document.createElement("script");p.src=h,s.appendChild(p),p.onload=p.onreadystatechange=function(o,r){(r||!p.readyState||p.readyState=="loaded"||p.readyState=="complete")&&(p=p.onload=p.onreadystatechange=null,r||g())}},i.qualifyURL=function(h){var g=document.createElement("a");return g.href=h,g.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(n,i,d){i.inherits=function(u,h){u.super_=h,u.prototype=Object.create(h.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}})},i.mixin=function(u,h){for(var g in h)u[g]=h[g];return u},i.implement=function(u,h){i.mixin(u,h)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(n,i,d){var u={},h=function(){this.propagationStopped=!0},g=function(){this.defaultPrevented=!0};u._emit=u._dispatchEvent=function(s,p){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var o=this._eventRegistry[s]||[],r=this._defaultHandlers[s];if(!(!o.length&&!r)){(typeof p!="object"||!p)&&(p={}),p.type||(p.type=s),p.stopPropagation||(p.stopPropagation=h),p.preventDefault||(p.preventDefault=g),o=o.slice();for(var a=0;a<o.length&&(o[a](p,this),!p.propagationStopped);a++);if(r&&!p.defaultPrevented)return r(p,this)}},u._signal=function(s,p){var o=(this._eventRegistry||{})[s];if(o){o=o.slice();for(var r=0;r<o.length;r++)o[r](p,this)}},u.once=function(s,p){var o=this;if(this.on(s,function r(){o.off(s,r),p.apply(null,arguments)}),!p)return new Promise(function(r){p=r})},u.setDefaultHandler=function(s,p){var o=this._defaultHandlers;if(o||(o=this._defaultHandlers={_disabled_:{}}),o[s]){var r=o[s],a=o._disabled_[s];a||(o._disabled_[s]=a=[]),a.push(r);var c=a.indexOf(p);c!=-1&&a.splice(c,1)}o[s]=p},u.removeDefaultHandler=function(s,p){var o=this._defaultHandlers;if(o){var r=o._disabled_[s];if(o[s]==p)r&&this.setDefaultHandler(s,r.pop());else if(r){var a=r.indexOf(p);a!=-1&&r.splice(a,1)}}},u.on=u.addEventListener=function(s,p,o){this._eventRegistry=this._eventRegistry||{};var r=this._eventRegistry[s];return r||(r=this._eventRegistry[s]=[]),r.indexOf(p)==-1&&r[o?"unshift":"push"](p),p},u.off=u.removeListener=u.removeEventListener=function(s,p){this._eventRegistry=this._eventRegistry||{};var o=this._eventRegistry[s];if(o){var r=o.indexOf(p);r!==-1&&o.splice(r,1)}},u.removeAllListeners=function(s){s||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[s]=void 0),this._defaultHandlers&&(this._defaultHandlers[s]=void 0)},i.EventEmitter=u}),ace.define("ace/lib/report_error",["require","exports","module"],function(n,i,d){i.reportError=function(h,g){var s=new Error(h);s.data=g,typeof console=="object"&&console.error&&console.error(s),setTimeout(function(){throw s})}}),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/report_error"],function(n,i,d){"no use strict";var u=n("./oop"),h=n("./event_emitter").EventEmitter,g=n("./report_error").reportError,s={setOptions:function(a){Object.keys(a).forEach(function(c){this.setOption(c,a[c])},this)},getOptions:function(a){var c={};if(a)Array.isArray(a)||(c=a,a=Object.keys(c));else{var l=this.$options;a=Object.keys(l).filter(function(f){return!l[f].hidden})}return a.forEach(function(f){c[f]=this.getOption(f)},this),c},setOption:function(a,c){if(this["$"+a]!==c){var l=this.$options[a];if(!l)return p('misspelled option "'+a+'"');if(l.forwardTo)return this[l.forwardTo]&&this[l.forwardTo].setOption(a,c);l.handlesSet||(this["$"+a]=c),l&&l.set&&l.set.call(this,c)}},getOption:function(a){var c=this.$options[a];return c?c.forwardTo?this[c.forwardTo]&&this[c.forwardTo].getOption(a):c&&c.get?c.get.call(this):this["$"+a]:p('misspelled option "'+a+'"')}};function p(a){typeof console<"u"&&console.warn&&console.warn.apply(console,arguments)}var o,r=function(){function a(){this.$defaultOptions={}}return a.prototype.defineOptions=function(c,l,f){return c.$options||(this.$defaultOptions[l]=c.$options={}),Object.keys(f).forEach(function(m){var v=f[m];typeof v=="string"&&(v={forwardTo:v}),v.name||(v.name=m),c.$options[v.name]=v,"initialValue"in v&&(c["$"+v.name]=v.initialValue)}),u.implement(c,s),this},a.prototype.resetOptions=function(c){Object.keys(c.$options).forEach(function(l){var f=c.$options[l];"value"in f&&c.setOption(l,f.value)})},a.prototype.setDefaultValue=function(c,l,f){if(!c){for(c in this.$defaultOptions)if(this.$defaultOptions[c][l])break;if(!this.$defaultOptions[c][l])return!1}var m=this.$defaultOptions[c]||(this.$defaultOptions[c]={});m[l]&&(m.forwardTo?this.setDefaultValue(m.forwardTo,l,f):m[l].value=f)},a.prototype.setDefaultValues=function(c,l){Object.keys(l).forEach(function(f){this.setDefaultValue(c,f,l[f])},this)},a.prototype.setMessages=function(c){o=c},a.prototype.nls=function(c,l){o&&!o[c]&&p("No message found for '"+c+"' in the provided messages, falling back to default English message.");var f=o&&o[c]||c;return l&&(f=f.replace(/\$(\$|[\d]+)/g,function(m,v){return v=="$"?"$":l[v]})),f},a}();r.prototype.warn=p,r.prototype.reportError=g,u.implement(r.prototype,h),i.AppConfig=r}),ace.define("ace/theme/textmate-css",["require","exports","module"],function(n,i,d){d.exports=`.ace-tm .ace_gutter {
793
- background: #f0f0f0;
794
- color: #333;
795
- }
796
-
797
- .ace-tm .ace_print-margin {
798
- width: 1px;
799
- background: #e8e8e8;
800
- }
801
-
802
- .ace-tm .ace_fold {
803
- background-color: #6B72E6;
804
- }
805
-
806
- .ace-tm {
807
- background-color: #FFFFFF;
808
- color: black;
809
- }
810
-
811
- .ace-tm .ace_cursor {
812
- color: black;
813
- }
814
-
815
- .ace-tm .ace_invisible {
816
- color: rgb(191, 191, 191);
817
- }
818
-
819
- .ace-tm .ace_storage,
820
- .ace-tm .ace_keyword {
821
- color: blue;
822
- }
823
-
824
- .ace-tm .ace_constant {
825
- color: rgb(197, 6, 11);
826
- }
827
-
828
- .ace-tm .ace_constant.ace_buildin {
829
- color: rgb(88, 72, 246);
830
- }
831
-
832
- .ace-tm .ace_constant.ace_language {
833
- color: rgb(88, 92, 246);
834
- }
835
-
836
- .ace-tm .ace_constant.ace_library {
837
- color: rgb(6, 150, 14);
838
- }
839
-
840
- .ace-tm .ace_invalid {
841
- background-color: rgba(255, 0, 0, 0.1);
842
- color: red;
843
- }
844
-
845
- .ace-tm .ace_support.ace_function {
846
- color: rgb(60, 76, 114);
847
- }
848
-
849
- .ace-tm .ace_support.ace_constant {
850
- color: rgb(6, 150, 14);
851
- }
852
-
853
- .ace-tm .ace_support.ace_type,
854
- .ace-tm .ace_support.ace_class {
855
- color: rgb(109, 121, 222);
856
- }
857
-
858
- .ace-tm .ace_keyword.ace_operator {
859
- color: rgb(104, 118, 135);
860
- }
861
-
862
- .ace-tm .ace_string {
863
- color: rgb(3, 106, 7);
864
- }
865
-
866
- .ace-tm .ace_comment {
867
- color: rgb(76, 136, 107);
868
- }
869
-
870
- .ace-tm .ace_comment.ace_doc {
871
- color: rgb(0, 102, 255);
872
- }
873
-
874
- .ace-tm .ace_comment.ace_doc.ace_tag {
875
- color: rgb(128, 159, 191);
876
- }
877
-
878
- .ace-tm .ace_constant.ace_numeric {
879
- color: rgb(0, 0, 205);
880
- }
881
-
882
- .ace-tm .ace_variable {
883
- color: rgb(49, 132, 149);
884
- }
885
-
886
- .ace-tm .ace_xml-pe {
887
- color: rgb(104, 104, 91);
888
- }
889
-
890
- .ace-tm .ace_entity.ace_name.ace_function {
891
- color: #0000A2;
892
- }
893
-
894
-
895
- .ace-tm .ace_heading {
896
- color: rgb(12, 7, 255);
897
- }
898
-
899
- .ace-tm .ace_list {
900
- color:rgb(185, 6, 144);
901
- }
902
-
903
- .ace-tm .ace_meta.ace_tag {
904
- color:rgb(0, 22, 142);
905
- }
906
-
907
- .ace-tm .ace_string.ace_regex {
908
- color: rgb(255, 0, 0)
909
- }
910
-
911
- .ace-tm .ace_marker-layer .ace_selection {
912
- background: rgb(181, 213, 255);
913
- }
914
- .ace-tm.ace_multiselect .ace_selection.ace_start {
915
- box-shadow: 0 0 3px 0px white;
916
- }
917
- .ace-tm .ace_marker-layer .ace_step {
918
- background: rgb(252, 255, 0);
919
- }
920
-
921
- .ace-tm .ace_marker-layer .ace_stack {
922
- background: rgb(164, 229, 101);
923
- }
924
-
925
- .ace-tm .ace_marker-layer .ace_bracket {
926
- margin: -1px 0 0 -1px;
927
- border: 1px solid rgb(192, 192, 192);
928
- }
929
-
930
- .ace-tm .ace_marker-layer .ace_active-line {
931
- background: rgba(0, 0, 0, 0.07);
932
- }
933
-
934
- .ace-tm .ace_gutter-active-line {
935
- background-color : #dcdcdc;
936
- }
937
-
938
- .ace-tm .ace_marker-layer .ace_selected-word {
939
- background: rgb(250, 250, 255);
940
- border: 1px solid rgb(200, 200, 250);
941
- }
942
-
943
- .ace-tm .ace_indent-guide {
944
- background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
945
- }
946
-
947
- .ace-tm .ace_indent-guide-active {
948
- background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
949
- }
950
- `}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(n,i,d){i.isDark=!1,i.cssClass="ace-tm",i.cssText=n("./textmate-css"),i.$id="ace/theme/textmate";var u=n("../lib/dom");u.importCssString(i.cssText,i.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,i,d){"no use strict";var u=n("./lib/lang"),h=n("./lib/net"),g=n("./lib/dom"),s=n("./lib/app_config").AppConfig;d.exports=i=new s;var p={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};i.get=function(c){if(!p.hasOwnProperty(c))throw new Error("Unknown config key: "+c);return p[c]},i.set=function(c,l){if(p.hasOwnProperty(c))p[c]=l;else if(this.setDefaultValue("",c,l)==!1)throw new Error("Unknown config key: "+c);c=="useStrictCSP"&&g.useStrictCSP(l)},i.all=function(){return u.copyObject(p)},i.$modes={},i.moduleUrl=function(c,l){if(p.$moduleUrls[c])return p.$moduleUrls[c];var f=c.split("/");l=l||f[f.length-2]||"";var m=l=="snippets"?"/":"-",v=f[f.length-1];if(l=="worker"&&m=="-"){var y=new RegExp("^"+l+"[\\-_]|[\\-_]"+l+"$","g");v=v.replace(y,"")}(!v||v==l)&&f.length>1&&(v=f[f.length-2]);var k=p[l+"Path"];return k==null?k=p.basePath:m=="/"&&(l=m=""),k&&k.slice(-1)!="/"&&(k+="/"),k+l+m+v+this.get("suffix")},i.setModuleUrl=function(c,l){return p.$moduleUrls[c]=l};var o=function(c,l){if(c==="ace/theme/textmate"||c==="./theme/textmate")return l(null,n("./theme/textmate"));if(r)return r(c,l);console.error("loader is not configured")},r;i.setLoader=function(c){r=c},i.dynamicModules=Object.create(null),i.$loading={},i.$loaded={},i.loadModule=function(c,l){var f;if(Array.isArray(c))var m=c[0],v=c[1];else if(typeof c=="string")var v=c;var y=function(k){if(k&&!i.$loading[v])return l&&l(k);if(i.$loading[v]||(i.$loading[v]=[]),i.$loading[v].push(l),!(i.$loading[v].length>1)){var S=function(){o(v,function(_,$){$&&(i.$loaded[v]=$),i._emit("load.module",{name:v,module:$});var R=i.$loading[v];i.$loading[v]=null,R.forEach(function(T){T&&T($)})})};if(!i.get("packaged"))return S();h.loadScript(i.moduleUrl(v,m),S),a()}};if(i.dynamicModules[v])i.dynamicModules[v]().then(function(k){k.default?y(k.default):y(k)});else{try{f=this.$require(v)}catch{}y(f||i.$loaded[v])}},i.$require=function(c){if(typeof d.require=="function"){var l="require";return d[l](c)}},i.setModuleLoader=function(c,l){i.dynamicModules[c]=l};var a=function(){!p.basePath&&!p.workerPath&&!p.modePath&&!p.themePath&&!Object.keys(p.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),a=function(){})};i.version="1.32.2"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(n,i,d){n("./lib/fixoldbrowsers");var u=n("./config");u.setLoader(function(p,o){n([p],function(r){o(null,r)})});var h=function(){return this||typeof window<"u"&&window}();d.exports=function(p){u.init=g,u.$require=n,p.require=n},g(!0);function g(p){if(!(!h||!h.document)){u.set("packaged",p||n.packaged||d.packaged||h.define&&(void 0).packaged);var o={},r="",a=document.currentScript||document._currentScript,c=a&&a.ownerDocument||document;a&&a.src&&(r=a.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var l=c.getElementsByTagName("script"),f=0;f<l.length;f++){var m=l[f],v=m.src||m.getAttribute("src");if(v){for(var y=m.attributes,k=0,S=y.length;k<S;k++){var _=y[k];_.name.indexOf("data-ace-")===0&&(o[s(_.name.replace(/^data-ace-/,""))]=_.value)}var $=v.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);$&&(r=$[1])}}r&&(o.base=o.base||r,o.packaged=!0),o.basePath=o.base,o.workerPath=o.workerPath||o.base,o.modePath=o.modePath||o.base,o.themePath=o.themePath||o.base,delete o.base;for(var R in o)typeof o[R]<"u"&&u.set(R,o[R])}}function s(p){return p.replace(/-(.)/g,function(o,r){return r.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(n,i,d){var u=function(){function h(g,s,p,o){this.start={row:g,column:s},this.end={row:p,column:o}}return h.prototype.isEqual=function(g){return this.start.row===g.start.row&&this.end.row===g.end.row&&this.start.column===g.start.column&&this.end.column===g.end.column},h.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},h.prototype.contains=function(g,s){return this.compare(g,s)==0},h.prototype.compareRange=function(g){var s,p=g.end,o=g.start;return s=this.compare(p.row,p.column),s==1?(s=this.compare(o.row,o.column),s==1?2:s==0?1:0):s==-1?-2:(s=this.compare(o.row,o.column),s==-1?-1:s==1?42:0)},h.prototype.comparePoint=function(g){return this.compare(g.row,g.column)},h.prototype.containsRange=function(g){return this.comparePoint(g.start)==0&&this.comparePoint(g.end)==0},h.prototype.intersects=function(g){var s=this.compareRange(g);return s==-1||s==0||s==1},h.prototype.isEnd=function(g,s){return this.end.row==g&&this.end.column==s},h.prototype.isStart=function(g,s){return this.start.row==g&&this.start.column==s},h.prototype.setStart=function(g,s){typeof g=="object"?(this.start.column=g.column,this.start.row=g.row):(this.start.row=g,this.start.column=s)},h.prototype.setEnd=function(g,s){typeof g=="object"?(this.end.column=g.column,this.end.row=g.row):(this.end.row=g,this.end.column=s)},h.prototype.inside=function(g,s){return this.compare(g,s)==0?!(this.isEnd(g,s)||this.isStart(g,s)):!1},h.prototype.insideStart=function(g,s){return this.compare(g,s)==0?!this.isEnd(g,s):!1},h.prototype.insideEnd=function(g,s){return this.compare(g,s)==0?!this.isStart(g,s):!1},h.prototype.compare=function(g,s){return!this.isMultiLine()&&g===this.start.row?s<this.start.column?-1:s>this.end.column?1:0:g<this.start.row?-1:g>this.end.row?1:this.start.row===g?s>=this.start.column?0:-1:this.end.row===g?s<=this.end.column?0:1:0},h.prototype.compareStart=function(g,s){return this.start.row==g&&this.start.column==s?-1:this.compare(g,s)},h.prototype.compareEnd=function(g,s){return this.end.row==g&&this.end.column==s?1:this.compare(g,s)},h.prototype.compareInside=function(g,s){return this.end.row==g&&this.end.column==s?1:this.start.row==g&&this.start.column==s?-1:this.compare(g,s)},h.prototype.clipRows=function(g,s){if(this.end.row>s)var p={row:s+1,column:0};else if(this.end.row<g)var p={row:g,column:0};if(this.start.row>s)var o={row:s+1,column:0};else if(this.start.row<g)var o={row:g,column:0};return h.fromPoints(o||this.start,p||this.end)},h.prototype.extend=function(g,s){var p=this.compare(g,s);if(p==0)return this;if(p==-1)var o={row:g,column:s};else var r={row:g,column:s};return h.fromPoints(o||this.start,r||this.end)},h.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},h.prototype.isMultiLine=function(){return this.start.row!==this.end.row},h.prototype.clone=function(){return h.fromPoints(this.start,this.end)},h.prototype.collapseRows=function(){return this.end.column==0?new h(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new h(this.start.row,0,this.end.row,0)},h.prototype.toScreenRange=function(g){var s=g.documentToScreenPosition(this.start),p=g.documentToScreenPosition(this.end);return new h(s.row,s.column,p.row,p.column)},h.prototype.moveBy=function(g,s){this.start.row+=g,this.start.column+=s,this.end.row+=g,this.end.column+=s},h}();u.fromPoints=function(h,g){return new u(h.row,h.column,g.row,g.column)},u.comparePoints=function(h,g){return h.row-g.row||h.column-g.column},i.Range=u}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(n,i,d){/*! @license
951
- ==========================================================================
952
- SproutCore -- JavaScript Application Framework
953
- copyright 2006-2009, Sprout Systems Inc., Apple Inc. and contributors.
954
-
955
- Permission is hereby granted, free of charge, to any person obtaining a
956
- copy of this software and associated documentation files (the "Software"),
957
- to deal in the Software without restriction, including without limitation
958
- the rights to use, copy, modify, merge, publish, distribute, sublicense,
959
- and/or sell copies of the Software, and to permit persons to whom the
960
- Software is furnished to do so, subject to the following conditions:
961
-
962
- The above copyright notice and this permission notice shall be included in
963
- all copies or substantial portions of the Software.
964
-
965
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
966
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
967
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
968
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
969
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
970
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
971
- DEALINGS IN THE SOFTWARE.
972
-
973
- SproutCore and the SproutCore logo are trademarks of Sprout Systems, Inc.
974
-
975
- For more information about SproutCore, visit http://www.sproutcore.com
976
-
977
-
978
- ==========================================================================
979
- @license */var u=n("./oop"),h=function(){var g={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}};g.PRINTABLE_KEYS[173]="-";var s,p;for(p in g.FUNCTION_KEYS)s=g.FUNCTION_KEYS[p].toLowerCase(),g[s]=parseInt(p,10);for(p in g.PRINTABLE_KEYS)s=g.PRINTABLE_KEYS[p].toLowerCase(),g[s]=parseInt(p,10);return u.mixin(g,g.MODIFIER_KEYS),u.mixin(g,g.PRINTABLE_KEYS),u.mixin(g,g.FUNCTION_KEYS),g.enter=g.return,g.escape=g.esc,g.del=g.delete,function(){for(var o=["cmd","ctrl","alt","shift"],r=Math.pow(2,o.length);r--;)g.KEY_MODS[r]=o.filter(function(a){return r&g.KEY_MODS[a]}).join("-")+"-"}(),g.KEY_MODS[0]="",g.KEY_MODS[-1]="input-",g}();u.mixin(i,h),i.default=i,i.keyCodeToString=function(g){var s=h[g];return typeof s!="string"&&(s=String.fromCharCode(g)),s.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(n,i,d){var u=n("./keys"),h=n("./useragent"),g=null,s=0,p;function o(){p=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return p={passive:!1},!0}})}catch{}}function r(){return p==null&&o(),p}function a(k,S,_){this.elem=k,this.type=S,this.callback=_}a.prototype.destroy=function(){l(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var c=i.addListener=function(k,S,_,$){k.addEventListener(S,_,r()),$&&$.$toDestroy.push(new a(k,S,_))},l=i.removeListener=function(k,S,_){k.removeEventListener(S,_,r())};i.stopEvent=function(k){return i.stopPropagation(k),i.preventDefault(k),!1},i.stopPropagation=function(k){k.stopPropagation&&k.stopPropagation()},i.preventDefault=function(k){k.preventDefault&&k.preventDefault()},i.getButton=function(k){return k.type=="dblclick"?0:k.type=="contextmenu"||h.isMac&&k.ctrlKey&&!k.altKey&&!k.shiftKey?2:k.button},i.capture=function(k,S,_){var $=k&&k.ownerDocument||document;function R(T){S&&S(T),_&&_(T),l($,"mousemove",S),l($,"mouseup",R),l($,"dragstart",R)}return c($,"mousemove",S),c($,"mouseup",R),c($,"dragstart",R),R},i.addMouseWheelListener=function(k,S,_){c(k,"wheel",function($){var R=.15,T=$.deltaX||0,x=$.deltaY||0;switch($.deltaMode){case $.DOM_DELTA_PIXEL:$.wheelX=T*R,$.wheelY=x*R;break;case $.DOM_DELTA_LINE:var M=15;$.wheelX=T*M,$.wheelY=x*M;break;case $.DOM_DELTA_PAGE:var b=150;$.wheelX=T*b,$.wheelY=x*b;break}S($)},_)},i.addMultiMouseDownListener=function(k,S,_,$,R){var T=0,x,M,b,A={2:"dblclick",3:"tripleclick",4:"quadclick"};function C(w){if(i.getButton(w)!==0?T=0:w.detail>1?(T++,T>4&&(T=1)):T=1,h.isIE){var E=Math.abs(w.clientX-x)>5||Math.abs(w.clientY-M)>5;(!b||E)&&(T=1),b&&clearTimeout(b),b=setTimeout(function(){b=null},S[T-1]||600),T==1&&(x=w.clientX,M=w.clientY)}if(w._clicks=T,_[$]("mousedown",w),T>4)T=0;else if(T>1)return _[$](A[T],w)}Array.isArray(k)||(k=[k]),k.forEach(function(w){c(w,"mousedown",C,R)})};var f=function(k){return 0|(k.ctrlKey?1:0)|(k.altKey?2:0)|(k.shiftKey?4:0)|(k.metaKey?8:0)};i.getModifierString=function(k){return u.KEY_MODS[f(k)]};function m(k,S,_){var $=f(S);if(!h.isMac&&g){if(S.getModifierState&&(S.getModifierState("OS")||S.getModifierState("Win"))&&($|=8),g.altGr)if((3&$)!=3)g.altGr=0;else return;if(_===18||_===17){var R="location"in S?S.location:S.keyLocation;if(_===17&&R===1)g[_]==1&&(s=S.timeStamp);else if(_===18&&$===3&&R===2){var T=S.timeStamp-s;T<50&&(g.altGr=!0)}}}if(_ in u.MODIFIER_KEYS&&(_=-1),!$&&_===13){var R="location"in S?S.location:S.keyLocation;if(R===3&&(k(S,$,-_),S.defaultPrevented))return}if(h.isChromeOS&&$&8){if(k(S,$,_),S.defaultPrevented)return;$&=-9}return!$&&!(_ in u.FUNCTION_KEYS)&&!(_ in u.PRINTABLE_KEYS)?!1:k(S,$,_)}i.addCommandKeyListener=function(k,S,_){var $=null;c(k,"keydown",function(R){g[R.keyCode]=(g[R.keyCode]||0)+1;var T=m(S,R,R.keyCode);return $=R.defaultPrevented,T},_),c(k,"keypress",function(R){$&&(R.ctrlKey||R.altKey||R.shiftKey||R.metaKey)&&(i.stopEvent(R),$=null)},_),c(k,"keyup",function(R){g[R.keyCode]=null},_),g||(v(),c(window,"focus",v))};function v(){g=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!h.isOldIE){var y=1;i.nextTick=function(k,S){S=S||window;var _="zero-timeout-message-"+y++,$=function(R){R.data==_&&(i.stopPropagation(R),l(S,"message",$),k())};c(S,"message",$),S.postMessage(_,"*")}}i.$idleBlocked=!1,i.onIdle=function(k,S){return setTimeout(function _(){i.$idleBlocked?setTimeout(_,100):k()},S)},i.$idleBlockId=null,i.blockIdle=function(k){i.$idleBlockId&&clearTimeout(i.$idleBlockId),i.$idleBlocked=!0,i.$idleBlockId=setTimeout(function(){i.$idleBlocked=!1},k||100)},i.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),i.nextFrame?i.nextFrame=i.nextFrame.bind(window):i.nextFrame=function(k){setTimeout(k,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(n,i,d){var u;d.exports={lineMode:!1,pasteCancelled:function(){return u&&u>Date.now()-50?!0:u=!1},cancel:function(){u=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,i,d){var u=n("../lib/event"),h=n("../config").nls,g=n("../lib/useragent"),s=n("../lib/dom"),p=n("../lib/lang"),o=n("../clipboard"),r=g.isChrome<18,a=g.isIE,c=g.isChrome>63,l=400,f=n("../lib/keys"),m=f.KEY_MODS,v=g.isIOS,y=v?/\s/:/\n/,k=g.isMobile,S;S=function(_,$){var R=s.createElement("textarea");R.className="ace_text-input",R.setAttribute("wrap","off"),R.setAttribute("autocorrect","off"),R.setAttribute("autocapitalize","off"),R.setAttribute("spellcheck","false"),R.style.opacity="0",_.insertBefore(R,_.firstChild);var T=!1,x=!1,M=!1,b=!1,A="";k||(R.style.fontSize="1px");var C=!1,w=!1,E="",L=0,O=0,I=0,F=Number.MAX_SAFE_INTEGER,D=Number.MIN_SAFE_INTEGER,W=0;try{var j=document.activeElement===R}catch{}this.setNumberOfExtraLines=function(Q){if(F=Number.MAX_SAFE_INTEGER,D=Number.MIN_SAFE_INTEGER,Q<0){W=0;return}W=Q},this.setAriaOptions=function(Q){if(Q.activeDescendant?(R.setAttribute("aria-haspopup","true"),R.setAttribute("aria-autocomplete",Q.inline?"both":"list"),R.setAttribute("aria-activedescendant",Q.activeDescendant)):(R.setAttribute("aria-haspopup","false"),R.setAttribute("aria-autocomplete","both"),R.removeAttribute("aria-activedescendant")),Q.role&&R.setAttribute("role",Q.role),Q.setLabel&&(R.setAttribute("aria-roledescription",h("editor")),$.session)){var ae=$.session.selection.cursor.row;R.setAttribute("aria-label",h("Cursor at row $0",[ae+1]))}},this.setAriaOptions({role:"textbox"}),u.addListener(R,"blur",function(Q){w||($.onBlur(Q),j=!1)},$),u.addListener(R,"focus",function(Q){if(!w){if(j=!0,g.isEdge)try{if(!document.hasFocus())return}catch{}$.onFocus(Q),g.isEdge?setTimeout(U):U()}},$),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:$.renderer.enableKeyboardAccessibility}),A||c||this.$focusScroll=="browser")return R.focus({preventScroll:!0});var Q=R.style.top;R.style.position="fixed",R.style.top="0px";try{var ae=R.getBoundingClientRect().top!=0}catch{return}var ue=[];if(ae)for(var be=R.parentElement;be&&be.nodeType==1;)ue.push(be),be.setAttribute("ace_nocontext","true"),!be.parentElement&&be.getRootNode?be=be.getRootNode().host:be=be.parentElement;R.focus({preventScroll:!0}),ae&&ue.forEach(function(Re){Re.removeAttribute("ace_nocontext")}),setTimeout(function(){R.style.position="",R.style.top=="0px"&&(R.style.top=Q)},0)},this.blur=function(){R.blur()},this.isFocused=function(){return j},$.on("beforeEndOperation",function(){var Q=$.curOp,ae=Q&&Q.command&&Q.command.name;if(ae!="insertstring"){var ue=ae&&(Q.docChanged||Q.selectionChanged);M&&ue&&(E=R.value="",le()),U()}});var H=function(Q,ae){for(var ue=ae,be=1;be<=Q-F&&be<2*W+1;be++)ue+=$.session.getLine(Q-be).length+1;return ue},U=v?function(Q){if(!(!j||T&&!Q||b)){Q||(Q="");var ae=`
980
- ab`+Q+`cde fg
981
- `;ae!=R.value&&(R.value=E=ae);var ue=4,be=4+(Q.length||($.selection.isEmpty()?0:1));(L!=ue||O!=be)&&R.setSelectionRange(ue,be),L=ue,O=be}}:function(){if(!(M||b)&&!(!j&&!X)){M=!0;var Q=0,ae=0,ue="";if($.session){var be=$.selection,Re=be.getRange(),Fe=be.cursor.row;Fe===D+1?(F=D+1,D=F+2*W):Fe===F-1?(D=F-1,F=D-2*W):(Fe<F-1||Fe>D+1)&&(F=Fe>W?Fe-W:0,D=Fe>W?Fe+W:2*W);for(var Ge=[],Pe=F;Pe<=D;Pe++)Ge.push($.session.getLine(Pe));if(ue=Ge.join(`
982
- `),Q=H(Re.start.row,Re.start.column),ae=H(Re.end.row,Re.end.column),Re.start.row<F){var We=$.session.getLine(F-1);Q=Re.start.row<F-1?0:Q,ae+=We.length+1,ue=We+`
983
- `+ue}else if(Re.end.row>D){var xe=$.session.getLine(D+1);ae=Re.end.row>D+1?xe.length:Re.end.column,ae+=ue.length+1,ue=ue+`
984
- `+xe}else k&&Fe>0&&(ue=`
985
- `+ue,ae+=1,Q+=1);ue.length>l&&(Q<l&&ae<l?ue=ue.slice(0,l):(ue=`
986
- `,Q==ae?Q=ae=0:(Q=0,ae=1)));var He=ue+`
987
-
988
- `;He!=E&&(R.value=E=He,L=O=He.length)}if(X&&(L=R.selectionStart,O=R.selectionEnd),O!=ae||L!=Q||R.selectionEnd!=O)try{R.setSelectionRange(Q,ae),L=Q,O=ae}catch{}M=!1}};this.resetSelection=U,j&&$.onFocus();var K=function(Q){return Q.selectionStart===0&&Q.selectionEnd>=E.length&&Q.value===E&&E&&Q.selectionEnd!==O},Z=function(Q){M||(T?T=!1:K(R)?($.selectAll(),U()):k&&R.selectionStart!=L&&U())},z=null;this.setInputHandler=function(Q){z=Q},this.getInputHandler=function(){return z};var X=!1,Y=function(Q,ae){if(X&&(X=!1),x)return U(),Q&&$.onPaste(Q),x=!1,"";for(var ue=R.selectionStart,be=R.selectionEnd,Re=L,Fe=E.length-O,Ge=Q,Pe=Q.length-ue,We=Q.length-be,xe=0;Re>0&&E[xe]==Q[xe];)xe++,Re--;for(Ge=Ge.slice(xe),xe=1;Fe>0&&E.length-xe>L-1&&E[E.length-xe]==Q[Q.length-xe];)xe++,Fe--;Pe-=xe-1,We-=xe-1;var He=Ge.length-xe+1;if(He<0&&(Re=-He,He=0),Ge=Ge.slice(0,He),!ae&&!Ge&&!Pe&&!Re&&!Fe&&!We)return"";b=!0;var fn=!1;return g.isAndroid&&Ge==". "&&(Ge=" ",fn=!0),Ge&&!Re&&!Fe&&!Pe&&!We||C?$.onTextInput(Ge):$.onTextInput(Ge,{extendLeft:Re,extendRight:Fe,restoreStart:Pe,restoreEnd:We}),b=!1,E=Q,L=ue,O=be,I=We,fn?`
989
- `:Ge},V=function(Q){if(M)return ie();if(Q&&Q.inputType){if(Q.inputType=="historyUndo")return $.execCommand("undo");if(Q.inputType=="historyRedo")return $.execCommand("redo")}var ae=R.value,ue=Y(ae,!0);(ae.length>l+100||y.test(ue)||k&&L<1&&L==O)&&U()},ee=function(Q,ae,ue){var be=Q.clipboardData||window.clipboardData;if(!(!be||r)){var Re=a||ue?"Text":"text/plain";try{return ae?be.setData(Re,ae)!==!1:be.getData(Re)}catch(Fe){if(!ue)return ee(Fe,ae,!0)}}},P=function(Q,ae){var ue=$.getCopyText();if(!ue)return u.preventDefault(Q);ee(Q,ue)?(v&&(U(ue),T=ue,setTimeout(function(){T=!1},10)),ae?$.onCut():$.onCopy(),u.preventDefault(Q)):(T=!0,R.value=ue,R.select(),setTimeout(function(){T=!1,U(),ae?$.onCut():$.onCopy()}))},B=function(Q){P(Q,!0)},G=function(Q){P(Q,!1)},J=function(Q){var ae=ee(Q);o.pasteCancelled()||(typeof ae=="string"?(ae&&$.onPaste(ae,Q),g.isIE&&setTimeout(U),u.preventDefault(Q)):(R.value="",x=!0))};u.addCommandKeyListener(R,$.onCommandKey.bind($),$),u.addListener(R,"select",Z,$),u.addListener(R,"input",V,$),u.addListener(R,"cut",B,$),u.addListener(R,"copy",G,$),u.addListener(R,"paste",J,$),(!("oncut"in R)||!("oncopy"in R)||!("onpaste"in R))&&u.addListener(_,"keydown",function(Q){if(!(g.isMac&&!Q.metaKey||!Q.ctrlKey))switch(Q.keyCode){case 67:G(Q);break;case 86:J(Q);break;case 88:B(Q);break}},$);var te=function(Q){if(!(M||!$.onCompositionStart||$.$readOnly)&&(M={},!C)){Q.data&&(M.useTextareaForIME=!1),setTimeout(ie,0),$._signal("compositionStart"),$.on("mousedown",se);var ae=$.getSelectionRange();ae.end.row=ae.start.row,ae.end.column=ae.start.column,M.markerRange=ae,M.selectionStart=L,$.onCompositionStart(M),M.useTextareaForIME?(E=R.value="",L=0,O=0):(R.msGetInputContext&&(M.context=R.msGetInputContext()),R.getInputContext&&(M.context=R.getInputContext()))}},ie=function(){if(!(!M||!$.onCompositionUpdate||$.$readOnly)){if(C)return se();if(M.useTextareaForIME)$.onCompositionUpdate(R.value);else{var Q=R.value;Y(Q),M.markerRange&&(M.context&&(M.markerRange.start.column=M.selectionStart=M.context.compositionStartOffset),M.markerRange.end.column=M.markerRange.start.column+O-M.selectionStart+I)}}},le=function(Q){!$.onCompositionEnd||$.$readOnly||(M=!1,$.onCompositionEnd(),$.off("mousedown",se),Q&&V())};function se(){w=!0,R.blur(),R.focus(),w=!1}var ce=p.delayedCall(ie,50).schedule.bind(null,null);function re(Q){Q.keyCode==27&&R.value.length<R.selectionStart&&(M||(E=R.value),L=O=-1,U()),ce()}u.addListener(R,"compositionstart",te,$),u.addListener(R,"compositionupdate",ie,$),u.addListener(R,"keyup",re,$),u.addListener(R,"keydown",ce,$),u.addListener(R,"compositionend",le,$),this.getElement=function(){return R},this.setCommandMode=function(Q){C=Q,R.readOnly=!1},this.setReadOnly=function(Q){C||(R.readOnly=Q)},this.setCopyWithEmptySelection=function(Q){},this.onContextMenu=function(Q){X=!0,U(),$._emit("nativecontextmenu",{target:$,domEvent:Q}),this.moveToMouse(Q,!0)},this.moveToMouse=function(Q,ae){A||(A=R.style.cssText),R.style.cssText=(ae?"z-index:100000;":"")+(g.isIE?"opacity:0.1;":"")+"text-indent: -"+(L+O)*$.renderer.characterWidth*.5+"px;";var ue=$.container.getBoundingClientRect(),be=s.computedStyle($.container),Re=ue.top+(parseInt(be.borderTopWidth)||0),Fe=ue.left+(parseInt(ue.borderLeftWidth)||0),Ge=ue.bottom-Re-R.clientHeight-2,Pe=function(We){s.translate(R,We.clientX-Fe-2,Math.min(We.clientY-Re-2,Ge))};Pe(Q),Q.type=="mousedown"&&($.renderer.$isMousePressed=!0,clearTimeout(ve),g.isWin&&u.capture($.container,Pe,de))},this.onContextMenuClose=de;var ve;function de(){clearTimeout(ve),ve=setTimeout(function(){A&&(R.style.cssText=A,A=""),$.renderer.$isMousePressed=!1,$.renderer.$keepTextAreaAtCursor&&$.renderer.$moveTextAreaToCursor()},0)}var me=function(Q){$.textInput.onContextMenu(Q),de()};u.addListener(R,"mouseup",me,$),u.addListener(R,"mousedown",function(Q){Q.preventDefault(),de()},$),u.addListener($.renderer.scroller,"contextmenu",me,$),u.addListener(R,"contextmenu",me,$),v&&Ce(_,$,R);function Ce(Q,ae,ue){var be=null,Re=!1;ue.addEventListener("keydown",function(Ge){be&&clearTimeout(be),Re=!0},!0),ue.addEventListener("keyup",function(Ge){be=setTimeout(function(){Re=!1},100)},!0);var Fe=function(Ge){if(document.activeElement===ue&&!(Re||M||ae.$mouseHandler.isMousePressed)&&!T){var Pe=ue.selectionStart,We=ue.selectionEnd,xe=null,He=0;if(Pe==0?xe=f.up:Pe==1?xe=f.home:We>O&&E[We]==`
990
- `?xe=f.end:Pe<L&&E[Pe-1]==" "?(xe=f.left,He=m.option):Pe<L||Pe==L&&O!=L&&Pe==We?xe=f.left:We>O&&E.slice(0,We).split(`
991
- `).length>2?xe=f.down:We>O&&E[We-1]==" "?(xe=f.right,He=m.option):(We>O||We==O&&O!=L&&Pe==We)&&(xe=f.right),Pe!==We&&(He|=m.shift),xe){var fn=ae.onCommandKey({},He,xe);if(!fn&&ae.commands){xe=f.keyCodeToString(xe);var kl=ae.commands.findKeyCommand(He,xe);kl&&ae.execCommand(kl)}L=Pe,O=We,U("")}}};document.addEventListener("selectionchange",Fe),ae.on("destroy",function(){document.removeEventListener("selectionchange",Fe)})}this.destroy=function(){R.parentElement&&R.parentElement.removeChild(R)}},i.TextInput=S,i.$setUserAgentForTests=function(_,$){k=_,v=$}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(n,i,d){var u=n("../lib/useragent"),h=0,g=550,s=function(){function r(a){a.$clickSelection=null;var c=a.editor;c.setDefaultHandler("mousedown",this.onMouseDown.bind(a)),c.setDefaultHandler("dblclick",this.onDoubleClick.bind(a)),c.setDefaultHandler("tripleclick",this.onTripleClick.bind(a)),c.setDefaultHandler("quadclick",this.onQuadClick.bind(a)),c.setDefaultHandler("mousewheel",this.onMouseWheel.bind(a));var l=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];l.forEach(function(f){a[f]=this[f]},this),a.selectByLines=this.extendSelectionBy.bind(a,"getLineRange"),a.selectByWords=this.extendSelectionBy.bind(a,"getWordRange")}return r.prototype.onMouseDown=function(a){var c=a.inSelection(),l=a.getDocumentPosition();this.mousedownEvent=a;var f=this.editor,m=a.getButton();if(m!==0){var v=f.getSelectionRange(),y=v.isEmpty();(y||m==1)&&f.selection.moveToPosition(l),m==2&&(f.textInput.onContextMenu(a.domEvent),u.isMozilla||a.preventDefault());return}if(this.mousedownEvent.time=Date.now(),c&&!f.isFocused()&&(f.focus(),this.$focusTimeout&&!this.$clickSelection&&!f.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(a);return}return this.captureMouse(a),this.startSelect(l,a.domEvent._clicks>1),a.preventDefault()},r.prototype.startSelect=function(a,c){a=a||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var l=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?l.selection.selectToPosition(a):c||l.selection.moveToPosition(a),c||this.select(),l.setStyle("ace_selecting"),this.setState("select"))},r.prototype.select=function(){var a,c=this.editor,l=c.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var f=this.$clickSelection.comparePoint(l);if(f==-1)a=this.$clickSelection.end;else if(f==1)a=this.$clickSelection.start;else{var m=o(this.$clickSelection,l);l=m.cursor,a=m.anchor}c.selection.setSelectionAnchor(a.row,a.column)}c.selection.selectToPosition(l),c.renderer.scrollCursorIntoView()},r.prototype.extendSelectionBy=function(a){var c,l=this.editor,f=l.renderer.screenToTextCoordinates(this.x,this.y),m=l.selection[a](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)c=this.$clickSelection.end,(m.end.row!=f.row||m.end.column!=f.column)&&(f=m.start);else if(y==1&&v>=0)c=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,c=m.start;else{var k=o(this.$clickSelection,f);f=k.cursor,c=k.anchor}l.selection.setSelectionAnchor(c.row,c.column)}l.selection.selectToPosition(f),l.renderer.scrollCursorIntoView()},r.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},r.prototype.focusWait=function(){var a=p(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),c=Date.now();(a>h||c-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},r.prototype.onDoubleClick=function(a){var c=a.getDocumentPosition(),l=this.editor,f=l.session,m=f.getBracketRange(c);m?(m.isEmpty()&&(m.start.column--,m.end.column++),this.setState("select")):(m=l.selection.getWordRange(c.row,c.column),this.setState("selectByWords")),this.$clickSelection=m,this.select()},r.prototype.onTripleClick=function(a){var c=a.getDocumentPosition(),l=this.editor;this.setState("selectByLines");var f=l.getSelectionRange();f.isMultiLine()&&f.contains(c.row,c.column)?(this.$clickSelection=l.selection.getLineRange(f.start.row),this.$clickSelection.end=l.selection.getLineRange(f.end.row).end):this.$clickSelection=l.selection.getLineRange(c.row),this.select()},r.prototype.onQuadClick=function(a){var c=this.editor;c.selectAll(),this.$clickSelection=c.getSelectionRange(),this.setState("selectAll")},r.prototype.onMouseWheel=function(a){if(!a.getAccelKey()){a.getShiftKey()&&a.wheelY&&!a.wheelX&&(a.wheelX=a.wheelY,a.wheelY=0);var c=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var l=this.$lastScroll,f=a.domEvent.timeStamp,m=f-l.t,v=m?a.wheelX/m:l.vx,y=m?a.wheelY/m:l.vy;m<g&&(v=(v+l.vx)/2,y=(y+l.vy)/2);var k=Math.abs(v/y),S=!1;if(k>=1&&c.renderer.isScrollableBy(a.wheelX*a.speed,0)&&(S=!0),k<=1&&c.renderer.isScrollableBy(0,a.wheelY*a.speed)&&(S=!0),S)l.allowed=f;else if(f-l.allowed<g){var _=Math.abs(v)<=1.5*Math.abs(l.vx)&&Math.abs(y)<=1.5*Math.abs(l.vy);_?(S=!0,l.allowed=f):l.allowed=0}if(l.t=f,l.vx=v,l.vy=y,S)return c.renderer.scrollBy(a.wheelX*a.speed,a.wheelY*a.speed),a.stop()}},r}();s.prototype.selectEnd=s.prototype.selectByLinesEnd,s.prototype.selectAllEnd=s.prototype.selectByLinesEnd,s.prototype.selectByWordsEnd=s.prototype.selectByLinesEnd,i.DefaultHandlers=s;function p(r,a,c,l){return Math.sqrt(Math.pow(c-r,2)+Math.pow(l-a,2))}function o(r,a){if(r.start.row==r.end.row)var c=2*a.column-r.start.column-r.end.column;else if(r.start.row==r.end.row-1&&!r.start.column&&!r.end.column)var c=a.column-4;else var c=2*a.row-r.start.row-r.end.row;return c<0?{cursor:r.start,anchor:r.end}:{cursor:r.end,anchor:r.start}}}),ace.define("ace/lib/scroll",["require","exports","module"],function(n,i,d){i.preventParentScroll=function(h){h.stopPropagation();var g=h.currentTarget,s=g.scrollHeight>g.clientHeight;s||h.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(n,i,d){var u=this&&this.__extends||function(){var f=function(m,v){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,k){y.__proto__=k}||function(y,k){for(var S in k)Object.prototype.hasOwnProperty.call(k,S)&&(y[S]=k[S])},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)}}(),h=this&&this.__values||function(f){var m=typeof Symbol=="function"&&Symbol.iterator,v=m&&f[m],y=0;if(v)return v.call(f);if(f&&typeof f.length=="number")return{next:function(){return f&&y>=f.length&&(f=void 0),{value:f&&f[y++],done:!f}}};throw new TypeError(m?"Object is not iterable.":"Symbol.iterator is not defined.")},g=n("./lib/dom");n("./lib/event");var s=n("./range").Range,p=n("./lib/scroll").preventParentScroll,o="ace_tooltip",r=function(){function f(m){this.isOpen=!1,this.$element=null,this.$parentNode=m}return f.prototype.$init=function(){return this.$element=g.createElement("div"),this.$element.className=o,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},f.prototype.getElement=function(){return this.$element||this.$init()},f.prototype.setText=function(m){this.getElement().textContent=m},f.prototype.setHtml=function(m){this.getElement().innerHTML=m},f.prototype.setPosition=function(m,v){this.getElement().style.left=m+"px",this.getElement().style.top=v+"px"},f.prototype.setClassName=function(m){g.addCssClass(this.getElement(),m)},f.prototype.setTheme=function(m){this.$element.className=o+" "+(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=o,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}(),a=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,k;this.popups.sort(function(A,C){return C.priority-A.priority});var S=[];try{for(var _=h(this.popups),$=_.next();!$.done;$=_.next()){var R=$.value,T=!0;try{for(var x=(y=void 0,h(S)),M=x.next();!M.done;M=x.next()){var b=M.value;if(this.doPopupsOverlap(b,R)){T=!1;break}}}catch(A){y={error:A}}finally{try{M&&!M.done&&(k=x.return)&&k.call(x)}finally{if(y)throw y.error}}T?S.push(R):R.hide()}}catch(A){m={error:A}}finally{try{$&&!$.done&&(v=_.return)&&v.call(_)}finally{if(m)throw m.error}}},f.prototype.doPopupsOverlap=function(m,v){var y=m.getElement().getBoundingClientRect(),k=v.getElement().getBoundingClientRect();return y.left<k.right&&y.right>k.left&&y.top<k.bottom&&y.bottom>k.top},f}(),c=new a;i.popupManager=c,i.Tooltip=r;var l=function(f){u(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 k=y.getElement();return k.style.whiteSpace="pre-wrap",k.style.pointerEvents="auto",k.addEventListener("mouseout",y.onMouseOut),k.tabIndex=-1,k.addEventListener("blur",(function(){k.contains(document.activeElement)||this.hide()}).bind(y)),k.addEventListener("wheel",p),y}return m.prototype.addToEditor=function(v){v.on("mousemove",this.onMouseMove),v.on("mousedown",this.hide),v.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},m.prototype.removeFromEditor=function(v){v.off("mousemove",this.onMouseMove),v.off("mousedown",this.hide),v.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},m.prototype.onMouseMove=function(v,y){this.lastEvent=v,this.lastT=Date.now();var k=y.$mouseHandler.isMousePressed;if(this.isOpen){var S=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(S.row,S.column)||k||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||k||(this.lastEvent=v,this.timeout=setTimeout(this.waitForHover,this.idleTime))},m.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var v=Date.now()-this.lastT;if(this.idleTime-v>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-v);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},m.prototype.isOutsideOfText=function(v){var y=v.editor,k=v.getDocumentPosition(),S=y.session.getLine(k.row);if(k.column==S.length){var _=y.renderer.pixelToScreenCoordinates(v.clientX,v.clientY),$=y.session.documentToScreenPosition(k.row,k.column);if($.column!=_.column||$.row!=_.row)return!0}return!1},m.prototype.setDataProvider=function(v){this.$gatherData=v},m.prototype.showForRange=function(v,y,k,S){var _=10;if(!(S&&S!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var $=v.renderer;this.isOpen||(c.addPopup(this),this.$registerCloseEvents(),this.setTheme($.theme)),this.isOpen=!0,this.addMarker(y,v.session),this.range=s.fromPoints(y.start,y.end);var R=$.textToScreenCoordinates(y.start.row,y.start.column),T=$.scroller.getBoundingClientRect();R.pageX<T.left&&(R.pageX=T.left);var x=this.getElement();x.innerHTML="",x.appendChild(k),x.style.maxHeight="",x.style.display="block";var M=x.clientHeight,b=x.clientWidth,A=window.innerHeight-R.pageY-$.lineHeight,C=!0;R.pageY-M<0&&R.pageY<A&&(C=!1),x.style.maxHeight=(C?R.pageY:A)-_+"px",x.style.top=C?"":R.pageY+$.lineHeight+"px",x.style.bottom=C?window.innerHeight-R.pageY+"px":"",x.style.left=Math.min(R.pageX,window.innerWidth-b-_)+"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,c.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}(r);i.HoverTooltip=l}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config"],function(n,i,d){var u=this&&this.__extends||function(){var c=function(l,f){return c=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])},c(l,f)};return function(l,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");c(l,f);function m(){this.constructor=l}l.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}}(),h=this&&this.__values||function(c){var l=typeof Symbol=="function"&&Symbol.iterator,f=l&&c[l],m=0;if(f)return f.call(c);if(c&&typeof c.length=="number")return{next:function(){return c&&m>=c.length&&(c=void 0),{value:c&&c[m++],done:!c}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")},g=n("../lib/dom"),s=n("../lib/event"),p=n("../tooltip").Tooltip,o=n("../config").nls;function r(c){var l=c.editor,f=l.renderer.$gutterLayer,m=new a(l);c.editor.setDefaultHandler("guttermousedown",function($){if(!(!l.isFocused()||$.getButton()!=0)){var R=f.getRegion($);if(R!="foldWidgets"){var T=$.getDocumentPosition().row,x=l.session.selection;if($.getShiftKey())x.selectTo(T,0);else{if($.domEvent.detail==2)return l.selectAll(),$.preventDefault();c.$clickSelection=l.selection.getLineRange(T)}return c.setState("selectByLines"),c.captureMouse($),$.preventDefault()}}});var v,y;function k(){var $=y.getDocumentPosition().row,R=l.session.getLength();if($==R){var T=l.renderer.pixelToScreenCoordinates(0,y.y).row,x=y.$pos;if(T>l.session.documentToScreenRow(x.row,x.column))return S()}if(m.showTooltip($),!!m.isOpen)if(l.on("mousewheel",S),c.$tooltipFollowsMouse)_(y);else{var M=y.getGutterRow(),b=f.$lines.get(M);if(b){var A=b.element.querySelector(".ace_gutter_annotation"),C=A.getBoundingClientRect(),w=m.getElement().style;w.left=C.right+"px",w.top=C.bottom+"px"}else _(y)}}function S(){v&&(v=clearTimeout(v)),m.isOpen&&(m.hideTooltip(),l.off("mousewheel",S))}function _($){m.setPosition($.x,$.y)}c.editor.setDefaultHandler("guttermousemove",function($){var R=$.domEvent.target||$.domEvent.srcElement;if(g.hasCssClass(R,"ace_fold-widget"))return S();m.isOpen&&c.$tooltipFollowsMouse&&_($),y=$,!v&&(v=setTimeout(function(){v=null,y&&!c.isMousePressed?k():S()},50))}),s.addListener(l.renderer.$gutter,"mouseout",function($){y=null,!(!m.isOpen||v)&&(v=setTimeout(function(){v=null,S()},50))},l),l.on("changeSession",S),l.on("input",S)}i.GutterHandler=r;var a=function(c){u(l,c);function l(f){var m=c.call(this,f.container)||this;return m.editor=f,m}return l.prototype.setPosition=function(f,m){var v=window.innerWidth||document.documentElement.clientWidth,y=window.innerHeight||document.documentElement.clientHeight,k=this.getWidth(),S=this.getHeight();f+=15,m+=15,f+k>v&&(f-=f+k-v),m+S>y&&(m-=20+S),p.prototype.setPosition.call(this,f,m)},Object.defineProperty(l,"annotationLabels",{get:function(){return{error:{singular:o("error"),plural:o("errors")},warning:{singular:o("warning"),plural:o("warnings")},info:{singular:o("information message"),plural:o("information messages")}}},enumerable:!1,configurable:!0}),l.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 k=m.session.getFoldLine(f);if(k&&m.$showFoldedAnnotations){for(var S={error:[],warning:[],info:[]},_,$=f+1;$<=k.end.row;$++)if(m.$annotations[$])for(var R=0;R<m.$annotations[$].text.length;R++){var T=m.$annotations[$].type[R];if(S[T].push(m.$annotations[$].text[R]),T==="error"){_="error_fold";continue}if(T==="warning"){_="warning_fold";continue}}if(_==="error_fold"||_==="warning_fold"){var x="".concat(l.annotationsToSummaryString(S)," in folded code.");y.text.push(x),y.type.push(_)}}if(y.text.length===0)return this.hide();for(var M={error:[],warning:[],info:[]},b=m.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",$=0;$<y.text.length;$++){var A="<span class='ace_".concat(y.type[$]," ").concat(b,"' aria-label='").concat(l.annotationLabels[y.type[$].replace("_fold","")].singular,"' role=img> </span> ").concat(y.text[$]);M[y.type[$].replace("_fold","")].push(A)}var C=[].concat(M.error,M.warning,M.info).join("<br>");this.setHtml(C),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)},l.prototype.hideTooltip=function(){this.$element.removeAttribute("aria-live"),this.hide(),this.editor._signal("hideGutterTooltip",this)},l.annotationsToSummaryString=function(f){var m,v,y=[],k=["error","warning","info"];try{for(var S=h(k),_=S.next();!_.done;_=S.next()){var $=_.value;if(f[$].length){var R=f[$].length===1?l.annotationLabels[$].singular:l.annotationLabels[$].plural;y.push("".concat(f[$].length," ").concat(R))}}}catch(T){m={error:T}}finally{try{_&&!_.done&&(v=S.return)&&v.call(S)}finally{if(m)throw m.error}}return y.join(", ")},l}(p);i.GutterTooltip=a}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(n,i,d){var u=n("../lib/event"),h=n("../lib/useragent"),g=function(){function s(p,o){this.speed,this.wheelX,this.wheelY,this.domEvent=p,this.editor=o,this.x=this.clientX=p.clientX,this.y=this.clientY=p.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return s.prototype.stopPropagation=function(){u.stopPropagation(this.domEvent),this.propagationStopped=!0},s.prototype.preventDefault=function(){u.preventDefault(this.domEvent),this.defaultPrevented=!0},s.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},s.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},s.prototype.getGutterRow=function(){var p=this.getDocumentPosition().row,o=this.editor.session.documentToScreenRow(p,0),r=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return o-r},s.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var p=this.editor,o=p.getSelectionRange();if(o.isEmpty())this.$inSelection=!1;else{var r=this.getDocumentPosition();this.$inSelection=o.contains(r.row,r.column)}return this.$inSelection},s.prototype.getButton=function(){return u.getButton(this.domEvent)},s.prototype.getShiftKey=function(){return this.domEvent.shiftKey},s.prototype.getAccelKey=function(){return h.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},s}();i.MouseEvent=g}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(n,i,d){var u=n("../lib/dom"),h=n("../lib/event"),g=n("../lib/useragent"),s=200,p=200,o=5;function r(c){var l=c.editor,f=u.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(H){c[H]=this[H]},this),l.on("mousedown",this.onMouseDown.bind(c));var v=l.container,y,k,S,_,$,R,T=0,x,M,b,A,C;this.onDragStart=function(H){if(this.cancelDrag||!v.draggable){var U=this;return setTimeout(function(){U.startSelect(),U.captureMouse(H)},0),H.preventDefault()}$=l.getSelectionRange();var K=H.dataTransfer;K.effectAllowed=l.getReadOnly()?"copy":"copyMove",l.container.appendChild(f),K.setDragImage&&K.setDragImage(f,0,0),setTimeout(function(){l.container.removeChild(f)}),K.clearData(),K.setData("Text",l.session.getTextRange()),M=!0,this.setState("drag")},this.onDragEnd=function(H){if(v.draggable=!1,M=!1,this.setState(null),!l.getReadOnly()){var U=H.dataTransfer.dropEffect;!x&&U=="move"&&l.session.remove(l.getSelectionRange()),l.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(H){if(!(l.getReadOnly()||!W(H.dataTransfer)))return k=H.clientX,S=H.clientY,y||O(),T++,H.dataTransfer.dropEffect=x=j(H),h.preventDefault(H)},this.onDragOver=function(H){if(!(l.getReadOnly()||!W(H.dataTransfer)))return k=H.clientX,S=H.clientY,y||(O(),T++),F!==null&&(F=null),H.dataTransfer.dropEffect=x=j(H),h.preventDefault(H)},this.onDragLeave=function(H){if(T--,T<=0&&y)return I(),x=null,h.preventDefault(H)},this.onDrop=function(H){if(R){var U=H.dataTransfer;if(M)switch(x){case"move":$.contains(R.row,R.column)?$={start:R,end:R}:$=l.moveText($,R);break;case"copy":$=l.moveText($,R,!0);break}else{var K=U.getData("Text");$={start:R,end:l.session.insert(R,K)},l.focus(),x=null}return I(),h.preventDefault(H)}},h.addListener(v,"dragstart",this.onDragStart.bind(c),l),h.addListener(v,"dragend",this.onDragEnd.bind(c),l),h.addListener(v,"dragenter",this.onDragEnter.bind(c),l),h.addListener(v,"dragover",this.onDragOver.bind(c),l),h.addListener(v,"dragleave",this.onDragLeave.bind(c),l),h.addListener(v,"drop",this.onDrop.bind(c),l);function w(H,U){var K=Date.now(),Z=!U||H.row!=U.row,z=!U||H.column!=U.column;if(!A||Z||z)l.moveCursorToPosition(H),A=K,C={x:k,y:S};else{var X=a(C.x,C.y,k,S);X>o?A=null:K-A>=p&&(l.renderer.scrollCursorIntoView(),A=null)}}function E(H,U){var K=Date.now(),Z=l.renderer.layerConfig.lineHeight,z=l.renderer.layerConfig.characterWidth,X=l.renderer.scroller.getBoundingClientRect(),Y={x:{left:k-X.left,right:X.right-k},y:{top:S-X.top,bottom:X.bottom-S}},V=Math.min(Y.x.left,Y.x.right),ee=Math.min(Y.y.top,Y.y.bottom),P={row:H.row,column:H.column};V/z<=2&&(P.column+=Y.x.left<Y.x.right?-3:2),ee/Z<=1&&(P.row+=Y.y.top<Y.y.bottom?-1:1);var B=H.row!=P.row,G=H.column!=P.column,J=!U||H.row!=U.row;B||G&&!J?b?K-b>=s&&l.renderer.scrollCursorIntoView(P):b=K:b=null}function L(){var H=R;R=l.renderer.screenToTextCoordinates(k,S),w(R,H),E(R,H)}function O(){$=l.selection.toOrientedRange(),y=l.session.addMarker($,"ace_selection",l.getSelectionStyle()),l.clearSelection(),l.isFocused()&&l.renderer.$cursorLayer.setBlinking(!1),clearInterval(_),L(),_=setInterval(L,20),T=0,h.addListener(document,"mousemove",D)}function I(){clearInterval(_),l.session.removeMarker(y),y=null,l.selection.fromOrientedRange($),l.isFocused()&&!M&&l.$resetCursorStyle(),$=null,R=null,T=0,b=null,A=null,h.removeListener(document,"mousemove",D)}var F=null;function D(){F==null&&(F=setTimeout(function(){F!=null&&y&&I()},20))}function W(H){var U=H.types;return!U||Array.prototype.some.call(U,function(K){return K=="text/plain"||K=="Text"})}function j(H){var U=["copy","copymove","all","uninitialized"],K=["move","copymove","linkmove","all","uninitialized"],Z=g.isMac?H.altKey:H.ctrlKey,z="uninitialized";try{z=H.dataTransfer.effectAllowed.toLowerCase()}catch{}var X="none";return Z&&U.indexOf(z)>=0?X="copy":K.indexOf(z)>=0?X="move":U.indexOf(z)>=0&&(X="copy"),X}}(function(){this.dragWait=function(){var c=Date.now()-this.mousedownEvent.time;c>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var c=this.editor.container;c.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(c){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var c=this.editor,l=c.container;l.draggable=!0,c.renderer.$cursorLayer.setBlinking(!1),c.setStyle("ace_dragging");var f=g.isWin?"default":"move";c.renderer.setCursorStyle(f),this.setState("dragReady")},this.onMouseDrag=function(c){var l=this.editor.container;if(g.isIE&&this.state=="dragReady"){var f=a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);f>3&&l.dragDrop()}if(this.state==="dragWait"){var f=a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);f>0&&(l.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(c){if(this.$dragEnabled){this.mousedownEvent=c;var l=this.editor,f=c.inSelection(),m=c.getButton(),v=c.domEvent.detail||1;if(v===1&&m===0&&f){if(c.editor.inMultiSelectMode&&(c.getAccelKey()||c.getShiftKey()))return;this.mousedownEvent.time=Date.now();var y=c.domEvent.target||c.domEvent.srcElement;if("unselectable"in y&&(y.unselectable="on"),l.getDragDelay()){if(g.isWebKit){this.cancelDrag=!0;var k=l.container;k.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(c,this.onMouseDrag.bind(this)),c.defaultPrevented=!0}}}}).call(r.prototype);function a(c,l,f,m){return Math.sqrt(Math.pow(f-c,2)+Math.pow(m-l,2))}i.DragdropHandler=r}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(n,i,d){var u=n("./mouse_event").MouseEvent,h=n("../lib/event"),g=n("../lib/dom");i.addTouchListeners=function(s,p){var o="scroll",r,a,c,l,f,m,v=0,y,k=0,S=0,_=0,$,R;function T(){var w=window.navigator&&window.navigator.clipboard,E=!1,L=function(){var I=p.getCopyText(),F=p.session.getUndoManager().hasUndo();R.replaceChild(g.buildDom(E?["span",!I&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],I&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],I&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],w&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],F&&["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"]),R.firstChild)},O=function(I){var F=I.target.getAttribute("action");if(F=="more"||!E)return E=!E,L();F=="paste"?w.readText().then(function(D){p.execCommand(F,D)}):F&&((F=="cut"||F=="copy")&&(w?w.writeText(p.getCopyText()):document.execCommand("copy")),p.execCommand(F)),R.firstChild.style.display="none",E=!1,F!="openCommandPalette"&&p.focus()};R=g.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(I){o="menu",I.stopPropagation(),I.preventDefault(),p.textInput.focus()},ontouchend:function(I){I.stopPropagation(),I.preventDefault(),O(I)},onclick:O},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],p.container)}function x(){R||T();var w=p.selection.cursor,E=p.renderer.textToScreenCoordinates(w.row,w.column),L=p.renderer.textToScreenCoordinates(0,0).pageX,O=p.renderer.scrollLeft,I=p.container.getBoundingClientRect();R.style.top=E.pageY-I.top-3+"px",E.pageX-I.left<I.width-70?(R.style.left="",R.style.right="10px"):(R.style.right="",R.style.left=L+O-I.left+"px"),R.style.display="",R.firstChild.style.display="none",p.on("input",M)}function M(w){R&&(R.style.display="none"),p.off("input",M)}function b(){f=null,clearTimeout(f);var w=p.selection.getRange(),E=w.contains(y.row,y.column);(w.isEmpty()||!E)&&(p.selection.moveToPosition(y),p.selection.selectWord()),o="wait",x()}function A(){f=null,clearTimeout(f),p.selection.moveToPosition(y);var w=k>=2?p.selection.getLineRange(y.row):p.session.getBracketRange(y);w&&!w.isEmpty()?p.selection.setRange(w):p.selection.selectWord(),o="wait"}h.addListener(s,"contextmenu",function(w){if($){var E=p.textInput.getElement();E.focus()}},p),h.addListener(s,"touchstart",function(w){var E=w.touches;if(f||E.length>1){clearTimeout(f),f=null,c=-1,o="zoom";return}$=p.$mouseHandler.isMousePressed=!0;var L=p.renderer.layerConfig.lineHeight,O=p.renderer.layerConfig.lineHeight,I=w.timeStamp;l=I;var F=E[0],D=F.clientX,W=F.clientY;Math.abs(r-D)+Math.abs(a-W)>L&&(c=-1),r=w.clientX=D,a=w.clientY=W,S=_=0;var j=new u(w,p);if(y=j.getDocumentPosition(),I-c<500&&E.length==1&&!v)k++,w.preventDefault(),w.button=0,A();else{k=0;var H=p.selection.cursor,U=p.selection.isEmpty()?H:p.selection.anchor,K=p.renderer.$cursorLayer.getPixelPosition(H,!0),Z=p.renderer.$cursorLayer.getPixelPosition(U,!0),z=p.renderer.scroller.getBoundingClientRect(),X=p.renderer.layerConfig.offset,Y=p.renderer.scrollLeft,V=function(B,G){return B=B/O,G=G/L-.75,B*B+G*G};if(w.clientX<z.left){o="zoom";return}var ee=V(w.clientX-z.left-K.left+Y,w.clientY-z.top-K.top+X),P=V(w.clientX-z.left-Z.left+Y,w.clientY-z.top-Z.top+X);ee<3.5&&P<3.5&&(o=ee>P?"cursor":"anchor"),P<3.5?o="anchor":ee<3.5?o="cursor":o="scroll",f=setTimeout(b,450)}c=I},p),h.addListener(s,"touchend",function(w){$=p.$mouseHandler.isMousePressed=!1,m&&clearInterval(m),o=="zoom"?(o="",v=0):f?(p.selection.moveToPosition(y),v=0,x()):o=="scroll"?(C(),M()):x(),clearTimeout(f),f=null},p),h.addListener(s,"touchmove",function(w){f&&(clearTimeout(f),f=null);var E=w.touches;if(!(E.length>1||o=="zoom")){var L=E[0],O=r-L.clientX,I=a-L.clientY;if(o=="wait")if(O*O+I*I>4)o="cursor";else return w.preventDefault();r=L.clientX,a=L.clientY,w.clientX=L.clientX,w.clientY=L.clientY;var F=w.timeStamp,D=F-l;if(l=F,o=="scroll"){var W=new u(w,p);W.speed=1,W.wheelX=O,W.wheelY=I,10*Math.abs(O)<Math.abs(I)&&(O=0),10*Math.abs(I)<Math.abs(O)&&(I=0),D!=0&&(S=O/D,_=I/D),p._emit("mousewheel",W),W.propagationStopped||(S=_=0)}else{var j=new u(w,p),H=j.getDocumentPosition();o=="cursor"?p.selection.moveCursorToPosition(H):o=="anchor"&&p.selection.setSelectionAnchor(H.row,H.column),p.renderer.scrollCursorIntoView(H),w.preventDefault()}}},p);function C(){v+=60,m=setInterval(function(){v--<=0&&(clearInterval(m),m=null),Math.abs(S)<.01&&(S=0),Math.abs(_)<.01&&(_=0),v<20&&(S=.9*S),v<20&&(_=.9*_);var w=p.session.getScrollTop();p.renderer.scrollBy(10*S,10*_),w==p.session.getScrollTop()&&(v=0)},10)}}}),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],function(n,i,d){var u=n("../lib/event"),h=n("../lib/useragent"),g=n("./default_handlers").DefaultHandlers,s=n("./default_gutter_handler").GutterHandler,p=n("./mouse_event").MouseEvent,o=n("./dragdrop_handler").DragdropHandler,r=n("./touch_handler").addTouchListeners,a=n("../config"),c=function(){function l(f){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var m=this;this.editor=f,new g(this),new s(this),new o(this);var v=function(S){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();u.addListener(y,"click",this.onMouseEvent.bind(this,"click"),f),u.addListener(y,"mousemove",this.onMouseMove.bind(this,"mousemove"),f),u.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),u.addMouseWheelListener(f.container,this.onMouseWheel.bind(this,"mousewheel"),f),r(f.container,f);var k=f.renderer.$gutter;u.addListener(k,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),f),u.addListener(k,"click",this.onMouseEvent.bind(this,"gutterclick"),f),u.addListener(k,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),f),u.addListener(k,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),f),u.addListener(y,"mousedown",v,f),u.addListener(k,"mousedown",v,f),h.isIE&&f.renderer.scrollBarV&&(u.addListener(f.renderer.scrollBarV.element,"mousedown",v,f),u.addListener(f.renderer.scrollBarH.element,"mousedown",v,f)),f.on("mousemove",function(S){if(!(m.state||m.$dragDelay||!m.$dragEnabled)){var _=f.renderer.screenToTextCoordinates(S.x,S.y),$=f.session.selection.getRange(),R=f.renderer;!$.isEmpty()&&$.insideStart(_.row,_.column)?R.setCursorStyle("default"):R.setCursorStyle("")}},f)}return l.prototype.onMouseEvent=function(f,m){this.editor.session&&this.editor._emit(f,new p(m,this.editor))},l.prototype.onMouseMove=function(f,m){var v=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!v||!v.length||this.editor._emit(f,new p(m,this.editor))},l.prototype.onMouseWheel=function(f,m){var v=new p(m,this.editor);v.speed=this.$scrollSpeed*2,v.wheelX=m.wheelX,v.wheelY=m.wheelY,this.editor._emit(f,v)},l.prototype.setState=function(f){this.state=f},l.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 k=this,S=function(x){if(x){if(h.isWebKit&&!x.which&&k.releaseMouse)return k.releaseMouse();k.x=x.clientX,k.y=x.clientY,m&&m(x),k.mouseEvent=new p(x,k.editor),k.$mouseMoved=!0}},_=function(x){v.off("beforeEndOperation",R),clearInterval(T),v.session&&$(),k[k.state+"End"]&&k[k.state+"End"](x),k.state="",k.isMousePressed=y.$isMousePressed=!1,y.$keepTextAreaAtCursor&&y.$moveTextAreaToCursor(),k.$onCaptureMouseMove=k.releaseMouse=null,x&&k.onMouseEvent("mouseup",x),v.endOperation()},$=function(){k[k.state]&&k[k.state](),k.$mouseMoved=!1};if(h.isOldIE&&f.domEvent.type=="dblclick")return setTimeout(function(){_(f)});var R=function(x){k.releaseMouse&&v.curOp.command.name&&v.curOp.selectionChanged&&(k[k.state+"End"]&&k[k.state+"End"](),k.state="",k.releaseMouse())};v.on("beforeEndOperation",R),v.startOperation({command:{name:"mouse"}}),k.$onCaptureMouseMove=S,k.releaseMouse=u.capture(this.editor.container,S,_);var T=setInterval($,20)},l.prototype.cancelContextMenu=function(){var f=(function(m){m&&m.domEvent&&m.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",f),m&&m.domEvent&&u.stopEvent(m.domEvent))}).bind(this);setTimeout(f,10),this.editor.on("nativecontextmenu",f)},l.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},l}();c.prototype.releaseMouse=null,a.defineOptions(c.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:h.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),i.MouseHandler=c}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(n,i,d){var u=n("../lib/dom"),h=function(){function g(s){s.on("click",function(p){var o=p.getDocumentPosition(),r=s.session,a=r.getFoldAt(o.row,o.column,1);a&&(p.getAccelKey()?r.removeFold(a):r.expandFold(a),p.stop());var c=p.domEvent&&p.domEvent.target;c&&u.hasCssClass(c,"ace_inline_button")&&u.hasCssClass(c,"ace_toggle_wrap")&&(r.setOption("wrap",!r.getUseWrapMode()),s.renderer.scrollCursorIntoView())}),s.on("gutterclick",function(p){var o=s.renderer.$gutterLayer.getRegion(p);if(o=="foldWidgets"){var r=p.getDocumentPosition().row,a=s.session;a.foldWidgets&&a.foldWidgets[r]&&s.session.onFoldWidgetClick(r,p),s.isFocused()||s.focus(),p.stop()}}),s.on("gutterdblclick",function(p){var o=s.renderer.$gutterLayer.getRegion(p);if(o=="foldWidgets"){var r=p.getDocumentPosition().row,a=s.session,c=a.getParentFoldRangeData(r,!0),l=c.range||c.firstRange;if(l){r=l.start.row;var f=a.getFoldAt(r,a.getLine(r).length,1);f?a.removeFold(f):(a.addFold("...",l),s.renderer.scrollCursorIntoView({row:l.start.row,column:0}))}p.stop()}})}return g}();i.FoldHandler=h}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(n,i,d){var u=n("../lib/keys"),h=n("../lib/event"),g=function(){function s(p){this.$editor=p,this.$data={editor:p},this.$handlers=[],this.setDefaultHandler(p.commands)}return s.prototype.setDefaultHandler=function(p){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=p,this.addKeyboardHandler(p,0)},s.prototype.setKeyboardHandler=function(p){var o=this.$handlers;if(o[o.length-1]!=p){for(;o[o.length-1]&&o[o.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(o[o.length-1]);this.addKeyboardHandler(p,1)}},s.prototype.addKeyboardHandler=function(p,o){if(p){typeof p=="function"&&!p.handleKeyboard&&(p.handleKeyboard=p);var r=this.$handlers.indexOf(p);r!=-1&&this.$handlers.splice(r,1),o==null?this.$handlers.push(p):this.$handlers.splice(o,0,p),r==-1&&p.attach&&p.attach(this.$editor)}},s.prototype.removeKeyboardHandler=function(p){var o=this.$handlers.indexOf(p);return o==-1?!1:(this.$handlers.splice(o,1),p.detach&&p.detach(this.$editor),!0)},s.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},s.prototype.getStatusText=function(){var p=this.$data,o=p.editor;return this.$handlers.map(function(r){return r.getStatusText&&r.getStatusText(o,p)||""}).filter(Boolean).join(" ")},s.prototype.$callKeyboardHandlers=function(p,o,r,a){for(var c,l=!1,f=this.$editor.commands,m=this.$handlers.length;m--&&(c=this.$handlers[m].handleKeyboard(this.$data,p,o,r,a),!(!(!c||!c.command)&&(c.command=="null"?l=!0:l=f.exec(c.command,this.$editor,c.args,a),l&&a&&p!=-1&&c.passEvent!=!0&&c.command.passEvent!=!0&&h.stopEvent(a),l))););return!l&&p==-1&&(c={command:"insertstring"},l=f.exec("insertstring",this.$editor,o)),l&&this.$editor._signal&&this.$editor._signal("keyboardActivity",c),l},s.prototype.onCommandKey=function(p,o,r){var a=u.keyCodeToString(r);return this.$callKeyboardHandlers(o,a,r,p)},s.prototype.onTextInput=function(p){return this.$callKeyboardHandlers(-1,p)},s}();i.KeyBinding=g}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(n,i,d){var u=0,h=0,g=!1,s=!1,p=!1,o=[[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]],r=[[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]],a=0,c=1,l=0,f=1,m=2,v=3,y=4,k=5,S=6,_=7,$=8,R=9,T=10,x=11,M=12,b=13,A=14,C=15,w=16,E=17,L=18,O=[L,L,L,L,L,L,L,L,L,S,k,S,$,k,L,L,L,L,L,L,L,L,L,L,L,L,L,L,k,k,k,S,$,y,y,x,x,x,y,y,y,y,y,T,R,T,R,R,m,m,m,m,m,m,m,m,m,m,R,y,y,y,y,y,y,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,y,y,y,y,y,y,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,y,y,y,y,L,L,L,L,L,L,k,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,R,y,x,x,x,x,y,y,y,y,l,y,y,L,y,y,x,x,m,m,y,l,y,y,y,m,l,y,y,y,y,y],I=[$,$,$,$,$,$,$,$,$,$,$,L,L,L,l,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,$,k,b,A,C,w,E,R,x,x,x,x,x,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,R,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,$];function F(H,U,K,Z){var z=u?r:o,X=null,Y=null,V=null,ee=0,P=null,B=null,G=-1,J=null,te=null,ie=[];if(!Z)for(J=0,Z=[];J<K;J++)Z[J]=j(H[J]);for(h=u,g=!1,s=!1,p=!1,te=0;te<K;te++){if(X=ee,ie[te]=Y=W(H,Z,ie,te),ee=z[X][Y],P=ee&240,ee&=15,U[te]=V=z[ee][5],P>0)if(P==16){for(J=G;J<te;J++)U[J]=1;G=-1}else G=-1;if(B=z[ee][6],B)G==-1&&(G=te);else if(G>-1){for(J=G;J<te;J++)U[J]=V;G=-1}Z[te]==k&&(U[te]=0),h|=V}if(p){for(J=0;J<K;J++)if(Z[J]==S){U[J]=u;for(var le=J-1;le>=0&&Z[le]==$;le--)U[le]=u}}}function D(H,U,K){if(!(h<H)){if(H==1&&u==c&&!s){K.reverse();return}for(var Z=K.length,z=0,X,Y,V,ee;z<Z;){if(U[z]>=H){for(X=z+1;X<Z&&U[X]>=H;)X++;for(Y=z,V=X-1;Y<V;Y++,V--)ee=K[Y],K[Y]=K[V],K[V]=ee;z=X}z++}}}function W(H,U,K,Z){var z=U[Z],X,Y,V,ee;switch(z){case l:case f:g=!1;case y:case v:return z;case m:return g?v:m;case _:return g=!0,f;case $:return y;case R:return Z<1||Z+1>=U.length||(X=K[Z-1])!=m&&X!=v||(Y=U[Z+1])!=m&&Y!=v?y:(g&&(Y=v),Y==X?Y:y);case T:return X=Z>0?K[Z-1]:k,X==m&&Z+1<U.length&&U[Z+1]==m?m:y;case x:if(Z>0&&K[Z-1]==m)return m;if(g)return y;for(ee=Z+1,V=U.length;ee<V&&U[ee]==x;)ee++;return ee<V&&U[ee]==m?m:y;case M:for(V=U.length,ee=Z+1;ee<V&&U[ee]==M;)ee++;if(ee<V){var P=H[Z],B=P>=1425&&P<=2303||P==64286;if(X=U[ee],B&&(X==f||X==_))return f}return Z<1||(X=U[Z-1])==k?y:K[Z-1];case k:return g=!1,s=!0,u;case S:return p=!0,y;case b:case A:case w:case E:case C:g=!1;case L:return y}}function j(H){var U=H.charCodeAt(0),K=U>>8;return K==0?U>191?l:O[U]:K==5?/[\u0591-\u05f4]/.test(H)?f:l:K==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(H)?M:/[\u0660-\u0669\u066b-\u066c]/.test(H)?v:U==1642?x:/[\u06f0-\u06f9]/.test(H)?m:_:K==32&&U<=8287?I[U&255]:K==254&&U>=65136?_:y}i.L=l,i.R=f,i.EN=m,i.ON_R=3,i.AN=4,i.R_H=5,i.B=6,i.RLE=7,i.DOT="·",i.doBidiReorder=function(H,U,K){if(H.length<2)return{};var Z=H.split(""),z=new Array(Z.length),X=new Array(Z.length),Y=[];u=K?c:a,F(Z,Y,Z.length,U);for(var V=0;V<z.length;z[V]=V,V++);D(2,Y,z),D(1,Y,z);for(var V=0;V<z.length-1;V++)U[V]===v?Y[V]=i.AN:Y[V]===f&&(U[V]>_&&U[V]<b||U[V]===y||U[V]===L)?Y[V]=i.ON_R:V>0&&Z[V-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(Z[V])&&(Y[V-1]=Y[V]=i.R_H,V++);Z[Z.length-1]===i.DOT&&(Y[Z.length-1]=i.B),Z[0]==="‫"&&(Y[0]=i.RLE);for(var V=0;V<z.length;V++)X[V]=Y[z[V]];return{logicalFromVisual:z,bidiLevels:X}},i.hasBidiCharacters=function(H,U){for(var K=!1,Z=0;Z<H.length;Z++)U[Z]=j(H.charAt(Z)),!K&&(U[Z]==f||U[Z]==_||U[Z]==v)&&(K=!0);return K},i.getVisualFromLogicalIdx=function(H,U){for(var K=0;K<U.logicalFromVisual.length;K++)if(U.logicalFromVisual[K]==H)return K;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(n,i,d){var u=n("./lib/bidiutil"),h=n("./lib/lang"),g=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,s=function(){function p(o){this.session=o,this.bidiMap={},this.currentRow=null,this.bidiUtil=u,this.charWidths=[],this.EOL="¬",this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line="",this.wrapIndent=0,this.EOF="¶",this.RLE="‫",this.contentWidth=0,this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=g.test(o.getValue())}return p.prototype.isBidiRow=function(o,r,a){return this.seenBidi?(o!==this.currentRow&&(this.currentRow=o,this.updateRowLine(r,a),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},p.prototype.onChange=function(o){this.seenBidi?this.currentRow=null:o.action=="insert"&&g.test(o.lines.join(`
992
- `))&&(this.seenBidi=!0,this.currentRow=null)},p.prototype.getDocumentRow=function(){var o=0,r=this.session.$screenRowCache;if(r.length){var a=this.session.$getRowCacheIndex(r,this.currentRow);a>=0&&(o=this.session.$docRowCache[a])}return o},p.prototype.getSplitIndex=function(){var o=0,r=this.session.$screenRowCache;if(r.length)for(var a,c=this.session.$getRowCacheIndex(r,this.currentRow);this.currentRow-o>0&&(a=this.session.$getRowCacheIndex(r,this.currentRow-o-1),a===c);)c=a,o++;else o=this.currentRow;return o},p.prototype.updateRowLine=function(o,r){o===void 0&&(o=this.getDocumentRow());var a=o===this.session.getLength()-1,c=a?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(o),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var l=this.session.$wrapData[o];l&&(r===void 0&&(r=this.getSplitIndex()),r>0&&l.length?(this.wrapIndent=l.indent,this.wrapOffset=this.wrapIndent*this.charWidths[u.L],this.line=r<l.length?this.line.substring(l[r-1],l[r]):this.line.substring(l[l.length-1])):this.line=this.line.substring(0,l[r]),r==l.length&&(this.line+=this.showInvisibles?c:u.DOT))}else this.line+=this.showInvisibles?c:u.DOT;var f=this.session,m=0,v;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(y,k){return y===" "||f.isFullWidth(y.charCodeAt(0))?(v=y===" "?f.getScreenTabSize(k+m):2,m+=v-1,h.stringRepeat(u.DOT,v)):y}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==u.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},p.prototype.updateBidiMap=function(){var o=[];u.hasBidiCharacters(this.line,o)||this.isRtlDir?this.bidiMap=u.doBidiReorder(this.line,o,this.isRtlDir):this.bidiMap={}},p.prototype.markAsDirty=function(){this.currentRow=null},p.prototype.updateCharacterWidths=function(o){if(this.characterWidth!==o.$characterSize.width){this.fontMetrics=o;var r=this.characterWidth=o.$characterSize.width,a=o.$measureCharWidth("ה");this.charWidths[u.L]=this.charWidths[u.EN]=this.charWidths[u.ON_R]=r,this.charWidths[u.R]=this.charWidths[u.AN]=a,this.charWidths[u.R_H]=a*.45,this.charWidths[u.B]=this.charWidths[u.RLE]=0,this.currentRow=null}},p.prototype.setShowInvisibles=function(o){this.showInvisibles=o,this.currentRow=null},p.prototype.setEolChar=function(o){this.EOL=o},p.prototype.setContentWidth=function(o){this.contentWidth=o},p.prototype.isRtlLine=function(o){return this.$isRtl?!0:o!=null?this.session.getLine(o).charAt(0)==this.RLE:this.isRtlDir},p.prototype.setRtlDirection=function(o,r){for(var a=o.getCursorPosition(),c=o.selection.getSelectionAnchor().row;c<=a.row;c++)!r&&o.session.getLine(c).charAt(0)===o.session.$bidiHandler.RLE?o.session.doc.removeInLine(c,0,1):r&&o.session.getLine(c).charAt(0)!==o.session.$bidiHandler.RLE&&o.session.doc.insert({column:0,row:c},o.session.$bidiHandler.RLE)},p.prototype.getPosLeft=function(o){o-=this.wrapIndent;var r=this.line.charAt(0)===this.RLE?1:0,a=o>r?this.session.getOverwrite()?o:o-1:r,c=u.getVisualFromLogicalIdx(a,this.bidiMap),l=this.bidiMap.bidiLevels,f=0;!this.session.getOverwrite()&&o<=r&&l[c]%2!==0&&c++;for(var m=0;m<c;m++)f+=this.charWidths[l[m]];return!this.session.getOverwrite()&&o>r&&l[c]%2===0&&(f+=this.charWidths[l[c]]),this.wrapIndent&&(f+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(f+=this.rtlLineOffset),f},p.prototype.getSelections=function(o,r){var a=this.bidiMap,c=a.bidiLevels,l,f=[],m=0,v=Math.min(o,r)-this.wrapIndent,y=Math.max(o,r)-this.wrapIndent,k=!1,S=!1,_=0;this.wrapIndent&&(m+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var $,R=0;R<c.length;R++)$=a.logicalFromVisual[R],l=c[R],k=$>=v&&$<y,k&&!S?_=m:!k&&S&&f.push({left:_,width:m-_}),m+=this.charWidths[l],S=k;if(k&&R===c.length&&f.push({left:_,width:m-_}),this.isRtlDir)for(var T=0;T<f.length;T++)f[T].left+=this.rtlLineOffset;return f},p.prototype.offsetToCol=function(a){this.isRtlDir&&(a-=this.rtlLineOffset);var r=0,a=Math.max(a,0),c=0,l=0,f=this.bidiMap.bidiLevels,m=this.charWidths[f[l]];for(this.wrapIndent&&(a-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);a>c+m/2;){if(c+=m,l===f.length-1){m=0;break}m=this.charWidths[f[++l]]}return l>0&&f[l-1]%2!==0&&f[l]%2===0?(a<c&&l--,r=this.bidiMap.logicalFromVisual[l]):l>0&&f[l-1]%2===0&&f[l]%2!==0?r=1+(a>c?this.bidiMap.logicalFromVisual[l]:this.bidiMap.logicalFromVisual[l-1]):this.isRtlDir&&l===f.length-1&&m===0&&f[l-1]%2===0||!this.isRtlDir&&l===0&&f[l]%2!==0?r=1+this.bidiMap.logicalFromVisual[l]:(l>0&&f[l-1]%2!==0&&m!==0&&l--,r=this.bidiMap.logicalFromVisual[l]),r===0&&this.isRtlDir&&r++,r+this.wrapIndent},p}();i.BidiHandler=s}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(n,i,d){var u=n("./lib/oop"),h=n("./lib/lang"),g=n("./lib/event_emitter").EventEmitter,s=n("./range").Range,p=function(){function o(r){this.session=r,this.doc=r.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var a=this;this.cursor.on("change",function(c){a.$cursorChanged=!0,a.$silent||a._emit("changeCursor"),!a.$isEmpty&&!a.$silent&&a._emit("changeSelection"),!a.$keepDesiredColumnOnChange&&c.old.column!=c.value.column&&(a.$desiredColumn=null)}),this.anchor.on("change",function(){a.$anchorChanged=!0,!a.$isEmpty&&!a.$silent&&a._emit("changeSelection")})}return o.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},o.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},o.prototype.getCursor=function(){return this.lead.getPosition()},o.prototype.setAnchor=function(r,a){this.$isEmpty=!1,this.anchor.setPosition(r,a)},o.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},o.prototype.getSelectionLead=function(){return this.lead.getPosition()},o.prototype.isBackwards=function(){var r=this.anchor,a=this.lead;return r.row>a.row||r.row==a.row&&r.column>a.column},o.prototype.getRange=function(){var r=this.anchor,a=this.lead;return this.$isEmpty?s.fromPoints(a,a):this.isBackwards()?s.fromPoints(a,r):s.fromPoints(r,a)},o.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},o.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},o.prototype.setRange=function(r,a){var c=a?r.end:r.start,l=a?r.start:r.end;this.$setSelection(c.row,c.column,l.row,l.column)},o.prototype.$setSelection=function(r,a,c,l){if(!this.$silent){var f=this.$isEmpty,m=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(r,a),this.cursor.setPosition(c,l),this.$isEmpty=!s.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||f!=this.$isEmpty||m)&&this._emit("changeSelection")}},o.prototype.$moveSelection=function(r){var a=this.lead;this.$isEmpty&&this.setSelectionAnchor(a.row,a.column),r.call(this)},o.prototype.selectTo=function(r,a){this.$moveSelection(function(){this.moveCursorTo(r,a)})},o.prototype.selectToPosition=function(r){this.$moveSelection(function(){this.moveCursorToPosition(r)})},o.prototype.moveTo=function(r,a){this.clearSelection(),this.moveCursorTo(r,a)},o.prototype.moveToPosition=function(r){this.clearSelection(),this.moveCursorToPosition(r)},o.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},o.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},o.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},o.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},o.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},o.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},o.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},o.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},o.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},o.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},o.prototype.getWordRange=function(r,a){if(typeof a>"u"){var c=r||this.lead;r=c.row,a=c.column}return this.session.getWordRange(r,a)},o.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},o.prototype.selectAWord=function(){var r=this.getCursor(),a=this.session.getAWordRange(r.row,r.column);this.setSelectionRange(a)},o.prototype.getLineRange=function(r,a){var c=typeof r=="number"?r:this.lead.row,l,f=this.session.getFoldLine(c);return f?(c=f.start.row,l=f.end.row):l=c,a===!0?new s(c,0,l,this.session.getLine(l).length):new s(c,0,l+1,0)},o.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},o.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},o.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},o.prototype.wouldMoveIntoSoftTab=function(r,a,c){var l=r.column,f=r.column+a;return c<0&&(l=r.column-a,f=r.column),this.session.isTabStop(r)&&this.doc.getLine(r.row).slice(l,f).split(" ").length-1==a},o.prototype.moveCursorLeft=function(){var r=this.lead.getPosition(),a;if(a=this.session.getFoldAt(r.row,r.column,-1))this.moveCursorTo(a.start.row,a.start.column);else if(r.column===0)r.row>0&&this.moveCursorTo(r.row-1,this.doc.getLine(r.row-1).length);else{var c=this.session.getTabSize();this.wouldMoveIntoSoftTab(r,c,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-c):this.moveCursorBy(0,-1)}},o.prototype.moveCursorRight=function(){var r=this.lead.getPosition(),a;if(a=this.session.getFoldAt(r.row,r.column,1))this.moveCursorTo(a.end.row,a.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 c=this.session.getTabSize(),r=this.lead;this.wouldMoveIntoSoftTab(r,c,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,c):this.moveCursorBy(0,1)}},o.prototype.moveCursorLineStart=function(){var r=this.lead.row,a=this.lead.column,c=this.session.documentToScreenRow(r,a),l=this.session.screenToDocumentPosition(c,0),f=this.session.getDisplayLine(r,null,l.row,l.column),m=f.match(/^\s*/);m[0].length!=a&&!this.session.$useEmacsStyleLineStart&&(l.column+=m[0].length),this.moveCursorToPosition(l)},o.prototype.moveCursorLineEnd=function(){var r=this.lead,a=this.session.getDocumentLastRowColumnPosition(r.row,r.column);if(this.lead.column==a.column){var c=this.session.getLine(a.row);if(a.column==c.length){var l=c.search(/\s+$/);l>0&&(a.column=l)}}this.moveCursorTo(a.row,a.column)},o.prototype.moveCursorFileEnd=function(){var r=this.doc.getLength()-1,a=this.doc.getLine(r).length;this.moveCursorTo(r,a)},o.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},o.prototype.moveCursorLongWordRight=function(){var r=this.lead.row,a=this.lead.column,c=this.doc.getLine(r),l=c.substring(a);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var f=this.session.getFoldAt(r,a,1);if(f){this.moveCursorTo(f.end.row,f.end.column);return}if(this.session.nonTokenRe.exec(l)&&(a+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,l=c.substring(a)),a>=c.length){this.moveCursorTo(r,c.length),this.moveCursorRight(),r<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(l)&&(a+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(r,a)},o.prototype.moveCursorLongWordLeft=function(){var r=this.lead.row,a=this.lead.column,c;if(c=this.session.getFoldAt(r,a,-1)){this.moveCursorTo(c.start.row,c.start.column);return}var l=this.session.getFoldStringAt(r,a,-1);l==null&&(l=this.doc.getLine(r).substring(0,a));var f=h.stringReverse(l);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(f)&&(a-=this.session.nonTokenRe.lastIndex,f=f.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),a<=0){this.moveCursorTo(r,0),this.moveCursorLeft(),r>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(f)&&(a-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(r,a)},o.prototype.$shortWordEndIndex=function(r){var a=0,c,l=/\s/,f=this.session.tokenRe;if(f.lastIndex=0,this.session.tokenRe.exec(r))a=this.session.tokenRe.lastIndex;else{for(;(c=r[a])&&l.test(c);)a++;if(a<1){for(f.lastIndex=0;(c=r[a])&&!f.test(c);)if(f.lastIndex=0,a++,l.test(c))if(a>2){a--;break}else{for(;(c=r[a])&&l.test(c);)a++;if(a>2)break}}}return f.lastIndex=0,a},o.prototype.moveCursorShortWordRight=function(){var r=this.lead.row,a=this.lead.column,c=this.doc.getLine(r),l=c.substring(a),f=this.session.getFoldAt(r,a,1);if(f)return this.moveCursorTo(f.end.row,f.end.column);if(a==c.length){var m=this.doc.getLength();do r++,l=this.doc.getLine(r);while(r<m&&/^\s*$/.test(l));/^\s+/.test(l)||(l=""),a=0}var v=this.$shortWordEndIndex(l);this.moveCursorTo(r,a+v)},o.prototype.moveCursorShortWordLeft=function(){var r=this.lead.row,a=this.lead.column,c;if(c=this.session.getFoldAt(r,a,-1))return this.moveCursorTo(c.start.row,c.start.column);var l=this.session.getLine(r).substring(0,a);if(a===0){do r--,l=this.doc.getLine(r);while(r>0&&/^\s*$/.test(l));a=l.length,/\s+$/.test(l)||(l="")}var f=h.stringReverse(l),m=this.$shortWordEndIndex(f);return this.moveCursorTo(r,a-m)},o.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},o.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},o.prototype.moveCursorBy=function(r,a){var c=this.session.documentToScreenPosition(this.lead.row,this.lead.column),l;if(a===0&&(r!==0&&(this.session.$bidiHandler.isBidiRow(c.row,this.lead.row)?(l=this.session.$bidiHandler.getPosLeft(c.column),c.column=Math.round(l/this.session.$bidiHandler.charWidths[0])):l=c.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?c.column=this.$desiredColumn:this.$desiredColumn=c.column),r!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var f=this.session.lineWidgets[this.lead.row];r<0?r-=f.rowsAbove||0:r>0&&(r+=f.rowCount-(f.rowsAbove||0))}var m=this.session.screenToDocumentPosition(c.row+r,c.column,l);r!==0&&a===0&&m.row===this.lead.row&&(m.column,this.lead.column),this.moveCursorTo(m.row,m.column+a,a===0)},o.prototype.moveCursorToPosition=function(r){this.moveCursorTo(r.row,r.column)},o.prototype.moveCursorTo=function(r,a,c){var l=this.session.getFoldAt(r,a,1);l&&(r=l.start.row,a=l.start.column),this.$keepDesiredColumnOnChange=!0;var f=this.session.getLine(r);/[\uDC00-\uDFFF]/.test(f.charAt(a))&&f.charAt(a-1)&&(this.lead.row==r&&this.lead.column==a+1?a=a-1:a=a+1),this.lead.setPosition(r,a),this.$keepDesiredColumnOnChange=!1,c||(this.$desiredColumn=null)},o.prototype.moveCursorToScreen=function(r,a,c){var l=this.session.screenToDocumentPosition(r,a);this.moveCursorTo(l.row,l.column,c)},o.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},o.prototype.fromOrientedRange=function(r){this.setSelectionRange(r,r.cursor==r.start),this.$desiredColumn=r.desiredColumn||this.$desiredColumn},o.prototype.toOrientedRange=function(r){var a=this.getRange();return r?(r.start.column=a.start.column,r.start.row=a.start.row,r.end.column=a.end.column,r.end.row=a.end.row):r=a,r.cursor=this.isBackwards()?r.start:r.end,r.desiredColumn=this.$desiredColumn,r},o.prototype.getRangeOfMovements=function(r){var a=this.getCursor();try{r(this);var c=this.getCursor();return s.fromPoints(a,c)}catch{return s.fromPoints(a,a)}finally{this.moveCursorToPosition(a)}},o.prototype.toJSON=function(){if(this.rangeCount)var r=this.ranges.map(function(a){var c=a.clone();return c.isBackwards=a.cursor==a.start,c});else{var r=this.getRange();r.isBackwards=this.isBackwards()}return r},o.prototype.fromJSON=function(r){if(r.start==null)if(this.rangeList&&r.length>1){this.toSingleRange(r[0]);for(var a=r.length;a--;){var c=s.fromPoints(r[a].start,r[a].end);r[a].isBackwards&&(c.cursor=c.start),this.addRange(c,!0)}return}else r=r[0];this.rangeList&&this.toSingleRange(r),this.setSelectionRange(r,r.isBackwards)},o.prototype.isEqual=function(r){if((r.length||this.rangeCount)&&r.length!=this.rangeCount)return!1;if(!r.length||!this.ranges)return this.getRange().isEqual(r);for(var a=this.ranges.length;a--;)if(!this.ranges[a].isEqual(r[a]))return!1;return!0},o}();p.prototype.setSelectionAnchor=p.prototype.setAnchor,p.prototype.getSelectionAnchor=p.prototype.getAnchor,p.prototype.setSelectionRange=p.prototype.setRange,u.implement(p.prototype,g),i.Selection=p}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(n,i,d){var u=n("./lib/report_error").reportError,h=2e3,g=function(){function s(p){this.splitRegex,this.states=p,this.regExps={},this.matchMappings={};for(var o in this.states){for(var r=this.states[o],a=[],c=0,l=this.matchMappings[o]={defaultToken:"text"},f="g",m=[],v=0;v<r.length;v++){var y=r[v];if(y.defaultToken&&(l.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 k=y.regex,S=new RegExp("(?:("+k+")|(.))").exec("a").length-2;Array.isArray(y.token)?y.token.length==1||S==1?y.token=y.token[0]:S-1!=y.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:y,groupCount:S-1}),y.token=y.token[0]):(y.tokenArray=y.token,y.token=null,y.onMatch=this.$arrayTokens):typeof y.token=="function"&&!y.onMatch&&(S>1?y.onMatch=this.$applyToken:y.onMatch=y.token),S>1&&(/\\\d/.test(y.regex)?k=y.regex.replace(/\\([0-9]+)/g,function(_,$){return"\\"+(parseInt($,10)+c+1)}):(S=1,k=this.removeCapturingGroups(y.regex)),!y.splitRegex&&typeof y.token!="string"&&m.push(y)),l[c]=v,c+=S,a.push(k),y.onMatch||(y.onMatch=null)}}a.length||(l[0]=0,a.push("$")),m.forEach(function(_){_.splitRegex=this.createSplitterRegexp(_.regex,f)},this),this.regExps[o]=new RegExp("("+a.join(")|(")+")|($)",f)}}return s.prototype.$setMaxTokenCount=function(p){h=p|0},s.prototype.$applyToken=function(p){var o=this.splitRegex.exec(p).slice(1),r=this.token.apply(this,o);if(typeof r=="string")return[{type:r,value:p}];for(var a=[],c=0,l=r.length;c<l;c++)o[c]&&(a[a.length]={type:r[c],value:o[c]});return a},s.prototype.$arrayTokens=function(p){if(!p)return[];var o=this.splitRegex.exec(p);if(!o)return"text";for(var r=[],a=this.tokenArray,c=0,l=a.length;c<l;c++)o[c+1]&&(r[r.length]={type:a[c],value:o[c+1]});return r},s.prototype.removeCapturingGroups=function(p){var o=p.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(r,a){return a?"(?:":r});return o},s.prototype.createSplitterRegexp=function(p,o){if(p.indexOf("(?=")!=-1){var r=0,a=!1,c={};p.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(l,f,m,v,y,k){return a?a=y!="]":y?a=!0:v?(r==c.stack&&(c.end=k+1,c.stack=-1),r--):m&&(r++,m.length!=1&&(c.stack=r,c.start=k)),l}),c.end!=null&&/^\)*$/.test(p.substr(c.end))&&(p=p.substring(0,c.start)+p.substr(c.end))}return p.charAt(0)!="^"&&(p="^"+p),p.charAt(p.length-1)!="$"&&(p+="$"),new RegExp(p,(o||"").replace("g",""))},s.prototype.getLineTokens=function(p,o){if(o&&typeof o!="string"){var r=o.slice(0);o=r[0],o==="#tmp"&&(r.shift(),o=r.shift())}else var r=[];var a=o||"start",c=this.states[a];c||(a="start",c=this.states[a]);var l=this.matchMappings[a],f=this.regExps[a];f.lastIndex=0;for(var m,v=[],y=0,k=0,S={type:null,value:""};m=f.exec(p);){var _=l.defaultToken,$=null,R=m[0],T=f.lastIndex;if(T-R.length>y){var x=p.substring(y,T-R.length);S.type==_?S.value+=x:(S.type&&v.push(S),S={type:_,value:x})}for(var M=0;M<m.length-2;M++)if(m[M+1]!==void 0){$=c[l[M]],$.onMatch?_=$.onMatch(R,a,r,p):_=$.token,$.next&&(typeof $.next=="string"?a=$.next:a=$.next(a,r),c=this.states[a],c||(this.reportError("state doesn't exist",a),a="start",c=this.states[a]),l=this.matchMappings[a],y=T,f=this.regExps[a],f.lastIndex=T),$.consumeLineEnd&&(y=T);break}if(R){if(typeof _=="string")(!$||$.merge!==!1)&&S.type===_?S.value+=R:(S.type&&v.push(S),S={type:_,value:R});else if(_){S.type&&v.push(S),S={type:null,value:""};for(var M=0;M<_.length;M++)v.push(_[M])}}if(y==p.length)break;if(y=T,k++>h){for(k>2*p.length&&this.reportError("infinite loop with in ace tokenizer",{startState:o,line:p});y<p.length;)S.type&&v.push(S),S={value:p.substring(y,y+=500),type:"overflow"};a="start",r=[];break}}return S.type&&v.push(S),r.length>1&&r[0]!==a&&r.unshift("#tmp",a),{tokens:v,state:r.length?r:a}},s}();g.prototype.reportError=u,i.Tokenizer=g}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(n,i,d){var u=n("../lib/deep_copy").deepCopy,h;h=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},(function(){this.addRules=function(p,o){if(!o){for(var r in p)this.$rules[r]=p[r];return}for(var r in p){for(var a=p[r],c=0;c<a.length;c++){var l=a[c];(l.next||l.onMatch)&&(typeof l.next=="string"&&l.next.indexOf(o)!==0&&(l.next=o+l.next),l.nextState&&l.nextState.indexOf(o)!==0&&(l.nextState=o+l.nextState))}this.$rules[o+r]=a}},this.getRules=function(){return this.$rules},this.embedRules=function(p,o,r,a,c){var l=typeof p=="function"?new p().getRules():p;if(a)for(var f=0;f<a.length;f++)a[f]=o+a[f];else{a=[];for(var m in l)a.push(o+m)}if(this.addRules(l,o),r)for(var v=Array.prototype[c?"push":"unshift"],f=0;f<a.length;f++)v.apply(this.$rules[a[f]],u(r));this.$embeds||(this.$embeds=[]),this.$embeds.push(o)},this.getEmbeds=function(){return this.$embeds};var g=function(p,o){return(p!="start"||o.length)&&o.unshift(this.nextState,p),this.nextState},s=function(p,o){return o.shift(),o.shift()||"start"};this.normalizeRules=function(){var p=0,o=this.$rules;function r(a){var c=o[a];c.processed=!0;for(var l=0;l<c.length;l++){var f=c[l],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]||""),o[y]&&(y+=p++)),o[y]=v,f.next=y,r(y)}else v=="pop"&&(f.next=s);if(f.push&&(f.nextState=f.next||f.push,f.next=g,delete f.push),f.rules)for(var k in f.rules)o[k]?o[k].push&&o[k].push.apply(o[k],f.rules[k]):o[k]=f.rules[k];var S=typeof f=="string"?f:f.include;if(S&&(S==="$self"&&(S="start"),Array.isArray(S)?m=S.map(function($){return o[$]}):m=o[S]),m){var _=[l,1].concat(m);f.noEscape&&(_=_.filter(function($){return!$.next})),c.splice.apply(c,_),l--}f.keywordMap&&(f.token=this.createKeywordMapper(f.keywordMap,f.defaultToken||"text",f.caseInsensitive),delete f.defaultToken)}}Object.keys(o).forEach(r,this)},this.createKeywordMapper=function(p,o,r,a){var c=Object.create(null);return this.$keywordList=[],Object.keys(p).forEach(function(l){for(var f=p[l],m=f.split(a||"|"),v=m.length;v--;){var y=m[v];this.$keywordList.push(y),r&&(y=y.toLowerCase()),c[y]=l}},this),p=null,r?function(l){return c[l.toLowerCase()]||o}:function(l){return c[l]||o}},this.getKeywords=function(){return this.$keywords}}).call(h.prototype),i.TextHighlightRules=h}),ace.define("ace/mode/behaviour",["require","exports","module"],function(n,i,d){var u;u=function(){this.$behaviours={}},(function(){this.add=function(h,g,s){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[h]:this.$behaviours[h]={}}this.$behaviours[h][g]=s},this.addBehaviours=function(h){for(var g in h)for(var s in h[g])this.add(g,s,h[g][s])},this.remove=function(h){this.$behaviours&&this.$behaviours[h]&&delete this.$behaviours[h]},this.inherit=function(h,g){if(typeof h=="function")var s=new h().getBehaviours(g);else var s=h.getBehaviours(g);this.addBehaviours(s)},this.getBehaviours=function(h){if(h){for(var g={},s=0;s<h.length;s++)this.$behaviours[h[s]]&&(g[h[s]]=this.$behaviours[h[s]]);return g}else return this.$behaviours}}).call(u.prototype),i.Behaviour=u}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(n,i,d){var u=n("./range").Range,h=function(){function g(s,p,o){this.$session=s,this.$row=p,this.$rowTokens=s.getTokens(p);var r=s.getTokenAt(p,o);this.$tokenIndex=r?r.index:-1}return g.prototype.stepBackward=function(){for(this.$tokenIndex-=1;this.$tokenIndex<0;){if(this.$row-=1,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},g.prototype.stepForward=function(){this.$tokenIndex+=1;for(var s;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,s||(s=this.$session.getLength()),this.$row>=s)return this.$row=s-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},g.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},g.prototype.getCurrentTokenRow=function(){return this.$row},g.prototype.getCurrentTokenColumn=function(){var s=this.$rowTokens,p=this.$tokenIndex,o=s[p].start;if(o!==void 0)return o;for(o=0;p>0;)p-=1,o+=s[p].value.length;return o},g.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},g.prototype.getCurrentTokenRange=function(){var s=this.$rowTokens[this.$tokenIndex],p=this.getCurrentTokenColumn();return new u(this.$row,p,this.$row,p+s.value.length)},g}();i.TokenIterator=h}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(n,i,d){var u=n("../../lib/oop"),h=n("../behaviour").Behaviour,g=n("../../token_iterator").TokenIterator,s=n("../../lib/lang"),p=["text","paren.rparen","rparen","paren","punctuation.operator"],o=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],r,a={},c={'"':'"',"'":"'"},l=function(v){var y=-1;if(v.multiSelect&&(y=v.selection.index,a.rangeCount!=v.multiSelect.rangeCount&&(a={rangeCount:v.multiSelect.rangeCount})),a[y])return r=a[y];r=a[y]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},f=function(v,y,k,S){var _=v.end.row-v.start.row;return{text:k+y+S,selection:[0,v.start.column+1,_,v.end.column+(_?0:1)]}},m;m=function(v){v=v||{},this.add("braces","insertion",function(y,k,S,_,$){var R=S.getCursorPosition(),T=_.doc.getLine(R.row);if($=="{"){l(S);var x=S.getSelectionRange(),M=_.doc.getTextRange(x);if(M!==""&&M!=="{"&&S.getWrapBehavioursEnabled())return f(x,M,"{","}");if(m.isSaneInsertion(S,_))return/[\]\}\)]/.test(T[R.column])||S.inMultiSelectMode||v.braces?(m.recordAutoInsert(S,_,"}"),{text:"{}",selection:[1,1]}):(m.recordMaybeInsert(S,_,"{"),{text:"{",selection:[1,1]})}else if($=="}"){l(S);var b=T.substring(R.column,R.column+1);if(b=="}"){var A=_.$findOpeningBracket("}",{column:R.column+1,row:R.row});if(A!==null&&m.isAutoInsertedClosing(R,T,$))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if($==`
993
- `||$==`\r
994
- `){l(S);var C="";m.isMaybeInsertedClosing(R,T)&&(C=s.stringRepeat("}",r.maybeInsertedBrackets),m.clearMaybeInsertedClosing());var b=T.substring(R.column,R.column+1);if(b==="}"){var w=_.findMatchingBracket({row:R.row,column:R.column+1},"}");if(!w)return null;var E=this.$getIndent(_.getLine(w.row))}else if(C)var E=this.$getIndent(T);else{m.clearMaybeInsertedClosing();return}var L=E+_.getTabString();return{text:`
995
- `+L+`
996
- `+E+C,selection:[1,L.length,1,L.length]}}else m.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(y,k,S,_,$){var R=_.doc.getTextRange($);if(!$.isMultiLine()&&R=="{"){l(S);var T=_.doc.getLine($.start.row),x=T.substring($.end.column,$.end.column+1);if(x=="}")return $.end.column++,$;r.maybeInsertedBrackets--}}),this.add("parens","insertion",function(y,k,S,_,$){if($=="("){l(S);var R=S.getSelectionRange(),T=_.doc.getTextRange(R);if(T!==""&&S.getWrapBehavioursEnabled())return f(R,T,"(",")");if(m.isSaneInsertion(S,_))return m.recordAutoInsert(S,_,")"),{text:"()",selection:[1,1]}}else if($==")"){l(S);var x=S.getCursorPosition(),M=_.doc.getLine(x.row),b=M.substring(x.column,x.column+1);if(b==")"){var A=_.$findOpeningBracket(")",{column:x.column+1,row:x.row});if(A!==null&&m.isAutoInsertedClosing(x,M,$))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(y,k,S,_,$){var R=_.doc.getTextRange($);if(!$.isMultiLine()&&R=="("){l(S);var T=_.doc.getLine($.start.row),x=T.substring($.start.column+1,$.start.column+2);if(x==")")return $.end.column++,$}}),this.add("brackets","insertion",function(y,k,S,_,$){if($=="["){l(S);var R=S.getSelectionRange(),T=_.doc.getTextRange(R);if(T!==""&&S.getWrapBehavioursEnabled())return f(R,T,"[","]");if(m.isSaneInsertion(S,_))return m.recordAutoInsert(S,_,"]"),{text:"[]",selection:[1,1]}}else if($=="]"){l(S);var x=S.getCursorPosition(),M=_.doc.getLine(x.row),b=M.substring(x.column,x.column+1);if(b=="]"){var A=_.$findOpeningBracket("]",{column:x.column+1,row:x.row});if(A!==null&&m.isAutoInsertedClosing(x,M,$))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(y,k,S,_,$){var R=_.doc.getTextRange($);if(!$.isMultiLine()&&R=="["){l(S);var T=_.doc.getLine($.start.row),x=T.substring($.start.column+1,$.start.column+2);if(x=="]")return $.end.column++,$}}),this.add("string_dquotes","insertion",function(y,k,S,_,$){var R=_.$mode.$quotes||c;if($.length==1&&R[$]){if(this.lineCommentStart&&this.lineCommentStart.indexOf($)!=-1)return;l(S);var T=$,x=S.getSelectionRange(),M=_.doc.getTextRange(x);if(M!==""&&(M.length!=1||!R[M])&&S.getWrapBehavioursEnabled())return f(x,M,T,T);if(!M){var b=S.getCursorPosition(),A=_.doc.getLine(b.row),C=A.substring(b.column-1,b.column),w=A.substring(b.column,b.column+1),E=_.getTokenAt(b.row,b.column),L=_.getTokenAt(b.row,b.column+1);if(C=="\\"&&E&&/escape/.test(E.type))return null;var O=E&&/string|escape/.test(E.type),I=!L||/string|escape/.test(L.type),F;if(w==T)F=O!==I,F&&/string\.end/.test(L.type)&&(F=!1);else{if(O&&!I||O&&I)return null;var D=_.$mode.tokenRe;D.lastIndex=0;var W=D.test(C);D.lastIndex=0;var j=D.test(w),H=_.$mode.$pairQuotesAfter,U=H&&H[T]&&H[T].test(C);if(!U&&W||j||w&&!/[\s;,.})\]\\]/.test(w))return null;var K=A[b.column-2];if(C==T&&(K==T||D.test(K)))return null;F=!0}return{text:F?T+T:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(y,k,S,_,$){var R=_.$mode.$quotes||c,T=_.doc.getTextRange($);if(!$.isMultiLine()&&R.hasOwnProperty(T)){l(S);var x=_.doc.getLine($.start.row),M=x.substring($.start.column+1,$.start.column+2);if(M==T)return $.end.column++,$}}),v.closeDocComment!==!1&&this.add("doc comment end","insertion",function(y,k,S,_,$){if(y==="doc-start"&&($===`
997
- `||$===`\r
998
- `)&&S.selection.isEmpty()){var R=S.getCursorPosition(),T=_.doc.getLine(R.row),x=_.doc.getLine(R.row+1),M=this.$getIndent(T);if(/\s*\*/.test(x))return/^\s*\*/.test(T)?{text:$+M+"* ",selection:[1,3+M.length,1,3+M.length]}:{text:$+M+" * ",selection:[1,3+M.length,1,3+M.length]};if(/\/\*\*/.test(T.substring(0,R.column)))return{text:$+M+" * "+$+" "+M+"*/",selection:[1,4+M.length,1,4+M.length]}}})},m.isSaneInsertion=function(v,y){var k=v.getCursorPosition(),S=new g(y,k.row,k.column);if(!this.$matchTokenType(S.getCurrentToken()||"text",p)){if(/[)}\]]/.test(v.session.getLine(k.row)[k.column]))return!0;var _=new g(y,k.row,k.column+1);if(!this.$matchTokenType(_.getCurrentToken()||"text",p))return!1}return S.stepForward(),S.getCurrentTokenRow()!==k.row||this.$matchTokenType(S.getCurrentToken()||"text",o)},m.$matchTokenType=function(v,y){return y.indexOf(v.type||v)>-1},m.recordAutoInsert=function(v,y,k){var S=v.getCursorPosition(),_=y.doc.getLine(S.row);this.isAutoInsertedClosing(S,_,r.autoInsertedLineEnd[0])||(r.autoInsertedBrackets=0),r.autoInsertedRow=S.row,r.autoInsertedLineEnd=k+_.substr(S.column),r.autoInsertedBrackets++},m.recordMaybeInsert=function(v,y,k){var S=v.getCursorPosition(),_=y.doc.getLine(S.row);this.isMaybeInsertedClosing(S,_)||(r.maybeInsertedBrackets=0),r.maybeInsertedRow=S.row,r.maybeInsertedLineStart=_.substr(0,S.column)+k,r.maybeInsertedLineEnd=_.substr(S.column),r.maybeInsertedBrackets++},m.isAutoInsertedClosing=function(v,y,k){return r.autoInsertedBrackets>0&&v.row===r.autoInsertedRow&&k===r.autoInsertedLineEnd[0]&&y.substr(v.column)===r.autoInsertedLineEnd},m.isMaybeInsertedClosing=function(v,y){return r.maybeInsertedBrackets>0&&v.row===r.maybeInsertedRow&&y.substr(v.column)===r.maybeInsertedLineEnd&&y.substr(0,v.column)==r.maybeInsertedLineStart},m.popAutoInsertedClosing=function(){r.autoInsertedLineEnd=r.autoInsertedLineEnd.substr(1),r.autoInsertedBrackets--},m.clearMaybeInsertedClosing=function(){r&&(r.maybeInsertedBrackets=0,r.maybeInsertedRow=-1)},u.inherits(m,h),i.CstyleBehaviour=m}),ace.define("ace/unicode",["require","exports","module"],function(n,i,d){for(var u=[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],h=0,g=[],s=0;s<u.length;s+=2)g.push(h+=u[s]),u[s+1]&&g.push(45,h+=u[s+1]);i.wordChars=String.fromCharCode.apply(null,g)}),ace.define("ace/mode/text",["require","exports","module","ace/config","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],function(n,i,d){var u=n("../config"),h=n("../tokenizer").Tokenizer,g=n("./text_highlight_rules").TextHighlightRules,s=n("./behaviour/cstyle").CstyleBehaviour,p=n("../unicode"),o=n("../lib/lang"),r=n("../token_iterator").TokenIterator,a=n("../range").Range,c;c=function(){this.HighlightRules=g},(function(){this.$defaultBehaviour=new s,this.tokenRe=new RegExp("^["+p.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+p.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new h(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(l,f,m,v){var y=f.doc,k=!0,S=!0,_=1/0,$=f.getTabSize(),R=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var M=this.lineCommentStart.map(o.escapeRegExp).join("|"),T=this.lineCommentStart[0];else var M=o.escapeRegExp(this.lineCommentStart),T=this.lineCommentStart;M=new RegExp("^(\\s*)(?:"+M+") ?"),R=f.getUseSoftTabs();var C=function(j,H){var U=j.match(M);if(U){var K=U[1].length,Z=U[0].length;!L(j,K,Z)&&U[0][Z-1]==" "&&Z--,y.removeInLine(H,K,Z)}},E=T+" ",A=function(j,H){(!k||/\S/.test(j))&&(L(j,_,_)?y.insertInLine({row:H,column:_},E):y.insertInLine({row:H,column:_},T))},w=function(j,H){return M.test(j)},L=function(j,H,U){for(var K=0;H--&&j.charAt(H)==" ";)K++;if(K%$!=0)return!1;for(var K=0;j.charAt(U++)==" ";)K++;return $>2?K%$!=$-1:K%$==0}}else{if(!this.blockComment)return!1;var T=this.blockComment.start,x=this.blockComment.end,M=new RegExp("^(\\s*)(?:"+o.escapeRegExp(T)+")"),b=new RegExp("(?:"+o.escapeRegExp(x)+")\\s*$"),A=function(F,D){w(F,D)||(!k||/\S/.test(F))&&(y.insertInLine({row:D,column:F.length},x),y.insertInLine({row:D,column:_},T))},C=function(F,D){var W;(W=F.match(b))&&y.removeInLine(D,F.length-W[0].length,F.length),(W=F.match(M))&&y.removeInLine(D,W[1].length,W[0].length)},w=function(F,D){if(M.test(F))return!0;for(var W=f.getTokens(D),j=0;j<W.length;j++)if(W[j].type==="comment")return!0}}function O(F){for(var D=m;D<=v;D++)F(y.getLine(D),D)}var I=1/0;O(function(F,D){var W=F.search(/\S/);W!==-1?(W<_&&(_=W),S&&!w(F,D)&&(S=!1)):I>F.length&&(I=F.length)}),_==1/0&&(_=I,k=!1,S=!1),R&&_%$!=0&&(_=Math.floor(_/$)*$),O(S?C:A)},this.toggleBlockComment=function(l,f,m,v){var y=this.blockComment;if(y){!y.start&&y[0]&&(y=y[0]);var k=new r(f,v.row,v.column),S=k.getCurrentToken();f.selection;var _=f.selection.toOrientedRange(),$,R;if(S&&/comment/.test(S.type)){for(var T,x;S&&/comment/.test(S.type);){var M=S.value.indexOf(y.start);if(M!=-1){var b=k.getCurrentTokenRow(),A=k.getCurrentTokenColumn()+M;T=new a(b,A,b,A+y.start.length);break}S=k.stepBackward()}for(var k=new r(f,v.row,v.column),S=k.getCurrentToken();S&&/comment/.test(S.type);){var M=S.value.indexOf(y.end);if(M!=-1){var b=k.getCurrentTokenRow(),A=k.getCurrentTokenColumn()+M;x=new a(b,A,b,A+y.end.length);break}S=k.stepForward()}x&&f.remove(x),T&&(f.remove(T),$=T.start.row,R=-y.start.length)}else R=y.start.length,$=m.start.row,f.insert(m.end,y.end),f.insert(m.start,y.start);_.start.row==$&&(_.start.column+=R),_.end.row==$&&(_.end.column+=R),f.selection.fromOrientedRange(_)}},this.getNextLineIndent=function(l,f,m){return this.$getIndent(f)},this.checkOutdent=function(l,f,m){return!1},this.autoOutdent=function(l,f,m){},this.$getIndent=function(l){return l.match(/^\s*/)[0]},this.createWorker=function(l){return null},this.createModeDelegates=function(l){this.$embeds=[],this.$modes={};for(var f in l)if(l[f]){var m=l[f],v=m.prototype.$id,y=u.$modes[v];y||(u.$modes[v]=y=new m),u.$modes[f]||(u.$modes[f]=y),this.$embeds.push(f),this.$modes[f]=y}for(var k=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],S=function($){(function(R){var T=k[$],x=R[T];R[k[$]]=function(){return this.$delegator(T,arguments,x)}})(_)},_=this,f=0;f<k.length;f++)S(f)},this.$delegator=function(l,f,m){var v=f[0]||"start";if(typeof v!="string"){if(Array.isArray(v[2])){var y=v[2][v[2].length-1],k=this.$modes[y];if(k)return k[l].apply(k,[v[1]].concat([].slice.call(f,1)))}v=v[0]||"start"}for(var S=0;S<this.$embeds.length;S++)if(this.$modes[this.$embeds[S]]){var _=v.split(this.$embeds[S]);if(!_[0]&&_[1]){f[0]=_[1];var k=this.$modes[this.$embeds[S]];return k[l].apply(k,f)}}var $=m.apply(this,f);return m?$:void 0},this.transformAction=function(l,f,m,v,y){if(this.$behaviour){var k=this.$behaviour.getBehaviours();for(var S in k)if(k[S][f]){var _=k[S][f].apply(this,arguments);if(_)return _}}},this.getKeywords=function(l){if(!this.completionKeywords){var f=this.$tokenizer.rules,m=[];for(var v in f)for(var y=f[v],k=0,S=y.length;k<S;k++)if(typeof y[k].token=="string")/keyword|support|storage/.test(y[k].token)&&m.push(y[k].regex);else if(typeof y[k].token=="object"){for(var _=0,$=y[k].token.length;_<$;_++)if(/keyword|support|storage/.test(y[k].token[_])){var v=y[k].regex.match(/\(.+?\)/g)[_];m.push(v.substr(1,v.length-2))}}this.completionKeywords=m}return l?m.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(l,f,m,v){var y=this.$keywordList||this.$createKeywordList();return y.map(function(k){return{name:k,value:k,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call(c.prototype),i.Mode=c}),ace.define("ace/apply_delta",["require","exports","module"],function(n,i,d){i.applyDelta=function(u,h,g){var s=h.start.row,p=h.start.column,o=u[s]||"";switch(h.action){case"insert":var r=h.lines;if(r.length===1)u[s]=o.substring(0,p)+h.lines[0]+o.substring(p);else{var a=[s,1].concat(h.lines);u.splice.apply(u,a),u[s]=o.substring(0,p)+u[s],u[s+h.lines.length-1]+=o.substring(p)}break;case"remove":var c=h.end.column,l=h.end.row;s===l?u[s]=o.substring(0,p)+o.substring(c):u.splice(s,l-s+1,o.substring(0,p)+u[l].substring(c));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(n,i,d){var u=n("./lib/oop"),h=n("./lib/event_emitter").EventEmitter,g=function(){function o(r,a,c){this.$onChange=this.onChange.bind(this),this.attach(r),typeof a!="number"?this.setPosition(a.row,a.column):this.setPosition(a,c)}return o.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},o.prototype.getDocument=function(){return this.document},o.prototype.onChange=function(r){if(!(r.start.row==r.end.row&&r.start.row!=this.row)&&!(r.start.row>this.row)){var a=p(r,{row:this.row,column:this.column},this.$insertRight);this.setPosition(a.row,a.column,!0)}},o.prototype.setPosition=function(r,a,c){var l;if(c?l={row:r,column:a}:l=this.$clipPositionToDocument(r,a),!(this.row==l.row&&this.column==l.column)){var f={row:this.row,column:this.column};this.row=l.row,this.column=l.column,this._signal("change",{old:f,value:l})}},o.prototype.detach=function(){this.document.off("change",this.$onChange)},o.prototype.attach=function(r){this.document=r||this.document,this.document.on("change",this.$onChange)},o.prototype.$clipPositionToDocument=function(r,a){var c={};return r>=this.document.getLength()?(c.row=Math.max(0,this.document.getLength()-1),c.column=this.document.getLine(c.row).length):r<0?(c.row=0,c.column=0):(c.row=r,c.column=Math.min(this.document.getLine(c.row).length,Math.max(0,a))),a<0&&(c.column=0),c},o}();g.prototype.$insertRight=!1,u.implement(g.prototype,h);function s(o,r,a){var c=a?o.column<=r.column:o.column<r.column;return o.row<r.row||o.row==r.row&&c}function p(o,r,a){var c=o.action=="insert",l=(c?1:-1)*(o.end.row-o.start.row),f=(c?1:-1)*(o.end.column-o.start.column),m=o.start,v=c?m:o.end;return s(r,m,a)?{row:r.row,column:r.column}:s(v,r,!a)?{row:r.row+l,column:r.column+(r.row==v.row?f:0)}:{row:m.row,column:m.column}}i.Anchor=g}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(n,i,d){var u=n("./lib/oop"),h=n("./apply_delta").applyDelta,g=n("./lib/event_emitter").EventEmitter,s=n("./range").Range,p=n("./anchor").Anchor,o=function(){function r(a){this.$lines=[""],a.length===0?this.$lines=[""]:Array.isArray(a)?this.insertMergedLines({row:0,column:0},a):this.insert({row:0,column:0},a)}return r.prototype.setValue=function(a){var c=this.getLength()-1;this.remove(new s(0,0,c,this.getLine(c).length)),this.insert({row:0,column:0},a||"")},r.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},r.prototype.createAnchor=function(a,c){return new p(this,a,c)},r.prototype.$detectNewLine=function(a){var c=a.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=c?c[1]:`
999
- `,this._signal("changeNewLineMode")},r.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
1000
- `;case"unix":return`
1001
- `;default:return this.$autoNewLine||`
1002
- `}},r.prototype.setNewLineMode=function(a){this.$newLineMode!==a&&(this.$newLineMode=a,this._signal("changeNewLineMode"))},r.prototype.getNewLineMode=function(){return this.$newLineMode},r.prototype.isNewLine=function(a){return a==`\r
1003
- `||a=="\r"||a==`
1004
- `},r.prototype.getLine=function(a){return this.$lines[a]||""},r.prototype.getLines=function(a,c){return this.$lines.slice(a,c+1)},r.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},r.prototype.getLength=function(){return this.$lines.length},r.prototype.getTextRange=function(a){return this.getLinesForRange(a).join(this.getNewLineCharacter())},r.prototype.getLinesForRange=function(a){var c;if(a.start.row===a.end.row)c=[this.getLine(a.start.row).substring(a.start.column,a.end.column)];else{c=this.getLines(a.start.row,a.end.row),c[0]=(c[0]||"").substring(a.start.column);var l=c.length-1;a.end.row-a.start.row==l&&(c[l]=c[l].substring(0,a.end.column))}return c},r.prototype.insertLines=function(a,c){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(a,c)},r.prototype.removeLines=function(a,c){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(a,c)},r.prototype.insertNewLine=function(a){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(a,["",""])},r.prototype.insert=function(a,c){return this.getLength()<=1&&this.$detectNewLine(c),this.insertMergedLines(a,this.$split(c))},r.prototype.insertInLine=function(a,c){var l=this.clippedPos(a.row,a.column),f=this.pos(a.row,a.column+c.length);return this.applyDelta({start:l,end:f,action:"insert",lines:[c]},!0),this.clonePos(f)},r.prototype.clippedPos=function(a,c){var l=this.getLength();a===void 0?a=l:a<0?a=0:a>=l&&(a=l-1,c=void 0);var f=this.getLine(a);return c==null&&(c=f.length),c=Math.min(Math.max(c,0),f.length),{row:a,column:c}},r.prototype.clonePos=function(a){return{row:a.row,column:a.column}},r.prototype.pos=function(a,c){return{row:a,column:c}},r.prototype.$clipPosition=function(a){var c=this.getLength();return a.row>=c?(a.row=Math.max(0,c-1),a.column=this.getLine(c-1).length):(a.row=Math.max(0,a.row),a.column=Math.min(Math.max(a.column,0),this.getLine(a.row).length)),a},r.prototype.insertFullLines=function(a,c){a=Math.min(Math.max(a,0),this.getLength());var l=0;a<this.getLength()?(c=c.concat([""]),l=0):(c=[""].concat(c),a--,l=this.$lines[a].length),this.insertMergedLines({row:a,column:l},c)},r.prototype.insertMergedLines=function(a,c){var l=this.clippedPos(a.row,a.column),f={row:l.row+c.length-1,column:(c.length==1?l.column:0)+c[c.length-1].length};return this.applyDelta({start:l,end:f,action:"insert",lines:c}),this.clonePos(f)},r.prototype.remove=function(a){var c=this.clippedPos(a.start.row,a.start.column),l=this.clippedPos(a.end.row,a.end.column);return this.applyDelta({start:c,end:l,action:"remove",lines:this.getLinesForRange({start:c,end:l})}),this.clonePos(c)},r.prototype.removeInLine=function(a,c,l){var f=this.clippedPos(a,c),m=this.clippedPos(a,l);return this.applyDelta({start:f,end:m,action:"remove",lines:this.getLinesForRange({start:f,end:m})},!0),this.clonePos(f)},r.prototype.removeFullLines=function(a,c){a=Math.min(Math.max(0,a),this.getLength()-1),c=Math.min(Math.max(0,c),this.getLength()-1);var l=c==this.getLength()-1&&a>0,f=c<this.getLength()-1,m=l?a-1:a,v=l?this.getLine(m).length:0,y=f?c+1:c,k=f?0:this.getLine(y).length,S=new s(m,v,y,k),_=this.$lines.slice(a,c+1);return this.applyDelta({start:S.start,end:S.end,action:"remove",lines:this.getLinesForRange(S)}),_},r.prototype.removeNewLine=function(a){a<this.getLength()-1&&a>=0&&this.applyDelta({start:this.pos(a,this.getLine(a).length),end:this.pos(a+1,0),action:"remove",lines:["",""]})},r.prototype.replace=function(a,c){if(a instanceof s||(a=s.fromPoints(a.start,a.end)),c.length===0&&a.isEmpty())return a.start;if(c==this.getTextRange(a))return a.end;this.remove(a);var l;return c?l=this.insert(a.start,c):l=a.start,l},r.prototype.applyDeltas=function(a){for(var c=0;c<a.length;c++)this.applyDelta(a[c])},r.prototype.revertDeltas=function(a){for(var c=a.length-1;c>=0;c--)this.revertDelta(a[c])},r.prototype.applyDelta=function(a,c){var l=a.action=="insert";(l?a.lines.length<=1&&!a.lines[0]:!s.comparePoints(a.start,a.end))||(l&&a.lines.length>2e4?this.$splitAndapplyLargeDelta(a,2e4):(h(this.$lines,a,c),this._signal("change",a)))},r.prototype.$safeApplyDelta=function(a){var c=this.$lines.length;(a.action=="remove"&&a.start.row<c&&a.end.row<c||a.action=="insert"&&a.start.row<=c)&&this.applyDelta(a)},r.prototype.$splitAndapplyLargeDelta=function(a,c){for(var l=a.lines,f=l.length-c+1,m=a.start.row,v=a.start.column,y=0,k=0;y<f;y=k){k+=c-1;var S=l.slice(y,k);S.push(""),this.applyDelta({start:this.pos(m+y,v),end:this.pos(m+k,v=0),action:a.action,lines:S},!0)}a.lines=l.slice(y),a.start.row=m+y,a.start.column=v,this.applyDelta(a,!0)},r.prototype.revertDelta=function(a){this.$safeApplyDelta({start:this.clonePos(a.start),end:this.clonePos(a.end),action:a.action=="insert"?"remove":"insert",lines:a.lines.slice()})},r.prototype.indexToPosition=function(a,c){for(var l=this.$lines||this.getAllLines(),f=this.getNewLineCharacter().length,m=c||0,v=l.length;m<v;m++)if(a-=l[m].length+f,a<0)return{row:m,column:a+l[m].length+f};return{row:v-1,column:a+l[v-1].length+f}},r.prototype.positionToIndex=function(a,c){for(var l=this.$lines||this.getAllLines(),f=this.getNewLineCharacter().length,m=0,v=Math.min(a.row,l.length),y=c||0;y<v;++y)m+=l[y].length+f;return m+a.column},r.prototype.$split=function(a){return a.split(/\r\n|\r|\n/)},r}();o.prototype.$autoNewLine="",o.prototype.$newLineMode="auto",u.implement(o.prototype,g),i.Document=o}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(n,i,d){var u=n("./lib/oop"),h=n("./lib/event_emitter").EventEmitter,g=function(){function s(p,o){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=p;var r=this;this.$worker=function(){if(r.running){for(var a=new Date,c=r.currentLine,l=-1,f=r.doc,m=c;r.lines[c];)c++;var v=f.getLength(),y=0;for(r.running=!1;c<v;){r.$tokenizeRow(c),l=c;do c++;while(r.lines[c]);if(y++,y%5===0&&new Date-a>20){r.running=setTimeout(r.$worker,20);break}}r.currentLine=c,l==-1&&(l=c),m<=l&&r.fireUpdateEvent(m,l)}}}return s.prototype.setTokenizer=function(p){this.tokenizer=p,this.lines=[],this.states=[],this.start(0)},s.prototype.setDocument=function(p){this.doc=p,this.lines=[],this.states=[],this.stop()},s.prototype.fireUpdateEvent=function(p,o){var r={first:p,last:o};this._signal("update",{data:r})},s.prototype.start=function(p){this.currentLine=Math.min(p||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},s.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},s.prototype.$updateOnChange=function(p){var o=p.start.row,r=p.end.row-o;if(r===0)this.lines[o]=null;else if(p.action=="remove")this.lines.splice(o,r+1,null),this.states.splice(o,r+1,null);else{var a=Array(r+1);a.unshift(o,1),this.lines.splice.apply(this.lines,a),this.states.splice.apply(this.states,a)}this.currentLine=Math.min(o,this.currentLine,this.doc.getLength()),this.stop()},s.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},s.prototype.getTokens=function(p){return this.lines[p]||this.$tokenizeRow(p)},s.prototype.getState=function(p){return this.currentLine==p&&this.$tokenizeRow(p),this.states[p]||"start"},s.prototype.$tokenizeRow=function(p){var o=this.doc.getLine(p),r=this.states[p-1],a=this.tokenizer.getLineTokens(o,r,p);return this.states[p]+""!=a.state+""?(this.states[p]=a.state,this.lines[p+1]=null,this.currentLine>p+1&&(this.currentLine=p+1)):this.currentLine==p&&(this.currentLine=p+1),this.lines[p]=a.tokens},s.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},s}();u.implement(g.prototype,h),i.BackgroundTokenizer=g}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(n,i,d){var u=n("./lib/lang"),h=n("./range").Range,g=function(){function s(p,o,r){r===void 0&&(r="text"),this.setRegexp(p),this.clazz=o,this.type=r}return s.prototype.setRegexp=function(p){this.regExp+""!=p+""&&(this.regExp=p,this.cache=[])},s.prototype.update=function(p,o,r,a){if(this.regExp)for(var c=a.firstRow,l=a.lastRow,f={},m=c;m<=l;m++){var v=this.cache[m];v==null&&(v=u.getMatchOffsets(r.getLine(m),this.regExp),v.length>this.MAX_RANGES&&(v=v.slice(0,this.MAX_RANGES)),v=v.map(function(_){return new h(m,_.offset,m,_.offset+_.length)}),this.cache[m]=v.length?v:"");for(var y=v.length;y--;){var k=v[y].toScreenRange(r),S=k.toString();f[S]||(f[S]=!0,o.drawSingleLineMarker(p,k,this.clazz,a))}}},s}();g.prototype.MAX_RANGES=500,i.SearchHighlight=g}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(n,i,d){var u=function(){function _(){this.$keepRedoStack,this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return _.prototype.addSession=function($){this.$session=$},_.prototype.add=function($,R,T){if(!this.$fromUndo&&$!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),R===!1||!this.lastDeltas){this.lastDeltas=[];var x=this.$undoStack.length;x>this.$undoDepth-1&&this.$undoStack.splice(0,x-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),$.id=this.$rev=++this.$maxRev}($.action=="remove"||$.action=="insert")&&(this.$lastDelta=$),this.lastDeltas.push($)}},_.prototype.addSelection=function($,R){this.selections.push({value:$,rev:R||this.$rev})},_.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},_.prototype.markIgnored=function($,R){R==null&&(R=this.$rev+1);for(var T=this.$undoStack,x=T.length;x--;){var M=T[x][0];if(M.id<=$)break;M.id<R&&(M.ignore=!0)}this.lastDeltas=null},_.prototype.getSelection=function($,R){for(var T=this.selections,x=T.length;x--;){var M=T[x];if(M.rev<$)return R&&(M=T[x+1]),M}},_.prototype.getRevision=function(){return this.$rev},_.prototype.getDeltas=function($,R){R==null&&(R=this.$rev+1);for(var T=this.$undoStack,x=null,M=0,b=T.length;b--;){var A=T[b][0];if(A.id<R&&!x&&(x=b+1),A.id<=$){M=b+1;break}}return T.slice(M,x)},_.prototype.getChangedRanges=function($,R){R==null&&(R=this.$rev+1)},_.prototype.getChangedLines=function($,R){R==null&&(R=this.$rev+1)},_.prototype.undo=function($,R){this.lastDeltas=null;var T=this.$undoStack;if(h(T,T.length)){$||($=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var x=T.pop(),M=null;return x&&(M=$.undoChanges(x,R),this.$redoStack.push(x),this.$syncRev()),this.$fromUndo=!1,M}},_.prototype.redo=function($,R){if(this.lastDeltas=null,$||($=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var T=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);S(this.$redoStack,T),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(b){b[0].id=++this.$maxRev},this)}var x=this.$redoStack.pop(),M=null;return x&&(M=$.redoChanges(x,R),this.$undoStack.push(x),this.$syncRev()),this.$fromUndo=!1,M},_.prototype.$syncRev=function(){var $=this.$undoStack,R=$[$.length-1],T=R&&R[0].id||0;this.$redoStackBaseRev=T,this.$rev=T},_.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($){$==null&&($=this.$rev),this.mark=$},_.prototype.isAtBookmark=function(){return this.$rev===this.mark},_.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},_.prototype.fromJSON=function($){this.reset(),this.$undoStack=$.$undoStack,this.$redoStack=$.$redoStack},_.prototype.$prettyPrint=function($){return $?r($):r(this.$undoStack)+`
1005
- ---
1006
- `+r(this.$redoStack)},_}();u.prototype.hasUndo=u.prototype.canUndo,u.prototype.hasRedo=u.prototype.canRedo,u.prototype.isClean=u.prototype.isAtBookmark,u.prototype.markClean=u.prototype.bookmark;function h(_,$){for(var R=$;R--;){var T=_[R];if(T&&!T[0].ignore){for(;R<$-1;){var x=l(_[R],_[R+1]);_[R]=x[0],_[R+1]=x[1],R++}return!0}}}var g=n("./range").Range,s=g.comparePoints;g.comparePoints;function p(_){return{row:_.row,column:_.column}}function o(_){return{start:p(_.start),end:p(_.end),action:_.action,lines:_.lines.slice()}}function r(_){if(_=_||this,Array.isArray(_))return _.map(r).join(`
1007
- `);var $="";return _.action?($=_.action=="insert"?"+":"-",$+="["+_.lines+"]"):_.value&&(Array.isArray(_.value)?$=_.value.map(a).join(`
1008
- `):$=a(_.value)),_.start&&($+=a(_)),(_.id||_.rev)&&($+=" ("+(_.id||_.rev)+")"),$}function a(_){return _.start.row+":"+_.start.column+"=>"+_.end.row+":"+_.end.column}function c(_,$){var R=_.action=="insert",T=$.action=="insert";if(R&&T)if(s($.start,_.end)>=0)m($,_,-1);else if(s($.start,_.start)<=0)m(_,$,1);else return null;else if(R&&!T)if(s($.start,_.end)>=0)m($,_,-1);else if(s($.end,_.start)<=0)m(_,$,-1);else return null;else if(!R&&T)if(s($.start,_.start)>=0)m($,_,1);else if(s($.start,_.start)<=0)m(_,$,1);else return null;else if(!R&&!T)if(s($.start,_.start)>=0)m($,_,1);else if(s($.end,_.start)<=0)m(_,$,-1);else return null;return[$,_]}function l(_,$){for(var R=_.length;R--;)for(var T=0;T<$.length;T++)if(!c(_[R],$[T])){for(;R<_.length;){for(;T--;)c($[T],_[R]);T=$.length,R++}return[_,$]}return _.selectionBefore=$.selectionBefore=_.selectionAfter=$.selectionAfter=null,[$,_]}function f(_,$){var R=_.action=="insert",T=$.action=="insert";if(R&&T)s(_.start,$.start)<0?m($,_,1):m(_,$,1);else if(R&&!T)s(_.start,$.end)>=0?m(_,$,-1):(s(_.start,$.start)<=0||m(_,g.fromPoints($.start,_.start),-1),m($,_,1));else if(!R&&T)s($.start,_.end)>=0?m($,_,-1):(s($.start,_.start)<=0||m($,g.fromPoints(_.start,$.start),-1),m(_,$,1));else if(!R&&!T)if(s($.start,_.end)>=0)m($,_,-1);else if(s($.end,_.start)<=0)m(_,$,-1);else{var x,M;return s(_.start,$.start)<0&&(x=_,_=y(_,$.start)),s(_.end,$.end)>0&&(M=y(_,$.end)),v($.end,_.start,_.end,-1),M&&!x&&(_.lines=M.lines,_.start=M.start,_.end=M.end,M=_),[$,x,M].filter(Boolean)}return[$,_]}function m(_,$,R){v(_.start,$.start,$.end,R),v(_.end,$.start,$.end,R)}function v(_,$,R,T){_.row==(T==1?$:R).row&&(_.column+=T*(R.column-$.column)),_.row+=T*(R.row-$.row)}function y(_,$){var R=_.lines,T=_.end;_.end=p($);var x=_.end.row-_.start.row,M=R.splice(x,R.length),b=x?$.column:$.column-_.start.column;R.push(M[0].substring(0,b)),M[0]=M[0].substr(b);var A={start:p($),end:T,lines:M,action:_.action};return A}function k(_,$){$=o($);for(var R=_.length;R--;){for(var T=_[R],x=0;x<T.length;x++){var M=T[x],b=f(M,$);$=b[0],b.length!=2&&(b[2]?(T.splice(x+1,1,b[1],b[2]),x++):b[1]||(T.splice(x,1),x--))}T.length||_.splice(R,1)}return _}function S(_,$){for(var R=0;R<$.length;R++)for(var T=$[R],x=0;x<T.length;x++)k(_,T[x])}i.UndoManager=u}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(n,i,d){var u=n("../range").Range,h=function(){function g(s,p){this.foldData=s,Array.isArray(p)?this.folds=p:p=this.folds=[p];var o=p[p.length-1];this.range=new u(p[0].start.row,p[0].start.column,o.end.row,o.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(r){r.setFoldLine(this)},this)}return g.prototype.shiftRow=function(s){this.start.row+=s,this.end.row+=s,this.folds.forEach(function(p){p.start.row+=s,p.end.row+=s})},g.prototype.addFold=function(s){if(s.sameRow){if(s.start.row<this.startRow||s.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(s),this.folds.sort(function(p,o){return-p.range.compareEnd(o.start.row,o.start.column)}),this.range.compareEnd(s.start.row,s.start.column)>0?(this.end.row=s.end.row,this.end.column=s.end.column):this.range.compareStart(s.end.row,s.end.column)<0&&(this.start.row=s.start.row,this.start.column=s.start.column)}else if(s.start.row==this.end.row)this.folds.push(s),this.end.row=s.end.row,this.end.column=s.end.column;else if(s.end.row==this.start.row)this.folds.unshift(s),this.start.row=s.start.row,this.start.column=s.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");s.foldLine=this},g.prototype.containsRow=function(s){return s>=this.start.row&&s<=this.end.row},g.prototype.walk=function(s,p,o){var r=0,a=this.folds,c,l,f,m=!0;p==null&&(p=this.end.row,o=this.end.column);for(var v=0;v<a.length;v++){if(c=a[v],l=c.range.compareStart(p,o),l==-1){s(null,p,o,r,m);return}if(f=s(null,c.start.row,c.start.column,r,m),f=!f&&s(c.placeholder,c.start.row,c.start.column,r),f||l===0)return;m=!c.sameRow,r=c.end.column}s(null,p,o,r,m)},g.prototype.getNextFoldTo=function(s,p){for(var o,r,a=0;a<this.folds.length;a++){if(o=this.folds[a],r=o.range.compareEnd(s,p),r==-1)return{fold:o,kind:"after"};if(r===0)return{fold:o,kind:"inside"}}return null},g.prototype.addRemoveChars=function(s,p,o){var r=this.getNextFoldTo(s,p),a,c;if(r){if(a=r.fold,r.kind=="inside"&&a.start.column!=p&&a.start.row!=s)window.console&&window.console.log(s,p,a);else if(a.start.row==s){c=this.folds;var l=c.indexOf(a);for(l===0&&(this.start.column+=o),l;l<c.length;l++){if(a=c[l],a.start.column+=o,!a.sameRow)return;a.end.column+=o}this.end.column+=o}}},g.prototype.split=function(s,p){var o=this.getNextFoldTo(s,p);if(!o||o.kind=="inside")return null;var r=o.fold,a=this.folds,c=this.foldData,l=a.indexOf(r),f=a[l-1];this.end.row=f.end.row,this.end.column=f.end.column,a=a.splice(l,a.length-l);var m=new g(c,a);return c.splice(c.indexOf(this)+1,0,m),m},g.prototype.merge=function(s){for(var p=s.folds,o=0;o<p.length;o++)this.addFold(p[o]);var r=this.foldData;r.splice(r.indexOf(s),1)},g.prototype.toString=function(){var s=[this.range.toString()+": ["];return this.folds.forEach(function(p){s.push(" "+p.toString())}),s.push("]"),s.join(`
1009
- `)},g.prototype.idxToPosition=function(s){for(var p=0,o=0;o<this.folds.length;o++){var r=this.folds[o];if(s-=r.start.column-p,s<0)return{row:r.start.row,column:r.start.column+s};if(s-=r.placeholder.length,s<0)return r.start;p=r.end.column}return{row:this.end.row,column:this.end.column+s}},g}();i.FoldLine=h}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(n,i,d){var u=n("./range").Range,h=u.comparePoints,g=function(){function s(){this.ranges=[],this.$bias=1}return s.prototype.pointIndex=function(p,o,r){for(var a=this.ranges,c=r||0;c<a.length;c++){var l=a[c],f=h(p,l.end);if(!(f>0)){var m=h(p,l.start);return f===0?o&&m!==0?-c-2:c:m>0||m===0&&!o?c:-c-1}}return-c-1},s.prototype.add=function(p){var o=!p.isEmpty(),r=this.pointIndex(p.start,o);r<0&&(r=-r-1);var a=this.pointIndex(p.end,o,r);return a<0?a=-a-1:a++,this.ranges.splice(r,a-r,p)},s.prototype.addList=function(p){for(var o=[],r=p.length;r--;)o.push.apply(o,this.add(p[r]));return o},s.prototype.substractPoint=function(p){var o=this.pointIndex(p);if(o>=0)return this.ranges.splice(o,1)},s.prototype.merge=function(){var p=[],o=this.ranges;o=o.sort(function(f,m){return h(f.start,m.start)});for(var r=o[0],a,c=1;c<o.length;c++){a=r,r=o[c];var l=h(a.end,r.start);l<0||l==0&&!a.isEmpty()&&!r.isEmpty()||(h(a.end,r.end)<0&&(a.end.row=r.end.row,a.end.column=r.end.column),o.splice(c,1),p.push(r),r=a,c--)}return this.ranges=o,p},s.prototype.contains=function(p,o){return this.pointIndex({row:p,column:o})>=0},s.prototype.containsPoint=function(p){return this.pointIndex(p)>=0},s.prototype.rangeAtPoint=function(p){var o=this.pointIndex(p);if(o>=0)return this.ranges[o]},s.prototype.clipRows=function(p,o){var r=this.ranges;if(r[0].start.row>o||r[r.length-1].start.row<p)return[];var a=this.pointIndex({row:p,column:0});a<0&&(a=-a-1);var c=this.pointIndex({row:o,column:0},a);c<0&&(c=-c-1);for(var l=[],f=a;f<c;f++)l.push(r[f]);return l},s.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},s.prototype.attach=function(p){this.session&&this.detach(),this.session=p,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},s.prototype.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},s.prototype.$onChange=function(p){for(var o=p.start,r=p.end,a=o.row,c=r.row,l=this.ranges,f=0,m=l.length;f<m;f++){var v=l[f];if(v.end.row>=a)break}if(p.action=="insert")for(var y=c-a,k=-o.column+r.column;f<m;f++){var v=l[f];if(v.start.row>a)break;if(v.start.row==a&&v.start.column>=o.column&&(v.start.column==o.column&&this.$bias<=0||(v.start.column+=k,v.start.row+=y)),v.end.row==a&&v.end.column>=o.column){if(v.end.column==o.column&&this.$bias<0)continue;v.end.column==o.column&&k>0&&f<m-1&&v.end.column>v.start.column&&v.end.column==l[f+1].start.column&&(v.end.column-=k),v.end.column+=k,v.end.row+=y}}else for(var y=a-c,k=o.column-r.column;f<m;f++){var v=l[f];if(v.start.row>c)break;v.end.row<c&&(a<v.end.row||a==v.end.row&&o.column<v.end.column)?(v.end.row=a,v.end.column=o.column):v.end.row==c?v.end.column<=r.column?(y||v.end.column>o.column)&&(v.end.column=o.column,v.end.row=o.row):(v.end.column+=k,v.end.row+=y):v.end.row>c&&(v.end.row+=y),v.start.row<c&&(a<v.start.row||a==v.start.row&&o.column<v.start.column)?(v.start.row=a,v.start.column=o.column):v.start.row==c?v.start.column<=r.column?(y||v.start.column>o.column)&&(v.start.column=o.column,v.start.row=o.row):(v.start.column+=k,v.start.row+=y):v.start.row>c&&(v.start.row+=y)}if(y!=0&&f<m)for(;f<m;f++){var v=l[f];v.start.row+=y,v.end.row+=y}},s}();g.prototype.comparePoints=h,i.RangeList=g}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(n,i,d){var u=this&&this.__extends||function(){var a=function(c,l){return a=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])},a(c,l)};return function(c,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");a(c,l);function f(){this.constructor=c}c.prototype=l===null?Object.create(l):(f.prototype=l.prototype,new f)}}(),h=n("../range_list").RangeList,g=function(a){u(c,a);function c(l,f){var m=a.call(this)||this;return m.foldLine=null,m.placeholder=f,m.range=l,m.start=l.start,m.end=l.end,m.sameRow=l.start.row==l.end.row,m.subFolds=m.ranges=[],m}return c.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},c.prototype.setFoldLine=function(l){this.foldLine=l,this.subFolds.forEach(function(f){f.setFoldLine(l)})},c.prototype.clone=function(){var l=this.range.clone(),f=new c(l,this.placeholder);return this.subFolds.forEach(function(m){f.subFolds.push(m.clone())}),f.collapseChildren=this.collapseChildren,f},c.prototype.addSubFold=function(l){if(!this.range.isEqual(l)){p(l,this.start);for(var k=l.start.row,S=l.start.column,f=0,m=-1;f<this.subFolds.length&&(m=this.subFolds[f].range.compare(k,S),m==1);f++);var v=this.subFolds[f],y=0;if(m==0){if(v.range.containsRange(l))return v.addSubFold(l);y=1}for(var k=l.range.end.row,S=l.range.end.column,_=f,m=-1;_<this.subFolds.length&&(m=this.subFolds[_].range.compare(k,S),m==1);_++);m==0&&_++;for(var $=this.subFolds.splice(f,_-f,l),R=m==0?$.length-1:$.length,T=y;T<R;T++)l.addSubFold($[T]);return l.setFoldLine(this.foldLine),l}},c.prototype.restoreRange=function(l){return r(l,this.start)},c}(h);function s(a,c){a.row-=c.row,a.row==0&&(a.column-=c.column)}function p(a,c){s(a.start,c),s(a.end,c)}function o(a,c){a.row==0&&(a.column+=c.column),a.row+=c.row}function r(a,c){o(a.start,c),o(a.end,c)}i.Fold=g}),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator","ace/mouse/mouse_event"],function(n,i,d){var u=n("../range").Range,h=n("./fold_line").FoldLine,g=n("./fold").Fold,s=n("../token_iterator").TokenIterator,p=n("../mouse/mouse_event").MouseEvent;function o(){this.getFoldAt=function(r,a,c){var l=this.getFoldLine(r);if(!l)return null;for(var f=l.folds,m=0;m<f.length;m++){var v=f[m].range;if(v.contains(r,a)){if(c==1&&v.isEnd(r,a)&&!v.isEmpty())continue;if(c==-1&&v.isStart(r,a)&&!v.isEmpty())continue;return f[m]}}},this.getFoldsInRange=function(r){var a=r.start,c=r.end,l=this.$foldData,f=[];a.column+=1,c.column-=1;for(var m=0;m<l.length;m++){var v=l[m].range.compareRange(r);if(v!=2){if(v==-2)break;for(var y=l[m].folds,k=0;k<y.length;k++){var S=y[k];if(v=S.range.compareRange(r),v==-2)break;if(v==2)continue;if(v==42)break;f.push(S)}}}return a.column-=1,c.column+=1,f},this.getFoldsInRangeList=function(r){if(Array.isArray(r)){var a=[];r.forEach(function(c){a=a.concat(this.getFoldsInRange(c))},this)}else var a=this.getFoldsInRange(r);return a},this.getAllFolds=function(){for(var r=[],a=this.$foldData,c=0;c<a.length;c++)for(var l=0;l<a[c].folds.length;l++)r.push(a[c].folds[l]);return r},this.getFoldStringAt=function(r,a,c,l){if(l=l||this.getFoldLine(r),!l)return null;for(var f={end:{column:0}},m,v,y=0;y<l.folds.length;y++){v=l.folds[y];var k=v.range.compareEnd(r,a);if(k==-1){m=this.getLine(v.start.row).substring(f.end.column,v.start.column);break}else if(k===0)return null;f=v}return m||(m=this.getLine(v.start.row).substring(f.end.column)),c==-1?m.substring(0,a-f.end.column):c==1?m.substring(a-f.end.column):m},this.getFoldLine=function(r,a){var c=this.$foldData,l=0;for(a&&(l=c.indexOf(a)),l==-1&&(l=0),l;l<c.length;l++){var f=c[l];if(f.start.row<=r&&f.end.row>=r)return f;if(f.end.row>r)return null}return null},this.getNextFoldLine=function(r,a){var c=this.$foldData,l=0;for(a&&(l=c.indexOf(a)),l==-1&&(l=0),l;l<c.length;l++){var f=c[l];if(f.end.row>=r)return f}return null},this.getFoldedRowCount=function(r,a){for(var c=this.$foldData,l=a-r+1,f=0;f<c.length;f++){var m=c[f],v=m.end.row,y=m.start.row;if(v>=a){y<a&&(y>=r?l-=a-y:l=0);break}else v>=r&&(y>=r?l-=v-y:l-=v-r+1)}return l},this.$addFoldLine=function(r){return this.$foldData.push(r),this.$foldData.sort(function(a,c){return a.start.row-c.start.row}),r},this.addFold=function(r,a){var c=this.$foldData,l=!1,f;r instanceof g?f=r:(f=new g(a,r),f.collapseChildren=a.collapseChildren),this.$clipRangeToDocument(f.range);var m=f.start.row,v=f.start.column,y=f.end.row,k=f.end.column,S=this.getFoldAt(m,v,1),_=this.getFoldAt(y,k,-1);if(S&&_==S)return S.addSubFold(f);S&&!S.range.isStart(m,v)&&this.removeFold(S),_&&!_.range.isEnd(y,k)&&this.removeFold(_);var $=this.getFoldsInRange(f.range);$.length>0&&(this.removeFolds($),f.collapseChildren||$.forEach(function(M){f.addSubFold(M)}));for(var R=0;R<c.length;R++){var T=c[R];if(y==T.start.row){T.addFold(f),l=!0;break}else if(m==T.end.row){if(T.addFold(f),l=!0,!f.sameRow){var x=c[R+1];if(x&&x.start.row==y){T.merge(x);break}}break}else if(y<=T.start.row)break}return l||(T=this.$addFoldLine(new h(this.$foldData,f))),this.$useWrapMode?this.$updateWrapData(T.start.row,T.start.row):this.$updateRowLengthCache(T.start.row,T.start.row),this.$modified=!0,this._signal("changeFold",{data:f,action:"add"}),f},this.addFolds=function(r){r.forEach(function(a){this.addFold(a)},this)},this.removeFold=function(r){var a=r.foldLine,c=a.start.row,l=a.end.row,f=this.$foldData,m=a.folds;if(m.length==1)f.splice(f.indexOf(a),1);else if(a.range.isEnd(r.end.row,r.end.column))m.pop(),a.end.row=m[m.length-1].end.row,a.end.column=m[m.length-1].end.column;else if(a.range.isStart(r.start.row,r.start.column))m.shift(),a.start.row=m[0].start.row,a.start.column=m[0].start.column;else if(r.sameRow)m.splice(m.indexOf(r),1);else{var v=a.split(r.start.row,r.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(c,l):this.$updateRowLengthCache(c,l)),this.$modified=!0,this._signal("changeFold",{data:r,action:"remove"})},this.removeFolds=function(r){for(var a=[],c=0;c<r.length;c++)a.push(r[c]);a.forEach(function(l){this.removeFold(l)},this),this.$modified=!0},this.expandFold=function(r){this.removeFold(r),r.subFolds.forEach(function(a){r.restoreRange(a),this.addFold(a)},this),r.collapseChildren>0&&this.foldAll(r.start.row+1,r.end.row,r.collapseChildren-1),r.subFolds=[]},this.expandFolds=function(r){r.forEach(function(a){this.expandFold(a)},this)},this.unfold=function(r,a){var c,l;if(r==null)c=new u(0,0,this.getLength(),0),a==null&&(a=!0);else if(typeof r=="number")c=new u(r,0,r,this.getLine(r).length);else if("row"in r)c=u.fromPoints(r,r);else{if(Array.isArray(r))return l=[],r.forEach(function(m){l=l.concat(this.unfold(m))},this),l;c=r}l=this.getFoldsInRangeList(c);for(var f=l;l.length==1&&u.comparePoints(l[0].start,c.start)<0&&u.comparePoints(l[0].end,c.end)>0;)this.expandFolds(l),l=this.getFoldsInRangeList(c);if(a!=!1?this.removeFolds(l):this.expandFolds(l),f.length)return f},this.isRowFolded=function(r,a){return!!this.getFoldLine(r,a)},this.getRowFoldEnd=function(r,a){var c=this.getFoldLine(r,a);return c?c.end.row:r},this.getRowFoldStart=function(r,a){var c=this.getFoldLine(r,a);return c?c.start.row:r},this.getFoldDisplayLine=function(r,a,c,l,f){l==null&&(l=r.start.row),f==null&&(f=0),a==null&&(a=r.end.row),c==null&&(c=this.getLine(a).length);var m=this.doc,v="";return r.walk(function(y,k,S,_){if(!(k<l)){if(k==l){if(S<f)return;_=Math.max(f,_)}y!=null?v+=y:v+=m.getLine(k).substring(_,S)}},a,c),v},this.getDisplayLine=function(r,a,c,l){var f=this.getFoldLine(r);if(f)return this.getFoldDisplayLine(f,r,a,c,l);var m;return m=this.doc.getLine(r),m.substring(l||0,a||m.length)},this.$cloneFoldData=function(){var r=[];return r=this.$foldData.map(function(a){var c=a.folds.map(function(l){return l.clone()});return new h(r,c)}),r},this.toggleFold=function(r){var a=this.selection,c=a.getRange(),l,f;if(c.isEmpty()){var m=c.start;if(l=this.getFoldAt(m.row,m.column),l){this.expandFold(l);return}else(f=this.findMatchingBracket(m))?c.comparePoint(f)==1?c.end=f:(c.start=f,c.start.column++,c.end.column--):(f=this.findMatchingBracket({row:m.row,column:m.column+1}))?(c.comparePoint(f)==1?c.end=f:c.start=f,c.start.column++):c=this.getCommentFoldRange(m.row,m.column)||c}else{var v=this.getFoldsInRange(c);if(r&&v.length){this.expandFolds(v);return}else v.length==1&&(l=v[0])}if(l||(l=this.getFoldAt(c.start.row,c.start.column)),l&&l.range.toString()==c.toString()){this.expandFold(l);return}var y="...";if(!c.isMultiLine()){if(y=this.getTextRange(c),y.length<4)return;y=y.trim().substring(0,2)+".."}this.addFold(y,c)},this.getCommentFoldRange=function(r,a,c){var l=new s(this,r,a),f=l.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 u;if(c!=1){do f=l.stepBackward();while(f&&v.test(f.type)&&!/^comment.end/.test(f.type));f=l.stepForward()}if(y.start.row=l.getCurrentTokenRow(),y.start.column=l.getCurrentTokenColumn()+(/^comment.start/.test(f.type)?f.value.length:2),l=new s(this,r,a),c!=-1){var k=-1;do if(f=l.stepForward(),k==-1){var S=this.getState(l.$row);v.test(S)||(k=l.$row)}else if(l.$row>k)break;while(f&&v.test(f.type)&&!/^comment.start/.test(f.type));f=l.stepBackward()}else f=l.getCurrentToken();return y.end.row=l.getCurrentTokenRow(),y.end.column=l.getCurrentTokenColumn(),/^comment.end/.test(f.type)||(y.end.column+=f.value.length-2),y}},this.foldAll=function(r,a,c,l){c==null&&(c=1e5);var f=this.foldWidgets;if(f){a=a||this.getLength(),r=r||0;for(var m=r;m<a;m++)if(f[m]==null&&(f[m]=this.getFoldWidget(m)),f[m]=="start"&&!(l&&!l(m))){var v=this.getFoldWidgetRange(m);v&&v.isMultiLine()&&v.end.row<=a&&v.start.row>=r&&(m=v.end.row,v.collapseChildren=c,this.addFold("...",v))}}},this.foldToLevel=function(r){for(this.foldAll();r-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var r=this;this.foldAll(null,null,null,function(a){for(var c=r.getTokens(a),l=0;l<c.length;l++){var f=c[l];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(r){if(!this.$foldStyles[r])throw new Error("invalid fold style: "+r+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=r){this.$foldStyle=r,r=="manual"&&this.unfold();var a=this.$foldMode;this.$setFolding(null),this.$setFolding(a)}},this.$setFolding=function(r){if(this.$foldMode!=r){if(this.$foldMode=r,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),!r||this.$foldStyle=="manual"){this.foldWidgets=null;return}this.foldWidgets=[],this.getFoldWidget=r.getFoldWidget.bind(r,this,this.$foldStyle),this.getFoldWidgetRange=r.getFoldWidgetRange.bind(r,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(r,a){var c=this.foldWidgets;if(!c||a&&c[r])return{};for(var l=r-1,f;l>=0;){var m=c[l];if(m==null&&(m=c[l]=this.getFoldWidget(l)),m=="start"){var v=this.getFoldWidgetRange(l);if(f||(f=v),v&&v.end.row>=r)break}l--}return{range:l!==-1&&v,firstRange:f}},this.onFoldWidgetClick=function(r,a){a instanceof p&&(a=a.domEvent);var c={children:a.shiftKey,all:a.ctrlKey||a.metaKey,siblings:a.altKey},l=this.$toggleFoldWidget(r,c);if(!l){var f=a.target||a.srcElement;f&&/ace_fold-widget/.test(f.className)&&(f.className+=" ace_invalid")}},this.$toggleFoldWidget=function(r,a){if(this.getFoldWidget){var c=this.getFoldWidget(r),l=this.getLine(r),f=c==="end"?-1:1,m=this.getFoldAt(r,f===-1?0:l.length,f);if(m)return a.children||a.all?this.removeFold(m):this.expandFold(m),m;var v=this.getFoldWidgetRange(r,!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(a.siblings){var y=this.getParentFoldRangeData(r);if(y.range)var k=y.range.start.row+1,S=y.range.end.row;this.foldAll(k,S,a.all?1e4:0)}else a.children?(S=v?v.end.row:this.getLength(),this.foldAll(r+1,S,a.all?1e4:0)):v&&(a.all&&(v.collapseChildren=1e4),this.addFold("...",v));return v}},this.toggleFoldWidget=function(r){var a=this.selection.getCursor().row;a=this.getRowFoldStart(a);var c=this.$toggleFoldWidget(a,{});if(!c){var l=this.getParentFoldRangeData(a,!0);if(c=l.range||l.firstRange,c){a=c.start.row;var f=this.getFoldAt(a,this.getLine(a).length,1);f?this.removeFold(f):this.addFold("...",c)}}},this.updateFoldWidgets=function(r){var a=r.start.row,c=r.end.row-a;if(c===0)this.foldWidgets[a]=null;else if(r.action=="remove")this.foldWidgets.splice(a,c+1,null);else{var l=Array(c+1);l.unshift(a,1),this.foldWidgets.splice.apply(this.foldWidgets,l)}},this.tokenizerUpdateFoldWidgets=function(r){var a=r.data;a.first!=a.last&&this.foldWidgets.length>a.first&&this.foldWidgets.splice(a.first,this.foldWidgets.length)}}i.Folding=o}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(n,i,d){var u=n("../token_iterator").TokenIterator,h=n("../range").Range;function g(){this.findMatchingBracket=function(s,p){if(s.column==0)return null;var o=p||this.getLine(s.row).charAt(s.column-1);if(o=="")return null;var r=o.match(/([\(\[\{])|([\)\]\}])/);return r?r[1]?this.$findClosingBracket(r[1],s):this.$findOpeningBracket(r[2],s):null},this.getBracketRange=function(s){var p=this.getLine(s.row),o=!0,r,a=p.charAt(s.column-1),c=a&&a.match(/([\(\[\{])|([\)\]\}])/);if(c||(a=p.charAt(s.column),s={row:s.row,column:s.column+1},c=a&&a.match(/([\(\[\{])|([\)\]\}])/),o=!1),!c)return null;if(c[1]){var l=this.$findClosingBracket(c[1],s);if(!l)return null;r=h.fromPoints(s,l),o||(r.end.column++,r.start.column--),r.cursor=r.end}else{var l=this.$findOpeningBracket(c[2],s);if(!l)return null;r=h.fromPoints(l,s),o||(r.start.column++,r.end.column--),r.cursor=r.start}return r},this.getMatchingBracketRanges=function(s,p){var o=this.getLine(s.row),r=/([\(\[\{])|([\)\]\}])/,a=!p&&o.charAt(s.column-1),c=a&&a.match(r);if(c||(a=(p===void 0||p)&&o.charAt(s.column),s={row:s.row,column:s.column+1},c=a&&a.match(r)),!c)return null;var l=new h(s.row,s.column-1,s.row,s.column),f=c[1]?this.$findClosingBracket(c[1],s):this.$findOpeningBracket(c[2],s);if(!f)return[l];var m=new h(f.row,f.column,f.row,f.column+1);return[l,m]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(s,p,o){var r=this.$brackets[s],a=1,c=new u(this,p.row,p.column),l=c.getCurrentToken();if(l||(l=c.stepForward()),!!l){o||(o=new RegExp("(\\.?"+l.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var f=p.column-c.getCurrentTokenColumn()-2,m=l.value;;){for(;f>=0;){var v=m.charAt(f);if(v==r){if(a-=1,a==0)return{row:c.getCurrentTokenRow(),column:f+c.getCurrentTokenColumn()}}else v==s&&(a+=1);f-=1}do l=c.stepBackward();while(l&&!o.test(l.type));if(l==null)break;m=l.value,f=m.length-1}return null}},this.$findClosingBracket=function(s,p,o){var r=this.$brackets[s],a=1,c=new u(this,p.row,p.column),l=c.getCurrentToken();if(l||(l=c.stepForward()),!!l){o||(o=new RegExp("(\\.?"+l.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var f=p.column-c.getCurrentTokenColumn();;){for(var m=l.value,v=m.length;f<v;){var y=m.charAt(f);if(y==r){if(a-=1,a==0)return{row:c.getCurrentTokenRow(),column:f+c.getCurrentTokenColumn()}}else y==s&&(a+=1);f+=1}do l=c.stepForward();while(l&&!o.test(l.type));if(l==null)break;f=0}return null}},this.getMatchingTags=function(s){var p=new u(this,s.row,s.column),o=this.$findTagName(p);if(o){var r=p.stepBackward();return r.value==="<"?this.$findClosingTag(p,o):this.$findOpeningTag(p,o)}},this.$findTagName=function(s){var p=s.getCurrentToken(),o=!1,r=!1;if(p&&p.type.indexOf("tag-name")===-1)do r?p=s.stepBackward():p=s.stepForward(),p&&(p.value==="/>"?r=!0:p.type.indexOf("tag-name")!==-1&&(o=!0));while(p&&!o);return p},this.$findClosingTag=function(s,p){var o,r=p.value,a=p.value,c=0,l=new h(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);p=s.stepForward();var f=new h(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+p.value.length),m=!1;do if(o=p,p=s.stepForward(),p){if(p.value===">"&&!m){var v=new h(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);m=!0}if(p.type.indexOf("tag-name")!==-1){if(r=p.value,a===r){if(o.value==="<")c++;else if(o.value==="</"&&(c--,c<0)){s.stepBackward();var y=new h(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+2);p=s.stepForward();var k=new h(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+p.value.length);if(p=s.stepForward(),p&&p.value===">")var S=new h(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);else return}}}else if(a===r&&p.value==="/>"&&(c--,c<0))var y=new h(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+2),k=y,S=k,v=new h(f.end.row,f.end.column,f.end.row,f.end.column+1)}while(p&&c>=0);if(l&&v&&y&&S&&f&&k)return{openTag:new h(l.start.row,l.start.column,v.end.row,v.end.column),closeTag:new h(y.start.row,y.start.column,S.end.row,S.end.column),openTagName:f,closeTagName:k}},this.$findOpeningTag=function(s,p){var o=s.getCurrentToken(),r=p.value,a=0,c=s.getCurrentTokenRow(),l=s.getCurrentTokenColumn(),f=l+2,m=new h(c,l,c,f);s.stepForward();var v=new h(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+p.value.length);if(p=s.stepForward(),!(!p||p.value!==">")){var y=new h(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);s.stepBackward(),s.stepBackward();do if(p=o,c=s.getCurrentTokenRow(),l=s.getCurrentTokenColumn(),f=l+p.value.length,o=s.stepBackward(),p){if(p.type.indexOf("tag-name")!==-1){if(r===p.value)if(o.value==="<"){if(a++,a>0){var k=new h(c,l,c,f),S=new h(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);do p=s.stepForward();while(p&&p.value!==">");var _=new h(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1)}}else o.value==="</"&&a--}else if(p.value==="/>"){for(var $=0,R=o;R;){if(R.type.indexOf("tag-name")!==-1&&R.value===r){a--;break}else if(R.value==="<")break;R=s.stepBackward(),$++}for(var T=0;T<$;T++)s.stepForward()}}while(o&&a<=0);if(S&&_&&m&&y&&k&&v)return{openTag:new h(S.start.row,S.start.column,_.end.row,_.end.column),closeTag:new h(m.start.row,m.start.column,y.end.row,y.end.column),openTagName:k,closeTagName:v}}}}i.BracketMatch=g}),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/bidihandler","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/document","ace/background_tokenizer","ace/search_highlight","ace/undomanager","ace/edit_session/folding","ace/edit_session/bracket_match"],function(n,i,d){var u=n("./lib/oop"),h=n("./lib/lang"),g=n("./bidihandler").BidiHandler,s=n("./config"),p=n("./lib/event_emitter").EventEmitter,o=n("./selection").Selection,r=n("./mode/text").Mode,a=n("./range").Range,c=n("./document").Document,l=n("./background_tokenizer").BackgroundTokenizer,f=n("./search_highlight").SearchHighlight,m=n("./undomanager").UndoManager,v=function(){function b(A,C){this.doc,this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$foldData=[],this.id="session"+ ++b.$uid,this.$foldData.toString=function(){return this.join(`
1010
- `)},this.bgTokenizer=new l(new r().getTokenizer(),this);var w=this;this.bgTokenizer.on("update",function(E){w._signal("tokenizerUpdate",E)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof A!="object"||!A.getLine)&&(A=new c(A)),this.setDocument(A),this.selection=new o(this),this.$bidiHandler=new g(this),s.resetOptions(this),this.setMode(C),s._signal("session",this),this.destroyed=!1}return b.prototype.setDocument=function(A){this.doc&&this.doc.off("change",this.$onChange),this.doc=A,A.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},b.prototype.getDocument=function(){return this.doc},b.prototype.$resetRowCache=function(A){if(!A){this.$docRowCache=[],this.$screenRowCache=[];return}var C=this.$docRowCache.length,w=this.$getRowCacheIndex(this.$docRowCache,A)+1;C>w&&(this.$docRowCache.splice(w,C),this.$screenRowCache.splice(w,C))},b.prototype.$getRowCacheIndex=function(A,C){for(var w=0,E=A.length-1;w<=E;){var L=w+E>>1,O=A[L];if(C>O)w=L+1;else if(C<O)E=L-1;else return L}return w-1},b.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},b.prototype.onChangeFold=function(A){var C=A.data;this.$resetRowCache(C.start.row)},b.prototype.onChange=function(A){this.$modified=!0,this.$bidiHandler.onChange(A),this.$resetRowCache(A.start.row);var C=this.$updateInternalDataOnChange(A);!this.$fromUndo&&this.$undoManager&&(C&&C.length&&(this.$undoManager.add({action:"removeFolds",folds:C},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(A,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(A),this._signal("change",A)},b.prototype.setValue=function(A){this.doc.setValue(A),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},b.fromJSON=function(A){typeof A=="string"&&(A=JSON.parse(A));var C=new m;C.$undoStack=A.history.undo,C.$redoStack=A.history.redo,C.mark=A.history.mark,C.$rev=A.history.rev;var w=new b(A.value);return A.folds.forEach(function(E){w.addFold("...",a.fromPoints(E.start,E.end))}),w.setAnnotations(A.annotations),w.setBreakpoints(A.breakpoints),w.setMode(A.mode),w.setScrollLeft(A.scrollLeft),w.setScrollTop(A.scrollTop),w.setUndoManager(C),w.selection.fromJSON(A.selection),w},b.prototype.toJSON=function(){return{annotations:this.$annotations,breakpoints:this.$breakpoints,folds:this.getAllFolds().map(function(A){return A.range}),history:this.getUndoManager(),mode:this.$mode.$id,scrollLeft:this.$scrollLeft,scrollTop:this.$scrollTop,selection:this.selection.toJSON(),value:this.doc.getValue()}},b.prototype.toString=function(){return this.doc.getValue()},b.prototype.getSelection=function(){return this.selection},b.prototype.getState=function(A){return this.bgTokenizer.getState(A)},b.prototype.getTokens=function(A){return this.bgTokenizer.getTokens(A)},b.prototype.getTokenAt=function(A,C){var w=this.bgTokenizer.getTokens(A),E,L=0;if(C==null){var O=w.length-1;L=this.getLine(A).length}else for(var O=0;O<w.length&&(L+=w[O].value.length,!(L>=C));O++);return E=w[O],E?(E.index=O,E.start=L-E.value.length,E):null},b.prototype.setUndoManager=function(A){if(this.$undoManager=A,this.$informUndoManager&&this.$informUndoManager.cancel(),A){var C=this;A.addSession(this),this.$syncInformUndoManager=function(){C.$informUndoManager.cancel(),C.mergeUndoDeltas=!1},this.$informUndoManager=h.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},b.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},b.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},b.prototype.getTabString=function(){return this.getUseSoftTabs()?h.stringRepeat(" ",this.getTabSize()):" "},b.prototype.setUseSoftTabs=function(A){this.setOption("useSoftTabs",A)},b.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},b.prototype.setTabSize=function(A){this.setOption("tabSize",A)},b.prototype.getTabSize=function(){return this.$tabSize},b.prototype.isTabStop=function(A){return this.$useSoftTabs&&A.column%this.$tabSize===0},b.prototype.setNavigateWithinSoftTabs=function(A){this.setOption("navigateWithinSoftTabs",A)},b.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},b.prototype.setOverwrite=function(A){this.setOption("overwrite",A)},b.prototype.getOverwrite=function(){return this.$overwrite},b.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},b.prototype.addGutterDecoration=function(A,C){this.$decorations[A]||(this.$decorations[A]=""),this.$decorations[A]+=" "+C,this._signal("changeBreakpoint",{})},b.prototype.removeGutterDecoration=function(A,C){this.$decorations[A]=(this.$decorations[A]||"").replace(" "+C,""),this._signal("changeBreakpoint",{})},b.prototype.getBreakpoints=function(){return this.$breakpoints},b.prototype.setBreakpoints=function(A){this.$breakpoints=[];for(var C=0;C<A.length;C++)this.$breakpoints[A[C]]="ace_breakpoint";this._signal("changeBreakpoint",{})},b.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},b.prototype.setBreakpoint=function(A,C){C===void 0&&(C="ace_breakpoint"),C?this.$breakpoints[A]=C:delete this.$breakpoints[A],this._signal("changeBreakpoint",{})},b.prototype.clearBreakpoint=function(A){delete this.$breakpoints[A],this._signal("changeBreakpoint",{})},b.prototype.addMarker=function(A,C,w,E){var L=this.$markerId++,O={range:A,type:w||"line",renderer:typeof w=="function"?w:null,clazz:C,inFront:!!E,id:L};return E?(this.$frontMarkers[L]=O,this._signal("changeFrontMarker")):(this.$backMarkers[L]=O,this._signal("changeBackMarker")),L},b.prototype.addDynamicMarker=function(A,C){if(A.update){var w=this.$markerId++;return A.id=w,A.inFront=!!C,C?(this.$frontMarkers[w]=A,this._signal("changeFrontMarker")):(this.$backMarkers[w]=A,this._signal("changeBackMarker")),A}},b.prototype.removeMarker=function(A){var C=this.$frontMarkers[A]||this.$backMarkers[A];if(C){var w=C.inFront?this.$frontMarkers:this.$backMarkers;delete w[A],this._signal(C.inFront?"changeFrontMarker":"changeBackMarker")}},b.prototype.getMarkers=function(A){return A?this.$frontMarkers:this.$backMarkers},b.prototype.highlight=function(A){if(!this.$searchHighlight){var C=new f(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(C)}this.$searchHighlight.setRegexp(A)},b.prototype.highlightLines=function(A,C,w,E){typeof C!="number"&&(w=C,C=A),w||(w="ace_step");var L=new a(A,0,C,1/0);return L.id=this.addMarker(L,w,"fullLine",E),L},b.prototype.setAnnotations=function(A){this.$annotations=A,this._signal("changeAnnotation",{})},b.prototype.getAnnotations=function(){return this.$annotations||[]},b.prototype.clearAnnotations=function(){this.setAnnotations([])},b.prototype.$detectNewLine=function(A){var C=A.match(/^.*?(\r?\n)/m);C?this.$autoNewLine=C[1]:this.$autoNewLine=`
1011
- `},b.prototype.getWordRange=function(A,C){var w=this.getLine(A),E=!1;if(C>0&&(E=!!w.charAt(C-1).match(this.tokenRe)),E||(E=!!w.charAt(C).match(this.tokenRe)),E)var L=this.tokenRe;else if(/^\s+$/.test(w.slice(C-1,C+1)))var L=/\s/;else var L=this.nonTokenRe;var O=C;if(O>0){do O--;while(O>=0&&w.charAt(O).match(L));O++}for(var I=C;I<w.length&&w.charAt(I).match(L);)I++;return new a(A,O,A,I)},b.prototype.getAWordRange=function(A,C){for(var w=this.getWordRange(A,C),E=this.getLine(w.end.row);E.charAt(w.end.column).match(/[ \t]/);)w.end.column+=1;return w},b.prototype.setNewLineMode=function(A){this.doc.setNewLineMode(A)},b.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},b.prototype.setUseWorker=function(A){this.setOption("useWorker",A)},b.prototype.getUseWorker=function(){return this.$useWorker},b.prototype.onReloadTokenizer=function(A){var C=A.data;this.bgTokenizer.start(C.first),this._signal("tokenizerUpdate",A)},b.prototype.setMode=function(A,C){if(A&&typeof A=="object"){if(A.getTokenizer)return this.$onChangeMode(A);var w=A,E=w.path}else E=A||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new r),this.$modes[E]&&!w){this.$onChangeMode(this.$modes[E]),C&&C();return}this.$modeId=E,s.loadModule(["mode",E],(function(L){if(this.$modeId!==E)return C&&C();this.$modes[E]&&!w?this.$onChangeMode(this.$modes[E]):L&&L.Mode&&(L=new L.Mode(w),w||(this.$modes[E]=L,L.$id=E),this.$onChangeMode(L)),C&&C()}).bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},b.prototype.$onChangeMode=function(A,C){if(C||(this.$modeId=A.$id),this.$mode!==A){var w=this.$mode;this.$mode=A,this.$stopWorker(),this.$useWorker&&this.$startWorker();var E=A.getTokenizer();if(E.on!==void 0){var L=this.onReloadTokenizer.bind(this);E.on("update",L)}this.bgTokenizer.setTokenizer(E),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=A.tokenRe,this.nonTokenRe=A.nonTokenRe,C||(A.attachToSession&&A.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(A.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:w,mode:A}))}},b.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},b.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(A){s.warn("Could not load worker",A),this.$worker=null}},b.prototype.getMode=function(){return this.$mode},b.prototype.setScrollTop=function(A){this.$scrollTop===A||isNaN(A)||(this.$scrollTop=A,this._signal("changeScrollTop",A))},b.prototype.getScrollTop=function(){return this.$scrollTop},b.prototype.setScrollLeft=function(A){this.$scrollLeft===A||isNaN(A)||(this.$scrollLeft=A,this._signal("changeScrollLeft",A))},b.prototype.getScrollLeft=function(){return this.$scrollLeft},b.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},b.prototype.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var A=0;return this.lineWidgets.forEach(function(C){C&&C.screenWidth>A&&(A=C.screenWidth)}),this.lineWidgetWidth=A},b.prototype.$computeWidth=function(A){if(this.$modified||A){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var C=this.doc.getAllLines(),w=this.$rowLengthCache,E=0,L=0,O=this.$foldData[L],I=O?O.start.row:1/0,F=C.length,D=0;D<F;D++){if(D>I){if(D=O.end.row+1,D>=F)break;O=this.$foldData[L++],I=O?O.start.row:1/0}w[D]==null&&(w[D]=this.$getStringScreenWidth(C[D])[0]),w[D]>E&&(E=w[D])}this.screenWidth=E}},b.prototype.getLine=function(A){return this.doc.getLine(A)},b.prototype.getLines=function(A,C){return this.doc.getLines(A,C)},b.prototype.getLength=function(){return this.doc.getLength()},b.prototype.getTextRange=function(A){return this.doc.getTextRange(A||this.selection.getRange())},b.prototype.insert=function(A,C){return this.doc.insert(A,C)},b.prototype.remove=function(A){return this.doc.remove(A)},b.prototype.removeFullLines=function(A,C){return this.doc.removeFullLines(A,C)},b.prototype.undoChanges=function(A,C){if(A.length){this.$fromUndo=!0;for(var w=A.length-1;w!=-1;w--){var E=A[w];E.action=="insert"||E.action=="remove"?this.doc.revertDelta(E):E.folds&&this.addFolds(E.folds)}!C&&this.$undoSelect&&(A.selectionBefore?this.selection.fromJSON(A.selectionBefore):this.selection.setRange(this.$getUndoSelection(A,!0))),this.$fromUndo=!1}},b.prototype.redoChanges=function(A,C){if(A.length){this.$fromUndo=!0;for(var w=0;w<A.length;w++){var E=A[w];(E.action=="insert"||E.action=="remove")&&this.doc.$safeApplyDelta(E)}!C&&this.$undoSelect&&(A.selectionAfter?this.selection.fromJSON(A.selectionAfter):this.selection.setRange(this.$getUndoSelection(A,!1))),this.$fromUndo=!1}},b.prototype.setUndoSelect=function(A){this.$undoSelect=A},b.prototype.$getUndoSelection=function(A,C){function w(F){return C?F.action!=="insert":F.action==="insert"}for(var E,L,O=0;O<A.length;O++){var I=A[O];if(I.start){if(!E){w(I)?E=a.fromPoints(I.start,I.end):E=a.fromPoints(I.start,I.start);continue}w(I)?(L=I.start,E.compare(L.row,L.column)==-1&&E.setStart(L),L=I.end,E.compare(L.row,L.column)==1&&E.setEnd(L)):(L=I.start,E.compare(L.row,L.column)==-1&&(E=a.fromPoints(I.start,I.start)))}}return E},b.prototype.replace=function(A,C){return this.doc.replace(A,C)},b.prototype.moveText=function(A,C,w){var E=this.getTextRange(A),L=this.getFoldsInRange(A),O=a.fromPoints(C,C);if(!w){this.remove(A);var I=A.start.row-A.end.row,F=I?-A.end.column:A.start.column-A.end.column;F&&(O.start.row==A.end.row&&O.start.column>A.end.column&&(O.start.column+=F),O.end.row==A.end.row&&O.end.column>A.end.column&&(O.end.column+=F)),I&&O.start.row>=A.end.row&&(O.start.row+=I,O.end.row+=I)}if(O.end=this.insert(O.start,E),L.length){var D=A.start,W=O.start,I=W.row-D.row,F=W.column-D.column;this.addFolds(L.map(function(U){return U=U.clone(),U.start.row==D.row&&(U.start.column+=F),U.end.row==D.row&&(U.end.column+=F),U.start.row+=I,U.end.row+=I,U}))}return O},b.prototype.indentRows=function(A,C,w){w=w.replace(/\t/g,this.getTabString());for(var E=A;E<=C;E++)this.doc.insertInLine({row:E,column:0},w)},b.prototype.outdentRows=function(A){for(var C=A.collapseRows(),w=new a(0,0,0,0),E=this.getTabSize(),L=C.start.row;L<=C.end.row;++L){var O=this.getLine(L);w.start.row=L,w.end.row=L;for(var I=0;I<E&&O.charAt(I)==" ";++I);I<E&&O.charAt(I)==" "?(w.start.column=I,w.end.column=I+1):(w.start.column=0,w.end.column=I),this.remove(w)}},b.prototype.$moveLines=function(A,C,w){if(A=this.getRowFoldStart(A),C=this.getRowFoldEnd(C),w<0){var E=this.getRowFoldStart(A+w);if(E<0)return 0;var L=E-A}else if(w>0){var E=this.getRowFoldEnd(C+w);if(E>this.doc.getLength()-1)return 0;var L=E-C}else{A=this.$clipRowToDocument(A),C=this.$clipRowToDocument(C);var L=C-A+1}var O=new a(A,0,C,Number.MAX_VALUE),I=this.getFoldsInRange(O).map(function(D){return D=D.clone(),D.start.row+=L,D.end.row+=L,D}),F=w==0?this.doc.getLines(A,C):this.doc.removeFullLines(A,C);return this.doc.insertFullLines(A+L,F),I.length&&this.addFolds(I),L},b.prototype.moveLinesUp=function(A,C){return this.$moveLines(A,C,-1)},b.prototype.moveLinesDown=function(A,C){return this.$moveLines(A,C,1)},b.prototype.duplicateLines=function(A,C){return this.$moveLines(A,C,0)},b.prototype.$clipRowToDocument=function(A){return Math.max(0,Math.min(A,this.doc.getLength()-1))},b.prototype.$clipColumnToRow=function(A,C){return C<0?0:Math.min(this.doc.getLine(A).length,C)},b.prototype.$clipPositionToDocument=function(A,C){if(C=Math.max(0,C),A<0)A=0,C=0;else{var w=this.doc.getLength();A>=w?(A=w-1,C=this.doc.getLine(w-1).length):C=Math.min(this.doc.getLine(A).length,C)}return{row:A,column:C}},b.prototype.$clipRangeToDocument=function(A){A.start.row<0?(A.start.row=0,A.start.column=0):A.start.column=this.$clipColumnToRow(A.start.row,A.start.column);var C=this.doc.getLength()-1;return A.end.row>C?(A.end.row=C,A.end.column=this.doc.getLine(C).length):A.end.column=this.$clipColumnToRow(A.end.row,A.end.column),A},b.prototype.setUseWrapMode=function(A){if(A!=this.$useWrapMode){if(this.$useWrapMode=A,this.$modified=!0,this.$resetRowCache(0),A){var C=this.getLength();this.$wrapData=Array(C),this.$updateWrapData(0,C-1)}this._signal("changeWrapMode")}},b.prototype.getUseWrapMode=function(){return this.$useWrapMode},b.prototype.setWrapLimitRange=function(A,C){(this.$wrapLimitRange.min!==A||this.$wrapLimitRange.max!==C)&&(this.$wrapLimitRange={min:A,max:C},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},b.prototype.adjustWrapLimit=function(A,C){var w=this.$wrapLimitRange;w.max<0&&(w={min:C,max:C});var E=this.$constrainWrapLimit(A,w.min,w.max);return E!=this.$wrapLimit&&E>1?(this.$wrapLimit=E,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},b.prototype.$constrainWrapLimit=function(A,C,w){return C&&(A=Math.max(C,A)),w&&(A=Math.min(w,A)),A},b.prototype.getWrapLimit=function(){return this.$wrapLimit},b.prototype.setWrapLimit=function(A){this.setWrapLimitRange(A,A)},b.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},b.prototype.$updateInternalDataOnChange=function(A){var C=this.$useWrapMode,w=A.action,E=A.start,L=A.end,O=E.row,I=L.row,F=I-O,D=null;if(this.$updating=!0,F!=0)if(w==="remove"){this[C?"$wrapData":"$rowLengthCache"].splice(O,F);var W=this.$foldData;D=this.getFoldsInRange(A),this.removeFolds(D);var j=this.getFoldLine(L.row),H=0;if(j){j.addRemoveChars(L.row,L.column,E.column-L.column),j.shiftRow(-F);var U=this.getFoldLine(O);U&&U!==j&&(U.merge(j),j=U),H=W.indexOf(j)+1}for(H;H<W.length;H++){var j=W[H];j.start.row>=L.row&&j.shiftRow(-F)}I=O}else{var K=Array(F);K.unshift(O,0);var Z=C?this.$wrapData:this.$rowLengthCache;Z.splice.apply(Z,K);var W=this.$foldData,j=this.getFoldLine(O),H=0;if(j){var z=j.range.compareInside(E.row,E.column);z==0?(j=j.split(E.row,E.column),j&&(j.shiftRow(F),j.addRemoveChars(I,0,L.column-E.column))):z==-1&&(j.addRemoveChars(O,0,L.column-E.column),j.shiftRow(F)),H=W.indexOf(j)+1}for(H;H<W.length;H++){var j=W[H];j.start.row>=O&&j.shiftRow(F)}}else{F=Math.abs(A.start.column-A.end.column),w==="remove"&&(D=this.getFoldsInRange(A),this.removeFolds(D),F=-F);var j=this.getFoldLine(O);j&&j.addRemoveChars(O,E.column,F)}return C&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,C?this.$updateWrapData(O,I):this.$updateRowLengthCache(O,I),D},b.prototype.$updateRowLengthCache=function(A,C){this.$rowLengthCache[A]=null,this.$rowLengthCache[C]=null},b.prototype.$updateWrapData=function(A,C){var w=this.doc.getAllLines(),E=this.getTabSize(),L=this.$wrapData,O=this.$wrapLimit,I,F,D=A;for(C=Math.min(C,w.length-1);D<=C;)F=this.getFoldLine(D,F),F?(I=[],F.walk((function(W,j,H,U){var K;if(W!=null){K=this.$getDisplayTokens(W,I.length),K[0]=S;for(var Z=1;Z<K.length;Z++)K[Z]=_}else K=this.$getDisplayTokens(w[j].substring(U,H),I.length);I=I.concat(K)}).bind(this),F.end.row,w[F.end.row].length+1),L[F.start.row]=this.$computeWrapSplits(I,O,E),D=F.end.row+1):(I=this.$getDisplayTokens(w[D]),L[D]=this.$computeWrapSplits(I,O,E),D++)},b.prototype.$computeWrapSplits=function(A,C,w){if(A.length==0)return[];var E=[],L=A.length,O=0,I=0,F=this.$wrapAsCode,D=this.$indentedSoftWrap,W=C<=Math.max(2*w,8)||D===!1?0:Math.floor(C/2);function j(){var z=0;if(W===0)return z;if(D)for(var X=0;X<A.length;X++){var Y=A[X];if(Y==R)z+=1;else if(Y==T)z+=w;else{if(Y==x)continue;break}}return F&&D!==!1&&(z+=w),Math.min(z,W)}function H(z){for(var X=z-O,Y=O;Y<z;Y++){var V=A[Y];(V===12||V===2)&&(X-=1)}E.length||(U=j(),E.indent=U),I+=X,E.push(I),O=z}for(var U=0;L-O>C-U;){var K=O+C-U;if(A[K-1]>=R&&A[K]>=R){H(K);continue}if(A[K]==S||A[K]==_){for(K;K!=O-1&&A[K]!=S;K--);if(K>O){H(K);continue}for(K=O+C,K;K<A.length&&A[K]==_;K++);if(K==A.length)break;H(K);continue}for(var Z=Math.max(K-(C-(C>>2)),O-1);K>Z&&A[K]<S;)K--;if(F){for(;K>Z&&A[K]<S;)K--;for(;K>Z&&A[K]==$;)K--}else for(;K>Z&&A[K]<R;)K--;if(K>Z){H(++K);continue}K=O+C,A[K]==k&&K--,H(K-U)}return E},b.prototype.$getDisplayTokens=function(A,C){var w=[],E;C=C||0;for(var L=0;L<A.length;L++){var O=A.charCodeAt(L);if(O==9){E=this.getScreenTabSize(w.length+C),w.push(T);for(var I=1;I<E;I++)w.push(x)}else O==32?w.push(R):O>39&&O<48||O>57&&O<64?w.push($):O>=4352&&M(O)?w.push(y,k):w.push(y)}return w},b.prototype.$getStringScreenWidth=function(A,C,w){if(C==0)return[0,0];C==null&&(C=1/0),w=w||0;var E,L;for(L=0;L<A.length&&(E=A.charCodeAt(L),E==9?w+=this.getScreenTabSize(w):E>=4352&&M(E)?w+=2:w+=1,!(w>C));L++);return[w,L]},b.prototype.getRowLength=function(A){var C=1;return this.lineWidgets&&(C+=this.lineWidgets[A]&&this.lineWidgets[A].rowCount||0),!this.$useWrapMode||!this.$wrapData[A]?C:this.$wrapData[A].length+C},b.prototype.getRowLineCount=function(A){return!this.$useWrapMode||!this.$wrapData[A]?1:this.$wrapData[A].length+1},b.prototype.getRowWrapIndent=function(A){if(this.$useWrapMode){var C=this.screenToDocumentPosition(A,Number.MAX_VALUE),w=this.$wrapData[C.row];return w.length&&w[0]<C.column?w.indent:0}else return 0},b.prototype.getScreenLastRowColumn=function(A){var C=this.screenToDocumentPosition(A,Number.MAX_VALUE);return this.documentToScreenColumn(C.row,C.column)},b.prototype.getDocumentLastRowColumn=function(A,C){var w=this.documentToScreenRow(A,C);return this.getScreenLastRowColumn(w)},b.prototype.getDocumentLastRowColumnPosition=function(A,C){var w=this.documentToScreenRow(A,C);return this.screenToDocumentPosition(w,Number.MAX_VALUE/10)},b.prototype.getRowSplitData=function(A){if(this.$useWrapMode)return this.$wrapData[A]},b.prototype.getScreenTabSize=function(A){return this.$tabSize-(A%this.$tabSize|0)},b.prototype.screenToDocumentRow=function(A,C){return this.screenToDocumentPosition(A,C).row},b.prototype.screenToDocumentColumn=function(A,C){return this.screenToDocumentPosition(A,C).column},b.prototype.screenToDocumentPosition=function(A,C,w){if(A<0)return{row:0,column:0};var E,L=0,O=0,I,F=0,D=0,W=this.$screenRowCache,j=this.$getRowCacheIndex(W,A),H=W.length;if(H&&j>=0)var F=W[j],L=this.$docRowCache[j],U=A>W[H-1];else var U=!H;for(var K=this.getLength()-1,Z=this.getNextFoldLine(L),z=Z?Z.start.row:1/0;F<=A&&(D=this.getRowLength(L),!(F+D>A||L>=K));)F+=D,L++,L>z&&(L=Z.end.row+1,Z=this.getNextFoldLine(L,Z),z=Z?Z.start.row:1/0),U&&(this.$docRowCache.push(L),this.$screenRowCache.push(F));if(Z&&Z.start.row<=L)E=this.getFoldDisplayLine(Z),L=Z.start.row;else{if(F+D<=A||L>K)return{row:K,column:this.getLine(K).length};E=this.getLine(L),Z=null}var X=0,Y=Math.floor(A-F);if(this.$useWrapMode){var V=this.$wrapData[L];V&&(I=V[Y],Y>0&&V.length&&(X=V.indent,O=V[Y-1]||V[V.length-1],E=E.substring(O)))}return w!==void 0&&this.$bidiHandler.isBidiRow(F+Y,L,Y)&&(C=this.$bidiHandler.offsetToCol(w)),O+=this.$getStringScreenWidth(E,C-X)[1],this.$useWrapMode&&O>=I&&(O=I-1),Z?Z.idxToPosition(O):{row:L,column:O}},b.prototype.documentToScreenPosition=function(A,C){if(typeof C>"u")var w=this.$clipPositionToDocument(A.row,A.column);else w=this.$clipPositionToDocument(A,C);A=w.row,C=w.column;var E=0,L=null,O=null;O=this.getFoldAt(A,C,1),O&&(A=O.start.row,C=O.start.column);var I,F=0,D=this.$docRowCache,W=this.$getRowCacheIndex(D,A),j=D.length;if(j&&W>=0)var F=D[W],E=this.$screenRowCache[W],H=A>D[j-1];else var H=!j;for(var U=this.getNextFoldLine(F),K=U?U.start.row:1/0;F<A;){if(F>=K){if(I=U.end.row+1,I>A)break;U=this.getNextFoldLine(I,U),K=U?U.start.row:1/0}else I=F+1;E+=this.getRowLength(F),F=I,H&&(this.$docRowCache.push(F),this.$screenRowCache.push(E))}var Z="";U&&F>=K?(Z=this.getFoldDisplayLine(U,A,C),L=U.start.row):(Z=this.getLine(A).substring(0,C),L=A);var z=0;if(this.$useWrapMode){var X=this.$wrapData[L];if(X){for(var Y=0;Z.length>=X[Y];)E++,Y++;Z=Z.substring(X[Y-1]||0,Z.length),z=Y>0?X.indent:0}}return this.lineWidgets&&this.lineWidgets[F]&&this.lineWidgets[F].rowsAbove&&(E+=this.lineWidgets[F].rowsAbove),{row:E,column:z+this.$getStringScreenWidth(Z)[0]}},b.prototype.documentToScreenColumn=function(A,C){return this.documentToScreenPosition(A,C).column},b.prototype.documentToScreenRow=function(A,C){return this.documentToScreenPosition(A,C).row},b.prototype.getScreenLength=function(){var A=0,C=null;if(this.$useWrapMode)for(var L=this.$wrapData.length,O=0,E=0,C=this.$foldData[E++],I=C?C.start.row:1/0;O<L;){var F=this.$wrapData[O];A+=F?F.length+1:1,O++,O>I&&(O=C.end.row+1,C=this.$foldData[E++],I=C?C.start.row:1/0)}else{A=this.getLength();for(var w=this.$foldData,E=0;E<w.length;E++)C=w[E],A-=C.end.row-C.start.row}return this.lineWidgets&&(A+=this.$getWidgetScreenLength()),A},b.prototype.$setFontMetrics=function(A){this.$enableVarChar&&(this.$getStringScreenWidth=function(C,w,E){if(w===0)return[0,0];w||(w=1/0),E=E||0;var L,O;for(O=0;O<C.length&&(L=C.charAt(O),L===" "?E+=this.getScreenTabSize(E):E+=A.getCharacterWidth(L),!(E>w));O++);return[E,O]})},b.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()},b}();v.$uid=0,v.prototype.$modes=s.$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,u.implement(v.prototype,p);var y=1,k=2,S=3,_=4,$=9,R=10,T=11,x=12;function M(b){return b<4352?!1:b>=4352&&b<=4447||b>=4515&&b<=4519||b>=4602&&b<=4607||b>=9001&&b<=9002||b>=11904&&b<=11929||b>=11931&&b<=12019||b>=12032&&b<=12245||b>=12272&&b<=12283||b>=12288&&b<=12350||b>=12353&&b<=12438||b>=12441&&b<=12543||b>=12549&&b<=12589||b>=12593&&b<=12686||b>=12688&&b<=12730||b>=12736&&b<=12771||b>=12784&&b<=12830||b>=12832&&b<=12871||b>=12880&&b<=13054||b>=13056&&b<=19903||b>=19968&&b<=42124||b>=42128&&b<=42182||b>=43360&&b<=43388||b>=44032&&b<=55203||b>=55216&&b<=55238||b>=55243&&b<=55291||b>=63744&&b<=64255||b>=65040&&b<=65049||b>=65072&&b<=65106||b>=65108&&b<=65126||b>=65128&&b<=65131||b>=65281&&b<=65376||b>=65504&&b<=65510}n("./edit_session/folding").Folding.call(v.prototype),n("./edit_session/bracket_match").BracketMatch.call(v.prototype),s.defineOptions(v.prototype,"session",{wrap:{set:function(b){if(!b||b=="off"?b=!1:b=="free"?b=!0:b=="printMargin"?b=-1:typeof b=="string"&&(b=parseInt(b,10)||!1),this.$wrap!=b)if(this.$wrap=b,!b)this.setUseWrapMode(!1);else{var A=typeof b=="number"?b:null;this.setWrapLimitRange(A,A),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(b){b=b=="auto"?this.$mode.type!="text":b!="text",b!=this.$wrapAsCode&&(this.$wrapAsCode=b,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(b){this.$useWorker=b,this.$stopWorker(),b&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(b){b=parseInt(b),b>0&&this.$tabSize!==b&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=b,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(b){this.setFoldStyle(b)},handlesSet:!0},overwrite:{set:function(b){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(b){this.doc.setNewLineMode(b)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(b){this.setMode(b)},get:function(){return this.$modeId},handlesSet:!0}}),i.EditSession=v}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(n,i,d){var u=n("./lib/lang"),h=n("./lib/oop"),g=n("./range").Range,s=function(){function o(){this.$options={}}return o.prototype.set=function(r){return h.mixin(this.$options,r),this},o.prototype.getOptions=function(){return u.copyObject(this.$options)},o.prototype.setOptions=function(r){this.$options=r},o.prototype.find=function(r){var a=this.$options,c=this.$matchIterator(r,a);if(!c)return!1;var l=null;return c.forEach(function(f,m,v,y){return l=new g(f,m,v,y),m==y&&a.start&&a.start.start&&a.skipCurrent!=!1&&l.isEqual(a.start)?(l=null,!1):!0}),l},o.prototype.findAll=function(r){var a=this.$options;if(!a.needle)return[];this.$assembleRegExp(a);var c=a.range,l=c?r.getLines(c.start.row,c.end.row):r.doc.getAllLines(),f=[],m=a.re;if(a.$isMultiLine){var v=m.length,y=l.length-v,k;e:for(var S=m.offset||0;S<=y;S++){for(var _=0;_<v;_++)if(l[S+_].search(m[_])==-1)continue e;var $=l[S],R=l[S+v-1],T=$.length-$.match(m[0])[0].length,x=R.match(m[v-1])[0].length;k&&k.end.row===S&&k.end.column>T||(f.push(k=new g(S,T,S+v-1,x)),v>2&&(S=S+v-2))}}else for(var M=0;M<l.length;M++)for(var b=u.getMatchOffsets(l[M],m),_=0;_<b.length;_++){var A=b[_];f.push(new g(M,A.offset,M,A.offset+A.length))}if(c){for(var C=c.start.column,w=c.end.column,M=0,_=f.length-1;M<_&&f[M].start.column<C&&f[M].start.row==0;)M++;for(var E=c.end.row-c.start.row;M<_&&f[_].end.column>w&&f[_].end.row==E;)_--;for(f=f.slice(M,_+1),M=0,_=f.length;M<_;M++)f[M].start.row+=c.start.row,f[M].end.row+=c.start.row}return f},o.prototype.replace=function(r,a){var c=this.$options,l=this.$assembleRegExp(c);if(c.$isMultiLine)return a;if(l){var f=l.exec(r);if(!f||f[0].length!=r.length)return null;if(a=r.replace(l,a),c.preserveCase){a=a.split("");for(var m=Math.min(r.length,r.length);m--;){var v=r[m];v&&v.toLowerCase()!=v?a[m]=a[m].toUpperCase():a[m]=a[m].toLowerCase()}a=a.join("")}return a}},o.prototype.$assembleRegExp=function(r,a){if(r.needle instanceof RegExp)return r.re=r.needle;var c=r.needle;if(!r.needle)return r.re=!1;r.regExp||(c=u.escapeRegExp(c));var l=r.caseSensitive?"gm":"gmi";try{new RegExp(c,"u"),r.$supportsUnicodeFlag=!0,l+="u"}catch{r.$supportsUnicodeFlag=!1}if(r.wholeWord&&(c=p(c,r)),r.$isMultiLine=!a&&/[\n\r]/.test(c),r.$isMultiLine)return r.re=this.$assembleMultilineRegExp(c,l);try{var f=new RegExp(c,l)}catch{f=!1}return r.re=f},o.prototype.$assembleMultilineRegExp=function(r,a){for(var c=r.replace(/\r\n|\r|\n/g,`$
1012
- ^`).split(`
1013
- `),l=[],f=0;f<c.length;f++)try{l.push(new RegExp(c[f],a))}catch{return!1}return l},o.prototype.$matchIterator=function(r,a){var c=this.$assembleRegExp(a);if(!c)return!1;var l=a.backwards==!0,f=a.skipCurrent!=!1,m=c.unicode,v=a.range,y=a.start;y||(y=v?v[l?"end":"start"]:r.selection.getRange()),y.start&&(y=y[f!=l?"end":"start"]);var k=v?v.start.row:0,S=v?v.end.row:r.getLength()-1;if(l)var _=function(T){var x=y.row;if(!R(x,y.column,T)){for(x--;x>=k;x--)if(R(x,Number.MAX_VALUE,T))return;if(a.wrap!=!1){for(x=S,k=y.row;x>=k;x--)if(R(x,Number.MAX_VALUE,T))return}}};else var _=function(x){var M=y.row;if(!R(M,y.column,x)){for(M=M+1;M<=S;M++)if(R(M,0,x))return;if(a.wrap!=!1){for(M=k,S=y.row;M<=S;M++)if(R(M,0,x))return}}};if(a.$isMultiLine)var $=c.length,R=function(T,x,M){var b=l?T-$+1:T;if(!(b<0||b+$>r.getLength())){var A=r.getLine(b),C=A.search(c[0]);if(!(!l&&C<x||C===-1)){for(var w=1;w<$;w++)if(A=r.getLine(b+w),A.search(c[w])==-1)return;var E=A.match(c[$-1])[0].length;if(!(l&&E>x)&&M(b,C,b+$-1,E))return!0}}};else if(l)var R=function(x,M,b){var A=r.getLine(x),C=[],w,E=0;for(c.lastIndex=0;w=c.exec(A);){var L=w[0].length;if(E=w.index,!L){if(E>=A.length)break;c.lastIndex=E+=u.skipEmptyMatch(A,E,m)}if(w.index+L>M)break;C.push(w.index,L)}for(var O=C.length-1;O>=0;O-=2){var I=C[O-1],L=C[O];if(b(x,I,x,I+L))return!0}};else var R=function(x,M,b){var A=r.getLine(x),C,w;for(c.lastIndex=M;w=c.exec(A);){var E=w[0].length;if(C=w.index,b(x,C,x,C+E))return!0;if(!E&&(c.lastIndex=C+=u.skipEmptyMatch(A,C,m),C>=A.length))return!1}};return{forEach:_}},o}();function p(o,r){var a=u.supportsLookbehind();function c(v,y){y===void 0&&(y=!0);var k=a&&r.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return k.test(v)||r.regExp?a&&r.$supportsUnicodeFlag?y?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var l=Array.from(o),f=l[0],m=l[l.length-1];return c(f)+o+c(m,!1)}i.Search=s}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(n,i,d){var u=this&&this.__extends||function(){var a=function(c,l){return a=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])},a(c,l)};return function(c,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");a(c,l);function f(){this.constructor=c}c.prototype=l===null?Object.create(l):(f.prototype=l.prototype,new f)}}(),h=n("../lib/keys"),g=n("../lib/useragent"),s=h.KEY_MODS,p=function(){function a(c,l){this.$init(c,l,!1)}return a.prototype.$init=function(c,l,f){this.platform=l||(g.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(c),this.$singleCommand=f},a.prototype.addCommand=function(c){this.commands[c.name]&&this.removeCommand(c),this.commands[c.name]=c,c.bindKey&&this._buildKeyHash(c)},a.prototype.removeCommand=function(c,l){var f=c&&(typeof c=="string"?c:c.name);c=this.commands[f],l||delete this.commands[f];var m=this.commandKeyBinding;for(var v in m){var y=m[v];if(y==c)delete m[v];else if(Array.isArray(y)){var k=y.indexOf(c);k!=-1&&(y.splice(k,1),y.length==1&&(m[v]=y[0]))}}},a.prototype.bindKey=function(c,l,f){if(typeof c=="object"&&c&&(f==null&&(f=c.position),c=c[this.platform]),!!c){if(typeof l=="function")return this.addCommand({exec:l,bindKey:c,name:l.name||c});c.split("|").forEach(function(m){var v="";if(m.indexOf(" ")!=-1){var y=m.split(/\s+/);m=y.pop(),y.forEach(function(_){var $=this.parseKeys(_),R=s[$.hashId]+$.key;v+=(v?" ":"")+R,this._addCommandToBinding(v,"chainKeys")},this),v+=" "}var k=this.parseKeys(m),S=s[k.hashId]+k.key;this._addCommandToBinding(v+S,l,f)},this)}},a.prototype._addCommandToBinding=function(c,l,f){var m=this.commandKeyBinding,v;if(!l)delete m[c];else if(!m[c]||this.$singleCommand)m[c]=l;else{Array.isArray(m[c])?(v=m[c].indexOf(l))!=-1&&m[c].splice(v,1):m[c]=[m[c]],typeof f!="number"&&(f=o(l));var y=m[c];for(v=0;v<y.length;v++){var k=y[v],S=o(k);if(S>f)break}y.splice(v,0,l)}},a.prototype.addCommands=function(c){c&&Object.keys(c).forEach(function(l){var f=c[l];if(f){if(typeof f=="string")return this.bindKey(f,l);typeof f=="function"&&(f={exec:f}),typeof f=="object"&&(f.name||(f.name=l),this.addCommand(f))}},this)},a.prototype.removeCommands=function(c){Object.keys(c).forEach(function(l){this.removeCommand(c[l])},this)},a.prototype.bindKeys=function(c){Object.keys(c).forEach(function(l){this.bindKey(l,c[l])},this)},a.prototype._buildKeyHash=function(c){this.bindKey(c.bindKey,c)},a.prototype.parseKeys=function(c){var l=c.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(S){return S}),f=l.pop(),m=h[f];if(h.FUNCTION_KEYS[m])f=h.FUNCTION_KEYS[m].toLowerCase();else if(l.length){if(l.length==1&&l[0]=="shift")return{key:f.toUpperCase(),hashId:-1}}else return{key:f,hashId:-1};for(var v=0,y=l.length;y--;){var k=h.KEY_MODS[l[y]];if(k==null)return typeof console<"u"&&console.error("invalid modifier "+l[y]+" in "+c),!1;v|=k}return{key:f,hashId:v}},a.prototype.findKeyCommand=function(c,l){var f=s[c]+l;return this.commandKeyBinding[f]},a.prototype.handleKeyboard=function(c,l,f,m){if(!(m<0)){var v=s[l]+f,y=this.commandKeyBinding[v];return c.$keyChain&&(c.$keyChain+=" "+v,y=this.commandKeyBinding[c.$keyChain]||y),y&&(y=="chainKeys"||y[y.length-1]=="chainKeys")?(c.$keyChain=c.$keyChain||v,{command:"null"}):(c.$keyChain&&((!l||l==4)&&f.length==1?c.$keyChain=c.$keyChain.slice(0,-v.length-1):(l==-1||m>0)&&(c.$keyChain="")),{command:y})}},a.prototype.getStatusText=function(c,l){return l.$keyChain||""},a}();function o(a){return typeof a=="object"&&a.bindKey&&a.bindKey.position||(a.isDefault?-100:0)}var r=function(a){u(c,a);function c(l,f){var m=a.call(this,l,f)||this;return m.$singleCommand=!0,m}return c}(p);r.call=function(a,c,l){p.prototype.$init.call(a,c,l,!0)},p.call=function(a,c,l){p.prototype.$init.call(a,c,l,!1)},i.HashHandler=r,i.MultiHashHandler=p}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(n,i,d){var u=this&&this.__extends||function(){var o=function(r,a){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,l){c.__proto__=l}||function(c,l){for(var f in l)Object.prototype.hasOwnProperty.call(l,f)&&(c[f]=l[f])},o(r,a)};return function(r,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");o(r,a);function c(){this.constructor=r}r.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),h=n("../lib/oop"),g=n("../keyboard/hash_handler").MultiHashHandler,s=n("../lib/event_emitter").EventEmitter,p=function(o){u(r,o);function r(a,c){var l=o.call(this,c,a)||this;return l.byName=l.commands,l.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)}),l}return r.prototype.exec=function(a,c,l){if(Array.isArray(a)){for(var f=a.length;f--;)if(this.exec(a[f],c,l))return!0;return!1}if(typeof a=="string"&&(a=this.commands[a]),!a||c&&c.$readOnly&&!a.readOnly||this.$checkCommandState!=!1&&a.isAvailable&&!a.isAvailable(c))return!1;var m={editor:c,command:a,args:l};return m.returnValue=this._emit("exec",m),this._signal("afterExec",m),m.returnValue!==!1},r.prototype.toggleRecording=function(a){if(!this.$inReplay)return a&&a._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(c){this.macro.push([c.command,c.args])}).bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},r.prototype.replay=function(a){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(a);try{this.$inReplay=!0,this.macro.forEach(function(c){typeof c=="string"?this.exec(c,a):this.exec(c[0],a,c[1])},this)}finally{this.$inReplay=!1}}},r.prototype.trimMacro=function(a){return a.map(function(c){return typeof c[0]!="string"&&(c[0]=c[0].name),c[1]||(c=c[0]),c})},r}(g);h.implement(p.prototype,s),i.CommandManager=p}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(n,i,d){var u=n("../lib/lang"),h=n("../config"),g=n("../range").Range;function s(o,r){return{win:o,mac:r}}i.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:s("Ctrl-,","Command-,"),exec:function(o){h.loadModule("ace/ext/settings_menu",function(r){r.init(o),o.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:s("Alt-E","F4"),exec:function(o){h.loadModule("ace/ext/error_marker",function(r){r.showErrorMarker(o,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:s("Alt-Shift-E","Shift-F4"),exec:function(o){h.loadModule("ace/ext/error_marker",function(r){r.showErrorMarker(o,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:s("Ctrl-A","Command-A"),exec:function(o){o.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:s(null,"Ctrl-L"),exec:function(o){o.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:s("Ctrl-L","Command-L"),exec:function(o,r){typeof r=="number"&&!isNaN(r)&&o.gotoLine(r),o.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:s("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(o){o.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:s("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(o){o.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:s("F2","F2"),exec:function(o){o.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:s("Alt-F2","Alt-F2"),exec:function(o){o.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:s(null,"Ctrl-Command-Option-0"),exec:function(o){o.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:s(null,"Ctrl-Command-Option-0"),exec:function(o){o.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:s("Alt-0","Command-Option-0"),exec:function(o){o.session.foldAll(),o.session.unfold(o.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:s("Alt-Shift-0","Command-Option-Shift-0"),exec:function(o){o.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:s("Ctrl-K","Command-G"),exec:function(o){o.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:s("Ctrl-Shift-K","Command-Shift-G"),exec:function(o){o.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:s("Alt-K","Ctrl-G"),exec:function(o){o.selection.isEmpty()?o.selection.selectWord():o.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:s("Alt-Shift-K","Ctrl-Shift-G"),exec:function(o){o.selection.isEmpty()?o.selection.selectWord():o.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:s("Ctrl-F","Command-F"),exec:function(o){h.loadModule("ace/ext/searchbox",function(r){r.Search(o)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(o){o.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:s("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(o){o.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:s("Ctrl-Home","Command-Home|Command-Up"),exec:function(o){o.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:s("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(o){o.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:s("Up","Up|Ctrl-P"),exec:function(o,r){o.navigateUp(r.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:s("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(o){o.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:s("Ctrl-End","Command-End|Command-Down"),exec:function(o){o.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:s("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(o){o.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:s("Down","Down|Ctrl-N"),exec:function(o,r){o.navigateDown(r.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:s("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(o){o.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:s("Ctrl-Left","Option-Left"),exec:function(o){o.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:s("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(o){o.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:s("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(o){o.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:s("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(o){o.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:s("Left","Left|Ctrl-B"),exec:function(o,r){o.navigateLeft(r.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:s("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(o){o.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:s("Ctrl-Right","Option-Right"),exec:function(o){o.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:s("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(o){o.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:s("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(o){o.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:s("Shift-Right","Shift-Right"),exec:function(o){o.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:s("Right","Right|Ctrl-F"),exec:function(o,r){o.navigateRight(r.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(o){o.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:s(null,"Option-PageDown"),exec:function(o){o.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:s("PageDown","PageDown|Ctrl-V"),exec:function(o){o.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(o){o.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:s(null,"Option-PageUp"),exec:function(o){o.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(o){o.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:s("Ctrl-Up",null),exec:function(o){o.renderer.scrollBy(0,-2*o.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:s("Ctrl-Down",null),exec:function(o){o.renderer.scrollBy(0,2*o.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(o){o.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(o){o.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:s("Ctrl-Alt-E","Command-Option-E"),exec:function(o){o.commands.toggleRecording(o)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:s("Ctrl-Shift-E","Command-Shift-E"),exec:function(o){o.commands.replay(o)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:s("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(o){o.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:s("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(o){o.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:s("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(o){o.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:s(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(o){},readOnly:!0},{name:"cut",description:"Cut",exec:function(o){var r=o.$copyWithEmptySelection&&o.selection.isEmpty(),a=r?o.selection.getLineRange():o.selection.getRange();o._emit("cut",a),a.isEmpty()||o.session.remove(a),o.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(o,r){o.$handlePaste(r)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:s("Ctrl-D","Command-D"),exec:function(o){o.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:s("Ctrl-Shift-D","Command-Shift-D"),exec:function(o){o.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:s("Ctrl-Alt-S","Command-Alt-S"),exec:function(o){o.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:s("Ctrl-/","Command-/"),exec:function(o){o.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:s("Ctrl-Shift-/","Command-Shift-/"),exec:function(o){o.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:s("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(o){o.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:s("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(o){o.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:s("Ctrl-H","Command-Option-F"),exec:function(o){h.loadModule("ace/ext/searchbox",function(r){r.Search(o,!0)})}},{name:"undo",description:"Undo",bindKey:s("Ctrl-Z","Command-Z"),exec:function(o){o.undo()}},{name:"redo",description:"Redo",bindKey:s("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(o){o.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:s("Alt-Shift-Up","Command-Option-Up"),exec:function(o){o.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:s("Alt-Up","Option-Up"),exec:function(o){o.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:s("Alt-Shift-Down","Command-Option-Down"),exec:function(o){o.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:s("Alt-Down","Option-Down"),exec:function(o){o.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:s("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(o){o.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:s("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(o){o.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:s("Shift-Delete",null),exec:function(o){if(o.selection.isEmpty())o.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:s("Alt-Backspace","Command-Backspace"),exec:function(o){o.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:s("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(o){o.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:s("Ctrl-Shift-Backspace",null),exec:function(o){var r=o.selection.getRange();r.start.column=0,o.session.remove(r)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:s("Ctrl-Shift-Delete",null),exec:function(o){var r=o.selection.getRange();r.end.column=Number.MAX_VALUE,o.session.remove(r)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:s("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(o){o.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:s("Ctrl-Delete","Alt-Delete"),exec:function(o){o.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:s("Shift-Tab","Shift-Tab"),exec:function(o){o.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:s("Tab","Tab"),exec:function(o){o.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:s("Ctrl-[","Ctrl-["),exec:function(o){o.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:s("Ctrl-]","Ctrl-]"),exec:function(o){o.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(o,r){o.insert(r)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(o,r){o.insert(u.stringRepeat(r.text||"",r.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:s(null,"Ctrl-O"),exec:function(o){o.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:s("Alt-Shift-X","Ctrl-T"),exec:function(o){o.transposeLetters()},multiSelectAction:function(o){o.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:s("Ctrl-U","Ctrl-U"),exec:function(o){o.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:s("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(o){o.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:s(null,null),exec:function(o){o.autoIndent()},multiSelectAction:"forEachLine",scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:s("Ctrl-Shift-L","Command-Shift-L"),exec:function(o){var r=o.selection.getRange();r.start.column=r.end.column=0,r.end.row++,o.selection.setRange(r,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:s("Ctrl+F3","F3"),exec:function(o){o.openLink()}},{name:"joinlines",description:"Join lines",bindKey:s(null,null),exec:function(o){for(var r=o.selection.isBackwards(),a=r?o.selection.getSelectionLead():o.selection.getSelectionAnchor(),c=r?o.selection.getSelectionAnchor():o.selection.getSelectionLead(),l=o.session.doc.getLine(a.row).length,f=o.session.doc.getTextRange(o.selection.getRange()),m=f.replace(/\n\s*/," ").length,v=o.session.doc.getLine(a.row),y=a.row+1;y<=c.row+1;y++){var k=u.stringTrimLeft(u.stringTrimRight(o.session.doc.getLine(y)));k.length!==0&&(k=" "+k),v+=k}c.row+1<o.session.doc.getLength()-1&&(v+=o.session.doc.getNewLineCharacter()),o.clearSelection(),o.session.doc.replace(new g(a.row,0,c.row+2,0),v),m>0?(o.selection.moveCursorTo(a.row,a.column),o.selection.selectTo(a.row,a.column+m)):(l=o.session.doc.getLine(a.row).length>l?l+1:l,o.selection.moveCursorTo(a.row,l))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:s(null,null),exec:function(o){var r=o.session.doc.getLength()-1,a=o.session.doc.getLine(r).length,c=o.selection.rangeList.ranges,l=[];c.length<1&&(c=[o.selection.getRange()]);for(var f=0;f<c.length;f++)f==c.length-1&&(c[f].end.row===r&&c[f].end.column===a||l.push(new g(c[f].end.row,c[f].end.column,r,a))),f===0?c[f].start.row===0&&c[f].start.column===0||l.push(new g(0,0,c[f].start.row,c[f].start.column)):l.push(new g(c[f-1].end.row,c[f-1].end.column,c[f].start.row,c[f].start.column));o.exitMultiSelectMode(),o.clearSelection();for(var f=0;f<l.length;f++)o.selection.addRange(l[f],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",description:"Add new line after the current line",exec:function(o){o.selection.clearSelection(),o.navigateLineEnd(),o.insert(`
1014
- `)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(o){o.selection.clearSelection();var r=o.getCursorPosition();o.selection.moveTo(r.row-1,Number.MAX_VALUE),o.insert(`
1015
- `),r.row===0&&o.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",exec:function(o){console.warn("This is an obsolete command. Please use `openCommandPalette` instead."),o.prompt({$type:"commands"})},readOnly:!0},{name:"openCommandPalette",description:"Open command palette",bindKey:s("F1","F1"),exec:function(o){o.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:s(null,null),exec:function(o){o.prompt({$type:"modes"})},readOnly:!0}];for(var p=1;p<9;p++)i.commands.push({name:"foldToLevel"+p,description:"Fold To Level "+p,level:p,exec:function(o){o.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(n,i,d){var u=n("./lib/dom"),h=function(){function g(s){this.session=s,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}return g.prototype.getRowLength=function(s){var p;return this.lineWidgets?p=this.lineWidgets[s]&&this.lineWidgets[s].rowCount||0:p=0,!this.$useWrapMode||!this.$wrapData[s]?1+p:this.$wrapData[s].length+1+p},g.prototype.$getWidgetScreenLength=function(){var s=0;return this.lineWidgets.forEach(function(p){p&&p.rowCount&&!p.hidden&&(s+=p.rowCount)}),s},g.prototype.$onChangeEditor=function(s){this.attach(s.editor)},g.prototype.attach=function(s){s&&s.widgetManager&&s.widgetManager!=this&&s.widgetManager.detach(),this.editor!=s&&(this.detach(),this.editor=s,s&&(s.widgetManager=this,s.renderer.on("beforeRender",this.measureWidgets),s.renderer.on("afterRender",this.renderWidgets)))},g.prototype.detach=function(s){var p=this.editor;if(p){this.editor=null,p.widgetManager=null,p.renderer.off("beforeRender",this.measureWidgets),p.renderer.off("afterRender",this.renderWidgets);var o=this.session.lineWidgets;o&&o.forEach(function(r){r&&r.el&&r.el.parentNode&&(r._inDocument=!1,r.el.parentNode.removeChild(r.el))})}},g.prototype.updateOnFold=function(s,p){var o=p.lineWidgets;if(!(!o||!s.action)){for(var r=s.data,a=r.start.row,c=r.end.row,l=s.action=="add",f=a+1;f<c;f++)o[f]&&(o[f].hidden=l);o[c]&&(l?o[a]?o[c].hidden=l:o[a]=o[c]:(o[a]==o[c]&&(o[a]=void 0),o[c].hidden=l))}},g.prototype.updateOnChange=function(s){var p=this.session.lineWidgets;if(p){var o=s.start.row,r=s.end.row-o;if(r!==0)if(s.action=="remove"){var a=p.splice(o+1,r);!p[o]&&a[a.length-1]&&(p[o]=a.pop()),a.forEach(function(l){l&&this.removeLineWidget(l)},this),this.$updateRows()}else{var c=new Array(r);p[o]&&p[o].column!=null&&s.start.column>p[o].column&&o++,c.unshift(o,0),p.splice.apply(p,c),this.$updateRows()}}},g.prototype.$updateRows=function(){var s=this.session.lineWidgets;if(s){var p=!0;s.forEach(function(o,r){if(o)for(p=!1,o.row=r;o.$oldWidget;)o.$oldWidget.row=r,o=o.$oldWidget}),p&&(this.session.lineWidgets=null)}},g.prototype.$registerLineWidget=function(s){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var p=this.session.lineWidgets[s.row];return p&&(s.$oldWidget=p,p.el&&p.el.parentNode&&(p.el.parentNode.removeChild(p.el),p._inDocument=!1)),this.session.lineWidgets[s.row]=s,s},g.prototype.addLineWidget=function(s){if(this.$registerLineWidget(s),s.session=this.session,!this.editor)return s;var p=this.editor.renderer;s.html&&!s.el&&(s.el=u.createElement("div"),s.el.innerHTML=s.html),s.text&&!s.el&&(s.el=u.createElement("div"),s.el.textContent=s.text),s.el&&(u.addCssClass(s.el,"ace_lineWidgetContainer"),s.className&&u.addCssClass(s.el,s.className),s.el.style.position="absolute",s.el.style.zIndex="5",p.container.appendChild(s.el),s._inDocument=!0,s.coverGutter||(s.el.style.zIndex="3"),s.pixelHeight==null&&(s.pixelHeight=s.el.offsetHeight)),s.rowCount==null&&(s.rowCount=s.pixelHeight/p.layerConfig.lineHeight);var o=this.session.getFoldAt(s.row,0);if(s.$fold=o,o){var r=this.session.lineWidgets;s.row==o.end.row&&!r[o.start.row]?r[o.start.row]=s:s.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:s.row}}}),this.$updateRows(),this.renderWidgets(null,p),this.onWidgetChanged(s),s},g.prototype.removeLineWidget=function(s){if(s._inDocument=!1,s.session=null,s.el&&s.el.parentNode&&s.el.parentNode.removeChild(s.el),s.editor&&s.editor.destroy)try{s.editor.destroy()}catch{}if(this.session.lineWidgets){var p=this.session.lineWidgets[s.row];if(p==s)this.session.lineWidgets[s.row]=s.$oldWidget,s.$oldWidget&&this.onWidgetChanged(s.$oldWidget);else for(;p;){if(p.$oldWidget==s){p.$oldWidget=s.$oldWidget;break}p=p.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:s.row}}}),this.$updateRows()},g.prototype.getWidgetsAtRow=function(s){for(var p=this.session.lineWidgets,o=p&&p[s],r=[];o;)r.push(o),o=o.$oldWidget;return r},g.prototype.onWidgetChanged=function(s){this.session._changedWidgets.push(s),this.editor&&this.editor.renderer.updateFull()},g.prototype.measureWidgets=function(s,p){var o=this.session._changedWidgets,r=p.layerConfig;if(!(!o||!o.length)){for(var a=1/0,c=0;c<o.length;c++){var l=o[c];if(!(!l||!l.el)&&l.session==this.session){if(!l._inDocument){if(this.session.lineWidgets[l.row]!=l)continue;l._inDocument=!0,p.container.appendChild(l.el)}l.h=l.el.offsetHeight,l.fixedWidth||(l.w=l.el.offsetWidth,l.screenWidth=Math.ceil(l.w/r.characterWidth));var f=l.h/r.lineHeight;l.coverLine&&(f-=this.session.getRowLineCount(l.row),f<0&&(f=0)),l.rowCount!=f&&(l.rowCount=f,l.row<a&&(a=l.row))}}a!=1/0&&(this.session._emit("changeFold",{data:{start:{row:a}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},g.prototype.renderWidgets=function(s,p){var o=p.layerConfig,r=this.session.lineWidgets;if(r){for(var a=Math.min(this.firstRow,o.firstRow),c=Math.max(this.lastRow,o.lastRow,r.length);a>0&&!r[a];)a--;this.firstRow=o.firstRow,this.lastRow=o.lastRow,p.$cursorLayer.config=o;for(var l=a;l<=c;l++){var f=r[l];if(!(!f||!f.el)){if(f.hidden){f.el.style.top=-100-(f.pixelHeight||0)+"px";continue}f._inDocument||(f._inDocument=!0,p.container.appendChild(f.el));var m=p.$cursorLayer.getPixelPosition({row:l,column:0},!0).top;f.coverLine||(m+=o.lineHeight*this.session.getRowLineCount(f.row)),f.el.style.top=m-o.offset+"px";var v=f.coverGutter?0:p.gutterWidth;f.fixedWidth||(v-=p.scrollLeft),f.el.style.left=v+"px",f.fullWidth&&f.screenWidth&&(f.el.style.minWidth=o.width+2*o.padding+"px"),f.fixedWidth?f.el.style.right=p.scrollBar.getWidth()+"px":f.el.style.right=""}}}},g}();i.LineWidgets=h}),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys","ace/mouse/default_gutter_handler"],function(n,i,d){var u=n("../lib/keys"),h=n("../mouse/default_gutter_handler").GutterTooltip,g=function(){function p(o){this.editor=o,this.gutterLayer=o.renderer.$gutterLayer,this.element=o.renderer.$gutter,this.lines=o.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=new h(this.editor)}return p.prototype.addListener=function(){this.element.addEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.addEventListener("focusout",this.$blurGutter.bind(this)),this.editor.on("mousewheel",this.$blurGutter.bind(this))},p.prototype.removeListener=function(){this.element.removeEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.removeEventListener("focusout",this.$blurGutter.bind(this)),this.editor.off("mousewheel",this.$blurGutter.bind(this))},p.prototype.$onGutterKeyDown=function(o){if(this.annotationTooltip.isOpen){o.preventDefault(),o.keyCode===u.escape&&this.annotationTooltip.hideTooltip();return}if(o.target===this.element){if(o.keyCode!=u.enter)return;o.preventDefault();var r=this.editor.getCursorPosition().row;this.editor.isRowVisible(r)||this.editor.scrollToLine(r,!0,!0),setTimeout((function(){var a=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),c=this.$findNearestFoldWidget(a),l=this.$findNearestAnnotation(a);if(!(c===null&&l===null)){if(c===null&&l!==null){this.activeRowIndex=l,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}if(c!==null&&l===null){this.activeRowIndex=c,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}if(Math.abs(l-a)<Math.abs(c-a)){this.activeRowIndex=l,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}else{this.activeRowIndex=c,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}}}).bind(this),10);return}this.$handleGutterKeyboardInteraction(o),setTimeout((function(){this.editor._signal("gutterkeydown",new s(o,this))}).bind(this),10)},p.prototype.$handleGutterKeyboardInteraction=function(o){if(o.keyCode===u.tab){o.preventDefault();return}if(o.keyCode===u.escape){o.preventDefault(),this.$blurGutter(),this.element.focus(),this.lane=null;return}if(o.keyCode===u.up){switch(o.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetUp();break;case"annotation":this.$moveAnnotationUp();break}return}if(o.keyCode===u.down){switch(o.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetDown();break;case"annotation":this.$moveAnnotationDown();break}return}if(o.keyCode===u.left){o.preventDefault(),this.$switchLane("annotation");return}if(o.keyCode===u.right){o.preventDefault(),this.$switchLane("fold");return}if(o.keyCode===u.enter||o.keyCode===u.space){switch(o.preventDefault(),this.activeLane){case"fold":if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="start"){var r=this.$rowIndexToRow(this.activeRowIndex);this.editor.session.onFoldWidgetClick(this.$rowIndexToRow(this.activeRowIndex),o),setTimeout((function(){this.$rowIndexToRow(this.activeRowIndex)!==r&&(this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=this.$rowToRowIndex(r),this.$focusFoldWidget(this.activeRowIndex))}).bind(this),10);break}else if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="end")break;return;case"annotation":var a=this.lines.cells[this.activeRowIndex].element.childNodes[2],c=a.getBoundingClientRect(),l=this.annotationTooltip.getElement().style;l.left=c.right+"px",l.top=c.bottom+"px",this.annotationTooltip.showTooltip(this.$rowIndexToRow(this.activeRowIndex));break}return}},p.prototype.$blurGutter=function(){if(this.activeRowIndex!==null)switch(this.activeLane){case"fold":this.$blurFoldWidget(this.activeRowIndex);break;case"annotation":this.$blurAnnotation(this.activeRowIndex);break}this.annotationTooltip.isOpen&&this.annotationTooltip.hideTooltip()},p.prototype.$isFoldWidgetVisible=function(o){var r=this.editor.isRowFullyVisible(this.$rowIndexToRow(o)),a=this.$getFoldWidget(o).style.display!=="none";return r&&a},p.prototype.$isAnnotationVisible=function(o){var r=this.editor.isRowFullyVisible(this.$rowIndexToRow(o)),a=this.$getAnnotation(o).style.display!=="none";return r&&a},p.prototype.$getFoldWidget=function(o){var r=this.lines.get(o),a=r.element;return a.childNodes[1]},p.prototype.$getAnnotation=function(o){var r=this.lines.get(o),a=r.element;return a.childNodes[2]},p.prototype.$findNearestFoldWidget=function(o){if(this.$isFoldWidgetVisible(o))return o;for(var r=0;o-r>0||o+r<this.lines.getLength()-1;){if(r++,o-r>=0&&this.$isFoldWidgetVisible(o-r))return o-r;if(o+r<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(o+r))return o+r}return null},p.prototype.$findNearestAnnotation=function(o){if(this.$isAnnotationVisible(o))return o;for(var r=0;o-r>0||o+r<this.lines.getLength()-1;){if(r++,o-r>=0&&this.$isAnnotationVisible(o-r))return o-r;if(o+r<=this.lines.getLength()-1&&this.$isAnnotationVisible(o+r))return o+r}return null},p.prototype.$focusFoldWidget=function(o){if(o!=null){var r=this.$getFoldWidget(o);r.classList.add(this.editor.renderer.keyboardFocusClassName),r.focus()}},p.prototype.$focusAnnotation=function(o){if(o!=null){var r=this.$getAnnotation(o);r.classList.add(this.editor.renderer.keyboardFocusClassName),r.focus()}},p.prototype.$blurFoldWidget=function(o){var r=this.$getFoldWidget(o);r.classList.remove(this.editor.renderer.keyboardFocusClassName),r.blur()},p.prototype.$blurAnnotation=function(o){var r=this.$getAnnotation(o);r.classList.remove(this.editor.renderer.keyboardFocusClassName),r.blur()},p.prototype.$moveFoldWidgetUp=function(){for(var o=this.activeRowIndex;o>0;)if(o--,this.$isFoldWidgetVisible(o)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=o,this.$focusFoldWidget(this.activeRowIndex);return}},p.prototype.$moveFoldWidgetDown=function(){for(var o=this.activeRowIndex;o<this.lines.getLength()-1;)if(o++,this.$isFoldWidgetVisible(o)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=o,this.$focusFoldWidget(this.activeRowIndex);return}},p.prototype.$moveAnnotationUp=function(){for(var o=this.activeRowIndex;o>0;)if(o--,this.$isAnnotationVisible(o)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=o,this.$focusAnnotation(this.activeRowIndex);return}},p.prototype.$moveAnnotationDown=function(){for(var o=this.activeRowIndex;o<this.lines.getLength()-1;)if(o++,this.$isAnnotationVisible(o)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=o,this.$focusAnnotation(this.activeRowIndex);return}},p.prototype.$switchLane=function(o){switch(o){case"annotation":if(this.activeLane==="annotation")break;var r=this.$findNearestAnnotation(this.activeRowIndex);if(r==null)break;this.activeLane="annotation",this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=r,this.$focusAnnotation(this.activeRowIndex);break;case"fold":if(this.activeLane==="fold")break;var a=this.$findNearestFoldWidget(this.activeRowIndex);if(a==null)break;this.activeLane="fold",this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=a,this.$focusFoldWidget(this.activeRowIndex);break}},p.prototype.$rowIndexToRow=function(o){var r=this.lines.get(o);return r?r.row:null},p.prototype.$rowToRowIndex=function(o){for(var r=0;r<this.lines.getLength();r++){var a=this.lines.get(r);if(a.row==o)return r}return null},p}();i.GutterKeyboardHandler=g;var s=function(){function p(o,r){this.gutterKeyboardHandler=r,this.domEvent=o}return p.prototype.getKey=function(){return u.keyCodeToString(this.domEvent.keyCode)},p.prototype.getRow=function(){return this.gutterKeyboardHandler.$rowIndexToRow(this.gutterKeyboardHandler.activeRowIndex)},p.prototype.isInAnnotationLane=function(){return this.gutterKeyboardHandler.activeLane==="annotation"},p.prototype.isInFoldLane=function(){return this.gutterKeyboardHandler.activeLane==="fold"},p}();i.GutterKeyboardEvent=s}),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,i,d){var u=this&&this.__values||function(C){var w=typeof Symbol=="function"&&Symbol.iterator,E=w&&C[w],L=0;if(E)return E.call(C);if(C&&typeof C.length=="number")return{next:function(){return C&&L>=C.length&&(C=void 0),{value:C&&C[L++],done:!C}}};throw new TypeError(w?"Object is not iterable.":"Symbol.iterator is not defined.")},h=n("./lib/oop"),g=n("./lib/dom"),s=n("./lib/lang"),p=n("./lib/useragent"),o=n("./keyboard/textinput").TextInput,r=n("./mouse/mouse_handler").MouseHandler,a=n("./mouse/fold_handler").FoldHandler,c=n("./keyboard/keybinding").KeyBinding,l=n("./edit_session").EditSession,f=n("./search").Search,m=n("./range").Range,v=n("./lib/event_emitter").EventEmitter,y=n("./commands/command_manager").CommandManager,k=n("./commands/default_commands").commands,S=n("./config"),_=n("./token_iterator").TokenIterator,$=n("./line_widgets").LineWidgets,R=n("./keyboard/gutter_handler").GutterKeyboardHandler,T=n("./config").nls,x=n("./clipboard"),M=n("./lib/keys"),b=function(){function C(w,E,L){this.session,this.$toDestroy=[];var O=w.getContainerElement();this.container=O,this.renderer=w,this.id="editor"+ ++C.$uid,this.commands=new y(p.isMac?"mac":"win",k),typeof document=="object"&&(this.textInput=new o(w.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new r(this),new a(this)),this.keyBinding=new c(this),this.$search=new f().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=s.delayedCall((function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}).bind(this)),this.on("change",function(I,F){F._$emitInputEvent.schedule(31)}),this.setSession(E||L&&L.session||new l("")),S.resetOptions(this),L&&this.setOptions(L),S._signal("editor",this)}return C.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=s.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)},C.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()},C.prototype.endOperation=function(w){if(this.curOp&&this.session){if(w&&w.returnValue===!1||!this.session)return this.curOp=null;if(w==!0&&this.curOp.command&&this.curOp.command.name=="mouse"||(this._signal("beforeEndOperation"),!this.curOp))return;var E=this.curOp.command,L=E&&E.scrollIntoView;if(L){switch(L){case"center-animate":L="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}L=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}var F=this.selection.toJSON();this.curOp.selectionAfter=F,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(F),this.prevOp=this.curOp,this.curOp=null}},C.prototype.$historyTracker=function(w){if(this.$mergeUndoDeltas){var E=this.prevOp,L=this.$mergeableCommands,O=E.command&&w.command.name==E.command.name;if(w.command.name=="insertstring"){var I=w.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),O=O&&this.mergeNextCommand&&(!/\s/.test(I)||/\s/.test(E.args)),this.mergeNextCommand=!0}else O=O&&L.indexOf(w.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(O=!1),O?this.session.mergeUndoDeltas=!0:L.indexOf(w.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},C.prototype.setKeyboardHandler=function(w,E){if(w&&typeof w=="string"&&w!="ace"){this.$keybindingId=w;var L=this;S.loadModule(["keybinding",w],function(O){L.$keybindingId==w&&L.keyBinding.setKeyboardHandler(O&&O.handler),E&&E()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(w),E&&E()},C.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},C.prototype.setSession=function(w){if(this.session!=w){this.curOp&&this.endOperation(),this.curOp={};var E=this.session;if(E){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var L=this.session.getSelection();L.off("changeCursor",this.$onCursorChange),L.off("changeSelection",this.$onSelectionChange)}this.session=w,w?(this.$onDocumentChange=this.onDocumentChange.bind(this),w.on("change",this.$onDocumentChange),this.renderer.setSession(w),this.$onChangeMode=this.onChangeMode.bind(this),w.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),w.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),w.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),w.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),w.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),w.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=w.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(w)),this._signal("changeSession",{session:w,oldSession:E}),this.curOp=null,E&&E._signal("changeEditor",{oldEditor:this}),w&&w._signal("changeEditor",{editor:this}),w&&!w.destroyed&&w.bgTokenizer.scheduleStart()}},C.prototype.getSession=function(){return this.session},C.prototype.setValue=function(w,E){return this.session.doc.setValue(w),E?E==1?this.navigateFileEnd():E==-1&&this.navigateFileStart():this.selectAll(),w},C.prototype.getValue=function(){return this.session.getValue()},C.prototype.getSelection=function(){return this.selection},C.prototype.resize=function(w){this.renderer.onResize(w)},C.prototype.setTheme=function(w,E){this.renderer.setTheme(w,E)},C.prototype.getTheme=function(){return this.renderer.getTheme()},C.prototype.setStyle=function(w){this.renderer.setStyle(w)},C.prototype.unsetStyle=function(w){this.renderer.unsetStyle(w)},C.prototype.getFontSize=function(){return this.getOption("fontSize")||g.computedStyle(this.container).fontSize},C.prototype.setFontSize=function(w){this.setOption("fontSize",w)},C.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var w=this;this.$highlightPending=!0,setTimeout(function(){w.$highlightPending=!1;var E=w.session;if(!(!E||E.destroyed)){E.$bracketHighlight&&(E.$bracketHighlight.markerIds.forEach(function(U){E.removeMarker(U)}),E.$bracketHighlight=null);var L=w.getCursorPosition(),O=w.getKeyboardHandler(),I=O&&O.$getDirectionForHighlight&&O.$getDirectionForHighlight(w),F=E.getMatchingBracketRanges(L,I);if(!F){var D=new _(E,L.row,L.column),W=D.getCurrentToken();if(W&&/\b(?:tag-open|tag-name)/.test(W.type)){var j=E.getMatchingTags(L);j&&(F=[j.openTagName,j.closeTagName])}}if(!F&&E.$mode.getMatching&&(F=E.$mode.getMatching(w.session)),!F){w.getHighlightIndentGuides()&&w.renderer.$textLayer.$highlightIndentGuide();return}var H="ace_bracket";Array.isArray(F)?F.length==1&&(H="ace_error_bracket"):F=[F],F.length==2&&(m.comparePoints(F[0].end,F[1].start)==0?F=[m.fromPoints(F[0].start,F[1].end)]:m.comparePoints(F[0].start,F[1].end)==0&&(F=[m.fromPoints(F[1].start,F[0].end)])),E.$bracketHighlight={ranges:F,markerIds:F.map(function(U){return E.addMarker(U,H,"text")})},w.getHighlightIndentGuides()&&w.renderer.$textLayer.$highlightIndentGuide()}},50)}},C.prototype.focus=function(){this.textInput.focus()},C.prototype.isFocused=function(){return this.textInput.isFocused()},C.prototype.blur=function(){this.textInput.blur()},C.prototype.onFocus=function(w){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",w))},C.prototype.onBlur=function(w){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",w))},C.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},C.prototype.onDocumentChange=function(w){var E=this.session.$useWrapMode,L=w.start.row==w.end.row?w.end.row:1/0;this.renderer.updateLines(w.start.row,L,E),this._signal("change",w),this.$cursorChange()},C.prototype.onTokenizerUpdate=function(w){var E=w.data;this.renderer.updateLines(E.first,E.last)},C.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},C.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},C.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},C.prototype.$updateHighlightActiveLine=function(){var w=this.getSession(),E;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(E=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(E=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(E=!1)),w.$highlightLineMarker&&!E)w.removeMarker(w.$highlightLineMarker.id),w.$highlightLineMarker=null;else if(!w.$highlightLineMarker&&E){var L=new m(E.row,E.column,E.row,1/0);L.id=w.addMarker(L,"ace_active-line","screenLine"),w.$highlightLineMarker=L}else E&&(w.$highlightLineMarker.start.row=E.row,w.$highlightLineMarker.end.row=E.row,w.$highlightLineMarker.start.column=E.column,w._signal("changeBackMarker"))},C.prototype.onSelectionChange=function(w){var E=this.session;if(E.$selectionMarker&&E.removeMarker(E.$selectionMarker),E.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var L=this.selection.getRange(),O=this.getSelectionStyle();E.$selectionMarker=E.addMarker(L,"ace_selection",O)}var I=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(I),this._signal("changeSelection")},C.prototype.$getSelectionHighLightRegexp=function(){var w=this.session,E=this.getSelectionRange();if(!(E.isEmpty()||E.isMultiLine())){var L=E.start.column,O=E.end.column,I=w.getLine(E.start.row),F=I.substring(L,O);if(!(F.length>5e3||!/[\w\d]/.test(F))){var D=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:F}),W=I.substring(L-1,O+1);if(D.test(W))return D}}},C.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},C.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},C.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},C.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},C.prototype.onChangeMode=function(w){this.renderer.updateText(),this._emit("changeMode",w)},C.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},C.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},C.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},C.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},C.prototype.getCopyText=function(){var w=this.getSelectedText(),E=this.session.doc.getNewLineCharacter(),L=!1;if(!w&&this.$copyWithEmptySelection){L=!0;for(var O=this.selection.getAllRanges(),I=0;I<O.length;I++){var F=O[I];I&&O[I-1].start.row==F.start.row||(w+=this.session.getLine(F.start.row)+E)}}var D={text:w};return this._signal("copy",D),x.lineMode=L?D.text:!1,D.text},C.prototype.onCopy=function(){this.commands.exec("copy",this)},C.prototype.onCut=function(){this.commands.exec("cut",this)},C.prototype.onPaste=function(w,E){var L={text:w,event:E};this.commands.exec("paste",this,L)},C.prototype.$handlePaste=function(w){typeof w=="string"&&(w={text:w}),this._signal("paste",w);var E=w.text,L=E===x.lineMode,O=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)L?O.insert({row:this.selection.lead.row,column:0},E):this.insert(E);else if(L)this.selection.rangeList.ranges.forEach(function(H){O.insert({row:H.start.row,column:0},E)});else{var I=E.split(/\r\n|\r|\n/),F=this.selection.rangeList.ranges,D=I.length==2&&(!I[0]||!I[1]);if(I.length!=F.length||D)return this.commands.exec("insertstring",this,E);for(var W=F.length;W--;){var j=F[W];j.isEmpty()||O.remove(j),O.insert(j.start,I[W])}}},C.prototype.execCommand=function(w,E){return this.commands.exec(w,this,E)},C.prototype.insert=function(w,E){var L=this.session,O=L.getMode(),I=this.getCursorPosition();if(this.getBehavioursEnabled()&&!E){var F=O.transformAction(L.getState(I.row),"insertion",this,L,w);F&&(w!==F.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),w=F.text)}if(w==" "&&(w=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&w.indexOf(`
1016
- `)==-1){var D=m.fromPoints(I,I);D.end.column+=w.length,this.session.remove(D)}}else{var D=this.getSelectionRange();I=this.session.remove(D),this.clearSelection()}if(w==`
1017
- `||w==`\r
1018
- `){var U=L.getLine(I.row);if(I.column>U.search(/\S|$/)){var W=U.substr(I.column).search(/\S|$/);L.doc.removeInLine(I.row,I.column,I.column+W)}}this.clearSelection();var j=I.column,H=L.getState(I.row),U=L.getLine(I.row),K=O.checkOutdent(H,U,w);if(L.insert(I,w),F&&F.selection&&(F.selection.length==2?this.selection.setSelectionRange(new m(I.row,j+F.selection[0],I.row,j+F.selection[1])):this.selection.setSelectionRange(new m(I.row+F.selection[0],F.selection[1],I.row+F.selection[2],F.selection[3]))),this.$enableAutoIndent){if(L.getDocument().isNewLine(w)){var Z=O.getNextLineIndent(H,U.slice(0,I.column),L.getTabString());L.insert({row:I.row+1,column:0},Z)}K&&O.autoOutdent(H,L,I.row)}},C.prototype.autoIndent=function(){var w=this.session,E=w.getMode(),L,O;if(this.selection.isEmpty())L=0,O=w.doc.getLength()-1;else{var I=this.getSelectionRange();L=I.start.row,O=I.end.row}for(var F="",D="",W="",j,H,U,K=w.getTabString(),Z=L;Z<=O;Z++)Z>0&&(F=w.getState(Z-1),D=w.getLine(Z-1),W=E.getNextLineIndent(F,D,K)),j=w.getLine(Z),H=E.$getIndent(j),W!==H&&(H.length>0&&(U=new m(Z,0,Z,H.length),w.remove(U)),W.length>0&&w.insert({row:Z,column:0},W)),E.autoOutdent(F,w,Z)},C.prototype.onTextInput=function(w,E){if(!E)return this.keyBinding.onTextInput(w);this.startOperation({command:{name:"insertstring"}});var L=this.applyComposition.bind(this,w,E);this.selection.rangeCount?this.forEachSelection(L):L(),this.endOperation()},C.prototype.applyComposition=function(w,E){if(E.extendLeft||E.extendRight){var L=this.selection.getRange();L.start.column-=E.extendLeft,L.end.column+=E.extendRight,L.start.column<0&&(L.start.row--,L.start.column+=this.session.getLine(L.start.row).length+1),this.selection.setRange(L),!w&&!L.isEmpty()&&this.remove()}if((w||!this.selection.isEmpty())&&this.insert(w,!0),E.restoreStart||E.restoreEnd){var L=this.selection.getRange();L.start.column-=E.restoreStart,L.end.column-=E.restoreEnd,this.selection.setRange(L)}},C.prototype.onCommandKey=function(w,E,L){return this.keyBinding.onCommandKey(w,E,L)},C.prototype.setOverwrite=function(w){this.session.setOverwrite(w)},C.prototype.getOverwrite=function(){return this.session.getOverwrite()},C.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},C.prototype.setScrollSpeed=function(w){this.setOption("scrollSpeed",w)},C.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},C.prototype.setDragDelay=function(w){this.setOption("dragDelay",w)},C.prototype.getDragDelay=function(){return this.getOption("dragDelay")},C.prototype.setSelectionStyle=function(w){this.setOption("selectionStyle",w)},C.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},C.prototype.setHighlightActiveLine=function(w){this.setOption("highlightActiveLine",w)},C.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},C.prototype.setHighlightGutterLine=function(w){this.setOption("highlightGutterLine",w)},C.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},C.prototype.setHighlightSelectedWord=function(w){this.setOption("highlightSelectedWord",w)},C.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},C.prototype.setAnimatedScroll=function(w){this.renderer.setAnimatedScroll(w)},C.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},C.prototype.setShowInvisibles=function(w){this.renderer.setShowInvisibles(w)},C.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},C.prototype.setDisplayIndentGuides=function(w){this.renderer.setDisplayIndentGuides(w)},C.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},C.prototype.setHighlightIndentGuides=function(w){this.renderer.setHighlightIndentGuides(w)},C.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},C.prototype.setShowPrintMargin=function(w){this.renderer.setShowPrintMargin(w)},C.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},C.prototype.setPrintMarginColumn=function(w){this.renderer.setPrintMarginColumn(w)},C.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},C.prototype.setReadOnly=function(w){this.setOption("readOnly",w)},C.prototype.getReadOnly=function(){return this.getOption("readOnly")},C.prototype.setBehavioursEnabled=function(w){this.setOption("behavioursEnabled",w)},C.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},C.prototype.setWrapBehavioursEnabled=function(w){this.setOption("wrapBehavioursEnabled",w)},C.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},C.prototype.setShowFoldWidgets=function(w){this.setOption("showFoldWidgets",w)},C.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},C.prototype.setFadeFoldWidgets=function(w){this.setOption("fadeFoldWidgets",w)},C.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},C.prototype.remove=function(w){this.selection.isEmpty()&&(w=="left"?this.selection.selectLeft():this.selection.selectRight());var E=this.getSelectionRange();if(this.getBehavioursEnabled()){var L=this.session,O=L.getState(E.start.row),I=L.getMode().transformAction(O,"deletion",this,L,E);if(E.end.column===0){var F=L.getTextRange(E);if(F[F.length-1]==`
1019
- `){var D=L.getLine(E.end.row);/^\s+$/.test(D)&&(E.end.column=D.length)}}I&&(E=I)}this.session.remove(E),this.clearSelection()},C.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},C.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},C.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},C.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()},C.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var w=this.getCursorPosition();this.insert(`
1020
- `),this.moveCursorToPosition(w)},C.prototype.setGhostText=function(w,E){this.session.widgetManager||(this.session.widgetManager=new $(this.session),this.session.widgetManager.attach(this)),this.renderer.setGhostText(w,E)},C.prototype.removeGhostText=function(){this.session.widgetManager&&this.renderer.removeGhostText()},C.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var w=this.getCursorPosition(),E=w.column;if(E!==0){var L=this.session.getLine(w.row),O,I;E<L.length?(O=L.charAt(E)+L.charAt(E-1),I=new m(w.row,E-1,w.row,E+1)):(O=L.charAt(E-1)+L.charAt(E-2),I=new m(w.row,E-2,w.row,E)),this.session.replace(I,O),this.session.selection.moveToPosition(I.end)}}},C.prototype.toLowerCase=function(){var w=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var E=this.getSelectionRange(),L=this.session.getTextRange(E);this.session.replace(E,L.toLowerCase()),this.selection.setSelectionRange(w)},C.prototype.toUpperCase=function(){var w=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var E=this.getSelectionRange(),L=this.session.getTextRange(E);this.session.replace(E,L.toUpperCase()),this.selection.setSelectionRange(w)},C.prototype.indent=function(){var w=this.session,E=this.getSelectionRange();if(E.start.row<E.end.row){var L=this.$getSelectedRows();w.indentRows(L.first,L.last," ");return}else if(E.start.column<E.end.column){var O=w.getTextRange(E);if(!/^\s+$/.test(O)){var L=this.$getSelectedRows();w.indentRows(L.first,L.last," ");return}}var I=w.getLine(E.start.row),F=E.start,D=w.getTabSize(),W=w.documentToScreenColumn(F.row,F.column);if(this.session.getUseSoftTabs())var j=D-W%D,H=s.stringRepeat(" ",j);else{for(var j=W%D;I[E.start.column-1]==" "&&j;)E.start.column--,j--;this.selection.setSelectionRange(E),H=" "}return this.insert(H)},C.prototype.blockIndent=function(){var w=this.$getSelectedRows();this.session.indentRows(w.first,w.last," ")},C.prototype.blockOutdent=function(){var w=this.session.getSelection();this.session.outdentRows(w.getRange())},C.prototype.sortLines=function(){for(var w=this.$getSelectedRows(),E=this.session,L=[],O=w.first;O<=w.last;O++)L.push(E.getLine(O));L.sort(function(D,W){return D.toLowerCase()<W.toLowerCase()?-1:D.toLowerCase()>W.toLowerCase()?1:0});for(var I=new m(0,0,0,0),O=w.first;O<=w.last;O++){var F=E.getLine(O);I.start.row=O,I.end.row=O,I.end.column=F.length,E.replace(I,L[O-w.first])}},C.prototype.toggleCommentLines=function(){var w=this.session.getState(this.getCursorPosition().row),E=this.$getSelectedRows();this.session.getMode().toggleCommentLines(w,this.session,E.first,E.last)},C.prototype.toggleBlockComment=function(){var w=this.getCursorPosition(),E=this.session.getState(w.row),L=this.getSelectionRange();this.session.getMode().toggleBlockComment(E,this.session,L,w)},C.prototype.getNumberAt=function(w,E){var L=/[\-]?[0-9]+(?:\.[0-9]+)?/g;L.lastIndex=0;for(var O=this.session.getLine(w);L.lastIndex<E;){var I=L.exec(O);if(I.index<=E&&I.index+I[0].length>=E){var F={value:I[0],start:I.index,end:I.index+I[0].length};return F}}return null},C.prototype.modifyNumber=function(w){var E=this.selection.getCursor().row,L=this.selection.getCursor().column,O=new m(E,L-1,E,L),I=this.session.getTextRange(O);if(!isNaN(parseFloat(I))&&isFinite(I)){var F=this.getNumberAt(E,L);if(F){var D=F.value.indexOf(".")>=0?F.start+F.value.indexOf(".")+1:F.end,W=F.start+F.value.length-D,j=parseFloat(F.value);j*=Math.pow(10,W),D!==F.end&&L<D?w*=Math.pow(10,F.end-L-1):w*=Math.pow(10,F.end-L),j+=w,j/=Math.pow(10,W);var H=j.toFixed(W),U=new m(E,F.start,E,F.end);this.session.replace(U,H),this.moveCursorTo(E,Math.max(F.start+1,L+H.length-F.value.length))}}else this.toggleWord()},C.prototype.toggleWord=function(){var w=this.selection.getCursor().row,E=this.selection.getCursor().column;this.selection.selectWord();var L=this.getSelectedText(),O=this.selection.getWordRange().start.column,I=L.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),F=E-O-1;F<0&&(F=0);var D=0,W=0,j=this;L.match(/[A-Za-z0-9_]+/)&&I.forEach(function(ee,P){W=D+ee.length,F>=D&&F<=W&&(L=ee,j.selection.clearSelection(),j.moveCursorTo(w,D+O),j.selection.selectTo(w,W+O)),D=W});for(var H=this.$toggleWordPairs,U,K=0;K<H.length;K++)for(var Z=H[K],z=0;z<=1;z++){var X=+!z,Y=L.match(new RegExp("^\\s?_?("+s.escapeRegExp(Z[z])+")\\s?$","i"));if(Y){var V=L.match(new RegExp("([_]|^|\\s)("+s.escapeRegExp(Y[1])+")($|\\s)","g"));V&&(U=L.replace(new RegExp(s.escapeRegExp(Z[z]),"i"),function(ee){var P=Z[X];return ee.toUpperCase()==ee?P=P.toUpperCase():ee.charAt(0).toUpperCase()==ee.charAt(0)&&(P=P.substr(0,0)+Z[X].charAt(0).toUpperCase()+P.substr(1)),P}),this.insert(U),U="")}}},C.prototype.findLinkAt=function(w,E){var L,O,I=this.session.getLine(w),F=I.split(/((?:https?|ftp):\/\/[\S]+)/),D=E;D<0&&(D=0);var W=0,j=0,H;try{for(var U=u(F),K=U.next();!K.done;K=U.next()){var Z=K.value;if(j=W+Z.length,D>=W&&D<=j&&Z.match(/((?:https?|ftp):\/\/[\S]+)/)){H=Z.replace(/[\s:.,'";}\]]+$/,"");break}W=j}}catch(z){L={error:z}}finally{try{K&&!K.done&&(O=U.return)&&O.call(U)}finally{if(L)throw L.error}}return H},C.prototype.openLink=function(){var w=this.selection.getCursor(),E=this.findLinkAt(w.row,w.column);return E&&window.open(E,"_blank"),E!=null},C.prototype.removeLines=function(){var w=this.$getSelectedRows();this.session.removeFullLines(w.first,w.last),this.clearSelection()},C.prototype.duplicateSelection=function(){var w=this.selection,E=this.session,L=w.getRange(),O=w.isBackwards();if(L.isEmpty()){var I=L.start.row;E.duplicateLines(I,I)}else{var F=O?L.start:L.end,D=E.insert(F,E.getTextRange(L));L.start=F,L.end=D,w.setSelectionRange(L,O)}},C.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},C.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},C.prototype.moveText=function(w,E,L){return this.session.moveText(w,E,L)},C.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},C.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},C.prototype.$moveLines=function(w,E){var L,O,I=this.selection;if(!I.inMultiSelectMode||this.inVirtualSelectionMode){var F=I.toOrientedRange();L=this.$getSelectedRows(F),O=this.session.$moveLines(L.first,L.last,E?0:w),E&&w==-1&&(O=0),F.moveBy(O,0),I.fromOrientedRange(F)}else{var D=I.rangeList.ranges;I.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var W=0,j=0,H=D.length,U=0;U<H;U++){var K=U;D[U].moveBy(W,0),L=this.$getSelectedRows(D[U]);for(var Z=L.first,z=L.last;++U<H;){j&&D[U].moveBy(j,0);var X=this.$getSelectedRows(D[U]);if(E&&X.first!=z)break;if(!E&&X.first>z+1)break;z=X.last}for(U--,W=this.session.$moveLines(Z,z,E?0:w),E&&w==-1&&(K=U+1);K<=U;)D[K].moveBy(W,0),K++;E||(W=0),j+=W}I.fromOrientedRange(I.ranges[0]),I.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},C.prototype.$getSelectedRows=function(w){return w=(w||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(w.start.row),last:this.session.getRowFoldEnd(w.end.row)}},C.prototype.onCompositionStart=function(w){this.renderer.showComposition(w)},C.prototype.onCompositionUpdate=function(w){this.renderer.setCompositionText(w)},C.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},C.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},C.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},C.prototype.isRowVisible=function(w){return w>=this.getFirstVisibleRow()&&w<=this.getLastVisibleRow()},C.prototype.isRowFullyVisible=function(w){return w>=this.renderer.getFirstFullyVisibleRow()&&w<=this.renderer.getLastFullyVisibleRow()},C.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},C.prototype.$moveByPage=function(w,E){var L=this.renderer,O=this.renderer.layerConfig,I=w*Math.floor(O.height/O.lineHeight);E===!0?this.selection.$moveSelection(function(){this.moveCursorBy(I,0)}):E===!1&&(this.selection.moveCursorBy(I,0),this.selection.clearSelection());var F=L.scrollTop;L.scrollBy(0,I*O.lineHeight),E!=null&&L.scrollCursorIntoView(null,.5),L.animateScrolling(F)},C.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},C.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},C.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},C.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},C.prototype.scrollPageDown=function(){this.$moveByPage(1)},C.prototype.scrollPageUp=function(){this.$moveByPage(-1)},C.prototype.scrollToRow=function(w){this.renderer.scrollToRow(w)},C.prototype.scrollToLine=function(w,E,L,O){this.renderer.scrollToLine(w,E,L,O)},C.prototype.centerSelection=function(){var w=this.getSelectionRange(),E={row:Math.floor(w.start.row+(w.end.row-w.start.row)/2),column:Math.floor(w.start.column+(w.end.column-w.start.column)/2)};this.renderer.alignCursor(E,.5)},C.prototype.getCursorPosition=function(){return this.selection.getCursor()},C.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},C.prototype.getSelectionRange=function(){return this.selection.getRange()},C.prototype.selectAll=function(){this.selection.selectAll()},C.prototype.clearSelection=function(){this.selection.clearSelection()},C.prototype.moveCursorTo=function(w,E){this.selection.moveCursorTo(w,E)},C.prototype.moveCursorToPosition=function(w){this.selection.moveCursorToPosition(w)},C.prototype.jumpToMatching=function(w,E){var L=this.getCursorPosition(),O=new _(this.session,L.row,L.column),I=O.getCurrentToken(),F=0;I&&I.type.indexOf("tag-name")!==-1&&(I=O.stepBackward());var D=I||O.stepForward();if(D){var W,j=!1,H={},U=L.column-D.start,K,Z={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(D.value.match(/[{}()\[\]]/g)){for(;U<D.value.length&&!j;U++)if(Z[D.value[U]])switch(K=Z[D.value[U]]+"."+D.type.replace("rparen","lparen"),isNaN(H[K])&&(H[K]=0),D.value[U]){case"(":case"[":case"{":H[K]++;break;case")":case"]":case"}":H[K]--,H[K]===-1&&(W="bracket",j=!0);break}}else D.type.indexOf("tag-name")!==-1&&(isNaN(H[D.value])&&(H[D.value]=0),I.value==="<"&&F>1?H[D.value]++:I.value==="</"&&H[D.value]--,H[D.value]===-1&&(W="tag",j=!0));j||(I=D,F++,D=O.stepForward(),U=0)}while(D&&!j);if(W){var z,X;if(W==="bracket")z=this.session.getBracketRange(L),z||(z=new m(O.getCurrentTokenRow(),O.getCurrentTokenColumn()+U-1,O.getCurrentTokenRow(),O.getCurrentTokenColumn()+U-1),X=z.start,(E||X.row===L.row&&Math.abs(X.column-L.column)<2)&&(z=this.session.getBracketRange(X)));else if(W==="tag"){if(!D||D.type.indexOf("tag-name")===-1)return;if(z=new m(O.getCurrentTokenRow(),O.getCurrentTokenColumn()-2,O.getCurrentTokenRow(),O.getCurrentTokenColumn()-2),z.compare(L.row,L.column)===0){var Y=this.session.getMatchingTags(L);Y&&(Y.openTag.contains(L.row,L.column)?(z=Y.closeTag,X=z.start):(z=Y.openTag,Y.closeTag.start.row===L.row&&Y.closeTag.start.column===L.column?X=z.end:X=z.start))}X=X||z.start}X=z&&z.cursor||X,X&&(w?z&&E?this.selection.setRange(z):z&&z.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(X.row,X.column):this.selection.moveTo(X.row,X.column))}}},C.prototype.gotoLine=function(w,E,L){this.selection.clearSelection(),this.session.unfold({row:w-1,column:E||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(w-1,E||0),this.isRowFullyVisible(w-1)||this.scrollToLine(w-1,!0,L)},C.prototype.navigateTo=function(w,E){this.selection.moveTo(w,E)},C.prototype.navigateUp=function(w){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var E=this.selection.anchor.getPosition();return this.moveCursorToPosition(E)}this.selection.clearSelection(),this.selection.moveCursorBy(-w||-1,0)},C.prototype.navigateDown=function(w){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var E=this.selection.anchor.getPosition();return this.moveCursorToPosition(E)}this.selection.clearSelection(),this.selection.moveCursorBy(w||1,0)},C.prototype.navigateLeft=function(w){if(this.selection.isEmpty())for(w=w||1;w--;)this.selection.moveCursorLeft();else{var E=this.getSelectionRange().start;this.moveCursorToPosition(E)}this.clearSelection()},C.prototype.navigateRight=function(w){if(this.selection.isEmpty())for(w=w||1;w--;)this.selection.moveCursorRight();else{var E=this.getSelectionRange().end;this.moveCursorToPosition(E)}this.clearSelection()},C.prototype.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},C.prototype.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},C.prototype.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},C.prototype.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},C.prototype.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},C.prototype.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},C.prototype.replace=function(w,E){E&&this.$search.set(E);var L=this.$search.find(this.session),O=0;return L&&(this.$tryReplace(L,w)&&(O=1),this.selection.setSelectionRange(L),this.renderer.scrollSelectionIntoView(L.start,L.end)),O},C.prototype.replaceAll=function(w,E){E&&this.$search.set(E);var L=this.$search.findAll(this.session),O=0;if(!L.length)return O;var I=this.getSelectionRange();this.selection.moveTo(0,0);for(var F=L.length-1;F>=0;--F)this.$tryReplace(L[F],w)&&O++;return this.selection.setSelectionRange(I),O},C.prototype.$tryReplace=function(w,E){var L=this.session.getTextRange(w);return E=this.$search.replace(L,E),E!==null?(w.end=this.session.replace(w,E),w):null},C.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},C.prototype.find=function(w,E,L){E||(E={}),typeof w=="string"||w instanceof RegExp?E.needle=w:typeof w=="object"&&h.mixin(E,w);var O=this.selection.getRange();E.needle==null&&(w=this.session.getTextRange(O)||this.$search.$options.needle,w||(O=this.session.getWordRange(O.start.row,O.start.column),w=this.session.getTextRange(O)),this.$search.set({needle:w})),this.$search.set(E),E.start||this.$search.set({start:O});var I=this.$search.find(this.session);if(E.preventScroll)return I;if(I)return this.revealRange(I,L),I;E.backwards?O.start=O.end:O.end=O.start,this.selection.setRange(O)},C.prototype.findNext=function(w,E){this.find({skipCurrent:!0,backwards:!1},w,E)},C.prototype.findPrevious=function(w,E){this.find(w,{skipCurrent:!0,backwards:!0},E)},C.prototype.revealRange=function(w,E){this.session.unfold(w),this.selection.setSelectionRange(w);var L=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(w.start,w.end,.5),E!==!1&&this.renderer.animateScrolling(L)},C.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},C.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},C.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()},C.prototype.setAutoScrollEditorIntoView=function(w){if(w){var E,L=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 F=this.on("changeSelection",function(){O=!0}),D=this.renderer.on("beforeRender",function(){O&&(E=L.renderer.container.getBoundingClientRect())}),W=this.renderer.on("afterRender",function(){if(O&&E&&(L.isFocused()||L.searchBox&&L.searchBox.isFocused())){var j=L.renderer,H=j.$cursorLayer.$pixelPos,U=j.layerConfig,K=H.top-U.offset;H.top>=0&&K+E.top<0?O=!0:H.top<U.height&&H.top+E.top+U.lineHeight>window.innerHeight?O=!1:O=null,O!=null&&(I.style.top=K+"px",I.style.left=H.left+"px",I.style.height=U.lineHeight+"px",I.scrollIntoView(O)),O=E=null}});this.setAutoScrollEditorIntoView=function(j){j||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",F),this.renderer.off("afterRender",W),this.renderer.off("beforeRender",D))}}},C.prototype.$resetCursorStyle=function(){var w=this.$cursorStyle||"ace",E=this.renderer.$cursorLayer;E&&(E.setSmoothBlinking(/smooth/.test(w)),E.isBlinking=!this.$readOnly&&w!="wide",g.setCssClass(E.element,"ace_slim-cursors",/slim/.test(w)))},C.prototype.prompt=function(w,E,L){var O=this;S.loadModule("ace/ext/prompt",function(I){I.prompt(O,w,E,L)})},C}();b.$uid=0,b.prototype.curOp=null,b.prototype.prevOp={},b.prototype.$mergeableCommands=["backspace","del","insertstring"],b.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"],["&&","||"],["==","!="]],h.implement(b.prototype,v),S.defineOptions(b.prototype,"editor",{selectionStyle:{set:function(C){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:C})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(C){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(C){this.textInput.setReadOnly(C),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(C){this.textInput.setCopyWithEmptySelection(C)},initialValue:!1},cursorStyle:{set:function(C){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(C){this.setAutoScrollEditorIntoView(C)}},keyboardHandler:{set:function(C){this.setKeyboardHandler(C)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(C){this.session.setValue(C)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(C){this.setSession(C)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(C){this.renderer.$gutterLayer.setShowLineNumbers(C),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),C&&this.$relativeLineNumbers?A.attach(this):A.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(C){this.$showLineNumbers&&C?A.attach(this):A.detach(this)}},placeholder:{set:function(C){this.$updatePlaceholder||(this.$updatePlaceholder=(function(){var w=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(w&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),g.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(!w&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),g.addCssClass(this.container,"ace_hasPlaceholder");var E=g.createElement("div");E.className="ace_placeholder",E.textContent=this.$placeholder||"",this.renderer.placeholderNode=E,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!w&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}).bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(C){var w={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(O){O.blur(),O.renderer.scroller.focus()},readOnly:!0},E=function(O){if(O.target==this.renderer.scroller&&O.keyCode===M.enter){O.preventDefault();var I=this.getCursorPosition().row;this.isRowVisible(I)||this.scrollToLine(I,!0,!0),this.focus()}},L;C?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(p.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",T("editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",T("Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",E.bind(this)),this.commands.addCommand(w),this.renderer.$gutter.setAttribute("tabindex",0),this.renderer.$gutter.setAttribute("aria-hidden",!1),this.renderer.$gutter.setAttribute("role","group"),this.renderer.$gutter.setAttribute("aria-roledescription",T("editor")),this.renderer.$gutter.setAttribute("aria-label",T("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),L||(L=new R(this)),L.addListener()):(this.renderer.enableKeyboardAccessibility=!1,this.textInput.getElement().setAttribute("tabindex",0),this.textInput.setNumberOfExtraLines(0),this.renderer.scroller.setAttribute("tabindex",-1),this.renderer.scroller.removeAttribute("role"),this.renderer.scroller.removeAttribute("aria-roledescription"),this.renderer.scroller.classList.remove(this.renderer.keyboardFocusClassName),this.renderer.scroller.removeAttribute("aria-label"),this.renderer.scroller.removeEventListener("keyup",E.bind(this)),this.commands.removeCommand(w),this.renderer.content.removeAttribute("aria-hidden"),this.renderer.$gutter.setAttribute("tabindex",-1),this.renderer.$gutter.setAttribute("aria-hidden",!0),this.renderer.$gutter.removeAttribute("role"),this.renderer.$gutter.removeAttribute("aria-roledescription"),this.renderer.$gutter.removeAttribute("aria-label"),this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName),L&&L.removeListener())},initialValue:!1},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",useResizeObserver:"renderer",useSvgGutterIcons:"renderer",showFoldedAnnotations:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var A={getText:function(C,w){return(Math.abs(C.selection.lead.row-w)||w+1+(w<9?"·":""))+""},getWidth:function(C,w,E){return Math.max(w.toString().length,(E.lastRow+1).toString().length,2)*E.characterWidth},update:function(C,w){w.renderer.$loop.schedule(w.renderer.CHANGE_GUTTER)},attach:function(C){C.renderer.$gutterLayer.$renderer=this,C.on("changeSelection",this.update),this.update(null,C)},detach:function(C){C.renderer.$gutterLayer.$renderer==this&&(C.renderer.$gutterLayer.$renderer=null),C.off("changeSelection",this.update),this.update(null,C)}};i.Editor=b}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(n,i,d){var u=n("../lib/dom"),h=function(){function g(s,p){this.element=s,this.canvasHeight=p||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return g.prototype.moveContainer=function(s){u.translate(this.element,0,-(s.firstRowScreen*s.lineHeight%this.canvasHeight)-s.offset*this.$offsetCoefficient)},g.prototype.pageChanged=function(s,p){return Math.floor(s.firstRowScreen*s.lineHeight/this.canvasHeight)!==Math.floor(p.firstRowScreen*p.lineHeight/this.canvasHeight)},g.prototype.computeLineTop=function(s,p,o){var r=p.firstRowScreen*p.lineHeight,a=Math.floor(r/this.canvasHeight),c=o.documentToScreenRow(s,0)*p.lineHeight;return c-a*this.canvasHeight},g.prototype.computeLineHeight=function(s,p,o){return p.lineHeight*o.getRowLineCount(s)},g.prototype.getLength=function(){return this.cells.length},g.prototype.get=function(s){return this.cells[s]},g.prototype.shift=function(){this.$cacheCell(this.cells.shift())},g.prototype.pop=function(){this.$cacheCell(this.cells.pop())},g.prototype.push=function(s){if(Array.isArray(s)){this.cells.push.apply(this.cells,s);for(var p=u.createFragment(this.element),o=0;o<s.length;o++)p.appendChild(s[o].element);this.element.appendChild(p)}else this.cells.push(s),this.element.appendChild(s.element)},g.prototype.unshift=function(s){if(Array.isArray(s)){this.cells.unshift.apply(this.cells,s);for(var p=u.createFragment(this.element),o=0;o<s.length;o++)p.appendChild(s[o].element);this.element.firstChild?this.element.insertBefore(p,this.element.firstChild):this.element.appendChild(p)}else this.cells.unshift(s),this.element.insertAdjacentElement("afterbegin",s.element)},g.prototype.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},g.prototype.$cacheCell=function(s){s&&(s.element.remove(),this.cellCache.push(s))},g.prototype.createCell=function(s,p,o,r){var a=this.cellCache.pop();if(!a){var c=u.createElement("div");r&&r(c),this.element.appendChild(c),a={element:c,text:"",row:s}}return a.row=s,a},g}();i.Lines=h}),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,i,d){var u=n("../lib/dom"),h=n("../lib/oop"),g=n("../lib/lang"),s=n("../lib/event_emitter").EventEmitter,p=n("./lines").Lines,o=n("../config").nls,r=function(){function c(l){this.element=u.createElement("div"),this.element.className="ace_layer ace_gutter-layer",l.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new p(this.element),this.$lines.$offsetCoefficient=1}return c.prototype.setSession=function(l){this.session&&this.session.off("change",this.$updateAnnotations),this.session=l,l&&l.on("change",this.$updateAnnotations)},c.prototype.addGutterDecoration=function(l,f){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(l,f)},c.prototype.removeGutterDecoration=function(l,f){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(l,f)},c.prototype.setAnnotations=function(l){this.$annotations=[];for(var f=0;f<l.length;f++){var m=l[f],v=m.row,y=this.$annotations[v];y||(y=this.$annotations[v]={text:[],type:[]});var k=m.text,S=m.type;k=k?g.escapeHTML(k):m.html||"",y.text.indexOf(k)===-1&&(y.text.push(k),y.type.push(S));var _=m.className;_?y.className=_:S=="error"?y.className=" ace_error":S=="warning"&&y.className!=" ace_error"?y.className=" ace_warning":S=="info"&&!y.className&&(y.className=" ace_info")}},c.prototype.$updateAnnotations=function(l){if(this.$annotations.length){var f=l.start.row,m=l.end.row-f;if(m!==0)if(l.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)}}},c.prototype.update=function(l){this.config=l;var f=this.session,m=l.firstRow,v=Math.min(l.lastRow+l.gutterOffset,f.getLength()-1);this.oldLastRow=v,this.config=l,this.$lines.moveContainer(l),this.$updateCursorRow();for(var y=f.getNextFoldLine(m),k=y?y.start.row:1/0,S=null,_=-1,$=m;;){if($>k&&($=y.end.row+1,y=f.getNextFoldLine($,y),k=y?y.start.row:1/0),$>v){for(;this.$lines.getLength()>_+1;)this.$lines.pop();break}S=this.$lines.get(++_),S?S.row=$:(S=this.$lines.createCell($,l,this.session,a),this.$lines.push(S)),this.$renderCell(S,l,y,$),$++}this._signal("afterRender"),this.$updateGutterWidth(l)},c.prototype.$updateGutterWidth=function(l){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 k=m?m.getWidth(f,y,l):y.toString().length*l.characterWidth,S=this.$padding||this.$computePadding();k+=S.left+S.right,k!==this.gutterWidth&&!isNaN(k)&&(this.gutterWidth=k,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",k))},c.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var l=this.session.selection.getCursor();this.$cursorRow!==l.row&&(this.$cursorRow=l.row)}},c.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var l=this.session.selection.cursor.row;if(this.$cursorRow=l,!(this.$cursorCell&&this.$cursorCell.row==l)){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}}}}},c.prototype.scrollLines=function(l){var f=this.config;if(this.config=l,this.$updateCursorRow(),this.$lines.pageChanged(f,l))return this.update(l);this.$lines.moveContainer(l);var m=Math.min(l.lastRow+l.gutterOffset,this.session.getLength()-1),v=this.oldLastRow;if(this.oldLastRow=m,!f||v<l.firstRow)return this.update(l);if(m<f.firstRow)return this.update(l);if(f.firstRow<l.firstRow)for(var y=this.session.getFoldedRowCount(f.firstRow,l.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();l.firstRow<f.firstRow&&this.$lines.unshift(this.$renderLines(l,l.firstRow,f.firstRow-1)),m>v&&this.$lines.push(this.$renderLines(l,v+1,m)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(l)},c.prototype.$renderLines=function(l,f,m){for(var v=[],y=f,k=this.session.getNextFoldLine(y),S=k?k.start.row:1/0;y>S&&(y=k.end.row+1,k=this.session.getNextFoldLine(y,k),S=k?k.start.row:1/0),!(y>m);){var _=this.$lines.createCell(y,l,this.session,a);this.$renderCell(_,l,k,y),v.push(_),y++}return v},c.prototype.$renderCell=function(l,f,m,v){var y=l.element,k=this.session,S=y.childNodes[0],_=y.childNodes[1],$=y.childNodes[2],R=$.firstChild,T=k.$firstLineNumber,x=k.$breakpoints,M=k.$decorations,b=k.gutterRenderer||this.$renderer,A=this.$showFoldWidgets&&k.foldWidgets,C=m?m.start.row:Number.MAX_VALUE,w=f.lineHeight+"px",E=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",L=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",O=(b?b.getText(k,v):v+T).toString();if(this.$highlightGutterLine&&(v==this.$cursorRow||m&&v<this.$cursorRow&&v>=C&&this.$cursorRow<=m.end.row)&&(E+="ace_gutter-active-line ",this.$cursorCell!=l&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=l)),x[v]&&(E+=x[v]),M[v]&&(E+=M[v]),this.$annotations[v]&&v!==C&&(E+=this.$annotations[v].className),A){var I=A[v];I==null&&(I=A[v]=k.getFoldWidget(v))}if(I){var F="ace_fold-widget ace_"+I,D=I=="start"&&v==C&&v<m.end.row;if(D){F+=" ace_closed";for(var W="",j=!1,H=v+1;H<=m.end.row;H++)if(this.$annotations[H]){if(this.$annotations[H].className===" ace_error"){j=!0,W=" ace_error_fold";break}if(this.$annotations[H].className===" ace_warning"){j=!0,W=" ace_warning_fold";continue}}E+=W}else F+=" ace_open";_.className!=F&&(_.className=F),u.setStyle(_.style,"height",w),u.setStyle(_.style,"display","inline-block"),_.setAttribute("role","button"),_.setAttribute("tabindex","-1");var U=k.getFoldWidgetRange(v);U?_.setAttribute("aria-label",o("Toggle code folding, rows $0 through $1",[U.start.row+1,U.end.row+1])):m?_.setAttribute("aria-label",o("Toggle code folding, rows $0 through $1",[m.start.row+1,m.end.row+1])):_.setAttribute("aria-label",o("Toggle code folding, row $0",[v+1])),D?(_.setAttribute("aria-expanded","false"),_.setAttribute("title",o("Unfold code"))):(_.setAttribute("aria-expanded","true"),_.setAttribute("title",o("Fold code")))}else _&&(u.setStyle(_.style,"display","none"),_.setAttribute("tabindex","0"),_.removeAttribute("role"),_.removeAttribute("aria-label"));return j&&this.$showFoldedAnnotations?($.className="ace_gutter_annotation",R.className=L,R.className+=W,u.setStyle(R.style,"height",w),u.setStyle($.style,"display","block"),u.setStyle($.style,"height",w),$.setAttribute("aria-label",o("Read annotations row $0",[O])),$.setAttribute("tabindex","-1"),$.setAttribute("role","button")):this.$annotations[v]?($.className="ace_gutter_annotation",R.className=L,this.$useSvgGutterIcons?R.className+=this.$annotations[v].className:y.classList.add(this.$annotations[v].className.replace(" ","")),u.setStyle(R.style,"height",w),u.setStyle($.style,"display","block"),u.setStyle($.style,"height",w),$.setAttribute("aria-label",o("Read annotations row $0",[O])),$.setAttribute("tabindex","-1"),$.setAttribute("role","button")):(u.setStyle($.style,"display","none"),$.removeAttribute("aria-label"),$.removeAttribute("role"),$.setAttribute("tabindex","0")),O!==S.data&&(S.data=O),y.className!=E&&(y.className=E),u.setStyle(l.element.style,"height",this.$lines.computeLineHeight(v,f,k)+"px"),u.setStyle(l.element.style,"top",this.$lines.computeLineTop(v,f,k)+"px"),l.text=O,$.style.display==="none"&&_.style.display==="none"?l.element.setAttribute("aria-hidden",!0):l.element.setAttribute("aria-hidden",!1),l},c.prototype.setHighlightGutterLine=function(l){this.$highlightGutterLine=l},c.prototype.setShowLineNumbers=function(l){this.$renderer=!l&&{getWidth:function(){return 0},getText:function(){return""}}},c.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},c.prototype.setShowFoldWidgets=function(l){l?u.addCssClass(this.element,"ace_folding-enabled"):u.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=l,this.$padding=null},c.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},c.prototype.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var l=u.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(l.borderLeftWidth)||0)+(parseInt(l.paddingLeft)||0)+1,this.$padding.right=(parseInt(l.borderRightWidth)||0)+(parseInt(l.paddingRight)||0),this.$padding},c.prototype.getRegion=function(l){var f=this.$padding||this.$computePadding(),m=this.element.getBoundingClientRect();if(l.x<f.left+m.left)return"markers";if(this.$showFoldWidgets&&l.x>m.right-f.right)return"foldWidgets"},c}();r.prototype.$fixedWidth=!1,r.prototype.$highlightGutterLine=!0,r.prototype.$renderer="",r.prototype.$showLineNumbers=!0,r.prototype.$showFoldWidgets=!0,h.implement(r.prototype,s);function a(c){var l=document.createTextNode("");c.appendChild(l);var f=u.createElement("span");c.appendChild(f);var m=u.createElement("span");c.appendChild(m);var v=u.createElement("span");return m.appendChild(v),c}i.Gutter=r}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(n,i,d){var u=n("../range").Range,h=n("../lib/dom"),g=function(){function p(o){this.element=h.createElement("div"),this.element.className="ace_layer ace_marker-layer",o.appendChild(this.element)}return p.prototype.setPadding=function(o){this.$padding=o},p.prototype.setSession=function(o){this.session=o},p.prototype.setMarkers=function(o){this.markers=o},p.prototype.elt=function(o,r){var a=this.i!=-1&&this.element.childNodes[this.i];a?this.i++:(a=document.createElement("div"),this.element.appendChild(a),this.i=-1),a.style.cssText=r,a.className=o},p.prototype.update=function(o){if(o){this.config=o,this.i=0;var r;for(var a in this.markers){var c=this.markers[a];if(!c.range){c.update(r,this,this.session,o);continue}var l=c.range.clipRows(o.firstRow,o.lastRow);if(!l.isEmpty())if(l=l.toScreenRange(this.session),c.renderer){var f=this.$getTop(l.start.row,o),m=this.$padding+l.start.column*o.characterWidth;c.renderer(r,l,m,f,o)}else c.type=="fullLine"?this.drawFullLineMarker(r,l,c.clazz,o):c.type=="screenLine"?this.drawScreenLineMarker(r,l,c.clazz,o):l.isMultiLine()?c.type=="text"?this.drawTextMarker(r,l,c.clazz,o):this.drawMultiLineMarker(r,l,c.clazz,o):this.drawSingleLineMarker(r,l,c.clazz+" ace_start ace_br15",o)}if(this.i!=-1)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},p.prototype.$getTop=function(o,r){return(o-r.firstRowScreen)*r.lineHeight},p.prototype.drawTextMarker=function(o,r,a,c,l){for(var f=this.session,m=r.start.row,v=r.end.row,y=m,k=0,S=0,_=f.getScreenLastRowColumn(y),$=new u(y,r.start.column,y,S);y<=v;y++)$.start.row=$.end.row=y,$.start.column=y==m?r.start.column:f.getRowWrapIndent(y),$.end.column=_,k=S,S=_,_=y+1<v?f.getScreenLastRowColumn(y+1):y==v?0:r.end.column,this.drawSingleLineMarker(o,$,a+(y==m?" ace_start":"")+" ace_br"+s(y==m||y==m+1&&r.start.column,k<S,S>_,y==v),c,y==v?0:1,l)},p.prototype.drawMultiLineMarker=function(o,r,a,c,l){var f=this.$padding,m=c.lineHeight,v=this.$getTop(r.start.row,c),y=f+r.start.column*c.characterWidth;if(l=l||"",this.session.$bidiHandler.isBidiRow(r.start.row)){var k=r.clone();k.end.row=k.start.row,k.end.column=this.session.getLine(k.start.row).length,this.drawBidiSingleLineMarker(o,k,a+" ace_br1 ace_start",c,null,l)}else this.elt(a+" ace_br1 ace_start","height:"+m+"px;right:0;top:"+v+"px;left:"+y+"px;"+(l||""));if(this.session.$bidiHandler.isBidiRow(r.end.row)){var k=r.clone();k.start.row=k.end.row,k.start.column=0,this.drawBidiSingleLineMarker(o,k,a+" ace_br12",c,null,l)}else{v=this.$getTop(r.end.row,c);var S=r.end.column*c.characterWidth;this.elt(a+" ace_br12","height:"+m+"px;width:"+S+"px;top:"+v+"px;left:"+f+"px;"+(l||""))}if(m=(r.end.row-r.start.row-1)*c.lineHeight,!(m<=0)){v=this.$getTop(r.start.row+1,c);var _=(r.start.column?1:0)|(r.end.column?0:8);this.elt(a+(_?" ace_br"+_:""),"height:"+m+"px;right:0;top:"+v+"px;left:"+f+"px;"+(l||""))}},p.prototype.drawSingleLineMarker=function(o,r,a,c,l,f){if(this.session.$bidiHandler.isBidiRow(r.start.row))return this.drawBidiSingleLineMarker(o,r,a,c,l,f);var m=c.lineHeight,v=(r.end.column+(l||0)-r.start.column)*c.characterWidth,y=this.$getTop(r.start.row,c),k=this.$padding+r.start.column*c.characterWidth;this.elt(a,"height:"+m+"px;width:"+v+"px;top:"+y+"px;left:"+k+"px;"+(f||""))},p.prototype.drawBidiSingleLineMarker=function(o,r,a,c,l,f){var m=c.lineHeight,v=this.$getTop(r.start.row,c),y=this.$padding,k=this.session.$bidiHandler.getSelections(r.start.column,r.end.column);k.forEach(function(S){this.elt(a,"height:"+m+"px;width:"+(S.width+(l||0))+"px;top:"+v+"px;left:"+(y+S.left)+"px;"+(f||""))},this)},p.prototype.drawFullLineMarker=function(o,r,a,c,l){var f=this.$getTop(r.start.row,c),m=c.lineHeight;r.start.row!=r.end.row&&(m+=this.$getTop(r.end.row,c)-f),this.elt(a,"height:"+m+"px;top:"+f+"px;left:0;right:0;"+(l||""))},p.prototype.drawScreenLineMarker=function(o,r,a,c,l){var f=this.$getTop(r.start.row,c),m=c.lineHeight;this.elt(a,"height:"+m+"px;top:"+f+"px;left:0;right:0;"+(l||""))},p}();g.prototype.$padding=0;function s(p,o,r,a){return(p?1:0)|(o?2:0)|(r?4:0)|(a?8:0)}i.Marker=g}),ace.define("ace/layer/text_util",["require","exports","module"],function(n,i,d){var u=new Set(["text","rparen","lparen"]);i.isTextToken=function(h){return u.has(h)}}),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,i,d){var u=n("../lib/oop"),h=n("../lib/dom"),g=n("../lib/lang"),s=n("./lines").Lines,p=n("../lib/event_emitter").EventEmitter,o=n("../config").nls,r=n("./text_util").isTextToken,a=function(){function c(l){this.dom=h,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",l.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new s(this.element)}return c.prototype.$updateEolChar=function(){var l=this.session.doc,f=l.getNewLineCharacter()==`
1021
- `&&l.getNewLineMode()!="windows",m=f?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=m)return this.EOL_CHAR=m,!0},c.prototype.setPadding=function(l){this.$padding=l,this.element.style.margin="0 "+l+"px"},c.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},c.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},c.prototype.$setFontMetrics=function(l){this.$fontMetrics=l,this.$fontMetrics.on("changeCharacterSize",(function(f){this._signal("changeCharacterSize",f)}).bind(this)),this.$pollSizeChanges()},c.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},c.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},c.prototype.setSession=function(l){this.session=l,l&&this.$computeTabString()},c.prototype.setShowInvisibles=function(l){return this.showInvisibles==l?!1:(this.showInvisibles=l,typeof l=="string"?(this.showSpaces=/tab/i.test(l),this.showTabs=/space/i.test(l),this.showEOL=/eol/i.test(l)):this.showSpaces=this.showTabs=this.showEOL=l,this.$computeTabString(),!0)},c.prototype.setDisplayIndentGuides=function(l){return this.displayIndentGuides==l?!1:(this.displayIndentGuides=l,this.$computeTabString(),!0)},c.prototype.setHighlightIndentGuides=function(l){return this.$highlightIndentGuides===l?!1:(this.$highlightIndentGuides=l,l)},c.prototype.$computeTabString=function(){var l=this.session.getTabSize();this.tabSize=l;for(var f=this.$tabStrings=[0],m=1;m<l+1;m++)if(this.showTabs){var v=this.dom.createElement("span");v.className="ace_invisible ace_invisible_tab",v.textContent=g.stringRepeat(this.TAB_CHAR,m),f.push(v)}else f.push(this.dom.createTextNode(g.stringRepeat(" ",m),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var y="ace_indent-guide",k=this.showSpaces?" ace_invisible ace_invisible_space":"",S=this.showSpaces?g.stringRepeat(this.SPACE_CHAR,this.tabSize):g.stringRepeat(" ",this.tabSize),_=this.showTabs?" ace_invisible ace_invisible_tab":"",$=this.showTabs?g.stringRepeat(this.TAB_CHAR,this.tabSize):S,v=this.dom.createElement("span");v.className=y+k,v.textContent=S,this.$tabStrings[" "]=v;var v=this.dom.createElement("span");v.className=y+_,v.textContent=$,this.$tabStrings[" "]=v}},c.prototype.updateLines=function(l,f,m){if(this.config.lastRow!=l.lastRow||this.config.firstRow!=l.firstRow)return this.update(l);this.config=l;for(var v=Math.max(f,l.firstRow),y=Math.min(m,l.lastRow),k=this.element.childNodes,S=0,$=l.firstRow;$<v;$++){var R=this.session.getFoldLine($);if(R)if(R.containsRow(v)){v=R.start.row;break}else $=R.end.row;S++}for(var _=!1,$=v,R=this.session.getNextFoldLine($),T=R?R.start.row:1/0;$>T&&($=R.end.row+1,R=this.session.getNextFoldLine($,R),T=R?R.start.row:1/0),!($>y);){var x=k[S++];if(x){this.dom.removeChildren(x),this.$renderLine(x,$,$==T?R:!1),_&&(x.style.top=this.$lines.computeLineTop($,l,this.session)+"px");var M=l.lineHeight*this.session.getRowLength($)+"px";x.style.height!=M&&(_=!0,x.style.height=M)}$++}if(_)for(;S<this.$lines.cells.length;){var b=this.$lines.cells[S++];b.element.style.top=this.$lines.computeLineTop(b.row,l,this.session)+"px"}},c.prototype.scrollLines=function(l){var f=this.config;if(this.config=l,this.$lines.pageChanged(f,l))return this.update(l);this.$lines.moveContainer(l);var m=l.lastRow,v=f?f.lastRow:-1;if(!f||v<l.firstRow)return this.update(l);if(m<f.firstRow)return this.update(l);if(!f||f.lastRow<l.firstRow)return this.update(l);if(l.lastRow<f.firstRow)return this.update(l);if(f.firstRow<l.firstRow)for(var y=this.session.getFoldedRowCount(f.firstRow,l.firstRow-1);y>0;y--)this.$lines.shift();if(f.lastRow>l.lastRow)for(var y=this.session.getFoldedRowCount(l.lastRow+1,f.lastRow);y>0;y--)this.$lines.pop();l.firstRow<f.firstRow&&this.$lines.unshift(this.$renderLinesFragment(l,l.firstRow,f.firstRow-1)),l.lastRow>f.lastRow&&this.$lines.push(this.$renderLinesFragment(l,f.lastRow+1,l.lastRow)),this.$highlightIndentGuide()},c.prototype.$renderLinesFragment=function(l,f,m){for(var v=[],y=f,k=this.session.getNextFoldLine(y),S=k?k.start.row:1/0;y>S&&(y=k.end.row+1,k=this.session.getNextFoldLine(y,k),S=k?k.start.row:1/0),!(y>m);){var _=this.$lines.createCell(y,l,this.session),$=_.element;this.dom.removeChildren($),h.setStyle($.style,"height",this.$lines.computeLineHeight(y,l,this.session)+"px"),h.setStyle($.style,"top",this.$lines.computeLineTop(y,l,this.session)+"px"),this.$renderLine($,y,y==S?k:!1),this.$useLineGroups()?$.className="ace_line_group":$.className="ace_line",v.push(_),y++}return v},c.prototype.update=function(l){this.$lines.moveContainer(l),this.config=l;for(var f=l.firstRow,m=l.lastRow,v=this.$lines;v.getLength();)v.pop();v.push(this.$renderLinesFragment(l,f,m))},c.prototype.$renderToken=function(l,f,m,v){for(var y=this,k=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,S=this.dom.createFragment(this.element),_,$=0;_=k.exec(v);){var R=_[1],T=_[2],x=_[3],M=_[4],b=_[5];if(!(!y.showSpaces&&T)){var A=$!=_.index?v.slice($,_.index):"";if($=_.index+_[0].length,A&&S.appendChild(this.dom.createTextNode(A,this.element)),R){var C=y.session.getScreenTabSize(f+_.index);S.appendChild(y.$tabStrings[C].cloneNode(!0)),f+=C-1}else if(T)if(y.showSpaces){var w=this.dom.createElement("span");w.className="ace_invisible ace_invisible_space",w.textContent=g.stringRepeat(y.SPACE_CHAR,T.length),S.appendChild(w)}else S.appendChild(this.dom.createTextNode(T,this.element));else if(x){var w=this.dom.createElement("span");w.className="ace_invisible ace_invisible_space ace_invalid",w.textContent=g.stringRepeat(y.SPACE_CHAR,x.length),S.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,S.appendChild(w)}else if(b){f+=1;var w=this.dom.createElement("span");w.style.width=y.config.characterWidth*2+"px",w.className="ace_cjk",w.textContent=b,S.appendChild(w)}}}if(S.appendChild(this.dom.createTextNode($?v.slice($):v,this.element)),r(m.type))l.appendChild(S);else{var E="ace_"+m.type.replace(/\./g," ace_"),w=this.dom.createElement("span");m.type=="fold"&&(w.style.width=m.value.length*this.config.characterWidth+"px",w.setAttribute("title",o("Unfold code"))),w.className=E,w.appendChild(S),l.appendChild(w)}return f+v.length},c.prototype.renderIndentGuide=function(l,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,k=0;k<y;k++)l.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),f.substr(v)}else if(f[0]==" "){for(var k=0;k<v;k++)l.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),f.substr(v)}return this.$highlightIndentGuide(),f},c.prototype.$highlightIndentGuide=function(){if(!(!this.$highlightIndentGuides||!this.displayIndentGuides)){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var l=this.session.doc.$lines;if(l){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 k=this.session.$bracketHighlight.ranges,S=0;S<k.length;S++)if(f.row!==k[S].start.row){this.$highlightIndentGuideMarker.end=k[S].start.row,f.row>k[S].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&l[f.row]!==""&&f.column===l[f.row].length){this.$highlightIndentGuideMarker.dir=1;for(var S=f.row+1;S<l.length;S++){var _=l[S],$=/^\s*/.exec(_)[0].length;if(_!==""&&(this.$highlightIndentGuideMarker.end=S,$<=m))break}}this.$renderHighlightIndentGuide()}}},c.prototype.$clearActiveIndentGuide=function(){for(var l=this.$lines.cells,f=0;f<l.length;f++){var m=l[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}}}},c.prototype.$setIndentGuideActive=function(l,f){var m=this.session.doc.getLine(l.row);if(m!==""){var v=l.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")}}},c.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var l=this.$lines.cells;this.$clearActiveIndentGuide();var f=this.$highlightIndentGuideMarker.indentLevel;if(f!==0)if(this.$highlightIndentGuideMarker.dir===1)for(var m=0;m<l.length;m++){var v=l[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=l.length-1;m>=0;m--){var v=l[m];if(this.$highlightIndentGuideMarker.end&&v.row<this.$highlightIndentGuideMarker.start){if(v.row<=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(v,f)}}}},c.prototype.$createLineElement=function(l){var f=this.dom.createElement("div");return f.className="ace_line",f.style.height=this.config.lineHeight+"px",f},c.prototype.$renderWrappedLine=function(l,f,m){var v=0,y=0,k=m[0],S=0,_=this.$createLineElement();l.appendChild(_);for(var $=0;$<f.length;$++){var R=f[$],T=R.value;if($==0&&this.displayIndentGuides){if(v=T.length,T=this.renderIndentGuide(_,T,k),!T)continue;v-=T.length}if(v+T.length<k)S=this.$renderToken(_,S,R,T),v+=T.length;else{for(;v+T.length>=k;)S=this.$renderToken(_,S,R,T.substring(0,k-v)),T=T.substring(k-v),v=k,_=this.$createLineElement(),l.appendChild(_),_.appendChild(this.dom.createTextNode(g.stringRepeat(" ",m.indent),this.element)),y++,S=0,k=m[y]||Number.MAX_VALUE;T.length!=0&&(v+=T.length,S=this.$renderToken(_,S,R,T))}}m[m.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(_,S,null,"",!0)},c.prototype.$renderSimpleLine=function(l,f){for(var m=0,v=0;v<f.length;v++){var y=f[v],k=y.value;if(!(v==0&&this.displayIndentGuides&&(k=this.renderIndentGuide(l,k),!k))){if(m+k.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(l,m,y,k);m=this.$renderToken(l,m,y,k)}}},c.prototype.$renderOverflowMessage=function(l,f,m,v,y){m&&this.$renderToken(l,f,m,v.slice(0,this.MAX_LINE_LENGTH-f));var k=this.dom.createElement("span");k.className="ace_inline_button ace_keyword ace_toggle_wrap",k.textContent=y?"<hide>":"<click to see more...>",l.appendChild(k)},c.prototype.$renderLine=function(l,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=l;if(v.length){var k=this.session.getRowSplitData(f);if(k&&k.length){this.$renderWrappedLine(l,v,k);var y=l.lastChild}else{var y=l;this.$useLineGroups()&&(y=this.$createLineElement(),l.appendChild(y)),this.$renderSimpleLine(y,v)}}else this.$useLineGroups()&&(y=this.$createLineElement(),l.appendChild(y));if(this.showEOL&&y){m&&(f=m.end.row);var S=this.dom.createElement("span");S.className="ace_invisible ace_invisible_eol",S.textContent=f==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,y.appendChild(S)}},c.prototype.$getFoldLineTokens=function(l,f){var m=this.session,v=[];function y(S,_,$){for(var R=0,T=0;T+S[R].value.length<_;)if(T+=S[R].value.length,R++,R==S.length)return;if(T!=_){var x=S[R].value.substring(_-T);x.length>$-_&&(x=x.substring(0,$-_)),v.push({type:S[R].type,value:x}),T=_+x.length,R+=1}for(;T<$&&R<S.length;){var x=S[R].value;x.length+T>$?v.push({type:S[R].type,value:x.substring(0,$-T)}):v.push(S[R]),T+=x.length,R+=1}}var k=m.getTokens(l);return f.walk(function(S,_,$,R,T){S!=null?v.push({type:"fold",value:S}):(T&&(k=m.getTokens(_)),k.length&&y(k,R,$))},f.end.row,this.session.getLine(f.end.row).length),v},c.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},c}();a.prototype.EOF_CHAR="¶",a.prototype.EOL_CHAR_LF="¬",a.prototype.EOL_CHAR_CRLF="¤",a.prototype.EOL_CHAR=a.prototype.EOL_CHAR_LF,a.prototype.TAB_CHAR="—",a.prototype.SPACE_CHAR="·",a.prototype.$padding=0,a.prototype.MAX_LINE_LENGTH=1e4,a.prototype.showInvisibles=!1,a.prototype.showSpaces=!1,a.prototype.showTabs=!1,a.prototype.showEOL=!1,a.prototype.displayIndentGuides=!0,a.prototype.$highlightIndentGuides=!0,a.prototype.$tabStrings=[],a.prototype.destroy={},a.prototype.onChangeTabSize=a.prototype.$computeTabString,u.implement(a.prototype,p),i.Text=a}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(n,i,d){var u=n("../lib/dom"),h=function(){function g(s){this.element=u.createElement("div"),this.element.className="ace_layer ace_cursor-layer",s.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),u.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return g.prototype.$updateOpacity=function(s){for(var p=this.cursors,o=p.length;o--;)u.setStyle(p[o].style,"opacity",s?"":"0")},g.prototype.$startCssAnimation=function(){for(var s=this.cursors,p=s.length;p--;)s[p].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout((function(){this.$isAnimating&&u.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},g.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,u.removeCssClass(this.element,"ace_animate-blinking")},g.prototype.setPadding=function(s){this.$padding=s},g.prototype.setSession=function(s){this.session=s},g.prototype.setBlinking=function(s){s!=this.isBlinking&&(this.isBlinking=s,this.restartTimer())},g.prototype.setBlinkInterval=function(s){s!=this.blinkInterval&&(this.blinkInterval=s,this.restartTimer())},g.prototype.setSmoothBlinking=function(s){s!=this.smoothBlinking&&(this.smoothBlinking=s,u.setCssClass(this.element,"ace_smooth-blinking",s),this.$updateCursors(!0),this.restartTimer())},g.prototype.addCursor=function(){var s=u.createElement("div");return s.className="ace_cursor",this.element.appendChild(s),this.cursors.push(s),s},g.prototype.removeCursor=function(){if(this.cursors.length>1){var s=this.cursors.pop();return s.parentNode.removeChild(s),s}},g.prototype.hideCursor=function(){this.isVisible=!1,u.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},g.prototype.showCursor=function(){this.isVisible=!0,u.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},g.prototype.restartTimer=function(){var s=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,u.removeCssClass(this.element,"ace_smooth-blinking")),s(!0),!this.isBlinking||!this.blinkInterval||!this.isVisible){this.$stopCssAnimation();return}if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout((function(){this.$isSmoothBlinking&&u.addCssClass(this.element,"ace_smooth-blinking")}).bind(this))),u.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var p=(function(){this.timeoutId=setTimeout(function(){s(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){s(!0),p()},this.blinkInterval),p()}},g.prototype.getPixelPosition=function(s,p){if(!this.config||!this.session)return{left:0,top:0};s||(s=this.session.selection.getCursor());var o=this.session.documentToScreenPosition(s),r=this.$padding+(this.session.$bidiHandler.isBidiRow(o.row,s.row)?this.session.$bidiHandler.getPosLeft(o.column):o.column*this.config.characterWidth),a=(o.row-(p?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:r,top:a}},g.prototype.isCursorInView=function(s,p){return s.top>=0&&s.top<p.maxHeight},g.prototype.update=function(s){this.config=s;var p=this.session.$selectionMarkers,o=0,r=0;(p===void 0||p.length===0)&&(p=[{cursor:null}]);for(var o=0,a=p.length;o<a;o++){var c=this.getPixelPosition(p[o].cursor,!0);if(!((c.top>s.height+s.offset||c.top<0)&&o>1)){var l=this.cursors[r++]||this.addCursor(),f=l.style;this.drawCursor?this.drawCursor(l,c,s,p[o],this.session):this.isCursorInView(c,s)?(u.setStyle(f,"display","block"),u.translate(l,c.left,c.top),u.setStyle(f,"width",Math.round(s.characterWidth)+"px"),u.setStyle(f,"height",s.lineHeight+"px")):u.setStyle(f,"display","none")}}for(;this.cursors.length>r;)this.removeCursor();var m=this.session.getOverwrite();this.$setOverwrite(m),this.$pixelPos=c,this.restartTimer()},g.prototype.$setOverwrite=function(s){s!=this.overwrite&&(this.overwrite=s,s?u.addCssClass(this.element,"ace_overwrite-cursors"):u.removeCssClass(this.element,"ace_overwrite-cursors"))},g.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},g}();h.prototype.$padding=0,h.prototype.drawCursor=null,i.Cursor=h}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(n,i,d){var u=this&&this.__extends||function(){var l=function(f,m){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,y){v.__proto__=y}||function(v,y){for(var k in y)Object.prototype.hasOwnProperty.call(y,k)&&(v[k]=y[k])},l(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");l(f,m);function v(){this.constructor=f}f.prototype=m===null?Object.create(m):(v.prototype=m.prototype,new v)}}(),h=n("./lib/oop"),g=n("./lib/dom"),s=n("./lib/event"),p=n("./lib/event_emitter").EventEmitter,o=32768,r=function(){function l(f,m){this.element=g.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+m,this.inner=g.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),f.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,s.addListener(this.element,"scroll",this.onScroll.bind(this)),s.addListener(this.element,"mousedown",s.preventDefault)}return l.prototype.setVisible=function(f){this.element.style.display=f?"":"none",this.isVisible=f,this.coeff=1},l}();h.implement(r.prototype,p);var a=function(l){u(f,l);function f(m,v){var y=l.call(this,m,"-v")||this;return y.scrollTop=0,y.scrollHeight=0,v.$scrollbarWidth=y.width=g.scrollbarWidth(m.ownerDocument),y.inner.style.width=y.element.style.width=(y.width||15)+5+"px",y.$minWidth=0,y}return f.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var m=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-m)/(this.coeff-m)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},f.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},f.prototype.setHeight=function(m){this.element.style.height=m+"px"},f.prototype.setScrollHeight=function(m){this.scrollHeight=m,m>o?(this.coeff=o/m,m=o):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}(r);a.prototype.setInnerHeight=a.prototype.setScrollHeight;var c=function(l){u(f,l);function f(m,v){var y=l.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}(r);i.ScrollBar=a,i.ScrollBarV=a,i.ScrollBarH=c,i.VScrollBar=a,i.HScrollBar=c}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(n,i,d){var u=this&&this.__extends||function(){var c=function(l,f){return c=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])},c(l,f)};return function(l,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");c(l,f);function m(){this.constructor=l}l.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}}(),h=n("./lib/oop"),g=n("./lib/dom"),s=n("./lib/event"),p=n("./lib/event_emitter").EventEmitter;g.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{
1022
- position: absolute;
1023
- background: rgba(128, 128, 128, 0.6);
1024
- -moz-box-sizing: border-box;
1025
- box-sizing: border-box;
1026
- border: 1px solid #bbb;
1027
- border-radius: 2px;
1028
- z-index: 8;
1029
- }
1030
- .ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {
1031
- position: absolute;
1032
- z-index: 6;
1033
- background: none;
1034
- overflow: hidden!important;
1035
- }
1036
- .ace_editor>.ace_sb-v {
1037
- z-index: 6;
1038
- right: 0;
1039
- top: 0;
1040
- width: 12px;
1041
- }
1042
- .ace_editor>.ace_sb-v div {
1043
- z-index: 8;
1044
- right: 0;
1045
- width: 100%;
1046
- }
1047
- .ace_editor>.ace_sb-h {
1048
- bottom: 0;
1049
- left: 0;
1050
- height: 12px;
1051
- }
1052
- .ace_editor>.ace_sb-h div {
1053
- bottom: 0;
1054
- height: 100%;
1055
- }
1056
- .ace_editor>.ace_sb_grabbed {
1057
- z-index: 8;
1058
- background: #000;
1059
- }`,"ace_scrollbar.css",!1);var o=function(){function c(l,f){this.element=g.createElement("div"),this.element.className="ace_sb"+f,this.inner=g.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,l.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,s.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return c.prototype.setVisible=function(l){this.element.style.display=l?"":"none",this.isVisible=l,this.coeff=1},c}();h.implement(o.prototype,p);var r=function(c){u(l,c);function l(f,m){var v=c.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 l.prototype.onMouseDown=function(f,m){if(f==="mousedown"&&!(s.getButton(m)!==0||m.detail===2)){if(m.target===this.inner){var v=this,y=m.clientY,k=function(M){y=M.clientY},S=function(){clearInterval(T)},_=m.clientY,$=this.thumbTop,R=function(){if(y!==void 0){var M=v.scrollTopFromThumbTop($+y-_);M!==v.scrollTop&&v._emit("scroll",{data:M})}};s.capture(this.inner,k,S);var T=setInterval(R,20);return s.preventDefault(m)}var x=m.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(x)}),s.preventDefault(m)}},l.prototype.getHeight=function(){return this.height},l.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},l.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},l.prototype.setHeight=function(f){this.height=Math.max(0,f),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},l.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})))},l.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"},l}(o);r.prototype.setInnerHeight=r.prototype.setScrollHeight;var a=function(c){u(l,c);function l(f,m){var v=c.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 l.prototype.onMouseDown=function(f,m){if(f==="mousedown"&&!(s.getButton(m)!==0||m.detail===2)){if(m.target===this.inner){var v=this,y=m.clientX,k=function(M){y=M.clientX},S=function(){clearInterval(T)},_=m.clientX,$=this.thumbLeft,R=function(){if(y!==void 0){var M=v.scrollLeftFromThumbLeft($+y-_);M!==v.scrollLeft&&v._emit("scroll",{data:M})}};s.capture(this.inner,k,S);var T=setInterval(R,20);return s.preventDefault(m)}var x=m.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(x)}),s.preventDefault(m)}},l.prototype.getHeight=function(){return this.isVisible?this.height:0},l.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},l.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)},l.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})))},l.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"},l}(o);a.prototype.setInnerWidth=a.prototype.setScrollWidth,i.ScrollBar=r,i.ScrollBarV=r,i.ScrollBarH=a,i.VScrollBar=r,i.HScrollBar=a}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(n,i,d){var u=n("./lib/event"),h=function(){function g(s,p){this.onRender=s,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=p||window;var o=this;this._flush=function(r){o.pending=!1;var a=o.changes;if(a&&(u.blockIdle(100),o.changes=0,o.onRender(a)),o.changes){if(o.$recursionLimit--<0)return;o.schedule()}else o.$recursionLimit=2}}return g.prototype.schedule=function(s){this.changes=this.changes|s,this.changes&&!this.pending&&(u.nextFrame(this._flush),this.pending=!0)},g.prototype.clear=function(s){var p=this.changes;return this.changes=0,p},g}();i.RenderLoop=h}),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,i,d){var u=n("../lib/oop"),h=n("../lib/dom"),g=n("../lib/lang"),s=n("../lib/event"),p=n("../lib/useragent"),o=n("../lib/event_emitter").EventEmitter,r=512,a=typeof ResizeObserver=="function",c=200,l=function(){function f(m){this.el=h.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=h.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=h.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),m.appendChild(this.el),this.$measureNode.textContent=g.stringRepeat("X",r),this.$characterSize={width:0,height:0},a?this.$addObserver():this.checkForSizeChanges()}return f.prototype.$setMeasureNodeStyles=function(m,v){m.width=m.height="auto",m.left=m.top="0px",m.visibility="hidden",m.position="absolute",m.whiteSpace="pre",p.isIE<8?m["font-family"]="inherit":m.font="inherit",m.overflow=v?"hidden":"visible"},f.prototype.checkForSizeChanges=function(m){if(m===void 0&&(m=this.$measureSizes()),m&&(this.$characterSize.width!==m.width||this.$characterSize.height!==m.height)){this.$measureNode.style.fontWeight="bold";var v=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=m,this.charSizes=Object.create(null),this.allowBoldFonts=v&&v.width===m.width&&v.height===m.height,this._emit("changeCharacterSize",{data:m})}},f.prototype.$addObserver=function(){var m=this;this.$observer=new window.ResizeObserver(function(v){m.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},f.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var m=this;return this.$pollSizeChangesTimer=s.onIdle(function v(){m.checkForSizeChanges(),s.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/r};return v.width===0||v.height===0?null:v},f.prototype.$measureCharWidth=function(m){this.$main.textContent=g.stringRepeat(m,r);var v=this.$main.getBoundingClientRect();return v.width/r},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=h.buildDom([m(0,0),m(c,0),m(0,c),m(c,c)],this.el)},f.prototype.transformCoordinates=function(m,v){if(m){var y=this.$getZoom(this.el);m=$(1/y,m)}function k(D,W,j){var H=D[1]*W[0]-D[0]*W[1];return[(-W[1]*j[0]+W[0]*j[1])/H,(+D[1]*j[0]-D[0]*j[1])/H]}function S(D,W){return[D[0]-W[0],D[1]-W[1]]}function _(D,W){return[D[0]+W[0],D[1]+W[1]]}function $(D,W){return[D*W[0],D*W[1]]}this.els||this.$initTransformMeasureNodes();function R(D){var W=D.getBoundingClientRect();return[W.left,W.top]}var T=R(this.els[0]),x=R(this.els[1]),M=R(this.els[2]),b=R(this.els[3]),A=k(S(b,x),S(b,M),S(_(x,M),_(b,T))),C=$(1+A[0],S(x,T)),w=$(1+A[1],S(M,T));if(v){var E=v,L=A[0]*E[0]/c+A[1]*E[1]/c+1,O=_($(E[0],C),$(E[1],w));return _($(1/L/c,O),T)}var I=S(m,T),F=k(S(C,$(A[0],I)),S(w,$(A[1],I)),I);return $(c,F)},f}();l.prototype.$characterSize={width:0,height:0},u.implement(l.prototype,o),i.FontMetrics=l}),ace.define("ace/css/editor-css",["require","exports","module"],function(n,i,d){d.exports=`
1060
- .ace_br1 {border-top-left-radius : 3px;}
1061
- .ace_br2 {border-top-right-radius : 3px;}
1062
- .ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}
1063
- .ace_br4 {border-bottom-right-radius: 3px;}
1064
- .ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}
1065
- .ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}
1066
- .ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}
1067
- .ace_br8 {border-bottom-left-radius : 3px;}
1068
- .ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}
1069
- .ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}
1070
- .ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}
1071
- .ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
1072
- .ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
1073
- .ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
1074
- .ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
1075
-
1076
-
1077
- .ace_editor {
1078
- position: relative;
1079
- overflow: hidden;
1080
- padding: 0;
1081
- font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace;
1082
- direction: ltr;
1083
- text-align: left;
1084
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
1085
- }
1086
-
1087
- .ace_scroller {
1088
- position: absolute;
1089
- overflow: hidden;
1090
- top: 0;
1091
- bottom: 0;
1092
- background-color: inherit;
1093
- -ms-user-select: none;
1094
- -moz-user-select: none;
1095
- -webkit-user-select: none;
1096
- user-select: none;
1097
- cursor: text;
1098
- }
1099
-
1100
- .ace_content {
1101
- position: absolute;
1102
- box-sizing: border-box;
1103
- min-width: 100%;
1104
- contain: style size layout;
1105
- font-variant-ligatures: no-common-ligatures;
1106
- }
1107
-
1108
- .ace_keyboard-focus:focus {
1109
- box-shadow: inset 0 0 0 2px #5E9ED6;
1110
- outline: none;
1111
- }
1112
-
1113
- .ace_dragging .ace_scroller:before{
1114
- position: absolute;
1115
- top: 0;
1116
- left: 0;
1117
- right: 0;
1118
- bottom: 0;
1119
- content: '';
1120
- background: rgba(250, 250, 250, 0.01);
1121
- z-index: 1000;
1122
- }
1123
- .ace_dragging.ace_dark .ace_scroller:before{
1124
- background: rgba(0, 0, 0, 0.01);
1125
- }
1126
-
1127
- .ace_gutter {
1128
- position: absolute;
1129
- overflow : hidden;
1130
- width: auto;
1131
- top: 0;
1132
- bottom: 0;
1133
- left: 0;
1134
- cursor: default;
1135
- z-index: 4;
1136
- -ms-user-select: none;
1137
- -moz-user-select: none;
1138
- -webkit-user-select: none;
1139
- user-select: none;
1140
- contain: style size layout;
1141
- }
1142
-
1143
- .ace_gutter-active-line {
1144
- position: absolute;
1145
- left: 0;
1146
- right: 0;
1147
- }
1148
-
1149
- .ace_scroller.ace_scroll-left:after {
1150
- content: "";
1151
- position: absolute;
1152
- top: 0;
1153
- right: 0;
1154
- bottom: 0;
1155
- left: 0;
1156
- box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
1157
- pointer-events: none;
1158
- }
1159
-
1160
- .ace_gutter-cell, .ace_gutter-cell_svg-icons {
1161
- position: absolute;
1162
- top: 0;
1163
- left: 0;
1164
- right: 0;
1165
- padding-left: 19px;
1166
- padding-right: 6px;
1167
- background-repeat: no-repeat;
1168
- }
1169
-
1170
- .ace_gutter-cell_svg-icons .ace_gutter_annotation {
1171
- margin-left: -14px;
1172
- float: left;
1173
- }
1174
-
1175
- .ace_gutter-cell .ace_gutter_annotation {
1176
- margin-left: -19px;
1177
- float: left;
1178
- }
1179
-
1180
- .ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold {
1181
- 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==");
1182
- background-repeat: no-repeat;
1183
- background-position: 2px center;
1184
- }
1185
-
1186
- .ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {
1187
- 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==");
1188
- background-repeat: no-repeat;
1189
- background-position: 2px center;
1190
- }
1191
-
1192
- .ace_gutter-cell.ace_info, .ace_icon.ace_info {
1193
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");
1194
- background-repeat: no-repeat;
1195
- background-position: 2px center;
1196
- }
1197
- .ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info {
1198
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");
1199
- }
1200
-
1201
- .ace_icon_svg.ace_error {
1202
- -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");
1203
- background-color: crimson;
1204
- }
1205
- .ace_icon_svg.ace_warning {
1206
- -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");
1207
- background-color: darkorange;
1208
- }
1209
- .ace_icon_svg.ace_info {
1210
- -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");
1211
- background-color: royalblue;
1212
- }
1213
-
1214
- .ace_icon_svg.ace_error_fold {
1215
- -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
1216
- background-color: crimson;
1217
- }
1218
- .ace_icon_svg.ace_warning_fold {
1219
- -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");
1220
- background-color: darkorange;
1221
- }
1222
-
1223
- .ace_scrollbar {
1224
- contain: strict;
1225
- position: absolute;
1226
- right: 0;
1227
- bottom: 0;
1228
- z-index: 6;
1229
- }
1230
-
1231
- .ace_scrollbar-inner {
1232
- position: absolute;
1233
- cursor: text;
1234
- left: 0;
1235
- top: 0;
1236
- }
1237
-
1238
- .ace_scrollbar-v{
1239
- overflow-x: hidden;
1240
- overflow-y: scroll;
1241
- top: 0;
1242
- }
1243
-
1244
- .ace_scrollbar-h {
1245
- overflow-x: scroll;
1246
- overflow-y: hidden;
1247
- left: 0;
1248
- }
1249
-
1250
- .ace_print-margin {
1251
- position: absolute;
1252
- height: 100%;
1253
- }
1254
-
1255
- .ace_text-input {
1256
- position: absolute;
1257
- z-index: 0;
1258
- width: 0.5em;
1259
- height: 1em;
1260
- opacity: 0;
1261
- background: transparent;
1262
- -moz-appearance: none;
1263
- appearance: none;
1264
- border: none;
1265
- resize: none;
1266
- outline: none;
1267
- overflow: hidden;
1268
- font: inherit;
1269
- padding: 0 1px;
1270
- margin: 0 -1px;
1271
- contain: strict;
1272
- -ms-user-select: text;
1273
- -moz-user-select: text;
1274
- -webkit-user-select: text;
1275
- user-select: text;
1276
- /*with \`pre-line\` chrome inserts &nbsp; instead of space*/
1277
- white-space: pre!important;
1278
- }
1279
- .ace_text-input.ace_composition {
1280
- background: transparent;
1281
- color: inherit;
1282
- z-index: 1000;
1283
- opacity: 1;
1284
- }
1285
- .ace_composition_placeholder { color: transparent }
1286
- .ace_composition_marker {
1287
- border-bottom: 1px solid;
1288
- position: absolute;
1289
- border-radius: 0;
1290
- margin-top: 1px;
1291
- }
1292
-
1293
- [ace_nocontext=true] {
1294
- transform: none!important;
1295
- filter: none!important;
1296
- clip-path: none!important;
1297
- mask : none!important;
1298
- contain: none!important;
1299
- perspective: none!important;
1300
- mix-blend-mode: initial!important;
1301
- z-index: auto;
1302
- }
1303
-
1304
- .ace_layer {
1305
- z-index: 1;
1306
- position: absolute;
1307
- overflow: hidden;
1308
- /* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/
1309
- word-wrap: normal;
1310
- white-space: pre;
1311
- height: 100%;
1312
- width: 100%;
1313
- box-sizing: border-box;
1314
- /* setting pointer-events: auto; on node under the mouse, which changes
1315
- during scroll, will break mouse wheel scrolling in Safari */
1316
- pointer-events: none;
1317
- }
1318
-
1319
- .ace_gutter-layer {
1320
- position: relative;
1321
- width: auto;
1322
- text-align: right;
1323
- pointer-events: auto;
1324
- height: 1000000px;
1325
- contain: style size layout;
1326
- }
1327
-
1328
- .ace_text-layer {
1329
- font: inherit !important;
1330
- position: absolute;
1331
- height: 1000000px;
1332
- width: 1000000px;
1333
- contain: style size layout;
1334
- }
1335
-
1336
- .ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {
1337
- contain: style size layout;
1338
- position: absolute;
1339
- top: 0;
1340
- left: 0;
1341
- right: 0;
1342
- }
1343
-
1344
- .ace_hidpi .ace_text-layer,
1345
- .ace_hidpi .ace_gutter-layer,
1346
- .ace_hidpi .ace_content,
1347
- .ace_hidpi .ace_gutter {
1348
- contain: strict;
1349
- }
1350
- .ace_hidpi .ace_text-layer > .ace_line,
1351
- .ace_hidpi .ace_text-layer > .ace_line_group {
1352
- contain: strict;
1353
- }
1354
-
1355
- .ace_cjk {
1356
- display: inline-block;
1357
- text-align: center;
1358
- }
1359
-
1360
- .ace_cursor-layer {
1361
- z-index: 4;
1362
- }
1363
-
1364
- .ace_cursor {
1365
- z-index: 4;
1366
- position: absolute;
1367
- box-sizing: border-box;
1368
- border-left: 2px solid;
1369
- /* workaround for smooth cursor repaintng whole screen in chrome */
1370
- transform: translatez(0);
1371
- }
1372
-
1373
- .ace_multiselect .ace_cursor {
1374
- border-left-width: 1px;
1375
- }
1376
-
1377
- .ace_slim-cursors .ace_cursor {
1378
- border-left-width: 1px;
1379
- }
1380
-
1381
- .ace_overwrite-cursors .ace_cursor {
1382
- border-left-width: 0;
1383
- border-bottom: 1px solid;
1384
- }
1385
-
1386
- .ace_hidden-cursors .ace_cursor {
1387
- opacity: 0.2;
1388
- }
1389
-
1390
- .ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {
1391
- opacity: 0;
1392
- }
1393
-
1394
- .ace_smooth-blinking .ace_cursor {
1395
- transition: opacity 0.18s;
1396
- }
1397
-
1398
- .ace_animate-blinking .ace_cursor {
1399
- animation-duration: 1000ms;
1400
- animation-timing-function: step-end;
1401
- animation-name: blink-ace-animate;
1402
- animation-iteration-count: infinite;
1403
- }
1404
-
1405
- .ace_animate-blinking.ace_smooth-blinking .ace_cursor {
1406
- animation-duration: 1000ms;
1407
- animation-timing-function: ease-in-out;
1408
- animation-name: blink-ace-animate-smooth;
1409
- }
1410
-
1411
- @keyframes blink-ace-animate {
1412
- from, to { opacity: 1; }
1413
- 60% { opacity: 0; }
1414
- }
1415
-
1416
- @keyframes blink-ace-animate-smooth {
1417
- from, to { opacity: 1; }
1418
- 45% { opacity: 1; }
1419
- 60% { opacity: 0; }
1420
- 85% { opacity: 0; }
1421
- }
1422
-
1423
- .ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {
1424
- position: absolute;
1425
- z-index: 3;
1426
- }
1427
-
1428
- .ace_marker-layer .ace_selection {
1429
- position: absolute;
1430
- z-index: 5;
1431
- }
1432
-
1433
- .ace_marker-layer .ace_bracket {
1434
- position: absolute;
1435
- z-index: 6;
1436
- }
1437
-
1438
- .ace_marker-layer .ace_error_bracket {
1439
- position: absolute;
1440
- border-bottom: 1px solid #DE5555;
1441
- border-radius: 0;
1442
- }
1443
-
1444
- .ace_marker-layer .ace_active-line {
1445
- position: absolute;
1446
- z-index: 2;
1447
- }
1448
-
1449
- .ace_marker-layer .ace_selected-word {
1450
- position: absolute;
1451
- z-index: 4;
1452
- box-sizing: border-box;
1453
- }
1454
-
1455
- .ace_line .ace_fold {
1456
- box-sizing: border-box;
1457
-
1458
- display: inline-block;
1459
- height: 11px;
1460
- margin-top: -2px;
1461
- vertical-align: middle;
1462
-
1463
- background-image:
1464
- url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
1465
- url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");
1466
- background-repeat: no-repeat, repeat-x;
1467
- background-position: center center, top left;
1468
- color: transparent;
1469
-
1470
- border: 1px solid black;
1471
- border-radius: 2px;
1472
-
1473
- cursor: pointer;
1474
- pointer-events: auto;
1475
- }
1476
-
1477
- .ace_dark .ace_fold {
1478
- }
1479
-
1480
- .ace_fold:hover{
1481
- background-image:
1482
- url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
1483
- url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");
1484
- }
1485
-
1486
- .ace_tooltip {
1487
- background-color: #f5f5f5;
1488
- border: 1px solid gray;
1489
- border-radius: 1px;
1490
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
1491
- color: black;
1492
- max-width: 100%;
1493
- padding: 3px 4px;
1494
- position: fixed;
1495
- z-index: 999999;
1496
- box-sizing: border-box;
1497
- cursor: default;
1498
- white-space: pre-wrap;
1499
- word-wrap: break-word;
1500
- line-height: normal;
1501
- font-style: normal;
1502
- font-weight: normal;
1503
- letter-spacing: normal;
1504
- pointer-events: none;
1505
- overflow: auto;
1506
- max-width: min(60em, 66vw);
1507
- overscroll-behavior: contain;
1508
- }
1509
- .ace_tooltip pre {
1510
- white-space: pre-wrap;
1511
- }
1512
-
1513
- .ace_tooltip.ace_dark {
1514
- background-color: #636363;
1515
- color: #fff;
1516
- }
1517
-
1518
- .ace_tooltip:focus {
1519
- outline: 1px solid #5E9ED6;
1520
- }
1521
-
1522
- .ace_icon {
1523
- display: inline-block;
1524
- width: 18px;
1525
- vertical-align: top;
1526
- }
1527
-
1528
- .ace_icon_svg {
1529
- display: inline-block;
1530
- width: 12px;
1531
- vertical-align: top;
1532
- -webkit-mask-repeat: no-repeat;
1533
- -webkit-mask-size: 12px;
1534
- -webkit-mask-position: center;
1535
- }
1536
-
1537
- .ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {
1538
- padding-right: 13px;
1539
- }
1540
-
1541
- .ace_fold-widget {
1542
- box-sizing: border-box;
1543
-
1544
- margin: 0 -12px 0 1px;
1545
- display: none;
1546
- width: 11px;
1547
- vertical-align: top;
1548
-
1549
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");
1550
- background-repeat: no-repeat;
1551
- background-position: center;
1552
-
1553
- border-radius: 3px;
1554
-
1555
- border: 1px solid transparent;
1556
- cursor: pointer;
1557
- }
1558
-
1559
- .ace_folding-enabled .ace_fold-widget {
1560
- display: inline-block;
1561
- }
1562
-
1563
- .ace_fold-widget.ace_end {
1564
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");
1565
- }
1566
-
1567
- .ace_fold-widget.ace_closed {
1568
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");
1569
- }
1570
-
1571
- .ace_fold-widget:hover {
1572
- border: 1px solid rgba(0, 0, 0, 0.3);
1573
- background-color: rgba(255, 255, 255, 0.2);
1574
- box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
1575
- }
1576
-
1577
- .ace_fold-widget:active {
1578
- border: 1px solid rgba(0, 0, 0, 0.4);
1579
- background-color: rgba(0, 0, 0, 0.05);
1580
- box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
1581
- }
1582
- /**
1583
- * Dark version for fold widgets
1584
- */
1585
- .ace_dark .ace_fold-widget {
1586
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");
1587
- }
1588
- .ace_dark .ace_fold-widget.ace_end {
1589
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");
1590
- }
1591
- .ace_dark .ace_fold-widget.ace_closed {
1592
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");
1593
- }
1594
- .ace_dark .ace_fold-widget:hover {
1595
- box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
1596
- background-color: rgba(255, 255, 255, 0.1);
1597
- }
1598
- .ace_dark .ace_fold-widget:active {
1599
- box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
1600
- }
1601
-
1602
- .ace_inline_button {
1603
- border: 1px solid lightgray;
1604
- display: inline-block;
1605
- margin: -1px 8px;
1606
- padding: 0 5px;
1607
- pointer-events: auto;
1608
- cursor: pointer;
1609
- }
1610
- .ace_inline_button:hover {
1611
- border-color: gray;
1612
- background: rgba(200,200,200,0.2);
1613
- display: inline-block;
1614
- pointer-events: auto;
1615
- }
1616
-
1617
- .ace_fold-widget.ace_invalid {
1618
- background-color: #FFB4B4;
1619
- border-color: #DE5555;
1620
- }
1621
-
1622
- .ace_fade-fold-widgets .ace_fold-widget {
1623
- transition: opacity 0.4s ease 0.05s;
1624
- opacity: 0;
1625
- }
1626
-
1627
- .ace_fade-fold-widgets:hover .ace_fold-widget {
1628
- transition: opacity 0.05s ease 0.05s;
1629
- opacity:1;
1630
- }
1631
-
1632
- .ace_underline {
1633
- text-decoration: underline;
1634
- }
1635
-
1636
- .ace_bold {
1637
- font-weight: bold;
1638
- }
1639
-
1640
- .ace_nobold .ace_bold {
1641
- font-weight: normal;
1642
- }
1643
-
1644
- .ace_italic {
1645
- font-style: italic;
1646
- }
1647
-
1648
-
1649
- .ace_error-marker {
1650
- background-color: rgba(255, 0, 0,0.2);
1651
- position: absolute;
1652
- z-index: 9;
1653
- }
1654
-
1655
- .ace_highlight-marker {
1656
- background-color: rgba(255, 255, 0,0.2);
1657
- position: absolute;
1658
- z-index: 8;
1659
- }
1660
-
1661
- .ace_mobile-menu {
1662
- position: absolute;
1663
- line-height: 1.5;
1664
- border-radius: 4px;
1665
- -ms-user-select: none;
1666
- -moz-user-select: none;
1667
- -webkit-user-select: none;
1668
- user-select: none;
1669
- background: white;
1670
- box-shadow: 1px 3px 2px grey;
1671
- border: 1px solid #dcdcdc;
1672
- color: black;
1673
- }
1674
- .ace_dark > .ace_mobile-menu {
1675
- background: #333;
1676
- color: #ccc;
1677
- box-shadow: 1px 3px 2px grey;
1678
- border: 1px solid #444;
1679
-
1680
- }
1681
- .ace_mobile-button {
1682
- padding: 2px;
1683
- cursor: pointer;
1684
- overflow: hidden;
1685
- }
1686
- .ace_mobile-button:hover {
1687
- background-color: #eee;
1688
- opacity:1;
1689
- }
1690
- .ace_mobile-button:active {
1691
- background-color: #ddd;
1692
- }
1693
-
1694
- .ace_placeholder {
1695
- font-family: arial;
1696
- transform: scale(0.9);
1697
- transform-origin: left;
1698
- white-space: pre;
1699
- opacity: 0.7;
1700
- margin: 0 10px;
1701
- }
1702
-
1703
- .ace_ghost_text {
1704
- opacity: 0.5;
1705
- font-style: italic;
1706
- white-space: pre;
1707
- }
1708
-
1709
- .ace_screenreader-only {
1710
- position:absolute;
1711
- left:-10000px;
1712
- top:auto;
1713
- width:1px;
1714
- height:1px;
1715
- overflow:hidden;
1716
- }`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(n,i,d){var u=n("../lib/dom"),h=n("../lib/oop"),g=n("../lib/event_emitter").EventEmitter,s=function(){function p(o,r){this.canvas=u.createElement("canvas"),this.renderer=r,this.pixelRatio=1,this.maxHeight=r.layerConfig.maxHeight,this.lineHeight=r.layerConfig.lineHeight,this.canvasHeight=o.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=o.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)"},o.element.appendChild(this.canvas)}return p.prototype.$updateDecorators=function(o){var r=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;if(o){this.maxHeight=o.maxHeight,this.lineHeight=o.lineHeight,this.canvasHeight=o.height;var a=(o.lastRow+1)*this.lineHeight;a<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight}var c=this.canvas.getContext("2d");function l(b,A){return b.priority<A.priority?-1:b.priority>A.priority?1:0}var f=this.renderer.session.$annotations;if(c.clearRect(0,0,this.canvas.width,this.canvas.height),f){var m={info:1,warning:2,error:3};f.forEach(function(b){b.priority=m[b.type]||null}),f=f.sort(l);for(var v=this.renderer.session.$foldData,y=0;y<f.length;y++){var k=f[y].row,S=this.compensateFoldRows(k,v),_=Math.round((k-S)*this.lineHeight*this.heightRatio),$=Math.round((k-S)*this.lineHeight*this.heightRatio),R=Math.round(((k-S)*this.lineHeight+this.lineHeight)*this.heightRatio),T=R-$;if(T<this.minDecorationHeight){var x=($+R)/2|0;x<this.halfMinDecorationHeight?x=this.halfMinDecorationHeight:x+this.halfMinDecorationHeight>this.canvasHeight&&(x=this.canvasHeight-this.halfMinDecorationHeight),$=Math.round(x-this.halfMinDecorationHeight),R=Math.round(x+this.halfMinDecorationHeight)}c.fillStyle=r[f[y].type]||null,c.fillRect(0,_,this.canvasWidth,R-$)}}var M=this.renderer.session.selection.getCursor();if(M){var S=this.compensateFoldRows(M.row,v),_=Math.round((M.row-S)*this.lineHeight*this.heightRatio);c.fillStyle="rgba(0, 0, 0, 0.5)",c.fillRect(0,_,this.canvasWidth,2)}},p.prototype.compensateFoldRows=function(o,r){var a=0;if(r&&r.length>0)for(var c=0;c<r.length;c++)o>r[c].start.row&&o<r[c].end.row?a+=o-r[c].start.row:o>=r[c].end.row&&(a+=r[c].end.row-r[c].start.row);return a},p}();h.implement(s.prototype,g),i.Decorator=s}),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,i,d){var u=n("./lib/oop"),h=n("./lib/dom"),g=n("./lib/lang"),s=n("./config"),p=n("./layer/gutter").Gutter,o=n("./layer/marker").Marker,r=n("./layer/text").Text,a=n("./layer/cursor").Cursor,c=n("./scrollbar").HScrollBar,l=n("./scrollbar").VScrollBar,f=n("./scrollbar_custom").HScrollBar,m=n("./scrollbar_custom").VScrollBar,v=n("./renderloop").RenderLoop,y=n("./layer/font_metrics").FontMetrics,k=n("./lib/event_emitter").EventEmitter,S=n("./css/editor-css"),_=n("./layer/decorators").Decorator,$=n("./lib/useragent");h.importCssString(S,"ace_editor.css",!1);var R=function(){function T(x,M){var b=this;this.container=x||h.createElement("div"),h.addCssClass(this.container,"ace_editor"),h.HI_DPI&&h.addCssClass(this.container,"ace_hidpi"),this.setTheme(M),s.get("useStrictCSP")==null&&s.set("useStrictCSP",!1),this.$gutter=h.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden","true"),this.scroller=h.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=h.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new p(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new o(this.content);var A=this.$textLayer=new r(this.content);this.canvas=A.element,this.$markerFront=new o(this.content),this.$cursorLayer=new a(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new l(this.container,this),this.scrollBarH=new c(this.container,this),this.scrollBarV.on("scroll",function(C){b.$scrollAnimation||b.session.setScrollTop(C.data-b.scrollMargin.top)}),this.scrollBarH.on("scroll",function(C){b.$scrollAnimation||b.session.setScrollLeft(C.data-b.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new y(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(C){b.updateCharacterSize(),b.onResize(!0,b.gutterWidth,b.$size.width,b.$size.height),b._signal("changeCharacterSize",C)}),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=!$.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(),s.resetOptions(this),s._signal("renderer",this)}return T.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(),h.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},T.prototype.setSession=function(x){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=x,x&&this.scrollMargin.top&&x.getScrollTop()<=0&&x.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(x),this.$markerBack.setSession(x),this.$markerFront.setSession(x),this.$gutterLayer.setSession(x),this.$textLayer.setSession(x),x&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},T.prototype.updateLines=function(x,M,b){if(M===void 0&&(M=1/0),this.$changedLines?(this.$changedLines.firstRow>x&&(this.$changedLines.firstRow=x),this.$changedLines.lastRow<M&&(this.$changedLines.lastRow=M)):this.$changedLines={firstRow:x,lastRow:M},this.$changedLines.lastRow<this.layerConfig.firstRow)if(b)this.$changedLines.lastRow=this.layerConfig.lastRow;else return;this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},T.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},T.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},T.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},T.prototype.updateFull=function(x){x?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},T.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},T.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},T.prototype.onResize=function(x,M,b,A){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=x?1:0;var C=this.container;A||(A=C.clientHeight||C.scrollHeight),b||(b=C.clientWidth||C.scrollWidth);var w=this.$updateCachedSize(x,M,b,A);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!b&&!A)return this.resizing=0;x&&(this.$gutterLayer.$padding=null),x?this.$renderChanges(w|this.$changes,!0):this.$loop.schedule(w|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},T.prototype.$updateCachedSize=function(x,M,b,A){A-=this.$extraHeight||0;var C=0,w=this.$size,E={width:w.width,height:w.height,scrollerHeight:w.scrollerHeight,scrollerWidth:w.scrollerWidth};if(A&&(x||w.height!=A)&&(w.height=A,C|=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",C=C|this.CHANGE_SCROLL),b&&(x||w.width!=b)){C|=this.CHANGE_SIZE,w.width=b,M==null&&(M=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=M,h.setStyle(this.scrollBarH.element.style,"left",M+"px"),h.setStyle(this.scroller.style,"left",M+this.margin.left+"px"),w.scrollerWidth=Math.max(0,b-M-this.scrollBarV.getWidth()-this.margin.h),h.setStyle(this.$gutter.style,"left",this.margin.left+"px");var L=this.scrollBarV.getWidth()+"px";h.setStyle(this.scrollBarH.element.style,"right",L),h.setStyle(this.scroller.style,"right",L),h.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(w.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||x)&&(C|=this.CHANGE_FULL)}return w.$dirty=!b||!A,C&&this._signal("resize",E),C},T.prototype.onGutterResize=function(x){var M=this.$showGutter?x:0;M!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,M,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},T.prototype.adjustWrapLimit=function(){var x=this.$size.scrollerWidth-this.$padding*2,M=Math.floor(x/this.characterWidth);return this.session.adjustWrapLimit(M,this.$showPrintMargin&&this.$printMarginColumn)},T.prototype.setAnimatedScroll=function(x){this.setOption("animatedScroll",x)},T.prototype.getAnimatedScroll=function(){return this.$animatedScroll},T.prototype.setShowInvisibles=function(x){this.setOption("showInvisibles",x),this.session.$bidiHandler.setShowInvisibles(x)},T.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},T.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},T.prototype.setDisplayIndentGuides=function(x){this.setOption("displayIndentGuides",x)},T.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},T.prototype.setHighlightIndentGuides=function(x){this.setOption("highlightIndentGuides",x)},T.prototype.setShowPrintMargin=function(x){this.setOption("showPrintMargin",x)},T.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},T.prototype.setPrintMarginColumn=function(x){this.setOption("printMarginColumn",x)},T.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},T.prototype.getShowGutter=function(){return this.getOption("showGutter")},T.prototype.setShowGutter=function(x){return this.setOption("showGutter",x)},T.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},T.prototype.setFadeFoldWidgets=function(x){this.setOption("fadeFoldWidgets",x)},T.prototype.setHighlightGutterLine=function(x){this.setOption("highlightGutterLine",x)},T.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},T.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var x=h.createElement("div");x.className="ace_layer ace_print-margin-layer",this.$printMarginEl=h.createElement("div"),this.$printMarginEl.className="ace_print-margin",x.appendChild(this.$printMarginEl),this.content.insertBefore(x,this.content.firstChild)}var M=this.$printMarginEl.style;M.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",M.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},T.prototype.getContainerElement=function(){return this.container},T.prototype.getMouseEventTarget=function(){return this.scroller},T.prototype.getTextAreaContainer=function(){return this.container},T.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var x=this.textarea.style,M=this.$composition;if(!this.$keepTextAreaAtCursor&&!M){h.translate(this.textarea,-100,0);return}var b=this.$cursorLayer.$pixelPos;if(b){M&&M.markerRange&&(b=this.$cursorLayer.getPixelPosition(M.markerRange.start,!0));var A=this.layerConfig,C=b.top,w=b.left;C-=A.offset;var E=M&&M.useTextareaForIME||$.isMobile?this.lineHeight:1;if(C<0||C>A.height-E){h.translate(this.textarea,0,0);return}var L=1,O=this.$size.height-E;if(!M)C+=this.lineHeight;else if(M.useTextareaForIME){var I=this.textarea.value;L=this.characterWidth*this.session.$getStringScreenWidth(I)[0]}else C+=this.lineHeight+2;w-=this.scrollLeft,w>this.$size.scrollerWidth-L&&(w=this.$size.scrollerWidth-L),w+=this.gutterWidth+this.margin.left,h.setStyle(x,"height",E+"px"),h.setStyle(x,"width",L+"px"),h.translate(this.textarea,Math.min(w,this.$size.scrollerWidth-L),Math.min(C,O))}}},T.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},T.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},T.prototype.getLastFullyVisibleRow=function(){var x=this.layerConfig,M=x.lastRow,b=this.session.documentToScreenRow(M,0)*x.lineHeight;return b-this.session.getScrollTop()>x.height-x.lineHeight?M-1:M},T.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},T.prototype.setPadding=function(x){this.$padding=x,this.$textLayer.setPadding(x),this.$cursorLayer.setPadding(x),this.$markerFront.setPadding(x),this.$markerBack.setPadding(x),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},T.prototype.setScrollMargin=function(x,M,b,A){var C=this.scrollMargin;C.top=x|0,C.bottom=M|0,C.right=A|0,C.left=b|0,C.v=C.top+C.bottom,C.h=C.left+C.right,C.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-C.top),this.updateFull()},T.prototype.setMargin=function(x,M,b,A){var C=this.margin;C.top=x|0,C.bottom=M|0,C.right=A|0,C.left=b|0,C.v=C.top+C.bottom,C.h=C.left+C.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},T.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},T.prototype.setHScrollBarAlwaysVisible=function(x){this.setOption("hScrollBarAlwaysVisible",x)},T.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},T.prototype.setVScrollBarAlwaysVisible=function(x){this.setOption("vScrollBarAlwaysVisible",x)},T.prototype.$updateScrollBarV=function(){var x=this.layerConfig.maxHeight,M=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(x-=(M-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>x-M&&(x=this.scrollTop+M,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(x+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},T.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},T.prototype.freeze=function(){this.$frozen=!0},T.prototype.unfreeze=function(){this.$frozen=!1},T.prototype.$renderChanges=function(x,M){if(this.$changes&&(x|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!x&&!M){this.$changes|=x;return}if(this.$size.$dirty)return this.$changes|=x,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",x),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var b=this.layerConfig;if(x&this.CHANGE_FULL||x&this.CHANGE_SIZE||x&this.CHANGE_TEXT||x&this.CHANGE_LINES||x&this.CHANGE_SCROLL||x&this.CHANGE_H_SCROLL){if(x|=this.$computeLayerConfig()|this.$loop.clear(),b.firstRow!=this.layerConfig.firstRow&&b.firstRowScreen==this.layerConfig.firstRowScreen){var A=this.scrollTop+(b.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;A>0&&(this.scrollTop=A,x=x|this.CHANGE_SCROLL,x|=this.$computeLayerConfig()|this.$loop.clear())}b=this.layerConfig,this.$updateScrollBarV(),x&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),h.translate(this.content,-this.scrollLeft,-b.offset);var C=b.width+2*this.$padding+"px",w=b.minHeight+"px";h.setStyle(this.content.style,"width",C),h.setStyle(this.content.style,"height",w)}if(x&this.CHANGE_H_SCROLL&&(h.translate(this.content,-this.scrollLeft,-b.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),x&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(b),this.$showGutter&&this.$gutterLayer.update(b),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(b),this.$markerBack.update(b),this.$markerFront.update(b),this.$cursorLayer.update(b),this.$moveTextAreaToCursor(),this._signal("afterRender",x);return}if(x&this.CHANGE_SCROLL){this.$changedLines=null,x&this.CHANGE_TEXT||x&this.CHANGE_LINES?this.$textLayer.update(b):this.$textLayer.scrollLines(b),this.$showGutter&&(x&this.CHANGE_GUTTER||x&this.CHANGE_LINES?this.$gutterLayer.update(b):this.$gutterLayer.scrollLines(b)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(b),this.$markerBack.update(b),this.$markerFront.update(b),this.$cursorLayer.update(b),this.$moveTextAreaToCursor(),this._signal("afterRender",x);return}x&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(b),this.$showGutter&&this.$gutterLayer.update(b),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(b)):x&this.CHANGE_LINES?((this.$updateLines()||x&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(b),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(b)):x&this.CHANGE_TEXT||x&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(b),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(b)):x&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(b),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(b)),x&this.CHANGE_CURSOR&&(this.$cursorLayer.update(b),this.$moveTextAreaToCursor()),x&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(b),x&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(b),this._signal("afterRender",x)},T.prototype.$autosize=function(){var x=this.session.getScreenLength()*this.lineHeight,M=this.$maxLines*this.lineHeight,b=Math.min(M,Math.max((this.$minLines||1)*this.lineHeight,x))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(b+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&b>this.$maxPixelHeight&&(b=this.$maxPixelHeight);var A=b<=2*this.lineHeight,C=!A&&x>M;if(b!=this.desiredHeight||this.$size.height!=this.desiredHeight||C!=this.$vScroll){C!=this.$vScroll&&(this.$vScroll=C,this.scrollBarV.setVisible(C));var w=this.container.clientWidth;this.container.style.height=b+"px",this.$updateCachedSize(!0,this.$gutterWidth,w,b),this.desiredHeight=b,this._signal("autosize")}},T.prototype.$computeLayerConfig=function(){var x=this.session,M=this.$size,b=M.height<=2*this.lineHeight,A=this.session.getScreenLength(),C=A*this.lineHeight,w=this.$getLongestLine(),E=!b&&(this.$hScrollBarAlwaysVisible||M.scrollerWidth-w-2*this.$padding<0),L=this.$horizScroll!==E;L&&(this.$horizScroll=E,this.scrollBarH.setVisible(E));var O=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var I=M.scrollerHeight+this.lineHeight,F=!this.$maxLines&&this.$scrollPastEnd?(M.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;C+=F;var D=this.scrollMargin;this.session.setScrollTop(Math.max(-D.top,Math.min(this.scrollTop,C-M.scrollerHeight+D.bottom))),this.session.setScrollLeft(Math.max(-D.left,Math.min(this.scrollLeft,w+2*this.$padding-M.scrollerWidth+D.right)));var W=!b&&(this.$vScrollBarAlwaysVisible||M.scrollerHeight-C+F<0||this.scrollTop>D.top),j=O!==W;j&&(this.$vScroll=W,this.scrollBarV.setVisible(W));var H=this.scrollTop%this.lineHeight,U=Math.ceil(I/this.lineHeight)-1,K=Math.max(0,Math.round((this.scrollTop-H)/this.lineHeight)),Z=K+U,z,X,Y=this.lineHeight;K=x.screenToDocumentRow(K,0);var V=x.getFoldLine(K);V&&(K=V.start.row),z=x.documentToScreenRow(K,0),X=x.getRowLength(K)*Y,Z=Math.min(x.screenToDocumentRow(Z,0),x.getLength()-1),I=M.scrollerHeight+x.getRowLength(Z)*Y+X,H=this.scrollTop-z*Y;var ee=0;return(this.layerConfig.width!=w||L)&&(ee=this.CHANGE_H_SCROLL),(L||j)&&(ee|=this.$updateCachedSize(!0,this.gutterWidth,M.width,M.height),this._signal("scrollbarVisibilityChanged"),j&&(w=this.$getLongestLine())),this.layerConfig={width:w,padding:this.$padding,firstRow:K,firstRowScreen:z,lastRow:Z,lineHeight:Y,characterWidth:this.characterWidth,minHeight:I,maxHeight:C,offset:H,gutterOffset:Y?Math.max(0,Math.ceil((H+M.height-M.scrollerHeight)/Y)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(w-this.$padding),ee},T.prototype.$updateLines=function(){if(this.$changedLines){var x=this.$changedLines.firstRow,M=this.$changedLines.lastRow;this.$changedLines=null;var b=this.layerConfig;if(!(x>b.lastRow+1)&&!(M<b.firstRow)){if(M===1/0){this.$showGutter&&this.$gutterLayer.update(b),this.$textLayer.update(b);return}return this.$textLayer.updateLines(b,x,M),!0}}},T.prototype.$getLongestLine=function(){var x=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(x+=1),this.$textLayer&&x>this.$textLayer.MAX_LINE_LENGTH&&(x=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(x*this.characterWidth))},T.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},T.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},T.prototype.addGutterDecoration=function(x,M){this.$gutterLayer.addGutterDecoration(x,M)},T.prototype.removeGutterDecoration=function(x,M){this.$gutterLayer.removeGutterDecoration(x,M)},T.prototype.updateBreakpoints=function(x){this._rows=x,this.$loop.schedule(this.CHANGE_GUTTER)},T.prototype.setAnnotations=function(x){this.$gutterLayer.setAnnotations(x),this.$loop.schedule(this.CHANGE_GUTTER)},T.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},T.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},T.prototype.showCursor=function(){this.$cursorLayer.showCursor()},T.prototype.scrollSelectionIntoView=function(x,M,b){this.scrollCursorIntoView(x,b),this.scrollCursorIntoView(M,b)},T.prototype.scrollCursorIntoView=function(x,M,b){if(this.$size.scrollerHeight!==0){var A=this.$cursorLayer.getPixelPosition(x),C=A.left,w=A.top,E=b&&b.top||0,L=b&&b.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var O=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;O+E>w?(M&&O+E>w+this.lineHeight&&(w-=M*this.$size.scrollerHeight),w===0&&(w=-this.scrollMargin.top),this.session.setScrollTop(w)):O+this.$size.scrollerHeight-L<w+this.lineHeight&&(M&&O+this.$size.scrollerHeight-L<w-this.lineHeight&&(w+=M*this.$size.scrollerHeight),this.session.setScrollTop(w+this.lineHeight+L-this.$size.scrollerHeight));var I=this.scrollLeft,F=2*this.layerConfig.characterWidth;C-F<I?(C-=F,C<this.$padding+F&&(C=-this.scrollMargin.left),this.session.setScrollLeft(C)):(C+=F,I+this.$size.scrollerWidth<C+this.characterWidth?this.session.setScrollLeft(Math.round(C+this.characterWidth-this.$size.scrollerWidth)):I<=this.$padding&&C-I<this.characterWidth&&this.session.setScrollLeft(0))}},T.prototype.getScrollTop=function(){return this.session.getScrollTop()},T.prototype.getScrollLeft=function(){return this.session.getScrollLeft()},T.prototype.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},T.prototype.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},T.prototype.scrollToRow=function(x){this.session.setScrollTop(x*this.lineHeight)},T.prototype.alignCursor=function(x,M){typeof x=="number"&&(x={row:x,column:0});var b=this.$cursorLayer.getPixelPosition(x),A=this.$size.scrollerHeight-this.lineHeight,C=b.top-A*(M||0);return this.session.setScrollTop(C),C},T.prototype.$calcSteps=function(x,M){var b=0,A=this.STEPS,C=[],w=function(E,L,O){return O*(Math.pow(E-1,3)+1)+L};for(b=0;b<A;++b)C.push(w(b/this.STEPS,x,M-x));return C},T.prototype.scrollToLine=function(x,M,b,A){var C=this.$cursorLayer.getPixelPosition({row:x,column:0}),w=C.top;M&&(w-=this.$size.scrollerHeight/2);var E=this.scrollTop;this.session.setScrollTop(w),b!==!1&&this.animateScrolling(E,A)},T.prototype.animateScrolling=function(x,M){var b=this.scrollTop;if(!this.$animatedScroll)return;var A=this;if(x==b)return;if(this.$scrollAnimation){var C=this.$scrollAnimation.steps;if(C.length&&(x=C[0],x==b))return}var w=A.$calcSteps(x,b);this.$scrollAnimation={from:x,to:b,steps:w},clearInterval(this.$timer),A.session.setScrollTop(w.shift()),A.session.$scrollTop=b;function E(){A.$timer=clearInterval(A.$timer),A.$scrollAnimation=null,A.$stopAnimation=!1,M&&M()}this.$timer=setInterval(function(){if(A.$stopAnimation){E();return}if(!A.session)return clearInterval(A.$timer);w.length?(A.session.setScrollTop(w.shift()),A.session.$scrollTop=b):b!=null?(A.session.$scrollTop=-1,A.session.setScrollTop(b),b=null):E()},10)},T.prototype.scrollToY=function(x){this.scrollTop!==x&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=x)},T.prototype.scrollToX=function(x){this.scrollLeft!==x&&(this.scrollLeft=x),this.$loop.schedule(this.CHANGE_H_SCROLL)},T.prototype.scrollTo=function(x,M){this.session.setScrollTop(M),this.session.setScrollLeft(x)},T.prototype.scrollBy=function(x,M){M&&this.session.setScrollTop(this.session.getScrollTop()+M),x&&this.session.setScrollLeft(this.session.getScrollLeft()+x)},T.prototype.isScrollableBy=function(x,M){if(M<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||M>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||x<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||x>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},T.prototype.pixelToScreenCoordinates=function(x,M){var b;if(this.$hasCssTransforms){b={top:0,left:0};var A=this.$fontMetrics.transformCoordinates([x,M]);x=A[1]-this.gutterWidth-this.margin.left,M=A[0]}else b=this.scroller.getBoundingClientRect();var C=x+this.scrollLeft-b.left-this.$padding,w=C/this.characterWidth,E=Math.floor((M+this.scrollTop-b.top)/this.lineHeight),L=this.$blockCursor?Math.floor(w):Math.round(w);return{row:E,column:L,side:w-L>0?1:-1,offsetX:C}},T.prototype.screenToTextCoordinates=function(x,M){var b;if(this.$hasCssTransforms){b={top:0,left:0};var A=this.$fontMetrics.transformCoordinates([x,M]);x=A[1]-this.gutterWidth-this.margin.left,M=A[0]}else b=this.scroller.getBoundingClientRect();var C=x+this.scrollLeft-b.left-this.$padding,w=C/this.characterWidth,E=this.$blockCursor?Math.floor(w):Math.round(w),L=Math.floor((M+this.scrollTop-b.top)/this.lineHeight);return this.session.screenToDocumentPosition(L,Math.max(E,0),C)},T.prototype.textToScreenCoordinates=function(x,M){var b=this.scroller.getBoundingClientRect(),A=this.session.documentToScreenPosition(x,M),C=this.$padding+(this.session.$bidiHandler.isBidiRow(A.row,x)?this.session.$bidiHandler.getPosLeft(A.column):Math.round(A.column*this.characterWidth)),w=A.row*this.lineHeight;return{pageX:b.left+C-this.scrollLeft,pageY:b.top+w-this.scrollTop}},T.prototype.visualizeFocus=function(){h.addCssClass(this.container,"ace_focus")},T.prototype.visualizeBlur=function(){h.removeCssClass(this.container,"ace_focus")},T.prototype.showComposition=function(x){this.$composition=x,x.cssText||(x.cssText=this.textarea.style.cssText),x.useTextareaForIME==null&&(x.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(h.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):x.markerId=this.session.addMarker(x.markerRange,"ace_composition_marker","text")},T.prototype.setCompositionText=function(x){var M=this.session.selection.cursor;this.addToken(x,"composition_placeholder",M.row,M.column),this.$moveTextAreaToCursor()},T.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),h.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var x=this.session.selection.cursor;this.removeExtraToken(x.row,x.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},T.prototype.setGhostText=function(x,M){var b=this.session.selection.cursor,A=M||{row:b.row,column:b.column};this.removeGhostText();var C=x.split(`
1717
- `);if(this.addToken(C[0],"ghost_text",A.row,A.column),this.$ghostText={text:x,position:{row:A.row,column:A.column}},C.length>1){this.$ghostTextWidget={text:C.slice(1).join(`
1718
- `),row:A.row,column:A.column,className:"ace_ghost_text"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var w=this.$cursorLayer.getPixelPosition(A,!0),E=this.container,L=E.getBoundingClientRect().height,O=C.length*this.lineHeight,I=O<L-w.top;if(I)return;O<L?this.scrollBy(0,(C.length-1)*this.lineHeight):this.scrollBy(0,w.top)}},T.prototype.removeGhostText=function(){if(this.$ghostText){var x=this.$ghostText.position;this.removeExtraToken(x.row,x.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},T.prototype.addToken=function(x,M,b,A){var C=this.session;C.bgTokenizer.lines[b]=null;var w={type:M,value:x},E=C.getTokens(b);if(A==null||!E.length)E.push(w);else for(var L=0,O=0;O<E.length;O++){var I=E[O];if(L+=I.value.length,A<=L){var F=I.value.length-(L-A),D=I.value.slice(0,F),W=I.value.slice(F);E.splice(O,1,{type:I.type,value:D},w,{type:I.type,value:W});break}}this.updateLines(b,b)},T.prototype.removeExtraToken=function(x,M){this.session.bgTokenizer.lines[x]=null,this.updateLines(x,x)},T.prototype.setTheme=function(x,M){var b=this;if(this.$themeId=x,b._dispatchEvent("themeChange",{theme:x}),!x||typeof x=="string"){var A=x||this.$options.theme.initialValue;s.loadModule(["theme",A],C)}else C(x);function C(w){if(b.$themeId!=x)return M&&M();if(!w||!w.cssClass)throw new Error("couldn't load module "+x+" or it didn't call define");w.$id&&(b.$themeId=w.$id),h.importCssString(w.cssText,w.cssClass,b.container),b.theme&&h.removeCssClass(b.container,b.theme.cssClass);var E="padding"in w?w.padding:"padding"in(b.theme||{})?4:b.$padding;b.$padding&&E!=b.$padding&&b.setPadding(E),b.$theme=w.cssClass,b.theme=w,h.addCssClass(b.container,w.cssClass),h.setCssClass(b.container,"ace_dark",w.isDark),b.$size&&(b.$size.width=0,b.$updateSizeAsync()),b._dispatchEvent("themeLoaded",{theme:w}),M&&M()}},T.prototype.getTheme=function(){return this.$themeId},T.prototype.setStyle=function(x,M){h.setCssClass(this.container,x,M!==!1)},T.prototype.unsetStyle=function(x){h.removeCssClass(this.container,x)},T.prototype.setCursorStyle=function(x){h.setStyle(this.scroller.style,"cursor",x)},T.prototype.setMouseCursor=function(x){h.setStyle(this.scroller.style,"cursor",x)},T.prototype.attachToShadowRoot=function(){h.importCssString(S,"ace_editor.css",this.container)},T.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent="",this.setOption("useResizeObserver",!1)},T.prototype.$updateCustomScrollbar=function(x){var M=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,x===!0?(this.scrollBarV=new m(this.container,this),this.scrollBarH=new f(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function(b){M.$scrollAnimation||M.session.setScrollTop(b.data-M.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(b){M.$scrollAnimation||M.session.setScrollLeft(b.data-M.scrollMargin.left)}),this.$scrollDecorator=new _(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new l(this.container,this),this.scrollBarH=new c(this.container,this),this.scrollBarV.addEventListener("scroll",function(b){M.$scrollAnimation||M.session.setScrollTop(b.data-M.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(b){M.$scrollAnimation||M.session.setScrollLeft(b.data-M.scrollMargin.left)}))},T.prototype.$addResizeObserver=function(){if(!(!window.ResizeObserver||this.$resizeObserver)){var x=this;this.$resizeTimer=g.delayedCall(function(){x.destroyed||x.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(M){var b=M[0].contentRect.width,A=M[0].contentRect.height;Math.abs(x.$size.width-b)>1||Math.abs(x.$size.height-A)>1?x.$resizeTimer.delay():x.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},T}();R.prototype.CHANGE_CURSOR=1,R.prototype.CHANGE_MARKER=2,R.prototype.CHANGE_GUTTER=4,R.prototype.CHANGE_SCROLL=8,R.prototype.CHANGE_LINES=16,R.prototype.CHANGE_TEXT=32,R.prototype.CHANGE_SIZE=64,R.prototype.CHANGE_MARKER_BACK=128,R.prototype.CHANGE_MARKER_FRONT=256,R.prototype.CHANGE_FULL=512,R.prototype.CHANGE_H_SCROLL=1024,R.prototype.$changes=0,R.prototype.$padding=null,R.prototype.$frozen=!1,R.prototype.STEPS=8,u.implement(R.prototype,k),s.defineOptions(R.prototype,"renderer",{useResizeObserver:{set:function(T){!T&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):T&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(T){this.$textLayer.setShowInvisibles(T)&&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(T){typeof T=="number"&&(this.$printMarginColumn=T),this.$showPrintMargin=!!T,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(T){this.$gutter.style.display=T?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(T){this.$gutterLayer.$useSvgGutterIcons=T},initialValue:!1},showFoldedAnnotations:{set:function(T){this.$gutterLayer.$showFoldedAnnotations=T},initialValue:!1},fadeFoldWidgets:{set:function(T){h.setCssClass(this.$gutter,"ace_fade-fold-widgets",T)},initialValue:!1},showFoldWidgets:{set:function(T){this.$gutterLayer.setShowFoldWidgets(T),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(T){this.$textLayer.setDisplayIndentGuides(T)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(T){this.$textLayer.setHighlightIndentGuides(T)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(T){this.$gutterLayer.setHighlightGutterLine(T),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(T){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(T){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(T){typeof T=="number"&&(T=T+"px"),this.container.style.fontSize=T,this.updateFontSize()},initialValue:12},fontFamily:{set:function(T){this.container.style.fontFamily=T,this.updateFontSize()}},maxLines:{set:function(T){this.updateFull()}},minLines:{set:function(T){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(T){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(T){T=+T||0,this.$scrollPastEnd!=T&&(this.$scrollPastEnd=T,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(T){this.$gutterLayer.$fixedWidth=!!T,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(T){this.$updateCustomScrollbar(T)},initialValue:!1},theme:{set:function(T){this.setTheme(T)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!$.isMobile&&!$.isIE}}),i.VirtualRenderer=R}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(n,i,d){var u=n("../lib/oop"),h=n("../lib/net"),g=n("../lib/event_emitter").EventEmitter,s=n("../config");function p(c){var l="importScripts('"+h.qualifyURL(c)+"');";try{return new Blob([l],{type:"application/javascript"})}catch{var f=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,m=new f;return m.append(l),m.getBlob("application/javascript")}}function o(c){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(s.get("loadWorkerFromBlob")){var l=p(c),f=window.URL||window.webkitURL,m=f.createObjectURL(l);return new Worker(m)}return new Worker(c)}var r=function(c){c.postMessage||(c=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=c,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(){u.implement(this,g),this.$createWorkerFromOldConfig=function(c,l,f,m,v){if(n.nameToUrl&&!n.toUrl&&(n.toUrl=n.nameToUrl),s.get("packaged")||!n.toUrl)m=m||s.moduleUrl(l,"worker");else{var y=this.$normalizePath;m=m||y(n.toUrl("ace/worker/worker.js",null,"_"));var k={};c.forEach(function(S){k[S]=y(n.toUrl(S,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=o(m),v&&this.send("importScripts",v),this.$worker.postMessage({init:!0,tlns:k,module:l,classname:f}),this.$worker},this.onMessage=function(c){var l=c.data;switch(l.type){case"event":this._signal(l.name,{data:l.data});break;case"call":var f=this.callbacks[l.id];f&&(f(l.data),delete this.callbacks[l.id]);break;case"error":this.reportError(l.data);break;case"log":window.console&&console.log&&console.log.apply(console,l.data);break}},this.reportError=function(c){window.console&&console.error&&console.error(c)},this.$normalizePath=function(c){return h.qualifyURL(c)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(c){c.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(c,l){this.$worker.postMessage({command:c,args:l})},this.call=function(c,l,f){if(f){var m=this.callbackId++;this.callbacks[m]=f,l.push(m)}this.send(c,l)},this.emit=function(c,l){try{l.data&&l.data.err&&(l.data.err={message:l.data.err.message,stack:l.data.err.stack,code:l.data.err.code}),this.$worker&&this.$worker.postMessage({event:c,data:{data:l.data}})}catch(f){console.error(f.stack)}},this.attachToDocument=function(c){this.$doc&&this.terminate(),this.$doc=c,this.call("setValue",[c.getValue()]),c.on("change",this.changeListener,!0)},this.changeListener=function(c){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),c.action=="insert"?this.deltaQueue.push(c.start,c.lines):this.deltaQueue.push(c.start,c.end)},this.$sendDeltaQueue=function(){var c=this.deltaQueue;c&&(this.deltaQueue=null,c.length>50&&c.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:c}))}}).call(r.prototype);var a=function(c,l,f){var m=null,v=!1,y=Object.create(g),k=[],S=new r({messageBuffer:k,terminate:function(){},postMessage:function($){k.push($),m&&(v?setTimeout(_):_())}});S.setEmitSync=function($){v=$};var _=function(){var $=k.shift();$.command?m[$.command].apply(m,$.args):$.event&&y._signal($.event,$.data)};return y.postMessage=function($){S.onMessage({data:$})},y.callback=function($,R){this.postMessage({type:"call",id:R,data:$})},y.emit=function($,R){this.postMessage({type:"event",name:$,data:R})},s.loadModule(["worker",l],function($){for(m=new $[f](y);k.length;)_()}),S};i.UIWorkerClient=a,i.WorkerClient=r,i.createWorker=o}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(n,i,d){var u=n("./range").Range,h=n("./lib/event_emitter").EventEmitter,g=n("./lib/oop"),s=function(){function p(o,r,a,c,l,f){var m=this;this.length=r,this.session=o,this.doc=o.getDocument(),this.mainClass=l,this.othersClass=f,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=c,this.$onCursorChange=function(){setTimeout(function(){m.onCursorChange()})},this.$pos=a;var v=o.getUndoManager().$undoStack||o.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=v.length,this.setup(),o.selection.on("changeCursor",this.$onCursorChange)}return p.prototype.setup=function(){var o=this,r=this.doc,a=this.session;this.selectionBefore=a.selection.toJSON(),a.selection.inMultiSelectMode&&a.selection.toSingleRange(),this.pos=r.createAnchor(this.$pos.row,this.$pos.column);var c=this.pos;c.$insertRight=!0,c.detach(),c.markerId=a.addMarker(new u(c.row,c.column,c.row,c.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(l){var f=r.createAnchor(l.row,l.column);f.$insertRight=!0,f.detach(),o.others.push(f)}),a.setUndoSelect(!1)},p.prototype.showOtherMarkers=function(){if(!this.othersActive){var o=this.session,r=this;this.othersActive=!0,this.others.forEach(function(a){a.markerId=o.addMarker(new u(a.row,a.column,a.row,a.column+r.length),r.othersClass,null,!1)})}},p.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var o=0;o<this.others.length;o++)this.session.removeMarker(this.others[o].markerId)}},p.prototype.onUpdate=function(o){if(this.$updating)return this.updateAnchors(o);var r=o;if(r.start.row===r.end.row&&r.start.row===this.pos.row){this.$updating=!0;var a=o.action==="insert"?r.end.column-r.start.column:r.start.column-r.end.column,c=r.start.column>=this.pos.column&&r.start.column<=this.pos.column+this.length+1,l=r.start.column-this.pos.column;if(this.updateAnchors(o),c&&(this.length+=a),c&&!this.session.$fromUndo){if(o.action==="insert")for(var f=this.others.length-1;f>=0;f--){var m=this.others[f],v={row:m.row,column:m.column+l};this.doc.insertMergedLines(v,o.lines)}else if(o.action==="remove")for(var f=this.others.length-1;f>=0;f--){var m=this.others[f],v={row:m.row,column:m.column+l};this.doc.remove(new u(v.row,v.column,v.row,v.column-a))}}this.$updating=!1,this.updateMarkers()}},p.prototype.updateAnchors=function(o){this.pos.onChange(o);for(var r=this.others.length;r--;)this.others[r].onChange(o);this.updateMarkers()},p.prototype.updateMarkers=function(){if(!this.$updating){var o=this,r=this.session,a=function(l,f){r.removeMarker(l.markerId),l.markerId=r.addMarker(new u(l.row,l.column,l.row,l.column+o.length),f,null,!1)};a(this.pos,this.mainClass);for(var c=this.others.length;c--;)a(this.others[c],this.othersClass)}},p.prototype.onCursorChange=function(o){if(!(this.$updating||!this.session)){var r=this.session.selection.getCursor();r.row===this.pos.row&&r.column>=this.pos.column&&r.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",o)):(this.hideOtherMarkers(),this._emit("cursorLeave",o))}},p.prototype.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},p.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var o=this.session.getUndoManager(),r=(o.$undoStack||o.$undostack).length-this.$undoStackDepth,a=0;a<r;a++)o.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},p}();g.implement(s.prototype,h),i.PlaceHolder=s}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(n,i,d){var u=n("../lib/event"),h=n("../lib/useragent");function g(p,o){return p.row==o.row&&p.column==o.column}function s(p){var o=p.domEvent,r=o.altKey,a=o.shiftKey,c=o.ctrlKey,l=p.getAccelKey(),f=p.getButton();if(c&&h.isMac&&(f=o.button),p.editor.inMultiSelectMode&&f==2){p.editor.textInput.onContextMenu(p.domEvent);return}if(!c&&!r&&!l){f===0&&p.editor.inMultiSelectMode&&p.editor.exitMultiSelectMode();return}if(f===0){var m=p.editor,v=m.selection,y=m.inMultiSelectMode,k=p.getDocumentPosition(),S=v.getCursor(),_=p.inSelection()||v.isEmpty()&&g(k,S),$=p.x,R=p.y,T=function(W){$=W.clientX,R=W.clientY},x=m.session,M=m.renderer.pixelToScreenCoordinates($,R),b=M,A;if(m.$mouseHandler.$enableJumpToDef)c&&r||l&&r?A=a?"block":"add":r&&m.$blockSelectEnabled&&(A="block");else if(l&&!r){if(A="add",!y&&a)return}else r&&m.$blockSelectEnabled&&(A="block");if(A&&h.isMac&&o.ctrlKey&&m.$mouseHandler.cancelContextMenu(),A=="add"){if(!y&&_)return;if(!y){var C=v.toOrientedRange();m.addSelectionMarker(C)}var w=v.rangeList.rangeAtPoint(k);m.inVirtualSelectionMode=!0,a&&(w=null,C=v.ranges[0]||C,m.removeSelectionMarker(C)),m.once("mouseup",function(){var W=v.toOrientedRange();w&&W.isEmpty()&&g(w.cursor,W.cursor)?v.substractPoint(W.cursor):(a?v.substractPoint(C.cursor):C&&(m.removeSelectionMarker(C),v.addRange(C)),v.addRange(W)),m.inVirtualSelectionMode=!1})}else if(A=="block"){p.stop(),m.inVirtualSelectionMode=!0;var E,L=[],O=function(){var W=m.renderer.pixelToScreenCoordinates($,R),j=x.screenToDocumentPosition(W.row,W.column,W.offsetX);g(b,W)&&g(j,v.lead)||(b=W,m.selection.moveToPosition(j),m.renderer.scrollCursorIntoView(),m.removeSelectionMarkers(L),L=v.rectangularRangeBlock(b,M),m.$mouseHandler.$clickSelection&&L.length==1&&L[0].isEmpty()&&(L[0]=m.$mouseHandler.$clickSelection.clone()),L.forEach(m.addSelectionMarker,m),m.updateSelectionMarkers())};y&&!l?v.toSingleRange():!y&&l&&(E=v.toOrientedRange(),m.addSelectionMarker(E)),a?M=x.documentToScreenPosition(v.lead):v.moveToPosition(k),b={row:-1,column:-1};var I=function(W){O(),clearInterval(D),m.removeSelectionMarkers(L),L.length||(L=[v.toOrientedRange()]),E&&(m.removeSelectionMarker(E),v.toSingleRange(E));for(var j=0;j<L.length;j++)v.addRange(L[j]);m.inVirtualSelectionMode=!1,m.$mouseHandler.$clickSelection=null},F=O;u.capture(m.container,T,I);var D=setInterval(function(){F()},20);return p.preventDefault()}}}i.onMouseDown=s}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(n,i,d){i.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(h){h.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(h){h.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(h){h.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(h){h.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(h){h.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(h){h.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(h){h.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(h){h.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(h){h.multiSelect.rangeCount>1?h.multiSelect.joinSelections():h.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(h){h.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(h){h.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(h){h.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],i.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(h){h.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(h){return h&&h.inMultiSelectMode}}];var u=n("../keyboard/hash_handler").HashHandler;i.keyboardHandler=new u(i.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,i,d){var u=n("./range_list").RangeList,h=n("./range").Range,g=n("./selection").Selection,s=n("./mouse/multi_select_handler").onMouseDown,p=n("./lib/event"),o=n("./lib/lang"),r=n("./commands/multi_select_commands");i.commands=r.defaultCommands.concat(r.multiSelectCommands);var a=n("./search").Search,c=new a;function l(S,_,$){return c.$options.wrap=!0,c.$options.needle=_,c.$options.backwards=$==-1,c.find(S)}var f=n("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(f.prototype),(function(){this.ranges=null,this.rangeList=null,this.addRange=function(S,_){if(S){if(!this.inMultiSelectMode&&this.rangeCount===0){var $=this.toOrientedRange();if(this.rangeList.add($),this.rangeList.add(S),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),_||this.fromOrientedRange(S);this.rangeList.removeAll(),this.rangeList.add($),this.$onAddRange($)}S.cursor||(S.cursor=S.end);var R=this.rangeList.add(S);return this.$onAddRange(S),R.length&&this.$onRemoveRange(R),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),_||this.fromOrientedRange(S)}},this.toSingleRange=function(S){S=S||this.ranges[0];var _=this.rangeList.removeAll();_.length&&this.$onRemoveRange(_),S&&this.fromOrientedRange(S)},this.substractPoint=function(S){var _=this.rangeList.substractPoint(S);if(_)return this.$onRemoveRange(_),_[0]},this.mergeOverlappingRanges=function(){var S=this.rangeList.merge();S.length&&this.$onRemoveRange(S)},this.$onAddRange=function(S){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(S),this._signal("addRange",{range:S})},this.$onRemoveRange=function(S){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var _=this.rangeList.ranges.pop();S.push(_),this.rangeCount=0}for(var $=S.length;$--;){var R=this.ranges.indexOf(S[$]);this.ranges.splice(R,1)}this._signal("removeRange",{ranges:S}),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 u,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var S=this.ranges.length?this.ranges:[this.getRange()],_=[],$=0;$<S.length;$++){var R=S[$],T=R.start.row,x=R.end.row;if(T===x)_.push(R.clone());else{for(_.push(new h(T,R.start.column,T,this.session.getLine(T).length));++T<x;)_.push(this.getLineRange(T,!0));_.push(new h(x,0,x,R.end.column))}$==0&&!this.isBackwards()&&(_=_.reverse())}this.toSingleRange();for(var $=_.length;$--;)this.addRange(_[$])},this.joinSelections=function(){var S=this.rangeList.ranges,_=S[S.length-1],$=h.fromPoints(S[0].start,_.end);this.toSingleRange(),this.setSelectionRange($,_.cursor==_.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var S=this.rangeList.ranges,_=S[S.length-1],$=h.fromPoints(S[0].start,_.end);this.toSingleRange(),this.setSelectionRange($,_.cursor==_.start)}else{var R=this.session.documentToScreenPosition(this.cursor),T=this.session.documentToScreenPosition(this.anchor),x=this.rectangularRangeBlock(R,T);x.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(S,_,$){var R=[],T=S.column<_.column;if(T)var x=S.column,M=_.column,b=S.offsetX,A=_.offsetX;else var x=_.column,M=S.column,b=_.offsetX,A=S.offsetX;var C=S.row<_.row;if(C)var w=S.row,E=_.row;else var w=_.row,E=S.row;x<0&&(x=0),w<0&&(w=0),w==E&&($=!0);for(var L,O=w;O<=E;O++){var I=h.fromPoints(this.session.screenToDocumentPosition(O,x,b),this.session.screenToDocumentPosition(O,M,A));if(I.isEmpty()){if(L&&v(I.end,L))break;L=I.end}I.cursor=T?I.start:I.end,R.push(I)}if(C&&R.reverse(),!$){for(var F=R.length-1;R[F].isEmpty()&&F>0;)F--;if(F>0)for(var D=0;R[D].isEmpty();)D++;for(var W=F;W>=D;W--)R[W].isEmpty()&&R.splice(W,1)}return R}}).call(g.prototype);var m=n("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(S){S.cursor||(S.cursor=S.end);var _=this.getSelectionStyle();return S.marker=this.session.addMarker(S,"ace_selection",_),this.session.$selectionMarkers.push(S),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,S},this.removeSelectionMarker=function(S){if(S.marker){this.session.removeMarker(S.marker);var _=this.session.$selectionMarkers.indexOf(S);_!=-1&&this.session.$selectionMarkers.splice(_,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(S){for(var _=this.session.$selectionMarkers,$=S.length;$--;){var R=S[$];if(R.marker){this.session.removeMarker(R.marker);var T=_.indexOf(R);T!=-1&&_.splice(T,1)}}this.session.selectionMarkerCount=_.length},this.$onAddRange=function(S){this.addSelectionMarker(S.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(S){this.removeSelectionMarkers(S.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(S){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(r.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(S){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(r.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(S){var _=S.command,$=S.editor;if($.multiSelect){if(_.multiSelectAction)_.multiSelectAction=="forEach"?R=$.forEachSelection(_,S.args):_.multiSelectAction=="forEachLine"?R=$.forEachSelection(_,S.args,!0):_.multiSelectAction=="single"?($.exitMultiSelectMode(),R=_.exec($,S.args||{})):R=_.multiSelectAction($,S.args||{});else{var R=_.exec($,S.args||{});$.multiSelect.addRange($.multiSelect.toOrientedRange()),$.multiSelect.mergeOverlappingRanges()}return R}},this.forEachSelection=function(S,_,$){if(!this.inVirtualSelectionMode){var R=$&&$.keepOrder,T=$==!0||$&&$.$byLines,x=this.session,M=this.selection,b=M.rangeList,A=(R?M:b).ranges,C;if(!A.length)return S.exec?S.exec(this,_||{}):S(this,_||{});var w=M._eventRegistry;M._eventRegistry={};var E=new g(x);this.inVirtualSelectionMode=!0;for(var L=A.length;L--;){if(T)for(;L>0&&A[L].start.row==A[L-1].end.row;)L--;E.fromOrientedRange(A[L]),E.index=L,this.selection=x.selection=E;var O=S.exec?S.exec(this,_||{}):S(this,_||{});!C&&O!==void 0&&(C=O),E.toOrientedRange(A[L])}E.detach(),this.selection=x.selection=M,this.inVirtualSelectionMode=!1,M._eventRegistry=w,M.mergeOverlappingRanges(),M.ranges[0]&&M.fromOrientedRange(M.ranges[0]);var I=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),I&&I.from==I.to&&this.renderer.animateScrolling(I.from),C}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var S="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var _=this.multiSelect.rangeList.ranges,$=[],R=0;R<_.length;R++)$.push(this.session.getTextRange(_[R]));var T=this.session.getDocument().getNewLineCharacter();S=$.join(T),S.length==($.length-1)*T.length&&(S="")}else this.selection.isEmpty()||(S=this.session.getTextRange(this.getSelectionRange()));return S},this.$checkMultiselectChange=function(S,_){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var $=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&_==this.multiSelect.anchor)return;var R=_==this.multiSelect.anchor?$.cursor==$.start?$.end:$.start:$.cursor;R.row!=_.row||this.session.$clipPositionToDocument(R.row,R.column).column!=_.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(S,_,$){if(_=_||{},_.needle=S||_.needle,_.needle==null){var R=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();_.needle=this.session.getTextRange(R)}this.$search.set(_);var T=this.$search.findAll(this.session);if(!T.length)return 0;var x=this.multiSelect;$||x.toSingleRange(T[0]);for(var M=T.length;M--;)x.addRange(T[M],!0);return R&&x.rangeList.rangeAtPoint(R.start)&&x.addRange(R,!0),T.length},this.selectMoreLines=function(S,_){var $=this.selection.toOrientedRange(),R=$.cursor==$.end,T=this.session.documentToScreenPosition($.cursor);this.selection.$desiredColumn&&(T.column=this.selection.$desiredColumn);var x=this.session.screenToDocumentPosition(T.row+S,T.column);if($.isEmpty())var b=x;else var M=this.session.documentToScreenPosition(R?$.end:$.start),b=this.session.screenToDocumentPosition(M.row+S,M.column);if(R){var A=h.fromPoints(x,b);A.cursor=A.start}else{var A=h.fromPoints(b,x);A.cursor=A.end}if(A.desiredColumn=T.column,!this.selection.inMultiSelectMode)this.selection.addRange($);else if(_)var C=$.cursor;this.selection.addRange(A),C&&this.selection.substractPoint(C)},this.transposeSelections=function(S){for(var _=this.session,$=_.multiSelect,R=$.ranges,T=R.length;T--;){var x=R[T];if(x.isEmpty()){var M=_.getWordRange(x.start.row,x.start.column);x.start.row=M.start.row,x.start.column=M.start.column,x.end.row=M.end.row,x.end.column=M.end.column}}$.mergeOverlappingRanges();for(var b=[],T=R.length;T--;){var x=R[T];b.unshift(_.getTextRange(x))}S<0?b.unshift(b.pop()):b.push(b.shift());for(var T=R.length;T--;){var x=R[T],A=x.clone();_.replace(x,b[T]),x.start.row=A.start.row,x.start.column=A.start.column}$.fromOrientedRange($.ranges[0])},this.selectMore=function(S,_,$){var R=this.session,T=R.multiSelect,x=T.toOrientedRange();if(!(x.isEmpty()&&(x=R.getWordRange(x.start.row,x.start.column),x.cursor=S==-1?x.start:x.end,this.multiSelect.addRange(x),$))){var M=R.getTextRange(x),b=l(R,M,S);b&&(b.cursor=S==-1?b.start:b.end,this.session.unfold(b),this.multiSelect.addRange(b),this.renderer.scrollCursorIntoView(null,.5)),_&&this.multiSelect.substractPoint(x.cursor)}},this.alignCursors=function(){var S=this.session,_=S.multiSelect,$=_.ranges,R=-1,T=$.filter(function(F){if(F.cursor.row==R)return!0;R=F.cursor.row});if(!$.length||T.length==$.length-1){var x=this.selection.getRange(),M=x.start.row,b=x.end.row,A=M==b;if(A){var C=this.session.getLength(),w;do w=this.session.getLine(b);while(/[=:]/.test(w)&&++b<C);do w=this.session.getLine(M);while(/[=:]/.test(w)&&--M>0);M<0&&(M=0),b>=C&&(b=C-1)}var E=this.session.removeFullLines(M,b);E=this.$reAlignText(E,A),this.session.insert({row:M,column:0},E.join(`
1719
- `)+`
1720
- `),A||(x.start.column=0,x.end.column=E[E.length-1].length),this.selection.setRange(x)}else{T.forEach(function(F){_.substractPoint(F.cursor)});var L=0,O=1/0,I=$.map(function(F){var D=F.cursor,W=S.getLine(D.row),j=W.substr(D.column).search(/\S/g);return j==-1&&(j=0),D.column>L&&(L=D.column),j<O&&(O=j),j});$.forEach(function(F,D){var W=F.cursor,j=L-W.column,H=I[D]-O;j>H?S.insert(W,o.stringRepeat(" ",j-H)):S.remove(new h(W.row,W.column,W.row,W.column-j+H)),F.start.column=F.end.column=L,F.start.row=F.end.row=W.row,F.cursor=F.end}),_.fromOrientedRange($[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(S,_){var $=!0,R=!0,T,x,M;return S.map(function(E){var L=E.match(/(\s*)(.*?)(\s*)([=:].*)/);return L?T==null?(T=L[1].length,x=L[2].length,M=L[3].length,L):(T+x+M!=L[1].length+L[2].length+L[3].length&&(R=!1),T!=L[1].length&&($=!1),T>L[1].length&&(T=L[1].length),x<L[2].length&&(x=L[2].length),M>L[3].length&&(M=L[3].length),L):[E]}).map(_?A:$?R?C:A:w);function b(E){return o.stringRepeat(" ",E)}function A(E){return E[2]?b(T)+E[2]+b(x-E[2].length+M)+E[4].replace(/^([=:])\s+/,"$1 "):E[0]}function C(E){return E[2]?b(T+x-E[2].length)+E[2]+b(M)+E[4].replace(/^([=:])\s+/,"$1 "):E[0]}function w(E){return E[2]?b(T)+E[2]+b(M)+E[4].replace(/^([=:])\s+/,"$1 "):E[0]}}}).call(m.prototype);function v(S,_){return S.row==_.row&&S.column==_.column}i.onSessionChange=function(S){var _=S.session;_&&!_.multiSelect&&(_.$selectionMarkers=[],_.selection.$initRangeList(),_.multiSelect=_.selection),this.multiSelect=_&&_.multiSelect;var $=S.oldSession;$&&($.multiSelect.off("addRange",this.$onAddRange),$.multiSelect.off("removeRange",this.$onRemoveRange),$.multiSelect.off("multiSelect",this.$onMultiSelect),$.multiSelect.off("singleSelect",this.$onSingleSelect),$.multiSelect.lead.off("change",this.$checkMultiselectChange),$.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(S){S.$multiselectOnSessionChange||(S.$onAddRange=S.$onAddRange.bind(S),S.$onRemoveRange=S.$onRemoveRange.bind(S),S.$onMultiSelect=S.$onMultiSelect.bind(S),S.$onSingleSelect=S.$onSingleSelect.bind(S),S.$multiselectOnSessionChange=i.onSessionChange.bind(S),S.$checkMultiselectChange=S.$checkMultiselectChange.bind(S),S.$multiselectOnSessionChange(S),S.on("changeSession",S.$multiselectOnSessionChange),S.on("mousedown",s),S.commands.addCommands(r.defaultCommands),k(S))}function k(S){if(!S.textInput)return;var _=S.textInput.getElement(),$=!1;p.addListener(_,"keydown",function(T){var x=T.keyCode==18&&!(T.ctrlKey||T.shiftKey||T.metaKey);S.$blockSelectEnabled&&x?$||(S.renderer.setMouseCursor("crosshair"),$=!0):$&&R()},S),p.addListener(_,"keyup",R,S),p.addListener(_,"blur",R,S);function R(T){$&&(S.renderer.setMouseCursor(""),$=!1)}}i.MultiSelect=y,n("./config").defineOptions(m.prototype,"editor",{enableMultiselect:{set:function(S){y(this),S?this.on("mousedown",s):this.off("mousedown",s)},value:!0},enableBlockSelect:{set:function(S){this.$blockSelectEnabled=S},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(n,i,d){var u=n("../../range").Range,h=i.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(g,s,p){var o=g.getLine(p);return this.foldingStartMarker.test(o)?"start":s=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(o)?"end":""},this.getFoldWidgetRange=function(g,s,p){return null},this.indentationBlock=function(g,s,p){var o=/\S/,r=g.getLine(s),a=r.search(o);if(a!=-1){for(var c=p||r.length,l=g.getLength(),f=s,m=s;++s<l;){var v=g.getLine(s).search(o);if(v!=-1){if(v<=a){var y=g.getTokenAt(s,0);if(!y||y.type!=="string")break}m=s}}if(m>f){var k=g.getLine(m).length;return new u(f,c,m,k)}}},this.openingBracketBlock=function(g,s,p,o,r){var a={row:p,column:o+1},c=g.$findClosingBracket(s,a,r);if(c){var l=g.foldWidgets[c.row];return l==null&&(l=g.getFoldWidget(c.row)),l=="start"&&c.row>a.row&&(c.row--,c.column=g.getLine(c.row).length),u.fromPoints(a,c)}},this.closingBracketBlock=function(g,s,p,o,r){var a={row:p,column:o},c=g.$findOpeningBracket(s,a);if(c)return c.column++,a.column--,u.fromPoints(c,a)}}).call(h.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range","ace/config"],function(n,i,d){var u=n("../line_widgets").LineWidgets,h=n("../lib/dom"),g=n("../range").Range,s=n("../config").nls;function p(r,a,c){for(var l=0,f=r.length-1;l<=f;){var m=l+f>>1,v=c(a,r[m]);if(v>0)l=m+1;else if(v<0)f=m-1;else return m}return-(l+1)}function o(r,a,c){var l=r.getAnnotations().sort(g.comparePoints);if(l.length){var f=p(l,{row:a,column:-1},g.comparePoints);f<0&&(f=-f-1),f>=l.length?f=c>0?0:l.length-1:f===0&&c<0&&(f=l.length-1);var m=l[f];if(!(!m||!c)){if(m.row===a){do m=l[f+=c];while(m&&m.row===a);if(!m)return l.slice()}var v=[];a=m.row;do v[c<0?"unshift":"push"](m),m=l[f+=c];while(m&&m.row==a);return v.length&&v}}}i.showErrorMarker=function(r,a){var c=r.session;c.widgetManager||(c.widgetManager=new u(c),c.widgetManager.attach(r));var l=r.getCursorPosition(),f=l.row,m=c.widgetManager.getWidgetsAtRow(f).filter(function(x){return x.type=="errorMarker"})[0];m?m.destroy():f-=a;var v=o(c,f,a),y;if(v){var k=v[0];l.column=(k.pos&&typeof k.column!="number"?k.pos.sc:k.column)||0,l.row=k.row,y=r.renderer.$gutterLayer.$annotations[l.row]}else{if(m)return;y={text:[s("Looks good!")],className:"ace_ok"}}r.session.unfold(l.row),r.selection.moveToPosition(l);var S={row:l.row,fixedWidth:!0,coverGutter:!0,el:h.createElement("div"),type:"errorMarker"},_=S.el.appendChild(h.createElement("div")),$=S.el.appendChild(h.createElement("div"));$.className="error_widget_arrow "+y.className;var R=r.renderer.$cursorLayer.getPixelPosition(l).left;$.style.left=R+r.renderer.gutterWidth-5+"px",S.el.className="error_widget_wrapper",_.className="error_widget "+y.className,_.innerHTML=y.text.join("<br>"),_.appendChild(h.createElement("div"));var T=function(x,M,b){if(M===0&&(b==="esc"||b==="return"))return S.destroy(),{command:"null"}};S.destroy=function(){r.$mouseHandler.isMousePressed||(r.keyBinding.removeKeyboardHandler(T),c.widgetManager.removeLineWidget(S),r.off("changeSelection",S.destroy),r.off("changeSession",S.destroy),r.off("mouseup",S.destroy),r.off("change",S.destroy))},r.keyBinding.addKeyboardHandler(T),r.on("changeSelection",S.destroy),r.on("changeSession",S.destroy),r.on("mouseup",S.destroy),r.on("change",S.destroy),r.session.widgetManager.addLineWidget(S),S.el.onmousedown=r.focus.bind(r),r.renderer.scrollCursorIntoView(null,.5,{bottom:S.el.offsetHeight})},h.importCssString(`
1721
- .error_widget_wrapper {
1722
- background: inherit;
1723
- color: inherit;
1724
- border:none
1725
- }
1726
- .error_widget {
1727
- border-top: solid 2px;
1728
- border-bottom: solid 2px;
1729
- margin: 5px 0;
1730
- padding: 10px 40px;
1731
- white-space: pre-wrap;
1732
- }
1733
- .error_widget.ace_error, .error_widget_arrow.ace_error{
1734
- border-color: #ff5a5a
1735
- }
1736
- .error_widget.ace_warning, .error_widget_arrow.ace_warning{
1737
- border-color: #F1D817
1738
- }
1739
- .error_widget.ace_info, .error_widget_arrow.ace_info{
1740
- border-color: #5a5a5a
1741
- }
1742
- .error_widget.ace_ok, .error_widget_arrow.ace_ok{
1743
- border-color: #5aaa5a
1744
- }
1745
- .error_widget_arrow {
1746
- position: absolute;
1747
- border: solid 5px;
1748
- border-top-color: transparent!important;
1749
- border-right-color: transparent!important;
1750
- border-left-color: transparent!important;
1751
- top: -5px;
1752
- }
1753
- `,"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,i,d){n("./loader_build")(i);var u=n("./lib/dom"),h=n("./range").Range,g=n("./editor").Editor,s=n("./edit_session").EditSession,p=n("./undomanager").UndoManager,o=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"),i.config=n("./config"),i.edit=function(r,a){if(typeof r=="string"){var c=r;if(r=document.getElementById(c),!r)throw new Error("ace.edit can't find div #"+c)}if(r&&r.env&&r.env.editor instanceof g)return r.env.editor;var l="";if(r&&/input|textarea/i.test(r.tagName)){var f=r;l=f.value,r=u.createElement("pre"),f.parentNode.replaceChild(r,f)}else r&&(l=r.textContent,r.innerHTML="");var m=i.createEditSession(l),v=new g(new o(r),m,a),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},i.createEditSession=function(r,a){var c=new s(r,a);return c.setUndoManager(new p),c},i.Range=h,i.Editor=g,i.EditSession=s,i.UndoManager=p,i.VirtualRenderer=o,i.version=i.config.version}),function(){ace.require(["ace/ace"],function(n){n&&(n.config.init(!0),n.define=ace.define);var i=function(){return this}();!i&&typeof window<"u"&&(i=window),!i&&typeof self<"u"&&(i=self),i.ace||(i.ace=n);for(var d in n)n.hasOwnProperty(d)&&(i.ace[d]=n[d]);i.ace.default=i.ace,e&&(e.exports=i.ace)})}()})(Gd);var M2=Gd.exports;const Al=Pn(M2),O2="/assets/mode-yaml-BC4MIiYj.js",I2="data:application/javascript;base64,YWNlLmRlZmluZSgiYWNlL3RoZW1lL21vbm9rYWktY3NzIixbInJlcXVpcmUiLCJleHBvcnRzIiwibW9kdWxlIl0sZnVuY3Rpb24oZSx0LG4pe24uZXhwb3J0cz0iLmFjZS1tb25va2FpIC5hY2VfZ3V0dGVyIHtcbiAgYmFja2dyb3VuZDogIzJGMzEyOTtcbiAgY29sb3I6ICM4RjkwOEFcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfcHJpbnQtbWFyZ2luIHtcbiAgd2lkdGg6IDFweDtcbiAgYmFja2dyb3VuZDogIzU1NTY1MVxufVxuXG4uYWNlLW1vbm9rYWkge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjcyODIyO1xuICBjb2xvcjogI0Y4RjhGMlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9jdXJzb3Ige1xuICBjb2xvcjogI0Y4RjhGMFxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9zZWxlY3Rpb24ge1xuICBiYWNrZ3JvdW5kOiAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaS5hY2VfbXVsdGlzZWxlY3QgLmFjZV9zZWxlY3Rpb24uYWNlX3N0YXJ0IHtcbiAgYm94LXNoYWRvdzogMCAwIDNweCAwcHggIzI3MjgyMjtcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfbWFya2VyLWxheWVyIC5hY2Vfc3RlcCB7XG4gIGJhY2tncm91bmQ6IHJnYigxMDIsIDgyLCAwKVxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9icmFja2V0IHtcbiAgbWFyZ2luOiAtMXB4IDAgMCAtMXB4O1xuICBib3JkZXI6IDFweCBzb2xpZCAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX21hcmtlci1sYXllciAuYWNlX2FjdGl2ZS1saW5lIHtcbiAgYmFja2dyb3VuZDogIzIwMjAyMFxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9ndXR0ZXItYWN0aXZlLWxpbmUge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjcyNzI3XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX21hcmtlci1sYXllciAuYWNlX3NlbGVjdGVkLXdvcmQge1xuICBib3JkZXI6IDFweCBzb2xpZCAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2ludmlzaWJsZSB7XG4gIGNvbG9yOiAjNTI1MjRkXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2VudGl0eS5hY2VfbmFtZS5hY2VfdGFnLFxuLmFjZS1tb25va2FpIC5hY2Vfa2V5d29yZCxcbi5hY2UtbW9ub2thaSAuYWNlX21ldGEuYWNlX3RhZyxcbi5hY2UtbW9ub2thaSAuYWNlX3N0b3JhZ2Uge1xuICBjb2xvcjogI0Y5MjY3MlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9wdW5jdHVhdGlvbixcbi5hY2UtbW9ub2thaSAuYWNlX3B1bmN0dWF0aW9uLmFjZV90YWcge1xuICBjb2xvcjogI2ZmZlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9jb25zdGFudC5hY2VfY2hhcmFjdGVyLFxuLmFjZS1tb25va2FpIC5hY2VfY29uc3RhbnQuYWNlX2xhbmd1YWdlLFxuLmFjZS1tb25va2FpIC5hY2VfY29uc3RhbnQuYWNlX251bWVyaWMsXG4uYWNlLW1vbm9rYWkgLmFjZV9jb25zdGFudC5hY2Vfb3RoZXIge1xuICBjb2xvcjogI0FFODFGRlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9pbnZhbGlkIHtcbiAgY29sb3I6ICNGOEY4RjA7XG4gIGJhY2tncm91bmQtY29sb3I6ICNGOTI2NzJcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfaW52YWxpZC5hY2VfZGVwcmVjYXRlZCB7XG4gIGNvbG9yOiAjRjhGOEYwO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjQUU4MUZGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N1cHBvcnQuYWNlX2NvbnN0YW50LFxuLmFjZS1tb25va2FpIC5hY2Vfc3VwcG9ydC5hY2VfZnVuY3Rpb24ge1xuICBjb2xvcjogIzY2RDlFRlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9mb2xkIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI0E2RTIyRTtcbiAgYm9yZGVyLWNvbG9yOiAjRjhGOEYyXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N0b3JhZ2UuYWNlX3R5cGUsXG4uYWNlLW1vbm9rYWkgLmFjZV9zdXBwb3J0LmFjZV9jbGFzcyxcbi5hY2UtbW9ub2thaSAuYWNlX3N1cHBvcnQuYWNlX3R5cGUge1xuICBmb250LXN0eWxlOiBpdGFsaWM7XG4gIGNvbG9yOiAjNjZEOUVGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2VudGl0eS5hY2VfbmFtZS5hY2VfZnVuY3Rpb24sXG4uYWNlLW1vbm9rYWkgLmFjZV9lbnRpdHkuYWNlX290aGVyLFxuLmFjZS1tb25va2FpIC5hY2VfZW50aXR5LmFjZV9vdGhlci5hY2VfYXR0cmlidXRlLW5hbWUsXG4uYWNlLW1vbm9rYWkgLmFjZV92YXJpYWJsZSB7XG4gIGNvbG9yOiAjQTZFMjJFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3ZhcmlhYmxlLmFjZV9wYXJhbWV0ZXIge1xuICBmb250LXN0eWxlOiBpdGFsaWM7XG4gIGNvbG9yOiAjRkQ5NzFGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N0cmluZyB7XG4gIGNvbG9yOiAjRTZEQjc0XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2NvbW1lbnQge1xuICBjb2xvcjogIzc1NzE1RVxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9pbmRlbnQtZ3VpZGUge1xuICBiYWNrZ3JvdW5kOiB1cmwoZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFBRUFBQUFDQ0FZQUFBQ1pnYlluQUFBQUVrbEVRVlFJbVdQUTBGRDBaWEJ6ZC93UEFBalZBb3hlU2dOZUFBQUFBRWxGVGtTdVFtQ0MpIHJpZ2h0IHJlcGVhdC15XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2luZGVudC1ndWlkZS1hY3RpdmUge1xuICBiYWNrZ3JvdW5kOiB1cmwoZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFBRUFBQUFDQ0FZQUFBQ1pnYlluQUFBQUVrbEVRVlFJVzJQUTFkWDl6ekJ6NXN6L0FCQ2NCRkZlbnRMbEFBQUFBRWxGVGtTdVFtQ0MpIHJpZ2h0IHJlcGVhdC15O1xufVxuIn0pLGFjZS5kZWZpbmUoImFjZS90aGVtZS9tb25va2FpIixbInJlcXVpcmUiLCJleHBvcnRzIiwibW9kdWxlIiwiYWNlL3RoZW1lL21vbm9rYWktY3NzIiwiYWNlL2xpYi9kb20iXSxmdW5jdGlvbihlLHQsbil7dC5pc0Rhcms9ITAsdC5jc3NDbGFzcz0iYWNlLW1vbm9rYWkiLHQuY3NzVGV4dD1lKCIuL21vbm9rYWktY3NzIik7dmFyIHI9ZSgiLi4vbGliL2RvbSIpO3IuaW1wb3J0Q3NzU3RyaW5nKHQuY3NzVGV4dCx0LmNzc0NsYXNzLCExKX0pOyAgICAgICAgICAgICAgICAoZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICAgICAgYWNlLnJlcXVpcmUoWyJhY2UvdGhlbWUvbW9ub2thaSJdLCBmdW5jdGlvbihtKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0eXBlb2YgbW9kdWxlID09ICJvYmplY3QiICYmIHR5cGVvZiBleHBvcnRzID09ICJvYmplY3QiICYmIG1vZHVsZSkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgbW9kdWxlLmV4cG9ydHMgPSBtOwogICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgICB9KSgpOwogICAgICAgICAgICA=";Al.config.setModuleUrl("ace/mode/yaml",O2);Al.config.setModuleUrl("ace/theme/monokai",I2);var Kd=function(){if(typeof Map<"u")return Map;function e(t,n){var i=-1;return t.some(function(d,u){return d[0]===n?(i=u,!0):!1}),i}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 i=e(this.__entries__,n),d=this.__entries__[i];return d&&d[1]},t.prototype.set=function(n,i){var d=e(this.__entries__,n);~d?this.__entries__[d][1]=i:this.__entries__.push([n,i])},t.prototype.delete=function(n){var i=this.__entries__,d=e(i,n);~d&&i.splice(d,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,i){i===void 0&&(i=null);for(var d=0,u=this.__entries__;d<u.length;d++){var h=u[d];n.call(i,h[1],h[0])}},t}()}(),ba=typeof window<"u"&&typeof document<"u"&&window.document===document,Ao=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")()}(),F2=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Ao):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),N2=2;function P2(e,t){var n=!1,i=!1,d=0;function u(){n&&(n=!1,e()),i&&g()}function h(){F2(u)}function g(){var s=Date.now();if(n){if(s-d<N2)return;i=!0}else n=!0,i=!1,setTimeout(h,t);d=s}return g}var D2=20,B2=["top","right","bottom","left","width","height","size","weight"],W2=typeof MutationObserver<"u",H2=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=P2(this.refresh.bind(this),D2)}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_,i=n.indexOf(t);~i&&n.splice(i,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(){!ba||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),W2?(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(){!ba||!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,i=n===void 0?"":n,d=B2.some(function(u){return!!~i.indexOf(u)});d&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Yd=function(e,t){for(var n=0,i=Object.keys(t);n<i.length;n++){var d=i[n];Object.defineProperty(e,d,{value:t[d],enumerable:!1,writable:!1,configurable:!0})}return e},ki=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Ao},Xd=ls(0,0,0,0);function ko(e){return parseFloat(e)||0}function bu(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(i,d){var u=e["border-"+d+"-width"];return i+ko(u)},0)}function U2(e){for(var t=["top","right","bottom","left"],n={},i=0,d=t;i<d.length;i++){var u=d[i],h=e["padding-"+u];n[u]=ko(h)}return n}function z2(e){var t=e.getBBox();return ls(0,0,t.width,t.height)}function V2(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Xd;var i=ki(e).getComputedStyle(e),d=U2(i),u=d.left+d.right,h=d.top+d.bottom,g=ko(i.width),s=ko(i.height);if(i.boxSizing==="border-box"&&(Math.round(g+u)!==t&&(g-=bu(i,"left","right")+u),Math.round(s+h)!==n&&(s-=bu(i,"top","bottom")+h)),!G2(e)){var p=Math.round(g+u)-t,o=Math.round(s+h)-n;Math.abs(p)!==1&&(g-=p),Math.abs(o)!==1&&(s-=o)}return ls(d.left,d.top,g,s)}var j2=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof ki(e).SVGGraphicsElement}:function(e){return e instanceof ki(e).SVGElement&&typeof e.getBBox=="function"}}();function G2(e){return e===ki(e).document.documentElement}function K2(e){return ba?j2(e)?z2(e):V2(e):Xd}function Y2(e){var t=e.x,n=e.y,i=e.width,d=e.height,u=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,h=Object.create(u.prototype);return Yd(h,{x:t,y:n,width:i,height:d,top:n,right:t+i,bottom:d+n,left:t}),h}function ls(e,t,n,i){return{x:e,y:t,width:n,height:i}}var X2=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ls(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=K2(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}(),Z2=function(){function e(t,n){var i=Y2(n);Yd(this,{target:t,contentRect:i})}return e}(),J2=function(){function e(t,n,i){if(this.activeObservations_=[],this.observations_=new Kd,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=i}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 ki(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new X2(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 ki(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(i){return new Z2(i.target,i.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}(),Zd=typeof WeakMap<"u"?new WeakMap:new Kd,Jd=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=H2.getInstance(),i=new J2(t,n,this);Zd.set(this,i)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Jd.prototype[e]=function(){var t;return(t=Zd.get(this))[e].apply(t,arguments)}});var Q2=function(){return typeof Ao.ResizeObserver<"u"?Ao.ResizeObserver:Jd}();const wu=["blur","input","change","changeSelectionStyle","changeSession","copy","focus","paste"],Qd=$e({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",...wu],render(){return Ii("div")},mounted(){const e=this._editor=Do(Al.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)}),wu.forEach(t=>{const n="on"+Ri(t);typeof this.$.vnode.props[n]=="function"&&e.on(t,this.$emit.bind(this,t))}),this._ro=new Q2(()=>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)}}}),q2=$e({name:"RuleInputForm",components:{VAceEditor:Qd},props:{yaml:{type:String,required:!0}},emits:["update-yaml"],setup(e,t){const n=ur(e,"yaml");return _h(()=>{t.emit("update-yaml",n.value)}),{yamlInput:n}}}),ek={class:"block"};function tk(e,t,n,i,d,u){const h=he("VAceEditor");return q(),oe("div",ek,[fe(h,{class:"vue-ace-editor",value:e.yamlInput,"onUpdate:value":t[0]||(t[0]=g=>e.yamlInput=g),lang:"yaml",theme:"monokai",options:{fontSize:16,minLines:6,maxLines:1e4}},null,8,["value"])])}const qd=ke(q2,[["render",tk]]),nk=$e({name:"EditRule",components:{InputForm:qd,ErrorMessage:hn},props:{rule:{type:Object,required:!0}},setup(e){const t=Er(),n=ur(e,"rule"),i=ur(n.value,"yaml"),d=z1();return{edit:async()=>{const g=await d.perform({id:e.rule.id,yaml:i.value});t.push({name:"Rule",params:{id:g.id}})},yaml:i,updateYAML:g=>{i.value=g},updateRuleTask:d}}}),ik={class:"column"},rk={class:"is-size-2 mb-4"},ok={class:"field is-grouped is-grouped-centered"},sk={class:"control"},ak={class:"icon is-small"},lk=N("span",null,"Edit",-1),ck={key:0},uk=N("hr",null,null,-1);function hk(e,t,n,i,d,u){var p,o;const h=he("InputForm"),g=he("font-awesome-icon"),s=he("ErrorMessage");return q(),oe("div",ik,[N("h2",rk,"Edit rule: "+Ae(e.rule.id),1),fe(h,{yaml:e.yaml,"onUpdate:yaml":t[0]||(t[0]=r=>e.yaml=r),onUpdateYaml:e.updateYAML},null,8,["yaml","onUpdateYaml"]),N("div",ok,[N("p",sk,[N("a",{class:"button is-primary",onClick:t[1]||(t[1]=(...r)=>e.edit&&e.edit(...r))},[N("span",ak,[fe(g,{icon:"edit"})]),lk])])]),(p=e.updateRuleTask.last)!=null&&p.error?(q(),oe("div",ck,[uk,fe(s,{error:(o=e.updateRuleTask.last)==null?void 0:o.error},null,8,["error"])])):we("",!0)])}const fk=ke(nk,[["render",hk]]),dk=$e({name:"EditRuleWrapper",components:{EditRule:fk,Loading:ri,ErrorMessage:hn},props:{id:{type:String,required:!0}},setup(e){const t=_d(),n=async()=>{await t.perform(e.id)};return tt(async()=>{await n()}),Ye(e,async()=>{await n()}),{getRuleTask:t}}});function pk(e,t,n,i,d,u){var p,o;const h=he("Loading"),g=he("ErrorMessage"),s=he("EditRule");return q(),oe(_e,null,[e.getRuleTask.isRunning?(q(),Te(h,{key:0})):we("",!0),e.getRuleTask.isError?(q(),Te(g,{key:1,error:(p=e.getRuleTask.last)==null?void 0:p.error},null,8,["error"])):we("",!0),(o=e.getRuleTask.last)!=null&&o.value?(q(),Te(s,{key:2,rule:e.getRuleTask.last.value},null,8,["rule"])):we("",!0)],64)}const gk=ke(dk,[["render",pk]]),mk=$e({name:"EditRuleView",components:{EditRule:gk},props:{id:{type:String,required:!0}},setup(e){const t=()=>{ii(`Edit rule:${e.id} - Mihari`)};tt(()=>{t()}),Ye(()=>e.id,()=>{t()})}});function vk(e,t,n,i,d,u){const h=he("EditRule",!0);return q(),Te(h,{id:e.id},null,8,["id"])}const yk=ke(mk,[["render",vk]]);function bk(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=Array.from(typeof e=="string"?[e]:e);i[i.length-1]=i[i.length-1].replace(/\r?\n([\t ]*)$/,"");var d=i.reduce(function(g,s){var p=s.match(/\n([\t ]+|(?!\s).)/g);return p?g.concat(p.map(function(o){var r,a;return(a=(r=o.match(/[\t ]/g))===null||r===void 0?void 0:r.length)!==null&&a!==void 0?a:0})):g},[]);if(d.length){var u=new RegExp(`
1754
- [ ]{`+Math.min.apply(Math,d)+"}","g");i=i.map(function(g){return g.replace(u,`
1755
- `)})}i[0]=i[0].replace(/^\r?\n/,"");var h=i[0];return t.forEach(function(g,s){var p=h.match(/(?:^|\n)( *)$/),o=p?p[1]:"",r=g;typeof g=="string"&&g.includes(`
1756
- `)&&(r=String(g).split(`
1757
- `).map(function(a,c){return c===0?a:""+o+a}).join(`
1758
- `)),h+=r+i[s+1]}),h}var Qr,wk=new Uint8Array(16);function $k(){if(!Qr&&(Qr=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Qr))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Qr(wk)}const Ck=/^(?:[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 Sk(e){return typeof e=="string"&&Ck.test(e)}var nt=[];for(var Ts=0;Ts<256;++Ts)nt.push((Ts+256).toString(16).substr(1));function _k(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(nt[e[t+0]]+nt[e[t+1]]+nt[e[t+2]]+nt[e[t+3]]+"-"+nt[e[t+4]]+nt[e[t+5]]+"-"+nt[e[t+6]]+nt[e[t+7]]+"-"+nt[e[t+8]]+nt[e[t+9]]+"-"+nt[e[t+10]]+nt[e[t+11]]+nt[e[t+12]]+nt[e[t+13]]+nt[e[t+14]]+nt[e[t+15]]).toLowerCase();if(!Sk(n))throw TypeError("Stringified UUID is invalid");return n}function Ak(e,t,n){e=e||{};var i=e.random||(e.rng||$k)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,t){n=n||0;for(var d=0;d<16;++d)t[n+d]=i[d];return t}return _k(i)}function kk(){const e=Ak(),t=Ni();return bk`---
1759
- id: ${e}
1760
- title: Title goes here
1761
- description: Description goes here
1762
- created_on: ${t.format("YYYY-MM-DD")}
1763
- queries: []`}const xk=$e({name:"NewRule",components:{InputForm:qd,ErrorMessage:hn},setup(){const e=Er(),t=Ke(kk()),n=U1();return{yaml:t,create:async()=>{const u=await n.perform({yaml:t.value});e.push({name:"Rule",params:{id:u.id}})},updateYAML:u=>{t.value=u},createRuleTask:n}}}),Ek={class:"column"},Rk=N("h2",{class:"is-size-2 mb-4"},"New rule",-1),Lk={class:"field is-grouped is-grouped-centered"},Tk={class:"control"},Mk={class:"icon is-small"},Ok=N("span",null,"Create",-1),Ik={key:0},Fk=N("hr",null,null,-1);function Nk(e,t,n,i,d,u){var p,o;const h=he("InputForm"),g=he("font-awesome-icon"),s=he("ErrorMessage");return q(),oe("div",Ek,[Rk,fe(h,{yaml:e.yaml,"onUpdate:yaml":t[0]||(t[0]=r=>e.yaml=r),onUpdateYaml:e.updateYAML},null,8,["yaml","onUpdateYaml"]),N("div",Lk,[N("p",Tk,[N("a",{class:"button is-primary",onClick:t[1]||(t[1]=(...r)=>e.create&&e.create(...r))},[N("span",Mk,[fe(g,{icon:"plus"})]),Ok])])]),(p=e.createRuleTask.last)!=null&&p.error?(q(),oe("div",Ik,[Fk,fe(s,{error:(o=e.createRuleTask.last)==null?void 0:o.error},null,8,["error"])])):we("",!0)])}const Pk=ke(xk,[["render",Nk]]),Dk=$e({name:"NewRuleView",components:{NewRule:Pk},setup(){const e=()=>{ii("New rule - Mihari")};tt(()=>{e()})}});function Bk(e,t,n,i,d,u){const h=he("NewRule",!0);return q(),Te(h)}const Wk=ke(Dk,[["render",Bk]]),Hk=$e({name:"YAML",components:{VAceEditor:Qd},props:{yaml:{type:String,required:!0}},setup(){}}),Uk={class:"block"};function zk(e,t,n,i,d,u){const h=he("VAceEditor");return q(),oe("div",Uk,[fe(h,{class:"vue-ace-editor",value:e.yaml,lang:"yaml",theme:"monokai",options:{readOnly:!0,fontSize:16,maxLines:1e4,minLines:6}},null,8,["value"])])}const Vk=ke(Hk,[["render",zk]]),jk=$e({name:"RuleItem",props:{rule:{type:Object,required:!0}},components:{YAML:Vk,Alerts:Pd,ErrorMessage:hn},emits:["refresh"],setup(e,t){const n=Er(),i=W1(),d=H1();return{deleteRule:async()=>{window.confirm(`Are you sure you want to delete ${e.rule.id}?`)&&(await i.perform(e.rule.id),n.push("/"))},runRule:async()=>{await d.perform(e.rule.id),t.emit("refresh")},runRuleTask:d}}}),Gk={class:"column"},Kk={key:0},Yk=N("hr",null,null,-1),Xk=N("h2",{class:"is-size-2 mb-4"},"Rule",-1),Zk={class:"block is-clearfix"},Jk={class:"buttons is-pulled-right"},Qk=N("span",null,"Run",-1),qk={class:"icon is-small"},ex=N("span",null,"Edit",-1),tx={class:"icon is-small"},nx=N("span",null,"Delete",-1),ix={class:"icon is-small"},rx=N("hr",null,null,-1),ox={class:"column"},sx=N("h2",{class:"is-size-2 mb-4"},"Related alerts",-1);function ax(e,t,n,i,d,u){var r;const h=he("ErrorMessage"),g=he("font-awesome-icon"),s=he("router-link"),p=he("YAML"),o=he("Alerts");return q(),oe(_e,null,[N("div",Gk,[(r=e.runRuleTask.last)!=null&&r.error?(q(),oe("div",Kk,[fe(h,{error:e.runRuleTask.last.error},null,8,["error"]),Yk])):we("",!0),Xk,N("p",Zk,[N("span",Jk,[N("button",{class:"button is-primary is-light is-small",onClick:t[0]||(t[0]=(...a)=>e.runRule&&e.runRule(...a))},[Qk,N("span",qk,[e.runRuleTask.isRunning?(q(),Te(g,{key:0,icon:"spinner",spin:""})):(q(),Te(g,{key:1,icon:"arrow-right"}))])]),fe(s,{class:"button is-info is-light is-small",to:{name:"EditRule",params:{id:e.rule.id}}},{default:kt(()=>[ex,N("span",tx,[fe(g,{icon:"edit"})])]),_:1},8,["to"]),N("button",{class:"button is-light is-small",onClick:t[1]||(t[1]=(...a)=>e.deleteRule&&e.deleteRule(...a))},[nx,N("span",ix,[fe(g,{icon:"times"})])])])]),fe(p,{yaml:e.rule.yaml},null,8,["yaml"])]),rx,N("div",ox,[sx,fe(o,{ruleId:e.rule.id},null,8,["ruleId"])])],64)}const lx=ke(jk,[["render",ax]]),cx=$e({name:"RuleWrapper",components:{Rule:lx,Loading:ri,ErrorMessage:hn},props:{id:{type:String,required:!0}},setup(e){const t=_d(),n=async()=>{await t.perform(e.id)},i=async()=>{await n()};return tt(async()=>{await n()}),Ye(e,async()=>{await n()}),{getRuleTask:t,refresh:i}}});function ux(e,t,n,i,d,u){var p,o;const h=he("Loading"),g=he("ErrorMessage"),s=he("Rule");return q(),oe(_e,null,[e.getRuleTask.isRunning?(q(),Te(h,{key:0})):we("",!0),e.getRuleTask.isError?(q(),Te(g,{key:1,error:(p=e.getRuleTask.last)==null?void 0:p.error},null,8,["error"])):we("",!0),(o=e.getRuleTask.last)!=null&&o.value?(q(),Te(s,{key:2,rule:e.getRuleTask.last.value,onRefresh:e.refresh},null,8,["rule","onRefresh"])):we("",!0)],64)}const hx=ke(cx,[["render",ux]]),fx=$e({name:"RuleView",components:{Rule:hx},props:{id:{type:String,required:!0}},setup(e){const t=()=>{ii(`Rule:${e.id} - Mihari`)};tt(()=>{t()}),Ye(()=>e.id,()=>{t()})}});function dx(e,t,n,i,d,u){const h=he("Rule",!0);return q(),Te(h,{id:e.id},null,8,["id"])}const px=ke(fx,[["render",dx]]),gx=$e({name:"RulesForm",props:{tags:{type:Array,required:!0},page:{type:String,required:!0},tag:{type:String,required:!1}},setup(e){const t=At("description"),n=At("fromAt"),i=At("tag",e.tag||null),d=At("title"),u=At("toAt"),h=()=>({description:Wt(t.value),page:parseInt(e.page),tag:Wt(i.value),title:Wt(t.value),toAt:Wt(u.value),fromAt:Wt(n.value)});return Ye(()=>e.tag,()=>{i.value=e.tag||null}),{description:t,fromAt:n,getSearchParams:h,title:d,toAt:u,tagInput:i}}}),mx={class:"columns"},vx={class:"column"},yx={class:"field is-horizontal"},bx=N("div",{class:"field-label is-normal"},[N("label",{class:"label"},"Title")],-1),wx={class:"field-body"},$x={class:"field"},Cx={class:"control"},Sx={class:"column"},_x={class:"field is-horizontal"},Ax=N("div",{class:"field-label is-normal"},[N("label",{class:"label"},"Description")],-1),kx={class:"field-body"},xx={class:"field"},Ex={class:"control"},Rx={class:"columns"},Lx={class:"column"},Tx={class:"field is-horizontal"},Mx=N("div",{class:"field-label is-normal"},[N("label",{class:"label"},"Tag")],-1),Ox={class:"field-body"},Ix={class:"field"},Fx={class:"control"},Nx={class:"select"},Px=N("option",null,null,-1),Dx=N("div",{class:"column"},null,-1),Bx={class:"columns"},Wx={class:"column"},Hx={class:"field is-horizontal"},Ux=N("div",{class:"field-label is-normal"},[N("label",{class:"label"},"From")],-1),zx={class:"field-body"},Vx={class:"field"},jx={class:"control"},Gx={class:"column"},Kx={class:"field is-horizontal"},Yx=N("div",{class:"field-label is-normal"},[N("label",{class:"label"},"To")],-1),Xx={class:"field-body"},Zx={class:"field"},Jx={class:"control"};function Qx(e,t,n,i,d,u){return q(),oe(_e,null,[N("div",mx,[N("div",vx,[N("div",yx,[bx,N("div",wx,[N("div",$x,[N("p",Cx,[Ot(N("input",{class:"input",type:"text","onUpdate:modelValue":t[0]||(t[0]=h=>e.title=h)},null,512),[[Nt,e.title]])])])])])]),N("div",Sx,[N("div",_x,[Ax,N("div",kx,[N("div",xx,[N("p",Ex,[Ot(N("input",{class:"input",type:"text","onUpdate:modelValue":t[1]||(t[1]=h=>e.description=h)},null,512),[[Nt,e.description]])])])])])])]),N("div",Rx,[N("div",Lx,[N("div",Tx,[Mx,N("div",Ox,[N("div",Ix,[N("div",Fx,[N("div",Nx,[Ot(N("select",{"onUpdate:modelValue":t[2]||(t[2]=h=>e.tagInput=h)},[Px,(q(!0),oe(_e,null,ct(e.tags,h=>(q(),oe("option",{key:h},Ae(h),1))),128))],512),[[vr,e.tagInput]])])])])])])]),Dx]),N("div",Bx,[N("div",Wx,[N("div",Hx,[Ux,N("div",zx,[N("div",Vx,[N("p",jx,[Ot(N("input",{class:"input",type:"date","onUpdate:modelValue":t[3]||(t[3]=h=>e.fromAt=h)},null,512),[[Nt,e.fromAt]])])])])])]),N("div",Gx,[N("div",Kx,[Yx,N("div",Xx,[N("div",Zx,[N("p",Jx,[Ot(N("input",{class:"input",type:"date","onUpdate:modelValue":t[4]||(t[4]=h=>e.toAt=h)},null,512),[[Nt,e.toAt]])])])])])])])],64)}const qx=ke(gx,[["render",Qx]]),eE=$e({name:"RulesItem",props:{rules:{type:Object,required:!0}},components:{Pagination:Od,Tags:xd},emits:["update-page","refresh-page","update-tag"],setup(e,t){const n=()=>{window.scrollTo({top:0})},i=g=>{n(),t.emit("update-page",g)},d=()=>{n(),t.emit("refresh-page")},u=g=>{n(),t.emit("update-tag",g)},h=Ee(()=>e.rules.rules.length>0);return{updatePage:i,refreshPage:d,updateTag:u,hasRules:h}}}),tE={key:0},nE={class:"table is-fullwidth"},iE=N("tr",null,[N("th",null,"ID"),N("th",null,"Title"),N("th",null,"Description"),N("th",null,"Tags")],-1),rE={class:"help"};function oE(e,t,n,i,d,u){const h=he("router-link"),g=he("Tags"),s=he("Pagination");return q(),oe(_e,null,[e.hasRules?(q(),oe("div",tE,[N("table",nE,[iE,(q(!0),oe(_e,null,ct(e.rules.rules,p=>(q(),oe("tr",{key:p.id},[N("td",null,[fe(h,{to:{name:"Rule",params:{id:p.id}}},{default:kt(()=>[dt(Ae(p.id),1)]),_:2},1032,["to"])]),N("td",null,Ae(p.title),1),N("td",null,Ae(p.description),1),N("td",null,[fe(g,{tags:p.tags,onUpdateTag:e.updateTag},null,8,["tags","onUpdateTag"])])]))),128))])])):we("",!0),fe(s,{currentPage:e.rules.currentPage,total:e.rules.total,pageSize:e.rules.pageSize,onUpdatePage:e.updatePage},null,8,["currentPage","total","pageSize","onUpdatePage"]),N("p",rE,"("+Ae(e.rules.total)+" results in total, "+Ae(e.rules.rules.length)+" shown)",1)],64)}const sE=ke(eE,[["render",oE]]),aE=$e({name:"RulesWrapper",components:{Rules:sE,Loading:ri,FormComponent:qx,ErrorMessage:hn},setup(){const e=At("page","1"),t=Ke(void 0),n=Ke(),i=B1(),d=Cd(),u=async()=>{var a;const r=(a=n.value)==null?void 0:a.getSearchParams();return await i.perform(r)},h=r=>{e.value=r.toString()},g=()=>{e.value="1"},s=async()=>{g(),await u()},p=r=>{t.value===r?t.value=void 0:t.value=r,jt(async()=>await s())},o=async()=>{await s()};return tt(async()=>{d.perform(),await u()}),Ye([e,t],async()=>{jt(async()=>await u())}),{form:n,getRulesTask:i,getTagsTask:d,page:e,tag:t,refreshPage:o,search:s,updatePage:h,updateTag:p}}}),lE={class:"box mb-6"},cE=N("hr",null,null,-1),uE={class:"column"},hE={class:"field is-grouped is-grouped-centered"},fE={class:"control"},dE={class:"icon is-small"},pE=N("span",null,"Search",-1),gE={key:0},mE=N("hr",null,null,-1);function vE(e,t,n,i,d,u){var r,a,c;const h=he("FormComponent"),g=he("font-awesome-icon"),s=he("Loading"),p=he("ErrorMessage"),o=he("Rules");return q(),oe(_e,null,[N("div",lE,[fe(h,{ref:"form",tags:((r=e.getTagsTask.last)==null?void 0:r.value)||[],page:e.page,tag:e.tag},null,8,["tags","page","tag"]),cE,N("div",uE,[N("div",hE,[N("p",fE,[N("a",{class:"button is-primary",onClick:t[0]||(t[0]=(...l)=>e.search&&e.search(...l))},[N("span",dE,[fe(g,{icon:"search"})]),pE])])])])]),e.getRulesTask.performCount>0?(q(),oe("div",gE,[mE,e.getRulesTask.isRunning?(q(),Te(s,{key:0})):we("",!0),e.getRulesTask.isError?(q(),Te(p,{key:1,error:(a=e.getRulesTask.last)==null?void 0:a.error},null,8,["error"])):we("",!0),(c=e.getRulesTask.last)!=null&&c.value?(q(),Te(o,{key:2,rules:e.getRulesTask.last.value,onRefreshPage:e.refreshPage,onUpdatePage:e.updatePage,onUpdateTag:e.updateTag},null,8,["rules","onRefreshPage","onUpdatePage","onUpdateTag"])):we("",!0)])):we("",!0)],64)}const yE=ke(aE,[["render",vE]]),bE=$e({name:"RulesView",components:{Rules:yE},setup(){ii("Rules - Mihari")}});function wE(e,t,n,i,d,u){const h=he("Rules",!0);return q(),Te(h)}const $E=ke(bE,[["render",wE]]),CE=[{path:"/",name:"Alerts",component:dS},{path:"/configs",name:"Configs",component:T2},{path:"/artifacts/:id",name:"Artifact",component:u2,props:!0},{path:"/rules",name:"Rules",component:$E},{path:"/rules/new",name:"NewRule",component:Wk},{path:"/rules/:id",name:"Rule",component:px,props:!0},{path:"/rules/:id/edit",name:"EditRule",component:yk,props:!0}],SE=Db({history:eb(),routes:CE});Fg.add(Wg,Jg,Xg,Bg,Zg,Ug,Pg,jg,Vg,Yg,Kg);const ep=Lf(F0);ep.component("font-awesome-icon",w0);ep.use(SE).mount("#app");