mihari 5.4.4 → 5.4.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -25
  3. data/docs/alternatives.md +5 -0
  4. data/docs/analyzers/binaryedge.md +21 -0
  5. data/docs/analyzers/censys.md +23 -0
  6. data/docs/analyzers/circl.md +29 -0
  7. data/docs/analyzers/crtsh.md +25 -0
  8. data/docs/analyzers/dnstwister.md +23 -0
  9. data/docs/analyzers/feed.md +49 -0
  10. data/docs/analyzers/greynoise.md +21 -0
  11. data/docs/analyzers/hunterhow.md +25 -0
  12. data/docs/analyzers/index.md +79 -0
  13. data/docs/analyzers/onyphe.md +21 -0
  14. data/docs/analyzers/otx.md +23 -0
  15. data/docs/analyzers/passivetotal.md +36 -0
  16. data/docs/analyzers/pulsedive.md +23 -0
  17. data/docs/analyzers/securitytrails.md +32 -0
  18. data/docs/analyzers/shodan.md +21 -0
  19. data/docs/analyzers/urlscan.md +23 -0
  20. data/docs/analyzers/virustotal.md +34 -0
  21. data/docs/analyzers/virustotal_intelligence.md +22 -0
  22. data/docs/analyzers/zoomeye.md +25 -0
  23. data/docs/configuration.md +35 -0
  24. data/docs/emitters/database.md +22 -0
  25. data/docs/emitters/hive.md +18 -0
  26. data/docs/emitters/index.md +7 -0
  27. data/docs/emitters/misp.md +16 -0
  28. data/docs/emitters/slack.md +16 -0
  29. data/docs/emitters/webhook.md +63 -0
  30. data/docs/enrichers/google_public_dns.md +19 -0
  31. data/docs/enrichers/index.md +6 -0
  32. data/docs/enrichers/ipinfo.md +19 -0
  33. data/docs/enrichers/shodan.md +22 -0
  34. data/docs/enrichers/whois.md +17 -0
  35. data/docs/github_actions.md +43 -0
  36. data/docs/index.md +13 -0
  37. data/docs/installation.md +31 -0
  38. data/docs/requirements.md +20 -0
  39. data/docs/rule.md +165 -0
  40. data/docs/tags.md +3 -0
  41. data/docs/usage.md +100 -0
  42. data/frontend/package-lock.json +232 -229
  43. data/frontend/package.json +7 -7
  44. data/lib/mihari/version.rb +1 -1
  45. data/lib/mihari/web/public/assets/{index-ef33a6cd.js → index-0a5a47bf.js} +43 -41
  46. data/lib/mihari/web/public/index.html +1 -1
  47. data/mihari.gemspec +1 -1
  48. data/mkdocs.yml +35 -0
  49. data/requirements.txt +2 -0
  50. metadata +45 -4
@@ -1,6 +1,6 @@
1
- var op=Object.defineProperty;var sp=(e,t,n)=>t in e?op(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Le=(e,t,n)=>(sp(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 p of u.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&i(p)}).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){tt(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 so(e){"@babel/helpers - typeof";return so=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},so(e)}function ap(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kl(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 lp(e,t,n){return t&&kl(e.prototype,t),n&&kl(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function tt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ya(e,t){return up(e)||fp(e,t)||bu(e,t)||pp()}function yr(e){return cp(e)||hp(e)||bu(e)||dp()}function cp(e){if(Array.isArray(e))return Ts(e)}function up(e){if(Array.isArray(e))return e}function hp(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fp(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i=[],d=!0,u=!1,p,g;try{for(n=n.call(e);!(d=(p=n.next()).done)&&(i.push(p.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 bu(e,t){if(e){if(typeof e=="string")return Ts(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 Ts(e,t)}}function Ts(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 dp(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pp(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var El=function(){},ba={},wu={},$u=null,_u={mark:El,measure:El};try{typeof window<"u"&&(ba=window),typeof document<"u"&&(wu=document),typeof MutationObserver<"u"&&($u=MutationObserver),typeof performance<"u"&&(_u=performance)}catch{}var gp=ba.navigator||{},Rl=gp.userAgent,Ll=Rl===void 0?"":Rl,Sn=ba,je=wu,Tl=$u,Lr=_u;Sn.document;var an=!!je.documentElement&&!!je.head&&typeof je.addEventListener=="function"&&typeof je.createElement=="function",Cu=~Ll.indexOf("MSIE")||~Ll.indexOf("Trident/"),Tr,Mr,Ir,Or,Fr,nn="___FONT_AWESOME___",Ms=16,Su="fa",Au="svg-inline--fa",jn="data-fa-i2svg",Is="data-fa-pseudo-element",mp="data-fa-pseudo-element-pending",wa="data-prefix",$a="data-icon",Ml="fontawesome-i2svg",vp="async",yp=["HTML","HEAD","STYLE","SCRIPT"],xu=function(){try{return!0}catch{return!1}}(),Ve="classic",Xe="sharp",_a=[Ve,Xe];function br(e){return new Proxy(e,{get:function(n,i){return i in n?n[i]:n[Ve]}})}var er=br((Tr={},tt(Tr,Ve,{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","fa-kit":"kit"}),tt(Tr,Xe,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light"}),Tr)),tr=br((Mr={},tt(Mr,Ve,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),tt(Mr,Xe,{solid:"fass",regular:"fasr",light:"fasl"}),Mr)),nr=br((Ir={},tt(Ir,Ve,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),tt(Ir,Xe,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light"}),Ir)),bp=br((Or={},tt(Or,Ve,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),tt(Or,Xe,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl"}),Or)),wp=/fa(s|r|l|t|d|b|k|ss|sr|sl)?[\-\ ]/,ku="fa-layers-text",$p=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,_p=br((Fr={},tt(Fr,Ve,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),tt(Fr,Xe,{900:"fass",400:"fasr",300:"fasl"}),Fr)),Eu=[1,2,3,4,5,6,7,8,9,10],Cp=Eu.concat([11,12,13,14,15,16,17,18,19,20]),Sp=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Dn={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},ir=new Set;Object.keys(tr[Ve]).map(ir.add.bind(ir));Object.keys(tr[Xe]).map(ir.add.bind(ir));var Ap=[].concat(_a,yr(ir),["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",Dn.GROUP,Dn.SWAP_OPACITY,Dn.PRIMARY,Dn.SECONDARY]).concat(Eu.map(function(e){return"".concat(e,"x")})).concat(Cp.map(function(e){return"w-".concat(e)})),zi=Sn.FontAwesomeConfig||{};function xp(e){var t=je.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function kp(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(je&&typeof je.querySelector=="function"){var Ep=[["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"]];Ep.forEach(function(e){var t=ya(e,2),n=t[0],i=t[1],d=kp(xp(n));d!=null&&(zi[i]=d)})}var Ru={styleDefault:"solid",familyDefault:"classic",cssPrefix:Su,replacementClass:Au,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};zi.familyPrefix&&(zi.cssPrefix=zi.familyPrefix);var di=pe(pe({},Ru),zi);di.autoReplaceSvg||(di.observeMutations=!1);var ye={};Object.keys(Ru).forEach(function(e){Object.defineProperty(ye,e,{enumerable:!0,set:function(n){di[e]=n,Vi.forEach(function(i){return i(ye)})},get:function(){return di[e]}})});Object.defineProperty(ye,"familyPrefix",{enumerable:!0,set:function(t){di.cssPrefix=t,Vi.forEach(function(n){return n(ye)})},get:function(){return di.cssPrefix}});Sn.FontAwesomeConfig=ye;var Vi=[];function Rp(e){return Vi.push(e),function(){Vi.splice(Vi.indexOf(e),1)}}var dn=Ms,Ht={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Lp(e){if(!(!e||!an)){var t=je.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=je.head.childNodes,i=null,d=n.length-1;d>-1;d--){var u=n[d],p=(u.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(p)>-1&&(i=u)}return je.head.insertBefore(t,i),e}}var Tp="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function rr(){for(var e=12,t="";e-- >0;)t+=Tp[Math.random()*62|0];return t}function _i(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Ca(e){return e.classList?_i(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function Lu(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Mp(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(Lu(e[n]),'" ')},"").trim()}function Ao(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function Sa(e){return e.size!==Ht.size||e.x!==Ht.x||e.y!==Ht.y||e.rotate!==Ht.rotate||e.flipX||e.flipY}function Ip(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,") "),p="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(p," ").concat(g)},h={transform:"translate(".concat(i/2*-1," -256)")};return{outer:d,inner:s,path:h}}function Op(e){var t=e.transform,n=e.width,i=n===void 0?Ms:n,d=e.height,u=d===void 0?Ms:d,p=e.startCentered,g=p===void 0?!1:p,s="";return g&&Cu?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 Fp=`:root, :host {
1
+ var sp=Object.defineProperty;var ap=(e,t,n)=>t in e?sp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Le=(e,t,n)=>(ap(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 p of document.querySelectorAll('link[rel="modulepreload"]'))i(p);new MutationObserver(p=>{for(const u of p)if(u.type==="childList")for(const f of u.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&i(f)}).observe(document,{childList:!0,subtree:!0});function n(p){const u={};return p.integrity&&(u.integrity=p.integrity),p.referrerPolicy&&(u.referrerPolicy=p.referrerPolicy),p.crossOrigin==="use-credentials"?u.credentials="include":p.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function i(p){if(p.ep)return;p.ep=!0;const u=n(p);fetch(p.href,u)}})();function xl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(p){return Object.getOwnPropertyDescriptor(e,p).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){tt(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 oo(e){"@babel/helpers - typeof";return oo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oo(e)}function lp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kl(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 cp(e,t,n){return t&&kl(e.prototype,t),n&&kl(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function tt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ya(e,t){return hp(e)||dp(e,t)||wu(e,t)||gp()}function yr(e){return up(e)||fp(e)||wu(e)||pp()}function up(e){if(Array.isArray(e))return Ls(e)}function hp(e){if(Array.isArray(e))return e}function fp(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dp(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i=[],p=!0,u=!1,f,g;try{for(n=n.call(e);!(p=(f=n.next()).done)&&(i.push(f.value),!(t&&i.length===t));p=!0);}catch(s){u=!0,g=s}finally{try{!p&&n.return!=null&&n.return()}finally{if(u)throw g}}return i}}function wu(e,t){if(e){if(typeof e=="string")return Ls(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 Ls(e,t)}}function Ls(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 pp(){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 gp(){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 El=function(){},ba={},$u={},_u=null,Cu={mark:El,measure:El};try{typeof window<"u"&&(ba=window),typeof document<"u"&&($u=document),typeof MutationObserver<"u"&&(_u=MutationObserver),typeof performance<"u"&&(Cu=performance)}catch{}var mp=ba.navigator||{},Rl=mp.userAgent,Ll=Rl===void 0?"":Rl,Sn=ba,je=$u,Tl=_u,Lr=Cu;Sn.document;var an=!!je.documentElement&&!!je.head&&typeof je.addEventListener=="function"&&typeof je.createElement=="function",Su=~Ll.indexOf("MSIE")||~Ll.indexOf("Trident/"),Tr,Mr,Ir,Or,Fr,nn="___FONT_AWESOME___",Ts=16,Au="fa",xu="svg-inline--fa",jn="data-fa-i2svg",Ms="data-fa-pseudo-element",vp="data-fa-pseudo-element-pending",wa="data-prefix",$a="data-icon",Ml="fontawesome-i2svg",yp="async",bp=["HTML","HEAD","STYLE","SCRIPT"],ku=function(){try{return!0}catch{return!1}}(),Ve="classic",Xe="sharp",_a=[Ve,Xe];function br(e){return new Proxy(e,{get:function(n,i){return i in n?n[i]:n[Ve]}})}var er=br((Tr={},tt(Tr,Ve,{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","fa-kit":"kit"}),tt(Tr,Xe,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light"}),Tr)),tr=br((Mr={},tt(Mr,Ve,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),tt(Mr,Xe,{solid:"fass",regular:"fasr",light:"fasl"}),Mr)),nr=br((Ir={},tt(Ir,Ve,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),tt(Ir,Xe,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light"}),Ir)),wp=br((Or={},tt(Or,Ve,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),tt(Or,Xe,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl"}),Or)),$p=/fa(s|r|l|t|d|b|k|ss|sr|sl)?[\-\ ]/,Eu="fa-layers-text",_p=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,Cp=br((Fr={},tt(Fr,Ve,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),tt(Fr,Xe,{900:"fass",400:"fasr",300:"fasl"}),Fr)),Ru=[1,2,3,4,5,6,7,8,9,10],Sp=Ru.concat([11,12,13,14,15,16,17,18,19,20]),Ap=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Dn={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},ir=new Set;Object.keys(tr[Ve]).map(ir.add.bind(ir));Object.keys(tr[Xe]).map(ir.add.bind(ir));var xp=[].concat(_a,yr(ir),["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",Dn.GROUP,Dn.SWAP_OPACITY,Dn.PRIMARY,Dn.SECONDARY]).concat(Ru.map(function(e){return"".concat(e,"x")})).concat(Sp.map(function(e){return"w-".concat(e)})),zi=Sn.FontAwesomeConfig||{};function kp(e){var t=je.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function Ep(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(je&&typeof je.querySelector=="function"){var Rp=[["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"]];Rp.forEach(function(e){var t=ya(e,2),n=t[0],i=t[1],p=Ep(kp(n));p!=null&&(zi[i]=p)})}var Lu={styleDefault:"solid",familyDefault:"classic",cssPrefix:Au,replacementClass:xu,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};zi.familyPrefix&&(zi.cssPrefix=zi.familyPrefix);var di=pe(pe({},Lu),zi);di.autoReplaceSvg||(di.observeMutations=!1);var ye={};Object.keys(Lu).forEach(function(e){Object.defineProperty(ye,e,{enumerable:!0,set:function(n){di[e]=n,Vi.forEach(function(i){return i(ye)})},get:function(){return di[e]}})});Object.defineProperty(ye,"familyPrefix",{enumerable:!0,set:function(t){di.cssPrefix=t,Vi.forEach(function(n){return n(ye)})},get:function(){return di.cssPrefix}});Sn.FontAwesomeConfig=ye;var Vi=[];function Lp(e){return Vi.push(e),function(){Vi.splice(Vi.indexOf(e),1)}}var dn=Ts,Wt={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Tp(e){if(!(!e||!an)){var t=je.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=je.head.childNodes,i=null,p=n.length-1;p>-1;p--){var u=n[p],f=(u.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(f)>-1&&(i=u)}return je.head.insertBefore(t,i),e}}var Mp="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function rr(){for(var e=12,t="";e-- >0;)t+=Mp[Math.random()*62|0];return t}function _i(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Ca(e){return e.classList?_i(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function Tu(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Ip(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(Tu(e[n]),'" ')},"").trim()}function So(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function Sa(e){return e.size!==Wt.size||e.x!==Wt.x||e.y!==Wt.y||e.rotate!==Wt.rotate||e.flipX||e.flipY}function Op(e){var t=e.transform,n=e.containerWidth,i=e.iconWidth,p={transform:"translate(".concat(n/2," 256)")},u="translate(".concat(t.x*32,", ").concat(t.y*32,") "),f="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(f," ").concat(g)},h={transform:"translate(".concat(i/2*-1," -256)")};return{outer:p,inner:s,path:h}}function Fp(e){var t=e.transform,n=e.width,i=n===void 0?Ts:n,p=e.height,u=p===void 0?Ts:p,f=e.startCentered,g=f===void 0?!1:f,s="";return g&&Su?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 Np=`:root, :host {
4
4
  --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";
5
5
  --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";
6
6
  --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";
@@ -756,31 +756,33 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
756
756
  .fad.fa-inverse,
757
757
  .fa-duotone.fa-inverse {
758
758
  color: var(--fa-inverse, #fff);
759
- }`;function Tu(){var e=Su,t=Au,n=ye.cssPrefix,i=ye.replacementClass,d=Fp;if(n!==e||i!==t){var u=new RegExp("\\.".concat(e,"\\-"),"g"),p=new RegExp("\\--".concat(e,"\\-"),"g"),g=new RegExp("\\.".concat(t),"g");d=d.replace(u,".".concat(n,"-")).replace(p,"--".concat(n,"-")).replace(g,".".concat(i))}return d}var Il=!1;function cs(){ye.autoAddCss&&!Il&&(Lp(Tu()),Il=!0)}var Np={mixout:function(){return{dom:{css:Tu,insertCss:cs}}},hooks:function(){return{beforeDOMElementCreation:function(){cs()},beforeI2svg:function(){cs()}}}},rn=Sn||{};rn[nn]||(rn[nn]={});rn[nn].styles||(rn[nn].styles={});rn[nn].hooks||(rn[nn].hooks={});rn[nn].shims||(rn[nn].shims=[]);var It=rn[nn],Mu=[],Pp=function e(){je.removeEventListener("DOMContentLoaded",e),ao=1,Mu.map(function(t){return t()})},ao=!1;an&&(ao=(je.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(je.readyState),ao||je.addEventListener("DOMContentLoaded",Pp));function Dp(e){an&&(ao?setTimeout(e,0):Mu.push(e))}function wr(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"?Lu(e):"<".concat(t," ").concat(Mp(i),">").concat(u.map(wr).join(""),"</").concat(t,">")}function Ol(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Bp=function(t,n){return function(i,d,u,p){return t.call(n,i,d,u,p)}},us=function(t,n,i,d){var u=Object.keys(t),p=u.length,g=d!==void 0?Bp(n,d):n,s,h,o;for(i===void 0?(s=1,o=t[u[0]]):(s=0,o=i);s<p;s++)h=u[s],o=g(o,t[h],h,t);return o};function Wp(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 Os(e){var t=Wp(e);return t.length===1?t[0].toString(16):null}function Hp(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 Fl(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 Fs(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=n.skipHooks,d=i===void 0?!1:i,u=Fl(t);typeof It.hooks.addPack=="function"&&!d?It.hooks.addPack(e,Fl(t)):It.styles[e]=pe(pe({},It.styles[e]||{}),u),e==="fas"&&Fs("fa",t)}var Nr,Pr,Dr,ri=It.styles,Up=It.shims,zp=(Nr={},tt(Nr,Ve,Object.values(nr[Ve])),tt(Nr,Xe,Object.values(nr[Xe])),Nr),Aa=null,Iu={},Ou={},Fu={},Nu={},Pu={},Vp=(Pr={},tt(Pr,Ve,Object.keys(er[Ve])),tt(Pr,Xe,Object.keys(er[Xe])),Pr);function jp(e){return~Ap.indexOf(e)}function Gp(e,t){var n=t.split("-"),i=n[0],d=n.slice(1).join("-");return i===e&&d!==""&&!jp(d)?d:null}var Du=function(){var t=function(u){return us(ri,function(p,g,s){return p[s]=us(g,u,{}),p},{})};Iu=t(function(d,u,p){if(u[3]&&(d[u[3]]=p),u[2]){var g=u[2].filter(function(s){return typeof s=="number"});g.forEach(function(s){d[s.toString(16)]=p})}return d}),Ou=t(function(d,u,p){if(d[p]=p,u[2]){var g=u[2].filter(function(s){return typeof s=="string"});g.forEach(function(s){d[s]=p})}return d}),Pu=t(function(d,u,p){var g=u[2];return d[p]=p,g.forEach(function(s){d[s]=p}),d});var n="far"in ri||ye.autoFetchSvg,i=us(Up,function(d,u){var p=u[0],g=u[1],s=u[2];return g==="far"&&!n&&(g="fas"),typeof p=="string"&&(d.names[p]={prefix:g,iconName:s}),typeof p=="number"&&(d.unicodes[p.toString(16)]={prefix:g,iconName:s}),d},{names:{},unicodes:{}});Fu=i.names,Nu=i.unicodes,Aa=xo(ye.styleDefault,{family:ye.familyDefault})};Rp(function(e){Aa=xo(e.styleDefault,{family:ye.familyDefault})});Du();function xa(e,t){return(Iu[e]||{})[t]}function Kp(e,t){return(Ou[e]||{})[t]}function Bn(e,t){return(Pu[e]||{})[t]}function Bu(e){return Fu[e]||{prefix:null,iconName:null}}function Yp(e){var t=Nu[e],n=xa("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function An(){return Aa}var ka=function(){return{prefix:null,iconName:null,rest:[]}};function xo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,i=n===void 0?Ve:n,d=er[i][e],u=tr[i][e]||tr[i][d],p=e in It.styles?e:null;return u||p||null}var Nl=(Dr={},tt(Dr,Ve,Object.keys(nr[Ve])),tt(Dr,Xe,Object.keys(nr[Xe])),Dr);function ko(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.skipLookups,d=i===void 0?!1:i,u=(t={},tt(t,Ve,"".concat(ye.cssPrefix,"-").concat(Ve)),tt(t,Xe,"".concat(ye.cssPrefix,"-").concat(Xe)),t),p=null,g=Ve;(e.includes(u[Ve])||e.some(function(h){return Nl[Ve].includes(h)}))&&(g=Ve),(e.includes(u[Xe])||e.some(function(h){return Nl[Xe].includes(h)}))&&(g=Xe);var s=e.reduce(function(h,o){var r=Gp(ye.cssPrefix,o);if(ri[o]?(o=zp[g].includes(o)?bp[g][o]:o,p=o,h.prefix=o):Vp[g].indexOf(o)>-1?(p=o,h.prefix=xo(o,{family:g})):r?h.iconName=r:o!==ye.replacementClass&&o!==u[Ve]&&o!==u[Xe]&&h.rest.push(o),!d&&h.prefix&&h.iconName){var l=p==="fa"?Bu(h.iconName):{},c=Bn(h.prefix,h.iconName);l.prefix&&(p=null),h.iconName=l.iconName||c||h.iconName,h.prefix=l.prefix||h.prefix,h.prefix==="far"&&!ri.far&&ri.fas&&!ye.autoFetchSvg&&(h.prefix="fas")}return h},ka());return(e.includes("fa-brands")||e.includes("fab"))&&(s.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(s.prefix="fad"),!s.prefix&&g===Xe&&(ri.fass||ye.autoFetchSvg)&&(s.prefix="fass",s.iconName=Bn(s.prefix,s.iconName)||s.iconName),(s.prefix==="fa"||p==="fa")&&(s.prefix=An()||"fas"),s}var Xp=function(){function e(){ap(this,e),this.definitions={}}return lp(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 p=d.reduce(this._pullDefinitions,{});Object.keys(p).forEach(function(g){n.definitions[g]=pe(pe({},n.definitions[g]||{}),p[g]),Fs(g,p[g]);var s=nr[Ve][g];s&&Fs(s,p[g]),Du()})}},{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 p=d[u],g=p.prefix,s=p.iconName,h=p.icon,o=h[2];n[g]||(n[g]={}),o.length>0&&o.forEach(function(r){typeof r=="string"&&(n[g][r]=h)}),n[g][s]=h}),n}}]),e}(),Pl=[],oi={},ai={},Zp=Object.keys(ai);function Qp(e,t){var n=t.mixoutsTo;return Pl=e,oi={},Object.keys(ai).forEach(function(i){Zp.indexOf(i)===-1&&delete ai[i]}),Pl.forEach(function(i){var d=i.mixout?i.mixout():{};if(Object.keys(d).forEach(function(p){typeof d[p]=="function"&&(n[p]=d[p]),so(d[p])==="object"&&Object.keys(d[p]).forEach(function(g){n[p]||(n[p]={}),n[p][g]=d[p][g]})}),i.hooks){var u=i.hooks();Object.keys(u).forEach(function(p){oi[p]||(oi[p]=[]),oi[p].push(u[p])})}i.provides&&i.provides(ai)}),n}function Ns(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=oi[e]||[];return u.forEach(function(p){t=p.apply(null,[t].concat(i))}),t}function Gn(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=oi[e]||[];d.forEach(function(u){u.apply(null,n)})}function on(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return ai[e]?ai[e].apply(null,t):void 0}function Ps(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,n=e.prefix||An();if(t)return t=Bn(n,t)||t,Ol(Wu.definitions,n,t)||Ol(It.styles,n,t)}var Wu=new Xp,Jp=function(){ye.autoReplaceSvg=!1,ye.observeMutations=!1,Gn("noAuto")},qp={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return an?(Gn("beforeI2svg",t),on("pseudoElements2svg",t),on("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,Dp(function(){tg({autoReplaceSvgRoot:n}),Gn("watch",t)})}},eg={icon:function(t){if(t===null)return null;if(so(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Bn(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=xo(t[0]);return{prefix:i,iconName:Bn(i,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(ye.cssPrefix,"-"))>-1||t.match(wp))){var d=ko(t.split(" "),{skipLookups:!0});return{prefix:d.prefix||An(),iconName:Bn(d.prefix,d.iconName)||d.iconName}}if(typeof t=="string"){var u=An();return{prefix:u,iconName:Bn(u,t)||t}}}},Ct={noAuto:Jp,config:ye,dom:qp,parse:eg,library:Wu,findIconDefinition:Ps,toHtml:wr},tg=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,i=n===void 0?je:n;(Object.keys(It.styles).length>0||ye.autoFetchSvg)&&an&&ye.autoReplaceSvg&&Ct.dom.i2svg({node:i})};function Eo(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(i){return wr(i)})}}),Object.defineProperty(e,"node",{get:function(){if(an){var i=je.createElement("div");return i.innerHTML=e.html,i.children}}}),e}function ng(e){var t=e.children,n=e.main,i=e.mask,d=e.attributes,u=e.styles,p=e.transform;if(Sa(p)&&n.found&&!i.found){var g=n.width,s=n.height,h={x:g/s/2,y:.5};d.style=Ao(pe(pe({},u),{},{"transform-origin":"".concat(h.x+p.x/16,"em ").concat(h.y+p.y/16,"em")}))}return[{tag:"svg",attributes:d,children:t}]}function ig(e){var t=e.prefix,n=e.iconName,i=e.children,d=e.attributes,u=e.symbol,p=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:p}),children:i}]}]}function Ea(e){var t=e.icons,n=t.main,i=t.mask,d=e.prefix,u=e.iconName,p=e.transform,g=e.symbol,s=e.title,h=e.maskId,o=e.titleId,r=e.extra,l=e.watchable,c=l===void 0?!1:l,a=i.found?i:n,f=a.width,m=a.height,y=d==="fak",b=[ye.replacementClass,u?"".concat(ye.cssPrefix,"-").concat(u):""].filter(function(k){return r.classes.indexOf(k)===-1}).filter(function(k){return k!==""||!!k}).concat(r.classes).join(" "),E={children:[],attributes:pe(pe({},r.attributes),{},{"data-prefix":d,"data-icon":u,class:b,role:r.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(f," ").concat(m)})},S=y&&!~r.classes.indexOf("fa-fw")?{width:"".concat(f/m*16*.0625,"em")}:{};c&&(E.attributes[jn]=""),s&&(E.children.push({tag:"title",attributes:{id:E.attributes["aria-labelledby"]||"title-".concat(o||rr())},children:[s]}),delete E.attributes.title);var C=pe(pe({},E),{},{prefix:d,iconName:u,main:n,mask:i,maskId:h,transform:p,symbol:g,styles:pe(pe({},S),r.styles)}),$=i.found&&n.found?on("generateAbstractMask",C)||{children:[],attributes:{}}:on("generateAbstractIcon",C)||{children:[],attributes:{}},R=$.children,x=$.attributes;return C.children=R,C.attributes=x,g?ig(C):ng(C)}function Dl(e){var t=e.content,n=e.width,i=e.height,d=e.transform,u=e.title,p=e.extra,g=e.watchable,s=g===void 0?!1:g,h=pe(pe(pe({},p.attributes),u?{title:u}:{}),{},{class:p.classes.join(" ")});s&&(h[jn]="");var o=pe({},p.styles);Sa(d)&&(o.transform=Op({transform:d,startCentered:!0,width:n,height:i}),o["-webkit-transform"]=o.transform);var r=Ao(o);r.length>0&&(h.style=r);var l=[];return l.push({tag:"span",attributes:h,children:[t]}),u&&l.push({tag:"span",attributes:{class:"sr-only"},children:[u]}),l}function rg(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=Ao(i.styles);u.length>0&&(d.style=u);var p=[];return p.push({tag:"span",attributes:d,children:[t]}),n&&p.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),p}var hs=It.styles;function Ds(e){var t=e[0],n=e[1],i=e.slice(4),d=ya(i,1),u=d[0],p=null;return Array.isArray(u)?p={tag:"g",attributes:{class:"".concat(ye.cssPrefix,"-").concat(Dn.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ye.cssPrefix,"-").concat(Dn.SECONDARY),fill:"currentColor",d:u[0]}},{tag:"path",attributes:{class:"".concat(ye.cssPrefix,"-").concat(Dn.PRIMARY),fill:"currentColor",d:u[1]}}]}:p={tag:"path",attributes:{fill:"currentColor",d:u}},{found:!0,width:t,height:n,icon:p}}var og={found:!1,width:512,height:512};function sg(e,t){!xu&&!ye.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Bs(e,t){var n=t;return t==="fa"&&ye.styleDefault!==null&&(t=An()),new Promise(function(i,d){if(on("missingIconAbstract"),n==="fa"){var u=Bu(e)||{};e=u.iconName||e,t=u.prefix||t}if(e&&t&&hs[t]&&hs[t][e]){var p=hs[t][e];return i(Ds(p))}sg(e,t),i(pe(pe({},og),{},{icon:ye.showMissingIcons&&e?on("missingIconAbstract")||{}:{}}))})}var Bl=function(){},Ws=ye.measurePerformance&&Lr&&Lr.mark&&Lr.measure?Lr:{mark:Bl,measure:Bl},Di='FA "6.4.2"',ag=function(t){return Ws.mark("".concat(Di," ").concat(t," begins")),function(){return Hu(t)}},Hu=function(t){Ws.mark("".concat(Di," ").concat(t," ends")),Ws.measure("".concat(Di," ").concat(t),"".concat(Di," ").concat(t," begins"),"".concat(Di," ").concat(t," ends"))},Ra={begin:ag,end:Hu},Qr=function(){};function Wl(e){var t=e.getAttribute?e.getAttribute(jn):null;return typeof t=="string"}function lg(e){var t=e.getAttribute?e.getAttribute(wa):null,n=e.getAttribute?e.getAttribute($a):null;return t&&n}function cg(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(ye.replacementClass)}function ug(){if(ye.autoReplaceSvg===!0)return Jr.replace;var e=Jr[ye.autoReplaceSvg];return e||Jr.replace}function hg(e){return je.createElementNS("http://www.w3.org/2000/svg",e)}function fg(e){return je.createElement(e)}function Uu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,i=n===void 0?e.tag==="svg"?hg:fg:n;if(typeof e=="string")return je.createTextNode(e);var d=i(e.tag);Object.keys(e.attributes||[]).forEach(function(p){d.setAttribute(p,e.attributes[p])});var u=e.children||[];return u.forEach(function(p){d.appendChild(Uu(p,{ceFn:i}))}),d}function dg(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var Jr={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(d){n.parentNode.insertBefore(Uu(d),n)}),n.getAttribute(jn)===null&&ye.keepOriginalSource){var i=je.createComment(dg(n));n.parentNode.replaceChild(i,n)}else n.remove()},nest:function(t){var n=t[0],i=t[1];if(~Ca(n).indexOf(ye.replacementClass))return Jr.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 p=i.map(function(g){return wr(g)}).join(`
760
- `);n.setAttribute(jn,""),n.innerHTML=p}};function Hl(e){e()}function zu(e,t){var n=typeof t=="function"?t:Qr;if(e.length===0)n();else{var i=Hl;ye.mutateApproach===vp&&(i=Sn.requestAnimationFrame||Hl),i(function(){var d=ug(),u=Ra.begin("mutate");e.map(d),u(),n()})}}var La=!1;function Vu(){La=!0}function Hs(){La=!1}var lo=null;function Ul(e){if(Tl&&ye.observeMutations){var t=e.treeCallback,n=t===void 0?Qr:t,i=e.nodeCallback,d=i===void 0?Qr:i,u=e.pseudoElementsCallback,p=u===void 0?Qr:u,g=e.observeMutationsRoot,s=g===void 0?je:g;lo=new Tl(function(h){if(!La){var o=An();_i(h).forEach(function(r){if(r.type==="childList"&&r.addedNodes.length>0&&!Wl(r.addedNodes[0])&&(ye.searchPseudoElements&&p(r.target),n(r.target)),r.type==="attributes"&&r.target.parentNode&&ye.searchPseudoElements&&p(r.target.parentNode),r.type==="attributes"&&Wl(r.target)&&~Sp.indexOf(r.attributeName))if(r.attributeName==="class"&&lg(r.target)){var l=ko(Ca(r.target)),c=l.prefix,a=l.iconName;r.target.setAttribute(wa,c||o),a&&r.target.setAttribute($a,a)}else cg(r.target)&&d(r.target)})}}),an&&lo.observe(s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function pg(){lo&&lo.disconnect()}function gg(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(i,d){var u=d.split(":"),p=u[0],g=u.slice(1);return p&&g.length>0&&(i[p]=g.join(":").trim()),i},{})),n}function mg(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),i=e.innerText!==void 0?e.innerText.trim():"",d=ko(Ca(e));return d.prefix||(d.prefix=An()),t&&n&&(d.prefix=t,d.iconName=n),d.iconName&&d.prefix||(d.prefix&&i.length>0&&(d.iconName=Kp(d.prefix,e.innerText)||xa(d.prefix,Os(e.innerText))),!d.iconName&&ye.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(d.iconName=e.firstChild.data)),d}function vg(e){var t=_i(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||rr()):(t["aria-hidden"]="true",t.focusable="false")),t}function yg(){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 zl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=mg(e),i=n.iconName,d=n.prefix,u=n.rest,p=vg(e),g=Ns("parseNodeAttributes",{},e),s=t.styleParser?gg(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:p}},g)}var bg=It.styles;function ju(e){var t=ye.autoReplaceSvg==="nest"?zl(e,{styleParser:!1}):zl(e);return~t.extra.classes.indexOf(ku)?on("generateLayersText",e,t):on("generateSvgReplacementMutation",e,t)}var xn=new Set;_a.map(function(e){xn.add("fa-".concat(e))});Object.keys(er[Ve]).map(xn.add.bind(xn));Object.keys(er[Xe]).map(xn.add.bind(xn));xn=yr(xn);function Vl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!an)return Promise.resolve();var n=je.documentElement.classList,i=function(r){return n.add("".concat(Ml,"-").concat(r))},d=function(r){return n.remove("".concat(Ml,"-").concat(r))},u=ye.autoFetchSvg?xn:_a.map(function(o){return"fa-".concat(o)}).concat(Object.keys(bg));u.includes("fa")||u.push("fa");var p=[".".concat(ku,":not([").concat(jn,"])")].concat(u.map(function(o){return".".concat(o,":not([").concat(jn,"])")})).join(", ");if(p.length===0)return Promise.resolve();var g=[];try{g=_i(e.querySelectorAll(p))}catch{}if(g.length>0)i("pending"),d("complete");else return Promise.resolve();var s=Ra.begin("onTree"),h=g.reduce(function(o,r){try{var l=ju(r);l&&o.push(l)}catch(c){xu||c.name==="MissingIcon"&&console.error(c)}return o},[]);return new Promise(function(o,r){Promise.all(h).then(function(l){zu(l,function(){i("active"),i("complete"),d("pending"),typeof t=="function"&&t(),s(),o()})}).catch(function(l){s(),r(l)})})}function wg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;ju(e).then(function(n){n&&zu([n],t)})}function $g(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=(t||{}).icon?t:Ps(t||{}),d=n.mask;return d&&(d=(d||{}).icon?d:Ps(d||{})),e(i,pe(pe({},n),{},{mask:d}))}}var _g=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,p=u===void 0?!1:u,g=n.mask,s=g===void 0?null:g,h=n.maskId,o=h===void 0?null:h,r=n.title,l=r===void 0?null:r,c=n.titleId,a=c===void 0?null:c,f=n.classes,m=f===void 0?[]:f,y=n.attributes,b=y===void 0?{}:y,E=n.styles,S=E===void 0?{}:E;if(t){var C=t.prefix,$=t.iconName,R=t.icon;return Eo(pe({type:"icon"},t),function(){return Gn("beforeDOMElementCreation",{iconDefinition:t,params:n}),ye.autoA11y&&(l?b["aria-labelledby"]="".concat(ye.replacementClass,"-title-").concat(a||rr()):(b["aria-hidden"]="true",b.focusable="false")),Ea({icons:{main:Ds(R),mask:s?Ds(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:C,iconName:$,transform:pe(pe({},Ht),d),symbol:p,title:l,maskId:o,titleId:a,extra:{attributes:b,styles:S,classes:m}})})}},Cg={mixout:function(){return{icon:$g(_g)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=Vl,n.nodeCallback=wg,n}}},provides:function(t){t.i2svg=function(n){var i=n.node,d=i===void 0?je:i,u=n.callback,p=u===void 0?function(){}:u;return Vl(d,p)},t.generateSvgReplacementMutation=function(n,i){var d=i.iconName,u=i.title,p=i.titleId,g=i.prefix,s=i.transform,h=i.symbol,o=i.mask,r=i.maskId,l=i.extra;return new Promise(function(c,a){Promise.all([Bs(d,g),o.iconName?Bs(o.iconName,o.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(f){var m=ya(f,2),y=m[0],b=m[1];c([n,Ea({icons:{main:y,mask:b},prefix:g,iconName:d,transform:s,symbol:h,maskId:r,title:u,titleId:p,extra:l,watchable:!0})])}).catch(a)})},t.generateAbstractIcon=function(n){var i=n.children,d=n.attributes,u=n.main,p=n.transform,g=n.styles,s=Ao(g);s.length>0&&(d.style=s);var h;return Sa(p)&&(h=on("generateAbstractTransformGrouping",{main:u,transform:p,containerWidth:u.width,iconWidth:u.width})),i.push(h||u.icon),{children:i,attributes:d}}}},Sg={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 Eo({type:"layer"},function(){Gn("beforeDOMElementCreation",{assembler:n,params:i});var p=[];return n(function(g){Array.isArray(g)?g.map(function(s){p=p.concat(s.abstract)}):p=p.concat(g.abstract)}),[{tag:"span",attributes:{class:["".concat(ye.cssPrefix,"-layers")].concat(yr(u)).join(" ")},children:p}]})}}}},Ag={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,p=i.classes,g=p===void 0?[]:p,s=i.attributes,h=s===void 0?{}:s,o=i.styles,r=o===void 0?{}:o;return Eo({type:"counter",content:n},function(){return Gn("beforeDOMElementCreation",{content:n,params:i}),rg({content:n.toString(),title:u,extra:{attributes:h,styles:r,classes:["".concat(ye.cssPrefix,"-layers-counter")].concat(yr(g))}})})}}}},xg={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,p=i.title,g=p===void 0?null:p,s=i.classes,h=s===void 0?[]:s,o=i.attributes,r=o===void 0?{}:o,l=i.styles,c=l===void 0?{}:l;return Eo({type:"text",content:n},function(){return Gn("beforeDOMElementCreation",{content:n,params:i}),Dl({content:n,transform:pe(pe({},Ht),u),title:g,extra:{attributes:r,styles:c,classes:["".concat(ye.cssPrefix,"-layers-text")].concat(yr(h))}})})}}},provides:function(t){t.generateLayersText=function(n,i){var d=i.title,u=i.transform,p=i.extra,g=null,s=null;if(Cu){var h=parseInt(getComputedStyle(n).fontSize,10),o=n.getBoundingClientRect();g=o.width/h,s=o.height/h}return ye.autoA11y&&!d&&(p.attributes["aria-hidden"]="true"),Promise.resolve([n,Dl({content:n.innerHTML,width:g,height:s,transform:u,title:d,extra:p,watchable:!0})])}}},kg=new RegExp('"',"ug"),jl=[1105920,1112319];function Eg(e){var t=e.replace(kg,""),n=Hp(t,0),i=n>=jl[0]&&n<=jl[1],d=t.length===2?t[0]===t[1]:!1;return{value:Os(d?t[0]:t),isSecondary:i||d}}function Gl(e,t){var n="".concat(mp).concat(t.replace(":","-"));return new Promise(function(i,d){if(e.getAttribute(n)!==null)return i();var u=_i(e.children),p=u.filter(function(R){return R.getAttribute(Is)===t})[0],g=Sn.getComputedStyle(e,t),s=g.getPropertyValue("font-family").match($p),h=g.getPropertyValue("font-weight"),o=g.getPropertyValue("content");if(p&&!s)return e.removeChild(p),i();if(s&&o!=="none"&&o!==""){var r=g.getPropertyValue("content"),l=~["Sharp"].indexOf(s[2])?Xe:Ve,c=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(s[2])?tr[l][s[2].toLowerCase()]:_p[l][h],a=Eg(r),f=a.value,m=a.isSecondary,y=s[0].startsWith("FontAwesome"),b=xa(c,f),E=b;if(y){var S=Yp(f);S.iconName&&S.prefix&&(b=S.iconName,c=S.prefix)}if(b&&!m&&(!p||p.getAttribute(wa)!==c||p.getAttribute($a)!==E)){e.setAttribute(n,E),p&&e.removeChild(p);var C=yg(),$=C.extra;$.attributes[Is]=t,Bs(b,c).then(function(R){var x=Ea(pe(pe({},C),{},{icons:{main:R,mask:ka()},prefix:c,iconName:E,extra:$,watchable:!0})),k=je.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(k,e.firstChild):e.appendChild(k),k.outerHTML=x.map(function(_){return wr(_)}).join(`
761
- `),e.removeAttribute(n),i()}).catch(d)}else i()}else i()})}function Rg(e){return Promise.all([Gl(e,"::before"),Gl(e,"::after")])}function Lg(e){return e.parentNode!==document.head&&!~yp.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Is)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Kl(e){if(an)return new Promise(function(t,n){var i=_i(e.querySelectorAll("*")).filter(Lg).map(Rg),d=Ra.begin("searchPseudoElements");Vu(),Promise.all(i).then(function(){d(),Hs(),t()}).catch(function(){d(),Hs(),n()})})}var Tg={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=Kl,n}}},provides:function(t){t.pseudoElements2svg=function(n){var i=n.node,d=i===void 0?je:i;ye.searchPseudoElements&&Kl(d)}}},Yl=!1,Mg={mixout:function(){return{dom:{unwatch:function(){Vu(),Yl=!0}}}},hooks:function(){return{bootstrap:function(){Ul(Ns("mutationObserverCallbacks",{}))},noAuto:function(){pg()},watch:function(n){var i=n.observeMutationsRoot;Yl?Hs():Ul(Ns("mutationObserverCallbacks",{observeMutationsRoot:i}))}}}},Xl=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("-"),p=u[0],g=u.slice(1).join("-");if(p&&g==="h")return i.flipX=!0,i;if(p&&g==="v")return i.flipY=!0,i;if(g=parseFloat(g),isNaN(g))return i;switch(p){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)},Ig={mixout:function(){return{parse:{transform:function(n){return Xl(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,i){var d=i.getAttribute("data-fa-transform");return d&&(n.transform=Xl(d)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var i=n.main,d=n.transform,u=n.containerWidth,p=n.iconWidth,g={transform:"translate(".concat(u/2," 256)")},s="translate(".concat(d.x*32,", ").concat(d.y*32,") "),h="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(h," ").concat(o)},l={transform:"translate(".concat(p/2*-1," -256)")},c={outer:g,inner:r,path:l};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 Zl(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 Og(e){return e.tag==="g"?e.children:[e]}var Fg={hooks:function(){return{parseNodeAttributes:function(n,i){var d=i.getAttribute("data-fa-mask"),u=d?ko(d.split(" ").map(function(p){return p.trim()})):ka();return u.prefix||(u.prefix=An()),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,p=n.mask,g=n.maskId,s=n.transform,h=u.width,o=u.icon,r=p.width,l=p.icon,c=Ip({transform:s,containerWidth:r,iconWidth:h}),a={tag:"rect",attributes:pe(pe({},fs),{},{fill:"white"})},f=o.children?{children:o.children.map(Zl)}:{},m={tag:"g",attributes:pe({},c.inner),children:[Zl(pe({tag:o.tag,attributes:pe(pe({},o.attributes),c.path)},f))]},y={tag:"g",attributes:pe({},c.outer),children:[m]},b="mask-".concat(g||rr()),E="clip-".concat(g||rr()),S={tag:"mask",attributes:pe(pe({},fs),{},{id:b,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[a,y]},C={tag:"defs",children:[{tag:"clipPath",attributes:{id:E},children:Og(l)},S]};return i.push(C,{tag:"rect",attributes:pe({fill:"currentColor","clip-path":"url(#".concat(E,")"),mask:"url(#".concat(b,")")},fs)}),{children:i,attributes:d}}}},Ng={provides:function(t){var n=!1;Sn.matchMedia&&(n=Sn.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 p=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({},p),{},{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({},p),{},{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({},p),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:i}}}},Pg={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}}}},Dg=[Np,Cg,Sg,Ag,xg,Tg,Mg,Ig,Fg,Ng,Pg];Qp(Dg,{mixoutsTo:Ct});Ct.noAuto;Ct.config;var Bg=Ct.library;Ct.dom;var Us=Ct.parse;Ct.findIconDefinition;Ct.toHtml;var Wg=Ct.icon;Ct.layer;Ct.text;Ct.counter;var Hg={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"]},Ug={prefix:"fas",iconName:"pen-to-square",icon:[512,512,["edit"],"f044","M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160V416c0 53 43 96 96 96H352c53 0 96-43 96-96V320c0-17.7-14.3-32-32-32s-32 14.3-32 32v96c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H96z"]},zg=Ug,Vg={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"]},jg={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"]},Gg=jg,Kg={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"]},Yg=Kg,Xg={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"]},Zg={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},Qg=Zg,Jg={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"]},qg={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},em={prefix:"fas",iconName:"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"]};function Ro(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 Be={},li=[],Nt=()=>{},tm=()=>!1,nm=/^on[^a-z]/,$r=e=>nm.test(e),Ta=e=>e.startsWith("onUpdate:"),Ue=Object.assign,Ma=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},im=Object.prototype.hasOwnProperty,Oe=(e,t)=>im.call(e,t),ge=Array.isArray,ci=e=>Ci(e)==="[object Map]",Jn=e=>Ci(e)==="[object Set]",Ql=e=>Ci(e)==="[object Date]",rm=e=>Ci(e)==="[object RegExp]",Ce=e=>typeof e=="function",Ge=e=>typeof e=="string",or=e=>typeof e=="symbol",We=e=>e!==null&&typeof e=="object",Ia=e=>We(e)&&Ce(e.then)&&Ce(e.catch),Gu=Object.prototype.toString,Ci=e=>Gu.call(e),om=e=>Ci(e).slice(8,-1),Ku=e=>Ci(e)==="[object Object]",Oa=e=>Ge(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ji=Ro(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Lo=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},sm=/-(\w)/g,vt=Lo(e=>e.replace(sm,(t,n)=>n?n.toUpperCase():"")),am=/\B([A-Z])/g,xt=Lo(e=>e.replace(am,"-$1").toLowerCase()),Si=Lo(e=>e.charAt(0).toUpperCase()+e.slice(1)),Gi=Lo(e=>e?`on${Si(e)}`:""),pi=(e,t)=>!Object.is(e,t),ui=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},co=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},uo=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ho=e=>{const t=Ge(e)?Number(e):NaN;return isNaN(t)?e:t};let Jl;const zs=()=>Jl||(Jl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),lm="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",cm=Ro(lm);function _r(e){if(ge(e)){const t={};for(let n=0;n<e.length;n++){const i=e[n],d=Ge(i)?dm(i):_r(i);if(d)for(const u in d)t[u]=d[u]}return t}else{if(Ge(e))return e;if(We(e))return e}}const um=/;(?![^(]*\))/g,hm=/:([^]+)/,fm=/\/\*[^]*?\*\//g;function dm(e){const t={};return e.replace(fm,"").split(um).forEach(n=>{if(n){const i=n.split(hm);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function Cr(e){let t="";if(Ge(e))t=e;else if(ge(e))for(let n=0;n<e.length;n++){const i=Cr(e[n]);i&&(t+=i+" ")}else if(We(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function pm(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Ge(t)&&(e.class=Cr(t)),n&&(e.style=_r(n)),e}const gm="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",mm=Ro(gm);function Yu(e){return!!e||e===""}function vm(e,t){if(e.length!==t.length)return!1;let n=!0;for(let i=0;n&&i<e.length;i++)n=kn(e[i],t[i]);return n}function kn(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=or(e),i=or(t),n||i)return e===t;if(n=ge(e),i=ge(t),n||i)return n&&i?vm(e,t):!1;if(n=We(e),i=We(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 p in e){const g=e.hasOwnProperty(p),s=t.hasOwnProperty(p);if(g&&!s||!g&&s||!kn(e[p],t[p]))return!1}}return String(e)===String(t)}function To(e,t){return e.findIndex(n=>kn(n,t))}const Ae=e=>Ge(e)?e:e==null?"":ge(e)||We(e)&&(e.toString===Gu||!Ce(e.toString))?JSON.stringify(e,Xu,2):String(e),Xu=(e,t)=>t&&t.__v_isRef?Xu(e,t.value):ci(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,d])=>(n[`${i} =>`]=d,n),{})}:Jn(t)?{[`Set(${t.size})`]:[...t.values()]}:We(t)&&!ge(t)&&!Ku(t)?String(t):t;let bt;class Fa{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 Zu(e){return new Fa(e)}function Qu(e,t=bt){t&&t.active&&t.effects.push(e)}function Na(){return bt}function Ju(e){bt&&bt.cleanups.push(e)}const Pa=e=>{const t=new Set(e);return t.w=0,t.n=0,t},qu=e=>(e.w&En)>0,eh=e=>(e.n&En)>0,ym=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=En},bm=e=>{const{deps:t}=e;if(t.length){let n=0;for(let i=0;i<t.length;i++){const d=t[i];qu(d)&&!eh(d)?d.delete(e):t[n++]=d,d.w&=~En,d.n&=~En}t.length=n}},fo=new WeakMap;let Bi=0,En=1;const Vs=30;let Lt;const Hn=Symbol(""),js=Symbol("");class Sr{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=Lt,n=_n;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Lt,Lt=this,_n=!0,En=1<<++Bi,Bi<=Vs?ym(this):ql(this),this.fn()}finally{Bi<=Vs&&bm(this),En=1<<--Bi,Lt=this.parent,_n=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Lt===this?this.deferStop=!0:this.active&&(ql(this),this.onStop&&this.onStop(),this.active=!1)}}function ql(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}function wm(e,t){e.effect&&(e=e.effect.fn);const n=new Sr(e);t&&(Ue(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 $m(e){e.effect.stop()}let _n=!0;const th=[];function Ai(){th.push(_n),_n=!1}function xi(){const e=th.pop();_n=e===void 0?!0:e}function yt(e,t,n){if(_n&&Lt){let i=fo.get(e);i||fo.set(e,i=new Map);let d=i.get(n);d||i.set(n,d=Pa()),nh(d)}}function nh(e,t){let n=!1;Bi<=Vs?eh(e)||(e.n|=En,n=!qu(e)):n=!e.has(Lt),n&&(e.add(Lt),Lt.deps.push(e))}function sn(e,t,n,i,d,u){const p=fo.get(e);if(!p)return;let g=[];if(t==="clear")g=[...p.values()];else if(n==="length"&&ge(e)){const s=Number(i);p.forEach((h,o)=>{(o==="length"||o>=s)&&g.push(h)})}else switch(n!==void 0&&g.push(p.get(n)),t){case"add":ge(e)?Oa(n)&&g.push(p.get("length")):(g.push(p.get(Hn)),ci(e)&&g.push(p.get(js)));break;case"delete":ge(e)||(g.push(p.get(Hn)),ci(e)&&g.push(p.get(js)));break;case"set":ci(e)&&g.push(p.get(Hn));break}if(g.length===1)g[0]&&Gs(g[0]);else{const s=[];for(const h of g)h&&s.push(...h);Gs(Pa(s))}}function Gs(e,t){const n=ge(e)?e:[...e];for(const i of n)i.computed&&ec(i);for(const i of n)i.computed||ec(i)}function ec(e,t){(e!==Lt||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function _m(e,t){var n;return(n=fo.get(e))==null?void 0:n.get(t)}const Cm=Ro("__proto__,__v_isRef,__isVue"),ih=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(or)),Sm=Mo(),Am=Mo(!1,!0),xm=Mo(!0),km=Mo(!0,!0),tc=Em();function Em(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const i=Ie(this);for(let u=0,p=this.length;u<p;u++)yt(i,"get",u+"");const d=i[t](...n);return d===-1||d===!1?i[t](...n.map(Ie)):d}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Ai();const i=Ie(this)[t].apply(this,n);return xi(),i}}),e}function Rm(e){const t=Ie(this);return yt(t,"has",e),t.hasOwnProperty(e)}function Mo(e=!1,t=!1){return function(i,d,u){if(d==="__v_isReactive")return!e;if(d==="__v_isReadonly")return e;if(d==="__v_isShallow")return t;if(d==="__v_raw"&&u===(e?t?uh:ch:t?lh:ah).get(i))return i;const p=ge(i);if(!e){if(p&&Oe(tc,d))return Reflect.get(tc,d,u);if(d==="hasOwnProperty")return Rm}const g=Reflect.get(i,d,u);return(or(d)?ih.has(d):Cm(d))||(e||yt(i,"get",d),t)?g:qe(g)?p&&Oa(d)?g:g.value:We(g)?e?Fo(g):ki(g):g}}const Lm=rh(),Tm=rh(!0);function rh(e=!1){return function(n,i,d,u){let p=n[i];if(Kn(p)&&qe(p)&&!qe(d))return!1;if(!e&&(!sr(d)&&!Kn(d)&&(p=Ie(p),d=Ie(d)),!ge(n)&&qe(p)&&!qe(d)))return p.value=d,!0;const g=ge(n)&&Oa(i)?Number(i)<n.length:Oe(n,i),s=Reflect.set(n,i,d,u);return n===Ie(u)&&(g?pi(d,p)&&sn(n,"set",i,d):sn(n,"add",i,d)),s}}function Mm(e,t){const n=Oe(e,t);e[t];const i=Reflect.deleteProperty(e,t);return i&&n&&sn(e,"delete",t,void 0),i}function Im(e,t){const n=Reflect.has(e,t);return(!or(t)||!ih.has(t))&&yt(e,"has",t),n}function Om(e){return yt(e,"iterate",ge(e)?"length":Hn),Reflect.ownKeys(e)}const oh={get:Sm,set:Lm,deleteProperty:Mm,has:Im,ownKeys:Om},sh={get:xm,set(e,t){return!0},deleteProperty(e,t){return!0}},Fm=Ue({},oh,{get:Am,set:Tm}),Nm=Ue({},sh,{get:km}),Da=e=>e,Io=e=>Reflect.getPrototypeOf(e);function Br(e,t,n=!1,i=!1){e=e.__v_raw;const d=Ie(e),u=Ie(t);n||(t!==u&&yt(d,"get",t),yt(d,"get",u));const{has:p}=Io(d),g=i?Da:n?Ha:ar;if(p.call(d,t))return g(e.get(t));if(p.call(d,u))return g(e.get(u));e!==d&&e.get(t)}function Wr(e,t=!1){const n=this.__v_raw,i=Ie(n),d=Ie(e);return t||(e!==d&&yt(i,"has",e),yt(i,"has",d)),e===d?n.has(e):n.has(e)||n.has(d)}function Hr(e,t=!1){return e=e.__v_raw,!t&&yt(Ie(e),"iterate",Hn),Reflect.get(e,"size",e)}function nc(e){e=Ie(e);const t=Ie(this);return Io(t).has.call(t,e)||(t.add(e),sn(t,"add",e,e)),this}function ic(e,t){t=Ie(t);const n=Ie(this),{has:i,get:d}=Io(n);let u=i.call(n,e);u||(e=Ie(e),u=i.call(n,e));const p=d.call(n,e);return n.set(e,t),u?pi(t,p)&&sn(n,"set",e,t):sn(n,"add",e,t),this}function rc(e){const t=Ie(this),{has:n,get:i}=Io(t);let d=n.call(t,e);d||(e=Ie(e),d=n.call(t,e)),i&&i.call(t,e);const u=t.delete(e);return d&&sn(t,"delete",e,void 0),u}function oc(){const e=Ie(this),t=e.size!==0,n=e.clear();return t&&sn(e,"clear",void 0,void 0),n}function Ur(e,t){return function(i,d){const u=this,p=u.__v_raw,g=Ie(p),s=t?Da:e?Ha:ar;return!e&&yt(g,"iterate",Hn),p.forEach((h,o)=>i.call(d,s(h),s(o),u))}}function zr(e,t,n){return function(...i){const d=this.__v_raw,u=Ie(d),p=ci(u),g=e==="entries"||e===Symbol.iterator&&p,s=e==="keys"&&p,h=d[e](...i),o=n?Da:t?Ha:ar;return!t&&yt(u,"iterate",s?js:Hn),{next(){const{value:r,done:l}=h.next();return l?{value:r,done:l}:{value:g?[o(r[0]),o(r[1])]:o(r),done:l}},[Symbol.iterator](){return this}}}}function pn(e){return function(...t){return e==="delete"?!1:this}}function Pm(){const e={get(u){return Br(this,u)},get size(){return Hr(this)},has:Wr,add:nc,set:ic,delete:rc,clear:oc,forEach:Ur(!1,!1)},t={get(u){return Br(this,u,!1,!0)},get size(){return Hr(this)},has:Wr,add:nc,set:ic,delete:rc,clear:oc,forEach:Ur(!1,!0)},n={get(u){return Br(this,u,!0)},get size(){return Hr(this,!0)},has(u){return Wr.call(this,u,!0)},add:pn("add"),set:pn("set"),delete:pn("delete"),clear:pn("clear"),forEach:Ur(!0,!1)},i={get(u){return Br(this,u,!0,!0)},get size(){return Hr(this,!0)},has(u){return Wr.call(this,u,!0)},add:pn("add"),set:pn("set"),delete:pn("delete"),clear:pn("clear"),forEach:Ur(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(u=>{e[u]=zr(u,!1,!1),n[u]=zr(u,!0,!1),t[u]=zr(u,!1,!0),i[u]=zr(u,!0,!0)}),[e,n,t,i]}const[Dm,Bm,Wm,Hm]=Pm();function Oo(e,t){const n=t?e?Hm:Wm:e?Bm:Dm;return(i,d,u)=>d==="__v_isReactive"?!e:d==="__v_isReadonly"?e:d==="__v_raw"?i:Reflect.get(Oe(n,d)&&d in i?n:i,d,u)}const Um={get:Oo(!1,!1)},zm={get:Oo(!1,!0)},Vm={get:Oo(!0,!1)},jm={get:Oo(!0,!0)},ah=new WeakMap,lh=new WeakMap,ch=new WeakMap,uh=new WeakMap;function Gm(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Km(e){return e.__v_skip||!Object.isExtensible(e)?0:Gm(om(e))}function ki(e){return Kn(e)?e:No(e,!1,oh,Um,ah)}function Ba(e){return No(e,!1,Fm,zm,lh)}function Fo(e){return No(e,!0,sh,Vm,ch)}function Ym(e){return No(e,!0,Nm,jm,uh)}function No(e,t,n,i,d){if(!We(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const u=d.get(e);if(u)return u;const p=Km(e);if(p===0)return e;const g=new Proxy(e,p===2?i:n);return d.set(e,g),g}function Un(e){return Kn(e)?Un(e.__v_raw):!!(e&&e.__v_isReactive)}function Kn(e){return!!(e&&e.__v_isReadonly)}function sr(e){return!!(e&&e.__v_isShallow)}function Wa(e){return Un(e)||Kn(e)}function Ie(e){const t=e&&e.__v_raw;return t?Ie(t):e}function Po(e){return co(e,"__v_skip",!0),e}const ar=e=>We(e)?ki(e):e,Ha=e=>We(e)?Fo(e):e;function Ua(e){_n&&Lt&&(e=Ie(e),nh(e.dep||(e.dep=Pa())))}function Do(e,t){e=Ie(e);const n=e.dep;n&&Gs(n)}function qe(e){return!!(e&&e.__v_isRef===!0)}function Te(e){return fh(e,!1)}function hh(e){return fh(e,!0)}function fh(e,t){return qe(e)?e:new Xm(e,t)}class Xm{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Ie(t),this._value=n?t:ar(t)}get value(){return Ua(this),this._value}set value(t){const n=this.__v_isShallow||sr(t)||Kn(t);t=n?t:Ie(t),pi(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:ar(t),Do(this))}}function Zm(e){Do(e)}function qt(e){return qe(e)?e.value:e}function Qm(e){return Ce(e)?e():qt(e)}const Jm={get:(e,t,n)=>qt(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const d=e[t];return qe(d)&&!qe(n)?(d.value=n,!0):Reflect.set(e,t,n,i)}};function za(e){return Un(e)?e:new Proxy(e,Jm)}class qm{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:i}=t(()=>Ua(this),()=>Do(this));this._get=n,this._set=i}get value(){return this._get()}set value(t){this._set(t)}}function Va(e){return new qm(e)}function ev(e){const t=ge(e)?new Array(e.length):{};for(const n in e)t[n]=dh(e,n);return t}class tv{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 _m(Ie(this._object),this._key)}}class nv{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Yn(e,t,n){return qe(e)?e:Ce(e)?new nv(e):We(e)&&arguments.length>1?dh(e,t,n):Te(e)}function dh(e,t,n){const i=e[t];return qe(i)?i:new tv(e,t,n)}class iv{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 Sr(t,()=>{this._dirty||(this._dirty=!0,Do(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!d,this.__v_isReadonly=i}get value(){const t=Ie(this);return Ua(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function rv(e,t,n=!1){let i,d;const u=Ce(e);return u?(i=e,d=Nt):(i=e.get,d=e.set),new iv(i,d,u||!d,n)}function ov(e,...t){}function sv(e,t){}function en(e,t,n,i){let d;try{d=i?e(...i):e()}catch(u){qn(u,t,n)}return d}function _t(e,t,n,i){if(Ce(e)){const u=en(e,t,n,i);return u&&Ia(u)&&u.catch(p=>{qn(p,t,n)}),u}const d=[];for(let u=0;u<e.length;u++)d.push(_t(e[u],t,n,i));return d}function qn(e,t,n,i=!0){const d=t?t.vnode:null;if(t){let u=t.parent;const p=t.proxy,g=n;for(;u;){const h=u.ec;if(h){for(let o=0;o<h.length;o++)if(h[o](e,p,g)===!1)return}u=u.parent}const s=t.appContext.config.errorHandler;if(s){en(s,null,10,[e,p,g]);return}}av(e,n,d,i)}function av(e,t,n,i=!0){console.error(e)}let lr=!1,Ks=!1;const at=[];let Wt=0;const hi=[];let Xt=null,Nn=0;const ph=Promise.resolve();let ja=null;function zt(e){const t=ja||ph;return e?t.then(this?e.bind(this):e):t}function lv(e){let t=Wt+1,n=at.length;for(;t<n;){const i=t+n>>>1;cr(at[i])<e?t=i+1:n=i}return t}function Bo(e){(!at.length||!at.includes(e,lr&&e.allowRecurse?Wt+1:Wt))&&(e.id==null?at.push(e):at.splice(lv(e.id),0,e),gh())}function gh(){!lr&&!Ks&&(Ks=!0,ja=ph.then(mh))}function cv(e){const t=at.indexOf(e);t>Wt&&at.splice(t,1)}function Ga(e){ge(e)?hi.push(...e):(!Xt||!Xt.includes(e,e.allowRecurse?Nn+1:Nn))&&hi.push(e),gh()}function sc(e,t=lr?Wt+1:0){for(;t<at.length;t++){const n=at[t];n&&n.pre&&(at.splice(t,1),t--,n())}}function po(e){if(hi.length){const t=[...new Set(hi)];if(hi.length=0,Xt){Xt.push(...t);return}for(Xt=t,Xt.sort((n,i)=>cr(n)-cr(i)),Nn=0;Nn<Xt.length;Nn++)Xt[Nn]();Xt=null,Nn=0}}const cr=e=>e.id==null?1/0:e.id,uv=(e,t)=>{const n=cr(e)-cr(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function mh(e){Ks=!1,lr=!0,at.sort(uv);const t=Nt;try{for(Wt=0;Wt<at.length;Wt++){const n=at[Wt];n&&n.active!==!1&&en(n,null,14)}}finally{Wt=0,at.length=0,po(),lr=!1,ja=null,(at.length||hi.length)&&mh()}}let ni,Vr=[];function vh(e,t){var n,i;ni=e,ni?(ni.enabled=!0,Vr.forEach(({event:d,args:u})=>ni.emit(d,...u)),Vr=[]):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=>{vh(u,t)}),setTimeout(()=>{ni||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Vr=[])},3e3)):Vr=[]}function hv(e,t,...n){if(e.isUnmounted)return;const i=e.vnode.props||Be;let d=n;const u=t.startsWith("update:"),p=u&&t.slice(7);if(p&&p in i){const o=`${p==="modelValue"?"model":p}Modifiers`,{number:r,trim:l}=i[o]||Be;l&&(d=n.map(c=>Ge(c)?c.trim():c)),r&&(d=n.map(uo))}let g,s=i[g=Gi(t)]||i[g=Gi(vt(t))];!s&&u&&(s=i[g=Gi(xt(t))]),s&&_t(s,e,6,d);const h=i[g+"Once"];if(h){if(!e.emitted)e.emitted={};else if(e.emitted[g])return;e.emitted[g]=!0,_t(h,e,6,d)}}function yh(e,t,n=!1){const i=t.emitsCache,d=i.get(e);if(d!==void 0)return d;const u=e.emits;let p={},g=!1;if(!Ce(e)){const s=h=>{const o=yh(h,t,!0);o&&(g=!0,Ue(p,o))};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!u&&!g?(We(e)&&i.set(e,null),null):(ge(u)?u.forEach(s=>p[s]=null):Ue(p,u),We(e)&&i.set(e,p),p)}function Wo(e,t){return!e||!$r(t)?!1:(t=t.slice(2).replace(/Once$/,""),Oe(e,t[0].toLowerCase()+t.slice(1))||Oe(e,xt(t))||Oe(e,t))}let it=null,Ho=null;function ur(e){const t=it;return it=e,Ho=e&&e.type.__scopeId||null,t}function Ka(e){Ho=e}function Ya(){Ho=null}const fv=e=>dt;function dt(e,t=it,n){if(!t||e._n)return e;const i=(...d)=>{i._d&&ea(-1);const u=ur(t);let p;try{p=e(...d)}finally{ur(u),i._d&&ea(1)}return p};return i._n=!0,i._c=!0,i._d=!0,i}function qr(e){const{type:t,vnode:n,proxy:i,withProxy:d,props:u,propsOptions:[p],slots:g,attrs:s,emit:h,render:o,renderCache:r,data:l,setupState:c,ctx:a,inheritAttrs:f}=e;let m,y;const b=ur(e);try{if(n.shapeFlag&4){const S=d||i;m=wt(o.call(S,S,r,u,c,l,a)),y=s}else{const S=t;m=wt(S.length>1?S(u,{attrs:s,slots:g,emit:h}):S(u,null)),y=t.props?s:pv(s)}}catch(S){Zi.length=0,qn(S,e,1),m=he(lt)}let E=m;if(y&&f!==!1){const S=Object.keys(y),{shapeFlag:C}=E;S.length&&C&7&&(p&&S.some(Ta)&&(y=gv(y,p)),E=Vt(E,y))}return n.dirs&&(E=Vt(E),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition&&(E.transition=n.transition),m=E,ur(b),m}function dv(e){let t;for(let n=0;n<e.length;n++){const i=e[n];if(Rn(i)){if(i.type!==lt||i.children==="v-if"){if(t)return;t=i}}else return}return t}const pv=e=>{let t;for(const n in e)(n==="class"||n==="style"||$r(n))&&((t||(t={}))[n]=e[n]);return t},gv=(e,t)=>{const n={};for(const i in e)(!Ta(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function mv(e,t,n){const{props:i,children:d,component:u}=e,{props:p,children:g,patchFlag:s}=t,h=u.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&s>=0){if(s&1024)return!0;if(s&16)return i?ac(i,p,h):!!p;if(s&8){const o=t.dynamicProps;for(let r=0;r<o.length;r++){const l=o[r];if(p[l]!==i[l]&&!Wo(h,l))return!0}}}else return(d||g)&&(!g||!g.$stable)?!0:i===p?!1:i?p?ac(i,p,h):!0:!!p;return!1}function ac(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]&&!Wo(n,u))return!0}return!1}function Xa({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const bh=e=>e.__isSuspense,vv={name:"Suspense",__isSuspense:!0,process(e,t,n,i,d,u,p,g,s,h){e==null?bv(t,n,i,d,u,p,g,s,h):wv(e,t,n,i,d,p,g,s,h)},hydrate:$v,create:Za,normalize:_v},yv=vv;function hr(e,t){const n=e.props&&e.props[t];Ce(n)&&n()}function bv(e,t,n,i,d,u,p,g,s){const{p:h,o:{createElement:o}}=s,r=o("div"),l=e.suspense=Za(e,d,i,t,r,n,u,p,g,s);h(null,l.pendingBranch=e.ssContent,r,null,i,l,u,p),l.deps>0?(hr(e,"onPending"),hr(e,"onFallback"),h(null,e.ssFallback,t,n,i,null,u,p),fi(l,e.ssFallback)):l.resolve(!1,!0)}function wv(e,t,n,i,d,u,p,g,{p:s,um:h,o:{createElement:o}}){const r=t.suspense=e.suspense;r.vnode=t,t.el=e.el;const l=t.ssContent,c=t.ssFallback,{activeBranch:a,pendingBranch:f,isInFallback:m,isHydrating:y}=r;if(f)r.pendingBranch=l,Mt(l,f)?(s(f,l,r.hiddenContainer,null,d,r,u,p,g),r.deps<=0?r.resolve():m&&(s(a,c,n,i,d,null,u,p,g),fi(r,c))):(r.pendingId++,y?(r.isHydrating=!1,r.activeBranch=f):h(f,d,r),r.deps=0,r.effects.length=0,r.hiddenContainer=o("div"),m?(s(null,l,r.hiddenContainer,null,d,r,u,p,g),r.deps<=0?r.resolve():(s(a,c,n,i,d,null,u,p,g),fi(r,c))):a&&Mt(l,a)?(s(a,l,n,i,d,r,u,p,g),r.resolve(!0)):(s(null,l,r.hiddenContainer,null,d,r,u,p,g),r.deps<=0&&r.resolve()));else if(a&&Mt(l,a))s(a,l,n,i,d,r,u,p,g),fi(r,l);else if(hr(t,"onPending"),r.pendingBranch=l,r.pendingId++,s(null,l,r.hiddenContainer,null,d,r,u,p,g),r.deps<=0)r.resolve();else{const{timeout:b,pendingId:E}=r;b>0?setTimeout(()=>{r.pendingId===E&&r.fallback(c)},b):b===0&&r.fallback(c)}}function Za(e,t,n,i,d,u,p,g,s,h,o=!1){const{p:r,m:l,um:c,n:a,o:{parentNode:f,remove:m}}=h;let y;const b=Cv(e);b&&t!=null&&t.pendingBranch&&(y=t.pendingId,t.deps++);const E=e.props?ho(e.props.timeout):void 0,S={vnode:e,parent:t,parentComponent:n,isSVG:p,container:i,hiddenContainer:d,anchor:u,deps:0,pendingId:0,timeout:typeof E=="number"?E:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:o,isUnmounted:!1,effects:[],resolve(C=!1,$=!1){const{vnode:R,activeBranch:x,pendingBranch:k,pendingId:_,effects:v,parentComponent:M,container:A}=S;if(S.isHydrating)S.isHydrating=!1;else if(!C){const T=x&&k.transition&&k.transition.mode==="out-in";T&&(x.transition.afterLeave=()=>{_===S.pendingId&&l(k,A,O,0)});let{anchor:O}=S;x&&(O=a(x),c(x,M,S,!0)),T||l(k,A,O,0)}fi(S,k),S.pendingBranch=null,S.isInFallback=!1;let w=S.parent,L=!1;for(;w;){if(w.pendingBranch){w.effects.push(...v),L=!0;break}w=w.parent}L||Ga(v),S.effects=[],b&&t&&t.pendingBranch&&y===t.pendingId&&(t.deps--,t.deps===0&&!$&&t.resolve()),hr(R,"onResolve")},fallback(C){if(!S.pendingBranch)return;const{vnode:$,activeBranch:R,parentComponent:x,container:k,isSVG:_}=S;hr($,"onFallback");const v=a(R),M=()=>{S.isInFallback&&(r(null,C,k,v,x,null,_,g,s),fi(S,C))},A=C.transition&&C.transition.mode==="out-in";A&&(R.transition.afterLeave=M),S.isInFallback=!0,c(R,x,null,!0),A||M()},move(C,$,R){S.activeBranch&&l(S.activeBranch,C,$,R),S.container=C},next(){return S.activeBranch&&a(S.activeBranch)},registerDep(C,$){const R=!!S.pendingBranch;R&&S.deps++;const x=C.vnode.el;C.asyncDep.catch(k=>{qn(k,C,0)}).then(k=>{if(C.isUnmounted||S.isUnmounted||S.pendingId!==C.suspenseId)return;C.asyncResolved=!0;const{vnode:_}=C;ta(C,k,!1),x&&(_.el=x);const v=!x&&C.subTree.el;$(C,_,f(x||C.subTree.el),x?null:a(C.subTree),S,p,s),v&&m(v),Xa(C,_.el),R&&--S.deps===0&&S.resolve()})},unmount(C,$){S.isUnmounted=!0,S.activeBranch&&c(S.activeBranch,n,C,$),S.pendingBranch&&c(S.pendingBranch,n,C,$)}};return S}function $v(e,t,n,i,d,u,p,g,s){const h=t.suspense=Za(t,i,n,e.parentNode,document.createElement("div"),null,d,u,p,g,!0),o=s(e,h.pendingBranch=t.ssContent,n,h,u,p);return h.deps===0&&h.resolve(!1,!0),o}function _v(e){const{shapeFlag:t,children:n}=e,i=t&32;e.ssContent=lc(i?n.default:n),e.ssFallback=i?lc(n.fallback):he(lt)}function lc(e){let t;if(Ce(e)){const n=Qn&&e._c;n&&(e._d=!1,q()),e=e(),n&&(e._d=!0,t=mt,Xh())}return ge(e)&&(e=dv(e)),e=wt(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function wh(e,t){t&&t.pendingBranch?ge(e)?t.effects.push(...e):t.effects.push(e):Ga(e)}function fi(e,t){e.activeBranch=t;const{vnode:n,parentComponent:i}=e,d=n.el=t.el;i&&i.subTree===n&&(i.vnode.el=d,Xa(i,d))}function Cv(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}function $h(e,t){return Ar(e,null,t)}function _h(e,t){return Ar(e,null,{flush:"post"})}function Sv(e,t){return Ar(e,null,{flush:"sync"})}const jr={};function Ye(e,t,n){return Ar(e,t,n)}function Ar(e,t,{immediate:n,deep:i,flush:d,onTrack:u,onTrigger:p}=Be){var g;const s=Na()===((g=Qe)==null?void 0:g.scope)?Qe:null;let h,o=!1,r=!1;if(qe(e)?(h=()=>e.value,o=sr(e)):Un(e)?(h=()=>e,i=!0):ge(e)?(r=!0,o=e.some(S=>Un(S)||sr(S)),h=()=>e.map(S=>{if(qe(S))return S.value;if(Un(S))return Wn(S);if(Ce(S))return en(S,s,2)})):Ce(e)?t?h=()=>en(e,s,2):h=()=>{if(!(s&&s.isUnmounted))return l&&l(),_t(e,s,3,[c])}:h=Nt,t&&i){const S=h;h=()=>Wn(S())}let l,c=S=>{l=b.onStop=()=>{en(S,s,4)}},a;if(mi)if(c=Nt,t?n&&_t(t,s,3,[h(),r?[]:void 0,c]):h(),d==="sync"){const S=af();a=S.__watcherHandles||(S.__watcherHandles=[])}else return Nt;let f=r?new Array(e.length).fill(jr):jr;const m=()=>{if(b.active)if(t){const S=b.run();(i||o||(r?S.some((C,$)=>pi(C,f[$])):pi(S,f)))&&(l&&l(),_t(t,s,3,[S,f===jr?void 0:r&&f[0]===jr?[]:f,c]),f=S)}else b.run()};m.allowRecurse=!!t;let y;d==="sync"?y=m:d==="post"?y=()=>ot(m,s&&s.suspense):(m.pre=!0,s&&(m.id=s.uid),y=()=>Bo(m));const b=new Sr(h,y);t?n?m():f=b.run():d==="post"?ot(b.run.bind(b),s&&s.suspense):b.run();const E=()=>{b.stop(),s&&s.scope&&Ma(s.scope.effects,b)};return a&&a.push(E),E}function Av(e,t,n){const i=this.proxy,d=Ge(e)?e.includes(".")?Ch(i,e):()=>i[e]:e.bind(i,i);let u;Ce(t)?u=t:(u=t.handler,n=t);const p=Qe;Ln(this);const g=Ar(d,u.bind(i),n);return p?Ln(p):Cn(),g}function Ch(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 Wn(e,t){if(!We(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),qe(e))Wn(e.value,t);else if(ge(e))for(let n=0;n<e.length;n++)Wn(e[n],t);else if(Jn(e)||ci(e))e.forEach(n=>{Wn(n,t)});else if(Ku(e))for(const n in e)Wn(e[n],t);return e}function Tt(e,t){const n=it;if(n===null)return e;const i=Ko(n)||n.proxy,d=e.dirs||(e.dirs=[]);for(let u=0;u<t.length;u++){let[p,g,s,h=Be]=t[u];p&&(Ce(p)&&(p={mounted:p,updated:p}),p.deep&&Wn(g),d.push({dir:p,instance:i,value:g,oldValue:void 0,arg:s,modifiers:h}))}return e}function Bt(e,t,n,i){const d=e.dirs,u=t&&t.dirs;for(let p=0;p<d.length;p++){const g=d[p];u&&(g.oldValue=u[p].value);let s=g.dir[i];s&&(Ai(),_t(s,n,8,[e.el,g,e,t]),xi())}}function Qa(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return nt(()=>{e.isMounted=!0}),kr(()=>{e.isUnmounting=!0}),e}const At=[Function,Array],Ja={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:At,onEnter:At,onAfterEnter:At,onEnterCancelled:At,onBeforeLeave:At,onLeave:At,onAfterLeave:At,onLeaveCancelled:At,onBeforeAppear:At,onAppear:At,onAfterAppear:At,onAppearCancelled:At},xv={name:"BaseTransition",props:Ja,setup(e,{slots:t}){const n=Dt(),i=Qa();let d;return()=>{const u=t.default&&Uo(t.default(),!0);if(!u||!u.length)return;let p=u[0];if(u.length>1){for(const f of u)if(f.type!==lt){p=f;break}}const g=Ie(e),{mode:s}=g;if(i.isLeaving)return ds(p);const h=cc(p);if(!h)return ds(p);const o=gi(h,g,i,n);Xn(h,o);const r=n.subTree,l=r&&cc(r);let c=!1;const{getTransitionKey:a}=h.type;if(a){const f=a();d===void 0?d=f:f!==d&&(d=f,c=!0)}if(l&&l.type!==lt&&(!Mt(h,l)||c)){const f=gi(l,g,i,n);if(Xn(l,f),s==="out-in")return i.isLeaving=!0,f.afterLeave=()=>{i.isLeaving=!1,n.update.active!==!1&&n.update()},ds(p);s==="in-out"&&h.type!==lt&&(f.delayLeave=(m,y,b)=>{const E=Ah(i,l);E[String(l.key)]=l,m._leaveCb=()=>{y(),m._leaveCb=void 0,delete o.delayedLeave},o.delayedLeave=b})}return p}}},Sh=xv;function Ah(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 gi(e,t,n,i){const{appear:d,mode:u,persisted:p=!1,onBeforeEnter:g,onEnter:s,onAfterEnter:h,onEnterCancelled:o,onBeforeLeave:r,onLeave:l,onAfterLeave:c,onLeaveCancelled:a,onBeforeAppear:f,onAppear:m,onAfterAppear:y,onAppearCancelled:b}=t,E=String(e.key),S=Ah(n,e),C=(x,k)=>{x&&_t(x,i,9,k)},$=(x,k)=>{const _=k[1];C(x,k),ge(x)?x.every(v=>v.length<=1)&&_():x.length<=1&&_()},R={mode:u,persisted:p,beforeEnter(x){let k=g;if(!n.isMounted)if(d)k=f||g;else return;x._leaveCb&&x._leaveCb(!0);const _=S[E];_&&Mt(e,_)&&_.el._leaveCb&&_.el._leaveCb(),C(k,[x])},enter(x){let k=s,_=h,v=o;if(!n.isMounted)if(d)k=m||s,_=y||h,v=b||o;else return;let M=!1;const A=x._enterCb=w=>{M||(M=!0,w?C(v,[x]):C(_,[x]),R.delayedLeave&&R.delayedLeave(),x._enterCb=void 0)};k?$(k,[x,A]):A()},leave(x,k){const _=String(e.key);if(x._enterCb&&x._enterCb(!0),n.isUnmounting)return k();C(r,[x]);let v=!1;const M=x._leaveCb=A=>{v||(v=!0,k(),A?C(a,[x]):C(c,[x]),x._leaveCb=void 0,S[_]===e&&delete S[_])};S[_]=e,l?$(l,[x,M]):M()},clone(x){return gi(x,t,n,i)}};return R}function ds(e){if(xr(e))return e=Vt(e),e.children=null,e}function cc(e){return xr(e)?e.children?e.children[0]:void 0:e}function Xn(e,t){e.shapeFlag&6&&e.component?Xn(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 Uo(e,t=!1,n){let i=[],d=0;for(let u=0;u<e.length;u++){let p=e[u];const g=n==null?p.key:String(n)+String(p.key!=null?p.key:u);p.type===Se?(p.patchFlag&128&&d++,i=i.concat(Uo(p.children,t,g))):(t||p.type!==lt)&&i.push(g!=null?Vt(p,{key:g}):p)}if(d>1)for(let u=0;u<i.length;u++)i[u].patchFlag=-2;return i}function $e(e,t){return Ce(e)?(()=>Ue({name:e.name},t,{setup:e}))():e}const zn=e=>!!e.type.__asyncLoader;function kv(e){Ce(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:i,delay:d=200,timeout:u,suspensible:p=!0,onError:g}=e;let s=null,h,o=0;const r=()=>(o++,s=null,l()),l=()=>{let c;return s||(c=s=t().catch(a=>{if(a=a instanceof Error?a:new Error(String(a)),g)return new Promise((f,m)=>{g(a,()=>f(r()),()=>m(a),o+1)});throw a}).then(a=>c!==s&&s?s:(a&&(a.__esModule||a[Symbol.toStringTag]==="Module")&&(a=a.default),h=a,a)))};return $e({name:"AsyncComponentWrapper",__asyncLoader:l,get __asyncResolved(){return h},setup(){const c=Qe;if(h)return()=>ps(h,c);const a=b=>{s=null,qn(b,c,13,!i)};if(p&&c.suspense||mi)return l().then(b=>()=>ps(b,c)).catch(b=>(a(b),()=>i?he(i,{error:b}):null));const f=Te(!1),m=Te(),y=Te(!!d);return d&&setTimeout(()=>{y.value=!1},d),u!=null&&setTimeout(()=>{if(!f.value&&!m.value){const b=new Error(`Async component timed out after ${u}ms.`);a(b),m.value=b}},u),l().then(()=>{f.value=!0,c.parent&&xr(c.parent.vnode)&&Bo(c.parent.update)}).catch(b=>{a(b),m.value=b}),()=>{if(f.value&&h)return ps(h,c);if(m.value&&i)return he(i,{error:m.value});if(n&&!y.value)return he(n)}}})}function ps(e,t){const{ref:n,props:i,children:d,ce:u}=t.vnode,p=he(e,i,d);return p.ref=n,p.ce=u,delete t.vnode.ce,p}const xr=e=>e.type.__isKeepAlive,Ev={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Dt(),i=n.ctx;if(!i.renderer)return()=>{const b=t.default&&t.default();return b&&b.length===1?b[0]:b};const d=new Map,u=new Set;let p=null;const g=n.suspense,{renderer:{p:s,m:h,um:o,o:{createElement:r}}}=i,l=r("div");i.activate=(b,E,S,C,$)=>{const R=b.component;h(b,E,S,0,g),s(R.vnode,b,E,S,R,g,C,b.slotScopeIds,$),ot(()=>{R.isDeactivated=!1,R.a&&ui(R.a);const x=b.props&&b.props.onVnodeMounted;x&&gt(x,R.parent,b)},g)},i.deactivate=b=>{const E=b.component;h(b,l,null,1,g),ot(()=>{E.da&&ui(E.da);const S=b.props&&b.props.onVnodeUnmounted;S&&gt(S,E.parent,b),E.isDeactivated=!0},g)};function c(b){gs(b),o(b,n,g,!0)}function a(b){d.forEach((E,S)=>{const C=ia(E.type);C&&(!b||!b(C))&&f(S)})}function f(b){const E=d.get(b);!p||!Mt(E,p)?c(E):p&&gs(p),d.delete(b),u.delete(b)}Ye(()=>[e.include,e.exclude],([b,E])=>{b&&a(S=>Wi(b,S)),E&&a(S=>!Wi(E,S))},{flush:"post",deep:!0});let m=null;const y=()=>{m!=null&&d.set(m,ms(n.subTree))};return nt(y),Vo(y),kr(()=>{d.forEach(b=>{const{subTree:E,suspense:S}=n,C=ms(E);if(b.type===C.type&&b.key===C.key){gs(C);const $=C.component.da;$&&ot($,S);return}c(b)})}),()=>{if(m=null,!t.default)return null;const b=t.default(),E=b[0];if(b.length>1)return p=null,b;if(!Rn(E)||!(E.shapeFlag&4)&&!(E.shapeFlag&128))return p=null,E;let S=ms(E);const C=S.type,$=ia(zn(S)?S.type.__asyncResolved||{}:C),{include:R,exclude:x,max:k}=e;if(R&&(!$||!Wi(R,$))||x&&$&&Wi(x,$))return p=S,E;const _=S.key==null?C:S.key,v=d.get(_);return S.el&&(S=Vt(S),E.shapeFlag&128&&(E.ssContent=S)),m=_,v?(S.el=v.el,S.component=v.component,S.transition&&Xn(S,S.transition),S.shapeFlag|=512,u.delete(_),u.add(_)):(u.add(_),k&&u.size>parseInt(k,10)&&f(u.values().next().value)),S.shapeFlag|=256,p=S,bh(E.type)?E:S}}},Rv=Ev;function Wi(e,t){return ge(e)?e.some(n=>Wi(n,t)):Ge(e)?e.split(",").includes(t):rm(e)?e.test(t):!1}function xh(e,t){Eh(e,"a",t)}function kh(e,t){Eh(e,"da",t)}function Eh(e,t,n=Qe){const i=e.__wdc||(e.__wdc=()=>{let d=n;for(;d;){if(d.isDeactivated)return;d=d.parent}return e()});if(zo(t,i,n),n){let d=n.parent;for(;d&&d.parent;)xr(d.parent.vnode)&&Lv(i,t,n,d),d=d.parent}}function Lv(e,t,n,i){const d=zo(t,e,i,!0);jo(()=>{Ma(i[t],d)},n)}function gs(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function ms(e){return e.shapeFlag&128?e.ssContent:e}function zo(e,t,n=Qe,i=!1){if(n){const d=n[e]||(n[e]=[]),u=t.__weh||(t.__weh=(...p)=>{if(n.isUnmounted)return;Ai(),Ln(n);const g=_t(t,n,e,p);return Cn(),xi(),g});return i?d.unshift(u):d.push(u),u}}const ln=e=>(t,n=Qe)=>(!mi||e==="sp")&&zo(e,(...i)=>t(...i),n),Rh=ln("bm"),nt=ln("m"),Lh=ln("bu"),Vo=ln("u"),kr=ln("bum"),jo=ln("um"),Th=ln("sp"),Mh=ln("rtg"),Ih=ln("rtc");function Oh(e,t=Qe){zo("ec",e,t)}const qa="components",Tv="directives";function ue(e,t){return el(qa,e,!0,t)||e}const Fh=Symbol.for("v-ndc");function Mv(e){return Ge(e)?el(qa,e,!1)||e:e||Fh}function Iv(e){return el(Tv,e)}function el(e,t,n=!0,i=!1){const d=it||Qe;if(d){const u=d.type;if(e===qa){const g=ia(u,!1);if(g&&(g===t||g===vt(t)||g===Si(vt(t))))return u}const p=uc(d[e]||u[e],t)||uc(d.appContext[e],t);return!p&&i?u:p}}function uc(e,t){return e&&(e[t]||e[vt(t)]||e[Si(vt(t))])}function ct(e,t,n,i){let d;const u=n&&n[i];if(ge(e)||Ge(e)){d=new Array(e.length);for(let p=0,g=e.length;p<g;p++)d[p]=t(e[p],p,void 0,u&&u[p])}else if(typeof e=="number"){d=new Array(e);for(let p=0;p<e;p++)d[p]=t(p+1,p,void 0,u&&u[p])}else if(We(e))if(e[Symbol.iterator])d=Array.from(e,(p,g)=>t(p,g,void 0,u&&u[g]));else{const p=Object.keys(e);d=new Array(p.length);for(let g=0,s=p.length;g<s;g++){const h=p[g];d[g]=t(e[h],h,g,u&&u[g])}}else d=[];return n&&(n[i]=d),d}function Ov(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 Fv(e,t,n={},i,d){if(it.isCE||it.parent&&zn(it.parent)&&it.parent.isCE)return t!=="default"&&(n.name=t),he("slot",n,i&&i());let u=e[t];u&&u._c&&(u._d=!1),q();const p=u&&Nh(u(n)),g=Me(Se,{key:n.key||p&&p.key||`_${t}`},p||(i?i():[]),p&&e._===1?64:-2);return!d&&g.scopeId&&(g.slotScopeIds=[g.scopeId+"-s"]),u&&u._c&&(u._d=!0),g}function Nh(e){return e.some(t=>Rn(t)?!(t.type===lt||t.type===Se&&!Nh(t.children)):!0)?e:null}function Nv(e,t){const n={};for(const i in e)n[t&&/[A-Z]/.test(i)?`on:${i}`:Gi(i)]=e[i];return n}const Ys=e=>e?tf(e)?Ko(e)||e.proxy:Ys(e.parent):null,Ki=Ue(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=>Ys(e.parent),$root:e=>Ys(e.root),$emit:e=>e.emit,$options:e=>tl(e),$forceUpdate:e=>e.f||(e.f=()=>Bo(e.update)),$nextTick:e=>e.n||(e.n=zt.bind(e.proxy)),$watch:e=>Av.bind(e)}),vs=(e,t)=>e!==Be&&!e.__isScriptSetup&&Oe(e,t),Xs={get({_:e},t){const{ctx:n,setupState:i,data:d,props:u,accessCache:p,type:g,appContext:s}=e;let h;if(t[0]!=="$"){const c=p[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(vs(i,t))return p[t]=1,i[t];if(d!==Be&&Oe(d,t))return p[t]=2,d[t];if((h=e.propsOptions[0])&&Oe(h,t))return p[t]=3,u[t];if(n!==Be&&Oe(n,t))return p[t]=4,n[t];Zs&&(p[t]=0)}}const o=Ki[t];let r,l;if(o)return t==="$attrs"&&yt(e,"get",t),o(e);if((r=g.__cssModules)&&(r=r[t]))return r;if(n!==Be&&Oe(n,t))return p[t]=4,n[t];if(l=s.config.globalProperties,Oe(l,t))return l[t]},set({_:e},t,n){const{data:i,setupState:d,ctx:u}=e;return vs(d,t)?(d[t]=n,!0):i!==Be&&Oe(i,t)?(i[t]=n,!0):Oe(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}},p){let g;return!!n[p]||e!==Be&&Oe(e,p)||vs(t,p)||(g=u[0])&&Oe(g,p)||Oe(i,p)||Oe(Ki,p)||Oe(d.config.globalProperties,p)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Oe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},Pv=Ue({},Xs,{get(e,t){if(t!==Symbol.unscopables)return Xs.get(e,t,e)},has(e,t){return t[0]!=="_"&&!cm(t)}});function Dv(){return null}function Bv(){return null}function Wv(e){}function Hv(e){}function Uv(){return null}function zv(){}function Vv(e,t){return null}function jv(){return Ph().slots}function Gv(){return Ph().attrs}function Kv(e,t,n){const i=Dt();if(n&&n.local){const d=Te(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 Ph(){const e=Dt();return e.setupContext||(e.setupContext=of(e))}function fr(e){return ge(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Yv(e,t){const n=fr(e);for(const i in t){if(i.startsWith("__skip"))continue;let d=n[i];d?ge(d)||Ce(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 Xv(e,t){return!e||!t?e||t:ge(e)&&ge(t)?e.concat(t):Ue({},fr(e),fr(t))}function Zv(e,t){const n={};for(const i in e)t.includes(i)||Object.defineProperty(n,i,{enumerable:!0,get:()=>e[i]});return n}function Qv(e){const t=Dt();let n=e();return Cn(),Ia(n)&&(n=n.catch(i=>{throw Ln(t),i})),[n,()=>Ln(t)]}let Zs=!0;function Jv(e){const t=tl(e),n=e.proxy,i=e.ctx;Zs=!1,t.beforeCreate&&hc(t.beforeCreate,e,"bc");const{data:d,computed:u,methods:p,watch:g,provide:s,inject:h,created:o,beforeMount:r,mounted:l,beforeUpdate:c,updated:a,activated:f,deactivated:m,beforeDestroy:y,beforeUnmount:b,destroyed:E,unmounted:S,render:C,renderTracked:$,renderTriggered:R,errorCaptured:x,serverPrefetch:k,expose:_,inheritAttrs:v,components:M,directives:A,filters:w}=t;if(h&&qv(h,i,null),p)for(const O in p){const I=p[O];Ce(I)&&(i[O]=I.bind(n))}if(d){const O=d.call(n,n);We(O)&&(e.data=ki(O))}if(Zs=!0,u)for(const O in u){const I=u[O],F=Ce(I)?I.bind(n,n):Ce(I.get)?I.get.bind(n,n):Nt,D=!Ce(I)&&Ce(I.set)?I.set.bind(n):Nt,W=Ee({get:F,set:D});Object.defineProperty(i,O,{enumerable:!0,configurable:!0,get:()=>W.value,set:G=>W.value=G})}if(g)for(const O in g)Dh(g[O],i,n,O);if(s){const O=Ce(s)?s.call(n):s;Reflect.ownKeys(O).forEach(I=>{Yi(I,O[I])})}o&&hc(o,e,"c");function T(O,I){ge(I)?I.forEach(F=>O(F.bind(n))):I&&O(I.bind(n))}if(T(Rh,r),T(nt,l),T(Lh,c),T(Vo,a),T(xh,f),T(kh,m),T(Oh,x),T(Ih,$),T(Mh,R),T(kr,b),T(jo,S),T(Th,k),ge(_))if(_.length){const O=e.exposed||(e.exposed={});_.forEach(I=>{Object.defineProperty(O,I,{get:()=>n[I],set:F=>n[I]=F})})}else e.exposed||(e.exposed={});C&&e.render===Nt&&(e.render=C),v!=null&&(e.inheritAttrs=v),M&&(e.components=M),A&&(e.directives=A)}function qv(e,t,n=Nt){ge(e)&&(e=Qs(e));for(const i in e){const d=e[i];let u;We(d)?"default"in d?u=kt(d.from||i,d.default,!0):u=kt(d.from||i):u=kt(d),qe(u)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>u.value,set:p=>u.value=p}):t[i]=u}}function hc(e,t,n){_t(ge(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,n)}function Dh(e,t,n,i){const d=i.includes(".")?Ch(n,i):()=>n[i];if(Ge(e)){const u=t[e];Ce(u)&&Ye(d,u)}else if(Ce(e))Ye(d,e.bind(n));else if(We(e))if(ge(e))e.forEach(u=>Dh(u,t,n,i));else{const u=Ce(e.handler)?e.handler.bind(n):t[e.handler];Ce(u)&&Ye(d,u,e)}}function tl(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:d,optionsCache:u,config:{optionMergeStrategies:p}}=e.appContext,g=u.get(t);let s;return g?s=g:!d.length&&!n&&!i?s=t:(s={},d.length&&d.forEach(h=>go(s,h,p,!0)),go(s,t,p)),We(t)&&u.set(t,s),s}function go(e,t,n,i=!1){const{mixins:d,extends:u}=t;u&&go(e,u,n,!0),d&&d.forEach(p=>go(e,p,n,!0));for(const p in t)if(!(i&&p==="expose")){const g=ey[p]||n&&n[p];e[p]=g?g(e[p],t[p]):t[p]}return e}const ey={data:fc,props:dc,emits:dc,methods:Hi,computed:Hi,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:Hi,directives:Hi,watch:ny,provide:fc,inject:ty};function fc(e,t){return t?e?function(){return Ue(Ce(e)?e.call(this,this):e,Ce(t)?t.call(this,this):t)}:t:e}function ty(e,t){return Hi(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 Hi(e,t){return e?Ue(Object.create(null),e,t):t}function dc(e,t){return e?ge(e)&&ge(t)?[...new Set([...e,...t])]:Ue(Object.create(null),fr(e),fr(t??{})):t}function ny(e,t){if(!e)return t;if(!t)return e;const n=Ue(Object.create(null),e);for(const i in t)n[i]=ft(e[i],t[i]);return n}function Bh(){return{app:null,config:{isNativeTag:tm,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 iy=0;function ry(e,t){return function(i,d=null){Ce(i)||(i=Ue({},i)),d!=null&&!We(d)&&(d=null);const u=Bh(),p=new Set;let g=!1;const s=u.app={_uid:iy++,_component:i,_props:d,_container:null,_context:u,_instance:null,version:cf,get config(){return u.config},set config(h){},use(h,...o){return p.has(h)||(h&&Ce(h.install)?(p.add(h),h.install(s,...o)):Ce(h)&&(p.add(h),h(s,...o))),s},mixin(h){return u.mixins.includes(h)||u.mixins.push(h),s},component(h,o){return o?(u.components[h]=o,s):u.components[h]},directive(h,o){return o?(u.directives[h]=o,s):u.directives[h]},mount(h,o,r){if(!g){const l=he(i,d);return l.appContext=u,o&&t?t(l,h):e(l,h,r),g=!0,s._container=h,h.__vue_app__=s,Ko(l.component)||l.component.proxy}},unmount(){g&&(e(null,s._container),delete s._container.__vue_app__)},provide(h,o){return u.provides[h]=o,s},runWithContext(h){dr=s;try{return h()}finally{dr=null}}};return s}}let dr=null;function Yi(e,t){if(Qe){let n=Qe.provides;const i=Qe.parent&&Qe.parent.provides;i===n&&(n=Qe.provides=Object.create(i)),n[e]=t}}function kt(e,t,n=!1){const i=Qe||it;if(i||dr){const d=i?i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:dr._context.provides;if(d&&e in d)return d[e];if(arguments.length>1)return n&&Ce(t)?t.call(i&&i.proxy):t}}function oy(){return!!(Qe||it||dr)}function sy(e,t,n,i=!1){const d={},u={};co(u,Go,1),e.propsDefaults=Object.create(null),Wh(e,t,d,u);for(const p in e.propsOptions[0])p in d||(d[p]=void 0);n?e.props=i?d:Ba(d):e.type.props?e.props=d:e.props=u,e.attrs=u}function ay(e,t,n,i){const{props:d,attrs:u,vnode:{patchFlag:p}}=e,g=Ie(d),[s]=e.propsOptions;let h=!1;if((i||p>0)&&!(p&16)){if(p&8){const o=e.vnode.dynamicProps;for(let r=0;r<o.length;r++){let l=o[r];if(Wo(e.emitsOptions,l))continue;const c=t[l];if(s)if(Oe(u,l))c!==u[l]&&(u[l]=c,h=!0);else{const a=vt(l);d[a]=Js(s,g,a,c,e,!1)}else c!==u[l]&&(u[l]=c,h=!0)}}}else{Wh(e,t,d,u)&&(h=!0);let o;for(const r in g)(!t||!Oe(t,r)&&((o=xt(r))===r||!Oe(t,o)))&&(s?n&&(n[r]!==void 0||n[o]!==void 0)&&(d[r]=Js(s,g,r,void 0,e,!0)):delete d[r]);if(u!==g)for(const r in u)(!t||!Oe(t,r))&&(delete u[r],h=!0)}h&&sn(e,"set","$attrs")}function Wh(e,t,n,i){const[d,u]=e.propsOptions;let p=!1,g;if(t)for(let s in t){if(ji(s))continue;const h=t[s];let o;d&&Oe(d,o=vt(s))?!u||!u.includes(o)?n[o]=h:(g||(g={}))[o]=h:Wo(e.emitsOptions,s)||(!(s in i)||h!==i[s])&&(i[s]=h,p=!0)}if(u){const s=Ie(n),h=g||Be;for(let o=0;o<u.length;o++){const r=u[o];n[r]=Js(d,s,r,h[r],e,!Oe(h,r))}}return p}function Js(e,t,n,i,d,u){const p=e[n];if(p!=null){const g=Oe(p,"default");if(g&&i===void 0){const s=p.default;if(p.type!==Function&&!p.skipFactory&&Ce(s)){const{propsDefaults:h}=d;n in h?i=h[n]:(Ln(d),i=h[n]=s.call(null,t),Cn())}else i=s}p[0]&&(u&&!g?i=!1:p[1]&&(i===""||i===xt(n))&&(i=!0))}return i}function Hh(e,t,n=!1){const i=t.propsCache,d=i.get(e);if(d)return d;const u=e.props,p={},g=[];let s=!1;if(!Ce(e)){const o=r=>{s=!0;const[l,c]=Hh(r,t,!0);Ue(p,l),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 We(e)&&i.set(e,li),li;if(ge(u))for(let o=0;o<u.length;o++){const r=vt(u[o]);pc(r)&&(p[r]=Be)}else if(u)for(const o in u){const r=vt(o);if(pc(r)){const l=u[o],c=p[r]=ge(l)||Ce(l)?{type:l}:Ue({},l);if(c){const a=vc(Boolean,c.type),f=vc(String,c.type);c[0]=a>-1,c[1]=f<0||a<f,(a>-1||Oe(c,"default"))&&g.push(r)}}}const h=[p,g];return We(e)&&i.set(e,h),h}function pc(e){return e[0]!=="$"}function gc(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function mc(e,t){return gc(e)===gc(t)}function vc(e,t){return ge(t)?t.findIndex(n=>mc(n,e)):Ce(t)&&mc(t,e)?0:-1}const Uh=e=>e[0]==="_"||e==="$stable",nl=e=>ge(e)?e.map(wt):[wt(e)],ly=(e,t,n)=>{if(t._n)return t;const i=dt((...d)=>nl(t(...d)),n);return i._c=!1,i},zh=(e,t,n)=>{const i=e._ctx;for(const d in e){if(Uh(d))continue;const u=e[d];if(Ce(u))t[d]=ly(d,u,i);else if(u!=null){const p=nl(u);t[d]=()=>p}}},Vh=(e,t)=>{const n=nl(t);e.slots.default=()=>n},cy=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Ie(t),co(t,"_",n)):zh(t,e.slots={})}else e.slots={},t&&Vh(e,t);co(e.slots,Go,1)},uy=(e,t,n)=>{const{vnode:i,slots:d}=e;let u=!0,p=Be;if(i.shapeFlag&32){const g=t._;g?n&&g===1?u=!1:(Ue(d,t),!n&&g===1&&delete d._):(u=!t.$stable,zh(t,d)),p=t}else t&&(Vh(e,t),p={default:1});if(u)for(const g in d)!Uh(g)&&!(g in p)&&delete d[g]};function mo(e,t,n,i,d=!1){if(ge(e)){e.forEach((l,c)=>mo(l,t&&(ge(t)?t[c]:t),n,i,d));return}if(zn(i)&&!d)return;const u=i.shapeFlag&4?Ko(i.component)||i.component.proxy:i.el,p=d?null:u,{i:g,r:s}=e,h=t&&t.r,o=g.refs===Be?g.refs={}:g.refs,r=g.setupState;if(h!=null&&h!==s&&(Ge(h)?(o[h]=null,Oe(r,h)&&(r[h]=null)):qe(h)&&(h.value=null)),Ce(s))en(s,g,12,[p,o]);else{const l=Ge(s),c=qe(s);if(l||c){const a=()=>{if(e.f){const f=l?Oe(r,s)?r[s]:o[s]:s.value;d?ge(f)&&Ma(f,u):ge(f)?f.includes(u)||f.push(u):l?(o[s]=[u],Oe(r,s)&&(r[s]=o[s])):(s.value=[u],e.k&&(o[e.k]=s.value))}else l?(o[s]=p,Oe(r,s)&&(r[s]=p)):c&&(s.value=p,e.k&&(o[e.k]=p))};p?(a.id=-1,ot(a,n)):a()}}}let gn=!1;const Gr=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",Kr=e=>e.nodeType===8;function hy(e){const{mt:t,p:n,o:{patchProp:i,createText:d,nextSibling:u,parentNode:p,remove:g,insert:s,createComment:h}}=e,o=(y,b)=>{if(!b.hasChildNodes()){n(null,y,b),po(),b._vnode=y;return}gn=!1,r(b.firstChild,y,null,null,null),po(),b._vnode=y,gn&&console.error("Hydration completed but contains mismatches.")},r=(y,b,E,S,C,$=!1)=>{const R=Kr(y)&&y.data==="[",x=()=>f(y,b,E,S,C,R),{type:k,ref:_,shapeFlag:v,patchFlag:M}=b;let A=y.nodeType;b.el=y,M===-2&&($=!1,b.dynamicChildren=null);let w=null;switch(k){case Zn:A!==3?b.children===""?(s(b.el=d(""),p(y),y),w=y):w=x():(y.data!==b.children&&(gn=!0,y.data=b.children),w=u(y));break;case lt:A!==8||R?w=x():w=u(y);break;case Vn:if(R&&(y=u(y),A=y.nodeType),A===1||A===3){w=y;const L=!b.children.length;for(let T=0;T<b.staticCount;T++)L&&(b.children+=w.nodeType===1?w.outerHTML:w.data),T===b.staticCount-1&&(b.anchor=w),w=u(w);return R?u(w):w}else x();break;case Se:R?w=a(y,b,E,S,C,$):w=x();break;default:if(v&1)A!==1||b.type.toLowerCase()!==y.tagName.toLowerCase()?w=x():w=l(y,b,E,S,C,$);else if(v&6){b.slotScopeIds=C;const L=p(y);if(t(b,L,null,E,S,Gr(L),$),w=R?m(y):u(y),w&&Kr(w)&&w.data==="teleport end"&&(w=u(w)),zn(b)){let T;R?(T=he(Se),T.anchor=w?w.previousSibling:L.lastChild):T=y.nodeType===3?et(""):he("div"),T.el=y,b.component.subTree=T}}else v&64?A!==8?w=x():w=b.type.hydrate(y,b,E,S,C,$,e,c):v&128&&(w=b.type.hydrate(y,b,E,S,Gr(p(y)),C,$,e,r))}return _!=null&&mo(_,null,S,b),w},l=(y,b,E,S,C,$)=>{$=$||!!b.dynamicChildren;const{type:R,props:x,patchFlag:k,shapeFlag:_,dirs:v}=b,M=R==="input"&&v||R==="option";if(M||k!==-1){if(v&&Bt(b,null,E,"created"),x)if(M||!$||k&48)for(const w in x)(M&&w.endsWith("value")||$r(w)&&!ji(w))&&i(y,w,null,x[w],!1,void 0,E);else x.onClick&&i(y,"onClick",null,x.onClick,!1,void 0,E);let A;if((A=x&&x.onVnodeBeforeMount)&&gt(A,E,b),v&&Bt(b,null,E,"beforeMount"),((A=x&&x.onVnodeMounted)||v)&&wh(()=>{A&&gt(A,E,b),v&&Bt(b,null,E,"mounted")},S),_&16&&!(x&&(x.innerHTML||x.textContent))){let w=c(y.firstChild,b,y,E,S,C,$);for(;w;){gn=!0;const L=w;w=w.nextSibling,g(L)}}else _&8&&y.textContent!==b.children&&(gn=!0,y.textContent=b.children)}return y.nextSibling},c=(y,b,E,S,C,$,R)=>{R=R||!!b.dynamicChildren;const x=b.children,k=x.length;for(let _=0;_<k;_++){const v=R?x[_]:x[_]=wt(x[_]);if(y)y=r(y,v,S,C,$,R);else{if(v.type===Zn&&!v.children)continue;gn=!0,n(null,v,E,null,S,C,Gr(E),$)}}return y},a=(y,b,E,S,C,$)=>{const{slotScopeIds:R}=b;R&&(C=C?C.concat(R):R);const x=p(y),k=c(u(y),b,x,E,S,C,$);return k&&Kr(k)&&k.data==="]"?u(b.anchor=k):(gn=!0,s(b.anchor=h("]"),x,k),k)},f=(y,b,E,S,C,$)=>{if(gn=!0,b.el=null,$){const k=m(y);for(;;){const _=u(y);if(_&&_!==k)g(_);else break}}const R=u(y),x=p(y);return g(y),n(null,b,x,R,E,S,Gr(x),C),R},m=y=>{let b=0;for(;y;)if(y=u(y),y&&Kr(y)&&(y.data==="["&&b++,y.data==="]")){if(b===0)return u(y);b--}return y};return[o,r]}const ot=wh;function jh(e){return Kh(e)}function Gh(e){return Kh(e,hy)}function Kh(e,t){const n=zs();n.__VUE__=!0;const{insert:i,remove:d,patchProp:u,createElement:p,createText:g,createComment:s,setText:h,setElementText:o,parentNode:r,nextSibling:l,setScopeId:c=Nt,insertStaticContent:a}=e,f=(N,B,j,Z=null,te=null,ie=null,le=!1,se=null,ce=!!B.dynamicChildren)=>{if(N===B)return;N&&!Mt(N,B)&&(Z=z(N),G(N,te,ie,!0),N=null),B.patchFlag===-2&&(ce=!1,B.dynamicChildren=null);const{type:re,ref:ve,shapeFlag:de}=B;switch(re){case Zn:m(N,B,j,Z);break;case lt:y(N,B,j,Z);break;case Vn:N==null&&b(B,j,Z,le);break;case Se:M(N,B,j,Z,te,ie,le,se,ce);break;default:de&1?C(N,B,j,Z,te,ie,le,se,ce):de&6?A(N,B,j,Z,te,ie,le,se,ce):(de&64||de&128)&&re.process(N,B,j,Z,te,ie,le,se,ce,K)}ve!=null&&te&&mo(ve,N&&N.ref,ie,B||N,!B)},m=(N,B,j,Z)=>{if(N==null)i(B.el=g(B.children),j,Z);else{const te=B.el=N.el;B.children!==N.children&&h(te,B.children)}},y=(N,B,j,Z)=>{N==null?i(B.el=s(B.children||""),j,Z):B.el=N.el},b=(N,B,j,Z)=>{[N.el,N.anchor]=a(N.children,B,j,Z,N.el,N.anchor)},E=({el:N,anchor:B},j,Z)=>{let te;for(;N&&N!==B;)te=l(N),i(N,j,Z),N=te;i(B,j,Z)},S=({el:N,anchor:B})=>{let j;for(;N&&N!==B;)j=l(N),d(N),N=j;d(B)},C=(N,B,j,Z,te,ie,le,se,ce)=>{le=le||B.type==="svg",N==null?$(B,j,Z,te,ie,le,se,ce):k(N,B,te,ie,le,se,ce)},$=(N,B,j,Z,te,ie,le,se)=>{let ce,re;const{type:ve,props:de,shapeFlag:me,transition:_e,dirs:Q}=N;if(ce=N.el=p(N.type,ie,de&&de.is,de),me&8?o(ce,N.children):me&16&&x(N.children,ce,null,Z,te,ie&&ve!=="foreignObject",le,se),Q&&Bt(N,null,Z,"created"),R(ce,N,N.scopeId,le,Z),de){for(const fe in de)fe!=="value"&&!ji(fe)&&u(ce,fe,null,de[fe],ie,N.children,Z,te,J);"value"in de&&u(ce,"value",null,de.value),(re=de.onVnodeBeforeMount)&&gt(re,Z,N)}Q&&Bt(N,null,Z,"beforeMount");const ae=(!te||te&&!te.pendingBranch)&&_e&&!_e.persisted;ae&&_e.beforeEnter(ce),i(ce,B,j),((re=de&&de.onVnodeMounted)||ae||Q)&&ot(()=>{re&&gt(re,Z,N),ae&&_e.enter(ce),Q&&Bt(N,null,Z,"mounted")},te)},R=(N,B,j,Z,te)=>{if(j&&c(N,j),Z)for(let ie=0;ie<Z.length;ie++)c(N,Z[ie]);if(te){let ie=te.subTree;if(B===ie){const le=te.vnode;R(N,le,le.scopeId,le.slotScopeIds,te.parent)}}},x=(N,B,j,Z,te,ie,le,se,ce=0)=>{for(let re=ce;re<N.length;re++){const ve=N[re]=se?wn(N[re]):wt(N[re]);f(null,ve,B,j,Z,te,ie,le,se)}},k=(N,B,j,Z,te,ie,le)=>{const se=B.el=N.el;let{patchFlag:ce,dynamicChildren:re,dirs:ve}=B;ce|=N.patchFlag&16;const de=N.props||Be,me=B.props||Be;let _e;j&&On(j,!1),(_e=me.onVnodeBeforeUpdate)&&gt(_e,j,B,N),ve&&Bt(B,N,j,"beforeUpdate"),j&&On(j,!0);const Q=te&&B.type!=="foreignObject";if(re?_(N.dynamicChildren,re,se,j,Z,Q,ie):le||I(N,B,se,null,j,Z,Q,ie,!1),ce>0){if(ce&16)v(se,B,de,me,j,Z,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 fe=0;fe<ae.length;fe++){const be=ae[fe],Re=de[be],Ne=me[be];(Ne!==Re||be==="value")&&u(se,be,Re,Ne,te,N.children,j,Z,J)}}ce&1&&N.children!==B.children&&o(se,B.children)}else!le&&re==null&&v(se,B,de,me,j,Z,te);((_e=me.onVnodeUpdated)||ve)&&ot(()=>{_e&&gt(_e,j,B,N),ve&&Bt(B,N,j,"updated")},Z)},_=(N,B,j,Z,te,ie,le)=>{for(let se=0;se<B.length;se++){const ce=N[se],re=B[se],ve=ce.el&&(ce.type===Se||!Mt(ce,re)||ce.shapeFlag&70)?r(ce.el):j;f(ce,re,ve,null,Z,te,ie,le,!0)}},v=(N,B,j,Z,te,ie,le)=>{if(j!==Z){if(j!==Be)for(const se in j)!ji(se)&&!(se in Z)&&u(N,se,j[se],null,le,B.children,te,ie,J);for(const se in Z){if(ji(se))continue;const ce=Z[se],re=j[se];ce!==re&&se!=="value"&&u(N,se,re,ce,le,B.children,te,ie,J)}"value"in Z&&u(N,"value",j.value,Z.value)}},M=(N,B,j,Z,te,ie,le,se,ce)=>{const re=B.el=N?N.el:g(""),ve=B.anchor=N?N.anchor:g("");let{patchFlag:de,dynamicChildren:me,slotScopeIds:_e}=B;_e&&(se=se?se.concat(_e):_e),N==null?(i(re,j,Z),i(ve,j,Z),x(B.children,j,ve,te,ie,le,se,ce)):de>0&&de&64&&me&&N.dynamicChildren?(_(N.dynamicChildren,me,j,te,ie,le,se),(B.key!=null||te&&B===te.subTree)&&il(N,B,!0)):I(N,B,j,ve,te,ie,le,se,ce)},A=(N,B,j,Z,te,ie,le,se,ce)=>{B.slotScopeIds=se,N==null?B.shapeFlag&512?te.ctx.activate(B,j,Z,le,ce):w(B,j,Z,te,ie,le,ce):L(N,B,ce)},w=(N,B,j,Z,te,ie,le)=>{const se=N.component=ef(N,Z,te);if(xr(N)&&(se.ctx.renderer=K),nf(se),se.asyncDep){if(te&&te.registerDep(se,T),!N.el){const ce=se.subTree=he(lt);y(null,ce,B,j)}return}T(se,N,B,j,te,ie,le)},L=(N,B,j)=>{const Z=B.component=N.component;if(mv(N,B,j))if(Z.asyncDep&&!Z.asyncResolved){O(Z,B,j);return}else Z.next=B,cv(Z.update),Z.update();else B.el=N.el,Z.vnode=B},T=(N,B,j,Z,te,ie,le)=>{const se=()=>{if(N.isMounted){let{next:ve,bu:de,u:me,parent:_e,vnode:Q}=N,ae=ve,fe;On(N,!1),ve?(ve.el=Q.el,O(N,ve,le)):ve=Q,de&&ui(de),(fe=ve.props&&ve.props.onVnodeBeforeUpdate)&&gt(fe,_e,ve,Q),On(N,!0);const be=qr(N),Re=N.subTree;N.subTree=be,f(Re,be,r(Re.el),z(Re),N,te,ie),ve.el=be.el,ae===null&&Xa(N,be.el),me&&ot(me,te),(fe=ve.props&&ve.props.onVnodeUpdated)&&ot(()=>gt(fe,_e,ve,Q),te)}else{let ve;const{el:de,props:me}=B,{bm:_e,m:Q,parent:ae}=N,fe=zn(B);if(On(N,!1),_e&&ui(_e),!fe&&(ve=me&&me.onVnodeBeforeMount)&&gt(ve,ae,B),On(N,!0),de&&ee){const be=()=>{N.subTree=qr(N),ee(de,N.subTree,N,te,null)};fe?B.type.__asyncLoader().then(()=>!N.isUnmounted&&be()):be()}else{const be=N.subTree=qr(N);f(null,be,j,Z,N,te,ie),B.el=be.el}if(Q&&ot(Q,te),!fe&&(ve=me&&me.onVnodeMounted)){const be=B;ot(()=>gt(ve,ae,be),te)}(B.shapeFlag&256||ae&&zn(ae.vnode)&&ae.vnode.shapeFlag&256)&&N.a&&ot(N.a,te),N.isMounted=!0,B=j=Z=null}},ce=N.effect=new Sr(se,()=>Bo(re),N.scope),re=N.update=()=>ce.run();re.id=N.uid,On(N,!0),re()},O=(N,B,j)=>{B.component=N;const Z=N.vnode.props;N.vnode=B,N.next=null,ay(N,B.props,Z,j),uy(N,B.children,j),Ai(),sc(),xi()},I=(N,B,j,Z,te,ie,le,se,ce=!1)=>{const re=N&&N.children,ve=N?N.shapeFlag:0,de=B.children,{patchFlag:me,shapeFlag:_e}=B;if(me>0){if(me&128){D(re,de,j,Z,te,ie,le,se,ce);return}else if(me&256){F(re,de,j,Z,te,ie,le,se,ce);return}}_e&8?(ve&16&&J(re,te,ie),de!==re&&o(j,de)):ve&16?_e&16?D(re,de,j,Z,te,ie,le,se,ce):J(re,te,ie,!0):(ve&8&&o(j,""),_e&16&&x(de,j,Z,te,ie,le,se,ce))},F=(N,B,j,Z,te,ie,le,se,ce)=>{N=N||li,B=B||li;const re=N.length,ve=B.length,de=Math.min(re,ve);let me;for(me=0;me<de;me++){const _e=B[me]=ce?wn(B[me]):wt(B[me]);f(N[me],_e,j,null,te,ie,le,se,ce)}re>ve?J(N,te,ie,!0,!1,de):x(B,j,Z,te,ie,le,se,ce,de)},D=(N,B,j,Z,te,ie,le,se,ce)=>{let re=0;const ve=B.length;let de=N.length-1,me=ve-1;for(;re<=de&&re<=me;){const _e=N[re],Q=B[re]=ce?wn(B[re]):wt(B[re]);if(Mt(_e,Q))f(_e,Q,j,null,te,ie,le,se,ce);else break;re++}for(;re<=de&&re<=me;){const _e=N[de],Q=B[me]=ce?wn(B[me]):wt(B[me]);if(Mt(_e,Q))f(_e,Q,j,null,te,ie,le,se,ce);else break;de--,me--}if(re>de){if(re<=me){const _e=me+1,Q=_e<ve?B[_e].el:Z;for(;re<=me;)f(null,B[re]=ce?wn(B[re]):wt(B[re]),j,Q,te,ie,le,se,ce),re++}}else if(re>me)for(;re<=de;)G(N[re],te,ie,!0),re++;else{const _e=re,Q=re,ae=new Map;for(re=Q;re<=me;re++){const ke=B[re]=ce?wn(B[re]):wt(B[re]);ke.key!=null&&ae.set(ke.key,re)}let fe,be=0;const Re=me-Q+1;let Ne=!1,Ke=0;const De=new Array(Re);for(re=0;re<Re;re++)De[re]=0;for(re=_e;re<=de;re++){const ke=N[re];if(be>=Re){G(ke,te,ie,!0);continue}let ze;if(ke.key!=null)ze=ae.get(ke.key);else for(fe=Q;fe<=me;fe++)if(De[fe-Q]===0&&Mt(ke,B[fe])){ze=fe;break}ze===void 0?G(ke,te,ie,!0):(De[ze-Q]=re+1,ze>=Ke?Ke=ze:Ne=!0,f(ke,B[ze],j,null,te,ie,le,se,ce),be++)}const He=Ne?fy(De):li;for(fe=He.length-1,re=Re-1;re>=0;re--){const ke=Q+re,ze=B[ke],fn=ke+1<ve?B[ke+1].el:Z;De[re]===0?f(null,ze,j,fn,te,ie,le,se,ce):Ne&&(fe<0||re!==He[fe]?W(ze,j,fn,2):fe--)}}},W=(N,B,j,Z,te=null)=>{const{el:ie,type:le,transition:se,children:ce,shapeFlag:re}=N;if(re&6){W(N.component.subTree,B,j,Z);return}if(re&128){N.suspense.move(B,j,Z);return}if(re&64){le.move(N,B,j,K);return}if(le===Se){i(ie,B,j);for(let de=0;de<ce.length;de++)W(ce[de],B,j,Z);i(N.anchor,B,j);return}if(le===Vn){E(N,B,j);return}if(Z!==2&&re&1&&se)if(Z===0)se.beforeEnter(ie),i(ie,B,j),ot(()=>se.enter(ie),te);else{const{leave:de,delayLeave:me,afterLeave:_e}=se,Q=()=>i(ie,B,j),ae=()=>{de(ie,()=>{Q(),_e&&_e()})};me?me(ie,Q,ae):ae()}else i(ie,B,j)},G=(N,B,j,Z=!1,te=!1)=>{const{type:ie,props:le,ref:se,children:ce,dynamicChildren:re,shapeFlag:ve,patchFlag:de,dirs:me}=N;if(se!=null&&mo(se,null,j,N,!0),ve&256){B.ctx.deactivate(N);return}const _e=ve&1&&me,Q=!zn(N);let ae;if(Q&&(ae=le&&le.onVnodeBeforeUnmount)&&gt(ae,B,N),ve&6)X(N.component,j,Z);else{if(ve&128){N.suspense.unmount(j,Z);return}_e&&Bt(N,null,B,"beforeUnmount"),ve&64?N.type.remove(N,B,j,te,K,Z):re&&(ie!==Se||de>0&&de&64)?J(re,B,j,!1,!0):(ie===Se&&de&384||!te&&ve&16)&&J(ce,B,j),Z&&U(N)}(Q&&(ae=le&&le.onVnodeUnmounted)||_e)&&ot(()=>{ae&&gt(ae,B,N),_e&&Bt(N,null,B,"unmounted")},j)},U=N=>{const{type:B,el:j,anchor:Z,transition:te}=N;if(B===Se){H(j,Z);return}if(B===Vn){S(N);return}const ie=()=>{d(j),te&&!te.persisted&&te.afterLeave&&te.afterLeave()};if(N.shapeFlag&1&&te&&!te.persisted){const{leave:le,delayLeave:se}=te,ce=()=>le(j,ie);se?se(N.el,ie,ce):ce()}else ie()},H=(N,B)=>{let j;for(;N!==B;)j=l(N),d(N),N=j;d(B)},X=(N,B,j)=>{const{bum:Z,scope:te,update:ie,subTree:le,um:se}=N;Z&&ui(Z),te.stop(),ie&&(ie.active=!1,G(le,N,B,j)),se&&ot(se,B),ot(()=>{N.isUnmounted=!0},B),B&&B.pendingBranch&&!B.isUnmounted&&N.asyncDep&&!N.asyncResolved&&N.suspenseId===B.pendingId&&(B.deps--,B.deps===0&&B.resolve())},J=(N,B,j,Z=!1,te=!1,ie=0)=>{for(let le=ie;le<N.length;le++)G(N[le],B,j,Z,te)},z=N=>N.shapeFlag&6?z(N.component.subTree):N.shapeFlag&128?N.suspense.next():l(N.anchor||N.el),Y=(N,B,j)=>{N==null?B._vnode&&G(B._vnode,null,null,!0):f(B._vnode||null,N,B,null,null,null,j),sc(),po(),B._vnode=N},K={p:f,um:G,m:W,r:U,mt:w,mc:x,pc:I,pbc:_,n:z,o:e};let V,ee;return t&&([V,ee]=t(K)),{render:Y,hydrate:V,createApp:ry(Y,V)}}function On({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function il(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 p=i[u];let g=d[u];g.shapeFlag&1&&!g.dynamicChildren&&((g.patchFlag<=0||g.patchFlag===32)&&(g=d[u]=wn(d[u]),g.el=p.el),n||il(p,g)),g.type===Zn&&(g.el=p.el)}}function fy(e){const t=e.slice(),n=[0];let i,d,u,p,g;const s=e.length;for(i=0;i<s;i++){const h=e[i];if(h!==0){if(d=n[n.length-1],e[d]<h){t[i]=d,n.push(i);continue}for(u=0,p=n.length-1;u<p;)g=u+p>>1,e[n[g]]<h?u=g+1:p=g;h<e[n[u]]&&(u>0&&(t[i]=n[u-1]),n[u]=i)}}for(u=n.length,p=n[u-1];u-- >0;)n[u]=p,p=t[p];return n}const dy=e=>e.__isTeleport,Xi=e=>e&&(e.disabled||e.disabled===""),yc=e=>typeof SVGElement<"u"&&e instanceof SVGElement,qs=(e,t)=>{const n=e&&e.to;return Ge(n)?t?t(n):null:n},py={__isTeleport:!0,process(e,t,n,i,d,u,p,g,s,h){const{mc:o,pc:r,pbc:l,o:{insert:c,querySelector:a,createText:f,createComment:m}}=h,y=Xi(t.props);let{shapeFlag:b,children:E,dynamicChildren:S}=t;if(e==null){const C=t.el=f(""),$=t.anchor=f("");c(C,n,i),c($,n,i);const R=t.target=qs(t.props,a),x=t.targetAnchor=f("");R&&(c(x,R),p=p||yc(R));const k=(_,v)=>{b&16&&o(E,_,v,d,u,p,g,s)};y?k(n,$):R&&k(R,x)}else{t.el=e.el;const C=t.anchor=e.anchor,$=t.target=e.target,R=t.targetAnchor=e.targetAnchor,x=Xi(e.props),k=x?n:$,_=x?C:R;if(p=p||yc($),S?(l(e.dynamicChildren,S,k,d,u,p,g),il(e,t,!0)):s||r(e,t,k,_,d,u,p,g,!1),y)x||Yr(t,n,C,h,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const v=t.target=qs(t.props,a);v&&Yr(t,v,null,h,0)}else x&&Yr(t,$,R,h,1)}Yh(t)},remove(e,t,n,i,{um:d,o:{remove:u}},p){const{shapeFlag:g,children:s,anchor:h,targetAnchor:o,target:r,props:l}=e;if(r&&u(o),(p||!Xi(l))&&(u(h),g&16))for(let c=0;c<s.length;c++){const a=s[c];d(a,t,n,!0,!!a.dynamicChildren)}},move:Yr,hydrate:gy};function Yr(e,t,n,{o:{insert:i},m:d},u=2){u===0&&i(e.targetAnchor,t,n);const{el:p,anchor:g,shapeFlag:s,children:h,props:o}=e,r=u===2;if(r&&i(p,t,n),(!r||Xi(o))&&s&16)for(let l=0;l<h.length;l++)d(h[l],t,n,2);r&&i(g,t,n)}function gy(e,t,n,i,d,u,{o:{nextSibling:p,parentNode:g,querySelector:s}},h){const o=t.target=qs(t.props,s);if(o){const r=o._lpa||o.firstChild;if(t.shapeFlag&16)if(Xi(t.props))t.anchor=h(p(e),t,g(e),n,i,d,u),t.targetAnchor=r;else{t.anchor=p(e);let l=r;for(;l;)if(l=p(l),l&&l.nodeType===8&&l.data==="teleport anchor"){t.targetAnchor=l,o._lpa=t.targetAnchor&&p(t.targetAnchor);break}h(r,t,o,n,i,d,u)}Yh(t)}return t.anchor&&p(t.anchor)}const my=py;function Yh(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const Se=Symbol.for("v-fgt"),Zn=Symbol.for("v-txt"),lt=Symbol.for("v-cmt"),Vn=Symbol.for("v-stc"),Zi=[];let mt=null;function q(e=!1){Zi.push(mt=e?null:[])}function Xh(){Zi.pop(),mt=Zi[Zi.length-1]||null}let Qn=1;function ea(e){Qn+=e}function Zh(e){return e.dynamicChildren=Qn>0?mt||li:null,Xh(),Qn>0&&mt&&mt.push(e),e}function oe(e,t,n,i,d,u){return Zh(P(e,t,n,i,d,u,!0))}function Me(e,t,n,i,d){return Zh(he(e,t,n,i,d,!0))}function Rn(e){return e?e.__v_isVNode===!0:!1}function Mt(e,t){return e.type===t.type&&e.key===t.key}function vy(e){}const Go="__vInternal",Qh=({key:e})=>e??null,eo=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ge(e)||qe(e)||Ce(e)?{i:it,r:e,k:t,f:!!n}:e:null);function P(e,t=null,n=null,i=0,d=null,u=e===Se?0:1,p=!1,g=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Qh(t),ref:t&&eo(t),scopeId:Ho,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:it};return g?(rl(s,n),u&128&&e.normalize(s)):n&&(s.shapeFlag|=Ge(n)?8:16),Qn>0&&!p&&mt&&(s.patchFlag>0||u&6)&&s.patchFlag!==32&&mt.push(s),s}const he=yy;function yy(e,t=null,n=null,i=0,d=null,u=!1){if((!e||e===Fh)&&(e=lt),Rn(e)){const g=Vt(e,t,!0);return n&&rl(g,n),Qn>0&&!u&&mt&&(g.shapeFlag&6?mt[mt.indexOf(e)]=g:mt.push(g)),g.patchFlag|=-2,g}if(xy(e)&&(e=e.__vccOpts),t){t=Jh(t);let{class:g,style:s}=t;g&&!Ge(g)&&(t.class=Cr(g)),We(s)&&(Wa(s)&&!ge(s)&&(s=Ue({},s)),t.style=_r(s))}const p=Ge(e)?1:bh(e)?128:dy(e)?64:We(e)?4:Ce(e)?2:0;return P(e,t,n,i,d,p,u,!0)}function Jh(e){return e?Wa(e)||Go in e?Ue({},e):e:null}function Vt(e,t,n=!1){const{props:i,ref:d,patchFlag:u,children:p}=e,g=t?qh(i||{},t):i;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:g,key:g&&Qh(g),ref:t&&t.ref?n&&d?ge(d)?d.concat(eo(t)):[d,eo(t)]:eo(t):d,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:p,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Se?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&&Vt(e.ssContent),ssFallback:e.ssFallback&&Vt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function et(e=" ",t=0){return he(Zn,null,e,t)}function by(e,t){const n=he(Vn,null,e);return n.staticCount=t,n}function we(e="",t=!1){return t?(q(),Me(lt,null,e)):he(lt,null,e)}function wt(e){return e==null||typeof e=="boolean"?he(lt):ge(e)?he(Se,null,e.slice()):typeof e=="object"?wn(e):he(Zn,null,String(e))}function wn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Vt(e)}function rl(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),rl(e,d()),d._c&&(d._d=!0));return}else{n=32;const d=t._;!d&&!(Go in t)?t._ctx=it:d===3&&it&&(it.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ce(t)?(t={default:t,_ctx:it},n=32):(t=String(t),i&64?(n=16,t=[et(t)]):n=8);e.children=t,e.shapeFlag|=n}function qh(...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=Cr([t.class,i.class]));else if(d==="style")t.style=_r([t.style,i.style]);else if($r(d)){const u=t[d],p=i[d];p&&u!==p&&!(ge(u)&&u.includes(p))&&(t[d]=u?[].concat(u,p):p)}else d!==""&&(t[d]=i[d])}return t}function gt(e,t,n,i=null){_t(e,t,7,[n,i])}const wy=Bh();let $y=0;function ef(e,t,n){const i=e.type,d=(t?t.appContext:e.appContext)||wy,u={uid:$y++,vnode:e,type:i,parent:t,appContext:d,root:null,next:null,subTree:null,effect:null,update:null,scope:new Fa(!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:Hh(i,d),emitsOptions:yh(i,d),emit:null,emitted:null,propsDefaults:Be,inheritAttrs:i.inheritAttrs,ctx:Be,data:Be,props:Be,attrs:Be,slots:Be,refs:Be,setupState:Be,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=hv.bind(null,u),e.ce&&e.ce(u),u}let Qe=null;const Dt=()=>Qe||it;let ol,ti,bc="__VUE_INSTANCE_SETTERS__";(ti=zs()[bc])||(ti=zs()[bc]=[]),ti.push(e=>Qe=e),ol=e=>{ti.length>1?ti.forEach(t=>t(e)):ti[0](e)};const Ln=e=>{ol(e),e.scope.on()},Cn=()=>{Qe&&Qe.scope.off(),ol(null)};function tf(e){return e.vnode.shapeFlag&4}let mi=!1;function nf(e,t=!1){mi=t;const{props:n,children:i}=e.vnode,d=tf(e);sy(e,n,d,t),cy(e,i);const u=d?_y(e,t):void 0;return mi=!1,u}function _y(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Po(new Proxy(e.ctx,Xs));const{setup:i}=n;if(i){const d=e.setupContext=i.length>1?of(e):null;Ln(e),Ai();const u=en(i,e,0,[e.props,d]);if(xi(),Cn(),Ia(u)){if(u.then(Cn,Cn),t)return u.then(p=>{ta(e,p,t)}).catch(p=>{qn(p,e,0)});e.asyncDep=u}else ta(e,u,t)}else rf(e,t)}function ta(e,t,n){Ce(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:We(t)&&(e.setupState=za(t)),rf(e,n)}let vo,na;function Cy(e){vo=e,na=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,Pv))}}const Sy=()=>!vo;function rf(e,t,n){const i=e.type;if(!e.render){if(!t&&vo&&!i.render){const d=i.template||tl(e).template;if(d){const{isCustomElement:u,compilerOptions:p}=e.appContext.config,{delimiters:g,compilerOptions:s}=i,h=Ue(Ue({isCustomElement:u,delimiters:g},p),s);i.render=vo(d,h)}}e.render=i.render||Nt,na&&na(e)}Ln(e),Ai(),Jv(e),xi(),Cn()}function Ay(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return yt(e,"get","$attrs"),t[n]}}))}function of(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Ay(e)},slots:e.slots,emit:e.emit,expose:t}}function Ko(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(za(Po(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ki)return Ki[n](e)},has(t,n){return n in t||n in Ki}}))}function ia(e,t=!0){return Ce(e)?e.displayName||e.name:e.name||t&&e.__name}function xy(e){return Ce(e)&&"__vccOpts"in e}const Ee=(e,t)=>rv(e,t,mi);function Ei(e,t,n){const i=arguments.length;return i===2?We(t)&&!ge(t)?Rn(t)?he(e,null,[t]):he(e,t):he(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&Rn(n)&&(n=[n]),he(e,t,n))}const sf=Symbol.for("v-scx"),af=()=>kt(sf);function ky(){}function Ey(e,t,n,i){const d=n[i];if(d&&lf(d,e))return d;const u=t();return u.memo=e.slice(),n[i]=u}function lf(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let i=0;i<n.length;i++)if(pi(n[i],t[i]))return!1;return Qn>0&&mt&&mt.push(e),!0}const cf="3.3.4",Ry={createComponentInstance:ef,setupComponent:nf,renderComponentRoot:qr,setCurrentRenderingInstance:ur,isVNode:Rn,normalizeVNode:wt},Ly=Ry,Ty=null,My=null,Iy="http://www.w3.org/2000/svg",Pn=typeof document<"u"?document:null,wc=Pn&&Pn.createElement("template"),Oy={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?Pn.createElementNS(Iy,e):Pn.createElement(e,n?{is:n}:void 0);return e==="select"&&i&&i.multiple!=null&&d.setAttribute("multiple",i.multiple),d},createText:e=>Pn.createTextNode(e),createComment:e=>Pn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Pn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,d,u){const p=n?n.previousSibling:t.lastChild;if(d&&(d===u||d.nextSibling))for(;t.insertBefore(d.cloneNode(!0),n),!(d===u||!(d=d.nextSibling)););else{wc.innerHTML=i?`<svg>${e}</svg>`:e;const g=wc.content;if(i){const s=g.firstChild;for(;s.firstChild;)g.appendChild(s.firstChild);g.removeChild(s)}t.insertBefore(g,n)}return[p?p.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Fy(e,t,n){const i=e._vtc;i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Ny(e,t,n){const i=e.style,d=Ge(n);if(n&&!d){if(t&&!Ge(t))for(const u in t)n[u]==null&&ra(i,u,"");for(const u in n)ra(i,u,n[u])}else{const u=i.display;d?t!==n&&(i.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(i.display=u)}}const $c=/\s*!important$/;function ra(e,t,n){if(ge(n))n.forEach(i=>ra(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=Py(e,t);$c.test(n)?e.setProperty(xt(i),n.replace($c,""),"important"):e[i]=n}}const _c=["Webkit","Moz","ms"],ys={};function Py(e,t){const n=ys[t];if(n)return n;let i=vt(t);if(i!=="filter"&&i in e)return ys[t]=i;i=Si(i);for(let d=0;d<_c.length;d++){const u=_c[d]+i;if(u in e)return ys[t]=u}return t}const Cc="http://www.w3.org/1999/xlink";function Dy(e,t,n,i,d){if(i&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Cc,t.slice(6,t.length)):e.setAttributeNS(Cc,t,n);else{const u=mm(t);n==null||u&&!Yu(n)?e.removeAttribute(t):e.setAttribute(t,u?"":n)}}function By(e,t,n,i,d,u,p){if(t==="innerHTML"||t==="textContent"){i&&p(i,d,u),e[t]=n??"";return}const g=e.tagName;if(t==="value"&&g!=="PROGRESS"&&!g.includes("-")){e._value=n;const h=g==="OPTION"?e.getAttribute("value"):e.value,o=n??"";h!==o&&(e.value=o),n==null&&e.removeAttribute(t);return}let s=!1;if(n===""||n==null){const h=typeof e[t];h==="boolean"?n=Yu(n):n==null&&h==="string"?(n="",s=!0):h==="number"&&(n=0,s=!0)}try{e[t]=n}catch{}s&&e.removeAttribute(t)}function Zt(e,t,n,i){e.addEventListener(t,n,i)}function Wy(e,t,n,i){e.removeEventListener(t,n,i)}function Hy(e,t,n,i,d=null){const u=e._vei||(e._vei={}),p=u[t];if(i&&p)p.value=i;else{const[g,s]=Uy(t);if(i){const h=u[t]=jy(i,d);Zt(e,g,h,s)}else p&&(Wy(e,g,p,s),u[t]=void 0)}}const Sc=/(?:Once|Passive|Capture)$/;function Uy(e){let t;if(Sc.test(e)){t={};let i;for(;i=e.match(Sc);)e=e.slice(0,e.length-i[0].length),t[i[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):xt(e.slice(2)),t]}let bs=0;const zy=Promise.resolve(),Vy=()=>bs||(zy.then(()=>bs=0),bs=Date.now());function jy(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;_t(Gy(i,n.value),t,5,[i])};return n.value=e,n.attached=Vy(),n}function Gy(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 Ac=/^on[a-z]/,Ky=(e,t,n,i,d=!1,u,p,g,s)=>{t==="class"?Fy(e,i,d):t==="style"?Ny(e,n,i):$r(t)?Ta(t)||Hy(e,t,n,i,p):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Yy(e,t,i,d))?By(e,t,i,u,p,g,s):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),Dy(e,t,i,d))};function Yy(e,t,n,i){return i?!!(t==="innerHTML"||t==="textContent"||t in e&&Ac.test(t)&&Ce(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Ac.test(t)&&Ge(n)?!1:t in e}function uf(e,t){const n=$e(e);class i extends Yo{constructor(u){super(n,u,t)}}return i.def=n,i}const Xy=e=>uf(e,Af),Zy=typeof HTMLElement<"u"?HTMLElement:class{};class Yo extends Zy{constructor(t,n={},i){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=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,zt(()=>{this._connected||(aa(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);new MutationObserver(i=>{for(const d of i)this._setAttr(d.attributeName)}).observe(this,{attributes:!0});const t=(i,d=!1)=>{const{props:u,styles:p}=i;let g;if(u&&!ge(u))for(const s in u){const h=u[s];(h===Number||h&&h.type===Number)&&(s in this._props&&(this._props[s]=ho(this._props[s])),(g||(g=Object.create(null)))[vt(s)]=!0)}this._numberProps=g,d&&this._resolveProps(i),this._applyStyles(p),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=ho(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(xt(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(xt(t),n+""):n||this.removeAttribute(xt(t))))}_update(){aa(this._createVNode(),this.shadowRoot)}_createVNode(){const t=he(this._def,Ue({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const i=(u,p)=>{this.dispatchEvent(new CustomEvent(u,{detail:p}))};n.emit=(u,...p)=>{i(u,p),xt(u)!==u&&i(xt(u),p)};let d=this;for(;d=d&&(d.parentNode||d.host);)if(d instanceof Yo){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 Qy(e="$style"){{const t=Dt();if(!t)return Be;const n=t.type.__cssModules;if(!n)return Be;const i=n[e];return i||Be}}function Jy(e){const t=Dt();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)};_h(i),nt(()=>{const d=new MutationObserver(i);d.observe(t.subTree.el.parentNode,{childList:!0}),jo(()=>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===Se)e.children.forEach(n=>oa(n,t));else if(e.type===Vn){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;for(const i in t)n.setProperty(`--${i}`,t[i])}}const mn="transition",Ii="animation",sl=(e,{slots:t})=>Ei(Sh,ff(e),t);sl.displayName="Transition";const hf={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},qy=sl.props=Ue({},Ja,hf),Fn=(e,t=[])=>{ge(e)?e.forEach(n=>n(...t)):e&&e(...t)},xc=e=>e?ge(e)?e.some(t=>t.length>1):e.length>1:!1;function ff(e){const t={};for(const M in e)M in hf||(t[M]=e[M]);if(e.css===!1)return t;const{name:n="v",type:i,duration:d,enterFromClass:u=`${n}-enter-from`,enterActiveClass:p=`${n}-enter-active`,enterToClass:g=`${n}-enter-to`,appearFromClass:s=u,appearActiveClass:h=p,appearToClass:o=g,leaveFromClass:r=`${n}-leave-from`,leaveActiveClass:l=`${n}-leave-active`,leaveToClass:c=`${n}-leave-to`}=e,a=e0(d),f=a&&a[0],m=a&&a[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:E,onLeave:S,onLeaveCancelled:C,onBeforeAppear:$=y,onAppear:R=b,onAppearCancelled:x=E}=t,k=(M,A,w)=>{bn(M,A?o:g),bn(M,A?h:p),w&&w()},_=(M,A)=>{M._isLeaving=!1,bn(M,r),bn(M,c),bn(M,l),A&&A()},v=M=>(A,w)=>{const L=M?R:b,T=()=>k(A,M,w);Fn(L,[A,T]),kc(()=>{bn(A,M?s:u),Yt(A,M?o:g),xc(L)||Ec(A,i,f,T)})};return Ue(t,{onBeforeEnter(M){Fn(y,[M]),Yt(M,u),Yt(M,p)},onBeforeAppear(M){Fn($,[M]),Yt(M,s),Yt(M,h)},onEnter:v(!1),onAppear:v(!0),onLeave(M,A){M._isLeaving=!0;const w=()=>_(M,A);Yt(M,r),pf(),Yt(M,l),kc(()=>{M._isLeaving&&(bn(M,r),Yt(M,c),xc(S)||Ec(M,i,m,w))}),Fn(S,[M,w])},onEnterCancelled(M){k(M,!1),Fn(E,[M])},onAppearCancelled(M){k(M,!0),Fn(x,[M])},onLeaveCancelled(M){_(M),Fn(C,[M])}})}function e0(e){if(e==null)return null;if(We(e))return[ws(e.enter),ws(e.leave)];{const t=ws(e);return[t,t]}}function ws(e){return ho(e)}function Yt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function bn(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.remove(i));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function kc(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let t0=0;function Ec(e,t,n,i){const d=e._endId=++t0,u=()=>{d===e._endId&&i()};if(n)return setTimeout(u,n);const{type:p,timeout:g,propCount:s}=df(e,t);if(!p)return i();const h=p+"end";let o=0;const r=()=>{e.removeEventListener(h,l),u()},l=c=>{c.target===e&&++o>=s&&r()};setTimeout(()=>{o<s&&r()},g+1),e.addEventListener(h,l)}function df(e,t){const n=window.getComputedStyle(e),i=a=>(n[a]||"").split(", "),d=i(`${mn}Delay`),u=i(`${mn}Duration`),p=Rc(d,u),g=i(`${Ii}Delay`),s=i(`${Ii}Duration`),h=Rc(g,s);let o=null,r=0,l=0;t===mn?p>0&&(o=mn,r=p,l=u.length):t===Ii?h>0&&(o=Ii,r=h,l=s.length):(r=Math.max(p,h),o=r>0?p>h?mn:Ii:null,l=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:l,hasTransform:c}}function Rc(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,i)=>Lc(n)+Lc(e[i])))}function Lc(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function pf(){return document.body.offsetHeight}const gf=new WeakMap,mf=new WeakMap,vf={name:"TransitionGroup",props:Ue({},qy,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Dt(),i=Qa();let d,u;return Vo(()=>{if(!d.length)return;const p=e.moveClass||`${e.name||"v"}-move`;if(!a0(d[0].el,n.vnode.el,p))return;d.forEach(r0),d.forEach(o0);const g=d.filter(s0);pf(),g.forEach(s=>{const h=s.el,o=h.style;Yt(h,p),o.transform=o.webkitTransform=o.transitionDuration="";const r=h._moveCb=l=>{l&&l.target!==h||(!l||/transform$/.test(l.propertyName))&&(h.removeEventListener("transitionend",r),h._moveCb=null,bn(h,p))};h.addEventListener("transitionend",r)})}),()=>{const p=Ie(e),g=ff(p);let s=p.tag||Se;d=u,u=t.default?Uo(t.default()):[];for(let h=0;h<u.length;h++){const o=u[h];o.key!=null&&Xn(o,gi(o,g,i,n))}if(d)for(let h=0;h<d.length;h++){const o=d[h];Xn(o,gi(o,g,i,n)),gf.set(o,o.el.getBoundingClientRect())}return he(s,null,u)}}},n0=e=>delete e.mode;vf.props;const i0=vf;function r0(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function o0(e){mf.set(e,e.el.getBoundingClientRect())}function s0(e){const t=gf.get(e),n=mf.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 a0(e,t,n){const i=e.cloneNode();e._vtc&&e._vtc.forEach(p=>{p.split(/\s+/).forEach(g=>g&&i.classList.remove(g))}),n.split(/\s+/).forEach(p=>p&&i.classList.add(p)),i.style.display="none";const d=t.nodeType===1?t:t.parentNode;d.appendChild(i);const{hasTransform:u}=df(i);return d.removeChild(i),u}const Tn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ge(t)?n=>ui(t,n):t};function l0(e){e.target.composing=!0}function Tc(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ot={created(e,{modifiers:{lazy:t,trim:n,number:i}},d){e._assign=Tn(d);const u=i||d.props&&d.props.type==="number";Zt(e,t?"change":"input",p=>{if(p.target.composing)return;let g=e.value;n&&(g=g.trim()),u&&(g=uo(g)),e._assign(g)}),n&&Zt(e,"change",()=>{e.value=e.value.trim()}),t||(Zt(e,"compositionstart",l0),Zt(e,"compositionend",Tc),Zt(e,"change",Tc))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:i,number:d}},u){if(e._assign=Tn(u),e.composing||document.activeElement===e&&e.type!=="range"&&(n||i&&e.value.trim()===t||(d||e.type==="number")&&uo(e.value)===t))return;const p=t??"";e.value!==p&&(e.value=p)}},al={deep:!0,created(e,t,n){e._assign=Tn(n),Zt(e,"change",()=>{const i=e._modelValue,d=vi(e),u=e.checked,p=e._assign;if(ge(i)){const g=To(i,d),s=g!==-1;if(u&&!s)p(i.concat(d));else if(!u&&s){const h=[...i];h.splice(g,1),p(h)}}else if(Jn(i)){const g=new Set(i);u?g.add(d):g.delete(d),p(g)}else p(yf(e,u))})},mounted:Mc,beforeUpdate(e,t,n){e._assign=Tn(n),Mc(e,t,n)}};function Mc(e,{value:t,oldValue:n},i){e._modelValue=t,ge(t)?e.checked=To(t,i.props.value)>-1:Jn(t)?e.checked=t.has(i.props.value):t!==n&&(e.checked=kn(t,yf(e,!0)))}const ll={created(e,{value:t},n){e.checked=kn(t,n.props.value),e._assign=Tn(n),Zt(e,"change",()=>{e._assign(vi(e))})},beforeUpdate(e,{value:t,oldValue:n},i){e._assign=Tn(i),t!==n&&(e.checked=kn(t,i.props.value))}},pr={deep:!0,created(e,{value:t,modifiers:{number:n}},i){const d=Jn(t);Zt(e,"change",()=>{const u=Array.prototype.filter.call(e.options,p=>p.selected).map(p=>n?uo(vi(p)):vi(p));e._assign(e.multiple?d?new Set(u):u:u[0])}),e._assign=Tn(i)},mounted(e,{value:t}){Ic(e,t)},beforeUpdate(e,t,n){e._assign=Tn(n)},updated(e,{value:t}){Ic(e,t)}};function Ic(e,t){const n=e.multiple;if(!(n&&!ge(t)&&!Jn(t))){for(let i=0,d=e.options.length;i<d;i++){const u=e.options[i],p=vi(u);if(n)ge(t)?u.selected=To(t,p)>-1:u.selected=t.has(p);else if(kn(vi(u),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function vi(e){return"_value"in e?e._value:e.value}function yf(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const bf={created(e,t,n){Xr(e,t,n,null,"created")},mounted(e,t,n){Xr(e,t,n,null,"mounted")},beforeUpdate(e,t,n,i){Xr(e,t,n,i,"beforeUpdate")},updated(e,t,n,i){Xr(e,t,n,i,"updated")}};function wf(e,t){switch(e){case"SELECT":return pr;case"TEXTAREA":return Ot;default:switch(t){case"checkbox":return al;case"radio":return ll;default:return Ot}}}function Xr(e,t,n,i,d){const p=wf(e.tagName,n.props&&n.props.type)[d];p&&p(e,t,n,i)}function c0(){Ot.getSSRProps=({value:e})=>({value:e}),ll.getSSRProps=({value:e},t)=>{if(t.props&&kn(t.props.value,e))return{checked:!0}},al.getSSRProps=({value:e},t)=>{if(ge(e)){if(t.props&&To(e,t.props.value)>-1)return{checked:!0}}else if(Jn(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},bf.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=wf(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const u0=["ctrl","shift","alt","meta"],h0={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)=>u0.some(n=>e[`${n}Key`]&&!t.includes(n))},f0=(e,t)=>(n,...i)=>{for(let d=0;d<t.length;d++){const u=h0[t[d]];if(u&&u(n,t))return}return e(n,...i)},d0={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},p0=(e,t)=>n=>{if(!("key"in n))return;const i=xt(n.key);if(t.some(d=>d===i||d0[d]===i))return e(n)},$f={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Oi(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),Oi(e,!0),i.enter(e)):i.leave(e,()=>{Oi(e,!1)}):Oi(e,t))},beforeUnmount(e,{value:t}){Oi(e,t)}};function Oi(e,t){e.style.display=t?e._vod:"none"}function g0(){$f.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const _f=Ue({patchProp:Ky},Oy);let Qi,Oc=!1;function Cf(){return Qi||(Qi=jh(_f))}function Sf(){return Qi=Oc?Qi:Gh(_f),Oc=!0,Qi}const aa=(...e)=>{Cf().render(...e)},Af=(...e)=>{Sf().hydrate(...e)},xf=(...e)=>{const t=Cf().createApp(...e),{mount:n}=t;return t.mount=i=>{const d=kf(i);if(!d)return;const u=t._component;!Ce(u)&&!u.render&&!u.template&&(u.template=d.innerHTML),d.innerHTML="";const p=n(d,!1,d instanceof SVGElement);return d instanceof Element&&(d.removeAttribute("v-cloak"),d.setAttribute("data-v-app","")),p},t},m0=(...e)=>{const t=Sf().createApp(...e),{mount:n}=t;return t.mount=i=>{const d=kf(i);if(d)return n(d,!0,d instanceof SVGElement)},t};function kf(e){return Ge(e)?document.querySelector(e):e}let Fc=!1;const v0=()=>{Fc||(Fc=!0,c0(),g0())},y0=()=>{},b0=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:Sh,BaseTransitionPropsValidators:Ja,Comment:lt,EffectScope:Fa,Fragment:Se,KeepAlive:Rv,ReactiveEffect:Sr,Static:Vn,Suspense:yv,Teleport:my,Text:Zn,Transition:sl,TransitionGroup:i0,VueElement:Yo,assertNumber:sv,callWithAsyncErrorHandling:_t,callWithErrorHandling:en,camelize:vt,capitalize:Si,cloneVNode:Vt,compatUtils:My,compile:y0,computed:Ee,createApp:xf,createBlock:Me,createCommentVNode:we,createElementBlock:oe,createElementVNode:P,createHydrationRenderer:Gh,createPropsRestProxy:Zv,createRenderer:jh,createSSRApp:m0,createSlots:Ov,createStaticVNode:by,createTextVNode:et,createVNode:he,customRef:Va,defineAsyncComponent:kv,defineComponent:$e,defineCustomElement:uf,defineEmits:Bv,defineExpose:Wv,defineModel:zv,defineOptions:Hv,defineProps:Dv,defineSSRCustomElement:Xy,defineSlots:Uv,get devtools(){return ni},effect:wm,effectScope:Zu,getCurrentInstance:Dt,getCurrentScope:Na,getTransitionRawChildren:Uo,guardReactiveProps:Jh,h:Ei,handleError:qn,hasInjectionContext:oy,hydrate:Af,initCustomFormatter:ky,initDirectivesForSSR:v0,inject:kt,isMemoSame:lf,isProxy:Wa,isReactive:Un,isReadonly:Kn,isRef:qe,isRuntimeOnly:Sy,isShallow:sr,isVNode:Rn,markRaw:Po,mergeDefaults:Yv,mergeModels:Xv,mergeProps:qh,nextTick:zt,normalizeClass:Cr,normalizeProps:pm,normalizeStyle:_r,onActivated:xh,onBeforeMount:Rh,onBeforeUnmount:kr,onBeforeUpdate:Lh,onDeactivated:kh,onErrorCaptured:Oh,onMounted:nt,onRenderTracked:Ih,onRenderTriggered:Mh,onScopeDispose:Ju,onServerPrefetch:Th,onUnmounted:jo,onUpdated:Vo,openBlock:q,popScopeId:Ya,provide:Yi,proxyRefs:za,pushScopeId:Ka,queuePostFlushCb:Ga,reactive:ki,readonly:Fo,ref:Te,registerRuntimeCompiler:Cy,render:aa,renderList:ct,renderSlot:Fv,resolveComponent:ue,resolveDirective:Iv,resolveDynamicComponent:Mv,resolveFilter:Ty,resolveTransitionHooks:gi,setBlockTracking:ea,setDevtoolsHook:vh,setTransitionHooks:Xn,shallowReactive:Ba,shallowReadonly:Ym,shallowRef:hh,ssrContextKey:sf,ssrUtils:Ly,stop:$m,toDisplayString:Ae,toHandlerKey:Gi,toHandlers:Nv,toRaw:Ie,toRef:Yn,toRefs:ev,toValue:Qm,transformVNodeArgs:vy,triggerRef:Zm,unref:qt,useAttrs:Gv,useCssModule:Qy,useCssVars:Jy,useModel:Kv,useSSRContext:af,useSlots:jv,useTransitionState:Qa,vModelCheckbox:al,vModelDynamic:bf,vModelRadio:ll,vModelSelect:pr,vModelText:Ot,vShow:$f,version:cf,warn:ov,watch:Ye,watchEffect:$h,watchPostEffect:_h,watchSyncEffect:Sv,withAsyncContext:Qv,withCtx:dt,withDefaults:Vv,withDirectives:Tt,withKeys:p0,withMemo:Ey,withModifiers:f0,withScopeId:fv},Symbol.toStringTag,{value:"Module"}));function Nc(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?Nc(Object(n),!0).forEach(function(i){pt(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nc(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function yo(e){"@babel/helpers - typeof";return yo=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},yo(e)}function pt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w0(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 $0(e,t){if(e==null)return{};var n=w0(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}var _0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ef={exports:{}};(function(e){(function(t){var n=function(y,b,E){if(!h(b)||r(b)||l(b)||c(b)||s(b))return b;var S,C=0,$=0;if(o(b))for(S=[],$=b.length;C<$;C++)S.push(n(y,b[C],E));else{S={};for(var R in b)Object.prototype.hasOwnProperty.call(b,R)&&(S[y(R,E)]=n(y,b[R],E))}return S},i=function(y,b){b=b||{};var E=b.separator||"_",S=b.split||/(?=[A-Z])/;return y.split(S).join(E)},d=function(y){return a(y)?y:(y=y.replace(/[\-_\s]+(.)?/g,function(b,E){return E?E.toUpperCase():""}),y.substr(0,1).toLowerCase()+y.substr(1))},u=function(y){var b=d(y);return b.substr(0,1).toUpperCase()+b.substr(1)},p=function(y,b){return i(y,b).toLowerCase()},g=Object.prototype.toString,s=function(y){return typeof y=="function"},h=function(y){return y===Object(y)},o=function(y){return g.call(y)=="[object Array]"},r=function(y){return g.call(y)=="[object Date]"},l=function(y){return g.call(y)=="[object RegExp]"},c=function(y){return g.call(y)=="[object Boolean]"},a=function(y){return y=y-0,y===y},f=function(y,b){var E=b&&"process"in b?b.process:b;return typeof E!="function"?y:function(S,C){return E(S,y,C)}},m={camelize:d,decamelize:p,pascalize:u,depascalize:p,camelizeKeys:function(y,b){return n(f(d,b),y)},decamelizeKeys:function(y,b){return n(f(p,b),y,b)},pascalizeKeys:function(y,b){return n(f(u,b),y)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=m:t.humps=m})(_0)})(Ef);var C0=Ef.exports,S0=["class","style"];function A0(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var i=n.indexOf(":"),d=C0.camelize(n.slice(0,i)),u=n.slice(i+1).trim();return t[d]=u,t},{})}function x0(e){return e.split(/\s+/).reduce(function(t,n){return t[n]=!0,t},{})}function Rf(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 Rf(s)}),d=Object.keys(e.attributes||{}).reduce(function(s,h){var o=e.attributes[h];switch(h){case"class":s.class=x0(o);break;case"style":s.style=A0(o);break;default:s.attrs[h]=o}return s},{attrs:{},class:{},style:{}});n.class;var u=n.style,p=u===void 0?{}:u,g=$0(n,S0);return Ei(e.tag,Qt(Qt(Qt({},t),{},{class:d.class,style:Qt(Qt({},d.style),p)},d.attrs),g),i)}var Lf=!1;try{Lf=!0}catch{}function k0(){if(!Lf&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function $s(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?pt({},e,t):{}}function E0(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 Pc(e){if(e&&yo(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Us.icon)return Us.icon(e);if(e===null)return null;if(yo(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 R0=$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},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},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 Pc(t.icon)}),u=Ee(function(){return $s("classes",E0(t))}),p=Ee(function(){return $s("transform",typeof t.transform=="string"?Us.transform(t.transform):t.transform)}),g=Ee(function(){return $s("mask",Pc(t.mask))}),s=Ee(function(){return Wg(d.value,Qt(Qt(Qt(Qt({},u.value),p.value),g.value),{},{symbol:t.symbol,title:t.title}))});Ye(s,function(o){if(!o)return k0("Could not find one or more icon(s)",d.value,g.value)},{immediate:!0});var h=Ee(function(){return s.value?Rf(s.value.abstract[0],{},i):null});return function(){return h.value}}});const L0=$e({name:"NavbarItem"});const xe=(e,t)=>{const n=e.__vccOpts||e;for(const[i,d]of t)n[i]=d;return n},Xo=e=>(Ka("data-v-19d4e9a4"),e=e(),Ya(),e),T0={role:"navigation","aria-label":"main navigation",class:"navbar is-fixed-top"},M0=Xo(()=>P("div",{class:"navbar-brand"},[P("a",{class:"navbar-item"},[P("h1",{class:"title"},"Mihari")]),P("a",{role:"button","aria-label":"menu",class:"navbar-burger burger"},[P("span",{"aria-hidden":"true"}),P("span",{"aria-hidden":"true"}),P("span",{"aria-hidden":"true"})])],-1)),I0={class:"navbar-menu"},O0=Xo(()=>P("div",{class:"navbar-start"},null,-1)),F0={class:"navbar-end"},N0=Xo(()=>P("a",{class:"navbar-item"},[P("a",{href:"/redoc-static.html",target:"_blank",class:"navbar-item"},"API")],-1)),P0=Xo(()=>P("a",{class:"navbar-item"},[P("a",{href:"https://github.com/ninoseki/mihari",target:"_blank",class:"navbar-item"},"GitHub")],-1));function D0(e,t,n,i,d,u){const p=ue("router-link");return q(),oe("nav",T0,[M0,P("div",I0,[O0,P("div",F0,[he(p,{class:"navbar-item",to:{name:"Alerts"}},{default:dt(()=>[et("Alerts")]),_:1}),he(p,{class:"navbar-item",to:{name:"NewRule"}},{default:dt(()=>[et("New rule")]),_:1}),he(p,{class:"navbar-item",to:{name:"Rules"}},{default:dt(()=>[et("Rules")]),_:1}),he(p,{class:"navbar-item",to:{name:"Configs"}},{default:dt(()=>[et("Configs")]),_:1}),N0,P0])])])}const B0=xe(L0,[["render",D0],["__scopeId","data-v-19d4e9a4"]]),W0=$e({name:"App",components:{Navbar:B0}});const H0={class:"section is-medium"},U0={class:"container"};function z0(e,t,n,i,d,u){const p=ue("Navbar"),g=ue("router-view");return q(),oe(Se,null,[he(p),P("section",H0,[P("div",U0,[he(g)])])],64)}const V0=xe(W0,[["render",z0]]);/*!
759
+ }`;function Mu(){var e=Au,t=xu,n=ye.cssPrefix,i=ye.replacementClass,p=Np;if(n!==e||i!==t){var u=new RegExp("\\.".concat(e,"\\-"),"g"),f=new RegExp("\\--".concat(e,"\\-"),"g"),g=new RegExp("\\.".concat(t),"g");p=p.replace(u,".".concat(n,"-")).replace(f,"--".concat(n,"-")).replace(g,".".concat(i))}return p}var Il=!1;function ls(){ye.autoAddCss&&!Il&&(Tp(Mu()),Il=!0)}var Pp={mixout:function(){return{dom:{css:Mu,insertCss:ls}}},hooks:function(){return{beforeDOMElementCreation:function(){ls()},beforeI2svg:function(){ls()}}}},rn=Sn||{};rn[nn]||(rn[nn]={});rn[nn].styles||(rn[nn].styles={});rn[nn].hooks||(rn[nn].hooks={});rn[nn].shims||(rn[nn].shims=[]);var It=rn[nn],Iu=[],Dp=function e(){je.removeEventListener("DOMContentLoaded",e),so=1,Iu.map(function(t){return t()})},so=!1;an&&(so=(je.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(je.readyState),so||je.addEventListener("DOMContentLoaded",Dp));function Bp(e){an&&(so?setTimeout(e,0):Iu.push(e))}function wr(e){var t=e.tag,n=e.attributes,i=n===void 0?{}:n,p=e.children,u=p===void 0?[]:p;return typeof e=="string"?Tu(e):"<".concat(t," ").concat(Ip(i),">").concat(u.map(wr).join(""),"</").concat(t,">")}function Ol(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Wp=function(t,n){return function(i,p,u,f){return t.call(n,i,p,u,f)}},cs=function(t,n,i,p){var u=Object.keys(t),f=u.length,g=p!==void 0?Wp(n,p):n,s,h,o;for(i===void 0?(s=1,o=t[u[0]]):(s=0,o=i);s<f;s++)h=u[s],o=g(o,t[h],h,t);return o};function Hp(e){for(var t=[],n=0,i=e.length;n<i;){var p=e.charCodeAt(n++);if(p>=55296&&p<=56319&&n<i){var u=e.charCodeAt(n++);(u&64512)==56320?t.push(((p&1023)<<10)+(u&1023)+65536):(t.push(p),n--)}else t.push(p)}return t}function Is(e){var t=Hp(e);return t.length===1?t[0].toString(16):null}function Up(e,t){var n=e.length,i=e.charCodeAt(t),p;return i>=55296&&i<=56319&&n>t+1&&(p=e.charCodeAt(t+1),p>=56320&&p<=57343)?(i-55296)*1024+p-56320+65536:i}function Fl(e){return Object.keys(e).reduce(function(t,n){var i=e[n],p=!!i.icon;return p?t[i.iconName]=i.icon:t[n]=i,t},{})}function Os(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=n.skipHooks,p=i===void 0?!1:i,u=Fl(t);typeof It.hooks.addPack=="function"&&!p?It.hooks.addPack(e,Fl(t)):It.styles[e]=pe(pe({},It.styles[e]||{}),u),e==="fas"&&Os("fa",t)}var Nr,Pr,Dr,ri=It.styles,zp=It.shims,Vp=(Nr={},tt(Nr,Ve,Object.values(nr[Ve])),tt(Nr,Xe,Object.values(nr[Xe])),Nr),Aa=null,Ou={},Fu={},Nu={},Pu={},Du={},jp=(Pr={},tt(Pr,Ve,Object.keys(er[Ve])),tt(Pr,Xe,Object.keys(er[Xe])),Pr);function Gp(e){return~xp.indexOf(e)}function Kp(e,t){var n=t.split("-"),i=n[0],p=n.slice(1).join("-");return i===e&&p!==""&&!Gp(p)?p:null}var Bu=function(){var t=function(u){return cs(ri,function(f,g,s){return f[s]=cs(g,u,{}),f},{})};Ou=t(function(p,u,f){if(u[3]&&(p[u[3]]=f),u[2]){var g=u[2].filter(function(s){return typeof s=="number"});g.forEach(function(s){p[s.toString(16)]=f})}return p}),Fu=t(function(p,u,f){if(p[f]=f,u[2]){var g=u[2].filter(function(s){return typeof s=="string"});g.forEach(function(s){p[s]=f})}return p}),Du=t(function(p,u,f){var g=u[2];return p[f]=f,g.forEach(function(s){p[s]=f}),p});var n="far"in ri||ye.autoFetchSvg,i=cs(zp,function(p,u){var f=u[0],g=u[1],s=u[2];return g==="far"&&!n&&(g="fas"),typeof f=="string"&&(p.names[f]={prefix:g,iconName:s}),typeof f=="number"&&(p.unicodes[f.toString(16)]={prefix:g,iconName:s}),p},{names:{},unicodes:{}});Nu=i.names,Pu=i.unicodes,Aa=Ao(ye.styleDefault,{family:ye.familyDefault})};Lp(function(e){Aa=Ao(e.styleDefault,{family:ye.familyDefault})});Bu();function xa(e,t){return(Ou[e]||{})[t]}function Yp(e,t){return(Fu[e]||{})[t]}function Bn(e,t){return(Du[e]||{})[t]}function Wu(e){return Nu[e]||{prefix:null,iconName:null}}function Xp(e){var t=Pu[e],n=xa("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function An(){return Aa}var ka=function(){return{prefix:null,iconName:null,rest:[]}};function Ao(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,i=n===void 0?Ve:n,p=er[i][e],u=tr[i][e]||tr[i][p],f=e in It.styles?e:null;return u||f||null}var Nl=(Dr={},tt(Dr,Ve,Object.keys(nr[Ve])),tt(Dr,Xe,Object.keys(nr[Xe])),Dr);function xo(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.skipLookups,p=i===void 0?!1:i,u=(t={},tt(t,Ve,"".concat(ye.cssPrefix,"-").concat(Ve)),tt(t,Xe,"".concat(ye.cssPrefix,"-").concat(Xe)),t),f=null,g=Ve;(e.includes(u[Ve])||e.some(function(h){return Nl[Ve].includes(h)}))&&(g=Ve),(e.includes(u[Xe])||e.some(function(h){return Nl[Xe].includes(h)}))&&(g=Xe);var s=e.reduce(function(h,o){var r=Kp(ye.cssPrefix,o);if(ri[o]?(o=Vp[g].includes(o)?wp[g][o]:o,f=o,h.prefix=o):jp[g].indexOf(o)>-1?(f=o,h.prefix=Ao(o,{family:g})):r?h.iconName=r:o!==ye.replacementClass&&o!==u[Ve]&&o!==u[Xe]&&h.rest.push(o),!p&&h.prefix&&h.iconName){var l=f==="fa"?Wu(h.iconName):{},c=Bn(h.prefix,h.iconName);l.prefix&&(f=null),h.iconName=l.iconName||c||h.iconName,h.prefix=l.prefix||h.prefix,h.prefix==="far"&&!ri.far&&ri.fas&&!ye.autoFetchSvg&&(h.prefix="fas")}return h},ka());return(e.includes("fa-brands")||e.includes("fab"))&&(s.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(s.prefix="fad"),!s.prefix&&g===Xe&&(ri.fass||ye.autoFetchSvg)&&(s.prefix="fass",s.iconName=Bn(s.prefix,s.iconName)||s.iconName),(s.prefix==="fa"||f==="fa")&&(s.prefix=An()||"fas"),s}var Zp=function(){function e(){lp(this,e),this.definitions={}}return cp(e,[{key:"add",value:function(){for(var n=this,i=arguments.length,p=new Array(i),u=0;u<i;u++)p[u]=arguments[u];var f=p.reduce(this._pullDefinitions,{});Object.keys(f).forEach(function(g){n.definitions[g]=pe(pe({},n.definitions[g]||{}),f[g]),Os(g,f[g]);var s=nr[Ve][g];s&&Os(s,f[g]),Bu()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(n,i){var p=i.prefix&&i.iconName&&i.icon?{0:i}:i;return Object.keys(p).map(function(u){var f=p[u],g=f.prefix,s=f.iconName,h=f.icon,o=h[2];n[g]||(n[g]={}),o.length>0&&o.forEach(function(r){typeof r=="string"&&(n[g][r]=h)}),n[g][s]=h}),n}}]),e}(),Pl=[],oi={},ai={},Qp=Object.keys(ai);function Jp(e,t){var n=t.mixoutsTo;return Pl=e,oi={},Object.keys(ai).forEach(function(i){Qp.indexOf(i)===-1&&delete ai[i]}),Pl.forEach(function(i){var p=i.mixout?i.mixout():{};if(Object.keys(p).forEach(function(f){typeof p[f]=="function"&&(n[f]=p[f]),oo(p[f])==="object"&&Object.keys(p[f]).forEach(function(g){n[f]||(n[f]={}),n[f][g]=p[f][g]})}),i.hooks){var u=i.hooks();Object.keys(u).forEach(function(f){oi[f]||(oi[f]=[]),oi[f].push(u[f])})}i.provides&&i.provides(ai)}),n}function Fs(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),p=2;p<n;p++)i[p-2]=arguments[p];var u=oi[e]||[];return u.forEach(function(f){t=f.apply(null,[t].concat(i))}),t}function Gn(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 p=oi[e]||[];p.forEach(function(u){u.apply(null,n)})}function on(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return ai[e]?ai[e].apply(null,t):void 0}function Ns(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,n=e.prefix||An();if(t)return t=Bn(n,t)||t,Ol(Hu.definitions,n,t)||Ol(It.styles,n,t)}var Hu=new Zp,qp=function(){ye.autoReplaceSvg=!1,ye.observeMutations=!1,Gn("noAuto")},eg={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return an?(Gn("beforeI2svg",t),on("pseudoElements2svg",t),on("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,Bp(function(){ng({autoReplaceSvgRoot:n}),Gn("watch",t)})}},tg={icon:function(t){if(t===null)return null;if(oo(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Bn(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=Ao(t[0]);return{prefix:i,iconName:Bn(i,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(ye.cssPrefix,"-"))>-1||t.match($p))){var p=xo(t.split(" "),{skipLookups:!0});return{prefix:p.prefix||An(),iconName:Bn(p.prefix,p.iconName)||p.iconName}}if(typeof t=="string"){var u=An();return{prefix:u,iconName:Bn(u,t)||t}}}},Ct={noAuto:qp,config:ye,dom:eg,parse:tg,library:Hu,findIconDefinition:Ns,toHtml:wr},ng=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,i=n===void 0?je:n;(Object.keys(It.styles).length>0||ye.autoFetchSvg)&&an&&ye.autoReplaceSvg&&Ct.dom.i2svg({node:i})};function ko(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(i){return wr(i)})}}),Object.defineProperty(e,"node",{get:function(){if(an){var i=je.createElement("div");return i.innerHTML=e.html,i.children}}}),e}function ig(e){var t=e.children,n=e.main,i=e.mask,p=e.attributes,u=e.styles,f=e.transform;if(Sa(f)&&n.found&&!i.found){var g=n.width,s=n.height,h={x:g/s/2,y:.5};p.style=So(pe(pe({},u),{},{"transform-origin":"".concat(h.x+f.x/16,"em ").concat(h.y+f.y/16,"em")}))}return[{tag:"svg",attributes:p,children:t}]}function rg(e){var t=e.prefix,n=e.iconName,i=e.children,p=e.attributes,u=e.symbol,f=u===!0?"".concat(t,"-").concat(ye.cssPrefix,"-").concat(n):u;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:pe(pe({},p),{},{id:f}),children:i}]}]}function Ea(e){var t=e.icons,n=t.main,i=t.mask,p=e.prefix,u=e.iconName,f=e.transform,g=e.symbol,s=e.title,h=e.maskId,o=e.titleId,r=e.extra,l=e.watchable,c=l===void 0?!1:l,a=i.found?i:n,d=a.width,m=a.height,y=p==="fak",b=[ye.replacementClass,u?"".concat(ye.cssPrefix,"-").concat(u):""].filter(function(k){return r.classes.indexOf(k)===-1}).filter(function(k){return k!==""||!!k}).concat(r.classes).join(" "),E={children:[],attributes:pe(pe({},r.attributes),{},{"data-prefix":p,"data-icon":u,class:b,role:r.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(d," ").concat(m)})},S=y&&!~r.classes.indexOf("fa-fw")?{width:"".concat(d/m*16*.0625,"em")}:{};c&&(E.attributes[jn]=""),s&&(E.children.push({tag:"title",attributes:{id:E.attributes["aria-labelledby"]||"title-".concat(o||rr())},children:[s]}),delete E.attributes.title);var C=pe(pe({},E),{},{prefix:p,iconName:u,main:n,mask:i,maskId:h,transform:f,symbol:g,styles:pe(pe({},S),r.styles)}),$=i.found&&n.found?on("generateAbstractMask",C)||{children:[],attributes:{}}:on("generateAbstractIcon",C)||{children:[],attributes:{}},R=$.children,x=$.attributes;return C.children=R,C.attributes=x,g?rg(C):ig(C)}function Dl(e){var t=e.content,n=e.width,i=e.height,p=e.transform,u=e.title,f=e.extra,g=e.watchable,s=g===void 0?!1:g,h=pe(pe(pe({},f.attributes),u?{title:u}:{}),{},{class:f.classes.join(" ")});s&&(h[jn]="");var o=pe({},f.styles);Sa(p)&&(o.transform=Fp({transform:p,startCentered:!0,width:n,height:i}),o["-webkit-transform"]=o.transform);var r=So(o);r.length>0&&(h.style=r);var l=[];return l.push({tag:"span",attributes:h,children:[t]}),u&&l.push({tag:"span",attributes:{class:"sr-only"},children:[u]}),l}function og(e){var t=e.content,n=e.title,i=e.extra,p=pe(pe(pe({},i.attributes),n?{title:n}:{}),{},{class:i.classes.join(" ")}),u=So(i.styles);u.length>0&&(p.style=u);var f=[];return f.push({tag:"span",attributes:p,children:[t]}),n&&f.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),f}var us=It.styles;function Ps(e){var t=e[0],n=e[1],i=e.slice(4),p=ya(i,1),u=p[0],f=null;return Array.isArray(u)?f={tag:"g",attributes:{class:"".concat(ye.cssPrefix,"-").concat(Dn.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ye.cssPrefix,"-").concat(Dn.SECONDARY),fill:"currentColor",d:u[0]}},{tag:"path",attributes:{class:"".concat(ye.cssPrefix,"-").concat(Dn.PRIMARY),fill:"currentColor",d:u[1]}}]}:f={tag:"path",attributes:{fill:"currentColor",d:u}},{found:!0,width:t,height:n,icon:f}}var sg={found:!1,width:512,height:512};function ag(e,t){!ku&&!ye.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Ds(e,t){var n=t;return t==="fa"&&ye.styleDefault!==null&&(t=An()),new Promise(function(i,p){if(on("missingIconAbstract"),n==="fa"){var u=Wu(e)||{};e=u.iconName||e,t=u.prefix||t}if(e&&t&&us[t]&&us[t][e]){var f=us[t][e];return i(Ps(f))}ag(e,t),i(pe(pe({},sg),{},{icon:ye.showMissingIcons&&e?on("missingIconAbstract")||{}:{}}))})}var Bl=function(){},Bs=ye.measurePerformance&&Lr&&Lr.mark&&Lr.measure?Lr:{mark:Bl,measure:Bl},Di='FA "6.4.2"',lg=function(t){return Bs.mark("".concat(Di," ").concat(t," begins")),function(){return Uu(t)}},Uu=function(t){Bs.mark("".concat(Di," ").concat(t," ends")),Bs.measure("".concat(Di," ").concat(t),"".concat(Di," ").concat(t," begins"),"".concat(Di," ").concat(t," ends"))},Ra={begin:lg,end:Uu},Qr=function(){};function Wl(e){var t=e.getAttribute?e.getAttribute(jn):null;return typeof t=="string"}function cg(e){var t=e.getAttribute?e.getAttribute(wa):null,n=e.getAttribute?e.getAttribute($a):null;return t&&n}function ug(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(ye.replacementClass)}function hg(){if(ye.autoReplaceSvg===!0)return Jr.replace;var e=Jr[ye.autoReplaceSvg];return e||Jr.replace}function fg(e){return je.createElementNS("http://www.w3.org/2000/svg",e)}function dg(e){return je.createElement(e)}function zu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,i=n===void 0?e.tag==="svg"?fg:dg:n;if(typeof e=="string")return je.createTextNode(e);var p=i(e.tag);Object.keys(e.attributes||[]).forEach(function(f){p.setAttribute(f,e.attributes[f])});var u=e.children||[];return u.forEach(function(f){p.appendChild(zu(f,{ceFn:i}))}),p}function pg(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var Jr={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(p){n.parentNode.insertBefore(zu(p),n)}),n.getAttribute(jn)===null&&ye.keepOriginalSource){var i=je.createComment(pg(n));n.parentNode.replaceChild(i,n)}else n.remove()},nest:function(t){var n=t[0],i=t[1];if(~Ca(n).indexOf(ye.replacementClass))return Jr.replace(t);var p=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(p)?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 f=i.map(function(g){return wr(g)}).join(`
760
+ `);n.setAttribute(jn,""),n.innerHTML=f}};function Hl(e){e()}function Vu(e,t){var n=typeof t=="function"?t:Qr;if(e.length===0)n();else{var i=Hl;ye.mutateApproach===yp&&(i=Sn.requestAnimationFrame||Hl),i(function(){var p=hg(),u=Ra.begin("mutate");e.map(p),u(),n()})}}var La=!1;function ju(){La=!0}function Ws(){La=!1}var ao=null;function Ul(e){if(Tl&&ye.observeMutations){var t=e.treeCallback,n=t===void 0?Qr:t,i=e.nodeCallback,p=i===void 0?Qr:i,u=e.pseudoElementsCallback,f=u===void 0?Qr:u,g=e.observeMutationsRoot,s=g===void 0?je:g;ao=new Tl(function(h){if(!La){var o=An();_i(h).forEach(function(r){if(r.type==="childList"&&r.addedNodes.length>0&&!Wl(r.addedNodes[0])&&(ye.searchPseudoElements&&f(r.target),n(r.target)),r.type==="attributes"&&r.target.parentNode&&ye.searchPseudoElements&&f(r.target.parentNode),r.type==="attributes"&&Wl(r.target)&&~Ap.indexOf(r.attributeName))if(r.attributeName==="class"&&cg(r.target)){var l=xo(Ca(r.target)),c=l.prefix,a=l.iconName;r.target.setAttribute(wa,c||o),a&&r.target.setAttribute($a,a)}else ug(r.target)&&p(r.target)})}}),an&&ao.observe(s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function gg(){ao&&ao.disconnect()}function mg(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(i,p){var u=p.split(":"),f=u[0],g=u.slice(1);return f&&g.length>0&&(i[f]=g.join(":").trim()),i},{})),n}function vg(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),i=e.innerText!==void 0?e.innerText.trim():"",p=xo(Ca(e));return p.prefix||(p.prefix=An()),t&&n&&(p.prefix=t,p.iconName=n),p.iconName&&p.prefix||(p.prefix&&i.length>0&&(p.iconName=Yp(p.prefix,e.innerText)||xa(p.prefix,Is(e.innerText))),!p.iconName&&ye.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(p.iconName=e.firstChild.data)),p}function yg(e){var t=_i(e.attributes).reduce(function(p,u){return p.name!=="class"&&p.name!=="style"&&(p[u.name]=u.value),p},{}),n=e.getAttribute("title"),i=e.getAttribute("data-fa-title-id");return ye.autoA11y&&(n?t["aria-labelledby"]="".concat(ye.replacementClass,"-title-").concat(i||rr()):(t["aria-hidden"]="true",t.focusable="false")),t}function bg(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Wt,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function zl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=vg(e),i=n.iconName,p=n.prefix,u=n.rest,f=yg(e),g=Fs("parseNodeAttributes",{},e),s=t.styleParser?mg(e):[];return pe({iconName:i,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:p,transform:Wt,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:u,styles:s,attributes:f}},g)}var wg=It.styles;function Gu(e){var t=ye.autoReplaceSvg==="nest"?zl(e,{styleParser:!1}):zl(e);return~t.extra.classes.indexOf(Eu)?on("generateLayersText",e,t):on("generateSvgReplacementMutation",e,t)}var xn=new Set;_a.map(function(e){xn.add("fa-".concat(e))});Object.keys(er[Ve]).map(xn.add.bind(xn));Object.keys(er[Xe]).map(xn.add.bind(xn));xn=yr(xn);function Vl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!an)return Promise.resolve();var n=je.documentElement.classList,i=function(r){return n.add("".concat(Ml,"-").concat(r))},p=function(r){return n.remove("".concat(Ml,"-").concat(r))},u=ye.autoFetchSvg?xn:_a.map(function(o){return"fa-".concat(o)}).concat(Object.keys(wg));u.includes("fa")||u.push("fa");var f=[".".concat(Eu,":not([").concat(jn,"])")].concat(u.map(function(o){return".".concat(o,":not([").concat(jn,"])")})).join(", ");if(f.length===0)return Promise.resolve();var g=[];try{g=_i(e.querySelectorAll(f))}catch{}if(g.length>0)i("pending"),p("complete");else return Promise.resolve();var s=Ra.begin("onTree"),h=g.reduce(function(o,r){try{var l=Gu(r);l&&o.push(l)}catch(c){ku||c.name==="MissingIcon"&&console.error(c)}return o},[]);return new Promise(function(o,r){Promise.all(h).then(function(l){Vu(l,function(){i("active"),i("complete"),p("pending"),typeof t=="function"&&t(),s(),o()})}).catch(function(l){s(),r(l)})})}function $g(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Gu(e).then(function(n){n&&Vu([n],t)})}function _g(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=(t||{}).icon?t:Ns(t||{}),p=n.mask;return p&&(p=(p||{}).icon?p:Ns(p||{})),e(i,pe(pe({},n),{},{mask:p}))}}var Cg=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.transform,p=i===void 0?Wt:i,u=n.symbol,f=u===void 0?!1:u,g=n.mask,s=g===void 0?null:g,h=n.maskId,o=h===void 0?null:h,r=n.title,l=r===void 0?null:r,c=n.titleId,a=c===void 0?null:c,d=n.classes,m=d===void 0?[]:d,y=n.attributes,b=y===void 0?{}:y,E=n.styles,S=E===void 0?{}:E;if(t){var C=t.prefix,$=t.iconName,R=t.icon;return ko(pe({type:"icon"},t),function(){return Gn("beforeDOMElementCreation",{iconDefinition:t,params:n}),ye.autoA11y&&(l?b["aria-labelledby"]="".concat(ye.replacementClass,"-title-").concat(a||rr()):(b["aria-hidden"]="true",b.focusable="false")),Ea({icons:{main:Ps(R),mask:s?Ps(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:C,iconName:$,transform:pe(pe({},Wt),p),symbol:f,title:l,maskId:o,titleId:a,extra:{attributes:b,styles:S,classes:m}})})}},Sg={mixout:function(){return{icon:_g(Cg)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=Vl,n.nodeCallback=$g,n}}},provides:function(t){t.i2svg=function(n){var i=n.node,p=i===void 0?je:i,u=n.callback,f=u===void 0?function(){}:u;return Vl(p,f)},t.generateSvgReplacementMutation=function(n,i){var p=i.iconName,u=i.title,f=i.titleId,g=i.prefix,s=i.transform,h=i.symbol,o=i.mask,r=i.maskId,l=i.extra;return new Promise(function(c,a){Promise.all([Ds(p,g),o.iconName?Ds(o.iconName,o.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(d){var m=ya(d,2),y=m[0],b=m[1];c([n,Ea({icons:{main:y,mask:b},prefix:g,iconName:p,transform:s,symbol:h,maskId:r,title:u,titleId:f,extra:l,watchable:!0})])}).catch(a)})},t.generateAbstractIcon=function(n){var i=n.children,p=n.attributes,u=n.main,f=n.transform,g=n.styles,s=So(g);s.length>0&&(p.style=s);var h;return Sa(f)&&(h=on("generateAbstractTransformGrouping",{main:u,transform:f,containerWidth:u.width,iconWidth:u.width})),i.push(h||u.icon),{children:i,attributes:p}}}},Ag={mixout:function(){return{layer:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=i.classes,u=p===void 0?[]:p;return ko({type:"layer"},function(){Gn("beforeDOMElementCreation",{assembler:n,params:i});var f=[];return n(function(g){Array.isArray(g)?g.map(function(s){f=f.concat(s.abstract)}):f=f.concat(g.abstract)}),[{tag:"span",attributes:{class:["".concat(ye.cssPrefix,"-layers")].concat(yr(u)).join(" ")},children:f}]})}}}},xg={mixout:function(){return{counter:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=i.title,u=p===void 0?null:p,f=i.classes,g=f===void 0?[]:f,s=i.attributes,h=s===void 0?{}:s,o=i.styles,r=o===void 0?{}:o;return ko({type:"counter",content:n},function(){return Gn("beforeDOMElementCreation",{content:n,params:i}),og({content:n.toString(),title:u,extra:{attributes:h,styles:r,classes:["".concat(ye.cssPrefix,"-layers-counter")].concat(yr(g))}})})}}}},kg={mixout:function(){return{text:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=i.transform,u=p===void 0?Wt:p,f=i.title,g=f===void 0?null:f,s=i.classes,h=s===void 0?[]:s,o=i.attributes,r=o===void 0?{}:o,l=i.styles,c=l===void 0?{}:l;return ko({type:"text",content:n},function(){return Gn("beforeDOMElementCreation",{content:n,params:i}),Dl({content:n,transform:pe(pe({},Wt),u),title:g,extra:{attributes:r,styles:c,classes:["".concat(ye.cssPrefix,"-layers-text")].concat(yr(h))}})})}}},provides:function(t){t.generateLayersText=function(n,i){var p=i.title,u=i.transform,f=i.extra,g=null,s=null;if(Su){var h=parseInt(getComputedStyle(n).fontSize,10),o=n.getBoundingClientRect();g=o.width/h,s=o.height/h}return ye.autoA11y&&!p&&(f.attributes["aria-hidden"]="true"),Promise.resolve([n,Dl({content:n.innerHTML,width:g,height:s,transform:u,title:p,extra:f,watchable:!0})])}}},Eg=new RegExp('"',"ug"),jl=[1105920,1112319];function Rg(e){var t=e.replace(Eg,""),n=Up(t,0),i=n>=jl[0]&&n<=jl[1],p=t.length===2?t[0]===t[1]:!1;return{value:Is(p?t[0]:t),isSecondary:i||p}}function Gl(e,t){var n="".concat(vp).concat(t.replace(":","-"));return new Promise(function(i,p){if(e.getAttribute(n)!==null)return i();var u=_i(e.children),f=u.filter(function(R){return R.getAttribute(Ms)===t})[0],g=Sn.getComputedStyle(e,t),s=g.getPropertyValue("font-family").match(_p),h=g.getPropertyValue("font-weight"),o=g.getPropertyValue("content");if(f&&!s)return e.removeChild(f),i();if(s&&o!=="none"&&o!==""){var r=g.getPropertyValue("content"),l=~["Sharp"].indexOf(s[2])?Xe:Ve,c=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(s[2])?tr[l][s[2].toLowerCase()]:Cp[l][h],a=Rg(r),d=a.value,m=a.isSecondary,y=s[0].startsWith("FontAwesome"),b=xa(c,d),E=b;if(y){var S=Xp(d);S.iconName&&S.prefix&&(b=S.iconName,c=S.prefix)}if(b&&!m&&(!f||f.getAttribute(wa)!==c||f.getAttribute($a)!==E)){e.setAttribute(n,E),f&&e.removeChild(f);var C=bg(),$=C.extra;$.attributes[Ms]=t,Ds(b,c).then(function(R){var x=Ea(pe(pe({},C),{},{icons:{main:R,mask:ka()},prefix:c,iconName:E,extra:$,watchable:!0})),k=je.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(k,e.firstChild):e.appendChild(k),k.outerHTML=x.map(function(_){return wr(_)}).join(`
761
+ `),e.removeAttribute(n),i()}).catch(p)}else i()}else i()})}function Lg(e){return Promise.all([Gl(e,"::before"),Gl(e,"::after")])}function Tg(e){return e.parentNode!==document.head&&!~bp.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Ms)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Kl(e){if(an)return new Promise(function(t,n){var i=_i(e.querySelectorAll("*")).filter(Tg).map(Lg),p=Ra.begin("searchPseudoElements");ju(),Promise.all(i).then(function(){p(),Ws(),t()}).catch(function(){p(),Ws(),n()})})}var Mg={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=Kl,n}}},provides:function(t){t.pseudoElements2svg=function(n){var i=n.node,p=i===void 0?je:i;ye.searchPseudoElements&&Kl(p)}}},Yl=!1,Ig={mixout:function(){return{dom:{unwatch:function(){ju(),Yl=!0}}}},hooks:function(){return{bootstrap:function(){Ul(Fs("mutationObserverCallbacks",{}))},noAuto:function(){gg()},watch:function(n){var i=n.observeMutationsRoot;Yl?Ws():Ul(Fs("mutationObserverCallbacks",{observeMutationsRoot:i}))}}}},Xl=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(i,p){var u=p.toLowerCase().split("-"),f=u[0],g=u.slice(1).join("-");if(f&&g==="h")return i.flipX=!0,i;if(f&&g==="v")return i.flipY=!0,i;if(g=parseFloat(g),isNaN(g))return i;switch(f){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)},Og={mixout:function(){return{parse:{transform:function(n){return Xl(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,i){var p=i.getAttribute("data-fa-transform");return p&&(n.transform=Xl(p)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var i=n.main,p=n.transform,u=n.containerWidth,f=n.iconWidth,g={transform:"translate(".concat(u/2," 256)")},s="translate(".concat(p.x*32,", ").concat(p.y*32,") "),h="scale(".concat(p.size/16*(p.flipX?-1:1),", ").concat(p.size/16*(p.flipY?-1:1),") "),o="rotate(".concat(p.rotate," 0 0)"),r={transform:"".concat(s," ").concat(h," ").concat(o)},l={transform:"translate(".concat(f/2*-1," -256)")},c={outer:g,inner:r,path:l};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)}]}]}}}},hs={x:0,y:0,width:"100%",height:"100%"};function Zl(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 Fg(e){return e.tag==="g"?e.children:[e]}var Ng={hooks:function(){return{parseNodeAttributes:function(n,i){var p=i.getAttribute("data-fa-mask"),u=p?xo(p.split(" ").map(function(f){return f.trim()})):ka();return u.prefix||(u.prefix=An()),n.mask=u,n.maskId=i.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var i=n.children,p=n.attributes,u=n.main,f=n.mask,g=n.maskId,s=n.transform,h=u.width,o=u.icon,r=f.width,l=f.icon,c=Op({transform:s,containerWidth:r,iconWidth:h}),a={tag:"rect",attributes:pe(pe({},hs),{},{fill:"white"})},d=o.children?{children:o.children.map(Zl)}:{},m={tag:"g",attributes:pe({},c.inner),children:[Zl(pe({tag:o.tag,attributes:pe(pe({},o.attributes),c.path)},d))]},y={tag:"g",attributes:pe({},c.outer),children:[m]},b="mask-".concat(g||rr()),E="clip-".concat(g||rr()),S={tag:"mask",attributes:pe(pe({},hs),{},{id:b,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[a,y]},C={tag:"defs",children:[{tag:"clipPath",attributes:{id:E},children:Fg(l)},S]};return i.push(C,{tag:"rect",attributes:pe({fill:"currentColor","clip-path":"url(#".concat(E,")"),mask:"url(#".concat(b,")")},hs)}),{children:i,attributes:p}}}},Pg={provides:function(t){var n=!1;Sn.matchMedia&&(n=Sn.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var i=[],p={fill:"currentColor"},u={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};i.push({tag:"path",attributes:pe(pe({},p),{},{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 f=pe(pe({},u),{},{attributeName:"opacity"}),g={tag:"circle",attributes:pe(pe({},p),{},{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({},f),{},{values:"1;0;1;1;0;1;"})}),i.push(g),i.push({tag:"path",attributes:pe(pe({},p),{},{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({},f),{},{values:"1;0;0;0;0;1;"})}]}),n||i.push({tag:"path",attributes:pe(pe({},p),{},{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({},f),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:i}}}},Dg={hooks:function(){return{parseNodeAttributes:function(n,i){var p=i.getAttribute("data-fa-symbol"),u=p===null?!1:p===""?!0:p;return n.symbol=u,n}}}},Bg=[Pp,Sg,Ag,xg,kg,Mg,Ig,Og,Ng,Pg,Dg];Jp(Bg,{mixoutsTo:Ct});Ct.noAuto;Ct.config;var Wg=Ct.library;Ct.dom;var Hs=Ct.parse;Ct.findIconDefinition;Ct.toHtml;var Hg=Ct.icon;Ct.layer;Ct.text;Ct.counter;var Ug={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"]},zg={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"]},Vg=zg,jg={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"]},Gg={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"]},Kg=Gg,Yg={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"]},Xg=Yg,Zg={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"]},Qg={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"]},Jg=Qg,qg={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"]},em={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"]},tm={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"]};function Eo(e,t){const n=Object.create(null),i=e.split(",");for(let p=0;p<i.length;p++)n[i[p]]=!0;return t?p=>!!n[p.toLowerCase()]:p=>!!n[p]}const Be={},li=[],Ft=()=>{},nm=()=>!1,im=/^on[^a-z]/,$r=e=>im.test(e),Ta=e=>e.startsWith("onUpdate:"),Ue=Object.assign,Ma=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},rm=Object.prototype.hasOwnProperty,Fe=(e,t)=>rm.call(e,t),ge=Array.isArray,ci=e=>Ci(e)==="[object Map]",Jn=e=>Ci(e)==="[object Set]",Ql=e=>Ci(e)==="[object Date]",om=e=>Ci(e)==="[object RegExp]",Ce=e=>typeof e=="function",Ge=e=>typeof e=="string",or=e=>typeof e=="symbol",We=e=>e!==null&&typeof e=="object",Ia=e=>We(e)&&Ce(e.then)&&Ce(e.catch),Ku=Object.prototype.toString,Ci=e=>Ku.call(e),sm=e=>Ci(e).slice(8,-1),Yu=e=>Ci(e)==="[object Object]",Oa=e=>Ge(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ji=Eo(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ro=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},am=/-(\w)/g,vt=Ro(e=>e.replace(am,(t,n)=>n?n.toUpperCase():"")),lm=/\B([A-Z])/g,xt=Ro(e=>e.replace(lm,"-$1").toLowerCase()),Si=Ro(e=>e.charAt(0).toUpperCase()+e.slice(1)),Gi=Ro(e=>e?`on${Si(e)}`:""),pi=(e,t)=>!Object.is(e,t),ui=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},lo=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},co=e=>{const t=parseFloat(e);return isNaN(t)?e:t},uo=e=>{const t=Ge(e)?Number(e):NaN;return isNaN(t)?e:t};let Jl;const Us=()=>Jl||(Jl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),cm="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",um=Eo(cm);function _r(e){if(ge(e)){const t={};for(let n=0;n<e.length;n++){const i=e[n],p=Ge(i)?pm(i):_r(i);if(p)for(const u in p)t[u]=p[u]}return t}else{if(Ge(e))return e;if(We(e))return e}}const hm=/;(?![^(]*\))/g,fm=/:([^]+)/,dm=/\/\*[^]*?\*\//g;function pm(e){const t={};return e.replace(dm,"").split(hm).forEach(n=>{if(n){const i=n.split(fm);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function Cr(e){let t="";if(Ge(e))t=e;else if(ge(e))for(let n=0;n<e.length;n++){const i=Cr(e[n]);i&&(t+=i+" ")}else if(We(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function gm(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Ge(t)&&(e.class=Cr(t)),n&&(e.style=_r(n)),e}const mm="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",vm=Eo(mm);function Xu(e){return!!e||e===""}function ym(e,t){if(e.length!==t.length)return!1;let n=!0;for(let i=0;n&&i<e.length;i++)n=kn(e[i],t[i]);return n}function kn(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=or(e),i=or(t),n||i)return e===t;if(n=ge(e),i=ge(t),n||i)return n&&i?ym(e,t):!1;if(n=We(e),i=We(t),n||i){if(!n||!i)return!1;const p=Object.keys(e).length,u=Object.keys(t).length;if(p!==u)return!1;for(const f in e){const g=e.hasOwnProperty(f),s=t.hasOwnProperty(f);if(g&&!s||!g&&s||!kn(e[f],t[f]))return!1}}return String(e)===String(t)}function Lo(e,t){return e.findIndex(n=>kn(n,t))}const Ae=e=>Ge(e)?e:e==null?"":ge(e)||We(e)&&(e.toString===Ku||!Ce(e.toString))?JSON.stringify(e,Zu,2):String(e),Zu=(e,t)=>t&&t.__v_isRef?Zu(e,t.value):ci(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,p])=>(n[`${i} =>`]=p,n),{})}:Jn(t)?{[`Set(${t.size})`]:[...t.values()]}:We(t)&&!ge(t)&&!Yu(t)?String(t):t;let bt;class Fa{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 p=this.parent.scopes.pop();p&&p!==this&&(this.parent.scopes[this.index]=p,p.index=this.index)}this.parent=void 0,this._active=!1}}}function Qu(e){return new Fa(e)}function Ju(e,t=bt){t&&t.active&&t.effects.push(e)}function Na(){return bt}function qu(e){bt&&bt.cleanups.push(e)}const Pa=e=>{const t=new Set(e);return t.w=0,t.n=0,t},eh=e=>(e.w&En)>0,th=e=>(e.n&En)>0,bm=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=En},wm=e=>{const{deps:t}=e;if(t.length){let n=0;for(let i=0;i<t.length;i++){const p=t[i];eh(p)&&!th(p)?p.delete(e):t[n++]=p,p.w&=~En,p.n&=~En}t.length=n}},ho=new WeakMap;let Bi=0,En=1;const zs=30;let Lt;const Hn=Symbol(""),Vs=Symbol("");class Sr{constructor(t,n=null,i){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,Ju(this,i)}run(){if(!this.active)return this.fn();let t=Lt,n=_n;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Lt,Lt=this,_n=!0,En=1<<++Bi,Bi<=zs?bm(this):ql(this),this.fn()}finally{Bi<=zs&&wm(this),En=1<<--Bi,Lt=this.parent,_n=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Lt===this?this.deferStop=!0:this.active&&(ql(this),this.onStop&&this.onStop(),this.active=!1)}}function ql(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}function $m(e,t){e.effect&&(e=e.effect.fn);const n=new Sr(e);t&&(Ue(n,t),t.scope&&Ju(n,t.scope)),(!t||!t.lazy)&&n.run();const i=n.run.bind(n);return i.effect=n,i}function _m(e){e.effect.stop()}let _n=!0;const nh=[];function Ai(){nh.push(_n),_n=!1}function xi(){const e=nh.pop();_n=e===void 0?!0:e}function yt(e,t,n){if(_n&&Lt){let i=ho.get(e);i||ho.set(e,i=new Map);let p=i.get(n);p||i.set(n,p=Pa()),ih(p)}}function ih(e,t){let n=!1;Bi<=zs?th(e)||(e.n|=En,n=!eh(e)):n=!e.has(Lt),n&&(e.add(Lt),Lt.deps.push(e))}function sn(e,t,n,i,p,u){const f=ho.get(e);if(!f)return;let g=[];if(t==="clear")g=[...f.values()];else if(n==="length"&&ge(e)){const s=Number(i);f.forEach((h,o)=>{(o==="length"||o>=s)&&g.push(h)})}else switch(n!==void 0&&g.push(f.get(n)),t){case"add":ge(e)?Oa(n)&&g.push(f.get("length")):(g.push(f.get(Hn)),ci(e)&&g.push(f.get(Vs)));break;case"delete":ge(e)||(g.push(f.get(Hn)),ci(e)&&g.push(f.get(Vs)));break;case"set":ci(e)&&g.push(f.get(Hn));break}if(g.length===1)g[0]&&js(g[0]);else{const s=[];for(const h of g)h&&s.push(...h);js(Pa(s))}}function js(e,t){const n=ge(e)?e:[...e];for(const i of n)i.computed&&ec(i);for(const i of n)i.computed||ec(i)}function ec(e,t){(e!==Lt||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Cm(e,t){var n;return(n=ho.get(e))==null?void 0:n.get(t)}const Sm=Eo("__proto__,__v_isRef,__isVue"),rh=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(or)),Am=To(),xm=To(!1,!0),km=To(!0),Em=To(!0,!0),tc=Rm();function Rm(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const i=Ie(this);for(let u=0,f=this.length;u<f;u++)yt(i,"get",u+"");const p=i[t](...n);return p===-1||p===!1?i[t](...n.map(Ie)):p}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Ai();const i=Ie(this)[t].apply(this,n);return xi(),i}}),e}function Lm(e){const t=Ie(this);return yt(t,"has",e),t.hasOwnProperty(e)}function To(e=!1,t=!1){return function(i,p,u){if(p==="__v_isReactive")return!e;if(p==="__v_isReadonly")return e;if(p==="__v_isShallow")return t;if(p==="__v_raw"&&u===(e?t?hh:uh:t?ch:lh).get(i))return i;const f=ge(i);if(!e){if(f&&Fe(tc,p))return Reflect.get(tc,p,u);if(p==="hasOwnProperty")return Lm}const g=Reflect.get(i,p,u);return(or(p)?rh.has(p):Sm(p))||(e||yt(i,"get",p),t)?g:qe(g)?f&&Oa(p)?g:g.value:We(g)?e?Oo(g):ki(g):g}}const Tm=oh(),Mm=oh(!0);function oh(e=!1){return function(n,i,p,u){let f=n[i];if(Kn(f)&&qe(f)&&!qe(p))return!1;if(!e&&(!sr(p)&&!Kn(p)&&(f=Ie(f),p=Ie(p)),!ge(n)&&qe(f)&&!qe(p)))return f.value=p,!0;const g=ge(n)&&Oa(i)?Number(i)<n.length:Fe(n,i),s=Reflect.set(n,i,p,u);return n===Ie(u)&&(g?pi(p,f)&&sn(n,"set",i,p):sn(n,"add",i,p)),s}}function Im(e,t){const n=Fe(e,t);e[t];const i=Reflect.deleteProperty(e,t);return i&&n&&sn(e,"delete",t,void 0),i}function Om(e,t){const n=Reflect.has(e,t);return(!or(t)||!rh.has(t))&&yt(e,"has",t),n}function Fm(e){return yt(e,"iterate",ge(e)?"length":Hn),Reflect.ownKeys(e)}const sh={get:Am,set:Tm,deleteProperty:Im,has:Om,ownKeys:Fm},ah={get:km,set(e,t){return!0},deleteProperty(e,t){return!0}},Nm=Ue({},sh,{get:xm,set:Mm}),Pm=Ue({},ah,{get:Em}),Da=e=>e,Mo=e=>Reflect.getPrototypeOf(e);function Br(e,t,n=!1,i=!1){e=e.__v_raw;const p=Ie(e),u=Ie(t);n||(t!==u&&yt(p,"get",t),yt(p,"get",u));const{has:f}=Mo(p),g=i?Da:n?Ha:ar;if(f.call(p,t))return g(e.get(t));if(f.call(p,u))return g(e.get(u));e!==p&&e.get(t)}function Wr(e,t=!1){const n=this.__v_raw,i=Ie(n),p=Ie(e);return t||(e!==p&&yt(i,"has",e),yt(i,"has",p)),e===p?n.has(e):n.has(e)||n.has(p)}function Hr(e,t=!1){return e=e.__v_raw,!t&&yt(Ie(e),"iterate",Hn),Reflect.get(e,"size",e)}function nc(e){e=Ie(e);const t=Ie(this);return Mo(t).has.call(t,e)||(t.add(e),sn(t,"add",e,e)),this}function ic(e,t){t=Ie(t);const n=Ie(this),{has:i,get:p}=Mo(n);let u=i.call(n,e);u||(e=Ie(e),u=i.call(n,e));const f=p.call(n,e);return n.set(e,t),u?pi(t,f)&&sn(n,"set",e,t):sn(n,"add",e,t),this}function rc(e){const t=Ie(this),{has:n,get:i}=Mo(t);let p=n.call(t,e);p||(e=Ie(e),p=n.call(t,e)),i&&i.call(t,e);const u=t.delete(e);return p&&sn(t,"delete",e,void 0),u}function oc(){const e=Ie(this),t=e.size!==0,n=e.clear();return t&&sn(e,"clear",void 0,void 0),n}function Ur(e,t){return function(i,p){const u=this,f=u.__v_raw,g=Ie(f),s=t?Da:e?Ha:ar;return!e&&yt(g,"iterate",Hn),f.forEach((h,o)=>i.call(p,s(h),s(o),u))}}function zr(e,t,n){return function(...i){const p=this.__v_raw,u=Ie(p),f=ci(u),g=e==="entries"||e===Symbol.iterator&&f,s=e==="keys"&&f,h=p[e](...i),o=n?Da:t?Ha:ar;return!t&&yt(u,"iterate",s?Vs:Hn),{next(){const{value:r,done:l}=h.next();return l?{value:r,done:l}:{value:g?[o(r[0]),o(r[1])]:o(r),done:l}},[Symbol.iterator](){return this}}}}function pn(e){return function(...t){return e==="delete"?!1:this}}function Dm(){const e={get(u){return Br(this,u)},get size(){return Hr(this)},has:Wr,add:nc,set:ic,delete:rc,clear:oc,forEach:Ur(!1,!1)},t={get(u){return Br(this,u,!1,!0)},get size(){return Hr(this)},has:Wr,add:nc,set:ic,delete:rc,clear:oc,forEach:Ur(!1,!0)},n={get(u){return Br(this,u,!0)},get size(){return Hr(this,!0)},has(u){return Wr.call(this,u,!0)},add:pn("add"),set:pn("set"),delete:pn("delete"),clear:pn("clear"),forEach:Ur(!0,!1)},i={get(u){return Br(this,u,!0,!0)},get size(){return Hr(this,!0)},has(u){return Wr.call(this,u,!0)},add:pn("add"),set:pn("set"),delete:pn("delete"),clear:pn("clear"),forEach:Ur(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(u=>{e[u]=zr(u,!1,!1),n[u]=zr(u,!0,!1),t[u]=zr(u,!1,!0),i[u]=zr(u,!0,!0)}),[e,n,t,i]}const[Bm,Wm,Hm,Um]=Dm();function Io(e,t){const n=t?e?Um:Hm:e?Wm:Bm;return(i,p,u)=>p==="__v_isReactive"?!e:p==="__v_isReadonly"?e:p==="__v_raw"?i:Reflect.get(Fe(n,p)&&p in i?n:i,p,u)}const zm={get:Io(!1,!1)},Vm={get:Io(!1,!0)},jm={get:Io(!0,!1)},Gm={get:Io(!0,!0)},lh=new WeakMap,ch=new WeakMap,uh=new WeakMap,hh=new WeakMap;function Km(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ym(e){return e.__v_skip||!Object.isExtensible(e)?0:Km(sm(e))}function ki(e){return Kn(e)?e:Fo(e,!1,sh,zm,lh)}function Ba(e){return Fo(e,!1,Nm,Vm,ch)}function Oo(e){return Fo(e,!0,ah,jm,uh)}function Xm(e){return Fo(e,!0,Pm,Gm,hh)}function Fo(e,t,n,i,p){if(!We(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const u=p.get(e);if(u)return u;const f=Ym(e);if(f===0)return e;const g=new Proxy(e,f===2?i:n);return p.set(e,g),g}function Un(e){return Kn(e)?Un(e.__v_raw):!!(e&&e.__v_isReactive)}function Kn(e){return!!(e&&e.__v_isReadonly)}function sr(e){return!!(e&&e.__v_isShallow)}function Wa(e){return Un(e)||Kn(e)}function Ie(e){const t=e&&e.__v_raw;return t?Ie(t):e}function No(e){return lo(e,"__v_skip",!0),e}const ar=e=>We(e)?ki(e):e,Ha=e=>We(e)?Oo(e):e;function Ua(e){_n&&Lt&&(e=Ie(e),ih(e.dep||(e.dep=Pa())))}function Po(e,t){e=Ie(e);const n=e.dep;n&&js(n)}function qe(e){return!!(e&&e.__v_isRef===!0)}function Te(e){return dh(e,!1)}function fh(e){return dh(e,!0)}function dh(e,t){return qe(e)?e:new Zm(e,t)}class Zm{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Ie(t),this._value=n?t:ar(t)}get value(){return Ua(this),this._value}set value(t){const n=this.__v_isShallow||sr(t)||Kn(t);t=n?t:Ie(t),pi(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:ar(t),Po(this))}}function Qm(e){Po(e)}function qt(e){return qe(e)?e.value:e}function Jm(e){return Ce(e)?e():qt(e)}const qm={get:(e,t,n)=>qt(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const p=e[t];return qe(p)&&!qe(n)?(p.value=n,!0):Reflect.set(e,t,n,i)}};function za(e){return Un(e)?e:new Proxy(e,qm)}class ev{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:i}=t(()=>Ua(this),()=>Po(this));this._get=n,this._set=i}get value(){return this._get()}set value(t){this._set(t)}}function Va(e){return new ev(e)}function tv(e){const t=ge(e)?new Array(e.length):{};for(const n in e)t[n]=ph(e,n);return t}class nv{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 Cm(Ie(this._object),this._key)}}class iv{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Yn(e,t,n){return qe(e)?e:Ce(e)?new iv(e):We(e)&&arguments.length>1?ph(e,t,n):Te(e)}function ph(e,t,n){const i=e[t];return qe(i)?i:new nv(e,t,n)}class rv{constructor(t,n,i,p){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Sr(t,()=>{this._dirty||(this._dirty=!0,Po(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!p,this.__v_isReadonly=i}get value(){const t=Ie(this);return Ua(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function ov(e,t,n=!1){let i,p;const u=Ce(e);return u?(i=e,p=Ft):(i=e.get,p=e.set),new rv(i,p,u||!p,n)}function sv(e,...t){}function av(e,t){}function en(e,t,n,i){let p;try{p=i?e(...i):e()}catch(u){qn(u,t,n)}return p}function _t(e,t,n,i){if(Ce(e)){const u=en(e,t,n,i);return u&&Ia(u)&&u.catch(f=>{qn(f,t,n)}),u}const p=[];for(let u=0;u<e.length;u++)p.push(_t(e[u],t,n,i));return p}function qn(e,t,n,i=!0){const p=t?t.vnode:null;if(t){let u=t.parent;const f=t.proxy,g=n;for(;u;){const h=u.ec;if(h){for(let o=0;o<h.length;o++)if(h[o](e,f,g)===!1)return}u=u.parent}const s=t.appContext.config.errorHandler;if(s){en(s,null,10,[e,f,g]);return}}lv(e,n,p,i)}function lv(e,t,n,i=!0){console.error(e)}let lr=!1,Gs=!1;const at=[];let Bt=0;const hi=[];let Xt=null,Nn=0;const gh=Promise.resolve();let ja=null;function zt(e){const t=ja||gh;return e?t.then(this?e.bind(this):e):t}function cv(e){let t=Bt+1,n=at.length;for(;t<n;){const i=t+n>>>1;cr(at[i])<e?t=i+1:n=i}return t}function Do(e){(!at.length||!at.includes(e,lr&&e.allowRecurse?Bt+1:Bt))&&(e.id==null?at.push(e):at.splice(cv(e.id),0,e),mh())}function mh(){!lr&&!Gs&&(Gs=!0,ja=gh.then(vh))}function uv(e){const t=at.indexOf(e);t>Bt&&at.splice(t,1)}function Ga(e){ge(e)?hi.push(...e):(!Xt||!Xt.includes(e,e.allowRecurse?Nn+1:Nn))&&hi.push(e),mh()}function sc(e,t=lr?Bt+1:0){for(;t<at.length;t++){const n=at[t];n&&n.pre&&(at.splice(t,1),t--,n())}}function fo(e){if(hi.length){const t=[...new Set(hi)];if(hi.length=0,Xt){Xt.push(...t);return}for(Xt=t,Xt.sort((n,i)=>cr(n)-cr(i)),Nn=0;Nn<Xt.length;Nn++)Xt[Nn]();Xt=null,Nn=0}}const cr=e=>e.id==null?1/0:e.id,hv=(e,t)=>{const n=cr(e)-cr(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function vh(e){Gs=!1,lr=!0,at.sort(hv);const t=Ft;try{for(Bt=0;Bt<at.length;Bt++){const n=at[Bt];n&&n.active!==!1&&en(n,null,14)}}finally{Bt=0,at.length=0,fo(),lr=!1,ja=null,(at.length||hi.length)&&vh()}}let ni,Vr=[];function yh(e,t){var n,i;ni=e,ni?(ni.enabled=!0,Vr.forEach(({event:p,args:u})=>ni.emit(p,...u)),Vr=[]):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=>{yh(u,t)}),setTimeout(()=>{ni||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Vr=[])},3e3)):Vr=[]}function fv(e,t,...n){if(e.isUnmounted)return;const i=e.vnode.props||Be;let p=n;const u=t.startsWith("update:"),f=u&&t.slice(7);if(f&&f in i){const o=`${f==="modelValue"?"model":f}Modifiers`,{number:r,trim:l}=i[o]||Be;l&&(p=n.map(c=>Ge(c)?c.trim():c)),r&&(p=n.map(co))}let g,s=i[g=Gi(t)]||i[g=Gi(vt(t))];!s&&u&&(s=i[g=Gi(xt(t))]),s&&_t(s,e,6,p);const h=i[g+"Once"];if(h){if(!e.emitted)e.emitted={};else if(e.emitted[g])return;e.emitted[g]=!0,_t(h,e,6,p)}}function bh(e,t,n=!1){const i=t.emitsCache,p=i.get(e);if(p!==void 0)return p;const u=e.emits;let f={},g=!1;if(!Ce(e)){const s=h=>{const o=bh(h,t,!0);o&&(g=!0,Ue(f,o))};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!u&&!g?(We(e)&&i.set(e,null),null):(ge(u)?u.forEach(s=>f[s]=null):Ue(f,u),We(e)&&i.set(e,f),f)}function Bo(e,t){return!e||!$r(t)?!1:(t=t.slice(2).replace(/Once$/,""),Fe(e,t[0].toLowerCase()+t.slice(1))||Fe(e,xt(t))||Fe(e,t))}let it=null,Wo=null;function ur(e){const t=it;return it=e,Wo=e&&e.type.__scopeId||null,t}function Ka(e){Wo=e}function Ya(){Wo=null}const dv=e=>dt;function dt(e,t=it,n){if(!t||e._n)return e;const i=(...p)=>{i._d&&qs(-1);const u=ur(t);let f;try{f=e(...p)}finally{ur(u),i._d&&qs(1)}return f};return i._n=!0,i._c=!0,i._d=!0,i}function qr(e){const{type:t,vnode:n,proxy:i,withProxy:p,props:u,propsOptions:[f],slots:g,attrs:s,emit:h,render:o,renderCache:r,data:l,setupState:c,ctx:a,inheritAttrs:d}=e;let m,y;const b=ur(e);try{if(n.shapeFlag&4){const S=p||i;m=wt(o.call(S,S,r,u,c,l,a)),y=s}else{const S=t;m=wt(S.length>1?S(u,{attrs:s,slots:g,emit:h}):S(u,null)),y=t.props?s:gv(s)}}catch(S){Zi.length=0,qn(S,e,1),m=he(lt)}let E=m;if(y&&d!==!1){const S=Object.keys(y),{shapeFlag:C}=E;S.length&&C&7&&(f&&S.some(Ta)&&(y=mv(y,f)),E=Vt(E,y))}return n.dirs&&(E=Vt(E),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition&&(E.transition=n.transition),m=E,ur(b),m}function pv(e){let t;for(let n=0;n<e.length;n++){const i=e[n];if(Rn(i)){if(i.type!==lt||i.children==="v-if"){if(t)return;t=i}}else return}return t}const gv=e=>{let t;for(const n in e)(n==="class"||n==="style"||$r(n))&&((t||(t={}))[n]=e[n]);return t},mv=(e,t)=>{const n={};for(const i in e)(!Ta(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function vv(e,t,n){const{props:i,children:p,component:u}=e,{props:f,children:g,patchFlag:s}=t,h=u.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&s>=0){if(s&1024)return!0;if(s&16)return i?ac(i,f,h):!!f;if(s&8){const o=t.dynamicProps;for(let r=0;r<o.length;r++){const l=o[r];if(f[l]!==i[l]&&!Bo(h,l))return!0}}}else return(p||g)&&(!g||!g.$stable)?!0:i===f?!1:i?f?ac(i,f,h):!0:!!f;return!1}function ac(e,t,n){const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let p=0;p<i.length;p++){const u=i[p];if(t[u]!==e[u]&&!Bo(n,u))return!0}return!1}function Xa({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const wh=e=>e.__isSuspense,yv={name:"Suspense",__isSuspense:!0,process(e,t,n,i,p,u,f,g,s,h){e==null?wv(t,n,i,p,u,f,g,s,h):$v(e,t,n,i,p,f,g,s,h)},hydrate:_v,create:Za,normalize:Cv},bv=yv;function hr(e,t){const n=e.props&&e.props[t];Ce(n)&&n()}function wv(e,t,n,i,p,u,f,g,s){const{p:h,o:{createElement:o}}=s,r=o("div"),l=e.suspense=Za(e,p,i,t,r,n,u,f,g,s);h(null,l.pendingBranch=e.ssContent,r,null,i,l,u,f),l.deps>0?(hr(e,"onPending"),hr(e,"onFallback"),h(null,e.ssFallback,t,n,i,null,u,f),fi(l,e.ssFallback)):l.resolve(!1,!0)}function $v(e,t,n,i,p,u,f,g,{p:s,um:h,o:{createElement:o}}){const r=t.suspense=e.suspense;r.vnode=t,t.el=e.el;const l=t.ssContent,c=t.ssFallback,{activeBranch:a,pendingBranch:d,isInFallback:m,isHydrating:y}=r;if(d)r.pendingBranch=l,Mt(l,d)?(s(d,l,r.hiddenContainer,null,p,r,u,f,g),r.deps<=0?r.resolve():m&&(s(a,c,n,i,p,null,u,f,g),fi(r,c))):(r.pendingId++,y?(r.isHydrating=!1,r.activeBranch=d):h(d,p,r),r.deps=0,r.effects.length=0,r.hiddenContainer=o("div"),m?(s(null,l,r.hiddenContainer,null,p,r,u,f,g),r.deps<=0?r.resolve():(s(a,c,n,i,p,null,u,f,g),fi(r,c))):a&&Mt(l,a)?(s(a,l,n,i,p,r,u,f,g),r.resolve(!0)):(s(null,l,r.hiddenContainer,null,p,r,u,f,g),r.deps<=0&&r.resolve()));else if(a&&Mt(l,a))s(a,l,n,i,p,r,u,f,g),fi(r,l);else if(hr(t,"onPending"),r.pendingBranch=l,r.pendingId++,s(null,l,r.hiddenContainer,null,p,r,u,f,g),r.deps<=0)r.resolve();else{const{timeout:b,pendingId:E}=r;b>0?setTimeout(()=>{r.pendingId===E&&r.fallback(c)},b):b===0&&r.fallback(c)}}function Za(e,t,n,i,p,u,f,g,s,h,o=!1){const{p:r,m:l,um:c,n:a,o:{parentNode:d,remove:m}}=h;let y;const b=Sv(e);b&&t!=null&&t.pendingBranch&&(y=t.pendingId,t.deps++);const E=e.props?uo(e.props.timeout):void 0,S={vnode:e,parent:t,parentComponent:n,isSVG:f,container:i,hiddenContainer:p,anchor:u,deps:0,pendingId:0,timeout:typeof E=="number"?E:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:o,isUnmounted:!1,effects:[],resolve(C=!1,$=!1){const{vnode:R,activeBranch:x,pendingBranch:k,pendingId:_,effects:v,parentComponent:M,container:A}=S;if(S.isHydrating)S.isHydrating=!1;else if(!C){const T=x&&k.transition&&k.transition.mode==="out-in";T&&(x.transition.afterLeave=()=>{_===S.pendingId&&l(k,A,O,0)});let{anchor:O}=S;x&&(O=a(x),c(x,M,S,!0)),T||l(k,A,O,0)}fi(S,k),S.pendingBranch=null,S.isInFallback=!1;let w=S.parent,L=!1;for(;w;){if(w.pendingBranch){w.effects.push(...v),L=!0;break}w=w.parent}L||Ga(v),S.effects=[],b&&t&&t.pendingBranch&&y===t.pendingId&&(t.deps--,t.deps===0&&!$&&t.resolve()),hr(R,"onResolve")},fallback(C){if(!S.pendingBranch)return;const{vnode:$,activeBranch:R,parentComponent:x,container:k,isSVG:_}=S;hr($,"onFallback");const v=a(R),M=()=>{S.isInFallback&&(r(null,C,k,v,x,null,_,g,s),fi(S,C))},A=C.transition&&C.transition.mode==="out-in";A&&(R.transition.afterLeave=M),S.isInFallback=!0,c(R,x,null,!0),A||M()},move(C,$,R){S.activeBranch&&l(S.activeBranch,C,$,R),S.container=C},next(){return S.activeBranch&&a(S.activeBranch)},registerDep(C,$){const R=!!S.pendingBranch;R&&S.deps++;const x=C.vnode.el;C.asyncDep.catch(k=>{qn(k,C,0)}).then(k=>{if(C.isUnmounted||S.isUnmounted||S.pendingId!==C.suspenseId)return;C.asyncResolved=!0;const{vnode:_}=C;ea(C,k,!1),x&&(_.el=x);const v=!x&&C.subTree.el;$(C,_,d(x||C.subTree.el),x?null:a(C.subTree),S,f,s),v&&m(v),Xa(C,_.el),R&&--S.deps===0&&S.resolve()})},unmount(C,$){S.isUnmounted=!0,S.activeBranch&&c(S.activeBranch,n,C,$),S.pendingBranch&&c(S.pendingBranch,n,C,$)}};return S}function _v(e,t,n,i,p,u,f,g,s){const h=t.suspense=Za(t,i,n,e.parentNode,document.createElement("div"),null,p,u,f,g,!0),o=s(e,h.pendingBranch=t.ssContent,n,h,u,f);return h.deps===0&&h.resolve(!1,!0),o}function Cv(e){const{shapeFlag:t,children:n}=e,i=t&32;e.ssContent=lc(i?n.default:n),e.ssFallback=i?lc(n.fallback):he(lt)}function lc(e){let t;if(Ce(e)){const n=Qn&&e._c;n&&(e._d=!1,q()),e=e(),n&&(e._d=!0,t=mt,Zh())}return ge(e)&&(e=pv(e)),e=wt(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function $h(e,t){t&&t.pendingBranch?ge(e)?t.effects.push(...e):t.effects.push(e):Ga(e)}function fi(e,t){e.activeBranch=t;const{vnode:n,parentComponent:i}=e,p=n.el=t.el;i&&i.subTree===n&&(i.vnode.el=p,Xa(i,p))}function Sv(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}function _h(e,t){return Ar(e,null,t)}function Ch(e,t){return Ar(e,null,{flush:"post"})}function Av(e,t){return Ar(e,null,{flush:"sync"})}const jr={};function Ye(e,t,n){return Ar(e,t,n)}function Ar(e,t,{immediate:n,deep:i,flush:p,onTrack:u,onTrigger:f}=Be){var g;const s=Na()===((g=Qe)==null?void 0:g.scope)?Qe:null;let h,o=!1,r=!1;if(qe(e)?(h=()=>e.value,o=sr(e)):Un(e)?(h=()=>e,i=!0):ge(e)?(r=!0,o=e.some(S=>Un(S)||sr(S)),h=()=>e.map(S=>{if(qe(S))return S.value;if(Un(S))return Wn(S);if(Ce(S))return en(S,s,2)})):Ce(e)?t?h=()=>en(e,s,2):h=()=>{if(!(s&&s.isUnmounted))return l&&l(),_t(e,s,3,[c])}:h=Ft,t&&i){const S=h;h=()=>Wn(S())}let l,c=S=>{l=b.onStop=()=>{en(S,s,4)}},a;if(mi)if(c=Ft,t?n&&_t(t,s,3,[h(),r?[]:void 0,c]):h(),p==="sync"){const S=lf();a=S.__watcherHandles||(S.__watcherHandles=[])}else return Ft;let d=r?new Array(e.length).fill(jr):jr;const m=()=>{if(b.active)if(t){const S=b.run();(i||o||(r?S.some((C,$)=>pi(C,d[$])):pi(S,d)))&&(l&&l(),_t(t,s,3,[S,d===jr?void 0:r&&d[0]===jr?[]:d,c]),d=S)}else b.run()};m.allowRecurse=!!t;let y;p==="sync"?y=m:p==="post"?y=()=>ot(m,s&&s.suspense):(m.pre=!0,s&&(m.id=s.uid),y=()=>Do(m));const b=new Sr(h,y);t?n?m():d=b.run():p==="post"?ot(b.run.bind(b),s&&s.suspense):b.run();const E=()=>{b.stop(),s&&s.scope&&Ma(s.scope.effects,b)};return a&&a.push(E),E}function xv(e,t,n){const i=this.proxy,p=Ge(e)?e.includes(".")?Sh(i,e):()=>i[e]:e.bind(i,i);let u;Ce(t)?u=t:(u=t.handler,n=t);const f=Qe;Ln(this);const g=Ar(p,u.bind(i),n);return f?Ln(f):Cn(),g}function Sh(e,t){const n=t.split(".");return()=>{let i=e;for(let p=0;p<n.length&&i;p++)i=i[n[p]];return i}}function Wn(e,t){if(!We(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),qe(e))Wn(e.value,t);else if(ge(e))for(let n=0;n<e.length;n++)Wn(e[n],t);else if(Jn(e)||ci(e))e.forEach(n=>{Wn(n,t)});else if(Yu(e))for(const n in e)Wn(e[n],t);return e}function Tt(e,t){const n=it;if(n===null)return e;const i=Go(n)||n.proxy,p=e.dirs||(e.dirs=[]);for(let u=0;u<t.length;u++){let[f,g,s,h=Be]=t[u];f&&(Ce(f)&&(f={mounted:f,updated:f}),f.deep&&Wn(g),p.push({dir:f,instance:i,value:g,oldValue:void 0,arg:s,modifiers:h}))}return e}function Dt(e,t,n,i){const p=e.dirs,u=t&&t.dirs;for(let f=0;f<p.length;f++){const g=p[f];u&&(g.oldValue=u[f].value);let s=g.dir[i];s&&(Ai(),_t(s,n,8,[e.el,g,e,t]),xi())}}function Qa(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return nt(()=>{e.isMounted=!0}),kr(()=>{e.isUnmounting=!0}),e}const At=[Function,Array],Ja={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:At,onEnter:At,onAfterEnter:At,onEnterCancelled:At,onBeforeLeave:At,onLeave:At,onAfterLeave:At,onLeaveCancelled:At,onBeforeAppear:At,onAppear:At,onAfterAppear:At,onAppearCancelled:At},kv={name:"BaseTransition",props:Ja,setup(e,{slots:t}){const n=Pt(),i=Qa();let p;return()=>{const u=t.default&&Ho(t.default(),!0);if(!u||!u.length)return;let f=u[0];if(u.length>1){for(const d of u)if(d.type!==lt){f=d;break}}const g=Ie(e),{mode:s}=g;if(i.isLeaving)return fs(f);const h=cc(f);if(!h)return fs(f);const o=gi(h,g,i,n);Xn(h,o);const r=n.subTree,l=r&&cc(r);let c=!1;const{getTransitionKey:a}=h.type;if(a){const d=a();p===void 0?p=d:d!==p&&(p=d,c=!0)}if(l&&l.type!==lt&&(!Mt(h,l)||c)){const d=gi(l,g,i,n);if(Xn(l,d),s==="out-in")return i.isLeaving=!0,d.afterLeave=()=>{i.isLeaving=!1,n.update.active!==!1&&n.update()},fs(f);s==="in-out"&&h.type!==lt&&(d.delayLeave=(m,y,b)=>{const E=xh(i,l);E[String(l.key)]=l,m._leaveCb=()=>{y(),m._leaveCb=void 0,delete o.delayedLeave},o.delayedLeave=b})}return f}}},Ah=kv;function xh(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 gi(e,t,n,i){const{appear:p,mode:u,persisted:f=!1,onBeforeEnter:g,onEnter:s,onAfterEnter:h,onEnterCancelled:o,onBeforeLeave:r,onLeave:l,onAfterLeave:c,onLeaveCancelled:a,onBeforeAppear:d,onAppear:m,onAfterAppear:y,onAppearCancelled:b}=t,E=String(e.key),S=xh(n,e),C=(x,k)=>{x&&_t(x,i,9,k)},$=(x,k)=>{const _=k[1];C(x,k),ge(x)?x.every(v=>v.length<=1)&&_():x.length<=1&&_()},R={mode:u,persisted:f,beforeEnter(x){let k=g;if(!n.isMounted)if(p)k=d||g;else return;x._leaveCb&&x._leaveCb(!0);const _=S[E];_&&Mt(e,_)&&_.el._leaveCb&&_.el._leaveCb(),C(k,[x])},enter(x){let k=s,_=h,v=o;if(!n.isMounted)if(p)k=m||s,_=y||h,v=b||o;else return;let M=!1;const A=x._enterCb=w=>{M||(M=!0,w?C(v,[x]):C(_,[x]),R.delayedLeave&&R.delayedLeave(),x._enterCb=void 0)};k?$(k,[x,A]):A()},leave(x,k){const _=String(e.key);if(x._enterCb&&x._enterCb(!0),n.isUnmounting)return k();C(r,[x]);let v=!1;const M=x._leaveCb=A=>{v||(v=!0,k(),A?C(a,[x]):C(c,[x]),x._leaveCb=void 0,S[_]===e&&delete S[_])};S[_]=e,l?$(l,[x,M]):M()},clone(x){return gi(x,t,n,i)}};return R}function fs(e){if(xr(e))return e=Vt(e),e.children=null,e}function cc(e){return xr(e)?e.children?e.children[0]:void 0:e}function Xn(e,t){e.shapeFlag&6&&e.component?Xn(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 Ho(e,t=!1,n){let i=[],p=0;for(let u=0;u<e.length;u++){let f=e[u];const g=n==null?f.key:String(n)+String(f.key!=null?f.key:u);f.type===Se?(f.patchFlag&128&&p++,i=i.concat(Ho(f.children,t,g))):(t||f.type!==lt)&&i.push(g!=null?Vt(f,{key:g}):f)}if(p>1)for(let u=0;u<i.length;u++)i[u].patchFlag=-2;return i}function $e(e,t){return Ce(e)?(()=>Ue({name:e.name},t,{setup:e}))():e}const zn=e=>!!e.type.__asyncLoader;function Ev(e){Ce(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:i,delay:p=200,timeout:u,suspensible:f=!0,onError:g}=e;let s=null,h,o=0;const r=()=>(o++,s=null,l()),l=()=>{let c;return s||(c=s=t().catch(a=>{if(a=a instanceof Error?a:new Error(String(a)),g)return new Promise((d,m)=>{g(a,()=>d(r()),()=>m(a),o+1)});throw a}).then(a=>c!==s&&s?s:(a&&(a.__esModule||a[Symbol.toStringTag]==="Module")&&(a=a.default),h=a,a)))};return $e({name:"AsyncComponentWrapper",__asyncLoader:l,get __asyncResolved(){return h},setup(){const c=Qe;if(h)return()=>ds(h,c);const a=b=>{s=null,qn(b,c,13,!i)};if(f&&c.suspense||mi)return l().then(b=>()=>ds(b,c)).catch(b=>(a(b),()=>i?he(i,{error:b}):null));const d=Te(!1),m=Te(),y=Te(!!p);return p&&setTimeout(()=>{y.value=!1},p),u!=null&&setTimeout(()=>{if(!d.value&&!m.value){const b=new Error(`Async component timed out after ${u}ms.`);a(b),m.value=b}},u),l().then(()=>{d.value=!0,c.parent&&xr(c.parent.vnode)&&Do(c.parent.update)}).catch(b=>{a(b),m.value=b}),()=>{if(d.value&&h)return ds(h,c);if(m.value&&i)return he(i,{error:m.value});if(n&&!y.value)return he(n)}}})}function ds(e,t){const{ref:n,props:i,children:p,ce:u}=t.vnode,f=he(e,i,p);return f.ref=n,f.ce=u,delete t.vnode.ce,f}const xr=e=>e.type.__isKeepAlive,Rv={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Pt(),i=n.ctx;if(!i.renderer)return()=>{const b=t.default&&t.default();return b&&b.length===1?b[0]:b};const p=new Map,u=new Set;let f=null;const g=n.suspense,{renderer:{p:s,m:h,um:o,o:{createElement:r}}}=i,l=r("div");i.activate=(b,E,S,C,$)=>{const R=b.component;h(b,E,S,0,g),s(R.vnode,b,E,S,R,g,C,b.slotScopeIds,$),ot(()=>{R.isDeactivated=!1,R.a&&ui(R.a);const x=b.props&&b.props.onVnodeMounted;x&&gt(x,R.parent,b)},g)},i.deactivate=b=>{const E=b.component;h(b,l,null,1,g),ot(()=>{E.da&&ui(E.da);const S=b.props&&b.props.onVnodeUnmounted;S&&gt(S,E.parent,b),E.isDeactivated=!0},g)};function c(b){ps(b),o(b,n,g,!0)}function a(b){p.forEach((E,S)=>{const C=na(E.type);C&&(!b||!b(C))&&d(S)})}function d(b){const E=p.get(b);!f||!Mt(E,f)?c(E):f&&ps(f),p.delete(b),u.delete(b)}Ye(()=>[e.include,e.exclude],([b,E])=>{b&&a(S=>Wi(b,S)),E&&a(S=>!Wi(E,S))},{flush:"post",deep:!0});let m=null;const y=()=>{m!=null&&p.set(m,gs(n.subTree))};return nt(y),zo(y),kr(()=>{p.forEach(b=>{const{subTree:E,suspense:S}=n,C=gs(E);if(b.type===C.type&&b.key===C.key){ps(C);const $=C.component.da;$&&ot($,S);return}c(b)})}),()=>{if(m=null,!t.default)return null;const b=t.default(),E=b[0];if(b.length>1)return f=null,b;if(!Rn(E)||!(E.shapeFlag&4)&&!(E.shapeFlag&128))return f=null,E;let S=gs(E);const C=S.type,$=na(zn(S)?S.type.__asyncResolved||{}:C),{include:R,exclude:x,max:k}=e;if(R&&(!$||!Wi(R,$))||x&&$&&Wi(x,$))return f=S,E;const _=S.key==null?C:S.key,v=p.get(_);return S.el&&(S=Vt(S),E.shapeFlag&128&&(E.ssContent=S)),m=_,v?(S.el=v.el,S.component=v.component,S.transition&&Xn(S,S.transition),S.shapeFlag|=512,u.delete(_),u.add(_)):(u.add(_),k&&u.size>parseInt(k,10)&&d(u.values().next().value)),S.shapeFlag|=256,f=S,wh(E.type)?E:S}}},Lv=Rv;function Wi(e,t){return ge(e)?e.some(n=>Wi(n,t)):Ge(e)?e.split(",").includes(t):om(e)?e.test(t):!1}function kh(e,t){Rh(e,"a",t)}function Eh(e,t){Rh(e,"da",t)}function Rh(e,t,n=Qe){const i=e.__wdc||(e.__wdc=()=>{let p=n;for(;p;){if(p.isDeactivated)return;p=p.parent}return e()});if(Uo(t,i,n),n){let p=n.parent;for(;p&&p.parent;)xr(p.parent.vnode)&&Tv(i,t,n,p),p=p.parent}}function Tv(e,t,n,i){const p=Uo(t,e,i,!0);Vo(()=>{Ma(i[t],p)},n)}function ps(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function gs(e){return e.shapeFlag&128?e.ssContent:e}function Uo(e,t,n=Qe,i=!1){if(n){const p=n[e]||(n[e]=[]),u=t.__weh||(t.__weh=(...f)=>{if(n.isUnmounted)return;Ai(),Ln(n);const g=_t(t,n,e,f);return Cn(),xi(),g});return i?p.unshift(u):p.push(u),u}}const ln=e=>(t,n=Qe)=>(!mi||e==="sp")&&Uo(e,(...i)=>t(...i),n),Lh=ln("bm"),nt=ln("m"),Th=ln("bu"),zo=ln("u"),kr=ln("bum"),Vo=ln("um"),Mh=ln("sp"),Ih=ln("rtg"),Oh=ln("rtc");function Fh(e,t=Qe){Uo("ec",e,t)}const qa="components",Mv="directives";function ue(e,t){return el(qa,e,!0,t)||e}const Nh=Symbol.for("v-ndc");function Iv(e){return Ge(e)?el(qa,e,!1)||e:e||Nh}function Ov(e){return el(Mv,e)}function el(e,t,n=!0,i=!1){const p=it||Qe;if(p){const u=p.type;if(e===qa){const g=na(u,!1);if(g&&(g===t||g===vt(t)||g===Si(vt(t))))return u}const f=uc(p[e]||u[e],t)||uc(p.appContext[e],t);return!f&&i?u:f}}function uc(e,t){return e&&(e[t]||e[vt(t)]||e[Si(vt(t))])}function ct(e,t,n,i){let p;const u=n&&n[i];if(ge(e)||Ge(e)){p=new Array(e.length);for(let f=0,g=e.length;f<g;f++)p[f]=t(e[f],f,void 0,u&&u[f])}else if(typeof e=="number"){p=new Array(e);for(let f=0;f<e;f++)p[f]=t(f+1,f,void 0,u&&u[f])}else if(We(e))if(e[Symbol.iterator])p=Array.from(e,(f,g)=>t(f,g,void 0,u&&u[g]));else{const f=Object.keys(e);p=new Array(f.length);for(let g=0,s=f.length;g<s;g++){const h=f[g];p[g]=t(e[h],h,g,u&&u[g])}}else p=[];return n&&(n[i]=p),p}function Fv(e,t){for(let n=0;n<t.length;n++){const i=t[n];if(ge(i))for(let p=0;p<i.length;p++)e[i[p].name]=i[p].fn;else i&&(e[i.name]=i.key?(...p)=>{const u=i.fn(...p);return u&&(u.key=i.key),u}:i.fn)}return e}function Nv(e,t,n={},i,p){if(it.isCE||it.parent&&zn(it.parent)&&it.parent.isCE)return t!=="default"&&(n.name=t),he("slot",n,i&&i());let u=e[t];u&&u._c&&(u._d=!1),q();const f=u&&Ph(u(n)),g=Me(Se,{key:n.key||f&&f.key||`_${t}`},f||(i?i():[]),f&&e._===1?64:-2);return!p&&g.scopeId&&(g.slotScopeIds=[g.scopeId+"-s"]),u&&u._c&&(u._d=!0),g}function Ph(e){return e.some(t=>Rn(t)?!(t.type===lt||t.type===Se&&!Ph(t.children)):!0)?e:null}function Pv(e,t){const n={};for(const i in e)n[t&&/[A-Z]/.test(i)?`on:${i}`:Gi(i)]=e[i];return n}const Ks=e=>e?nf(e)?Go(e)||e.proxy:Ks(e.parent):null,Ki=Ue(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=>Ks(e.parent),$root:e=>Ks(e.root),$emit:e=>e.emit,$options:e=>tl(e),$forceUpdate:e=>e.f||(e.f=()=>Do(e.update)),$nextTick:e=>e.n||(e.n=zt.bind(e.proxy)),$watch:e=>xv.bind(e)}),ms=(e,t)=>e!==Be&&!e.__isScriptSetup&&Fe(e,t),Ys={get({_:e},t){const{ctx:n,setupState:i,data:p,props:u,accessCache:f,type:g,appContext:s}=e;let h;if(t[0]!=="$"){const c=f[t];if(c!==void 0)switch(c){case 1:return i[t];case 2:return p[t];case 4:return n[t];case 3:return u[t]}else{if(ms(i,t))return f[t]=1,i[t];if(p!==Be&&Fe(p,t))return f[t]=2,p[t];if((h=e.propsOptions[0])&&Fe(h,t))return f[t]=3,u[t];if(n!==Be&&Fe(n,t))return f[t]=4,n[t];Xs&&(f[t]=0)}}const o=Ki[t];let r,l;if(o)return t==="$attrs"&&yt(e,"get",t),o(e);if((r=g.__cssModules)&&(r=r[t]))return r;if(n!==Be&&Fe(n,t))return f[t]=4,n[t];if(l=s.config.globalProperties,Fe(l,t))return l[t]},set({_:e},t,n){const{data:i,setupState:p,ctx:u}=e;return ms(p,t)?(p[t]=n,!0):i!==Be&&Fe(i,t)?(i[t]=n,!0):Fe(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:p,propsOptions:u}},f){let g;return!!n[f]||e!==Be&&Fe(e,f)||ms(t,f)||(g=u[0])&&Fe(g,f)||Fe(i,f)||Fe(Ki,f)||Fe(p.config.globalProperties,f)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Fe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},Dv=Ue({},Ys,{get(e,t){if(t!==Symbol.unscopables)return Ys.get(e,t,e)},has(e,t){return t[0]!=="_"&&!um(t)}});function Bv(){return null}function Wv(){return null}function Hv(e){}function Uv(e){}function zv(){return null}function Vv(){}function jv(e,t){return null}function Gv(){return Dh().slots}function Kv(){return Dh().attrs}function Yv(e,t,n){const i=Pt();if(n&&n.local){const p=Te(e[t]);return Ye(()=>e[t],u=>p.value=u),Ye(p,u=>{u!==e[t]&&i.emit(`update:${t}`,u)}),p}else return{__v_isRef:!0,get value(){return e[t]},set value(p){i.emit(`update:${t}`,p)}}}function Dh(){const e=Pt();return e.setupContext||(e.setupContext=sf(e))}function fr(e){return ge(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Xv(e,t){const n=fr(e);for(const i in t){if(i.startsWith("__skip"))continue;let p=n[i];p?ge(p)||Ce(p)?p=n[i]={type:p,default:t[i]}:p.default=t[i]:p===null&&(p=n[i]={default:t[i]}),p&&t[`__skip_${i}`]&&(p.skipFactory=!0)}return n}function Zv(e,t){return!e||!t?e||t:ge(e)&&ge(t)?e.concat(t):Ue({},fr(e),fr(t))}function Qv(e,t){const n={};for(const i in e)t.includes(i)||Object.defineProperty(n,i,{enumerable:!0,get:()=>e[i]});return n}function Jv(e){const t=Pt();let n=e();return Cn(),Ia(n)&&(n=n.catch(i=>{throw Ln(t),i})),[n,()=>Ln(t)]}let Xs=!0;function qv(e){const t=tl(e),n=e.proxy,i=e.ctx;Xs=!1,t.beforeCreate&&hc(t.beforeCreate,e,"bc");const{data:p,computed:u,methods:f,watch:g,provide:s,inject:h,created:o,beforeMount:r,mounted:l,beforeUpdate:c,updated:a,activated:d,deactivated:m,beforeDestroy:y,beforeUnmount:b,destroyed:E,unmounted:S,render:C,renderTracked:$,renderTriggered:R,errorCaptured:x,serverPrefetch:k,expose:_,inheritAttrs:v,components:M,directives:A,filters:w}=t;if(h&&ey(h,i,null),f)for(const O in f){const I=f[O];Ce(I)&&(i[O]=I.bind(n))}if(p){const O=p.call(n,n);We(O)&&(e.data=ki(O))}if(Xs=!0,u)for(const O in u){const I=u[O],F=Ce(I)?I.bind(n,n):Ce(I.get)?I.get.bind(n,n):Ft,D=!Ce(I)&&Ce(I.set)?I.set.bind(n):Ft,W=Ee({get:F,set:D});Object.defineProperty(i,O,{enumerable:!0,configurable:!0,get:()=>W.value,set:G=>W.value=G})}if(g)for(const O in g)Bh(g[O],i,n,O);if(s){const O=Ce(s)?s.call(n):s;Reflect.ownKeys(O).forEach(I=>{Yi(I,O[I])})}o&&hc(o,e,"c");function T(O,I){ge(I)?I.forEach(F=>O(F.bind(n))):I&&O(I.bind(n))}if(T(Lh,r),T(nt,l),T(Th,c),T(zo,a),T(kh,d),T(Eh,m),T(Fh,x),T(Oh,$),T(Ih,R),T(kr,b),T(Vo,S),T(Mh,k),ge(_))if(_.length){const O=e.exposed||(e.exposed={});_.forEach(I=>{Object.defineProperty(O,I,{get:()=>n[I],set:F=>n[I]=F})})}else e.exposed||(e.exposed={});C&&e.render===Ft&&(e.render=C),v!=null&&(e.inheritAttrs=v),M&&(e.components=M),A&&(e.directives=A)}function ey(e,t,n=Ft){ge(e)&&(e=Zs(e));for(const i in e){const p=e[i];let u;We(p)?"default"in p?u=kt(p.from||i,p.default,!0):u=kt(p.from||i):u=kt(p),qe(u)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>u.value,set:f=>u.value=f}):t[i]=u}}function hc(e,t,n){_t(ge(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,n)}function Bh(e,t,n,i){const p=i.includes(".")?Sh(n,i):()=>n[i];if(Ge(e)){const u=t[e];Ce(u)&&Ye(p,u)}else if(Ce(e))Ye(p,e.bind(n));else if(We(e))if(ge(e))e.forEach(u=>Bh(u,t,n,i));else{const u=Ce(e.handler)?e.handler.bind(n):t[e.handler];Ce(u)&&Ye(p,u,e)}}function tl(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:p,optionsCache:u,config:{optionMergeStrategies:f}}=e.appContext,g=u.get(t);let s;return g?s=g:!p.length&&!n&&!i?s=t:(s={},p.length&&p.forEach(h=>po(s,h,f,!0)),po(s,t,f)),We(t)&&u.set(t,s),s}function po(e,t,n,i=!1){const{mixins:p,extends:u}=t;u&&po(e,u,n,!0),p&&p.forEach(f=>po(e,f,n,!0));for(const f in t)if(!(i&&f==="expose")){const g=ty[f]||n&&n[f];e[f]=g?g(e[f],t[f]):t[f]}return e}const ty={data:fc,props:dc,emits:dc,methods:Hi,computed:Hi,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:Hi,directives:Hi,watch:iy,provide:fc,inject:ny};function fc(e,t){return t?e?function(){return Ue(Ce(e)?e.call(this,this):e,Ce(t)?t.call(this,this):t)}:t:e}function ny(e,t){return Hi(Zs(e),Zs(t))}function Zs(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 Hi(e,t){return e?Ue(Object.create(null),e,t):t}function dc(e,t){return e?ge(e)&&ge(t)?[...new Set([...e,...t])]:Ue(Object.create(null),fr(e),fr(t??{})):t}function iy(e,t){if(!e)return t;if(!t)return e;const n=Ue(Object.create(null),e);for(const i in t)n[i]=ft(e[i],t[i]);return n}function Wh(){return{app:null,config:{isNativeTag:nm,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 ry=0;function oy(e,t){return function(i,p=null){Ce(i)||(i=Ue({},i)),p!=null&&!We(p)&&(p=null);const u=Wh(),f=new Set;let g=!1;const s=u.app={_uid:ry++,_component:i,_props:p,_container:null,_context:u,_instance:null,version:uf,get config(){return u.config},set config(h){},use(h,...o){return f.has(h)||(h&&Ce(h.install)?(f.add(h),h.install(s,...o)):Ce(h)&&(f.add(h),h(s,...o))),s},mixin(h){return u.mixins.includes(h)||u.mixins.push(h),s},component(h,o){return o?(u.components[h]=o,s):u.components[h]},directive(h,o){return o?(u.directives[h]=o,s):u.directives[h]},mount(h,o,r){if(!g){const l=he(i,p);return l.appContext=u,o&&t?t(l,h):e(l,h,r),g=!0,s._container=h,h.__vue_app__=s,Go(l.component)||l.component.proxy}},unmount(){g&&(e(null,s._container),delete s._container.__vue_app__)},provide(h,o){return u.provides[h]=o,s},runWithContext(h){dr=s;try{return h()}finally{dr=null}}};return s}}let dr=null;function Yi(e,t){if(Qe){let n=Qe.provides;const i=Qe.parent&&Qe.parent.provides;i===n&&(n=Qe.provides=Object.create(i)),n[e]=t}}function kt(e,t,n=!1){const i=Qe||it;if(i||dr){const p=i?i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:dr._context.provides;if(p&&e in p)return p[e];if(arguments.length>1)return n&&Ce(t)?t.call(i&&i.proxy):t}}function sy(){return!!(Qe||it||dr)}function ay(e,t,n,i=!1){const p={},u={};lo(u,jo,1),e.propsDefaults=Object.create(null),Hh(e,t,p,u);for(const f in e.propsOptions[0])f in p||(p[f]=void 0);n?e.props=i?p:Ba(p):e.type.props?e.props=p:e.props=u,e.attrs=u}function ly(e,t,n,i){const{props:p,attrs:u,vnode:{patchFlag:f}}=e,g=Ie(p),[s]=e.propsOptions;let h=!1;if((i||f>0)&&!(f&16)){if(f&8){const o=e.vnode.dynamicProps;for(let r=0;r<o.length;r++){let l=o[r];if(Bo(e.emitsOptions,l))continue;const c=t[l];if(s)if(Fe(u,l))c!==u[l]&&(u[l]=c,h=!0);else{const a=vt(l);p[a]=Qs(s,g,a,c,e,!1)}else c!==u[l]&&(u[l]=c,h=!0)}}}else{Hh(e,t,p,u)&&(h=!0);let o;for(const r in g)(!t||!Fe(t,r)&&((o=xt(r))===r||!Fe(t,o)))&&(s?n&&(n[r]!==void 0||n[o]!==void 0)&&(p[r]=Qs(s,g,r,void 0,e,!0)):delete p[r]);if(u!==g)for(const r in u)(!t||!Fe(t,r))&&(delete u[r],h=!0)}h&&sn(e,"set","$attrs")}function Hh(e,t,n,i){const[p,u]=e.propsOptions;let f=!1,g;if(t)for(let s in t){if(ji(s))continue;const h=t[s];let o;p&&Fe(p,o=vt(s))?!u||!u.includes(o)?n[o]=h:(g||(g={}))[o]=h:Bo(e.emitsOptions,s)||(!(s in i)||h!==i[s])&&(i[s]=h,f=!0)}if(u){const s=Ie(n),h=g||Be;for(let o=0;o<u.length;o++){const r=u[o];n[r]=Qs(p,s,r,h[r],e,!Fe(h,r))}}return f}function Qs(e,t,n,i,p,u){const f=e[n];if(f!=null){const g=Fe(f,"default");if(g&&i===void 0){const s=f.default;if(f.type!==Function&&!f.skipFactory&&Ce(s)){const{propsDefaults:h}=p;n in h?i=h[n]:(Ln(p),i=h[n]=s.call(null,t),Cn())}else i=s}f[0]&&(u&&!g?i=!1:f[1]&&(i===""||i===xt(n))&&(i=!0))}return i}function Uh(e,t,n=!1){const i=t.propsCache,p=i.get(e);if(p)return p;const u=e.props,f={},g=[];let s=!1;if(!Ce(e)){const o=r=>{s=!0;const[l,c]=Uh(r,t,!0);Ue(f,l),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 We(e)&&i.set(e,li),li;if(ge(u))for(let o=0;o<u.length;o++){const r=vt(u[o]);pc(r)&&(f[r]=Be)}else if(u)for(const o in u){const r=vt(o);if(pc(r)){const l=u[o],c=f[r]=ge(l)||Ce(l)?{type:l}:Ue({},l);if(c){const a=vc(Boolean,c.type),d=vc(String,c.type);c[0]=a>-1,c[1]=d<0||a<d,(a>-1||Fe(c,"default"))&&g.push(r)}}}const h=[f,g];return We(e)&&i.set(e,h),h}function pc(e){return e[0]!=="$"}function gc(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function mc(e,t){return gc(e)===gc(t)}function vc(e,t){return ge(t)?t.findIndex(n=>mc(n,e)):Ce(t)&&mc(t,e)?0:-1}const zh=e=>e[0]==="_"||e==="$stable",nl=e=>ge(e)?e.map(wt):[wt(e)],cy=(e,t,n)=>{if(t._n)return t;const i=dt((...p)=>nl(t(...p)),n);return i._c=!1,i},Vh=(e,t,n)=>{const i=e._ctx;for(const p in e){if(zh(p))continue;const u=e[p];if(Ce(u))t[p]=cy(p,u,i);else if(u!=null){const f=nl(u);t[p]=()=>f}}},jh=(e,t)=>{const n=nl(t);e.slots.default=()=>n},uy=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Ie(t),lo(t,"_",n)):Vh(t,e.slots={})}else e.slots={},t&&jh(e,t);lo(e.slots,jo,1)},hy=(e,t,n)=>{const{vnode:i,slots:p}=e;let u=!0,f=Be;if(i.shapeFlag&32){const g=t._;g?n&&g===1?u=!1:(Ue(p,t),!n&&g===1&&delete p._):(u=!t.$stable,Vh(t,p)),f=t}else t&&(jh(e,t),f={default:1});if(u)for(const g in p)!zh(g)&&!(g in f)&&delete p[g]};function go(e,t,n,i,p=!1){if(ge(e)){e.forEach((l,c)=>go(l,t&&(ge(t)?t[c]:t),n,i,p));return}if(zn(i)&&!p)return;const u=i.shapeFlag&4?Go(i.component)||i.component.proxy:i.el,f=p?null:u,{i:g,r:s}=e,h=t&&t.r,o=g.refs===Be?g.refs={}:g.refs,r=g.setupState;if(h!=null&&h!==s&&(Ge(h)?(o[h]=null,Fe(r,h)&&(r[h]=null)):qe(h)&&(h.value=null)),Ce(s))en(s,g,12,[f,o]);else{const l=Ge(s),c=qe(s);if(l||c){const a=()=>{if(e.f){const d=l?Fe(r,s)?r[s]:o[s]:s.value;p?ge(d)&&Ma(d,u):ge(d)?d.includes(u)||d.push(u):l?(o[s]=[u],Fe(r,s)&&(r[s]=o[s])):(s.value=[u],e.k&&(o[e.k]=s.value))}else l?(o[s]=f,Fe(r,s)&&(r[s]=f)):c&&(s.value=f,e.k&&(o[e.k]=f))};f?(a.id=-1,ot(a,n)):a()}}}let gn=!1;const Gr=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",Kr=e=>e.nodeType===8;function fy(e){const{mt:t,p:n,o:{patchProp:i,createText:p,nextSibling:u,parentNode:f,remove:g,insert:s,createComment:h}}=e,o=(y,b)=>{if(!b.hasChildNodes()){n(null,y,b),fo(),b._vnode=y;return}gn=!1,r(b.firstChild,y,null,null,null),fo(),b._vnode=y,gn&&console.error("Hydration completed but contains mismatches.")},r=(y,b,E,S,C,$=!1)=>{const R=Kr(y)&&y.data==="[",x=()=>d(y,b,E,S,C,R),{type:k,ref:_,shapeFlag:v,patchFlag:M}=b;let A=y.nodeType;b.el=y,M===-2&&($=!1,b.dynamicChildren=null);let w=null;switch(k){case Zn:A!==3?b.children===""?(s(b.el=p(""),f(y),y),w=y):w=x():(y.data!==b.children&&(gn=!0,y.data=b.children),w=u(y));break;case lt:A!==8||R?w=x():w=u(y);break;case Vn:if(R&&(y=u(y),A=y.nodeType),A===1||A===3){w=y;const L=!b.children.length;for(let T=0;T<b.staticCount;T++)L&&(b.children+=w.nodeType===1?w.outerHTML:w.data),T===b.staticCount-1&&(b.anchor=w),w=u(w);return R?u(w):w}else x();break;case Se:R?w=a(y,b,E,S,C,$):w=x();break;default:if(v&1)A!==1||b.type.toLowerCase()!==y.tagName.toLowerCase()?w=x():w=l(y,b,E,S,C,$);else if(v&6){b.slotScopeIds=C;const L=f(y);if(t(b,L,null,E,S,Gr(L),$),w=R?m(y):u(y),w&&Kr(w)&&w.data==="teleport end"&&(w=u(w)),zn(b)){let T;R?(T=he(Se),T.anchor=w?w.previousSibling:L.lastChild):T=y.nodeType===3?et(""):he("div"),T.el=y,b.component.subTree=T}}else v&64?A!==8?w=x():w=b.type.hydrate(y,b,E,S,C,$,e,c):v&128&&(w=b.type.hydrate(y,b,E,S,Gr(f(y)),C,$,e,r))}return _!=null&&go(_,null,S,b),w},l=(y,b,E,S,C,$)=>{$=$||!!b.dynamicChildren;const{type:R,props:x,patchFlag:k,shapeFlag:_,dirs:v}=b,M=R==="input"&&v||R==="option";if(M||k!==-1){if(v&&Dt(b,null,E,"created"),x)if(M||!$||k&48)for(const w in x)(M&&w.endsWith("value")||$r(w)&&!ji(w))&&i(y,w,null,x[w],!1,void 0,E);else x.onClick&&i(y,"onClick",null,x.onClick,!1,void 0,E);let A;if((A=x&&x.onVnodeBeforeMount)&&gt(A,E,b),v&&Dt(b,null,E,"beforeMount"),((A=x&&x.onVnodeMounted)||v)&&$h(()=>{A&&gt(A,E,b),v&&Dt(b,null,E,"mounted")},S),_&16&&!(x&&(x.innerHTML||x.textContent))){let w=c(y.firstChild,b,y,E,S,C,$);for(;w;){gn=!0;const L=w;w=w.nextSibling,g(L)}}else _&8&&y.textContent!==b.children&&(gn=!0,y.textContent=b.children)}return y.nextSibling},c=(y,b,E,S,C,$,R)=>{R=R||!!b.dynamicChildren;const x=b.children,k=x.length;for(let _=0;_<k;_++){const v=R?x[_]:x[_]=wt(x[_]);if(y)y=r(y,v,S,C,$,R);else{if(v.type===Zn&&!v.children)continue;gn=!0,n(null,v,E,null,S,C,Gr(E),$)}}return y},a=(y,b,E,S,C,$)=>{const{slotScopeIds:R}=b;R&&(C=C?C.concat(R):R);const x=f(y),k=c(u(y),b,x,E,S,C,$);return k&&Kr(k)&&k.data==="]"?u(b.anchor=k):(gn=!0,s(b.anchor=h("]"),x,k),k)},d=(y,b,E,S,C,$)=>{if(gn=!0,b.el=null,$){const k=m(y);for(;;){const _=u(y);if(_&&_!==k)g(_);else break}}const R=u(y),x=f(y);return g(y),n(null,b,x,R,E,S,Gr(x),C),R},m=y=>{let b=0;for(;y;)if(y=u(y),y&&Kr(y)&&(y.data==="["&&b++,y.data==="]")){if(b===0)return u(y);b--}return y};return[o,r]}const ot=$h;function Gh(e){return Yh(e)}function Kh(e){return Yh(e,fy)}function Yh(e,t){const n=Us();n.__VUE__=!0;const{insert:i,remove:p,patchProp:u,createElement:f,createText:g,createComment:s,setText:h,setElementText:o,parentNode:r,nextSibling:l,setScopeId:c=Ft,insertStaticContent:a}=e,d=(N,B,j,Z=null,te=null,ie=null,le=!1,se=null,ce=!!B.dynamicChildren)=>{if(N===B)return;N&&!Mt(N,B)&&(Z=z(N),G(N,te,ie,!0),N=null),B.patchFlag===-2&&(ce=!1,B.dynamicChildren=null);const{type:re,ref:ve,shapeFlag:de}=B;switch(re){case Zn:m(N,B,j,Z);break;case lt:y(N,B,j,Z);break;case Vn:N==null&&b(B,j,Z,le);break;case Se:M(N,B,j,Z,te,ie,le,se,ce);break;default:de&1?C(N,B,j,Z,te,ie,le,se,ce):de&6?A(N,B,j,Z,te,ie,le,se,ce):(de&64||de&128)&&re.process(N,B,j,Z,te,ie,le,se,ce,K)}ve!=null&&te&&go(ve,N&&N.ref,ie,B||N,!B)},m=(N,B,j,Z)=>{if(N==null)i(B.el=g(B.children),j,Z);else{const te=B.el=N.el;B.children!==N.children&&h(te,B.children)}},y=(N,B,j,Z)=>{N==null?i(B.el=s(B.children||""),j,Z):B.el=N.el},b=(N,B,j,Z)=>{[N.el,N.anchor]=a(N.children,B,j,Z,N.el,N.anchor)},E=({el:N,anchor:B},j,Z)=>{let te;for(;N&&N!==B;)te=l(N),i(N,j,Z),N=te;i(B,j,Z)},S=({el:N,anchor:B})=>{let j;for(;N&&N!==B;)j=l(N),p(N),N=j;p(B)},C=(N,B,j,Z,te,ie,le,se,ce)=>{le=le||B.type==="svg",N==null?$(B,j,Z,te,ie,le,se,ce):k(N,B,te,ie,le,se,ce)},$=(N,B,j,Z,te,ie,le,se)=>{let ce,re;const{type:ve,props:de,shapeFlag:me,transition:_e,dirs:Q}=N;if(ce=N.el=f(N.type,ie,de&&de.is,de),me&8?o(ce,N.children):me&16&&x(N.children,ce,null,Z,te,ie&&ve!=="foreignObject",le,se),Q&&Dt(N,null,Z,"created"),R(ce,N,N.scopeId,le,Z),de){for(const fe in de)fe!=="value"&&!ji(fe)&&u(ce,fe,null,de[fe],ie,N.children,Z,te,J);"value"in de&&u(ce,"value",null,de.value),(re=de.onVnodeBeforeMount)&&gt(re,Z,N)}Q&&Dt(N,null,Z,"beforeMount");const ae=(!te||te&&!te.pendingBranch)&&_e&&!_e.persisted;ae&&_e.beforeEnter(ce),i(ce,B,j),((re=de&&de.onVnodeMounted)||ae||Q)&&ot(()=>{re&&gt(re,Z,N),ae&&_e.enter(ce),Q&&Dt(N,null,Z,"mounted")},te)},R=(N,B,j,Z,te)=>{if(j&&c(N,j),Z)for(let ie=0;ie<Z.length;ie++)c(N,Z[ie]);if(te){let ie=te.subTree;if(B===ie){const le=te.vnode;R(N,le,le.scopeId,le.slotScopeIds,te.parent)}}},x=(N,B,j,Z,te,ie,le,se,ce=0)=>{for(let re=ce;re<N.length;re++){const ve=N[re]=se?wn(N[re]):wt(N[re]);d(null,ve,B,j,Z,te,ie,le,se)}},k=(N,B,j,Z,te,ie,le)=>{const se=B.el=N.el;let{patchFlag:ce,dynamicChildren:re,dirs:ve}=B;ce|=N.patchFlag&16;const de=N.props||Be,me=B.props||Be;let _e;j&&On(j,!1),(_e=me.onVnodeBeforeUpdate)&&gt(_e,j,B,N),ve&&Dt(B,N,j,"beforeUpdate"),j&&On(j,!0);const Q=te&&B.type!=="foreignObject";if(re?_(N.dynamicChildren,re,se,j,Z,Q,ie):le||I(N,B,se,null,j,Z,Q,ie,!1),ce>0){if(ce&16)v(se,B,de,me,j,Z,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 fe=0;fe<ae.length;fe++){const be=ae[fe],Re=de[be],Ne=me[be];(Ne!==Re||be==="value")&&u(se,be,Re,Ne,te,N.children,j,Z,J)}}ce&1&&N.children!==B.children&&o(se,B.children)}else!le&&re==null&&v(se,B,de,me,j,Z,te);((_e=me.onVnodeUpdated)||ve)&&ot(()=>{_e&&gt(_e,j,B,N),ve&&Dt(B,N,j,"updated")},Z)},_=(N,B,j,Z,te,ie,le)=>{for(let se=0;se<B.length;se++){const ce=N[se],re=B[se],ve=ce.el&&(ce.type===Se||!Mt(ce,re)||ce.shapeFlag&70)?r(ce.el):j;d(ce,re,ve,null,Z,te,ie,le,!0)}},v=(N,B,j,Z,te,ie,le)=>{if(j!==Z){if(j!==Be)for(const se in j)!ji(se)&&!(se in Z)&&u(N,se,j[se],null,le,B.children,te,ie,J);for(const se in Z){if(ji(se))continue;const ce=Z[se],re=j[se];ce!==re&&se!=="value"&&u(N,se,re,ce,le,B.children,te,ie,J)}"value"in Z&&u(N,"value",j.value,Z.value)}},M=(N,B,j,Z,te,ie,le,se,ce)=>{const re=B.el=N?N.el:g(""),ve=B.anchor=N?N.anchor:g("");let{patchFlag:de,dynamicChildren:me,slotScopeIds:_e}=B;_e&&(se=se?se.concat(_e):_e),N==null?(i(re,j,Z),i(ve,j,Z),x(B.children,j,ve,te,ie,le,se,ce)):de>0&&de&64&&me&&N.dynamicChildren?(_(N.dynamicChildren,me,j,te,ie,le,se),(B.key!=null||te&&B===te.subTree)&&il(N,B,!0)):I(N,B,j,ve,te,ie,le,se,ce)},A=(N,B,j,Z,te,ie,le,se,ce)=>{B.slotScopeIds=se,N==null?B.shapeFlag&512?te.ctx.activate(B,j,Z,le,ce):w(B,j,Z,te,ie,le,ce):L(N,B,ce)},w=(N,B,j,Z,te,ie,le)=>{const se=N.component=tf(N,Z,te);if(xr(N)&&(se.ctx.renderer=K),rf(se),se.asyncDep){if(te&&te.registerDep(se,T),!N.el){const ce=se.subTree=he(lt);y(null,ce,B,j)}return}T(se,N,B,j,te,ie,le)},L=(N,B,j)=>{const Z=B.component=N.component;if(vv(N,B,j))if(Z.asyncDep&&!Z.asyncResolved){O(Z,B,j);return}else Z.next=B,uv(Z.update),Z.update();else B.el=N.el,Z.vnode=B},T=(N,B,j,Z,te,ie,le)=>{const se=()=>{if(N.isMounted){let{next:ve,bu:de,u:me,parent:_e,vnode:Q}=N,ae=ve,fe;On(N,!1),ve?(ve.el=Q.el,O(N,ve,le)):ve=Q,de&&ui(de),(fe=ve.props&&ve.props.onVnodeBeforeUpdate)&&gt(fe,_e,ve,Q),On(N,!0);const be=qr(N),Re=N.subTree;N.subTree=be,d(Re,be,r(Re.el),z(Re),N,te,ie),ve.el=be.el,ae===null&&Xa(N,be.el),me&&ot(me,te),(fe=ve.props&&ve.props.onVnodeUpdated)&&ot(()=>gt(fe,_e,ve,Q),te)}else{let ve;const{el:de,props:me}=B,{bm:_e,m:Q,parent:ae}=N,fe=zn(B);if(On(N,!1),_e&&ui(_e),!fe&&(ve=me&&me.onVnodeBeforeMount)&&gt(ve,ae,B),On(N,!0),de&&ee){const be=()=>{N.subTree=qr(N),ee(de,N.subTree,N,te,null)};fe?B.type.__asyncLoader().then(()=>!N.isUnmounted&&be()):be()}else{const be=N.subTree=qr(N);d(null,be,j,Z,N,te,ie),B.el=be.el}if(Q&&ot(Q,te),!fe&&(ve=me&&me.onVnodeMounted)){const be=B;ot(()=>gt(ve,ae,be),te)}(B.shapeFlag&256||ae&&zn(ae.vnode)&&ae.vnode.shapeFlag&256)&&N.a&&ot(N.a,te),N.isMounted=!0,B=j=Z=null}},ce=N.effect=new Sr(se,()=>Do(re),N.scope),re=N.update=()=>ce.run();re.id=N.uid,On(N,!0),re()},O=(N,B,j)=>{B.component=N;const Z=N.vnode.props;N.vnode=B,N.next=null,ly(N,B.props,Z,j),hy(N,B.children,j),Ai(),sc(),xi()},I=(N,B,j,Z,te,ie,le,se,ce=!1)=>{const re=N&&N.children,ve=N?N.shapeFlag:0,de=B.children,{patchFlag:me,shapeFlag:_e}=B;if(me>0){if(me&128){D(re,de,j,Z,te,ie,le,se,ce);return}else if(me&256){F(re,de,j,Z,te,ie,le,se,ce);return}}_e&8?(ve&16&&J(re,te,ie),de!==re&&o(j,de)):ve&16?_e&16?D(re,de,j,Z,te,ie,le,se,ce):J(re,te,ie,!0):(ve&8&&o(j,""),_e&16&&x(de,j,Z,te,ie,le,se,ce))},F=(N,B,j,Z,te,ie,le,se,ce)=>{N=N||li,B=B||li;const re=N.length,ve=B.length,de=Math.min(re,ve);let me;for(me=0;me<de;me++){const _e=B[me]=ce?wn(B[me]):wt(B[me]);d(N[me],_e,j,null,te,ie,le,se,ce)}re>ve?J(N,te,ie,!0,!1,de):x(B,j,Z,te,ie,le,se,ce,de)},D=(N,B,j,Z,te,ie,le,se,ce)=>{let re=0;const ve=B.length;let de=N.length-1,me=ve-1;for(;re<=de&&re<=me;){const _e=N[re],Q=B[re]=ce?wn(B[re]):wt(B[re]);if(Mt(_e,Q))d(_e,Q,j,null,te,ie,le,se,ce);else break;re++}for(;re<=de&&re<=me;){const _e=N[de],Q=B[me]=ce?wn(B[me]):wt(B[me]);if(Mt(_e,Q))d(_e,Q,j,null,te,ie,le,se,ce);else break;de--,me--}if(re>de){if(re<=me){const _e=me+1,Q=_e<ve?B[_e].el:Z;for(;re<=me;)d(null,B[re]=ce?wn(B[re]):wt(B[re]),j,Q,te,ie,le,se,ce),re++}}else if(re>me)for(;re<=de;)G(N[re],te,ie,!0),re++;else{const _e=re,Q=re,ae=new Map;for(re=Q;re<=me;re++){const ke=B[re]=ce?wn(B[re]):wt(B[re]);ke.key!=null&&ae.set(ke.key,re)}let fe,be=0;const Re=me-Q+1;let Ne=!1,Ke=0;const De=new Array(Re);for(re=0;re<Re;re++)De[re]=0;for(re=_e;re<=de;re++){const ke=N[re];if(be>=Re){G(ke,te,ie,!0);continue}let ze;if(ke.key!=null)ze=ae.get(ke.key);else for(fe=Q;fe<=me;fe++)if(De[fe-Q]===0&&Mt(ke,B[fe])){ze=fe;break}ze===void 0?G(ke,te,ie,!0):(De[ze-Q]=re+1,ze>=Ke?Ke=ze:Ne=!0,d(ke,B[ze],j,null,te,ie,le,se,ce),be++)}const He=Ne?dy(De):li;for(fe=He.length-1,re=Re-1;re>=0;re--){const ke=Q+re,ze=B[ke],fn=ke+1<ve?B[ke+1].el:Z;De[re]===0?d(null,ze,j,fn,te,ie,le,se,ce):Ne&&(fe<0||re!==He[fe]?W(ze,j,fn,2):fe--)}}},W=(N,B,j,Z,te=null)=>{const{el:ie,type:le,transition:se,children:ce,shapeFlag:re}=N;if(re&6){W(N.component.subTree,B,j,Z);return}if(re&128){N.suspense.move(B,j,Z);return}if(re&64){le.move(N,B,j,K);return}if(le===Se){i(ie,B,j);for(let de=0;de<ce.length;de++)W(ce[de],B,j,Z);i(N.anchor,B,j);return}if(le===Vn){E(N,B,j);return}if(Z!==2&&re&1&&se)if(Z===0)se.beforeEnter(ie),i(ie,B,j),ot(()=>se.enter(ie),te);else{const{leave:de,delayLeave:me,afterLeave:_e}=se,Q=()=>i(ie,B,j),ae=()=>{de(ie,()=>{Q(),_e&&_e()})};me?me(ie,Q,ae):ae()}else i(ie,B,j)},G=(N,B,j,Z=!1,te=!1)=>{const{type:ie,props:le,ref:se,children:ce,dynamicChildren:re,shapeFlag:ve,patchFlag:de,dirs:me}=N;if(se!=null&&go(se,null,j,N,!0),ve&256){B.ctx.deactivate(N);return}const _e=ve&1&&me,Q=!zn(N);let ae;if(Q&&(ae=le&&le.onVnodeBeforeUnmount)&&gt(ae,B,N),ve&6)X(N.component,j,Z);else{if(ve&128){N.suspense.unmount(j,Z);return}_e&&Dt(N,null,B,"beforeUnmount"),ve&64?N.type.remove(N,B,j,te,K,Z):re&&(ie!==Se||de>0&&de&64)?J(re,B,j,!1,!0):(ie===Se&&de&384||!te&&ve&16)&&J(ce,B,j),Z&&U(N)}(Q&&(ae=le&&le.onVnodeUnmounted)||_e)&&ot(()=>{ae&&gt(ae,B,N),_e&&Dt(N,null,B,"unmounted")},j)},U=N=>{const{type:B,el:j,anchor:Z,transition:te}=N;if(B===Se){H(j,Z);return}if(B===Vn){S(N);return}const ie=()=>{p(j),te&&!te.persisted&&te.afterLeave&&te.afterLeave()};if(N.shapeFlag&1&&te&&!te.persisted){const{leave:le,delayLeave:se}=te,ce=()=>le(j,ie);se?se(N.el,ie,ce):ce()}else ie()},H=(N,B)=>{let j;for(;N!==B;)j=l(N),p(N),N=j;p(B)},X=(N,B,j)=>{const{bum:Z,scope:te,update:ie,subTree:le,um:se}=N;Z&&ui(Z),te.stop(),ie&&(ie.active=!1,G(le,N,B,j)),se&&ot(se,B),ot(()=>{N.isUnmounted=!0},B),B&&B.pendingBranch&&!B.isUnmounted&&N.asyncDep&&!N.asyncResolved&&N.suspenseId===B.pendingId&&(B.deps--,B.deps===0&&B.resolve())},J=(N,B,j,Z=!1,te=!1,ie=0)=>{for(let le=ie;le<N.length;le++)G(N[le],B,j,Z,te)},z=N=>N.shapeFlag&6?z(N.component.subTree):N.shapeFlag&128?N.suspense.next():l(N.anchor||N.el),Y=(N,B,j)=>{N==null?B._vnode&&G(B._vnode,null,null,!0):d(B._vnode||null,N,B,null,null,null,j),sc(),fo(),B._vnode=N},K={p:d,um:G,m:W,r:U,mt:w,mc:x,pc:I,pbc:_,n:z,o:e};let V,ee;return t&&([V,ee]=t(K)),{render:Y,hydrate:V,createApp:oy(Y,V)}}function On({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function il(e,t,n=!1){const i=e.children,p=t.children;if(ge(i)&&ge(p))for(let u=0;u<i.length;u++){const f=i[u];let g=p[u];g.shapeFlag&1&&!g.dynamicChildren&&((g.patchFlag<=0||g.patchFlag===32)&&(g=p[u]=wn(p[u]),g.el=f.el),n||il(f,g)),g.type===Zn&&(g.el=f.el)}}function dy(e){const t=e.slice(),n=[0];let i,p,u,f,g;const s=e.length;for(i=0;i<s;i++){const h=e[i];if(h!==0){if(p=n[n.length-1],e[p]<h){t[i]=p,n.push(i);continue}for(u=0,f=n.length-1;u<f;)g=u+f>>1,e[n[g]]<h?u=g+1:f=g;h<e[n[u]]&&(u>0&&(t[i]=n[u-1]),n[u]=i)}}for(u=n.length,f=n[u-1];u-- >0;)n[u]=f,f=t[f];return n}const py=e=>e.__isTeleport,Xi=e=>e&&(e.disabled||e.disabled===""),yc=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Js=(e,t)=>{const n=e&&e.to;return Ge(n)?t?t(n):null:n},gy={__isTeleport:!0,process(e,t,n,i,p,u,f,g,s,h){const{mc:o,pc:r,pbc:l,o:{insert:c,querySelector:a,createText:d,createComment:m}}=h,y=Xi(t.props);let{shapeFlag:b,children:E,dynamicChildren:S}=t;if(e==null){const C=t.el=d(""),$=t.anchor=d("");c(C,n,i),c($,n,i);const R=t.target=Js(t.props,a),x=t.targetAnchor=d("");R&&(c(x,R),f=f||yc(R));const k=(_,v)=>{b&16&&o(E,_,v,p,u,f,g,s)};y?k(n,$):R&&k(R,x)}else{t.el=e.el;const C=t.anchor=e.anchor,$=t.target=e.target,R=t.targetAnchor=e.targetAnchor,x=Xi(e.props),k=x?n:$,_=x?C:R;if(f=f||yc($),S?(l(e.dynamicChildren,S,k,p,u,f,g),il(e,t,!0)):s||r(e,t,k,_,p,u,f,g,!1),y)x||Yr(t,n,C,h,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const v=t.target=Js(t.props,a);v&&Yr(t,v,null,h,0)}else x&&Yr(t,$,R,h,1)}Xh(t)},remove(e,t,n,i,{um:p,o:{remove:u}},f){const{shapeFlag:g,children:s,anchor:h,targetAnchor:o,target:r,props:l}=e;if(r&&u(o),(f||!Xi(l))&&(u(h),g&16))for(let c=0;c<s.length;c++){const a=s[c];p(a,t,n,!0,!!a.dynamicChildren)}},move:Yr,hydrate:my};function Yr(e,t,n,{o:{insert:i},m:p},u=2){u===0&&i(e.targetAnchor,t,n);const{el:f,anchor:g,shapeFlag:s,children:h,props:o}=e,r=u===2;if(r&&i(f,t,n),(!r||Xi(o))&&s&16)for(let l=0;l<h.length;l++)p(h[l],t,n,2);r&&i(g,t,n)}function my(e,t,n,i,p,u,{o:{nextSibling:f,parentNode:g,querySelector:s}},h){const o=t.target=Js(t.props,s);if(o){const r=o._lpa||o.firstChild;if(t.shapeFlag&16)if(Xi(t.props))t.anchor=h(f(e),t,g(e),n,i,p,u),t.targetAnchor=r;else{t.anchor=f(e);let l=r;for(;l;)if(l=f(l),l&&l.nodeType===8&&l.data==="teleport anchor"){t.targetAnchor=l,o._lpa=t.targetAnchor&&f(t.targetAnchor);break}h(r,t,o,n,i,p,u)}Xh(t)}return t.anchor&&f(t.anchor)}const vy=gy;function Xh(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const Se=Symbol.for("v-fgt"),Zn=Symbol.for("v-txt"),lt=Symbol.for("v-cmt"),Vn=Symbol.for("v-stc"),Zi=[];let mt=null;function q(e=!1){Zi.push(mt=e?null:[])}function Zh(){Zi.pop(),mt=Zi[Zi.length-1]||null}let Qn=1;function qs(e){Qn+=e}function Qh(e){return e.dynamicChildren=Qn>0?mt||li:null,Zh(),Qn>0&&mt&&mt.push(e),e}function oe(e,t,n,i,p,u){return Qh(P(e,t,n,i,p,u,!0))}function Me(e,t,n,i,p){return Qh(he(e,t,n,i,p,!0))}function Rn(e){return e?e.__v_isVNode===!0:!1}function Mt(e,t){return e.type===t.type&&e.key===t.key}function yy(e){}const jo="__vInternal",Jh=({key:e})=>e??null,eo=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ge(e)||qe(e)||Ce(e)?{i:it,r:e,k:t,f:!!n}:e:null);function P(e,t=null,n=null,i=0,p=null,u=e===Se?0:1,f=!1,g=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Jh(t),ref:t&&eo(t),scopeId:Wo,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:p,dynamicChildren:null,appContext:null,ctx:it};return g?(rl(s,n),u&128&&e.normalize(s)):n&&(s.shapeFlag|=Ge(n)?8:16),Qn>0&&!f&&mt&&(s.patchFlag>0||u&6)&&s.patchFlag!==32&&mt.push(s),s}const he=by;function by(e,t=null,n=null,i=0,p=null,u=!1){if((!e||e===Nh)&&(e=lt),Rn(e)){const g=Vt(e,t,!0);return n&&rl(g,n),Qn>0&&!u&&mt&&(g.shapeFlag&6?mt[mt.indexOf(e)]=g:mt.push(g)),g.patchFlag|=-2,g}if(ky(e)&&(e=e.__vccOpts),t){t=qh(t);let{class:g,style:s}=t;g&&!Ge(g)&&(t.class=Cr(g)),We(s)&&(Wa(s)&&!ge(s)&&(s=Ue({},s)),t.style=_r(s))}const f=Ge(e)?1:wh(e)?128:py(e)?64:We(e)?4:Ce(e)?2:0;return P(e,t,n,i,p,f,u,!0)}function qh(e){return e?Wa(e)||jo in e?Ue({},e):e:null}function Vt(e,t,n=!1){const{props:i,ref:p,patchFlag:u,children:f}=e,g=t?ef(i||{},t):i;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:g,key:g&&Jh(g),ref:t&&t.ref?n&&p?ge(p)?p.concat(eo(t)):[p,eo(t)]:eo(t):p,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:f,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Se?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&&Vt(e.ssContent),ssFallback:e.ssFallback&&Vt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function et(e=" ",t=0){return he(Zn,null,e,t)}function wy(e,t){const n=he(Vn,null,e);return n.staticCount=t,n}function we(e="",t=!1){return t?(q(),Me(lt,null,e)):he(lt,null,e)}function wt(e){return e==null||typeof e=="boolean"?he(lt):ge(e)?he(Se,null,e.slice()):typeof e=="object"?wn(e):he(Zn,null,String(e))}function wn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Vt(e)}function rl(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 p=t.default;p&&(p._c&&(p._d=!1),rl(e,p()),p._c&&(p._d=!0));return}else{n=32;const p=t._;!p&&!(jo in t)?t._ctx=it:p===3&&it&&(it.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ce(t)?(t={default:t,_ctx:it},n=32):(t=String(t),i&64?(n=16,t=[et(t)]):n=8);e.children=t,e.shapeFlag|=n}function ef(...e){const t={};for(let n=0;n<e.length;n++){const i=e[n];for(const p in i)if(p==="class")t.class!==i.class&&(t.class=Cr([t.class,i.class]));else if(p==="style")t.style=_r([t.style,i.style]);else if($r(p)){const u=t[p],f=i[p];f&&u!==f&&!(ge(u)&&u.includes(f))&&(t[p]=u?[].concat(u,f):f)}else p!==""&&(t[p]=i[p])}return t}function gt(e,t,n,i=null){_t(e,t,7,[n,i])}const $y=Wh();let _y=0;function tf(e,t,n){const i=e.type,p=(t?t.appContext:e.appContext)||$y,u={uid:_y++,vnode:e,type:i,parent:t,appContext:p,root:null,next:null,subTree:null,effect:null,update:null,scope:new Fa(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(p.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Uh(i,p),emitsOptions:bh(i,p),emit:null,emitted:null,propsDefaults:Be,inheritAttrs:i.inheritAttrs,ctx:Be,data:Be,props:Be,attrs:Be,slots:Be,refs:Be,setupState:Be,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=fv.bind(null,u),e.ce&&e.ce(u),u}let Qe=null;const Pt=()=>Qe||it;let ol,ti,bc="__VUE_INSTANCE_SETTERS__";(ti=Us()[bc])||(ti=Us()[bc]=[]),ti.push(e=>Qe=e),ol=e=>{ti.length>1?ti.forEach(t=>t(e)):ti[0](e)};const Ln=e=>{ol(e),e.scope.on()},Cn=()=>{Qe&&Qe.scope.off(),ol(null)};function nf(e){return e.vnode.shapeFlag&4}let mi=!1;function rf(e,t=!1){mi=t;const{props:n,children:i}=e.vnode,p=nf(e);ay(e,n,p,t),uy(e,i);const u=p?Cy(e,t):void 0;return mi=!1,u}function Cy(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=No(new Proxy(e.ctx,Ys));const{setup:i}=n;if(i){const p=e.setupContext=i.length>1?sf(e):null;Ln(e),Ai();const u=en(i,e,0,[e.props,p]);if(xi(),Cn(),Ia(u)){if(u.then(Cn,Cn),t)return u.then(f=>{ea(e,f,t)}).catch(f=>{qn(f,e,0)});e.asyncDep=u}else ea(e,u,t)}else of(e,t)}function ea(e,t,n){Ce(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:We(t)&&(e.setupState=za(t)),of(e,n)}let mo,ta;function Sy(e){mo=e,ta=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,Dv))}}const Ay=()=>!mo;function of(e,t,n){const i=e.type;if(!e.render){if(!t&&mo&&!i.render){const p=i.template||tl(e).template;if(p){const{isCustomElement:u,compilerOptions:f}=e.appContext.config,{delimiters:g,compilerOptions:s}=i,h=Ue(Ue({isCustomElement:u,delimiters:g},f),s);i.render=mo(p,h)}}e.render=i.render||Ft,ta&&ta(e)}Ln(e),Ai(),qv(e),xi(),Cn()}function xy(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return yt(e,"get","$attrs"),t[n]}}))}function sf(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return xy(e)},slots:e.slots,emit:e.emit,expose:t}}function Go(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(za(No(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ki)return Ki[n](e)},has(t,n){return n in t||n in Ki}}))}function na(e,t=!0){return Ce(e)?e.displayName||e.name:e.name||t&&e.__name}function ky(e){return Ce(e)&&"__vccOpts"in e}const Ee=(e,t)=>ov(e,t,mi);function Ei(e,t,n){const i=arguments.length;return i===2?We(t)&&!ge(t)?Rn(t)?he(e,null,[t]):he(e,t):he(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&Rn(n)&&(n=[n]),he(e,t,n))}const af=Symbol.for("v-scx"),lf=()=>kt(af);function Ey(){}function Ry(e,t,n,i){const p=n[i];if(p&&cf(p,e))return p;const u=t();return u.memo=e.slice(),n[i]=u}function cf(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let i=0;i<n.length;i++)if(pi(n[i],t[i]))return!1;return Qn>0&&mt&&mt.push(e),!0}const uf="3.3.4",Ly={createComponentInstance:tf,setupComponent:rf,renderComponentRoot:qr,setCurrentRenderingInstance:ur,isVNode:Rn,normalizeVNode:wt},Ty=Ly,My=null,Iy=null,Oy="http://www.w3.org/2000/svg",Pn=typeof document<"u"?document:null,wc=Pn&&Pn.createElement("template"),Fy={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 p=t?Pn.createElementNS(Oy,e):Pn.createElement(e,n?{is:n}:void 0);return e==="select"&&i&&i.multiple!=null&&p.setAttribute("multiple",i.multiple),p},createText:e=>Pn.createTextNode(e),createComment:e=>Pn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Pn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,p,u){const f=n?n.previousSibling:t.lastChild;if(p&&(p===u||p.nextSibling))for(;t.insertBefore(p.cloneNode(!0),n),!(p===u||!(p=p.nextSibling)););else{wc.innerHTML=i?`<svg>${e}</svg>`:e;const g=wc.content;if(i){const s=g.firstChild;for(;s.firstChild;)g.appendChild(s.firstChild);g.removeChild(s)}t.insertBefore(g,n)}return[f?f.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Ny(e,t,n){const i=e._vtc;i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Py(e,t,n){const i=e.style,p=Ge(n);if(n&&!p){if(t&&!Ge(t))for(const u in t)n[u]==null&&ia(i,u,"");for(const u in n)ia(i,u,n[u])}else{const u=i.display;p?t!==n&&(i.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(i.display=u)}}const $c=/\s*!important$/;function ia(e,t,n){if(ge(n))n.forEach(i=>ia(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=Dy(e,t);$c.test(n)?e.setProperty(xt(i),n.replace($c,""),"important"):e[i]=n}}const _c=["Webkit","Moz","ms"],vs={};function Dy(e,t){const n=vs[t];if(n)return n;let i=vt(t);if(i!=="filter"&&i in e)return vs[t]=i;i=Si(i);for(let p=0;p<_c.length;p++){const u=_c[p]+i;if(u in e)return vs[t]=u}return t}const Cc="http://www.w3.org/1999/xlink";function By(e,t,n,i,p){if(i&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Cc,t.slice(6,t.length)):e.setAttributeNS(Cc,t,n);else{const u=vm(t);n==null||u&&!Xu(n)?e.removeAttribute(t):e.setAttribute(t,u?"":n)}}function Wy(e,t,n,i,p,u,f){if(t==="innerHTML"||t==="textContent"){i&&f(i,p,u),e[t]=n??"";return}const g=e.tagName;if(t==="value"&&g!=="PROGRESS"&&!g.includes("-")){e._value=n;const h=g==="OPTION"?e.getAttribute("value"):e.value,o=n??"";h!==o&&(e.value=o),n==null&&e.removeAttribute(t);return}let s=!1;if(n===""||n==null){const h=typeof e[t];h==="boolean"?n=Xu(n):n==null&&h==="string"?(n="",s=!0):h==="number"&&(n=0,s=!0)}try{e[t]=n}catch{}s&&e.removeAttribute(t)}function Zt(e,t,n,i){e.addEventListener(t,n,i)}function Hy(e,t,n,i){e.removeEventListener(t,n,i)}function Uy(e,t,n,i,p=null){const u=e._vei||(e._vei={}),f=u[t];if(i&&f)f.value=i;else{const[g,s]=zy(t);if(i){const h=u[t]=Gy(i,p);Zt(e,g,h,s)}else f&&(Hy(e,g,f,s),u[t]=void 0)}}const Sc=/(?:Once|Passive|Capture)$/;function zy(e){let t;if(Sc.test(e)){t={};let i;for(;i=e.match(Sc);)e=e.slice(0,e.length-i[0].length),t[i[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):xt(e.slice(2)),t]}let ys=0;const Vy=Promise.resolve(),jy=()=>ys||(Vy.then(()=>ys=0),ys=Date.now());function Gy(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;_t(Ky(i,n.value),t,5,[i])};return n.value=e,n.attached=jy(),n}function Ky(e,t){if(ge(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(i=>p=>!p._stopped&&i&&i(p))}else return t}const Ac=/^on[a-z]/,Yy=(e,t,n,i,p=!1,u,f,g,s)=>{t==="class"?Ny(e,i,p):t==="style"?Py(e,n,i):$r(t)?Ta(t)||Uy(e,t,n,i,f):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Xy(e,t,i,p))?Wy(e,t,i,u,f,g,s):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),By(e,t,i,p))};function Xy(e,t,n,i){return i?!!(t==="innerHTML"||t==="textContent"||t in e&&Ac.test(t)&&Ce(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Ac.test(t)&&Ge(n)?!1:t in e}function hf(e,t){const n=$e(e);class i extends Ko{constructor(u){super(n,u,t)}}return i.def=n,i}const Zy=e=>hf(e,xf),Qy=typeof HTMLElement<"u"?HTMLElement:class{};class Ko extends Qy{constructor(t,n={},i){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=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,zt(()=>{this._connected||(sa(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);new MutationObserver(i=>{for(const p of i)this._setAttr(p.attributeName)}).observe(this,{attributes:!0});const t=(i,p=!1)=>{const{props:u,styles:f}=i;let g;if(u&&!ge(u))for(const s in u){const h=u[s];(h===Number||h&&h.type===Number)&&(s in this._props&&(this._props[s]=uo(this._props[s])),(g||(g=Object.create(null)))[vt(s)]=!0)}this._numberProps=g,p&&this._resolveProps(i),this._applyStyles(f),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 p of Object.keys(this))p[0]!=="_"&&i.includes(p)&&this._setProp(p,this[p],!0,!1);for(const p of i.map(vt))Object.defineProperty(this,p,{get(){return this._getProp(p)},set(u){this._setProp(p,u)}})}_setAttr(t){let n=this.getAttribute(t);const i=vt(t);this._numberProps&&this._numberProps[i]&&(n=uo(n)),this._setProp(i,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,i=!0,p=!0){n!==this._props[t]&&(this._props[t]=n,p&&this._instance&&this._update(),i&&(n===!0?this.setAttribute(xt(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(xt(t),n+""):n||this.removeAttribute(xt(t))))}_update(){sa(this._createVNode(),this.shadowRoot)}_createVNode(){const t=he(this._def,Ue({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const i=(u,f)=>{this.dispatchEvent(new CustomEvent(u,{detail:f}))};n.emit=(u,...f)=>{i(u,f),xt(u)!==u&&i(xt(u),f)};let p=this;for(;p=p&&(p.parentNode||p.host);)if(p instanceof Ko){n.parent=p._instance,n.provides=p._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=Pt();if(!t)return Be;const n=t.type.__cssModules;if(!n)return Be;const i=n[e];return i||Be}}function qy(e){const t=Pt();if(!t)return;const n=t.ut=(p=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(u=>oa(u,p))},i=()=>{const p=e(t.proxy);ra(t.subTree,p),n(p)};Ch(i),nt(()=>{const p=new MutationObserver(i);p.observe(t.subTree.el.parentNode,{childList:!0}),Vo(()=>p.disconnect())})}function ra(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{ra(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)oa(e.el,t);else if(e.type===Se)e.children.forEach(n=>ra(n,t));else if(e.type===Vn){let{el:n,anchor:i}=e;for(;n&&(oa(n,t),n!==i);)n=n.nextSibling}}function oa(e,t){if(e.nodeType===1){const n=e.style;for(const i in t)n.setProperty(`--${i}`,t[i])}}const mn="transition",Ii="animation",sl=(e,{slots:t})=>Ei(Ah,df(e),t);sl.displayName="Transition";const ff={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},e0=sl.props=Ue({},Ja,ff),Fn=(e,t=[])=>{ge(e)?e.forEach(n=>n(...t)):e&&e(...t)},xc=e=>e?ge(e)?e.some(t=>t.length>1):e.length>1:!1;function df(e){const t={};for(const M in e)M in ff||(t[M]=e[M]);if(e.css===!1)return t;const{name:n="v",type:i,duration:p,enterFromClass:u=`${n}-enter-from`,enterActiveClass:f=`${n}-enter-active`,enterToClass:g=`${n}-enter-to`,appearFromClass:s=u,appearActiveClass:h=f,appearToClass:o=g,leaveFromClass:r=`${n}-leave-from`,leaveActiveClass:l=`${n}-leave-active`,leaveToClass:c=`${n}-leave-to`}=e,a=t0(p),d=a&&a[0],m=a&&a[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:E,onLeave:S,onLeaveCancelled:C,onBeforeAppear:$=y,onAppear:R=b,onAppearCancelled:x=E}=t,k=(M,A,w)=>{bn(M,A?o:g),bn(M,A?h:f),w&&w()},_=(M,A)=>{M._isLeaving=!1,bn(M,r),bn(M,c),bn(M,l),A&&A()},v=M=>(A,w)=>{const L=M?R:b,T=()=>k(A,M,w);Fn(L,[A,T]),kc(()=>{bn(A,M?s:u),Yt(A,M?o:g),xc(L)||Ec(A,i,d,T)})};return Ue(t,{onBeforeEnter(M){Fn(y,[M]),Yt(M,u),Yt(M,f)},onBeforeAppear(M){Fn($,[M]),Yt(M,s),Yt(M,h)},onEnter:v(!1),onAppear:v(!0),onLeave(M,A){M._isLeaving=!0;const w=()=>_(M,A);Yt(M,r),gf(),Yt(M,l),kc(()=>{M._isLeaving&&(bn(M,r),Yt(M,c),xc(S)||Ec(M,i,m,w))}),Fn(S,[M,w])},onEnterCancelled(M){k(M,!1),Fn(E,[M])},onAppearCancelled(M){k(M,!0),Fn(x,[M])},onLeaveCancelled(M){_(M),Fn(C,[M])}})}function t0(e){if(e==null)return null;if(We(e))return[bs(e.enter),bs(e.leave)];{const t=bs(e);return[t,t]}}function bs(e){return uo(e)}function Yt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function bn(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.remove(i));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function kc(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let n0=0;function Ec(e,t,n,i){const p=e._endId=++n0,u=()=>{p===e._endId&&i()};if(n)return setTimeout(u,n);const{type:f,timeout:g,propCount:s}=pf(e,t);if(!f)return i();const h=f+"end";let o=0;const r=()=>{e.removeEventListener(h,l),u()},l=c=>{c.target===e&&++o>=s&&r()};setTimeout(()=>{o<s&&r()},g+1),e.addEventListener(h,l)}function pf(e,t){const n=window.getComputedStyle(e),i=a=>(n[a]||"").split(", "),p=i(`${mn}Delay`),u=i(`${mn}Duration`),f=Rc(p,u),g=i(`${Ii}Delay`),s=i(`${Ii}Duration`),h=Rc(g,s);let o=null,r=0,l=0;t===mn?f>0&&(o=mn,r=f,l=u.length):t===Ii?h>0&&(o=Ii,r=h,l=s.length):(r=Math.max(f,h),o=r>0?f>h?mn:Ii:null,l=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:l,hasTransform:c}}function Rc(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,i)=>Lc(n)+Lc(e[i])))}function Lc(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function gf(){return document.body.offsetHeight}const mf=new WeakMap,vf=new WeakMap,yf={name:"TransitionGroup",props:Ue({},e0,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Pt(),i=Qa();let p,u;return zo(()=>{if(!p.length)return;const f=e.moveClass||`${e.name||"v"}-move`;if(!l0(p[0].el,n.vnode.el,f))return;p.forEach(o0),p.forEach(s0);const g=p.filter(a0);gf(),g.forEach(s=>{const h=s.el,o=h.style;Yt(h,f),o.transform=o.webkitTransform=o.transitionDuration="";const r=h._moveCb=l=>{l&&l.target!==h||(!l||/transform$/.test(l.propertyName))&&(h.removeEventListener("transitionend",r),h._moveCb=null,bn(h,f))};h.addEventListener("transitionend",r)})}),()=>{const f=Ie(e),g=df(f);let s=f.tag||Se;p=u,u=t.default?Ho(t.default()):[];for(let h=0;h<u.length;h++){const o=u[h];o.key!=null&&Xn(o,gi(o,g,i,n))}if(p)for(let h=0;h<p.length;h++){const o=p[h];Xn(o,gi(o,g,i,n)),mf.set(o,o.el.getBoundingClientRect())}return he(s,null,u)}}},i0=e=>delete e.mode;yf.props;const r0=yf;function o0(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function s0(e){vf.set(e,e.el.getBoundingClientRect())}function a0(e){const t=mf.get(e),n=vf.get(e),i=t.left-n.left,p=t.top-n.top;if(i||p){const u=e.el.style;return u.transform=u.webkitTransform=`translate(${i}px,${p}px)`,u.transitionDuration="0s",e}}function l0(e,t,n){const i=e.cloneNode();e._vtc&&e._vtc.forEach(f=>{f.split(/\s+/).forEach(g=>g&&i.classList.remove(g))}),n.split(/\s+/).forEach(f=>f&&i.classList.add(f)),i.style.display="none";const p=t.nodeType===1?t:t.parentNode;p.appendChild(i);const{hasTransform:u}=pf(i);return p.removeChild(i),u}const Tn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ge(t)?n=>ui(t,n):t};function c0(e){e.target.composing=!0}function Tc(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ot={created(e,{modifiers:{lazy:t,trim:n,number:i}},p){e._assign=Tn(p);const u=i||p.props&&p.props.type==="number";Zt(e,t?"change":"input",f=>{if(f.target.composing)return;let g=e.value;n&&(g=g.trim()),u&&(g=co(g)),e._assign(g)}),n&&Zt(e,"change",()=>{e.value=e.value.trim()}),t||(Zt(e,"compositionstart",c0),Zt(e,"compositionend",Tc),Zt(e,"change",Tc))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:i,number:p}},u){if(e._assign=Tn(u),e.composing||document.activeElement===e&&e.type!=="range"&&(n||i&&e.value.trim()===t||(p||e.type==="number")&&co(e.value)===t))return;const f=t??"";e.value!==f&&(e.value=f)}},al={deep:!0,created(e,t,n){e._assign=Tn(n),Zt(e,"change",()=>{const i=e._modelValue,p=vi(e),u=e.checked,f=e._assign;if(ge(i)){const g=Lo(i,p),s=g!==-1;if(u&&!s)f(i.concat(p));else if(!u&&s){const h=[...i];h.splice(g,1),f(h)}}else if(Jn(i)){const g=new Set(i);u?g.add(p):g.delete(p),f(g)}else f(bf(e,u))})},mounted:Mc,beforeUpdate(e,t,n){e._assign=Tn(n),Mc(e,t,n)}};function Mc(e,{value:t,oldValue:n},i){e._modelValue=t,ge(t)?e.checked=Lo(t,i.props.value)>-1:Jn(t)?e.checked=t.has(i.props.value):t!==n&&(e.checked=kn(t,bf(e,!0)))}const ll={created(e,{value:t},n){e.checked=kn(t,n.props.value),e._assign=Tn(n),Zt(e,"change",()=>{e._assign(vi(e))})},beforeUpdate(e,{value:t,oldValue:n},i){e._assign=Tn(i),t!==n&&(e.checked=kn(t,i.props.value))}},pr={deep:!0,created(e,{value:t,modifiers:{number:n}},i){const p=Jn(t);Zt(e,"change",()=>{const u=Array.prototype.filter.call(e.options,f=>f.selected).map(f=>n?co(vi(f)):vi(f));e._assign(e.multiple?p?new Set(u):u:u[0])}),e._assign=Tn(i)},mounted(e,{value:t}){Ic(e,t)},beforeUpdate(e,t,n){e._assign=Tn(n)},updated(e,{value:t}){Ic(e,t)}};function Ic(e,t){const n=e.multiple;if(!(n&&!ge(t)&&!Jn(t))){for(let i=0,p=e.options.length;i<p;i++){const u=e.options[i],f=vi(u);if(n)ge(t)?u.selected=Lo(t,f)>-1:u.selected=t.has(f);else if(kn(vi(u),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function vi(e){return"_value"in e?e._value:e.value}function bf(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const wf={created(e,t,n){Xr(e,t,n,null,"created")},mounted(e,t,n){Xr(e,t,n,null,"mounted")},beforeUpdate(e,t,n,i){Xr(e,t,n,i,"beforeUpdate")},updated(e,t,n,i){Xr(e,t,n,i,"updated")}};function $f(e,t){switch(e){case"SELECT":return pr;case"TEXTAREA":return Ot;default:switch(t){case"checkbox":return al;case"radio":return ll;default:return Ot}}}function Xr(e,t,n,i,p){const f=$f(e.tagName,n.props&&n.props.type)[p];f&&f(e,t,n,i)}function u0(){Ot.getSSRProps=({value:e})=>({value:e}),ll.getSSRProps=({value:e},t)=>{if(t.props&&kn(t.props.value,e))return{checked:!0}},al.getSSRProps=({value:e},t)=>{if(ge(e)){if(t.props&&Lo(e,t.props.value)>-1)return{checked:!0}}else if(Jn(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},wf.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=$f(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const h0=["ctrl","shift","alt","meta"],f0={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)=>h0.some(n=>e[`${n}Key`]&&!t.includes(n))},d0=(e,t)=>(n,...i)=>{for(let p=0;p<t.length;p++){const u=f0[t[p]];if(u&&u(n,t))return}return e(n,...i)},p0={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},g0=(e,t)=>n=>{if(!("key"in n))return;const i=xt(n.key);if(t.some(p=>p===i||p0[p]===i))return e(n)},_f={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Oi(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),Oi(e,!0),i.enter(e)):i.leave(e,()=>{Oi(e,!1)}):Oi(e,t))},beforeUnmount(e,{value:t}){Oi(e,t)}};function Oi(e,t){e.style.display=t?e._vod:"none"}function m0(){_f.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const Cf=Ue({patchProp:Yy},Fy);let Qi,Oc=!1;function Sf(){return Qi||(Qi=Gh(Cf))}function Af(){return Qi=Oc?Qi:Kh(Cf),Oc=!0,Qi}const sa=(...e)=>{Sf().render(...e)},xf=(...e)=>{Af().hydrate(...e)},kf=(...e)=>{const t=Sf().createApp(...e),{mount:n}=t;return t.mount=i=>{const p=Ef(i);if(!p)return;const u=t._component;!Ce(u)&&!u.render&&!u.template&&(u.template=p.innerHTML),p.innerHTML="";const f=n(p,!1,p instanceof SVGElement);return p instanceof Element&&(p.removeAttribute("v-cloak"),p.setAttribute("data-v-app","")),f},t},v0=(...e)=>{const t=Af().createApp(...e),{mount:n}=t;return t.mount=i=>{const p=Ef(i);if(p)return n(p,!0,p instanceof SVGElement)},t};function Ef(e){return Ge(e)?document.querySelector(e):e}let Fc=!1;const y0=()=>{Fc||(Fc=!0,u0(),m0())},b0=()=>{},w0=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:Ah,BaseTransitionPropsValidators:Ja,Comment:lt,EffectScope:Fa,Fragment:Se,KeepAlive:Lv,ReactiveEffect:Sr,Static:Vn,Suspense:bv,Teleport:vy,Text:Zn,Transition:sl,TransitionGroup:r0,VueElement:Ko,assertNumber:av,callWithAsyncErrorHandling:_t,callWithErrorHandling:en,camelize:vt,capitalize:Si,cloneVNode:Vt,compatUtils:Iy,compile:b0,computed:Ee,createApp:kf,createBlock:Me,createCommentVNode:we,createElementBlock:oe,createElementVNode:P,createHydrationRenderer:Kh,createPropsRestProxy:Qv,createRenderer:Gh,createSSRApp:v0,createSlots:Fv,createStaticVNode:wy,createTextVNode:et,createVNode:he,customRef:Va,defineAsyncComponent:Ev,defineComponent:$e,defineCustomElement:hf,defineEmits:Wv,defineExpose:Hv,defineModel:Vv,defineOptions:Uv,defineProps:Bv,defineSSRCustomElement:Zy,defineSlots:zv,get devtools(){return ni},effect:$m,effectScope:Qu,getCurrentInstance:Pt,getCurrentScope:Na,getTransitionRawChildren:Ho,guardReactiveProps:qh,h:Ei,handleError:qn,hasInjectionContext:sy,hydrate:xf,initCustomFormatter:Ey,initDirectivesForSSR:y0,inject:kt,isMemoSame:cf,isProxy:Wa,isReactive:Un,isReadonly:Kn,isRef:qe,isRuntimeOnly:Ay,isShallow:sr,isVNode:Rn,markRaw:No,mergeDefaults:Xv,mergeModels:Zv,mergeProps:ef,nextTick:zt,normalizeClass:Cr,normalizeProps:gm,normalizeStyle:_r,onActivated:kh,onBeforeMount:Lh,onBeforeUnmount:kr,onBeforeUpdate:Th,onDeactivated:Eh,onErrorCaptured:Fh,onMounted:nt,onRenderTracked:Oh,onRenderTriggered:Ih,onScopeDispose:qu,onServerPrefetch:Mh,onUnmounted:Vo,onUpdated:zo,openBlock:q,popScopeId:Ya,provide:Yi,proxyRefs:za,pushScopeId:Ka,queuePostFlushCb:Ga,reactive:ki,readonly:Oo,ref:Te,registerRuntimeCompiler:Sy,render:sa,renderList:ct,renderSlot:Nv,resolveComponent:ue,resolveDirective:Ov,resolveDynamicComponent:Iv,resolveFilter:My,resolveTransitionHooks:gi,setBlockTracking:qs,setDevtoolsHook:yh,setTransitionHooks:Xn,shallowReactive:Ba,shallowReadonly:Xm,shallowRef:fh,ssrContextKey:af,ssrUtils:Ty,stop:_m,toDisplayString:Ae,toHandlerKey:Gi,toHandlers:Pv,toRaw:Ie,toRef:Yn,toRefs:tv,toValue:Jm,transformVNodeArgs:yy,triggerRef:Qm,unref:qt,useAttrs:Kv,useCssModule:Jy,useCssVars:qy,useModel:Yv,useSSRContext:lf,useSlots:Gv,useTransitionState:Qa,vModelCheckbox:al,vModelDynamic:wf,vModelRadio:ll,vModelSelect:pr,vModelText:Ot,vShow:_f,version:uf,warn:sv,watch:Ye,watchEffect:_h,watchPostEffect:Ch,watchSyncEffect:Av,withAsyncContext:Jv,withCtx:dt,withDefaults:jv,withDirectives:Tt,withKeys:g0,withMemo:Ry,withModifiers:d0,withScopeId:dv},Symbol.toStringTag,{value:"Module"}));function Nc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(p){return Object.getOwnPropertyDescriptor(e,p).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?Nc(Object(n),!0).forEach(function(i){pt(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nc(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function vo(e){"@babel/helpers - typeof";return vo=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},vo(e)}function pt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $0(e,t){if(e==null)return{};var n={},i=Object.keys(e),p,u;for(u=0;u<i.length;u++)p=i[u],!(t.indexOf(p)>=0)&&(n[p]=e[p]);return n}function _0(e,t){if(e==null)return{};var n=$0(e,t),i,p;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(p=0;p<u.length;p++)i=u[p],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}var C0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Rf={exports:{}};(function(e){(function(t){var n=function(y,b,E){if(!h(b)||r(b)||l(b)||c(b)||s(b))return b;var S,C=0,$=0;if(o(b))for(S=[],$=b.length;C<$;C++)S.push(n(y,b[C],E));else{S={};for(var R in b)Object.prototype.hasOwnProperty.call(b,R)&&(S[y(R,E)]=n(y,b[R],E))}return S},i=function(y,b){b=b||{};var E=b.separator||"_",S=b.split||/(?=[A-Z])/;return y.split(S).join(E)},p=function(y){return a(y)?y:(y=y.replace(/[\-_\s]+(.)?/g,function(b,E){return E?E.toUpperCase():""}),y.substr(0,1).toLowerCase()+y.substr(1))},u=function(y){var b=p(y);return b.substr(0,1).toUpperCase()+b.substr(1)},f=function(y,b){return i(y,b).toLowerCase()},g=Object.prototype.toString,s=function(y){return typeof y=="function"},h=function(y){return y===Object(y)},o=function(y){return g.call(y)=="[object Array]"},r=function(y){return g.call(y)=="[object Date]"},l=function(y){return g.call(y)=="[object RegExp]"},c=function(y){return g.call(y)=="[object Boolean]"},a=function(y){return y=y-0,y===y},d=function(y,b){var E=b&&"process"in b?b.process:b;return typeof E!="function"?y:function(S,C){return E(S,y,C)}},m={camelize:p,decamelize:f,pascalize:u,depascalize:f,camelizeKeys:function(y,b){return n(d(p,b),y)},decamelizeKeys:function(y,b){return n(d(f,b),y,b)},pascalizeKeys:function(y,b){return n(d(u,b),y)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=m:t.humps=m})(C0)})(Rf);var S0=Rf.exports,A0=["class","style"];function x0(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var i=n.indexOf(":"),p=S0.camelize(n.slice(0,i)),u=n.slice(i+1).trim();return t[p]=u,t},{})}function k0(e){return e.split(/\s+/).reduce(function(t,n){return t[n]=!0,t},{})}function Lf(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 Lf(s)}),p=Object.keys(e.attributes||{}).reduce(function(s,h){var o=e.attributes[h];switch(h){case"class":s.class=k0(o);break;case"style":s.style=x0(o);break;default:s.attrs[h]=o}return s},{attrs:{},class:{},style:{}});n.class;var u=n.style,f=u===void 0?{}:u,g=_0(n,A0);return Ei(e.tag,Qt(Qt(Qt({},t),{},{class:p.class,style:Qt(Qt({},p.style),f)},p.attrs),g),i)}var Tf=!1;try{Tf=!0}catch{}function E0(){if(!Tf&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function ws(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?pt({},e,t):{}}function R0(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 Pc(e){if(e&&vo(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Hs.icon)return Hs.icon(e);if(e===null)return null;if(vo(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 L0=$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},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},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,p=Ee(function(){return Pc(t.icon)}),u=Ee(function(){return ws("classes",R0(t))}),f=Ee(function(){return ws("transform",typeof t.transform=="string"?Hs.transform(t.transform):t.transform)}),g=Ee(function(){return ws("mask",Pc(t.mask))}),s=Ee(function(){return Hg(p.value,Qt(Qt(Qt(Qt({},u.value),f.value),g.value),{},{symbol:t.symbol,title:t.title}))});Ye(s,function(o){if(!o)return E0("Could not find one or more icon(s)",p.value,g.value)},{immediate:!0});var h=Ee(function(){return s.value?Lf(s.value.abstract[0],{},i):null});return function(){return h.value}}});const T0=$e({name:"NavbarItem"});const xe=(e,t)=>{const n=e.__vccOpts||e;for(const[i,p]of t)n[i]=p;return n},Yo=e=>(Ka("data-v-19d4e9a4"),e=e(),Ya(),e),M0={role:"navigation","aria-label":"main navigation",class:"navbar is-fixed-top"},I0=Yo(()=>P("div",{class:"navbar-brand"},[P("a",{class:"navbar-item"},[P("h1",{class:"title"},"Mihari")]),P("a",{role:"button","aria-label":"menu",class:"navbar-burger burger"},[P("span",{"aria-hidden":"true"}),P("span",{"aria-hidden":"true"}),P("span",{"aria-hidden":"true"})])],-1)),O0={class:"navbar-menu"},F0=Yo(()=>P("div",{class:"navbar-start"},null,-1)),N0={class:"navbar-end"},P0=Yo(()=>P("a",{class:"navbar-item"},[P("a",{href:"/redoc-static.html",target:"_blank",class:"navbar-item"},"API")],-1)),D0=Yo(()=>P("a",{class:"navbar-item"},[P("a",{href:"https://github.com/ninoseki/mihari",target:"_blank",class:"navbar-item"},"GitHub")],-1));function B0(e,t,n,i,p,u){const f=ue("router-link");return q(),oe("nav",M0,[I0,P("div",O0,[F0,P("div",N0,[he(f,{class:"navbar-item",to:{name:"Alerts"}},{default:dt(()=>[et("Alerts")]),_:1}),he(f,{class:"navbar-item",to:{name:"NewRule"}},{default:dt(()=>[et("New rule")]),_:1}),he(f,{class:"navbar-item",to:{name:"Rules"}},{default:dt(()=>[et("Rules")]),_:1}),he(f,{class:"navbar-item",to:{name:"Configs"}},{default:dt(()=>[et("Configs")]),_:1}),P0,D0])])])}const W0=xe(T0,[["render",B0],["__scopeId","data-v-19d4e9a4"]]),H0=$e({name:"App",components:{Navbar:W0}});const U0={class:"section is-medium"},z0={class:"container"};function V0(e,t,n,i,p,u){const f=ue("Navbar"),g=ue("router-view");return q(),oe(Se,null,[he(f),P("section",U0,[P("div",z0,[he(g)])])],64)}const j0=xe(H0,[["render",V0]]);/*!
762
762
  * vue-router v4.2.5
763
763
  * (c) 2023 Eduardo San Martin Morote
764
764
  * @license MIT
765
- */const ii=typeof window<"u";function j0(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Pe=Object.assign;function _s(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 Ji=()=>{},Pt=Array.isArray,G0=/\/$/,K0=e=>e.replace(G0,"");function Cs(e,t,n="/"){let i,d={},u="",p="";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),p=t.slice(g,t.length)),i=Q0(i??t,n),{fullPath:i+(u&&"?")+u+p,path:i,query:d,hash:p}}function Y0(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Dc(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function X0(e,t,n){const i=t.matched.length-1,d=n.matched.length-1;return i>-1&&i===d&&yi(t.matched[i],n.matched[d])&&Tf(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function yi(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Tf(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Z0(e[n],t[n]))return!1;return!0}function Z0(e,t){return Pt(e)?Bc(e,t):Pt(t)?Bc(t,e):e===t}function Bc(e,t){return Pt(t)?e.length===t.length&&e.every((n,i)=>n===t[i]):e.length===1&&e[0]===t}function Q0(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,p,g;for(p=0;p<i.length;p++)if(g=i[p],g!==".")if(g==="..")u>1&&u--;else break;return n.slice(0,u).join("/")+"/"+i.slice(p-(p===i.length?1:0)).join("/")}var gr;(function(e){e.pop="pop",e.push="push"})(gr||(gr={}));var qi;(function(e){e.back="back",e.forward="forward",e.unknown=""})(qi||(qi={}));function J0(e){if(!e)if(ii){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),K0(e)}const q0=/^[^#]+#/;function eb(e,t){return e.replace(q0,"#")+t}function tb(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 Zo=()=>({left:window.pageXOffset,top:window.pageYOffset});function nb(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=tb(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 Wc(e,t){return(history.state?history.state.position-t:-1)+e}const la=new Map;function ib(e,t){la.set(e,t)}function rb(e){const t=la.get(e);return la.delete(e),t}let ob=()=>location.protocol+"//"+location.host;function Mf(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),Dc(s,"")}return Dc(n,e)+i+d}function sb(e,t,n,i){let d=[],u=[],p=null;const g=({state:l})=>{const c=Mf(e,location),a=n.value,f=t.value;let m=0;if(l){if(n.value=c,t.value=l,p&&p===a){p=null;return}m=f?l.position-f.position:0}else i(c);d.forEach(y=>{y(n.value,a,{delta:m,type:gr.pop,direction:m?m>0?qi.forward:qi.back:qi.unknown})})};function s(){p=n.value}function h(l){d.push(l);const c=()=>{const a=d.indexOf(l);a>-1&&d.splice(a,1)};return u.push(c),c}function o(){const{history:l}=window;l.state&&l.replaceState(Pe({},l.state,{scroll:Zo()}),"")}function r(){for(const l of u)l();u=[],window.removeEventListener("popstate",g),window.removeEventListener("beforeunload",o)}return window.addEventListener("popstate",g),window.addEventListener("beforeunload",o,{passive:!0}),{pauseListeners:s,listen:h,destroy:r}}function Hc(e,t,n,i=!1,d=!1){return{back:e,current:t,forward:n,replaced:i,position:window.history.length,scroll:d?Zo():null}}function ab(e){const{history:t,location:n}=window,i={value:Mf(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,h,o){const r=e.indexOf("#"),l=r>-1?(n.host&&document.querySelector("base")?e:e.slice(r))+s:ob()+e+s;try{t[o?"replaceState":"pushState"](h,"",l),d.value=h}catch(c){console.error(c),n[o?"replace":"assign"](l)}}function p(s,h){const o=Pe({},t.state,Hc(d.value.back,s,d.value.forward,!0),h,{position:d.value.position});u(s,o,!0),i.value=s}function g(s,h){const o=Pe({},d.value,t.state,{forward:s,scroll:Zo()});u(o.current,o,!0);const r=Pe({},Hc(i.value,s,null),{position:o.position+1},h);u(s,r,!1),i.value=s}return{location:i,state:d,push:g,replace:p}}function lb(e){e=J0(e);const t=ab(e),n=sb(e,t.state,t.location,t.replace);function i(u,p=!0){p||n.pauseListeners(),history.go(u)}const d=Pe({location:"",base:e,go:i,createHref:eb.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 cb(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),lb(e)}function ub(e){return typeof e=="string"||e&&typeof e=="object"}function If(e){return typeof e=="string"||typeof e=="symbol"}const vn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Of=Symbol("");var Uc;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Uc||(Uc={}));function bi(e,t){return Pe(new Error,{type:e,[Of]:!0},t)}function Kt(e,t){return e instanceof Error&&Of in e&&(t==null||!!(e.type&t))}const zc="[^/]+?",hb={sensitive:!1,strict:!1,start:!0,end:!0},fb=/[.+*?^${}()[\]/\\]/g;function db(e,t){const n=Pe({},hb,t),i=[];let d=n.start?"^":"";const u=[];for(const h of e){const o=h.length?[]:[90];n.strict&&!h.length&&(d+="/");for(let r=0;r<h.length;r++){const l=h[r];let c=40+(n.sensitive?.25:0);if(l.type===0)r||(d+="/"),d+=l.value.replace(fb,"\\$&"),c+=40;else if(l.type===1){const{value:a,repeatable:f,optional:m,regexp:y}=l;u.push({name:a,repeatable:f,optional:m});const b=y||zc;if(b!==zc){c+=10;try{new RegExp(`(${b})`)}catch(S){throw new Error(`Invalid custom RegExp for param "${a}" (${b}): `+S.message)}}let E=f?`((?:${b})(?:/(?:${b}))*)`:`(${b})`;r||(E=m&&h.length<2?`(?:/${E})`:"/"+E),m&&(E+="?"),d+=E,c+=20,m&&(c+=-8),f&&(c+=-20),b===".*"&&(c+=-50)}o.push(c)}i.push(o)}if(n.strict&&n.end){const h=i.length-1;i[h][i[h].length-1]+=.7000000000000001}n.strict||(d+="/?"),n.end?d+="$":n.strict&&(d+="(?:/|$)");const p=new RegExp(d,n.sensitive?"":"i");function g(h){const o=h.match(p),r={};if(!o)return null;for(let l=1;l<o.length;l++){const c=o[l]||"",a=u[l-1];r[a.name]=c&&a.repeatable?c.split("/"):c}return r}function s(h){let o="",r=!1;for(const l of e){(!r||!o.endsWith("/"))&&(o+="/"),r=!1;for(const c of l)if(c.type===0)o+=c.value;else if(c.type===1){const{value:a,repeatable:f,optional:m}=c,y=a in h?h[a]:"";if(Pt(y)&&!f)throw new Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);const b=Pt(y)?y.join("/"):y;if(!b)if(m)l.length<2&&(o.endsWith("/")?o=o.slice(0,-1):r=!0);else throw new Error(`Missing required param "${a}"`);o+=b}}return o||"/"}return{re:p,score:i,keys:u,parse:g,stringify:s}}function pb(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]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function gb(e,t){let n=0;const i=e.score,d=t.score;for(;n<i.length&&n<d.length;){const u=pb(i[n],d[n]);if(u)return u;n++}if(Math.abs(d.length-i.length)===1){if(Vc(i))return 1;if(Vc(d))return-1}return d.length-i.length}function Vc(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const mb={type:0,value:""},vb=/[a-zA-Z0-9_]/;function yb(e){if(!e)return[[]];if(e==="/")return[[mb]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(c){throw new Error(`ERR (${n})/"${h}": ${c}`)}let n=0,i=n;const d=[];let u;function p(){u&&d.push(u),u=[]}let g=0,s,h="",o="";function r(){h&&(n===0?u.push({type:0,value:h}):n===1||n===2||n===3?(u.length>1&&(s==="*"||s==="+")&&t(`A repeatable param (${h}) must be alone in its segment. eg: '/:ids+.`),u.push({type:1,value:h,regexp:o,repeatable:s==="*"||s==="+",optional:s==="*"||s==="?"})):t("Invalid state to consume buffer"),h="")}function l(){h+=s}for(;g<e.length;){if(s=e[g++],s==="\\"&&n!==2){i=n,n=4;continue}switch(n){case 0:s==="/"?(h&&r(),p()):s===":"?(r(),n=1):l();break;case 4:l(),n=i;break;case 1:s==="("?n=2:vb.test(s)?l():(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 "${h}"`),r(),p(),d}function bb(e,t,n){const i=db(yb(e.path),n),d=Pe(i,{record:e,parent:t,children:[],alias:[]});return t&&!d.record.aliasOf==!t.record.aliasOf&&t.children.push(d),d}function wb(e,t){const n=[],i=new Map;t=Kc({strict:!1,end:!0,sensitive:!1},t);function d(o){return i.get(o)}function u(o,r,l){const c=!l,a=$b(o);a.aliasOf=l&&l.record;const f=Kc(t,o),m=[a];if("alias"in o){const E=typeof o.alias=="string"?[o.alias]:o.alias;for(const S of E)m.push(Pe({},a,{components:l?l.record.components:a.components,path:S,aliasOf:l?l.record:a}))}let y,b;for(const E of m){const{path:S}=E;if(r&&S[0]!=="/"){const C=r.record.path,$=C[C.length-1]==="/"?"":"/";E.path=r.record.path+(S&&$+S)}if(y=bb(E,r,f),l?l.alias.push(y):(b=b||y,b!==y&&b.alias.push(y),c&&o.name&&!Gc(y)&&p(o.name)),a.children){const C=a.children;for(let $=0;$<C.length;$++)u(C[$],y,l&&l.children[$])}l=l||y,(y.record.components&&Object.keys(y.record.components).length||y.record.name||y.record.redirect)&&s(y)}return b?()=>{p(b)}:Ji}function p(o){if(If(o)){const r=i.get(o);r&&(i.delete(o),n.splice(n.indexOf(r),1),r.children.forEach(p),r.alias.forEach(p))}else{const r=n.indexOf(o);r>-1&&(n.splice(r,1),o.record.name&&i.delete(o.record.name),o.children.forEach(p),o.alias.forEach(p))}}function g(){return n}function s(o){let r=0;for(;r<n.length&&gb(o,n[r])>=0&&(o.record.path!==n[r].record.path||!Ff(o,n[r]));)r++;n.splice(r,0,o),o.record.name&&!Gc(o)&&i.set(o.record.name,o)}function h(o,r){let l,c={},a,f;if("name"in o&&o.name){if(l=i.get(o.name),!l)throw bi(1,{location:o});f=l.record.name,c=Pe(jc(r.params,l.keys.filter(b=>!b.optional).map(b=>b.name)),o.params&&jc(o.params,l.keys.map(b=>b.name))),a=l.stringify(c)}else if("path"in o)a=o.path,l=n.find(b=>b.re.test(a)),l&&(c=l.parse(a),f=l.record.name);else{if(l=r.name?i.get(r.name):n.find(b=>b.re.test(r.path)),!l)throw bi(1,{location:o,currentLocation:r});f=l.record.name,c=Pe({},r.params,o.params),a=l.stringify(c)}const m=[];let y=l;for(;y;)m.unshift(y.record),y=y.parent;return{name:f,path:a,params:c,matched:m,meta:Cb(m)}}return e.forEach(o=>u(o)),{addRoute:u,resolve:h,removeRoute:p,getRoutes:g,getRecordMatcher:d}}function jc(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}function $b(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:_b(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 _b(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 Gc(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Cb(e){return e.reduce((t,n)=>Pe(t,n.meta),{})}function Kc(e,t){const n={};for(const i in e)n[i]=i in t?t[i]:e[i];return n}function Ff(e,t){return t.children.some(n=>n===e||Ff(e,n))}const Nf=/#/g,Sb=/&/g,Ab=/\//g,xb=/=/g,kb=/\?/g,Pf=/\+/g,Eb=/%5B/g,Rb=/%5D/g,Df=/%5E/g,Lb=/%60/g,Bf=/%7B/g,Tb=/%7C/g,Wf=/%7D/g,Mb=/%20/g;function cl(e){return encodeURI(""+e).replace(Tb,"|").replace(Eb,"[").replace(Rb,"]")}function Ib(e){return cl(e).replace(Bf,"{").replace(Wf,"}").replace(Df,"^")}function ca(e){return cl(e).replace(Pf,"%2B").replace(Mb,"+").replace(Nf,"%23").replace(Sb,"%26").replace(Lb,"`").replace(Bf,"{").replace(Wf,"}").replace(Df,"^")}function Ob(e){return ca(e).replace(xb,"%3D")}function Fb(e){return cl(e).replace(Nf,"%23").replace(kb,"%3F")}function Nb(e){return e==null?"":Fb(e).replace(Ab,"%2F")}function bo(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function Pb(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(Pf," "),p=u.indexOf("="),g=bo(p<0?u:u.slice(0,p)),s=p<0?null:bo(u.slice(p+1));if(g in t){let h=t[g];Pt(h)||(h=t[g]=[h]),h.push(s)}else t[g]=s}return t}function Yc(e){let t="";for(let n in e){const i=e[n];if(n=Ob(n),i==null){i!==void 0&&(t+=(t.length?"&":"")+n);continue}(Pt(i)?i.map(u=>u&&ca(u)):[i&&ca(i)]).forEach(u=>{u!==void 0&&(t+=(t.length?"&":"")+n,u!=null&&(t+="="+u))})}return t}function Db(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 Bb=Symbol(""),Xc=Symbol(""),Qo=Symbol(""),ul=Symbol(""),ua=Symbol("");function Fi(){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 $n(e,t,n,i,d){const u=i&&(i.enterCallbacks[d]=i.enterCallbacks[d]||[]);return()=>new Promise((p,g)=>{const s=r=>{r===!1?g(bi(4,{from:n,to:t})):r instanceof Error?g(r):ub(r)?g(bi(2,{from:t,to:r})):(u&&i.enterCallbacks[d]===u&&typeof r=="function"&&u.push(r),p())},h=e.call(i&&i.instances[d],t,n,s);let o=Promise.resolve(h);e.length<3&&(o=o.then(s)),o.catch(r=>g(r))})}function Ss(e,t,n,i){const d=[];for(const u of e)for(const p in u.components){let g=u.components[p];if(!(t!=="beforeRouteEnter"&&!u.instances[p]))if(Wb(g)){const h=(g.__vccOpts||g)[t];h&&d.push($n(h,n,i,u,p))}else{let s=g();d.push(()=>s.then(h=>{if(!h)return Promise.reject(new Error(`Couldn't resolve component "${p}" at "${u.path}"`));const o=j0(h)?h.default:h;u.components[p]=o;const l=(o.__vccOpts||o)[t];return l&&$n(l,n,i,u,p)()}))}}return d}function Wb(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Zc(e){const t=kt(Qo),n=kt(ul),i=Ee(()=>t.resolve(qt(e.to))),d=Ee(()=>{const{matched:s}=i.value,{length:h}=s,o=s[h-1],r=n.matched;if(!o||!r.length)return-1;const l=r.findIndex(yi.bind(null,o));if(l>-1)return l;const c=Qc(s[h-2]);return h>1&&Qc(o)===c&&r[r.length-1].path!==c?r.findIndex(yi.bind(null,s[h-2])):l}),u=Ee(()=>d.value>-1&&Vb(n.params,i.value.params)),p=Ee(()=>d.value>-1&&d.value===n.matched.length-1&&Tf(n.params,i.value.params));function g(s={}){return zb(s)?t[qt(e.replace)?"replace":"push"](qt(e.to)).catch(Ji):Promise.resolve()}return{route:i,href:Ee(()=>i.value.href),isActive:u,isExactActive:p,navigate:g}}const Hb=$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:Zc,setup(e,{slots:t}){const n=ki(Zc(e)),{options:i}=kt(Qo),d=Ee(()=>({[Jc(e.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[Jc(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const u=t.default&&t.default(n);return e.custom?u:Ei("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:d.value},u)}}}),Ub=Hb;function zb(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 Vb(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,p)=>u!==d[p]))return!1}return!0}function Qc(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Jc=(e,t,n)=>e??t??n,jb=$e({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const i=kt(ua),d=Ee(()=>e.route||i.value),u=kt(Xc,0),p=Ee(()=>{let h=qt(u);const{matched:o}=d.value;let r;for(;(r=o[h])&&!r.components;)h++;return h}),g=Ee(()=>d.value.matched[p.value]);Yi(Xc,Ee(()=>p.value+1)),Yi(Bb,g),Yi(ua,d);const s=Te();return Ye(()=>[s.value,g.value,e.name],([h,o,r],[l,c,a])=>{o&&(o.instances[r]=h,c&&c!==o&&h&&h===l&&(o.leaveGuards.size||(o.leaveGuards=c.leaveGuards),o.updateGuards.size||(o.updateGuards=c.updateGuards))),h&&o&&(!c||!yi(o,c)||!l)&&(o.enterCallbacks[r]||[]).forEach(f=>f(h))},{flush:"post"}),()=>{const h=d.value,o=e.name,r=g.value,l=r&&r.components[o];if(!l)return qc(n.default,{Component:l,route:h});const c=r.props[o],a=c?c===!0?h.params:typeof c=="function"?c(h):c:null,m=Ei(l,Pe({},a,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(r.instances[o]=null)},ref:s}));return qc(n.default,{Component:m,route:h})||m}}});function qc(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Gb=jb;function Kb(e){const t=wb(e.routes,e),n=e.parseQuery||Pb,i=e.stringifyQuery||Yc,d=e.history,u=Fi(),p=Fi(),g=Fi(),s=hh(vn);let h=vn;ii&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const o=_s.bind(null,z=>""+z),r=_s.bind(null,Nb),l=_s.bind(null,bo);function c(z,Y){let K,V;return If(z)?(K=t.getRecordMatcher(z),V=Y):V=z,t.addRoute(V,K)}function a(z){const Y=t.getRecordMatcher(z);Y&&t.removeRoute(Y)}function f(){return t.getRoutes().map(z=>z.record)}function m(z){return!!t.getRecordMatcher(z)}function y(z,Y){if(Y=Pe({},Y||s.value),typeof z=="string"){const j=Cs(n,z,Y.path),Z=t.resolve({path:j.path},Y),te=d.createHref(j.fullPath);return Pe(j,Z,{params:l(Z.params),hash:bo(j.hash),redirectedFrom:void 0,href:te})}let K;if("path"in z)K=Pe({},z,{path:Cs(n,z.path,Y.path).path});else{const j=Pe({},z.params);for(const Z in j)j[Z]==null&&delete j[Z];K=Pe({},z,{params:r(j)}),Y.params=r(Y.params)}const V=t.resolve(K,Y),ee=z.hash||"";V.params=o(l(V.params));const N=Y0(i,Pe({},z,{hash:Ib(ee),path:V.path})),B=d.createHref(N);return Pe({fullPath:N,hash:ee,query:i===Yc?Db(z.query):z.query||{}},V,{redirectedFrom:void 0,href:B})}function b(z){return typeof z=="string"?Cs(n,z,s.value.path):Pe({},z)}function E(z,Y){if(h!==z)return bi(8,{from:Y,to:z})}function S(z){return R(z)}function C(z){return S(Pe(b(z),{replace:!0}))}function $(z){const Y=z.matched[z.matched.length-1];if(Y&&Y.redirect){const{redirect:K}=Y;let V=typeof K=="function"?K(z):K;return typeof V=="string"&&(V=V.includes("?")||V.includes("#")?V=b(V):{path:V},V.params={}),Pe({query:z.query,hash:z.hash,params:"path"in V?{}:z.params},V)}}function R(z,Y){const K=h=y(z),V=s.value,ee=z.state,N=z.force,B=z.replace===!0,j=$(K);if(j)return R(Pe(b(j),{state:typeof j=="object"?Pe({},ee,j.state):ee,force:N,replace:B}),Y||K);const Z=K;Z.redirectedFrom=Y;let te;return!N&&X0(i,V,K)&&(te=bi(16,{to:Z,from:V}),W(V,V,!0,!1)),(te?Promise.resolve(te):_(Z,V)).catch(ie=>Kt(ie)?Kt(ie,2)?ie:D(ie):I(ie,Z,V)).then(ie=>{if(ie){if(Kt(ie,2))return R(Pe({replace:B},b(ie.to),{state:typeof ie.to=="object"?Pe({},ee,ie.to.state):ee,force:N}),Y||Z)}else ie=M(Z,V,!0,B,ee);return v(Z,V,ie),ie})}function x(z,Y){const K=E(z,Y);return K?Promise.reject(K):Promise.resolve()}function k(z){const Y=H.values().next().value;return Y&&typeof Y.runWithContext=="function"?Y.runWithContext(z):z()}function _(z,Y){let K;const[V,ee,N]=Yb(z,Y);K=Ss(V.reverse(),"beforeRouteLeave",z,Y);for(const j of V)j.leaveGuards.forEach(Z=>{K.push($n(Z,z,Y))});const B=x.bind(null,z,Y);return K.push(B),J(K).then(()=>{K=[];for(const j of u.list())K.push($n(j,z,Y));return K.push(B),J(K)}).then(()=>{K=Ss(ee,"beforeRouteUpdate",z,Y);for(const j of ee)j.updateGuards.forEach(Z=>{K.push($n(Z,z,Y))});return K.push(B),J(K)}).then(()=>{K=[];for(const j of N)if(j.beforeEnter)if(Pt(j.beforeEnter))for(const Z of j.beforeEnter)K.push($n(Z,z,Y));else K.push($n(j.beforeEnter,z,Y));return K.push(B),J(K)}).then(()=>(z.matched.forEach(j=>j.enterCallbacks={}),K=Ss(N,"beforeRouteEnter",z,Y),K.push(B),J(K))).then(()=>{K=[];for(const j of p.list())K.push($n(j,z,Y));return K.push(B),J(K)}).catch(j=>Kt(j,8)?j:Promise.reject(j))}function v(z,Y,K){g.list().forEach(V=>k(()=>V(z,Y,K)))}function M(z,Y,K,V,ee){const N=E(z,Y);if(N)return N;const B=Y===vn,j=ii?history.state:{};K&&(V||B?d.replace(z.fullPath,Pe({scroll:B&&j&&j.scroll},ee)):d.push(z.fullPath,ee)),s.value=z,W(z,Y,K,B),D()}let A;function w(){A||(A=d.listen((z,Y,K)=>{if(!X.listening)return;const V=y(z),ee=$(V);if(ee){R(Pe(ee,{replace:!0}),V).catch(Ji);return}h=V;const N=s.value;ii&&ib(Wc(N.fullPath,K.delta),Zo()),_(V,N).catch(B=>Kt(B,12)?B:Kt(B,2)?(R(B.to,V).then(j=>{Kt(j,20)&&!K.delta&&K.type===gr.pop&&d.go(-1,!1)}).catch(Ji),Promise.reject()):(K.delta&&d.go(-K.delta,!1),I(B,V,N))).then(B=>{B=B||M(V,N,!1),B&&(K.delta&&!Kt(B,8)?d.go(-K.delta,!1):K.type===gr.pop&&Kt(B,20)&&d.go(-1,!1)),v(V,N,B)}).catch(Ji)}))}let L=Fi(),T=Fi(),O;function I(z,Y,K){D(z);const V=T.list();return V.length?V.forEach(ee=>ee(z,Y,K)):console.error(z),Promise.reject(z)}function F(){return O&&s.value!==vn?Promise.resolve():new Promise((z,Y)=>{L.add([z,Y])})}function D(z){return O||(O=!z,w(),L.list().forEach(([Y,K])=>z?K(z):Y()),L.reset()),z}function W(z,Y,K,V){const{scrollBehavior:ee}=e;if(!ii||!ee)return Promise.resolve();const N=!K&&rb(Wc(z.fullPath,0))||(V||!K)&&history.state&&history.state.scroll||null;return zt().then(()=>ee(z,Y,N)).then(B=>B&&nb(B)).catch(B=>I(B,z,Y))}const G=z=>d.go(z);let U;const H=new Set,X={currentRoute:s,listening:!0,addRoute:c,removeRoute:a,hasRoute:m,getRoutes:f,resolve:y,options:e,push:S,replace:C,go:G,back:()=>G(-1),forward:()=>G(1),beforeEach:u.add,beforeResolve:p.add,afterEach:g.add,onError:T.add,isReady:F,install(z){const Y=this;z.component("RouterLink",Ub),z.component("RouterView",Gb),z.config.globalProperties.$router=Y,Object.defineProperty(z.config.globalProperties,"$route",{enumerable:!0,get:()=>qt(s)}),ii&&!U&&s.value===vn&&(U=!0,S(d.location).catch(ee=>{}));const K={};for(const ee in vn)Object.defineProperty(K,ee,{get:()=>s.value[ee],enumerable:!0});z.provide(Qo,Y),z.provide(ul,Ba(K)),z.provide(ua,s);const V=z.unmount;H.add(z),z.unmount=function(){H.delete(z),H.size<1&&(h=vn,A&&A(),A=null,s.value=vn,U=!1,O=!1),V()}}};function J(z){return z.reduce((Y,K)=>Y.then(()=>k(K)),Promise.resolve())}return X}function Yb(e,t){const n=[],i=[],d=[],u=Math.max(t.matched.length,e.matched.length);for(let p=0;p<u;p++){const g=t.matched[p];g&&(e.matched.find(h=>yi(h,g))?i.push(g):n.push(g));const s=e.matched[p];s&&(t.matched.find(h=>yi(h,s))||d.push(s))}return[n,i,d]}function Ri(){return kt(Qo)}function Jo(){return kt(ul)}function Hf(e){return Na()?(Ju(e),!0):!1}function wo(e){return typeof e=="function"?e():qt(e)}const Uf=typeof window<"u"&&typeof document<"u",Xb=()=>{};function Zb(...e){if(e.length!==1)return Yn(...e);const t=e[0];return typeof t=="function"?Fo(Va(()=>({get:t,set:Xb}))):Te(t)}function Qb(e){var t;const n=wo(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Jb=Uf?window:void 0,qb=Uf?window.document:void 0;function ew(){const e=Te(!1);return Dt()&&nt(()=>{e.value=!0}),e}function tw(e){const t=ew();return Ee(()=>(t.value,!!e()))}function nw(e,t,n={}){const{window:i=Jb,...d}=n;let u;const p=tw(()=>i&&"MutationObserver"in i),g=()=>{u&&(u.disconnect(),u=void 0)},s=Ye(()=>Qb(e),o=>{g(),p.value&&i&&o&&(u=new MutationObserver(t),u.observe(o,d))},{immediate:!0}),h=()=>{g(),s()};return Hf(h),{isSupported:p,stop:h}}function ei(e=null,t={}){var n,i;const{document:d=qb}=t,u=Zb((n=e??(d==null?void 0:d.title))!=null?n:null),p=e&&typeof e=="function";function g(s){if(!("titleTemplate"in t))return s;const h=t.titleTemplate||"%s";return typeof h=="function"?h(s):wo(h).replace(/%s/g,s)}return Ye(u,(s,h)=>{s!==h&&d&&(d.title=g(typeof s=="string"?s:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&d&&!p&&nw((i=d.head)==null?void 0:i.querySelector("title"),()=>{d&&d.title!==u.value&&(u.value=g(d.title))},{childList:!0}),u}var Mn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function cn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function zf(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 In={exports:{}},St={exports:{}};const Jt=Symbol("Cleanup Function"),Vf=Symbol("Timeout Token"),si=Symbol("Signal Reason"),$t=Symbol("Unset"),[to,iw]=function(){var t=new AbortController,n=!!Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t.signal),"reason");try{t.abort()}catch{}return[n,fl(t.signal.reason)]}();let $o=class{constructor(t=new AbortController){this.controller=t,this.signal=t.signal,this.signal[si]=$t;var n,i=(d,u)=>{var p=()=>{if(u&&this.signal){let g=qo(this.signal);this._trackSignalReason(g),u(g!==$t?g:void 0)}u=null};this.signal.addEventListener("abort",p,!1),n=()=>{this.signal&&(this.signal.removeEventListener("abort",p,!1),this.signal.pr&&(this.signal.pr[Jt]=null)),p=null}};this.signal.pr=new Promise(i),this.signal.pr[Jt]=n,this.signal.pr.catch(n),i=n=null}abort(...t){var n=t.length>0?t[0]:$t;this._trackSignalReason(n),this.controller&&(to&&n!==$t?this.controller.abort(n):this.controller.abort())}discard(){this.signal&&(this.signal.pr&&(this.signal.pr[Jt]&&this.signal.pr[Jt](),this.signal.pr=null),delete this.signal[si],to||(this.signal.reason=null),this.signal=null),this.controller=null}_trackSignalReason(t){this.signal&&t!==$t&&(!to&&!("reason"in this.signal)&&(this.signal.reason=t),this.signal[si]===$t&&(this.signal[si]=t))}};St.exports={CLEANUP_FN:Jt,TIMEOUT_TOKEN:Vf,UNSET:$t,getSignalReason:qo,cancelToken:$o,signalPromise:hl,processTokenOrSignal:jf,deferred:Gf,isFunction:Kf,isPromise:Yf,invokeAbort:Xf};St.exports.CLEANUP_FN=Jt;St.exports.TIMEOUT_TOKEN=Vf;St.exports.UNSET=$t;St.exports.getSignalReason=qo;St.exports.cancelToken=$o;St.exports.signalPromise=hl;St.exports.processTokenOrSignal=jf;St.exports.deferred=Gf;St.exports.isFunction=Kf;St.exports.isPromise=Yf;St.exports.invokeAbort=Xf;function qo(e){return e&&e.aborted?to&&iw?fl(e.reason)?$t:e.reason:si in e?e[si]:$t:$t}function hl(e){if(e.pr)return e.pr;var t,n=new Promise(function(d,u){t=()=>{if(u&&e){let p=qo(e);u(p!==$t?p:void 0)}u=null},e.addEventListener("abort",t,!1)});return n[Jt]=function(){e&&(e.removeEventListener("abort",t,!1),e=null),n&&(n=n[Jt]=t=null)},n.catch(n[Jt]),n}function jf(e){e instanceof AbortController&&(e=new $o(e));var t=e&&e instanceof $o?e.signal:e,n=hl(t);return{tokenOrSignal:e,signal:t,signalPr:n}}function Gf(){var e,t=new Promise(n=>e=n);return{pr:t,resolve:e}}function Kf(e){return typeof e=="function"}function Yf(e){return e&&typeof e=="object"&&typeof e.then=="function"}function fl(e){return typeof e=="object"&&e instanceof Error&&e.name=="AbortError"}function Xf(e,t){!fl(t)&&t!==$t?e.abort(t):e.abort()}var rw=St.exports,{CLEANUP_FN:eu,TIMEOUT_TOKEN:Zf,UNSET:mr,getSignalReason:Qf,cancelToken:Li,signalPromise:ow,processTokenOrSignal:Jf,isFunction:sw,invokeAbort:es}=rw;In.exports=Object.assign(lw,{cancelToken:Li,delay:dl,timeout:qf,signalRace:id,signalAll:rd,tokenCycle:od});var aw=In.exports.cancelToken=Li;In.exports.delay=dl;In.exports.timeout=qf;In.exports.signalRace=id;In.exports.signalAll=rd;In.exports.tokenCycle=od;function lw(e){return function(n,...i){var d,u;if({tokenOrSignal:n,signal:d,signalPr:u}=Jf(n),d.aborted)return u;var p=u.catch(function(r){var l=Qf(d);l=l!==mr?l:r;try{var c=g.return();throw c.value!==void 0?c.value:l!==mr?l:void 0}finally{g=s=p=h=null}}),{it:g,result:s}=cw.call(this,e,d,...i),h=Promise.race([s,p]);if(n!==d&&n[Zf]){let o=function(l){es(n,l),sw(n.discard)&&n.discard(),n=o=null};h.then(o,o)}else h.catch(()=>{}),n=null;return i=null,h}}function dl(e,t){typeof e=="number"&&typeof t!="number"&&([t,e]=[e,t]);var n,i;return e&&({tokenOrSignal:e,signal:n,signalPr:i}=Jf(e)),n&&n.aborted?i:new Promise(function(u,p){n&&(i.catch(function(){if(p&&n&&g){let h=Qf(n);clearTimeout(g),p(h!==mr?h:`delay (${t}) interrupted`),u=p=g=n=null}}),i=null);var g=setTimeout(function(){u(`delayed: ${t}`),u=p=g=n=null},t)})}function qf(e,t="Timeout"){e=Number(e)||0;var n=new Li;return dl(n.signal,e).then(()=>i(t),i),Object.defineProperty(n,Zf,{value:!0,writable:!1,enumerable:!1,configurable:!1}),n;function i(...d){es(n,d.length>0?d[0]:mr),n.discard(),n=null}}function ed(e){return e.reduce(function(n,i){var d=ow(i);return n[0].push(d),i.pr||n[1].push(d),n},[[],[]])}function td(e,t,n){e.then(function(d){es(t,d),t.discard(),t=null}).then(function(){for(let d of n)d[eu]&&d[eu]();n=null})}function nd(e){return e.catch(t=>t)}function id(e){var t=new Li,[n,i]=ed(e);return td(nd(Promise.race(n)),t,i),t.signal}function rd(e){var t=new Li,[n,i]=ed(e);return td(Promise.all(n.map(nd)),t,i),t.signal}function od(){var e;return function(...n){return e&&(es(e,n.length>0?n[0]:mr),e.discard()),e=new Li}}function cw(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(p){return Promise.reject(p)}return function p(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(p)}),s.catch(function(){n=null})),g=null,s}(u)}()}}var uw=In.exports;const hw=cn(uw);function ha(){ha=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,i=typeof Symbol=="function"?Symbol:{},d=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",p=i.toStringTag||"@@toStringTag";function g(_,v,M){return Object.defineProperty(_,v,{value:M,enumerable:!0,configurable:!0,writable:!0}),_[v]}try{g({},"")}catch{g=function(v,M,A){return v[M]=A}}function s(_,v,M,A){var w=Object.create((v&&v.prototype instanceof r?v:r).prototype),L=new R(A||[]);return w._invoke=function(T,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 G=I.delegate;if(G){var U=S(G,I);if(U){if(U===o)continue;return U}}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 H=h(T,O,I);if(H.type==="normal"){if(F=I.done?"completed":"suspendedYield",H.arg===o)continue;return{value:H.arg,done:I.done}}H.type==="throw"&&(F="completed",I.method="throw",I.arg=H.arg)}}}(_,M,L),w}function h(_,v,M){try{return{type:"normal",arg:_.call(v,M)}}catch(A){return{type:"throw",arg:A}}}e.wrap=s;var o={};function r(){}function l(){}function c(){}var a={};g(a,d,function(){return this});var f=Object.getPrototypeOf,m=f&&f(f(x([])));m&&m!==t&&n.call(m,d)&&(a=m);var y=c.prototype=r.prototype=Object.create(a);function b(_){["next","throw","return"].forEach(function(v){g(_,v,function(M){return this._invoke(v,M)})})}function E(_,v){function M(w,L,T,O){var I=h(_[w],_,L);if(I.type!=="throw"){var F=I.arg,D=F.value;return D&&typeof D=="object"&&n.call(D,"__await")?v.resolve(D.__await).then(function(W){M("next",W,T,O)},function(W){M("throw",W,T,O)}):v.resolve(D).then(function(W){F.value=W,T(F)},function(W){return M("throw",W,T,O)})}O(I.arg)}var A;this._invoke=function(w,L){function T(){return new v(function(O,I){M(w,L,O,I)})}return A=A?A.then(T,T):T()}}function S(_,v){var M=_.iterator[v.method];if(M===void 0){if(v.delegate=null,v.method==="throw"){if(_.iterator.return&&(v.method="return",v.arg=void 0,S(_,v),v.method==="throw"))return o;v.method="throw",v.arg=new TypeError("The iterator does not provide a 'throw' method")}return o}var A=h(M,_.iterator,v.arg);if(A.type==="throw")return v.method="throw",v.arg=A.arg,v.delegate=null,o;var w=A.arg;return w?w.done?(v[_.resultName]=w.value,v.next=_.nextLoc,v.method!=="return"&&(v.method="next",v.arg=void 0),v.delegate=null,o):w:(v.method="throw",v.arg=new TypeError("iterator result is not an object"),v.delegate=null,o)}function C(_){var v={tryLoc:_[0]};1 in _&&(v.catchLoc=_[1]),2 in _&&(v.finallyLoc=_[2],v.afterLoc=_[3]),this.tryEntries.push(v)}function $(_){var v=_.completion||{};v.type="normal",delete v.arg,_.completion=v}function R(_){this.tryEntries=[{tryLoc:"root"}],_.forEach(C,this),this.reset(!0)}function x(_){if(_){var v=_[d];if(v)return v.call(_);if(typeof _.next=="function")return _;if(!isNaN(_.length)){var M=-1,A=function w(){for(;++M<_.length;)if(n.call(_,M))return w.value=_[M],w.done=!1,w;return w.value=void 0,w.done=!0,w};return A.next=A}}return{next:k}}function k(){return{value:void 0,done:!0}}return l.prototype=c,g(y,"constructor",c),g(c,"constructor",l),l.displayName=g(c,p,"GeneratorFunction"),e.isGeneratorFunction=function(_){var v=typeof _=="function"&&_.constructor;return!!v&&(v===l||(v.displayName||v.name)==="GeneratorFunction")},e.mark=function(_){return Object.setPrototypeOf?Object.setPrototypeOf(_,c):(_.__proto__=c,g(_,p,"GeneratorFunction")),_.prototype=Object.create(y),_},e.awrap=function(_){return{__await:_}},b(E.prototype),g(E.prototype,u,function(){return this}),e.AsyncIterator=E,e.async=function(_,v,M,A,w){w===void 0&&(w=Promise);var L=new E(s(_,v,M,A),w);return e.isGeneratorFunction(v)?L:L.next().then(function(T){return T.done?T.value:L.next()})},b(y),g(y,p,"Generator"),g(y,d,function(){return this}),g(y,"toString",function(){return"[object Generator]"}),e.keys=function(_){var v=[];for(var M in _)v.push(M);return v.reverse(),function A(){for(;v.length;){var w=v.pop();if(w in _)return A.value=w,A.done=!1,A}return A.done=!0,A}},e.values=x,R.prototype={constructor:R,reset:function(_){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($),!_)for(var v in this)v.charAt(0)==="t"&&n.call(this,v)&&!isNaN(+v.slice(1))&&(this[v]=void 0)},stop:function(){this.done=!0;var _=this.tryEntries[0].completion;if(_.type==="throw")throw _.arg;return this.rval},dispatchException:function(_){if(this.done)throw _;var v=this;function M(I,F){return L.type="throw",L.arg=_,v.next=I,F&&(v.method="next",v.arg=void 0),!!F}for(var A=this.tryEntries.length-1;A>=0;--A){var w=this.tryEntries[A],L=w.completion;if(w.tryLoc==="root")return M("end");if(w.tryLoc<=this.prev){var T=n.call(w,"catchLoc"),O=n.call(w,"finallyLoc");if(T&&O){if(this.prev<w.catchLoc)return M(w.catchLoc,!0);if(this.prev<w.finallyLoc)return M(w.finallyLoc)}else if(T){if(this.prev<w.catchLoc)return M(w.catchLoc,!0)}else{if(!O)throw new Error("try statement without catch or finally");if(this.prev<w.finallyLoc)return M(w.finallyLoc)}}}},abrupt:function(_,v){for(var M=this.tryEntries.length-1;M>=0;--M){var A=this.tryEntries[M];if(A.tryLoc<=this.prev&&n.call(A,"finallyLoc")&&this.prev<A.finallyLoc){var w=A;break}}w&&(_==="break"||_==="continue")&&w.tryLoc<=v&&v<=w.finallyLoc&&(w=null);var L=w?w.completion:{};return L.type=_,L.arg=v,w?(this.method="next",this.next=w.finallyLoc,o):this.complete(L)},complete:function(_,v){if(_.type==="throw")throw _.arg;return _.type==="break"||_.type==="continue"?this.next=_.arg:_.type==="return"?(this.rval=this.arg=_.arg,this.method="return",this.next="end"):_.type==="normal"&&v&&(this.next=v),o},finish:function(_){for(var v=this.tryEntries.length-1;v>=0;--v){var M=this.tryEntries[v];if(M.finallyLoc===_)return this.complete(M.completion,M.afterLoc),$(M),o}},catch:function(_){for(var v=this.tryEntries.length-1;v>=0;--v){var M=this.tryEntries[v];if(M.tryLoc===_){var A=M.completion;if(A.type==="throw"){var w=A.arg;$(M)}return w}}throw new Error("illegal catch attempt")},delegateYield:function(_,v,M){return this.delegate={iterator:x(_),resultName:v,nextLoc:M},this.method==="next"&&(this.arg=void 0),o}},e}var fw=function(e){return e._runningInstances.length>=e._maxConcurrency},dw=function(e){var t=e._activeInstances[0];t&&t.cancel()},pw=function(e){e._enqueuedInstances.forEach(function(t){t.isEnqueued=!1,t.isDropped=!0})};function Ni(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 gw(e){return Ee(function(){return e().length})}function tu(e){return Ee(function(){var t=e();return t[t.length-1]})}function mw(e){return Ee(function(){return e()[0]})}function sd(e){return ki(e)}function ut(e){return yw(ha().mark(function t(n){var i=arguments;return ha().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 vw(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 p.isCanceling&&p.isFinished}),isActive:Ee(function(){return p.isRunning&&!p.isCanceling}),isSuccessful:!1,isNotDropped:Ee(function(){return!p.isDropped}),isError:Ee(function(){return!!p.error}),status:Ee(function(){var s=[[p.isRunning,"running"],[p.isEnqueued,"enqueued"],[p.isCanceled,"canceled"],[p.isCanceling,"canceling"],[p.isDropped,"dropped"],[p.isError,"error"],[p.isSuccessful,"success"]].find(function(h){return h[0]});return s&&s[1]}),error:null,value:null,cancel:function(s){if((s===void 0?{force:!1}:s).force||(p.isCanceling=!0,p.isEnqueued&&(p.isFinished=!0),p.isEnqueued=!1),p.token&&p._canAbort){p.token.abort("cancel");try{p.token.discard()}catch{}p.token=void 0,p._canAbort=!1}},canceledOn:function(s){return s.pr.catch(function(h){p.cancel()}),p},_run:function(){(function(s,h,o,r){var l=new aw,c=hw(h,l);function a(){s.isRunning=!1,s.isFinished=!0}s.token=l,s.hasStarted=!0,s.isRunning=!0,s.isEnqueued=!1,c.call.apply(c,[s,l].concat(o)).then(function(f){s.value=f,s.isSuccessful=!0,a(),s._deferredObject.resolve(f),s._canAbort=!1,r.onFinish(s)}).catch(function(f){f!=="cancel"&&(s.error=f),a(),s._shouldThrow&&s._deferredObject.reject(f),r.onFinish(s)})})(p,e,t,n)},_handled:!0,_deferredObject:(i={},d=new Promise(function(s,h){i.resolve=s,i.reject=h}),i.promise=d,i),_shouldThrow:!1,_canAbort:!0,then:function(s,h){return p._shouldThrow=!0,p._deferredObject.promise.then(s,h)},catch:function(s,h){return h===void 0&&(h=!0),p._shouldThrow=h,p._deferredObject.promise.catch(s)},finally:function(s){return p._shouldThrow=!0,p._deferredObject.promise.finally(s)}},p=sd(u),g=n.modifiers;return g.drop?p.isDropped=!0:g.enqueue?p.isEnqueued=!0:p._run(),p}function yw(e,t){t===void 0&&(t={cancelOnUnmount:!0});var n=Dt(),i=Zu(),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(p){return p.isRunning})}),isError:Ee(function(){return!(!u.last||!u.last.isError)}),_instances:[],_successfulInstances:Ni(function(){return u},"isSuccessful"),_runningInstances:Ni(function(){return u},"isRunning"),_enqueuedInstances:Ni(function(){return u},"isEnqueued"),_notDroppedInstances:Ni(function(){return u},"isNotDropped"),_activeInstances:Ni(function(){return u},"isActive"),performCount:gw(function(){return u._instances}),last:tu(function(){return u._notDroppedInstances}),lastSuccessful:tu(function(){return u._successfulInstances}),firstEnqueued:mw(function(){return u._enqueuedInstances}),cancelAll:function(p){var g=(p===void 0?{force:!1}:p).force;u._instances.forEach(function(s){try{(g||!s.isDropped&&!s.isFinished)&&s.cancel({force:g})}catch(h){if(h!=="cancel")throw h}})},perform:function(){var p=arguments,g={enqueue:!1,drop:!1};u._hasConcurrency&&fw(u)&&(u._isDropping&&(g.drop=!0),u._isRestartable&&dw(u),u._isKeepingLatest&&pw(u),(u._isEnqueuing||u._isKeepingLatest)&&(g.enqueue=!0));var s=function(){return bw(u)},h=function(){return vw(e,[].slice.call(p),{modifiers:g,onFinish:s,scope:i,id:u._instances.length+1})},o=i.active?i.run(h):h();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(p){return u._maxConcurrency=p,u}},u=sd(d);return n&&t.cancelOnUnmount&&kr(function(){u._instances&&u.destroy()}),u}function bw(e){if(e._isEnqueuing||e._isKeepingLatest){var t=e.firstEnqueued;t&&t._run()}}function ad(e,t){return function(){return e.apply(t,arguments)}}const{toString:ww}=Object.prototype,{getPrototypeOf:pl}=Object,ts=(e=>t=>{const n=ww.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Gt=e=>(e=e.toLowerCase(),t=>ts(t)===e),ns=e=>t=>typeof t===e,{isArray:Ti}=Array,vr=ns("undefined");function $w(e){return e!==null&&!vr(e)&&e.constructor!==null&&!vr(e.constructor)&&Et(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ld=Gt("ArrayBuffer");function _w(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ld(e.buffer),t}const Cw=ns("string"),Et=ns("function"),cd=ns("number"),is=e=>e!==null&&typeof e=="object",Sw=e=>e===!0||e===!1,no=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)},Aw=Gt("Date"),xw=Gt("File"),kw=Gt("Blob"),Ew=Gt("FileList"),Rw=e=>is(e)&&Et(e.pipe),Lw=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Et(e.append)&&((t=ts(e))==="formdata"||t==="object"&&Et(e.toString)&&e.toString()==="[object FormData]"))},Tw=Gt("URLSearchParams"),Mw=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Er(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let i,d;if(typeof e!="object"&&(e=[e]),Ti(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),p=u.length;let g;for(i=0;i<p;i++)g=u[i],t.call(null,e[g],g,e)}}function ud(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 hd=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),fd=e=>!vr(e)&&e!==hd;function fa(){const{caseless:e}=fd(this)&&this||{},t={},n=(i,d)=>{const u=e&&ud(t,d)||d;no(t[u])&&no(i)?t[u]=fa(t[u],i):no(i)?t[u]=fa({},i):Ti(i)?t[u]=i.slice():t[u]=i};for(let i=0,d=arguments.length;i<d;i++)arguments[i]&&Er(arguments[i],n);return t}const Iw=(e,t,n,{allOwnKeys:i}={})=>(Er(t,(d,u)=>{n&&Et(d)?e[u]=ad(d,n):e[u]=d},{allOwnKeys:i}),e),Ow=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Fw=(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)},Nw=(e,t,n,i)=>{let d,u,p;const g={};if(t=t||{},e==null)return t;do{for(d=Object.getOwnPropertyNames(e),u=d.length;u-- >0;)p=d[u],(!i||i(p,e,t))&&!g[p]&&(t[p]=e[p],g[p]=!0);e=n!==!1&&pl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Pw=(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},Dw=e=>{if(!e)return null;if(Ti(e))return e;let t=e.length;if(!cd(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Bw=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&pl(Uint8Array)),Ww=(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])}},Hw=(e,t)=>{let n;const i=[];for(;(n=e.exec(t))!==null;)i.push(n);return i},Uw=Gt("HTMLFormElement"),zw=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,d){return i.toUpperCase()+d}),nu=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Vw=Gt("RegExp"),dd=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};Er(n,(d,u)=>{let p;(p=t(d,u,e))!==!1&&(i[u]=p||d)}),Object.defineProperties(e,i)},jw=e=>{dd(e,(t,n)=>{if(Et(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=e[n];if(Et(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+"'")})}})},Gw=(e,t)=>{const n={},i=d=>{d.forEach(u=>{n[u]=!0})};return Ti(e)?i(e):i(String(e).split(t)),n},Kw=()=>{},Yw=(e,t)=>(e=+e,Number.isFinite(e)?e:t),As="abcdefghijklmnopqrstuvwxyz",iu="0123456789",pd={DIGIT:iu,ALPHA:As,ALPHA_DIGIT:As+As.toUpperCase()+iu},Xw=(e=16,t=pd.ALPHA_DIGIT)=>{let n="";const{length:i}=t;for(;e--;)n+=t[Math.random()*i|0];return n};function Zw(e){return!!(e&&Et(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Qw=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=Ti(i)?[]:{};return Er(i,(p,g)=>{const s=n(p,d+1);!vr(s)&&(u[g]=s)}),t[d]=void 0,u}}return i};return n(e,0)},Jw=Gt("AsyncFunction"),qw=e=>e&&(is(e)||Et(e))&&Et(e.then)&&Et(e.catch),ne={isArray:Ti,isArrayBuffer:ld,isBuffer:$w,isFormData:Lw,isArrayBufferView:_w,isString:Cw,isNumber:cd,isBoolean:Sw,isObject:is,isPlainObject:no,isUndefined:vr,isDate:Aw,isFile:xw,isBlob:kw,isRegExp:Vw,isFunction:Et,isStream:Rw,isURLSearchParams:Tw,isTypedArray:Bw,isFileList:Ew,forEach:Er,merge:fa,extend:Iw,trim:Mw,stripBOM:Ow,inherits:Fw,toFlatObject:Nw,kindOf:ts,kindOfTest:Gt,endsWith:Pw,toArray:Dw,forEachEntry:Ww,matchAll:Hw,isHTMLForm:Uw,hasOwnProperty:nu,hasOwnProp:nu,reduceDescriptors:dd,freezeMethods:jw,toObjectSet:Gw,toCamelCase:zw,noop:Kw,toFiniteNumber:Yw,findKey:ud,global:hd,isContextDefined:fd,ALPHABET:pd,generateString:Xw,isSpecCompliantForm:Zw,toJSONObject:Qw,isAsyncFn:Jw,isThenable:qw};function Fe(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(Fe,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 gd=Fe.prototype,md={};["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=>{md[e]={value:e}});Object.defineProperties(Fe,md);Object.defineProperty(gd,"isAxiosError",{value:!0});Fe.from=(e,t,n,i,d,u)=>{const p=Object.create(gd);return ne.toFlatObject(e,p,function(s){return s!==Error.prototype},g=>g!=="isAxiosError"),Fe.call(p,e.message,t,n,i,d),p.cause=e,p.name=e.name,u&&Object.assign(p,u),p};const e1=null;function da(e){return ne.isPlainObject(e)||ne.isArray(e)}function vd(e){return ne.endsWith(e,"[]")?e.slice(0,-2):e}function ru(e,t,n){return e?e.concat(t).map(function(d,u){return d=vd(d),!n&&u?"["+d+"]":d}).join(n?".":""):t}function t1(e){return ne.isArray(e)&&!e.some(da)}const n1=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,p=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 h(a){if(a===null)return"";if(ne.isDate(a))return a.toISOString();if(!s&&ne.isBlob(a))throw new Fe("Blob is not supported. Use a Buffer instead.");return ne.isArrayBuffer(a)||ne.isTypedArray(a)?s&&typeof Blob=="function"?new Blob([a]):Buffer.from(a):a}function o(a,f,m){let y=a;if(a&&!m&&typeof a=="object"){if(ne.endsWith(f,"{}"))f=i?f:f.slice(0,-2),a=JSON.stringify(a);else if(ne.isArray(a)&&t1(a)||(ne.isFileList(a)||ne.endsWith(f,"[]"))&&(y=ne.toArray(a)))return f=vd(f),y.forEach(function(E,S){!(ne.isUndefined(E)||E===null)&&t.append(p===!0?ru([f],S,u):p===null?f:f+"[]",h(E))}),!1}return da(a)?!0:(t.append(ru(m,f,u),h(a)),!1)}const r=[],l=Object.assign(n1,{defaultVisitor:o,convertValue:h,isVisitable:da});function c(a,f){if(!ne.isUndefined(a)){if(r.indexOf(a)!==-1)throw Error("Circular reference detected in "+f.join("."));r.push(a),ne.forEach(a,function(y,b){(!(ne.isUndefined(y)||y===null)&&d.call(t,y,ne.isString(b)?b.trim():b,f,l))===!0&&c(y,f?f.concat(b):[b])}),r.pop()}}if(!ne.isObject(e))throw new TypeError("data must be an object");return c(e),t}function ou(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 yd=gl.prototype;yd.append=function(t,n){this._pairs.push([t,n])};yd.toString=function(t){const n=t?function(i){return t.call(this,i,ou)}:ou;return this._pairs.map(function(d){return n(d[0])+"="+n(d[1])},"").join("&")};function i1(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function bd(e,t,n){if(!t)return e;const i=n&&n.encode||i1,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 p=e.indexOf("#");p!==-1&&(e=e.slice(0,p)),e+=(e.indexOf("?")===-1?"?":"&")+u}return e}class r1{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 su=r1,wd={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},o1=typeof URLSearchParams<"u"?URLSearchParams:gl,s1=typeof FormData<"u"?FormData:null,a1=typeof Blob<"u"?Blob:null,l1=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),c1=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Ft={isBrowser:!0,classes:{URLSearchParams:o1,FormData:s1,Blob:a1},isStandardBrowserEnv:l1,isStandardBrowserWebWorkerEnv:c1,protocols:["http","https","file","blob","url","data"]};function u1(e,t){return rs(e,new Ft.classes.URLSearchParams,Object.assign({visitor:function(n,i,d,u){return Ft.isNode&&ne.isBuffer(n)?(this.append(i,n.toString("base64")),!1):u.defaultVisitor.apply(this,arguments)}},t))}function h1(e){return ne.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function f1(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 $d(e){function t(n,i,d,u){let p=n[u++];const g=Number.isFinite(+p),s=u>=n.length;return p=!p&&ne.isArray(d)?d.length:p,s?(ne.hasOwnProp(d,p)?d[p]=[d[p],i]:d[p]=i,!g):((!d[p]||!ne.isObject(d[p]))&&(d[p]=[]),t(n,i,d[p],u)&&ne.isArray(d[p])&&(d[p]=f1(d[p])),!g)}if(ne.isFormData(e)&&ne.isFunction(e.entries)){const n={};return ne.forEachEntry(e,(i,d)=>{t(h1(i),d,n,0)}),n}return null}function d1(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:wd,adapter:Ft.isNode?"http":"xhr",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($d(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 u1(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),d1(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 p=!(n&&n.silentJSONParsing)&&d;try{return JSON.parse(t)}catch(g){if(p)throw g.name==="SyntaxError"?Fe.from(g,Fe.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:Ft.classes.FormData,Blob:Ft.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,p1=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"]),g1=e=>{const t={};let n,i,d;return e&&e.split(`
766
- `).forEach(function(p){d=p.indexOf(":"),n=p.substring(0,d).trim().toLowerCase(),i=p.substring(d+1).trim(),!(!n||t[n]&&p1[n])&&(n==="set-cookie"?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t},au=Symbol("internals");function Pi(e){return e&&String(e).trim().toLowerCase()}function io(e){return e===!1||e==null?e:ne.isArray(e)?e.map(io):String(e)}function m1(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 v1=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function xs(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 y1(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,i)=>n.toUpperCase()+i)}function b1(e,t){const n=ne.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+n,{value:function(d,u,p){return this[i].call(this,t,d,u,p)},configurable:!0})})}class os{constructor(t){t&&this.set(t)}set(t,n,i){const d=this;function u(g,s,h){const o=Pi(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||h===!0||h===void 0&&d[r]!==!1)&&(d[r||s]=io(g))}const p=(g,s)=>ne.forEach(g,(h,o)=>u(h,o,s));return ne.isPlainObject(t)||t instanceof this.constructor?p(t,n):ne.isString(t)&&(t=t.trim())&&!v1(t)?p(g1(t),n):t!=null&&u(n,t,i),this}get(t,n){if(t=Pi(t),t){const i=ne.findKey(this,t);if(i){const d=this[i];if(!n)return d;if(n===!0)return m1(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=Pi(t),t){const i=ne.findKey(this,t);return!!(i&&this[i]!==void 0&&(!n||xs(this,this[i],i,n)))}return!1}delete(t,n){const i=this;let d=!1;function u(p){if(p=Pi(p),p){const g=ne.findKey(i,p);g&&(!n||xs(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||xs(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 p=ne.findKey(i,u);if(p){n[p]=io(d),delete n[u];return}const g=t?y1(u):String(u).trim();g!==u&&delete n[u],n[g]=io(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(`
767
- `)}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[au]=this[au]={accessors:{}}).accessors,d=this.prototype;function u(p){const g=Pi(p);i[g]||(b1(d,p),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 tn=os;function ks(e,t){const n=this||vl,i=t||n,d=tn.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 _d(e){return!!(e&&e.__CANCEL__)}function Rr(e,t,n){Fe.call(this,e??"canceled",Fe.ERR_CANCELED,t,n),this.name="CanceledError"}ne.inherits(Rr,Fe,{__CANCEL__:!0});function w1(e,t,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new Fe("Request failed with status code "+n.status,[Fe.ERR_BAD_REQUEST,Fe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const $1=Ft.isStandardBrowserEnv?function(){return{write:function(n,i,d,u,p,g){const s=[];s.push(n+"="+encodeURIComponent(i)),ne.isNumber(d)&&s.push("expires="+new Date(d).toGMTString()),ne.isString(u)&&s.push("path="+u),ne.isString(p)&&s.push("domain="+p),g===!0&&s.push("secure"),document.cookie=s.join("; ")},read:function(n){const i=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function _1(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function C1(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Cd(e,t){return e&&!_1(t)?C1(e,t):t}const S1=Ft.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let i;function d(u){let p=u;return t&&(n.setAttribute("href",p),p=n.href),n.setAttribute("href",p),{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(p){const g=ne.isString(p)?d(p):p;return g.protocol===i.protocol&&g.host===i.host}}():function(){return function(){return!0}}();function A1(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function x1(e,t){e=e||10;const n=new Array(e),i=new Array(e);let d=0,u=0,p;return t=t!==void 0?t:1e3,function(s){const h=Date.now(),o=i[u];p||(p=h),n[d]=s,i[d]=h;let r=u,l=0;for(;r!==d;)l+=n[r++],r=r%e;if(d=(d+1)%e,d===u&&(u=(u+1)%e),h-p<t)return;const c=o&&h-o;return c?Math.round(l*1e3/c):void 0}}function lu(e,t){let n=0;const i=x1(50,250);return d=>{const u=d.loaded,p=d.lengthComputable?d.total:void 0,g=u-n,s=i(g),h=u<=p;n=u;const o={loaded:u,total:p,progress:p?u/p:void 0,bytes:g,rate:s||void 0,estimated:s&&p&&h?(p-u)/s:void 0,event:d};o[t?"download":"upload"]=!0,e(o)}}const k1=typeof XMLHttpRequest<"u",E1=k1&&function(e){return new Promise(function(n,i){let d=e.data;const u=tn.from(e.headers).normalize(),p=e.responseType;let g;function s(){e.cancelToken&&e.cancelToken.unsubscribe(g),e.signal&&e.signal.removeEventListener("abort",g)}ne.isFormData(d)&&(Ft.isStandardBrowserEnv||Ft.isStandardBrowserWebWorkerEnv?u.setContentType(!1):u.setContentType("multipart/form-data;",!1));let h=new XMLHttpRequest;if(e.auth){const c=e.auth.username||"",a=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";u.set("Authorization","Basic "+btoa(c+":"+a))}const o=Cd(e.baseURL,e.url);h.open(e.method.toUpperCase(),bd(o,e.params,e.paramsSerializer),!0),h.timeout=e.timeout;function r(){if(!h)return;const c=tn.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),f={data:!p||p==="text"||p==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:c,config:e,request:h};w1(function(y){n(y),s()},function(y){i(y),s()},f),h=null}if("onloadend"in h?h.onloadend=r:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(r)},h.onabort=function(){h&&(i(new Fe("Request aborted",Fe.ECONNABORTED,e,h)),h=null)},h.onerror=function(){i(new Fe("Network Error",Fe.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let a=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const f=e.transitional||wd;e.timeoutErrorMessage&&(a=e.timeoutErrorMessage),i(new Fe(a,f.clarifyTimeoutError?Fe.ETIMEDOUT:Fe.ECONNABORTED,e,h)),h=null},Ft.isStandardBrowserEnv){const c=(e.withCredentials||S1(o))&&e.xsrfCookieName&&$1.read(e.xsrfCookieName);c&&u.set(e.xsrfHeaderName,c)}d===void 0&&u.setContentType(null),"setRequestHeader"in h&&ne.forEach(u.toJSON(),function(a,f){h.setRequestHeader(f,a)}),ne.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),p&&p!=="json"&&(h.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&h.addEventListener("progress",lu(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&h.upload&&h.upload.addEventListener("progress",lu(e.onUploadProgress)),(e.cancelToken||e.signal)&&(g=c=>{h&&(i(!c||c.type?new Rr(null,e,h):c),h.abort(),h=null)},e.cancelToken&&e.cancelToken.subscribe(g),e.signal&&(e.signal.aborted?g():e.signal.addEventListener("abort",g)));const l=A1(o);if(l&&Ft.protocols.indexOf(l)===-1){i(new Fe("Unsupported protocol "+l+":",Fe.ERR_BAD_REQUEST,e));return}h.send(d||null)})},ro={http:e1,xhr:E1};ne.forEach(ro,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Sd={getAdapter:e=>{e=ne.isArray(e)?e:[e];const{length:t}=e;let n,i;for(let d=0;d<t&&(n=e[d],!(i=ne.isString(n)?ro[n.toLowerCase()]:n));d++);if(!i)throw i===!1?new Fe(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(ne.hasOwnProp(ro,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!ne.isFunction(i))throw new TypeError("adapter is not a function");return i},adapters:ro};function Es(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Rr(null,e)}function cu(e){return Es(e),e.headers=tn.from(e.headers),e.data=ks.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Sd.getAdapter(e.adapter||vl.adapter)(e).then(function(i){return Es(e),i.data=ks.call(e,e.transformResponse,i),i.headers=tn.from(i.headers),i},function(i){return _d(i)||(Es(e),i&&i.response&&(i.response.data=ks.call(e,e.transformResponse,i.response),i.response.headers=tn.from(i.response.headers))),Promise.reject(i)})}const uu=e=>e instanceof tn?e.toJSON():e;function wi(e,t){t=t||{};const n={};function i(h,o,r){return ne.isPlainObject(h)&&ne.isPlainObject(o)?ne.merge.call({caseless:r},h,o):ne.isPlainObject(o)?ne.merge({},o):ne.isArray(o)?o.slice():o}function d(h,o,r){if(ne.isUndefined(o)){if(!ne.isUndefined(h))return i(void 0,h,r)}else return i(h,o,r)}function u(h,o){if(!ne.isUndefined(o))return i(void 0,o)}function p(h,o){if(ne.isUndefined(o)){if(!ne.isUndefined(h))return i(void 0,h)}else return i(void 0,o)}function g(h,o,r){if(r in t)return i(h,o);if(r in e)return i(void 0,h)}const s={url:u,method:u,data:u,baseURL:p,transformRequest:p,transformResponse:p,paramsSerializer:p,timeout:p,timeoutMessage:p,withCredentials:p,adapter:p,responseType:p,xsrfCookieName:p,xsrfHeaderName:p,onUploadProgress:p,onDownloadProgress:p,decompress:p,maxContentLength:p,maxBodyLength:p,beforeRedirect:p,transport:p,httpAgent:p,httpsAgent:p,cancelToken:p,socketPath:p,responseEncoding:p,validateStatus:g,headers:(h,o)=>d(uu(h),uu(o),!0)};return ne.forEach(Object.keys(Object.assign({},e,t)),function(o){const r=s[o]||d,l=r(e[o],t[o],o);ne.isUndefined(l)&&r!==g||(n[o]=l)}),n}const Ad="1.5.0",yl={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{yl[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const hu={};yl.transitional=function(t,n,i){function d(u,p){return"[Axios v"+Ad+"] Transitional option '"+u+"'"+p+(i?". "+i:"")}return(u,p,g)=>{if(t===!1)throw new Fe(d(p," has been removed"+(n?" in "+n:"")),Fe.ERR_DEPRECATED);return n&&!hu[p]&&(hu[p]=!0,console.warn(d(p," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(u,p,g):!0}};function R1(e,t,n){if(typeof e!="object")throw new Fe("options must be an object",Fe.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let d=i.length;for(;d-- >0;){const u=i[d],p=t[u];if(p){const g=e[u],s=g===void 0||p(g,u,e);if(s!==!0)throw new Fe("option "+u+" must be "+s,Fe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Fe("Unknown option "+u,Fe.ERR_BAD_OPTION)}}const pa={assertOptions:R1,validators:yl},yn=pa.validators;class _o{constructor(t){this.defaults=t,this.interceptors={request:new su,response:new su}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=wi(this.defaults,n);const{transitional:i,paramsSerializer:d,headers:u}=n;i!==void 0&&pa.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}:pa.assertOptions(d,{encode:yn.function,serialize:yn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let p=u&&ne.merge(u.common,u[n.method]);u&&ne.forEach(["delete","get","head","post","put","patch","common"],a=>{delete u[a]}),n.headers=tn.concat(p,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 h=[];this.interceptors.response.forEach(function(f){h.push(f.fulfilled,f.rejected)});let o,r=0,l;if(!s){const a=[cu.bind(this),void 0];for(a.unshift.apply(a,g),a.push.apply(a,h),l=a.length,o=Promise.resolve(n);r<l;)o=o.then(a[r++],a[r++]);return o}l=g.length;let c=n;for(r=0;r<l;){const a=g[r++],f=g[r++];try{c=a(c)}catch(m){f.call(this,m);break}}try{o=cu.call(this,c)}catch(a){return Promise.reject(a)}for(r=0,l=h.length;r<l;)o=o.then(h[r++],h[r++]);return o}getUri(t){t=wi(this.defaults,t);const n=Cd(t.baseURL,t.url);return bd(n,t.params,t.paramsSerializer)}}ne.forEach(["delete","get","head","options"],function(t){_o.prototype[t]=function(n,i){return this.request(wi(i||{},{method:t,url:n,data:(i||{}).data}))}});ne.forEach(["post","put","patch"],function(t){function n(i){return function(u,p,g){return this.request(wi(g||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:u,data:p}))}}_o.prototype[t]=n(),_o.prototype[t+"Form"]=n(!0)});const oo=_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 p=new Promise(g=>{i.subscribe(g),u=g}).then(d);return p.cancel=function(){i.unsubscribe(u)},p},t(function(u,p,g){i.reason||(i.reason=new Rr(u,p,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 L1=bl;function T1(e){return function(n){return e.apply(null,n)}}function M1(e){return ne.isObject(e)&&e.isAxiosError===!0}const ga={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(ga).forEach(([e,t])=>{ga[t]=e});const I1=ga;function xd(e){const t=new oo(e),n=ad(oo.prototype.request,t);return ne.extend(n,oo.prototype,t,{allOwnKeys:!0}),ne.extend(n,t,null,{allOwnKeys:!0}),n.create=function(d){return xd(wi(e,d))},n}const Je=xd(vl);Je.Axios=oo;Je.CanceledError=Rr;Je.CancelToken=L1;Je.isCancel=_d;Je.VERSION=Ad;Je.toFormData=rs;Je.AxiosError=Fe;Je.Cancel=Je.CanceledError;Je.all=function(t){return Promise.all(t)};Je.spread=T1;Je.isAxiosError=M1;Je.mergeConfig=wi;Je.AxiosHeaders=tn;Je.formToJSON=e=>$d(ne.isHTMLForm(e)?new FormData(e):e);Je.getAdapter=Sd.getAdapter;Je.HttpStatusCode=I1;Je.default=Je;const O1=Je,st=O1.create({headers:{Accept:"application/json"}}),ht={async getConfigs(){return(await st.get("/api/configs")).data},async getAlerts(e){return e.page=e.page||1,(await st.get("/api/alerts",{params:e})).data},async getTags(){return(await st.get("/api/tags")).data.tags},async getRuleSet(){return(await st.get("/api/rules/ids")).data.ruleIds},async deleteAlert(e){await st.delete(`/api/alerts/${e}`)},async getArtifact(e){return(await st.get(`/api/artifacts/${e}`)).data},async enrichArtifact(e){await st.get(`/api/artifacts/${e}/enrich`)},async deleteArtifact(e){await st.delete(`/api/artifacts/${e}`)},async getRules(e){return e.page=e.page||1,(await st.get("/api/rules",{params:e})).data},async getRule(e){return(await st.get(`/api/rules/${e}`)).data},async runRule(e){await st.get(`/api/rules/${e}/run`)},async createRule(e){return(await st.post("/api/rules/",e)).data},async updateRule(e){return(await st.put("/api/rules/",e)).data},async deleteRule(e){await st.delete(`/api/rules/${e}`)},async deleteTag(e){await st.delete(`/api/tags/${e}`)},async getIPInfo(e){return(await st.get(`/api/ip_addresses/${e}`)).data}};function wl(){return ut(async(e,t)=>await ht.getAlerts(t))}function F1(){return ut(async(e,t)=>await ht.deleteAlert(t))}function kd(){return ut(async()=>await ht.getTags())}function N1(){return ut(async(e,t)=>await ht.deleteTag(t))}function P1(){return ut(async()=>await ht.getRuleSet())}function D1(){return ut(async(e,t)=>await ht.getArtifact(t))}function Ed(){return ut(async(e,t)=>await ht.deleteArtifact(t))}function B1(){return ut(async(e,t)=>await ht.enrichArtifact(t))}function W1(){return ut(async()=>await ht.getConfigs())}function H1(){return ut(async(e,t)=>await ht.getIPInfo(t))}function U1(){return ut(async(e,t)=>await ht.getRules(t))}function Rd(){return ut(async(e,t)=>await ht.getRule(t))}function z1(){return ut(async(e,t)=>await ht.deleteRule(t))}function V1(){return ut(async(e,t)=>await ht.runRule(t))}function j1(){return ut(async(e,t)=>await ht.createRule(t))}function G1(){return ut(async(e,t)=>await ht.updateRule(t))}const K1=$e({name:"ArtifactTag",props:{artifact:{type:Object,required:!0}},setup(e){const t=Te(!1),n=Te(!1),i=Ed();return{isDeleted:t,deleteArtifact:async()=>{window.confirm(`Are you sure you want to delete ${e.artifact.data}?`)&&(await i.perform(e.artifact.id),t.value=!0)},showDeleteButton:()=>{n.value=!0},hideDeleteButton:()=>{n.value=!1},isDeleteButtonEnabled:n}}}),Y1={key:0,class:"control"};function X1(e,t,n,i,d,u){const p=ue("router-link");return e.isDeleted?we("",!0):(q(),oe("div",Y1,[P("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))},[he(p,{class:"tag is-link is-light",to:{name:"Artifact",params:{id:e.artifact.id}}},{default:dt(()=>[et(Ae(e.artifact.data),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 Z1=xe(K1,[["render",X1]]),Q1=$e({name:"ArtifactTags",components:{ArtifactComponent:Z1},props:{artifacts:{type:Array,required:!0}}}),J1={class:"field is-grouped is-grouped-multiline"};function q1(e,t,n,i,d,u){const p=ue("ArtifactComponent");return q(),oe("div",J1,[(q(!0),oe(Se,null,ct(e.artifacts,g=>(q(),Me(p,{key:g.id,artifact:g},null,8,["artifact"]))),128))])}const e$=xe(Q1,[["render",q1]]),t$=$e({name:"TagItem",props:{tag:{type:Object,required:!0}},setup(e,t){const n=Te(!1),i=Te(!1),d=N1();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}?`)&&(await d.perform(e.tag.name),n.value=!0)},showDeleteButton:()=>{i.value=!0},hideDeleteButton:()=>{i.value=!1},isDeleteButtonEnabled:i}}}),n$={key:0,class:"control"};function i$(e,t,n,i,d,u){return e.isDeleted?we("",!0):(q(),oe("div",n$,[P("div",{class:"tags has-addons are-medium",onMouseover:t[2]||(t[2]=(...p)=>e.showDeleteButton&&e.showDeleteButton(...p)),onMouseleave:t[3]||(t[3]=(...p)=>e.hideDeleteButton&&e.hideDeleteButton(...p))},[P("span",{class:"tag is-info is-light",onClick:t[0]||(t[0]=(...p)=>e.updateTag&&e.updateTag(...p))},Ae(e.tag.name),1),e.isDeleteButtonEnabled?(q(),oe("a",{key:0,class:"tag is-delete",onClick:t[1]||(t[1]=(...p)=>e.deleteTag&&e.deleteTag(...p))})):we("",!0)],32)]))}const r$=xe(t$,[["render",i$]]),o$=$e({name:"TagsItem",components:{TagComponent:r$},props:{tags:{type:Array,required:!0}},setup(e,t){return{updateTag:i=>{t.emit("update-tag",i)}}}}),s$={class:"field is-grouped is-grouped-multiline"};function a$(e,t,n,i,d,u){const p=ue("TagComponent");return q(),oe("div",s$,[(q(!0),oe(Se,null,ct(e.tags,g=>(q(),Me(p,{tag:g,key:g.name,onUpdateTag:e.updateTag},null,8,["tag","onUpdateTag"]))),128))])}const Ld=xe(o$,[["render",a$]]);var Td={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(Mn,function(){var n=1e3,i=6e4,d=36e5,u="millisecond",p="second",g="minute",s="hour",h="day",o="week",r="month",l="quarter",c="year",a="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+)?$/,y=/\[([^\]]+)]|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,b={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 L=["th","st","nd","rd"],T=w%100;return"["+w+(L[(T-20)%10]||L[T]||L[0])+"]"}},E=function(w,L,T){var O=String(w);return!O||O.length>=L?w:""+Array(L+1-O.length).join(T)+w},S={s:E,z:function(w){var L=-w.utcOffset(),T=Math.abs(L),O=Math.floor(T/60),I=T%60;return(L<=0?"+":"-")+E(O,2,"0")+":"+E(I,2,"0")},m:function w(L,T){if(L.date()<T.date())return-w(T,L);var O=12*(T.year()-L.year())+(T.month()-L.month()),I=L.clone().add(O,r),F=T-I<0,D=L.clone().add(O+(F?-1:1),r);return+(-(O+(T-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:h,D:a,h:s,m:g,s:p,ms:u,Q:l}[w]||String(w||"").toLowerCase().replace(/s$/,"")},u:function(w){return w===void 0}},C="en",$={};$[C]=b;var R="$isDayjsObject",x=function(w){return w instanceof M||!(!w||!w[R])},k=function w(L,T,O){var I;if(!L)return C;if(typeof L=="string"){var F=L.toLowerCase();$[F]&&(I=F),T&&($[F]=T,I=F);var D=L.split("-");if(!I&&D.length>1)return w(D[0])}else{var W=L.name;$[W]=L,I=W}return!O&&I&&(C=I),I||!O&&C},_=function(w,L){if(x(w))return w.clone();var T=typeof L=="object"?L:{};return T.date=w,T.args=arguments,new M(T)},v=S;v.l=k,v.i=x,v.w=function(w,L){return _(w,{locale:L.$L,utc:L.$u,x:L.$x,$offset:L.$offset})};var M=function(){function w(T){this.$L=k(T.locale,null,!0),this.parse(T),this.$x=this.$x||T.x||{},this[R]=!0}var L=w.prototype;return L.parse=function(T){this.$d=function(O){var I=O.date,F=O.utc;if(I===null)return new Date(NaN);if(v.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,G=(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,G)):new Date(D[1],W,D[3]||1,D[4]||0,D[5]||0,D[6]||0,G)}}return new Date(I)}(T),this.init()},L.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},L.$utils=function(){return v},L.isValid=function(){return this.$d.toString()!==f},L.isSame=function(T,O){var I=_(T);return this.startOf(O)<=I&&I<=this.endOf(O)},L.isAfter=function(T,O){return _(T)<this.startOf(O)},L.isBefore=function(T,O){return this.endOf(O)<_(T)},L.$g=function(T,O,I){return v.u(T)?this[O]:this.set(I,T)},L.unix=function(){return Math.floor(this.valueOf()/1e3)},L.valueOf=function(){return this.$d.getTime()},L.startOf=function(T,O){var I=this,F=!!v.u(O)||O,D=v.p(T),W=function(K,V){var ee=v.w(I.$u?Date.UTC(I.$y,V,K):new Date(I.$y,V,K),I);return F?ee:ee.endOf(h)},G=function(K,V){return v.w(I.toDate()[K].apply(I.toDate("s"),(F?[0,0,0,0]:[23,59,59,999]).slice(V)),I)},U=this.$W,H=this.$M,X=this.$D,J="set"+(this.$u?"UTC":"");switch(D){case c:return F?W(1,0):W(31,11);case r:return F?W(1,H):W(0,H+1);case o:var z=this.$locale().weekStart||0,Y=(U<z?U+7:U)-z;return W(F?X-Y:X+(6-Y),H);case h:case a:return G(J+"Hours",0);case s:return G(J+"Minutes",1);case g:return G(J+"Seconds",2);case p:return G(J+"Milliseconds",3);default:return this.clone()}},L.endOf=function(T){return this.startOf(T,!1)},L.$set=function(T,O){var I,F=v.p(T),D="set"+(this.$u?"UTC":""),W=(I={},I[h]=D+"Date",I[a]=D+"Date",I[r]=D+"Month",I[c]=D+"FullYear",I[s]=D+"Hours",I[g]=D+"Minutes",I[p]=D+"Seconds",I[u]=D+"Milliseconds",I)[F],G=F===h?this.$D+(O-this.$W):O;if(F===r||F===c){var U=this.clone().set(a,1);U.$d[W](G),U.init(),this.$d=U.set(a,Math.min(this.$D,U.daysInMonth())).$d}else W&&this.$d[W](G);return this.init(),this},L.set=function(T,O){return this.clone().$set(T,O)},L.get=function(T){return this[v.p(T)]()},L.add=function(T,O){var I,F=this;T=Number(T);var D=v.p(O),W=function(H){var X=_(F);return v.w(X.date(X.date()+Math.round(H*T)),F)};if(D===r)return this.set(r,this.$M+T);if(D===c)return this.set(c,this.$y+T);if(D===h)return W(1);if(D===o)return W(7);var G=(I={},I[g]=i,I[s]=d,I[p]=n,I)[D]||1,U=this.$d.getTime()+T*G;return v.w(U,this)},L.subtract=function(T,O){return this.add(-1*T,O)},L.format=function(T){var O=this,I=this.$locale();if(!this.isValid())return I.invalidDate||f;var F=T||"YYYY-MM-DDTHH:mm:ssZ",D=v.z(this),W=this.$H,G=this.$m,U=this.$M,H=I.weekdays,X=I.months,J=I.meridiem,z=function(V,ee,N,B){return V&&(V[ee]||V(O,F))||N[ee].slice(0,B)},Y=function(V){return v.s(W%12||12,V,"0")},K=J||function(V,ee,N){var B=V<12?"AM":"PM";return N?B.toLowerCase():B};return F.replace(y,function(V,ee){return ee||function(N){switch(N){case"YY":return String(O.$y).slice(-2);case"YYYY":return v.s(O.$y,4,"0");case"M":return U+1;case"MM":return v.s(U+1,2,"0");case"MMM":return z(I.monthsShort,U,X,3);case"MMMM":return z(X,U);case"D":return O.$D;case"DD":return v.s(O.$D,2,"0");case"d":return String(O.$W);case"dd":return z(I.weekdaysMin,O.$W,H,2);case"ddd":return z(I.weekdaysShort,O.$W,H,3);case"dddd":return H[O.$W];case"H":return String(W);case"HH":return v.s(W,2,"0");case"h":return Y(1);case"hh":return Y(2);case"a":return K(W,G,!0);case"A":return K(W,G,!1);case"m":return String(G);case"mm":return v.s(G,2,"0");case"s":return String(O.$s);case"ss":return v.s(O.$s,2,"0");case"SSS":return v.s(O.$ms,3,"0");case"Z":return D}return null}(V)||D.replace(":","")})},L.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},L.diff=function(T,O,I){var F,D=this,W=v.p(O),G=_(T),U=(G.utcOffset()-this.utcOffset())*i,H=this-G,X=function(){return v.m(D,G)};switch(W){case c:F=X()/12;break;case r:F=X();break;case l:F=X()/3;break;case o:F=(H-U)/6048e5;break;case h:F=(H-U)/864e5;break;case s:F=H/d;break;case g:F=H/i;break;case p:F=H/n;break;default:F=H}return I?F:v.a(F)},L.daysInMonth=function(){return this.endOf(r).$D},L.$locale=function(){return $[this.$L]},L.locale=function(T,O){if(!T)return this.$L;var I=this.clone(),F=k(T,O,!0);return F&&(I.$L=F),I},L.clone=function(){return v.w(this.$d,this)},L.toDate=function(){return new Date(this.valueOf())},L.toJSON=function(){return this.isValid()?this.toISOString():null},L.toISOString=function(){return this.$d.toISOString()},L.toString=function(){return this.$d.toUTCString()},w}(),A=M.prototype;return _.prototype=A,[["$ms",u],["$s",p],["$m",g],["$H",s],["$W",h],["$M",r],["$y",c],["$D",a]].forEach(function(w){A[w[1]]=function(L){return this.$g(L,w[0],w[1])}}),_.extend=function(w,L){return w.$i||(w(L,M,_),w.$i=!0),_},_.locale=k,_.isDayjs=x,_.unix=function(w){return _(1e3*w)},_.en=$[C],_.Ls=$,_.p={},_})})(Td);var l$=Td.exports;const Mi=cn(l$);var Md={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(Mn,function(){return function(n,i,d){n=n||{};var u=i.prototype,p={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(h,o,r,l){return u.fromToBase(h,o,r,l)}d.en.relativeTime=p,u.fromToBase=function(h,o,r,l,c){for(var a,f,m,y=r.$locale().relativeTime||p,b=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"}],E=b.length,S=0;S<E;S+=1){var C=b[S];C.d&&(a=l?d(h).diff(r,C.d,!0):r.diff(h,C.d,!0));var $=(n.rounding||Math.round)(Math.abs(a));if(m=a>0,$<=C.r||!C.r){$<=1&&S>0&&(C=b[S-1]);var R=y[C.l];c&&($=c(""+$)),f=typeof R=="string"?R.replace("%d",$):R($,o,C.l,m);break}}if(o)return f;var x=m?y.future:y.past;return typeof x=="function"?x(f):x.replace("%s",f)},u.to=function(h,o){return g(h,o,this,!0)},u.from=function(h,o){return g(h,o,this)};var s=function(h){return h.$u?d.utc():d()};u.toNow=function(h){return this.to(s(this),h)},u.fromNow=function(h){return this.from(s(this),h)}}})})(Md);var c$=Md.exports;const u$=cn(c$);var Id={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(Mn,function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},i={};return function(d,u,p){var g,s=function(l,c,a){a===void 0&&(a={});var f=new Date(l),m=function(y,b){b===void 0&&(b={});var E=b.timeZoneName||"short",S=y+"|"+E,C=i[S];return C||(C=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:y,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:E}),i[S]=C),C}(c,a);return m.formatToParts(f)},h=function(l,c){for(var a=s(l,c),f=[],m=0;m<a.length;m+=1){var y=a[m],b=y.type,E=y.value,S=n[b];S>=0&&(f[S]=parseInt(E,10))}var C=f[3],$=C===24?0:C,R=f[0]+"-"+f[1]+"-"+f[2]+" "+$+":"+f[4]+":"+f[5]+":000",x=+l;return(p.utc(R).valueOf()-(x-=x%1e3))/6e4},o=u.prototype;o.tz=function(l,c){l===void 0&&(l=g);var a=this.utcOffset(),f=this.toDate(),m=f.toLocaleString("en-US",{timeZone:l}),y=Math.round((f-new Date(m))/1e3/60),b=p(m,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(f.getTimezoneOffset()/15)-y,!0);if(c){var E=b.utcOffset();b=b.add(a-E,"minute")}return b.$x.$timezone=l,b},o.offsetName=function(l){var c=this.$x.$timezone||p.tz.guess(),a=s(this.valueOf(),c,{timeZoneName:l}).find(function(f){return f.type.toLowerCase()==="timezonename"});return a&&a.value};var r=o.startOf;o.startOf=function(l,c){if(!this.$x||!this.$x.$timezone)return r.call(this,l,c);var a=p(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return r.call(a,l,c).tz(this.$x.$timezone,!0)},p.tz=function(l,c,a){var f=a&&c,m=a||c||g,y=h(+p(),m);if(typeof l!="string")return p(l).tz(m);var b=function($,R,x){var k=$-60*R*1e3,_=h(k,x);if(R===_)return[k,R];var v=h(k-=60*(_-R)*1e3,x);return _===v?[k,_]:[$-60*Math.min(_,v)*1e3,Math.max(_,v)]}(p.utc(l,f).valueOf(),y,m),E=b[0],S=b[1],C=p(E).utcOffset(S);return C.$x.$timezone=m,C},p.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},p.tz.setDefault=function(l){g=l}}})})(Id);var h$=Id.exports;const f$=cn(h$);var Od={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(Mn,function(){var n="minute",i=/[+-]\d\d(?::?\d\d)?/g,d=/([+-]|\d\d)/g;return function(u,p,g){var s=p.prototype;g.utc=function(f){var m={date:f,utc:!0,args:arguments};return new p(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 h=s.parse;s.parse=function(f){f.utc&&(this.$u=!0),this.$utils().u(f.$offset)||(this.$offset=f.$offset),h.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 y=this.$utils().u;if(y(f))return this.$u?0:y(this.$offset)?r.call(this):this.$offset;if(typeof f=="string"&&(f=function(C){C===void 0&&(C="");var $=C.match(i);if(!$)return null;var R=(""+$[0]).match(d)||["-",0,0],x=R[0],k=60*+R[1]+ +R[2];return k===0?0:x==="+"?k:-k}(f),f===null))return this;var b=Math.abs(f)<=16?60*f:f,E=this;if(m)return E.$offset=b,E.$u=f===0,E;if(f!==0){var S=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(E=this.local().add(b+S,n)).$offset=b,E.$x.$localOffset=S}else E=this.utc();return E};var l=s.format;s.format=function(f){var m=f||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.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 a=s.diff;s.diff=function(f,m,y){if(f&&this.$u===f.$u)return a.call(this,f,m,y);var b=this.local(),E=g(f).local();return a.call(b,E,m,y)}}})})(Od);var d$=Od.exports;const p$=cn(d$),g$=[{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 m$(e){return g$.find(n=>n.code===e)}Mi.extend(u$);Mi.extend(f$);Mi.extend(p$);function v$(e){return Mi(e).local().format("YYYY-MM-DD HH:mm:ss")}function y$(e){return Mi(e).local().fromNow()}function Fd(e){const t=m$(e);if(t!==void 0)return{lat:t.lat,long:t.long}}function b$(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 Fd(e.countryCode)}function Ui(e){if(e!=null)return typeof e=="string"?e:e.toString()}const w$=$e({name:"AlertItem",components:{Artifacts:e$,Tags:Ld},props:{alert:{type:Object,required:!0}},setup(e,t){const n=u=>{t.emit("update-tag",u)},i=F1();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:v$,getHumanizedRelativeTime:y$}}}),$$={class:"box"},_$={class:"table is-fullwidth is-completely-borderless"},C$=P("th",null,"ID",-1),S$=P("span",null,"Delete",-1),A$={class:"icon is-small"},x$=P("th",null,"Rule",-1),k$=P("th",null,"Artifacts",-1),E$={key:0},R$=P("th",null,"Tags",-1),L$={class:"help"};function T$(e,t,n,i,d,u){const p=ue("font-awesome-icon"),g=ue("router-link"),s=ue("Artifacts"),h=ue("Tags");return q(),oe("div",$$,[P("table",_$,[P("tr",null,[C$,P("td",null,[et(Ae(e.alert.id)+" ",1),P("button",{class:"button is-light is-small is-pulled-right",onClick:t[0]||(t[0]=(...o)=>e.deleteAlert&&e.deleteAlert(...o))},[S$,P("span",A$,[he(p,{icon:"times"})])])])]),P("tr",null,[x$,P("td",null,[he(g,{to:{name:"Rule",params:{id:e.alert.ruleId}}},{default:dt(()=>[et(Ae(e.alert.ruleId),1)]),_:1},8,["to"])])]),P("tr",null,[k$,P("td",null,[he(s,{artifacts:e.alert.artifacts},null,8,["artifacts"])])]),e.alert.tags.length>0?(q(),oe("tr",E$,[R$,P("td",null,[he(h,{tags:e.alert.tags,onUpdateTag:e.updateTag},null,8,["tags","onUpdateTag"])])])):we("",!0)]),P("p",L$,"Created at: "+Ae(e.alert.createdAt),1)])}const M$=xe(w$,[["render",T$]]),Rs=new WeakMap;function fu(e,t,n={}){const{mode:i="replace",route:d=Jo(),router:u=Ri(),transform:p=o=>o}=n;Rs.has(d)||Rs.set(d,new Map);const g=Rs.get(d);Hf(()=>{g.delete(e)}),g.set(e,d.query[e]);let s;const h=Va((o,r)=>(s=r,{get(){o();const l=g.get(e);return p(l!==void 0?l:wo(t))},set(l){g.get(e)!==l&&(g.set(e,l),r(),zt(()=>{const{params:c,query:a,hash:f}=d;u[wo(i)]({params:c,query:{...a,...Object.fromEntries(g.entries())},hash:f})}))}}));return Ye(()=>d.query[e],o=>{g.set(e,o),s()},{flush:"sync"}),h}const I$=$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=Jo(),i=Ri(),d={route:n,router:i},u=Ee(()=>Math.ceil(e.total/e.pageSize)),p=Ee(()=>u.value===1),g=Ee(()=>e.currentPage>1),s=Ee(()=>e.currentPage-1!==1),h=Ee(()=>e.currentPage<u.value),o=Ee(()=>e.currentPage+1!==u.value),r=l=>{const c=fu("page",l.toString(),d);c.value=l.toString(),t.emit("update-page",l)};return nt(()=>{const l=fu("page",null,d);l.value&&parseInt(l.value)!==e.currentPage&&r(parseInt(l.value))}),{updatePage:r,hasNextPage:h,hasOnlyOnePage:p,hasPreviousPage:g,isNextPageNotLast:o,isPreviousPageNotFirst:s,totalPageCount:u}}}),O$={key:0,class:"message is-warning"},F$=P("div",{class:"message-body"},"There is no result to show.",-1),N$=[F$],P$={key:1,class:"pagination",role:"navigation","aria-label":"pagination"},D$={key:0,class:"pagination-list"},B$={key:1,class:"pagination-list"},W$={key:0},H$={key:1},U$=P("span",{class:"pagination-ellipsis"},"…",-1),z$=[U$],V$={key:2},j$={key:3},G$={key:4},K$=P("span",{class:"pagination-ellipsis"},"…",-1),Y$=[K$],X$={key:5};function Z$(e,t,n,i,d,u){return e.total===0?(q(),oe("article",O$,N$)):(q(),oe("nav",P$,[e.hasOnlyOnePage?(q(),oe("ul",D$,[P("li",null,[P("a",{class:"pagination-link mt-2 is-current",onClick:t[0]||(t[0]=p=>e.updatePage(1))},"1")])])):(q(),oe("ul",B$,[e.hasPreviousPage&&e.isPreviousPageNotFirst?(q(),oe("li",W$,[P("a",{class:"pagination-link mt-2",onClick:t[1]||(t[1]=p=>e.updatePage(1))}," 1")])):we("",!0),e.hasPreviousPage&&e.isPreviousPageNotFirst?(q(),oe("li",H$,z$)):we("",!0),e.hasPreviousPage?(q(),oe("li",V$,[P("a",{class:"pagination-link mt-2",onClick:t[2]||(t[2]=p=>e.updatePage(e.currentPage-1))},Ae(e.currentPage-1),1)])):we("",!0),P("li",null,[P("a",{class:"pagination-link mt-2 is-current",onClick:t[3]||(t[3]=p=>e.updatePage(e.currentPage))},Ae(e.currentPage),1)]),e.hasNextPage?(q(),oe("li",j$,[P("a",{class:"pagination-link mt-2",onClick:t[4]||(t[4]=p=>e.updatePage(e.currentPage+1))},Ae(e.currentPage+1),1)])):we("",!0),e.hasNextPage&&e.isNextPageNotLast?(q(),oe("li",G$,Y$)):we("",!0),e.hasNextPage&&e.isNextPageNotLast?(q(),oe("li",X$,[P("a",{class:"pagination-link mt-2",onClick:t[5]||(t[5]=p=>e.updatePage(e.totalPageCount))},Ae(e.totalPageCount),1)])):we("",!0)]))]))}const Nd=xe(I$,[["render",Z$]]),Q$=$e({name:"AlertsItem",components:{Alert:M$,Pagination:Nd},props:{alerts:{type:Object,required:!0}},emits:["update-page","refresh-page","update-tag"],setup(e,t){const n=()=>{window.scrollTo({top:0})};return{updatePage:p=>{n(),t.emit("update-page",p)},updateTag:p=>{n(),t.emit("update-tag",p)},refreshPage:()=>{n(),t.emit("refresh-page")}}}}),J$={class:"help"};function q$(e,t,n,i,d,u){const p=ue("Alert"),g=ue("Pagination");return q(),oe(Se,null,[(q(!0),oe(Se,null,ct(e.alerts.alerts,(s,h)=>(q(),Me(p,{alert:s,key:h,onRefreshPage:e.refreshPage,onUpdateTag:e.updateTag},null,8,["alert","onRefreshPage","onUpdateTag"]))),128)),he(g,{total:e.alerts.total,currentPage:e.alerts.currentPage,pageSize:e.alerts.pageSize,onUpdatePage:e.updatePage},null,8,["total","currentPage","pageSize","onUpdatePage"]),P("p",J$,"("+Ae(e.alerts.total)+" results in total, "+Ae(e.alerts.alerts.length)+" shown)",1)],64)}const Pd=xe(Q$,[["render",q$]]),e_=$e({name:"AlertsForm",props:{tags:{type:Array,required:!0},ruleSet:{type:Array,required:!0},page:{type:Number,required:!0},tag:{type:String,required:!1}},setup(e){const t=Jo(),n=Te(void 0),i=Te(void 0),d=Yn(e,"tag"),u=Te(void 0),p=Te(void 0),g=Te(void 0),s=Te(void 0),h=Te(void 0),o=()=>{const l=t.query.asn,c=Ui(l);g.value=c===void 0?void 0:parseInt(c);const a=t.query.dnsRecord;s.value=Ui(a);const f=t.query.reverseDnsName;h.value=Ui(f);const m=t.query.tag;d.value===void 0&&(d.value=Ui(m))},r=()=>(o(),{artifact:n.value===""?void 0:n.value,page:e.page,ruleId:u.value===""?void 0:u.value,tag:d.value===""?void 0:d.value,toAt:p.value===""?void 0:p.value,fromAt:i.value===""?void 0:i.value});return Ye(()=>e.tag,()=>{d.value=e.tag}),{artifact:n,fromAt:i,getSearchParams:r,ruleId:u,toAt:p,tagInput:d}}}),t_={class:"columns"},n_={class:"column"},i_={class:"field is-horizontal"},r_=P("div",{class:"field-label is-normal"},[P("label",{class:"label"},"Rule")],-1),o_={class:"field-body"},s_={class:"field"},a_={class:"control"},l_={class:"select"},c_=P("option",null,null,-1),u_={class:"column"},h_={class:"field is-horizontal"},f_=P("div",{class:"field-label is-normal"},[P("label",{class:"label"},"Artifact")],-1),d_={class:"field-body"},p_={class:"field"},g_={class:"control"},m_={class:"columns"},v_={class:"column"},y_={class:"field is-horizontal"},b_=P("div",{class:"field-label is-normal"},[P("label",{class:"label"},"Tag")],-1),w_={class:"field-body"},$_={class:"field"},__={class:"control"},C_={class:"select"},S_=P("option",null,null,-1),A_=P("div",{class:"column"},null,-1),x_={class:"columns"},k_={class:"column"},E_={class:"field is-horizontal"},R_=P("div",{class:"field-label is-normal"},[P("label",{class:"label"},"From")],-1),L_={class:"field-body"},T_={class:"field"},M_={class:"control"},I_={class:"column"},O_={class:"field is-horizontal"},F_=P("div",{class:"field-label is-normal"},[P("label",{class:"label"},"To")],-1),N_={class:"field-body"},P_={class:"field"},D_={class:"control"};function B_(e,t,n,i,d,u){return q(),oe(Se,null,[P("div",t_,[P("div",n_,[P("div",i_,[r_,P("div",o_,[P("div",s_,[P("div",a_,[P("div",l_,[Tt(P("select",{"onUpdate:modelValue":t[0]||(t[0]=p=>e.ruleId=p)},[c_,(q(!0),oe(Se,null,ct(e.ruleSet,p=>(q(),oe("option",{key:p},Ae(p),1))),128))],512),[[pr,e.ruleId]])])])])])])]),P("div",u_,[P("div",h_,[f_,P("div",d_,[P("div",p_,[P("p",g_,[Tt(P("input",{class:"input",type:"text","onUpdate:modelValue":t[1]||(t[1]=p=>e.artifact=p)},null,512),[[Ot,e.artifact]])])])])])])]),P("div",m_,[P("div",v_,[P("div",y_,[b_,P("div",w_,[P("div",$_,[P("div",__,[P("div",C_,[Tt(P("select",{"onUpdate:modelValue":t[2]||(t[2]=p=>e.tagInput=p)},[S_,(q(!0),oe(Se,null,ct(e.tags,p=>(q(),oe("option",{key:p},Ae(p),1))),128))],512),[[pr,e.tagInput]])])])])])])]),A_]),P("div",x_,[P("div",k_,[P("div",E_,[R_,P("div",L_,[P("div",T_,[P("p",M_,[Tt(P("input",{class:"input",type:"date","onUpdate:modelValue":t[3]||(t[3]=p=>e.fromAt=p)},null,512),[[Ot,e.fromAt]])])])])])]),P("div",I_,[P("div",O_,[F_,P("div",N_,[P("div",P_,[P("p",D_,[Tt(P("input",{class:"input",type:"date","onUpdate:modelValue":t[4]||(t[4]=p=>e.toAt=p)},null,512),[[Ot,e.toAt]])])])])])])])],64)}const W_=xe(e_,[["render",B_]]);var Dd={exports:{}};const H_=zf(b0);(function(e,t){(function(n,i){e.exports=i(H_)})(Mn,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 h=d[g]={exports:{}};return i[g](h,h.exports,u),h.exports}u.d=function(g,s){for(var h in s)u.o(s,h)&&!u.o(g,h)&&Object.defineProperty(g,h,{enumerable:!0,get:s[h]})},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 p={};return function(){function g(v,M){(M==null||M>v.length)&&(M=v.length);for(var A=0,w=new Array(M);A<M;A++)w[A]=v[A];return w}function s(v,M){if(v){if(typeof v=="string")return g(v,M);var A=Object.prototype.toString.call(v).slice(8,-1);return A==="Object"&&v.constructor&&(A=v.constructor.name),A==="Map"||A==="Set"?Array.from(v):A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A)?g(v,M):void 0}}function h(v){return function(M){if(Array.isArray(M))return g(M)}(v)||function(M){if(typeof Symbol<"u"&&M[Symbol.iterator]!=null||M["@@iterator"]!=null)return Array.from(M)}(v)||s(v)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
768
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function o(v,M,A){return M in v?Object.defineProperty(v,M,{value:A,enumerable:!0,configurable:!0,writable:!0}):v[M]=A,v}u.r(p),u.d(p,{default:function(){return _}});var r=u(789),l=(0,r.defineComponent)({props:{data:{required:!0,type:String},onClick:Function},render:function(){var v=this.data,M=this.onClick;return(0,r.createVNode)("span",{class:"vjs-tree-brackets",onClick:M},[v])}}),c=(0,r.defineComponent)({emits:["change","update:modelValue"],props:{checked:{type:Boolean,default:!1},isMultiple:Boolean,onChange:Function},setup:function(v,M){var A=M.emit;return{uiType:(0,r.computed)(function(){return v.isMultiple?"checkbox":"radio"}),model:(0,r.computed)({get:function(){return v.checked},set:function(w){return A("update:modelValue",w)}})}},render:function(){var v=this.uiType,M=this.model,A=this.$emit;return(0,r.createVNode)("label",{class:["vjs-check-controller",M?"is-checked":""],onClick:function(w){return w.stopPropagation()}},[(0,r.createVNode)("span",{class:"vjs-check-controller-inner is-".concat(v)},null),(0,r.createVNode)("input",{checked:M,class:"vjs-check-controller-original is-".concat(v),type:v,onChange:function(){return A("change",M)}},null)])}}),a=(0,r.defineComponent)({props:{nodeType:{required:!0,type:String},onClick:Function},render:function(){var v=this.nodeType,M=this.onClick,A=v==="objectStart"||v==="arrayStart";return A||v==="objectCollapsed"||v==="arrayCollapsed"?(0,r.createVNode)("span",{class:"vjs-carets vjs-carets-".concat(A?"open":"close"),onClick:M},[(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(v){return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},f(v)}function m(v){return Object.prototype.toString.call(v).slice(8,-1).toLowerCase()}function y(v){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"root",A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,w=arguments.length>3?arguments[3]:void 0,L=w||{},T=L.key,O=L.index,I=L.type,F=I===void 0?"content":I,D=L.showComma,W=D!==void 0&&D,G=L.length,U=G===void 0?1:G,H=m(v);if(H==="array"){var X=b(v.map(function(Y,K,V){return y(Y,"".concat(M,"[").concat(K,"]"),A+1,{index:K,showComma:K!==V.length-1,length:U,type:F})}));return[y("[",M,A,{showComma:!1,key:T,length:v.length,type:"arrayStart"})[0]].concat(X,y("]",M,A,{showComma:W,length:v.length,type:"arrayEnd"})[0])}if(H==="object"){var J=Object.keys(v),z=b(J.map(function(Y,K,V){return y(v[Y],/^[a-zA-Z_]\w*$/.test(Y)?"".concat(M,".").concat(Y):"".concat(M,'["').concat(Y,'"]'),A+1,{key:Y,showComma:K!==V.length-1,length:U,type:F})}));return[y("{",M,A,{showComma:!1,key:T,index:O,length:J.length,type:"objectStart"})[0]].concat(z,y("}",M,A,{showComma:W,length:J.length,type:"objectEnd"})[0])}return[{content:v,level:A,key:T,index:O,path:M,showComma:W,length:U,type:F}]}function b(v){if(typeof Array.prototype.flat=="function")return v.flat();for(var M=h(v),A=[];M.length;){var w=M.shift();Array.isArray(w)?M.unshift.apply(M,h(w)):A.push(w)}return A}function E(v){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new WeakMap;if(v==null)return v;if(v instanceof Date)return new Date(v);if(v instanceof RegExp)return new RegExp(v);if(f(v)!=="object")return v;if(M.get(v))return M.get(v);if(Array.isArray(v)){var A=v.map(function(T){return E(T,M)});return M.set(v,A),A}var w={};for(var L in v)w[L]=E(v[L],M);return M.set(v,w),w}function S(v,M){var A=Object.keys(v);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(v);M&&(w=w.filter(function(L){return Object.getOwnPropertyDescriptor(v,L).enumerable})),A.push.apply(A,w)}return A}function C(v){for(var M=1;M<arguments.length;M++){var A=arguments[M]!=null?arguments[M]:{};M%2?S(Object(A),!0).forEach(function(w){o(v,w,A[w])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(A)):S(Object(A)).forEach(function(w){Object.defineProperty(v,w,Object.getOwnPropertyDescriptor(A,w))})}return v}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:C(C({},$),{},{node:{type:Object,required:!0},collapsed:Boolean,checked:Boolean,style:Object,onSelectedChange:{type:Function}}),emits:["nodeClick","bracketsClick","iconClick","selectedChange","valueChange"],setup:function(v,M){var A=M.emit,w=(0,r.computed)(function(){return m(v.node.content)}),L=(0,r.computed)(function(){return"vjs-value vjs-value-".concat(w.value)}),T=(0,r.computed)(function(){return v.showDoubleQuotes?'"'.concat(v.node.key,'"'):v.node.key}),O=(0,r.computed)(function(){return v.selectableType==="multiple"}),I=(0,r.computed)(function(){return v.selectableType==="single"}),F=(0,r.computed)(function(){return v.nodeSelectable(v.node)&&(O.value||I.value)}),D=(0,r.reactive)({editing:!1}),W=function(K){var V,ee,N=(ee=(V=K.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);A("valueChange",N,v.node.path)},G=(0,r.computed)(function(){var K,V=(K=v.node)===null||K===void 0?void 0:K.content;return V===null?V="null":V===void 0&&(V="undefined"),w.value==="string"?'"'.concat(V,'"'):V+""}),U=function(){var K=v.renderNodeValue;return K?K({node:v.node,defaultValue:G.value}):G.value},H=function(){A("bracketsClick",!v.collapsed,v.node.path)},X=function(){A("iconClick",!v.collapsed,v.node.path)},J=function(){A("selectedChange",v.node)},z=function(){A("nodeClick",v.node),F.value&&v.selectOnClickNode&&A("selectedChange",v.node)},Y=function(K){if(v.editable&&!D.editing){D.editing=!0;var V=function ee(N){var B;N.target!==K.target&&((B=N.target)===null||B===void 0?void 0:B.parentElement)!==K.target&&(D.editing=!1,document.removeEventListener("click",ee))};document.removeEventListener("click",V),document.addEventListener("click",V)}};return function(){var K,V=v.node;return(0,r.createVNode)("div",{class:{"vjs-tree-node":!0,"has-selector":v.showSelectController,"has-carets":v.showIcon,"is-highlight":v.highlightSelectedNode&&v.checked},onClick:z,style:v.style},[v.showLineNumber&&(0,r.createVNode)("span",{class:"vjs-node-index"},[V.id+1]),v.showSelectController&&F.value&&V.type!=="objectEnd"&&V.type!=="arrayEnd"&&(0,r.createVNode)(c,{isMultiple:O.value,checked:v.checked,onChange:J},null),(0,r.createVNode)("div",{class:"vjs-indent"},[Array.from(Array(V.level)).map(function(ee,N){return(0,r.createVNode)("div",{key:N,class:{"vjs-indent-unit":!0,"has-line":v.showLine}},null)}),v.showIcon&&(0,r.createVNode)(a,{nodeType:V.type,onClick:X},null)]),V.key&&(0,r.createVNode)("span",{class:"vjs-key"},[(K=v.renderNodeKey,K?K({node:v.node,defaultKey:T.value||""}):T.value),(0,r.createVNode)("span",{class:"vjs-colon"},[":".concat(v.showKeyValueSpace?" ":"")])]),(0,r.createVNode)("span",null,[V.type!=="content"&&V.content?(0,r.createVNode)(l,{data:V.content.toString(),onClick:H},null):(0,r.createVNode)("span",{class:L.value,onClick:!v.editable||v.editableTrigger&&v.editableTrigger!=="click"?void 0:Y,onDblclick:v.editable&&v.editableTrigger==="dblclick"?Y:void 0},[v.editable&&D.editing?(0,r.createVNode)("input",{value:G.value,onChange:W,style:{padding:"3px 8px",border:"1px solid #eee",boxShadow:"none",boxSizing:"border-box",borderRadius:5,fontFamily:"inherit"}},null):U()]),V.showComma&&(0,r.createVNode)("span",null,[","]),v.showLength&&v.collapsed&&(0,r.createVNode)("span",{class:"vjs-comment"},[(0,r.createTextVNode)(" // "),V.length,(0,r.createTextVNode)(" items ")])])])}}});function x(v,M){var A=Object.keys(v);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(v);M&&(w=w.filter(function(L){return Object.getOwnPropertyDescriptor(v,L).enumerable})),A.push.apply(A,w)}return A}function k(v){for(var M=1;M<arguments.length;M++){var A=arguments[M]!=null?arguments[M]:{};M%2?x(Object(A),!0).forEach(function(w){o(v,w,A[w])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(A)):x(Object(A)).forEach(function(w){Object.defineProperty(v,w,Object.getOwnPropertyDescriptor(A,w))})}return v}var _=(0,r.defineComponent)({name:"Tree",props:k(k({},$),{},{data:{type:[String,Number,Boolean,Array,Object],default:null},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(v,M){var A=M.emit,w=M.slots,L=(0,r.ref)(),T=(0,r.computed)(function(){return y(v.data,v.rootPath)}),O=function(V){return T.value.reduce(function(ee,N){var B,j=N.level>=V,Z=(B=v.pathCollapsible)===null||B===void 0?void 0:B.call(v,N);return N.type!=="objectStart"&&N.type!=="arrayStart"||!j&&!Z?ee:k(k({},ee),{},o({},N.path,1))},{})},I=(0,r.reactive)({translateY:0,visibleData:null,hiddenPaths:O(v.deep)}),F=(0,r.computed)(function(){for(var V=null,ee=[],N=T.value.length,B=0;B<N;B++){var j=k(k({},T.value[B]),{},{id:B}),Z=I.hiddenPaths[j.path];if(V&&V.path===j.path){var te=V.type==="objectStart",ie=k(k(k({},j),V),{},{showComma:j.showComma,content:te?"{...}":"[...]",type:te?"objectCollapsed":"arrayCollapsed"});V=null,ee.push(ie)}else{if(Z&&!V){V=j;continue}if(V)continue;ee.push(j)}}return ee}),D=(0,r.computed)(function(){var V=v.selectedValue;return V&&v.selectableType==="multiple"&&Array.isArray(V)?V:[V]}),W=(0,r.computed)(function(){return!v.selectableType||v.selectOnClickNode||v.showSelectController?"":"When selectableType is not null, selectOnClickNode and showSelectController cannot be false at the same time, because this will cause the selection to fail."}),G=function(){var V=F.value;if(v.virtual){var ee,N=v.height/v.itemHeight,B=((ee=L.value)===null||ee===void 0?void 0:ee.scrollTop)||0,j=Math.floor(B/v.itemHeight),Z=j<0?0:j+N>V.length?V.length-N:j;Z<0&&(Z=0);var te=Z+N;I.translateY=Z*v.itemHeight,I.visibleData=V.filter(function(ie,le){return le>=Z&&le<te})}else I.visibleData=V},U=function(){G()},H=function(V){var ee,N,B=V.path,j=v.selectableType;if(j==="multiple"){var Z=D.value.findIndex(function(se){return se===B}),te=h(D.value);Z!==-1?te.splice(Z,1):te.push(B),A("update:selectedValue",te),A("selectedChange",te,h(D.value))}else if(j==="single"&&D.value[0]!==B){var ie=(ee=D.value,N=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=[],_e=!0,Q=!1;try{for(re=re.call(se);!(_e=(ve=re.next()).done)&&(me.push(ve.value),!ce||me.length!==ce);_e=!0);}catch(ae){Q=!0,de=ae}finally{try{_e||re.return==null||re.return()}finally{if(Q)throw de}}return me}}(ee,N)||s(ee,N)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
769
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}())[0],le=B;A("update:selectedValue",le),A("selectedChange",le,ie)}},X=function(V){A("nodeClick",V)},J=function(V,ee){if(V)I.hiddenPaths=k(k({},I.hiddenPaths),{},o({},ee,1));else{var N=k({},I.hiddenPaths);delete N[ee],I.hiddenPaths=N}},z=function(V,ee){v.collapsedOnClickBrackets&&J(V,ee),A("bracketsClick",V)},Y=function(V,ee){J(V,ee),A("iconClick",V)},K=function(V,ee){var N=E(v.data),B=v.rootPath;new Function("data","val","data".concat(ee.slice(B.length),"=val"))(N,V),A("update:data",N)};return(0,r.watchEffect)(function(){W.value&&function(V){throw new Error("[VueJSONPretty] ".concat(V))}(W.value)}),(0,r.watchEffect)(function(){F.value&&G()}),(0,r.watch)(function(){return v.deep},function(V){V&&(I.hiddenPaths=O(V))}),function(){var V,ee,N=(V=v.renderNodeKey)!==null&&V!==void 0?V:w.renderNodeKey,B=(ee=v.renderNodeValue)!==null&&ee!==void 0?ee:w.renderNodeValue,j=I.visibleData&&I.visibleData.map(function(Z){return(0,r.createVNode)(R,{key:Z.id,node:Z,collapsed:!!I.hiddenPaths[Z.path],showDoubleQuotes:v.showDoubleQuotes,showLength:v.showLength,checked:D.value.includes(Z.path),selectableType:v.selectableType,showLine:v.showLine,showLineNumber:v.showLineNumber,showSelectController:v.showSelectController,selectOnClickNode:v.selectOnClickNode,nodeSelectable:v.nodeSelectable,highlightSelectedNode:v.highlightSelectedNode,editable:v.editable,editableTrigger:v.editableTrigger,showIcon:v.showIcon,showKeyValueSpace:v.showKeyValueSpace,renderNodeKey:N,renderNodeValue:B,onNodeClick:X,onBracketsClick:z,onIconClick:Y,onSelectedChange:H,onValueChange:K,style:v.itemHeight&&v.itemHeight!==20?{lineHeight:"".concat(v.itemHeight,"px")}:{}},null)});return(0,r.createVNode)("div",{ref:L,class:{"vjs-tree":!0,"is-virtual":v.virtual},onScroll:v.virtual?U:void 0,style:v.showLineNumber?k({paddingLeft:"".concat(12*Number(T.value.length.toString().length),"px")},v.style):v.style},[v.virtual?(0,r.createVNode)("div",{class:"vjs-tree-list",style:{height:"".concat(v.height,"px")}},[(0,r.createVNode)("div",{class:"vjs-tree-list-holder",style:{height:"".concat(F.value.length*v.itemHeight,"px")}},[(0,r.createVNode)("div",{class:"vjs-tree-list-holder-inner",style:{transform:"translateY(".concat(I.translateY,"px)")}},[j])])]):j])}}})}(),p}()})})(Dd);var U_=Dd.exports;const Bd=cn(U_),z_=$e({name:"ErrorItem",props:{error:{type:Object,required:!0}},components:{VueJsonPretty:Bd}}),V_={class:"notification is-danger is-light"},j_={key:0},G_={key:1},K_={key:0,class:"message"},Y_={class:"message-body"};function X_(e,t,n,i,d,u){var g,s;const p=ue("VueJsonPretty");return q(),oe(Se,null,[P("div",V_,[(g=e.error.response.data)!=null&&g.message?(q(),oe("p",j_,Ae(e.error.response.data.message),1)):(q(),oe("p",G_,Ae(e.error),1))]),(s=e.error.response.data)!=null&&s.details?(q(),oe("article",K_,[P("div",Y_,[he(p,{data:e.error.response.data.details},null,8,["data"])])])):we("",!0)],64)}const un=xe(z_,[["render",X_]]),Z_=$e({name:"LoadingItem"}),Q_={class:"has-text-centered"},J_={class:"fa-3x"};function q_(e,t,n,i,d,u){const p=ue("font-awesome-icon");return q(),oe("div",Q_,[P("div",J_,[he(p,{icon:"spinner",spin:""})])])}const hn=xe(Z_,[["render",q_]]),eC=$e({name:"AlertsWrapper",components:{AlertsComponent:Pd,FormComponent:W_,Loading:hn,ErrorMessage:un},setup(){const e=Te(1),t=Te(void 0),n=Te(),i=wl(),d=kd(),u=P1(),p=async()=>{var c;const l=(c=n.value)==null?void 0:c.getSearchParams();return await i.perform(l)},g=l=>{e.value=l},s=()=>{e.value=1},h=async()=>{s(),await p()},o=l=>{t.value===l?t.value=void 0:t.value=l,zt(async()=>await h())},r=async()=>{await h()};return nt(async()=>{d.perform(),u.perform(),await p()}),Ye([e,t],async()=>{zt(async()=>await p())}),{getAlertsTask:i,getRuleSetTask:u,getTagsTask:d,refreshPage:r,search:h,tag:t,updatePage:g,updateTag:o,form:n,page:e}}}),tC={class:"box mb-6"},nC=P("hr",null,null,-1),iC={class:"columns"},rC={class:"column"},oC={class:"field is-grouped is-grouped-centered"},sC={class:"control"},aC={class:"icon is-small"},lC=P("span",null,"Search",-1),cC={key:0},uC=P("hr",null,null,-1);function hC(e,t,n,i,d,u){var r,l,c,a;const p=ue("FormComponent"),g=ue("font-awesome-icon"),s=ue("Loading"),h=ue("ErrorMessage"),o=ue("AlertsComponent");return q(),oe(Se,null,[P("div",tC,[he(p,{ref:"form",ruleSet:((r=e.getRuleSetTask.last)==null?void 0:r.value)||[],tags:((l=e.getTagsTask.last)==null?void 0:l.value)||[],page:e.page,tag:e.tag},null,8,["ruleSet","tags","page","tag"]),nC,P("div",iC,[P("div",rC,[P("div",oC,[P("p",sC,[P("a",{class:"button is-primary",onClick:t[0]||(t[0]=(...f)=>e.search&&e.search(...f))},[P("span",aC,[he(g,{icon:"search"})]),lC])])])])])]),e.getAlertsTask.performCount>0?(q(),oe("div",cC,[uC,e.getAlertsTask.isRunning?(q(),Me(s,{key:0})):we("",!0),e.getAlertsTask.isError?(q(),Me(h,{key:1,error:(c=e.getAlertsTask.last)==null?void 0:c.error},null,8,["error"])):we("",!0),(a=e.getAlertsTask.last)!=null&&a.value?(q(),Me(o,{key:2,alerts:e.getAlertsTask.last.value,onRefreshPage:e.refreshPage,onUpdatePage:e.updatePage,onUpdateTag:e.updateTag},null,8,["alerts","onRefreshPage","onUpdatePage","onUpdateTag"])):we("",!0)])):we("",!0)],64)}const fC=xe(eC,[["render",hC]]),dC=$e({name:"AlertsView",components:{Alerts:fC},setup(){ei("Alerts - Mihari")}});function pC(e,t,n,i,d,u){const p=ue("Alerts",!0);return q(),Me(p)}const gC=xe(dC,[["render",pC]]),mC=$e({name:"AlertsWithPagination",props:{ruleId:{type:String},artifact:{type:String}},components:{Alerts:Pd,Loading:hn},setup(e){const t=Te(1),n=Te(void 0),i=wl(),d=async()=>{const h={artifact:e.artifact,page:t.value,ruleId:e.ruleId,tag:n.value,toAt:void 0,fromAt:void 0};return await i.perform(h)},u=h=>{t.value=h},p=()=>{t.value=1},g=async()=>{p(),await d()},s=h=>{n.value===h?n.value=void 0:n.value=h};return nt(async()=>{await d()}),Ye([e,t,n],async()=>{zt(async()=>await d())}),{getAlertsTask:i,refreshPage:g,updatePage:u,updateTag:s}}});function vC(e,t,n,i,d,u){var s;const p=ue("Loading"),g=ue("Alerts");return q(),oe(Se,null,[e.getAlertsTask.isRunning?(q(),Me(p,{key:0})):we("",!0),(s=e.getAlertsTask.last)!=null&&s.value?(q(),Me(g,{key:1,alerts:e.getAlertsTask.last.value,onRefreshPage:e.refreshPage,onUpdatePage:e.updatePage,onUpdateTag:e.updateTag},null,8,["alerts","onRefreshPage","onUpdatePage","onUpdateTag"])):we("",!0)],64)}const Wd=xe(mC,[["render",vC]]),yC=$e({name:"AS",props:{autonomousSystem:{type:Object,required:!0}}}),bC={class:"tags are-medium"};function wC(e,t,n,i,d,u){const p=ue("router-link");return q(),oe("div",bC,[he(p,{class:"tag",to:{name:"Alerts",query:{asn:e.autonomousSystem.asn}}},{default:dt(()=>[et(Ae(e.autonomousSystem.asn),1)]),_:1},8,["to"])])}const $C=xe(yC,[["render",wC]]),_C=$e({name:"CPEsItem",props:{cpes:{type:Array,required:!0}}}),CC={class:"tags are-medium"};function SC(e,t,n,i,d,u){return q(),oe("div",CC,[(q(!0),oe(Se,null,ct(e.cpes,p=>(q(),oe("span",{class:"tag",key:p.cpe},Ae(p.cpe),1))),128))])}const AC=xe(_C,[["render",SC]]);var Hd={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,h){return h.length===g.length||!s.ellipsis||(h+=s.ellipsis),h}function p(g,s,h){var o="",r=!0,l=s,c,a;if(h=h||{},h.ellipsis=typeof h.ellipsis>"u"?i:h.ellipsis,!g||g.length===0)return"";for(r=!0;r;){if(d.lastIndex=o.length,r=d.exec(g),!r||r.index-o.length>=l||d.lastIndex>=s+3e3)return o+=g.substring(o.length,s),u(g,h,o);if(c=r[0],a=r.index,o+=g.substring(o.length,a+c.length),l-=a+c.length,l<=0)break}return u(g,h,o)}e.exports?e.exports=p:t.truncate=p})(String)})(Hd);var xC=Hd.exports;const kC=cn(xC),EC=$e({name:"DnsRecords",props:{dnsRecords:{type:Array,required:!0}},setup(){return{truncate:kC}}}),RC={class:"field is-grouped is-grouped-multiline"},LC={class:"tags has-addons are-medium"},TC={class:"tag is-dark"};function MC(e,t,n,i,d,u){const p=ue("router-link");return q(),oe("div",RC,[(q(!0),oe(Se,null,ct(e.dnsRecords,(g,s)=>(q(),oe("div",{class:"control",key:s},[P("div",LC,[P("span",TC,Ae(g.resource),1),he(p,{class:"tag",to:{name:"Alerts",query:{dnsRecord:g.value}}},{default:dt(()=>[et(Ae(e.truncate(g.value,50)),1)]),_:2},1032,["to"])])]))),128))])}const IC=xe(EC,[["render",MC]]),OC=$e({name:"PortsItem",props:{ports:{type:Array,required:!0}}}),FC={class:"tags are-medium"};function NC(e,t,n,i,d,u){return q(),oe("div",FC,[(q(!0),oe(Se,null,ct(e.ports,p=>(q(),oe("span",{class:"tag",key:p.port},Ae(p.port),1))),128))])}const PC=xe(OC,[["render",NC]]),DC=$e({name:"ReverseDnsNames",props:{reverseDnsNames:{type:Array,required:!0}}}),BC={class:"tags are-medium"};function WC(e,t,n,i,d,u){const p=ue("router-link");return q(),oe("div",BC,[(q(!0),oe(Se,null,ct(e.reverseDnsNames,g=>(q(),Me(p,{class:"tag",key:g.name,to:{name:"Alerts",query:{reverseDnsName:g.name}}},{default:dt(()=>[et(Ae(g.name),1)]),_:2},1032,["to"]))),128))])}const HC=xe(DC,[["render",WC]]),UC=$e({name:"TagsItem",props:{tags:{type:Array,required:!0}}}),zC={class:"tags are-medium"};function VC(e,t,n,i,d,u){const p=ue("router-link");return q(),oe("div",zC,[(q(!0),oe(Se,null,ct(e.tags,g=>(q(),Me(p,{class:"tag is-info is-light",key:g,to:{name:"Alerts",query:{tag:g}}},{default:dt(()=>[et(Ae(g),1)]),_:2},1032,["to"]))),128))])}const jC=xe(UC,[["render",VC]]),GC=$e({name:"WhoisRecord",props:{whoisRecord:{type:Object,required:!0}}}),KC={class:"field is-grouped is-grouped-multiline"},YC={class:"control"},XC={class:"tags has-addons are-medium"},ZC=P("span",{class:"tag is-dark"},"Registrar",-1),QC={class:"tag is-light"},JC={class:"control"},qC={class:"tags has-addons are-medium"},eS=P("span",{class:"tag is-dark"},"Created on",-1),tS={class:"tag is-light"},nS={class:"control"},iS={class:"tags has-addons are-medium"},rS=P("span",{class:"tag is-dark"},"Updated on",-1),oS={class:"tag is-light"},sS={class:"control"},aS={class:"tags has-addons are-medium"},lS=P("span",{class:"tag is-dark"},"Exipres on",-1),cS={class:"tag is-light"};function uS(e,t,n,i,d,u){var p;return q(),oe("div",KC,[P("div",YC,[P("div",XC,[ZC,P("span",QC,Ae(((p=e.whoisRecord.registrar)==null?void 0:p.name)||"N/A"),1)])]),P("div",JC,[P("div",qC,[eS,P("span",tS,Ae(e.whoisRecord.createdOn||"N/A"),1)])]),P("div",nS,[P("div",iS,[rS,P("span",oS,Ae(e.whoisRecord.updatedOn||"N/A"),1)])]),P("div",sS,[P("div",aS,[lS,P("span",cS,Ae(e.whoisRecord.expiresOn||"N/A"),1)])])])}const hS=xe(GC,[["render",uS]]),fS=$e({name:"LinkItem",props:{data:{type:String,required:!0},link:{type:Object,required:!0}}});const dS=["href"],pS=["src"];function gS(e,t,n,i,d,u){return q(),oe("a",{href:e.link.href(e.data),class:"tag is-white",target:"_blank"},[P("img",{src:e.link.favicon(),alt:"favicon"},null,8,pS),P("span",null,Ae(e.link.name),1)],8,dS)}const mS=xe(fS,[["render",gS],["__scopeId","data-v-66270500"]]);class Rt{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 vS extends Rt{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 yS extends Rt{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 bS extends Rt{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 wS extends Rt{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 $S extends Rt{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 _S extends Rt{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 CS extends Rt{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 Ud extends Rt{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 SS extends Ud{constructor(){super();Le(this,"type");this.type="domain"}href(n){return this.baseURL+`/indicator/domain/${n}`}}class zd extends Rt{constructor(){super();Le(this,"baseURL");Le(this,"name");Le(this,"type");this.baseURL="https://securitytrails.com",this.name="SecurityTrails",this.type="domain"}}class AS extends zd{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/domain/${t}/dns`}}class xS extends zd{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/list/ip/${t}`}}class kS extends Rt{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 $l extends Rt{constructor(){super();Le(this,"baseURL");Le(this,"name");Le(this,"type");this.baseURL="https://urlscan.io",this.name="urlscan.io",this.type="domain"}}class ES extends $l{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/domain/${t}`}}class RS extends $l{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/ip/${t}`}}class LS extends $l{constructor(){super(),this.type="url"}href(t){const n=encodeURIComponent(`page.url:"${t}" OR task.url:"${t}"`);return this.baseURL+`/search/#${n}`}}var Vd={exports:{}};const TS={},MS=Object.freeze(Object.defineProperty({__proto__:null,default:TS},Symbol.toStringTag,{value:"Module"})),du=zf(MS);/**
765
+ */const ii=typeof window<"u";function G0(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Pe=Object.assign;function $s(e,t){const n={};for(const i in t){const p=t[i];n[i]=Nt(p)?p.map(e):e(p)}return n}const Ji=()=>{},Nt=Array.isArray,K0=/\/$/,Y0=e=>e.replace(K0,"");function _s(e,t,n="/"){let i,p={},u="",f="";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),p=e(u)),g>-1&&(i=i||t.slice(0,g),f=t.slice(g,t.length)),i=J0(i??t,n),{fullPath:i+(u&&"?")+u+f,path:i,query:p,hash:f}}function X0(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Dc(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Z0(e,t,n){const i=t.matched.length-1,p=n.matched.length-1;return i>-1&&i===p&&yi(t.matched[i],n.matched[p])&&Mf(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function yi(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Mf(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Q0(e[n],t[n]))return!1;return!0}function Q0(e,t){return Nt(e)?Bc(e,t):Nt(t)?Bc(t,e):e===t}function Bc(e,t){return Nt(t)?e.length===t.length&&e.every((n,i)=>n===t[i]):e.length===1&&e[0]===t}function J0(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),i=e.split("/"),p=i[i.length-1];(p===".."||p===".")&&i.push("");let u=n.length-1,f,g;for(f=0;f<i.length;f++)if(g=i[f],g!==".")if(g==="..")u>1&&u--;else break;return n.slice(0,u).join("/")+"/"+i.slice(f-(f===i.length?1:0)).join("/")}var gr;(function(e){e.pop="pop",e.push="push"})(gr||(gr={}));var qi;(function(e){e.back="back",e.forward="forward",e.unknown=""})(qi||(qi={}));function q0(e){if(!e)if(ii){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Y0(e)}const eb=/^[^#]+#/;function tb(e,t){return e.replace(eb,"#")+t}function nb(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 Xo=()=>({left:window.pageXOffset,top:window.pageYOffset});function ib(e){let t;if("el"in e){const n=e.el,i=typeof n=="string"&&n.startsWith("#"),p=typeof n=="string"?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!p)return;t=nb(p,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 Wc(e,t){return(history.state?history.state.position-t:-1)+e}const aa=new Map;function rb(e,t){aa.set(e,t)}function ob(e){const t=aa.get(e);return aa.delete(e),t}let sb=()=>location.protocol+"//"+location.host;function If(e,t){const{pathname:n,search:i,hash:p}=t,u=e.indexOf("#");if(u>-1){let g=p.includes(e.slice(u))?e.slice(u).length:1,s=p.slice(g);return s[0]!=="/"&&(s="/"+s),Dc(s,"")}return Dc(n,e)+i+p}function ab(e,t,n,i){let p=[],u=[],f=null;const g=({state:l})=>{const c=If(e,location),a=n.value,d=t.value;let m=0;if(l){if(n.value=c,t.value=l,f&&f===a){f=null;return}m=d?l.position-d.position:0}else i(c);p.forEach(y=>{y(n.value,a,{delta:m,type:gr.pop,direction:m?m>0?qi.forward:qi.back:qi.unknown})})};function s(){f=n.value}function h(l){p.push(l);const c=()=>{const a=p.indexOf(l);a>-1&&p.splice(a,1)};return u.push(c),c}function o(){const{history:l}=window;l.state&&l.replaceState(Pe({},l.state,{scroll:Xo()}),"")}function r(){for(const l of u)l();u=[],window.removeEventListener("popstate",g),window.removeEventListener("beforeunload",o)}return window.addEventListener("popstate",g),window.addEventListener("beforeunload",o,{passive:!0}),{pauseListeners:s,listen:h,destroy:r}}function Hc(e,t,n,i=!1,p=!1){return{back:e,current:t,forward:n,replaced:i,position:window.history.length,scroll:p?Xo():null}}function lb(e){const{history:t,location:n}=window,i={value:If(e,n)},p={value:t.state};p.value||u(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function u(s,h,o){const r=e.indexOf("#"),l=r>-1?(n.host&&document.querySelector("base")?e:e.slice(r))+s:sb()+e+s;try{t[o?"replaceState":"pushState"](h,"",l),p.value=h}catch(c){console.error(c),n[o?"replace":"assign"](l)}}function f(s,h){const o=Pe({},t.state,Hc(p.value.back,s,p.value.forward,!0),h,{position:p.value.position});u(s,o,!0),i.value=s}function g(s,h){const o=Pe({},p.value,t.state,{forward:s,scroll:Xo()});u(o.current,o,!0);const r=Pe({},Hc(i.value,s,null),{position:o.position+1},h);u(s,r,!1),i.value=s}return{location:i,state:p,push:g,replace:f}}function cb(e){e=q0(e);const t=lb(e),n=ab(e,t.state,t.location,t.replace);function i(u,f=!0){f||n.pauseListeners(),history.go(u)}const p=Pe({location:"",base:e,go:i,createHref:tb.bind(null,e)},t,n);return Object.defineProperty(p,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(p,"state",{enumerable:!0,get:()=>t.state.value}),p}function ub(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),cb(e)}function hb(e){return typeof e=="string"||e&&typeof e=="object"}function Of(e){return typeof e=="string"||typeof e=="symbol"}const vn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Ff=Symbol("");var Uc;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Uc||(Uc={}));function bi(e,t){return Pe(new Error,{type:e,[Ff]:!0},t)}function Kt(e,t){return e instanceof Error&&Ff in e&&(t==null||!!(e.type&t))}const zc="[^/]+?",fb={sensitive:!1,strict:!1,start:!0,end:!0},db=/[.+*?^${}()[\]/\\]/g;function pb(e,t){const n=Pe({},fb,t),i=[];let p=n.start?"^":"";const u=[];for(const h of e){const o=h.length?[]:[90];n.strict&&!h.length&&(p+="/");for(let r=0;r<h.length;r++){const l=h[r];let c=40+(n.sensitive?.25:0);if(l.type===0)r||(p+="/"),p+=l.value.replace(db,"\\$&"),c+=40;else if(l.type===1){const{value:a,repeatable:d,optional:m,regexp:y}=l;u.push({name:a,repeatable:d,optional:m});const b=y||zc;if(b!==zc){c+=10;try{new RegExp(`(${b})`)}catch(S){throw new Error(`Invalid custom RegExp for param "${a}" (${b}): `+S.message)}}let E=d?`((?:${b})(?:/(?:${b}))*)`:`(${b})`;r||(E=m&&h.length<2?`(?:/${E})`:"/"+E),m&&(E+="?"),p+=E,c+=20,m&&(c+=-8),d&&(c+=-20),b===".*"&&(c+=-50)}o.push(c)}i.push(o)}if(n.strict&&n.end){const h=i.length-1;i[h][i[h].length-1]+=.7000000000000001}n.strict||(p+="/?"),n.end?p+="$":n.strict&&(p+="(?:/|$)");const f=new RegExp(p,n.sensitive?"":"i");function g(h){const o=h.match(f),r={};if(!o)return null;for(let l=1;l<o.length;l++){const c=o[l]||"",a=u[l-1];r[a.name]=c&&a.repeatable?c.split("/"):c}return r}function s(h){let o="",r=!1;for(const l of e){(!r||!o.endsWith("/"))&&(o+="/"),r=!1;for(const c of l)if(c.type===0)o+=c.value;else if(c.type===1){const{value:a,repeatable:d,optional:m}=c,y=a in h?h[a]:"";if(Nt(y)&&!d)throw new Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);const b=Nt(y)?y.join("/"):y;if(!b)if(m)l.length<2&&(o.endsWith("/")?o=o.slice(0,-1):r=!0);else throw new Error(`Missing required param "${a}"`);o+=b}}return o||"/"}return{re:f,score:i,keys:u,parse:g,stringify:s}}function gb(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]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function mb(e,t){let n=0;const i=e.score,p=t.score;for(;n<i.length&&n<p.length;){const u=gb(i[n],p[n]);if(u)return u;n++}if(Math.abs(p.length-i.length)===1){if(Vc(i))return 1;if(Vc(p))return-1}return p.length-i.length}function Vc(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const vb={type:0,value:""},yb=/[a-zA-Z0-9_]/;function bb(e){if(!e)return[[]];if(e==="/")return[[vb]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(c){throw new Error(`ERR (${n})/"${h}": ${c}`)}let n=0,i=n;const p=[];let u;function f(){u&&p.push(u),u=[]}let g=0,s,h="",o="";function r(){h&&(n===0?u.push({type:0,value:h}):n===1||n===2||n===3?(u.length>1&&(s==="*"||s==="+")&&t(`A repeatable param (${h}) must be alone in its segment. eg: '/:ids+.`),u.push({type:1,value:h,regexp:o,repeatable:s==="*"||s==="+",optional:s==="*"||s==="?"})):t("Invalid state to consume buffer"),h="")}function l(){h+=s}for(;g<e.length;){if(s=e[g++],s==="\\"&&n!==2){i=n,n=4;continue}switch(n){case 0:s==="/"?(h&&r(),f()):s===":"?(r(),n=1):l();break;case 4:l(),n=i;break;case 1:s==="("?n=2:yb.test(s)?l():(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 "${h}"`),r(),f(),p}function wb(e,t,n){const i=pb(bb(e.path),n),p=Pe(i,{record:e,parent:t,children:[],alias:[]});return t&&!p.record.aliasOf==!t.record.aliasOf&&t.children.push(p),p}function $b(e,t){const n=[],i=new Map;t=Kc({strict:!1,end:!0,sensitive:!1},t);function p(o){return i.get(o)}function u(o,r,l){const c=!l,a=_b(o);a.aliasOf=l&&l.record;const d=Kc(t,o),m=[a];if("alias"in o){const E=typeof o.alias=="string"?[o.alias]:o.alias;for(const S of E)m.push(Pe({},a,{components:l?l.record.components:a.components,path:S,aliasOf:l?l.record:a}))}let y,b;for(const E of m){const{path:S}=E;if(r&&S[0]!=="/"){const C=r.record.path,$=C[C.length-1]==="/"?"":"/";E.path=r.record.path+(S&&$+S)}if(y=wb(E,r,d),l?l.alias.push(y):(b=b||y,b!==y&&b.alias.push(y),c&&o.name&&!Gc(y)&&f(o.name)),a.children){const C=a.children;for(let $=0;$<C.length;$++)u(C[$],y,l&&l.children[$])}l=l||y,(y.record.components&&Object.keys(y.record.components).length||y.record.name||y.record.redirect)&&s(y)}return b?()=>{f(b)}:Ji}function f(o){if(Of(o)){const r=i.get(o);r&&(i.delete(o),n.splice(n.indexOf(r),1),r.children.forEach(f),r.alias.forEach(f))}else{const r=n.indexOf(o);r>-1&&(n.splice(r,1),o.record.name&&i.delete(o.record.name),o.children.forEach(f),o.alias.forEach(f))}}function g(){return n}function s(o){let r=0;for(;r<n.length&&mb(o,n[r])>=0&&(o.record.path!==n[r].record.path||!Nf(o,n[r]));)r++;n.splice(r,0,o),o.record.name&&!Gc(o)&&i.set(o.record.name,o)}function h(o,r){let l,c={},a,d;if("name"in o&&o.name){if(l=i.get(o.name),!l)throw bi(1,{location:o});d=l.record.name,c=Pe(jc(r.params,l.keys.filter(b=>!b.optional).map(b=>b.name)),o.params&&jc(o.params,l.keys.map(b=>b.name))),a=l.stringify(c)}else if("path"in o)a=o.path,l=n.find(b=>b.re.test(a)),l&&(c=l.parse(a),d=l.record.name);else{if(l=r.name?i.get(r.name):n.find(b=>b.re.test(r.path)),!l)throw bi(1,{location:o,currentLocation:r});d=l.record.name,c=Pe({},r.params,o.params),a=l.stringify(c)}const m=[];let y=l;for(;y;)m.unshift(y.record),y=y.parent;return{name:d,path:a,params:c,matched:m,meta:Sb(m)}}return e.forEach(o=>u(o)),{addRoute:u,resolve:h,removeRoute:f,getRoutes:g,getRecordMatcher:p}}function jc(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}function _b(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Cb(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 Cb(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 Gc(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Sb(e){return e.reduce((t,n)=>Pe(t,n.meta),{})}function Kc(e,t){const n={};for(const i in e)n[i]=i in t?t[i]:e[i];return n}function Nf(e,t){return t.children.some(n=>n===e||Nf(e,n))}const Pf=/#/g,Ab=/&/g,xb=/\//g,kb=/=/g,Eb=/\?/g,Df=/\+/g,Rb=/%5B/g,Lb=/%5D/g,Bf=/%5E/g,Tb=/%60/g,Wf=/%7B/g,Mb=/%7C/g,Hf=/%7D/g,Ib=/%20/g;function cl(e){return encodeURI(""+e).replace(Mb,"|").replace(Rb,"[").replace(Lb,"]")}function Ob(e){return cl(e).replace(Wf,"{").replace(Hf,"}").replace(Bf,"^")}function la(e){return cl(e).replace(Df,"%2B").replace(Ib,"+").replace(Pf,"%23").replace(Ab,"%26").replace(Tb,"`").replace(Wf,"{").replace(Hf,"}").replace(Bf,"^")}function Fb(e){return la(e).replace(kb,"%3D")}function Nb(e){return cl(e).replace(Pf,"%23").replace(Eb,"%3F")}function Pb(e){return e==null?"":Nb(e).replace(xb,"%2F")}function yo(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function Db(e){const t={};if(e===""||e==="?")return t;const i=(e[0]==="?"?e.slice(1):e).split("&");for(let p=0;p<i.length;++p){const u=i[p].replace(Df," "),f=u.indexOf("="),g=yo(f<0?u:u.slice(0,f)),s=f<0?null:yo(u.slice(f+1));if(g in t){let h=t[g];Nt(h)||(h=t[g]=[h]),h.push(s)}else t[g]=s}return t}function Yc(e){let t="";for(let n in e){const i=e[n];if(n=Fb(n),i==null){i!==void 0&&(t+=(t.length?"&":"")+n);continue}(Nt(i)?i.map(u=>u&&la(u)):[i&&la(i)]).forEach(u=>{u!==void 0&&(t+=(t.length?"&":"")+n,u!=null&&(t+="="+u))})}return t}function Bb(e){const t={};for(const n in e){const i=e[n];i!==void 0&&(t[n]=Nt(i)?i.map(p=>p==null?null:""+p):i==null?i:""+i)}return t}const Wb=Symbol(""),Xc=Symbol(""),Zo=Symbol(""),ul=Symbol(""),ca=Symbol("");function Fi(){let e=[];function t(i){return e.push(i),()=>{const p=e.indexOf(i);p>-1&&e.splice(p,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function $n(e,t,n,i,p){const u=i&&(i.enterCallbacks[p]=i.enterCallbacks[p]||[]);return()=>new Promise((f,g)=>{const s=r=>{r===!1?g(bi(4,{from:n,to:t})):r instanceof Error?g(r):hb(r)?g(bi(2,{from:t,to:r})):(u&&i.enterCallbacks[p]===u&&typeof r=="function"&&u.push(r),f())},h=e.call(i&&i.instances[p],t,n,s);let o=Promise.resolve(h);e.length<3&&(o=o.then(s)),o.catch(r=>g(r))})}function Cs(e,t,n,i){const p=[];for(const u of e)for(const f in u.components){let g=u.components[f];if(!(t!=="beforeRouteEnter"&&!u.instances[f]))if(Hb(g)){const h=(g.__vccOpts||g)[t];h&&p.push($n(h,n,i,u,f))}else{let s=g();p.push(()=>s.then(h=>{if(!h)return Promise.reject(new Error(`Couldn't resolve component "${f}" at "${u.path}"`));const o=G0(h)?h.default:h;u.components[f]=o;const l=(o.__vccOpts||o)[t];return l&&$n(l,n,i,u,f)()}))}}return p}function Hb(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Zc(e){const t=kt(Zo),n=kt(ul),i=Ee(()=>t.resolve(qt(e.to))),p=Ee(()=>{const{matched:s}=i.value,{length:h}=s,o=s[h-1],r=n.matched;if(!o||!r.length)return-1;const l=r.findIndex(yi.bind(null,o));if(l>-1)return l;const c=Qc(s[h-2]);return h>1&&Qc(o)===c&&r[r.length-1].path!==c?r.findIndex(yi.bind(null,s[h-2])):l}),u=Ee(()=>p.value>-1&&jb(n.params,i.value.params)),f=Ee(()=>p.value>-1&&p.value===n.matched.length-1&&Mf(n.params,i.value.params));function g(s={}){return Vb(s)?t[qt(e.replace)?"replace":"push"](qt(e.to)).catch(Ji):Promise.resolve()}return{route:i,href:Ee(()=>i.value.href),isActive:u,isExactActive:f,navigate:g}}const Ub=$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:Zc,setup(e,{slots:t}){const n=ki(Zc(e)),{options:i}=kt(Zo),p=Ee(()=>({[Jc(e.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[Jc(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const u=t.default&&t.default(n);return e.custom?u:Ei("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:p.value},u)}}}),zb=Ub;function Vb(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 jb(e,t){for(const n in t){const i=t[n],p=e[n];if(typeof i=="string"){if(i!==p)return!1}else if(!Nt(p)||p.length!==i.length||i.some((u,f)=>u!==p[f]))return!1}return!0}function Qc(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Jc=(e,t,n)=>e??t??n,Gb=$e({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const i=kt(ca),p=Ee(()=>e.route||i.value),u=kt(Xc,0),f=Ee(()=>{let h=qt(u);const{matched:o}=p.value;let r;for(;(r=o[h])&&!r.components;)h++;return h}),g=Ee(()=>p.value.matched[f.value]);Yi(Xc,Ee(()=>f.value+1)),Yi(Wb,g),Yi(ca,p);const s=Te();return Ye(()=>[s.value,g.value,e.name],([h,o,r],[l,c,a])=>{o&&(o.instances[r]=h,c&&c!==o&&h&&h===l&&(o.leaveGuards.size||(o.leaveGuards=c.leaveGuards),o.updateGuards.size||(o.updateGuards=c.updateGuards))),h&&o&&(!c||!yi(o,c)||!l)&&(o.enterCallbacks[r]||[]).forEach(d=>d(h))},{flush:"post"}),()=>{const h=p.value,o=e.name,r=g.value,l=r&&r.components[o];if(!l)return qc(n.default,{Component:l,route:h});const c=r.props[o],a=c?c===!0?h.params:typeof c=="function"?c(h):c:null,m=Ei(l,Pe({},a,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(r.instances[o]=null)},ref:s}));return qc(n.default,{Component:m,route:h})||m}}});function qc(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Kb=Gb;function Yb(e){const t=$b(e.routes,e),n=e.parseQuery||Db,i=e.stringifyQuery||Yc,p=e.history,u=Fi(),f=Fi(),g=Fi(),s=fh(vn);let h=vn;ii&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const o=$s.bind(null,z=>""+z),r=$s.bind(null,Pb),l=$s.bind(null,yo);function c(z,Y){let K,V;return Of(z)?(K=t.getRecordMatcher(z),V=Y):V=z,t.addRoute(V,K)}function a(z){const Y=t.getRecordMatcher(z);Y&&t.removeRoute(Y)}function d(){return t.getRoutes().map(z=>z.record)}function m(z){return!!t.getRecordMatcher(z)}function y(z,Y){if(Y=Pe({},Y||s.value),typeof z=="string"){const j=_s(n,z,Y.path),Z=t.resolve({path:j.path},Y),te=p.createHref(j.fullPath);return Pe(j,Z,{params:l(Z.params),hash:yo(j.hash),redirectedFrom:void 0,href:te})}let K;if("path"in z)K=Pe({},z,{path:_s(n,z.path,Y.path).path});else{const j=Pe({},z.params);for(const Z in j)j[Z]==null&&delete j[Z];K=Pe({},z,{params:r(j)}),Y.params=r(Y.params)}const V=t.resolve(K,Y),ee=z.hash||"";V.params=o(l(V.params));const N=X0(i,Pe({},z,{hash:Ob(ee),path:V.path})),B=p.createHref(N);return Pe({fullPath:N,hash:ee,query:i===Yc?Bb(z.query):z.query||{}},V,{redirectedFrom:void 0,href:B})}function b(z){return typeof z=="string"?_s(n,z,s.value.path):Pe({},z)}function E(z,Y){if(h!==z)return bi(8,{from:Y,to:z})}function S(z){return R(z)}function C(z){return S(Pe(b(z),{replace:!0}))}function $(z){const Y=z.matched[z.matched.length-1];if(Y&&Y.redirect){const{redirect:K}=Y;let V=typeof K=="function"?K(z):K;return typeof V=="string"&&(V=V.includes("?")||V.includes("#")?V=b(V):{path:V},V.params={}),Pe({query:z.query,hash:z.hash,params:"path"in V?{}:z.params},V)}}function R(z,Y){const K=h=y(z),V=s.value,ee=z.state,N=z.force,B=z.replace===!0,j=$(K);if(j)return R(Pe(b(j),{state:typeof j=="object"?Pe({},ee,j.state):ee,force:N,replace:B}),Y||K);const Z=K;Z.redirectedFrom=Y;let te;return!N&&Z0(i,V,K)&&(te=bi(16,{to:Z,from:V}),W(V,V,!0,!1)),(te?Promise.resolve(te):_(Z,V)).catch(ie=>Kt(ie)?Kt(ie,2)?ie:D(ie):I(ie,Z,V)).then(ie=>{if(ie){if(Kt(ie,2))return R(Pe({replace:B},b(ie.to),{state:typeof ie.to=="object"?Pe({},ee,ie.to.state):ee,force:N}),Y||Z)}else ie=M(Z,V,!0,B,ee);return v(Z,V,ie),ie})}function x(z,Y){const K=E(z,Y);return K?Promise.reject(K):Promise.resolve()}function k(z){const Y=H.values().next().value;return Y&&typeof Y.runWithContext=="function"?Y.runWithContext(z):z()}function _(z,Y){let K;const[V,ee,N]=Xb(z,Y);K=Cs(V.reverse(),"beforeRouteLeave",z,Y);for(const j of V)j.leaveGuards.forEach(Z=>{K.push($n(Z,z,Y))});const B=x.bind(null,z,Y);return K.push(B),J(K).then(()=>{K=[];for(const j of u.list())K.push($n(j,z,Y));return K.push(B),J(K)}).then(()=>{K=Cs(ee,"beforeRouteUpdate",z,Y);for(const j of ee)j.updateGuards.forEach(Z=>{K.push($n(Z,z,Y))});return K.push(B),J(K)}).then(()=>{K=[];for(const j of N)if(j.beforeEnter)if(Nt(j.beforeEnter))for(const Z of j.beforeEnter)K.push($n(Z,z,Y));else K.push($n(j.beforeEnter,z,Y));return K.push(B),J(K)}).then(()=>(z.matched.forEach(j=>j.enterCallbacks={}),K=Cs(N,"beforeRouteEnter",z,Y),K.push(B),J(K))).then(()=>{K=[];for(const j of f.list())K.push($n(j,z,Y));return K.push(B),J(K)}).catch(j=>Kt(j,8)?j:Promise.reject(j))}function v(z,Y,K){g.list().forEach(V=>k(()=>V(z,Y,K)))}function M(z,Y,K,V,ee){const N=E(z,Y);if(N)return N;const B=Y===vn,j=ii?history.state:{};K&&(V||B?p.replace(z.fullPath,Pe({scroll:B&&j&&j.scroll},ee)):p.push(z.fullPath,ee)),s.value=z,W(z,Y,K,B),D()}let A;function w(){A||(A=p.listen((z,Y,K)=>{if(!X.listening)return;const V=y(z),ee=$(V);if(ee){R(Pe(ee,{replace:!0}),V).catch(Ji);return}h=V;const N=s.value;ii&&rb(Wc(N.fullPath,K.delta),Xo()),_(V,N).catch(B=>Kt(B,12)?B:Kt(B,2)?(R(B.to,V).then(j=>{Kt(j,20)&&!K.delta&&K.type===gr.pop&&p.go(-1,!1)}).catch(Ji),Promise.reject()):(K.delta&&p.go(-K.delta,!1),I(B,V,N))).then(B=>{B=B||M(V,N,!1),B&&(K.delta&&!Kt(B,8)?p.go(-K.delta,!1):K.type===gr.pop&&Kt(B,20)&&p.go(-1,!1)),v(V,N,B)}).catch(Ji)}))}let L=Fi(),T=Fi(),O;function I(z,Y,K){D(z);const V=T.list();return V.length?V.forEach(ee=>ee(z,Y,K)):console.error(z),Promise.reject(z)}function F(){return O&&s.value!==vn?Promise.resolve():new Promise((z,Y)=>{L.add([z,Y])})}function D(z){return O||(O=!z,w(),L.list().forEach(([Y,K])=>z?K(z):Y()),L.reset()),z}function W(z,Y,K,V){const{scrollBehavior:ee}=e;if(!ii||!ee)return Promise.resolve();const N=!K&&ob(Wc(z.fullPath,0))||(V||!K)&&history.state&&history.state.scroll||null;return zt().then(()=>ee(z,Y,N)).then(B=>B&&ib(B)).catch(B=>I(B,z,Y))}const G=z=>p.go(z);let U;const H=new Set,X={currentRoute:s,listening:!0,addRoute:c,removeRoute:a,hasRoute:m,getRoutes:d,resolve:y,options:e,push:S,replace:C,go:G,back:()=>G(-1),forward:()=>G(1),beforeEach:u.add,beforeResolve:f.add,afterEach:g.add,onError:T.add,isReady:F,install(z){const Y=this;z.component("RouterLink",zb),z.component("RouterView",Kb),z.config.globalProperties.$router=Y,Object.defineProperty(z.config.globalProperties,"$route",{enumerable:!0,get:()=>qt(s)}),ii&&!U&&s.value===vn&&(U=!0,S(p.location).catch(ee=>{}));const K={};for(const ee in vn)Object.defineProperty(K,ee,{get:()=>s.value[ee],enumerable:!0});z.provide(Zo,Y),z.provide(ul,Ba(K)),z.provide(ca,s);const V=z.unmount;H.add(z),z.unmount=function(){H.delete(z),H.size<1&&(h=vn,A&&A(),A=null,s.value=vn,U=!1,O=!1),V()}}};function J(z){return z.reduce((Y,K)=>Y.then(()=>k(K)),Promise.resolve())}return X}function Xb(e,t){const n=[],i=[],p=[],u=Math.max(t.matched.length,e.matched.length);for(let f=0;f<u;f++){const g=t.matched[f];g&&(e.matched.find(h=>yi(h,g))?i.push(g):n.push(g));const s=e.matched[f];s&&(t.matched.find(h=>yi(h,s))||p.push(s))}return[n,i,p]}function Ri(){return kt(Zo)}function Qo(){return kt(ul)}function Uf(e){return Na()?(qu(e),!0):!1}function bo(e){return typeof e=="function"?e():qt(e)}const zf=typeof window<"u"&&typeof document<"u",Zb=()=>{};function Qb(...e){if(e.length!==1)return Yn(...e);const t=e[0];return typeof t=="function"?Oo(Va(()=>({get:t,set:Zb}))):Te(t)}function Jb(e){var t;const n=bo(e);return(t=n==null?void 0:n.$el)!=null?t:n}const qb=zf?window:void 0,ew=zf?window.document:void 0;function tw(){const e=Te(!1);return Pt()&&nt(()=>{e.value=!0}),e}function nw(e){const t=tw();return Ee(()=>(t.value,!!e()))}function iw(e,t,n={}){const{window:i=qb,...p}=n;let u;const f=nw(()=>i&&"MutationObserver"in i),g=()=>{u&&(u.disconnect(),u=void 0)},s=Ye(()=>Jb(e),o=>{g(),f.value&&i&&o&&(u=new MutationObserver(t),u.observe(o,p))},{immediate:!0}),h=()=>{g(),s()};return Uf(h),{isSupported:f,stop:h}}function ei(e=null,t={}){var n,i;const{document:p=ew}=t,u=Qb((n=e??(p==null?void 0:p.title))!=null?n:null),f=e&&typeof e=="function";function g(s){if(!("titleTemplate"in t))return s;const h=t.titleTemplate||"%s";return typeof h=="function"?h(s):bo(h).replace(/%s/g,s)}return Ye(u,(s,h)=>{s!==h&&p&&(p.title=g(typeof s=="string"?s:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&p&&!f&&iw((i=p.head)==null?void 0:i.querySelector("title"),()=>{p&&p.title!==u.value&&(u.value=g(p.title))},{childList:!0}),u}var Mn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function cn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Vf(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 p=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(n,i,p.get?p:{enumerable:!0,get:function(){return e[i]}})}),n}var In={exports:{}},St={exports:{}};const Jt=Symbol("Cleanup Function"),jf=Symbol("Timeout Token"),si=Symbol("Signal Reason"),$t=Symbol("Unset"),[to,rw]=function(){var t=new AbortController,n=!!Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t.signal),"reason");try{t.abort()}catch{}return[n,fl(t.signal.reason)]}();let wo=class{constructor(t=new AbortController){this.controller=t,this.signal=t.signal,this.signal[si]=$t;var n,i=(p,u)=>{var f=()=>{if(u&&this.signal){let g=Jo(this.signal);this._trackSignalReason(g),u(g!==$t?g:void 0)}u=null};this.signal.addEventListener("abort",f,!1),n=()=>{this.signal&&(this.signal.removeEventListener("abort",f,!1),this.signal.pr&&(this.signal.pr[Jt]=null)),f=null}};this.signal.pr=new Promise(i),this.signal.pr[Jt]=n,this.signal.pr.catch(n),i=n=null}abort(...t){var n=t.length>0?t[0]:$t;this._trackSignalReason(n),this.controller&&(to&&n!==$t?this.controller.abort(n):this.controller.abort())}discard(){this.signal&&(this.signal.pr&&(this.signal.pr[Jt]&&this.signal.pr[Jt](),this.signal.pr=null),delete this.signal[si],to||(this.signal.reason=null),this.signal=null),this.controller=null}_trackSignalReason(t){this.signal&&t!==$t&&(!to&&!("reason"in this.signal)&&(this.signal.reason=t),this.signal[si]===$t&&(this.signal[si]=t))}};St.exports={CLEANUP_FN:Jt,TIMEOUT_TOKEN:jf,UNSET:$t,getSignalReason:Jo,cancelToken:wo,signalPromise:hl,processTokenOrSignal:Gf,deferred:Kf,isFunction:Yf,isPromise:Xf,invokeAbort:Zf};St.exports.CLEANUP_FN=Jt;St.exports.TIMEOUT_TOKEN=jf;St.exports.UNSET=$t;St.exports.getSignalReason=Jo;St.exports.cancelToken=wo;St.exports.signalPromise=hl;St.exports.processTokenOrSignal=Gf;St.exports.deferred=Kf;St.exports.isFunction=Yf;St.exports.isPromise=Xf;St.exports.invokeAbort=Zf;function Jo(e){return e&&e.aborted?to&&rw?fl(e.reason)?$t:e.reason:si in e?e[si]:$t:$t}function hl(e){if(e.pr)return e.pr;var t,n=new Promise(function(p,u){t=()=>{if(u&&e){let f=Jo(e);u(f!==$t?f:void 0)}u=null},e.addEventListener("abort",t,!1)});return n[Jt]=function(){e&&(e.removeEventListener("abort",t,!1),e=null),n&&(n=n[Jt]=t=null)},n.catch(n[Jt]),n}function Gf(e){e instanceof AbortController&&(e=new wo(e));var t=e&&e instanceof wo?e.signal:e,n=hl(t);return{tokenOrSignal:e,signal:t,signalPr:n}}function Kf(){var e,t=new Promise(n=>e=n);return{pr:t,resolve:e}}function Yf(e){return typeof e=="function"}function Xf(e){return e&&typeof e=="object"&&typeof e.then=="function"}function fl(e){return typeof e=="object"&&e instanceof Error&&e.name=="AbortError"}function Zf(e,t){!fl(t)&&t!==$t?e.abort(t):e.abort()}var ow=St.exports,{CLEANUP_FN:eu,TIMEOUT_TOKEN:Qf,UNSET:mr,getSignalReason:Jf,cancelToken:Li,signalPromise:sw,processTokenOrSignal:qf,isFunction:aw,invokeAbort:qo}=ow;In.exports=Object.assign(cw,{cancelToken:Li,delay:dl,timeout:ed,signalRace:rd,signalAll:od,tokenCycle:sd});var lw=In.exports.cancelToken=Li;In.exports.delay=dl;In.exports.timeout=ed;In.exports.signalRace=rd;In.exports.signalAll=od;In.exports.tokenCycle=sd;function cw(e){return function(n,...i){var p,u;if({tokenOrSignal:n,signal:p,signalPr:u}=qf(n),p.aborted)return u;var f=u.catch(function(r){var l=Jf(p);l=l!==mr?l:r;try{var c=g.return();throw c.value!==void 0?c.value:l!==mr?l:void 0}finally{g=s=f=h=null}}),{it:g,result:s}=uw.call(this,e,p,...i),h=Promise.race([s,f]);if(n!==p&&n[Qf]){let o=function(l){qo(n,l),aw(n.discard)&&n.discard(),n=o=null};h.then(o,o)}else h.catch(()=>{}),n=null;return i=null,h}}function dl(e,t){typeof e=="number"&&typeof t!="number"&&([t,e]=[e,t]);var n,i;return e&&({tokenOrSignal:e,signal:n,signalPr:i}=qf(e)),n&&n.aborted?i:new Promise(function(u,f){n&&(i.catch(function(){if(f&&n&&g){let h=Jf(n);clearTimeout(g),f(h!==mr?h:`delay (${t}) interrupted`),u=f=g=n=null}}),i=null);var g=setTimeout(function(){u(`delayed: ${t}`),u=f=g=n=null},t)})}function ed(e,t="Timeout"){e=Number(e)||0;var n=new Li;return dl(n.signal,e).then(()=>i(t),i),Object.defineProperty(n,Qf,{value:!0,writable:!1,enumerable:!1,configurable:!1}),n;function i(...p){qo(n,p.length>0?p[0]:mr),n.discard(),n=null}}function td(e){return e.reduce(function(n,i){var p=sw(i);return n[0].push(p),i.pr||n[1].push(p),n},[[],[]])}function nd(e,t,n){e.then(function(p){qo(t,p),t.discard(),t=null}).then(function(){for(let p of n)p[eu]&&p[eu]();n=null})}function id(e){return e.catch(t=>t)}function rd(e){var t=new Li,[n,i]=td(e);return nd(id(Promise.race(n)),t,i),t.signal}function od(e){var t=new Li,[n,i]=td(e);return nd(Promise.all(n.map(id)),t,i),t.signal}function sd(){var e;return function(...n){return e&&(qo(e,n.length>0?n[0]:mr),e.discard()),e=new Li}}function uw(e,...t){var n=e.apply(this,t);return e=t=null,{it:n,result:function i(p){try{var u=n.next(p);p=null}catch(f){return Promise.reject(f)}return function f(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(f)}),s.catch(function(){n=null})),g=null,s}(u)}()}}var hw=In.exports;const fw=cn(hw);function ua(){ua=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,i=typeof Symbol=="function"?Symbol:{},p=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",f=i.toStringTag||"@@toStringTag";function g(_,v,M){return Object.defineProperty(_,v,{value:M,enumerable:!0,configurable:!0,writable:!0}),_[v]}try{g({},"")}catch{g=function(v,M,A){return v[M]=A}}function s(_,v,M,A){var w=Object.create((v&&v.prototype instanceof r?v:r).prototype),L=new R(A||[]);return w._invoke=function(T,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 G=I.delegate;if(G){var U=S(G,I);if(U){if(U===o)continue;return U}}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 H=h(T,O,I);if(H.type==="normal"){if(F=I.done?"completed":"suspendedYield",H.arg===o)continue;return{value:H.arg,done:I.done}}H.type==="throw"&&(F="completed",I.method="throw",I.arg=H.arg)}}}(_,M,L),w}function h(_,v,M){try{return{type:"normal",arg:_.call(v,M)}}catch(A){return{type:"throw",arg:A}}}e.wrap=s;var o={};function r(){}function l(){}function c(){}var a={};g(a,p,function(){return this});var d=Object.getPrototypeOf,m=d&&d(d(x([])));m&&m!==t&&n.call(m,p)&&(a=m);var y=c.prototype=r.prototype=Object.create(a);function b(_){["next","throw","return"].forEach(function(v){g(_,v,function(M){return this._invoke(v,M)})})}function E(_,v){function M(w,L,T,O){var I=h(_[w],_,L);if(I.type!=="throw"){var F=I.arg,D=F.value;return D&&typeof D=="object"&&n.call(D,"__await")?v.resolve(D.__await).then(function(W){M("next",W,T,O)},function(W){M("throw",W,T,O)}):v.resolve(D).then(function(W){F.value=W,T(F)},function(W){return M("throw",W,T,O)})}O(I.arg)}var A;this._invoke=function(w,L){function T(){return new v(function(O,I){M(w,L,O,I)})}return A=A?A.then(T,T):T()}}function S(_,v){var M=_.iterator[v.method];if(M===void 0){if(v.delegate=null,v.method==="throw"){if(_.iterator.return&&(v.method="return",v.arg=void 0,S(_,v),v.method==="throw"))return o;v.method="throw",v.arg=new TypeError("The iterator does not provide a 'throw' method")}return o}var A=h(M,_.iterator,v.arg);if(A.type==="throw")return v.method="throw",v.arg=A.arg,v.delegate=null,o;var w=A.arg;return w?w.done?(v[_.resultName]=w.value,v.next=_.nextLoc,v.method!=="return"&&(v.method="next",v.arg=void 0),v.delegate=null,o):w:(v.method="throw",v.arg=new TypeError("iterator result is not an object"),v.delegate=null,o)}function C(_){var v={tryLoc:_[0]};1 in _&&(v.catchLoc=_[1]),2 in _&&(v.finallyLoc=_[2],v.afterLoc=_[3]),this.tryEntries.push(v)}function $(_){var v=_.completion||{};v.type="normal",delete v.arg,_.completion=v}function R(_){this.tryEntries=[{tryLoc:"root"}],_.forEach(C,this),this.reset(!0)}function x(_){if(_){var v=_[p];if(v)return v.call(_);if(typeof _.next=="function")return _;if(!isNaN(_.length)){var M=-1,A=function w(){for(;++M<_.length;)if(n.call(_,M))return w.value=_[M],w.done=!1,w;return w.value=void 0,w.done=!0,w};return A.next=A}}return{next:k}}function k(){return{value:void 0,done:!0}}return l.prototype=c,g(y,"constructor",c),g(c,"constructor",l),l.displayName=g(c,f,"GeneratorFunction"),e.isGeneratorFunction=function(_){var v=typeof _=="function"&&_.constructor;return!!v&&(v===l||(v.displayName||v.name)==="GeneratorFunction")},e.mark=function(_){return Object.setPrototypeOf?Object.setPrototypeOf(_,c):(_.__proto__=c,g(_,f,"GeneratorFunction")),_.prototype=Object.create(y),_},e.awrap=function(_){return{__await:_}},b(E.prototype),g(E.prototype,u,function(){return this}),e.AsyncIterator=E,e.async=function(_,v,M,A,w){w===void 0&&(w=Promise);var L=new E(s(_,v,M,A),w);return e.isGeneratorFunction(v)?L:L.next().then(function(T){return T.done?T.value:L.next()})},b(y),g(y,f,"Generator"),g(y,p,function(){return this}),g(y,"toString",function(){return"[object Generator]"}),e.keys=function(_){var v=[];for(var M in _)v.push(M);return v.reverse(),function A(){for(;v.length;){var w=v.pop();if(w in _)return A.value=w,A.done=!1,A}return A.done=!0,A}},e.values=x,R.prototype={constructor:R,reset:function(_){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($),!_)for(var v in this)v.charAt(0)==="t"&&n.call(this,v)&&!isNaN(+v.slice(1))&&(this[v]=void 0)},stop:function(){this.done=!0;var _=this.tryEntries[0].completion;if(_.type==="throw")throw _.arg;return this.rval},dispatchException:function(_){if(this.done)throw _;var v=this;function M(I,F){return L.type="throw",L.arg=_,v.next=I,F&&(v.method="next",v.arg=void 0),!!F}for(var A=this.tryEntries.length-1;A>=0;--A){var w=this.tryEntries[A],L=w.completion;if(w.tryLoc==="root")return M("end");if(w.tryLoc<=this.prev){var T=n.call(w,"catchLoc"),O=n.call(w,"finallyLoc");if(T&&O){if(this.prev<w.catchLoc)return M(w.catchLoc,!0);if(this.prev<w.finallyLoc)return M(w.finallyLoc)}else if(T){if(this.prev<w.catchLoc)return M(w.catchLoc,!0)}else{if(!O)throw new Error("try statement without catch or finally");if(this.prev<w.finallyLoc)return M(w.finallyLoc)}}}},abrupt:function(_,v){for(var M=this.tryEntries.length-1;M>=0;--M){var A=this.tryEntries[M];if(A.tryLoc<=this.prev&&n.call(A,"finallyLoc")&&this.prev<A.finallyLoc){var w=A;break}}w&&(_==="break"||_==="continue")&&w.tryLoc<=v&&v<=w.finallyLoc&&(w=null);var L=w?w.completion:{};return L.type=_,L.arg=v,w?(this.method="next",this.next=w.finallyLoc,o):this.complete(L)},complete:function(_,v){if(_.type==="throw")throw _.arg;return _.type==="break"||_.type==="continue"?this.next=_.arg:_.type==="return"?(this.rval=this.arg=_.arg,this.method="return",this.next="end"):_.type==="normal"&&v&&(this.next=v),o},finish:function(_){for(var v=this.tryEntries.length-1;v>=0;--v){var M=this.tryEntries[v];if(M.finallyLoc===_)return this.complete(M.completion,M.afterLoc),$(M),o}},catch:function(_){for(var v=this.tryEntries.length-1;v>=0;--v){var M=this.tryEntries[v];if(M.tryLoc===_){var A=M.completion;if(A.type==="throw"){var w=A.arg;$(M)}return w}}throw new Error("illegal catch attempt")},delegateYield:function(_,v,M){return this.delegate={iterator:x(_),resultName:v,nextLoc:M},this.method==="next"&&(this.arg=void 0),o}},e}var dw=function(e){return e._runningInstances.length>=e._maxConcurrency},pw=function(e){var t=e._activeInstances[0];t&&t.cancel()},gw=function(e){e._enqueuedInstances.forEach(function(t){t.isEnqueued=!1,t.isDropped=!0})};function Ni(e,t){return t?function(n,i,p){return Ee(function(){return n().filter(function(u){return u[i]})})}(function(){return e()._instances},t):Ee(function(){return[]})}function mw(e){return Ee(function(){return e().length})}function tu(e){return Ee(function(){var t=e();return t[t.length-1]})}function vw(e){return Ee(function(){return e()[0]})}function ad(e){return ki(e)}function ut(e){return bw(ua().mark(function t(n){var i=arguments;return ua().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.abrupt("return",e.apply(void 0,[n].concat([].slice.call(i,1))));case 1:case"end":return p.stop()}},t)}))}function yw(e,t,n){var i,p,u={id:n.id,isDropped:!1,isEnqueued:!1,hasStarted:!1,isRunning:!1,isFinished:!1,isCanceling:!1,isCanceled:Ee(function(){return f.isCanceling&&f.isFinished}),isActive:Ee(function(){return f.isRunning&&!f.isCanceling}),isSuccessful:!1,isNotDropped:Ee(function(){return!f.isDropped}),isError:Ee(function(){return!!f.error}),status:Ee(function(){var s=[[f.isRunning,"running"],[f.isEnqueued,"enqueued"],[f.isCanceled,"canceled"],[f.isCanceling,"canceling"],[f.isDropped,"dropped"],[f.isError,"error"],[f.isSuccessful,"success"]].find(function(h){return h[0]});return s&&s[1]}),error:null,value:null,cancel:function(s){if((s===void 0?{force:!1}:s).force||(f.isCanceling=!0,f.isEnqueued&&(f.isFinished=!0),f.isEnqueued=!1),f.token&&f._canAbort){f.token.abort("cancel");try{f.token.discard()}catch{}f.token=void 0,f._canAbort=!1}},canceledOn:function(s){return s.pr.catch(function(h){f.cancel()}),f},_run:function(){(function(s,h,o,r){var l=new lw,c=fw(h,l);function a(){s.isRunning=!1,s.isFinished=!0}s.token=l,s.hasStarted=!0,s.isRunning=!0,s.isEnqueued=!1,c.call.apply(c,[s,l].concat(o)).then(function(d){s.value=d,s.isSuccessful=!0,a(),s._deferredObject.resolve(d),s._canAbort=!1,r.onFinish(s)}).catch(function(d){d!=="cancel"&&(s.error=d),a(),s._shouldThrow&&s._deferredObject.reject(d),r.onFinish(s)})})(f,e,t,n)},_handled:!0,_deferredObject:(i={},p=new Promise(function(s,h){i.resolve=s,i.reject=h}),i.promise=p,i),_shouldThrow:!1,_canAbort:!0,then:function(s,h){return f._shouldThrow=!0,f._deferredObject.promise.then(s,h)},catch:function(s,h){return h===void 0&&(h=!0),f._shouldThrow=h,f._deferredObject.promise.catch(s)},finally:function(s){return f._shouldThrow=!0,f._deferredObject.promise.finally(s)}},f=ad(u),g=n.modifiers;return g.drop?f.isDropped=!0:g.enqueue?f.isEnqueued=!0:f._run(),f}function bw(e,t){t===void 0&&(t={cancelOnUnmount:!0});var n=Pt(),i=Qu(),p={_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(f){return f.isRunning})}),isError:Ee(function(){return!(!u.last||!u.last.isError)}),_instances:[],_successfulInstances:Ni(function(){return u},"isSuccessful"),_runningInstances:Ni(function(){return u},"isRunning"),_enqueuedInstances:Ni(function(){return u},"isEnqueued"),_notDroppedInstances:Ni(function(){return u},"isNotDropped"),_activeInstances:Ni(function(){return u},"isActive"),performCount:mw(function(){return u._instances}),last:tu(function(){return u._notDroppedInstances}),lastSuccessful:tu(function(){return u._successfulInstances}),firstEnqueued:vw(function(){return u._enqueuedInstances}),cancelAll:function(f){var g=(f===void 0?{force:!1}:f).force;u._instances.forEach(function(s){try{(g||!s.isDropped&&!s.isFinished)&&s.cancel({force:g})}catch(h){if(h!=="cancel")throw h}})},perform:function(){var f=arguments,g={enqueue:!1,drop:!1};u._hasConcurrency&&dw(u)&&(u._isDropping&&(g.drop=!0),u._isRestartable&&pw(u),u._isKeepingLatest&&gw(u),(u._isEnqueuing||u._isKeepingLatest)&&(g.enqueue=!0));var s=function(){return ww(u)},h=function(){return yw(e,[].slice.call(f),{modifiers:g,onFinish:s,scope:i,id:u._instances.length+1})},o=i.active?i.run(h):h();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(f){return u._maxConcurrency=f,u}},u=ad(p);return n&&t.cancelOnUnmount&&kr(function(){u._instances&&u.destroy()}),u}function ww(e){if(e._isEnqueuing||e._isKeepingLatest){var t=e.firstEnqueued;t&&t._run()}}function ld(e,t){return function(){return e.apply(t,arguments)}}const{toString:$w}=Object.prototype,{getPrototypeOf:pl}=Object,es=(e=>t=>{const n=$w.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Gt=e=>(e=e.toLowerCase(),t=>es(t)===e),ts=e=>t=>typeof t===e,{isArray:Ti}=Array,vr=ts("undefined");function _w(e){return e!==null&&!vr(e)&&e.constructor!==null&&!vr(e.constructor)&&Et(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const cd=Gt("ArrayBuffer");function Cw(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&cd(e.buffer),t}const Sw=ts("string"),Et=ts("function"),ud=ts("number"),ns=e=>e!==null&&typeof e=="object",Aw=e=>e===!0||e===!1,no=e=>{if(es(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)},xw=Gt("Date"),kw=Gt("File"),Ew=Gt("Blob"),Rw=Gt("FileList"),Lw=e=>ns(e)&&Et(e.pipe),Tw=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Et(e.append)&&((t=es(e))==="formdata"||t==="object"&&Et(e.toString)&&e.toString()==="[object FormData]"))},Mw=Gt("URLSearchParams"),Iw=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Er(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let i,p;if(typeof e!="object"&&(e=[e]),Ti(e))for(i=0,p=e.length;i<p;i++)t.call(null,e[i],i,e);else{const u=n?Object.getOwnPropertyNames(e):Object.keys(e),f=u.length;let g;for(i=0;i<f;i++)g=u[i],t.call(null,e[g],g,e)}}function hd(e,t){t=t.toLowerCase();const n=Object.keys(e);let i=n.length,p;for(;i-- >0;)if(p=n[i],t===p.toLowerCase())return p;return null}const fd=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),dd=e=>!vr(e)&&e!==fd;function ha(){const{caseless:e}=dd(this)&&this||{},t={},n=(i,p)=>{const u=e&&hd(t,p)||p;no(t[u])&&no(i)?t[u]=ha(t[u],i):no(i)?t[u]=ha({},i):Ti(i)?t[u]=i.slice():t[u]=i};for(let i=0,p=arguments.length;i<p;i++)arguments[i]&&Er(arguments[i],n);return t}const Ow=(e,t,n,{allOwnKeys:i}={})=>(Er(t,(p,u)=>{n&&Et(p)?e[u]=ld(p,n):e[u]=p},{allOwnKeys:i}),e),Fw=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Nw=(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)},Pw=(e,t,n,i)=>{let p,u,f;const g={};if(t=t||{},e==null)return t;do{for(p=Object.getOwnPropertyNames(e),u=p.length;u-- >0;)f=p[u],(!i||i(f,e,t))&&!g[f]&&(t[f]=e[f],g[f]=!0);e=n!==!1&&pl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Dw=(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},Bw=e=>{if(!e)return null;if(Ti(e))return e;let t=e.length;if(!ud(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Ww=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&pl(Uint8Array)),Hw=(e,t)=>{const i=(e&&e[Symbol.iterator]).call(e);let p;for(;(p=i.next())&&!p.done;){const u=p.value;t.call(e,u[0],u[1])}},Uw=(e,t)=>{let n;const i=[];for(;(n=e.exec(t))!==null;)i.push(n);return i},zw=Gt("HTMLFormElement"),Vw=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,p){return i.toUpperCase()+p}),nu=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),jw=Gt("RegExp"),pd=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};Er(n,(p,u)=>{let f;(f=t(p,u,e))!==!1&&(i[u]=f||p)}),Object.defineProperties(e,i)},Gw=e=>{pd(e,(t,n)=>{if(Et(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=e[n];if(Et(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+"'")})}})},Kw=(e,t)=>{const n={},i=p=>{p.forEach(u=>{n[u]=!0})};return Ti(e)?i(e):i(String(e).split(t)),n},Yw=()=>{},Xw=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Ss="abcdefghijklmnopqrstuvwxyz",iu="0123456789",gd={DIGIT:iu,ALPHA:Ss,ALPHA_DIGIT:Ss+Ss.toUpperCase()+iu},Zw=(e=16,t=gd.ALPHA_DIGIT)=>{let n="";const{length:i}=t;for(;e--;)n+=t[Math.random()*i|0];return n};function Qw(e){return!!(e&&Et(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Jw=e=>{const t=new Array(10),n=(i,p)=>{if(ns(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[p]=i;const u=Ti(i)?[]:{};return Er(i,(f,g)=>{const s=n(f,p+1);!vr(s)&&(u[g]=s)}),t[p]=void 0,u}}return i};return n(e,0)},qw=Gt("AsyncFunction"),e1=e=>e&&(ns(e)||Et(e))&&Et(e.then)&&Et(e.catch),ne={isArray:Ti,isArrayBuffer:cd,isBuffer:_w,isFormData:Tw,isArrayBufferView:Cw,isString:Sw,isNumber:ud,isBoolean:Aw,isObject:ns,isPlainObject:no,isUndefined:vr,isDate:xw,isFile:kw,isBlob:Ew,isRegExp:jw,isFunction:Et,isStream:Lw,isURLSearchParams:Mw,isTypedArray:Ww,isFileList:Rw,forEach:Er,merge:ha,extend:Ow,trim:Iw,stripBOM:Fw,inherits:Nw,toFlatObject:Pw,kindOf:es,kindOfTest:Gt,endsWith:Dw,toArray:Bw,forEachEntry:Hw,matchAll:Uw,isHTMLForm:zw,hasOwnProperty:nu,hasOwnProp:nu,reduceDescriptors:pd,freezeMethods:Gw,toObjectSet:Kw,toCamelCase:Vw,noop:Yw,toFiniteNumber:Xw,findKey:hd,global:fd,isContextDefined:dd,ALPHABET:gd,generateString:Zw,isSpecCompliantForm:Qw,toJSONObject:Jw,isAsyncFn:qw,isThenable:e1};function Oe(e,t,n,i,p){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),p&&(this.response=p)}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 md=Oe.prototype,vd={};["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=>{vd[e]={value:e}});Object.defineProperties(Oe,vd);Object.defineProperty(md,"isAxiosError",{value:!0});Oe.from=(e,t,n,i,p,u)=>{const f=Object.create(md);return ne.toFlatObject(e,f,function(s){return s!==Error.prototype},g=>g!=="isAxiosError"),Oe.call(f,e.message,t,n,i,p),f.cause=e,f.name=e.name,u&&Object.assign(f,u),f};const t1=null;function fa(e){return ne.isPlainObject(e)||ne.isArray(e)}function yd(e){return ne.endsWith(e,"[]")?e.slice(0,-2):e}function ru(e,t,n){return e?e.concat(t).map(function(p,u){return p=yd(p),!n&&u?"["+p+"]":p}).join(n?".":""):t}function n1(e){return ne.isArray(e)&&!e.some(fa)}const i1=ne.toFlatObject(ne,{},null,function(t){return/^is[A-Z]/.test(t)});function is(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(d,m){return!ne.isUndefined(m[d])});const i=n.metaTokens,p=n.visitor||o,u=n.dots,f=n.indexes,s=(n.Blob||typeof Blob<"u"&&Blob)&&ne.isSpecCompliantForm(t);if(!ne.isFunction(p))throw new TypeError("visitor must be a function");function h(a){if(a===null)return"";if(ne.isDate(a))return a.toISOString();if(!s&&ne.isBlob(a))throw new Oe("Blob is not supported. Use a Buffer instead.");return ne.isArrayBuffer(a)||ne.isTypedArray(a)?s&&typeof Blob=="function"?new Blob([a]):Buffer.from(a):a}function o(a,d,m){let y=a;if(a&&!m&&typeof a=="object"){if(ne.endsWith(d,"{}"))d=i?d:d.slice(0,-2),a=JSON.stringify(a);else if(ne.isArray(a)&&n1(a)||(ne.isFileList(a)||ne.endsWith(d,"[]"))&&(y=ne.toArray(a)))return d=yd(d),y.forEach(function(E,S){!(ne.isUndefined(E)||E===null)&&t.append(f===!0?ru([d],S,u):f===null?d:d+"[]",h(E))}),!1}return fa(a)?!0:(t.append(ru(m,d,u),h(a)),!1)}const r=[],l=Object.assign(i1,{defaultVisitor:o,convertValue:h,isVisitable:fa});function c(a,d){if(!ne.isUndefined(a)){if(r.indexOf(a)!==-1)throw Error("Circular reference detected in "+d.join("."));r.push(a),ne.forEach(a,function(y,b){(!(ne.isUndefined(y)||y===null)&&p.call(t,y,ne.isString(b)?b.trim():b,d,l))===!0&&c(y,d?d.concat(b):[b])}),r.pop()}}if(!ne.isObject(e))throw new TypeError("data must be an object");return c(e),t}function ou(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&&is(e,this,t)}const bd=gl.prototype;bd.append=function(t,n){this._pairs.push([t,n])};bd.toString=function(t){const n=t?function(i){return t.call(this,i,ou)}:ou;return this._pairs.map(function(p){return n(p[0])+"="+n(p[1])},"").join("&")};function r1(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function wd(e,t,n){if(!t)return e;const i=n&&n.encode||r1,p=n&&n.serialize;let u;if(p?u=p(t,n):u=ne.isURLSearchParams(t)?t.toString():new gl(t,n).toString(i),u){const f=e.indexOf("#");f!==-1&&(e=e.slice(0,f)),e+=(e.indexOf("?")===-1?"?":"&")+u}return e}class o1{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 su=o1,$d={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},s1=typeof URLSearchParams<"u"?URLSearchParams:gl,a1=typeof FormData<"u"?FormData:null,l1=typeof Blob<"u"?Blob:null,c1=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),u1=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Ht={isBrowser:!0,classes:{URLSearchParams:s1,FormData:a1,Blob:l1},isStandardBrowserEnv:c1,isStandardBrowserWebWorkerEnv:u1,protocols:["http","https","file","blob","url","data"]};function h1(e,t){return is(e,new Ht.classes.URLSearchParams,Object.assign({visitor:function(n,i,p,u){return Ht.isNode&&ne.isBuffer(n)?(this.append(i,n.toString("base64")),!1):u.defaultVisitor.apply(this,arguments)}},t))}function f1(e){return ne.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function d1(e){const t={},n=Object.keys(e);let i;const p=n.length;let u;for(i=0;i<p;i++)u=n[i],t[u]=e[u];return t}function _d(e){function t(n,i,p,u){let f=n[u++];const g=Number.isFinite(+f),s=u>=n.length;return f=!f&&ne.isArray(p)?p.length:f,s?(ne.hasOwnProp(p,f)?p[f]=[p[f],i]:p[f]=i,!g):((!p[f]||!ne.isObject(p[f]))&&(p[f]=[]),t(n,i,p[f],u)&&ne.isArray(p[f])&&(p[f]=d1(p[f])),!g)}if(ne.isFormData(e)&&ne.isFunction(e.entries)){const n={};return ne.forEachEntry(e,(i,p)=>{t(f1(i),p,n,0)}),n}return null}function p1(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:$d,adapter:["xhr","http"],transformRequest:[function(t,n){const i=n.getContentType()||"",p=i.indexOf("application/json")>-1,u=ne.isObject(t);if(u&&ne.isHTMLForm(t)&&(t=new FormData(t)),ne.isFormData(t))return p&&p?JSON.stringify(_d(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 h1(t,this.formSerializer).toString();if((g=ne.isFileList(t))||i.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return is(g?{"files[]":t}:t,s&&new s,this.formSerializer)}}return u||p?(n.setContentType("application/json",!1),p1(t)):t}],transformResponse:[function(t){const n=this.transitional||ml.transitional,i=n&&n.forcedJSONParsing,p=this.responseType==="json";if(t&&ne.isString(t)&&(i&&!this.responseType||p)){const f=!(n&&n.silentJSONParsing)&&p;try{return JSON.parse(t)}catch(g){if(f)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:Ht.classes.FormData,Blob:Ht.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,g1=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"]),m1=e=>{const t={};let n,i,p;return e&&e.split(`
766
+ `).forEach(function(f){p=f.indexOf(":"),n=f.substring(0,p).trim().toLowerCase(),i=f.substring(p+1).trim(),!(!n||t[n]&&g1[n])&&(n==="set-cookie"?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t},au=Symbol("internals");function Pi(e){return e&&String(e).trim().toLowerCase()}function io(e){return e===!1||e==null?e:ne.isArray(e)?e.map(io):String(e)}function v1(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 y1=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function As(e,t,n,i,p){if(ne.isFunction(i))return i.call(this,t,n);if(p&&(t=n),!!ne.isString(t)){if(ne.isString(i))return t.indexOf(i)!==-1;if(ne.isRegExp(i))return i.test(t)}}function b1(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,i)=>n.toUpperCase()+i)}function w1(e,t){const n=ne.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+n,{value:function(p,u,f){return this[i].call(this,t,p,u,f)},configurable:!0})})}class rs{constructor(t){t&&this.set(t)}set(t,n,i){const p=this;function u(g,s,h){const o=Pi(s);if(!o)throw new Error("header name must be a non-empty string");const r=ne.findKey(p,o);(!r||p[r]===void 0||h===!0||h===void 0&&p[r]!==!1)&&(p[r||s]=io(g))}const f=(g,s)=>ne.forEach(g,(h,o)=>u(h,o,s));return ne.isPlainObject(t)||t instanceof this.constructor?f(t,n):ne.isString(t)&&(t=t.trim())&&!y1(t)?f(m1(t),n):t!=null&&u(n,t,i),this}get(t,n){if(t=Pi(t),t){const i=ne.findKey(this,t);if(i){const p=this[i];if(!n)return p;if(n===!0)return v1(p);if(ne.isFunction(n))return n.call(this,p,i);if(ne.isRegExp(n))return n.exec(p);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Pi(t),t){const i=ne.findKey(this,t);return!!(i&&this[i]!==void 0&&(!n||As(this,this[i],i,n)))}return!1}delete(t,n){const i=this;let p=!1;function u(f){if(f=Pi(f),f){const g=ne.findKey(i,f);g&&(!n||As(i,i[g],g,n))&&(delete i[g],p=!0)}}return ne.isArray(t)?t.forEach(u):u(t),p}clear(t){const n=Object.keys(this);let i=n.length,p=!1;for(;i--;){const u=n[i];(!t||As(this,this[u],u,t,!0))&&(delete this[u],p=!0)}return p}normalize(t){const n=this,i={};return ne.forEach(this,(p,u)=>{const f=ne.findKey(i,u);if(f){n[f]=io(p),delete n[u];return}const g=t?b1(u):String(u).trim();g!==u&&delete n[u],n[g]=io(p),i[g]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ne.forEach(this,(i,p)=>{i!=null&&i!==!1&&(n[p]=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(`
767
+ `)}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(p=>i.set(p)),i}static accessor(t){const i=(this[au]=this[au]={accessors:{}}).accessors,p=this.prototype;function u(f){const g=Pi(f);i[g]||(w1(p,f),i[g]=!0)}return ne.isArray(t)?t.forEach(u):u(t),this}}rs.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ne.reduceDescriptors(rs.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(i){this[n]=i}}});ne.freezeMethods(rs);const tn=rs;function xs(e,t){const n=this||vl,i=t||n,p=tn.from(i.headers);let u=i.data;return ne.forEach(e,function(g){u=g.call(n,u,p.normalize(),t?t.status:void 0)}),p.normalize(),u}function Cd(e){return!!(e&&e.__CANCEL__)}function Rr(e,t,n){Oe.call(this,e??"canceled",Oe.ERR_CANCELED,t,n),this.name="CanceledError"}ne.inherits(Rr,Oe,{__CANCEL__:!0});function $1(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 _1=Ht.isStandardBrowserEnv?function(){return{write:function(n,i,p,u,f,g){const s=[];s.push(n+"="+encodeURIComponent(i)),ne.isNumber(p)&&s.push("expires="+new Date(p).toGMTString()),ne.isString(u)&&s.push("path="+u),ne.isString(f)&&s.push("domain="+f),g===!0&&s.push("secure"),document.cookie=s.join("; ")},read:function(n){const i=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function C1(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function S1(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Sd(e,t){return e&&!C1(t)?S1(e,t):t}const A1=Ht.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let i;function p(u){let f=u;return t&&(n.setAttribute("href",f),f=n.href),n.setAttribute("href",f),{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=p(window.location.href),function(f){const g=ne.isString(f)?p(f):f;return g.protocol===i.protocol&&g.host===i.host}}():function(){return function(){return!0}}();function x1(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function k1(e,t){e=e||10;const n=new Array(e),i=new Array(e);let p=0,u=0,f;return t=t!==void 0?t:1e3,function(s){const h=Date.now(),o=i[u];f||(f=h),n[p]=s,i[p]=h;let r=u,l=0;for(;r!==p;)l+=n[r++],r=r%e;if(p=(p+1)%e,p===u&&(u=(u+1)%e),h-f<t)return;const c=o&&h-o;return c?Math.round(l*1e3/c):void 0}}function lu(e,t){let n=0;const i=k1(50,250);return p=>{const u=p.loaded,f=p.lengthComputable?p.total:void 0,g=u-n,s=i(g),h=u<=f;n=u;const o={loaded:u,total:f,progress:f?u/f:void 0,bytes:g,rate:s||void 0,estimated:s&&f&&h?(f-u)/s:void 0,event:p};o[t?"download":"upload"]=!0,e(o)}}const E1=typeof XMLHttpRequest<"u",R1=E1&&function(e){return new Promise(function(n,i){let p=e.data;const u=tn.from(e.headers).normalize(),f=e.responseType;let g;function s(){e.cancelToken&&e.cancelToken.unsubscribe(g),e.signal&&e.signal.removeEventListener("abort",g)}let h;ne.isFormData(p)&&(Ht.isStandardBrowserEnv||Ht.isStandardBrowserWebWorkerEnv?u.setContentType(!1):u.getContentType(/^\s*multipart\/form-data/)?ne.isString(h=u.getContentType())&&u.setContentType(h.replace(/^\s*(multipart\/form-data);+/,"$1")):u.setContentType("multipart/form-data"));let o=new XMLHttpRequest;if(e.auth){const a=e.auth.username||"",d=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";u.set("Authorization","Basic "+btoa(a+":"+d))}const r=Sd(e.baseURL,e.url);o.open(e.method.toUpperCase(),wd(r,e.params,e.paramsSerializer),!0),o.timeout=e.timeout;function l(){if(!o)return;const a=tn.from("getAllResponseHeaders"in o&&o.getAllResponseHeaders()),m={data:!f||f==="text"||f==="json"?o.responseText:o.response,status:o.status,statusText:o.statusText,headers:a,config:e,request:o};$1(function(b){n(b),s()},function(b){i(b),s()},m),o=null}if("onloadend"in o?o.onloadend=l:o.onreadystatechange=function(){!o||o.readyState!==4||o.status===0&&!(o.responseURL&&o.responseURL.indexOf("file:")===0)||setTimeout(l)},o.onabort=function(){o&&(i(new Oe("Request aborted",Oe.ECONNABORTED,e,o)),o=null)},o.onerror=function(){i(new Oe("Network Error",Oe.ERR_NETWORK,e,o)),o=null},o.ontimeout=function(){let d=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const m=e.transitional||$d;e.timeoutErrorMessage&&(d=e.timeoutErrorMessage),i(new Oe(d,m.clarifyTimeoutError?Oe.ETIMEDOUT:Oe.ECONNABORTED,e,o)),o=null},Ht.isStandardBrowserEnv){const a=(e.withCredentials||A1(r))&&e.xsrfCookieName&&_1.read(e.xsrfCookieName);a&&u.set(e.xsrfHeaderName,a)}p===void 0&&u.setContentType(null),"setRequestHeader"in o&&ne.forEach(u.toJSON(),function(d,m){o.setRequestHeader(m,d)}),ne.isUndefined(e.withCredentials)||(o.withCredentials=!!e.withCredentials),f&&f!=="json"&&(o.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&o.addEventListener("progress",lu(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&o.upload&&o.upload.addEventListener("progress",lu(e.onUploadProgress)),(e.cancelToken||e.signal)&&(g=a=>{o&&(i(!a||a.type?new Rr(null,e,o):a),o.abort(),o=null)},e.cancelToken&&e.cancelToken.subscribe(g),e.signal&&(e.signal.aborted?g():e.signal.addEventListener("abort",g)));const c=x1(r);if(c&&Ht.protocols.indexOf(c)===-1){i(new Oe("Unsupported protocol "+c+":",Oe.ERR_BAD_REQUEST,e));return}o.send(p||null)})},da={http:t1,xhr:R1};ne.forEach(da,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const cu=e=>`- ${e}`,L1=e=>ne.isFunction(e)||e===null||e===!1,Ad={getAdapter:e=>{e=ne.isArray(e)?e:[e];const{length:t}=e;let n,i;const p={};for(let u=0;u<t;u++){n=e[u];let f;if(i=n,!L1(n)&&(i=da[(f=String(n)).toLowerCase()],i===void 0))throw new Oe(`Unknown adapter '${f}'`);if(i)break;p[f||"#"+u]=i}if(!i){const u=Object.entries(p).map(([g,s])=>`adapter ${g} `+(s===!1?"is not supported by the environment":"is not available in the build"));let f=t?u.length>1?`since :
768
+ `+u.map(cu).join(`
769
+ `):" "+cu(u[0]):"as no adapter specified";throw new Oe("There is no suitable adapter to dispatch the request "+f,"ERR_NOT_SUPPORT")}return i},adapters:da};function ks(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Rr(null,e)}function uu(e){return ks(e),e.headers=tn.from(e.headers),e.data=xs.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ad.getAdapter(e.adapter||vl.adapter)(e).then(function(i){return ks(e),i.data=xs.call(e,e.transformResponse,i),i.headers=tn.from(i.headers),i},function(i){return Cd(i)||(ks(e),i&&i.response&&(i.response.data=xs.call(e,e.transformResponse,i.response),i.response.headers=tn.from(i.response.headers))),Promise.reject(i)})}const hu=e=>e instanceof tn?e.toJSON():e;function wi(e,t){t=t||{};const n={};function i(h,o,r){return ne.isPlainObject(h)&&ne.isPlainObject(o)?ne.merge.call({caseless:r},h,o):ne.isPlainObject(o)?ne.merge({},o):ne.isArray(o)?o.slice():o}function p(h,o,r){if(ne.isUndefined(o)){if(!ne.isUndefined(h))return i(void 0,h,r)}else return i(h,o,r)}function u(h,o){if(!ne.isUndefined(o))return i(void 0,o)}function f(h,o){if(ne.isUndefined(o)){if(!ne.isUndefined(h))return i(void 0,h)}else return i(void 0,o)}function g(h,o,r){if(r in t)return i(h,o);if(r in e)return i(void 0,h)}const s={url:u,method:u,data:u,baseURL:f,transformRequest:f,transformResponse:f,paramsSerializer:f,timeout:f,timeoutMessage:f,withCredentials:f,adapter:f,responseType:f,xsrfCookieName:f,xsrfHeaderName:f,onUploadProgress:f,onDownloadProgress:f,decompress:f,maxContentLength:f,maxBodyLength:f,beforeRedirect:f,transport:f,httpAgent:f,httpsAgent:f,cancelToken:f,socketPath:f,responseEncoding:f,validateStatus:g,headers:(h,o)=>p(hu(h),hu(o),!0)};return ne.forEach(Object.keys(Object.assign({},e,t)),function(o){const r=s[o]||p,l=r(e[o],t[o],o);ne.isUndefined(l)&&r!==g||(n[o]=l)}),n}const xd="1.5.1",yl={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{yl[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const fu={};yl.transitional=function(t,n,i){function p(u,f){return"[Axios v"+xd+"] Transitional option '"+u+"'"+f+(i?". "+i:"")}return(u,f,g)=>{if(t===!1)throw new Oe(p(f," has been removed"+(n?" in "+n:"")),Oe.ERR_DEPRECATED);return n&&!fu[f]&&(fu[f]=!0,console.warn(p(f," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(u,f,g):!0}};function T1(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 p=i.length;for(;p-- >0;){const u=i[p],f=t[u];if(f){const g=e[u],s=g===void 0||f(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 pa={assertOptions:T1,validators:yl},yn=pa.validators;class $o{constructor(t){this.defaults=t,this.interceptors={request:new su,response:new su}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=wi(this.defaults,n);const{transitional:i,paramsSerializer:p,headers:u}=n;i!==void 0&&pa.assertOptions(i,{silentJSONParsing:yn.transitional(yn.boolean),forcedJSONParsing:yn.transitional(yn.boolean),clarifyTimeoutError:yn.transitional(yn.boolean)},!1),p!=null&&(ne.isFunction(p)?n.paramsSerializer={serialize:p}:pa.assertOptions(p,{encode:yn.function,serialize:yn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let f=u&&ne.merge(u.common,u[n.method]);u&&ne.forEach(["delete","get","head","post","put","patch","common"],a=>{delete u[a]}),n.headers=tn.concat(f,u);const g=[];let s=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(n)===!1||(s=s&&d.synchronous,g.unshift(d.fulfilled,d.rejected))});const h=[];this.interceptors.response.forEach(function(d){h.push(d.fulfilled,d.rejected)});let o,r=0,l;if(!s){const a=[uu.bind(this),void 0];for(a.unshift.apply(a,g),a.push.apply(a,h),l=a.length,o=Promise.resolve(n);r<l;)o=o.then(a[r++],a[r++]);return o}l=g.length;let c=n;for(r=0;r<l;){const a=g[r++],d=g[r++];try{c=a(c)}catch(m){d.call(this,m);break}}try{o=uu.call(this,c)}catch(a){return Promise.reject(a)}for(r=0,l=h.length;r<l;)o=o.then(h[r++],h[r++]);return o}getUri(t){t=wi(this.defaults,t);const n=Sd(t.baseURL,t.url);return wd(n,t.params,t.paramsSerializer)}}ne.forEach(["delete","get","head","options"],function(t){$o.prototype[t]=function(n,i){return this.request(wi(i||{},{method:t,url:n,data:(i||{}).data}))}});ne.forEach(["post","put","patch"],function(t){function n(i){return function(u,f,g){return this.request(wi(g||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:u,data:f}))}}$o.prototype[t]=n(),$o.prototype[t+"Form"]=n(!0)});const ro=$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(p=>{if(!i._listeners)return;let u=i._listeners.length;for(;u-- >0;)i._listeners[u](p);i._listeners=null}),this.promise.then=p=>{let u;const f=new Promise(g=>{i.subscribe(g),u=g}).then(p);return f.cancel=function(){i.unsubscribe(u)},f},t(function(u,f,g){i.reason||(i.reason=new Rr(u,f,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(p){t=p}),cancel:t}}}const M1=bl;function I1(e){return function(n){return e.apply(null,n)}}function O1(e){return ne.isObject(e)&&e.isAxiosError===!0}const ga={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(ga).forEach(([e,t])=>{ga[t]=e});const F1=ga;function kd(e){const t=new ro(e),n=ld(ro.prototype.request,t);return ne.extend(n,ro.prototype,t,{allOwnKeys:!0}),ne.extend(n,t,null,{allOwnKeys:!0}),n.create=function(p){return kd(wi(e,p))},n}const Je=kd(vl);Je.Axios=ro;Je.CanceledError=Rr;Je.CancelToken=M1;Je.isCancel=Cd;Je.VERSION=xd;Je.toFormData=is;Je.AxiosError=Oe;Je.Cancel=Je.CanceledError;Je.all=function(t){return Promise.all(t)};Je.spread=I1;Je.isAxiosError=O1;Je.mergeConfig=wi;Je.AxiosHeaders=tn;Je.formToJSON=e=>_d(ne.isHTMLForm(e)?new FormData(e):e);Je.getAdapter=Ad.getAdapter;Je.HttpStatusCode=F1;Je.default=Je;const N1=Je,st=N1.create({headers:{Accept:"application/json"}}),ht={async getConfigs(){return(await st.get("/api/configs")).data},async getAlerts(e){return e.page=e.page||1,(await st.get("/api/alerts",{params:e})).data},async getTags(){return(await st.get("/api/tags")).data.tags},async getRuleSet(){return(await st.get("/api/rules/ids")).data.ruleIds},async deleteAlert(e){await st.delete(`/api/alerts/${e}`)},async getArtifact(e){return(await st.get(`/api/artifacts/${e}`)).data},async enrichArtifact(e){await st.get(`/api/artifacts/${e}/enrich`)},async deleteArtifact(e){await st.delete(`/api/artifacts/${e}`)},async getRules(e){return e.page=e.page||1,(await st.get("/api/rules",{params:e})).data},async getRule(e){return(await st.get(`/api/rules/${e}`)).data},async runRule(e){await st.get(`/api/rules/${e}/run`)},async createRule(e){return(await st.post("/api/rules/",e)).data},async updateRule(e){return(await st.put("/api/rules/",e)).data},async deleteRule(e){await st.delete(`/api/rules/${e}`)},async deleteTag(e){await st.delete(`/api/tags/${e}`)},async getIPInfo(e){return(await st.get(`/api/ip_addresses/${e}`)).data}};function wl(){return ut(async(e,t)=>await ht.getAlerts(t))}function P1(){return ut(async(e,t)=>await ht.deleteAlert(t))}function Ed(){return ut(async()=>await ht.getTags())}function D1(){return ut(async(e,t)=>await ht.deleteTag(t))}function B1(){return ut(async()=>await ht.getRuleSet())}function W1(){return ut(async(e,t)=>await ht.getArtifact(t))}function Rd(){return ut(async(e,t)=>await ht.deleteArtifact(t))}function H1(){return ut(async(e,t)=>await ht.enrichArtifact(t))}function U1(){return ut(async()=>await ht.getConfigs())}function z1(){return ut(async(e,t)=>await ht.getIPInfo(t))}function V1(){return ut(async(e,t)=>await ht.getRules(t))}function Ld(){return ut(async(e,t)=>await ht.getRule(t))}function j1(){return ut(async(e,t)=>await ht.deleteRule(t))}function G1(){return ut(async(e,t)=>await ht.runRule(t))}function K1(){return ut(async(e,t)=>await ht.createRule(t))}function Y1(){return ut(async(e,t)=>await ht.updateRule(t))}const X1=$e({name:"ArtifactTag",props:{artifact:{type:Object,required:!0}},setup(e){const t=Te(!1),n=Te(!1),i=Rd();return{isDeleted:t,deleteArtifact:async()=>{window.confirm(`Are you sure you want to delete ${e.artifact.data}?`)&&(await i.perform(e.artifact.id),t.value=!0)},showDeleteButton:()=>{n.value=!0},hideDeleteButton:()=>{n.value=!1},isDeleteButtonEnabled:n}}}),Z1={key:0,class:"control"};function Q1(e,t,n,i,p,u){const f=ue("router-link");return e.isDeleted?we("",!0):(q(),oe("div",Z1,[P("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))},[he(f,{class:"tag is-link is-light",to:{name:"Artifact",params:{id:e.artifact.id}}},{default:dt(()=>[et(Ae(e.artifact.data),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 J1=xe(X1,[["render",Q1]]),q1=$e({name:"ArtifactTags",components:{ArtifactComponent:J1},props:{artifacts:{type:Array,required:!0}}}),e$={class:"field is-grouped is-grouped-multiline"};function t$(e,t,n,i,p,u){const f=ue("ArtifactComponent");return q(),oe("div",e$,[(q(!0),oe(Se,null,ct(e.artifacts,g=>(q(),Me(f,{key:g.id,artifact:g},null,8,["artifact"]))),128))])}const n$=xe(q1,[["render",t$]]),i$=$e({name:"TagItem",props:{tag:{type:Object,required:!0}},setup(e,t){const n=Te(!1),i=Te(!1),p=D1();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}?`)&&(await p.perform(e.tag.name),n.value=!0)},showDeleteButton:()=>{i.value=!0},hideDeleteButton:()=>{i.value=!1},isDeleteButtonEnabled:i}}}),r$={key:0,class:"control"};function o$(e,t,n,i,p,u){return e.isDeleted?we("",!0):(q(),oe("div",r$,[P("div",{class:"tags has-addons are-medium",onMouseover:t[2]||(t[2]=(...f)=>e.showDeleteButton&&e.showDeleteButton(...f)),onMouseleave:t[3]||(t[3]=(...f)=>e.hideDeleteButton&&e.hideDeleteButton(...f))},[P("span",{class:"tag is-info is-light",onClick:t[0]||(t[0]=(...f)=>e.updateTag&&e.updateTag(...f))},Ae(e.tag.name),1),e.isDeleteButtonEnabled?(q(),oe("a",{key:0,class:"tag is-delete",onClick:t[1]||(t[1]=(...f)=>e.deleteTag&&e.deleteTag(...f))})):we("",!0)],32)]))}const s$=xe(i$,[["render",o$]]),a$=$e({name:"TagsItem",components:{TagComponent:s$},props:{tags:{type:Array,required:!0}},setup(e,t){return{updateTag:i=>{t.emit("update-tag",i)}}}}),l$={class:"field is-grouped is-grouped-multiline"};function c$(e,t,n,i,p,u){const f=ue("TagComponent");return q(),oe("div",l$,[(q(!0),oe(Se,null,ct(e.tags,g=>(q(),Me(f,{tag:g,key:g.name,onUpdateTag:e.updateTag},null,8,["tag","onUpdateTag"]))),128))])}const Td=xe(a$,[["render",c$]]);var Md={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(Mn,function(){var n=1e3,i=6e4,p=36e5,u="millisecond",f="second",g="minute",s="hour",h="day",o="week",r="month",l="quarter",c="year",a="date",d="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|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,b={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 L=["th","st","nd","rd"],T=w%100;return"["+w+(L[(T-20)%10]||L[T]||L[0])+"]"}},E=function(w,L,T){var O=String(w);return!O||O.length>=L?w:""+Array(L+1-O.length).join(T)+w},S={s:E,z:function(w){var L=-w.utcOffset(),T=Math.abs(L),O=Math.floor(T/60),I=T%60;return(L<=0?"+":"-")+E(O,2,"0")+":"+E(I,2,"0")},m:function w(L,T){if(L.date()<T.date())return-w(T,L);var O=12*(T.year()-L.year())+(T.month()-L.month()),I=L.clone().add(O,r),F=T-I<0,D=L.clone().add(O+(F?-1:1),r);return+(-(O+(T-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:h,D:a,h:s,m:g,s:f,ms:u,Q:l}[w]||String(w||"").toLowerCase().replace(/s$/,"")},u:function(w){return w===void 0}},C="en",$={};$[C]=b;var R="$isDayjsObject",x=function(w){return w instanceof M||!(!w||!w[R])},k=function w(L,T,O){var I;if(!L)return C;if(typeof L=="string"){var F=L.toLowerCase();$[F]&&(I=F),T&&($[F]=T,I=F);var D=L.split("-");if(!I&&D.length>1)return w(D[0])}else{var W=L.name;$[W]=L,I=W}return!O&&I&&(C=I),I||!O&&C},_=function(w,L){if(x(w))return w.clone();var T=typeof L=="object"?L:{};return T.date=w,T.args=arguments,new M(T)},v=S;v.l=k,v.i=x,v.w=function(w,L){return _(w,{locale:L.$L,utc:L.$u,x:L.$x,$offset:L.$offset})};var M=function(){function w(T){this.$L=k(T.locale,null,!0),this.parse(T),this.$x=this.$x||T.x||{},this[R]=!0}var L=w.prototype;return L.parse=function(T){this.$d=function(O){var I=O.date,F=O.utc;if(I===null)return new Date(NaN);if(v.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,G=(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,G)):new Date(D[1],W,D[3]||1,D[4]||0,D[5]||0,D[6]||0,G)}}return new Date(I)}(T),this.init()},L.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},L.$utils=function(){return v},L.isValid=function(){return this.$d.toString()!==d},L.isSame=function(T,O){var I=_(T);return this.startOf(O)<=I&&I<=this.endOf(O)},L.isAfter=function(T,O){return _(T)<this.startOf(O)},L.isBefore=function(T,O){return this.endOf(O)<_(T)},L.$g=function(T,O,I){return v.u(T)?this[O]:this.set(I,T)},L.unix=function(){return Math.floor(this.valueOf()/1e3)},L.valueOf=function(){return this.$d.getTime()},L.startOf=function(T,O){var I=this,F=!!v.u(O)||O,D=v.p(T),W=function(K,V){var ee=v.w(I.$u?Date.UTC(I.$y,V,K):new Date(I.$y,V,K),I);return F?ee:ee.endOf(h)},G=function(K,V){return v.w(I.toDate()[K].apply(I.toDate("s"),(F?[0,0,0,0]:[23,59,59,999]).slice(V)),I)},U=this.$W,H=this.$M,X=this.$D,J="set"+(this.$u?"UTC":"");switch(D){case c:return F?W(1,0):W(31,11);case r:return F?W(1,H):W(0,H+1);case o:var z=this.$locale().weekStart||0,Y=(U<z?U+7:U)-z;return W(F?X-Y:X+(6-Y),H);case h:case a:return G(J+"Hours",0);case s:return G(J+"Minutes",1);case g:return G(J+"Seconds",2);case f:return G(J+"Milliseconds",3);default:return this.clone()}},L.endOf=function(T){return this.startOf(T,!1)},L.$set=function(T,O){var I,F=v.p(T),D="set"+(this.$u?"UTC":""),W=(I={},I[h]=D+"Date",I[a]=D+"Date",I[r]=D+"Month",I[c]=D+"FullYear",I[s]=D+"Hours",I[g]=D+"Minutes",I[f]=D+"Seconds",I[u]=D+"Milliseconds",I)[F],G=F===h?this.$D+(O-this.$W):O;if(F===r||F===c){var U=this.clone().set(a,1);U.$d[W](G),U.init(),this.$d=U.set(a,Math.min(this.$D,U.daysInMonth())).$d}else W&&this.$d[W](G);return this.init(),this},L.set=function(T,O){return this.clone().$set(T,O)},L.get=function(T){return this[v.p(T)]()},L.add=function(T,O){var I,F=this;T=Number(T);var D=v.p(O),W=function(H){var X=_(F);return v.w(X.date(X.date()+Math.round(H*T)),F)};if(D===r)return this.set(r,this.$M+T);if(D===c)return this.set(c,this.$y+T);if(D===h)return W(1);if(D===o)return W(7);var G=(I={},I[g]=i,I[s]=p,I[f]=n,I)[D]||1,U=this.$d.getTime()+T*G;return v.w(U,this)},L.subtract=function(T,O){return this.add(-1*T,O)},L.format=function(T){var O=this,I=this.$locale();if(!this.isValid())return I.invalidDate||d;var F=T||"YYYY-MM-DDTHH:mm:ssZ",D=v.z(this),W=this.$H,G=this.$m,U=this.$M,H=I.weekdays,X=I.months,J=I.meridiem,z=function(V,ee,N,B){return V&&(V[ee]||V(O,F))||N[ee].slice(0,B)},Y=function(V){return v.s(W%12||12,V,"0")},K=J||function(V,ee,N){var B=V<12?"AM":"PM";return N?B.toLowerCase():B};return F.replace(y,function(V,ee){return ee||function(N){switch(N){case"YY":return String(O.$y).slice(-2);case"YYYY":return v.s(O.$y,4,"0");case"M":return U+1;case"MM":return v.s(U+1,2,"0");case"MMM":return z(I.monthsShort,U,X,3);case"MMMM":return z(X,U);case"D":return O.$D;case"DD":return v.s(O.$D,2,"0");case"d":return String(O.$W);case"dd":return z(I.weekdaysMin,O.$W,H,2);case"ddd":return z(I.weekdaysShort,O.$W,H,3);case"dddd":return H[O.$W];case"H":return String(W);case"HH":return v.s(W,2,"0");case"h":return Y(1);case"hh":return Y(2);case"a":return K(W,G,!0);case"A":return K(W,G,!1);case"m":return String(G);case"mm":return v.s(G,2,"0");case"s":return String(O.$s);case"ss":return v.s(O.$s,2,"0");case"SSS":return v.s(O.$ms,3,"0");case"Z":return D}return null}(V)||D.replace(":","")})},L.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},L.diff=function(T,O,I){var F,D=this,W=v.p(O),G=_(T),U=(G.utcOffset()-this.utcOffset())*i,H=this-G,X=function(){return v.m(D,G)};switch(W){case c:F=X()/12;break;case r:F=X();break;case l:F=X()/3;break;case o:F=(H-U)/6048e5;break;case h:F=(H-U)/864e5;break;case s:F=H/p;break;case g:F=H/i;break;case f:F=H/n;break;default:F=H}return I?F:v.a(F)},L.daysInMonth=function(){return this.endOf(r).$D},L.$locale=function(){return $[this.$L]},L.locale=function(T,O){if(!T)return this.$L;var I=this.clone(),F=k(T,O,!0);return F&&(I.$L=F),I},L.clone=function(){return v.w(this.$d,this)},L.toDate=function(){return new Date(this.valueOf())},L.toJSON=function(){return this.isValid()?this.toISOString():null},L.toISOString=function(){return this.$d.toISOString()},L.toString=function(){return this.$d.toUTCString()},w}(),A=M.prototype;return _.prototype=A,[["$ms",u],["$s",f],["$m",g],["$H",s],["$W",h],["$M",r],["$y",c],["$D",a]].forEach(function(w){A[w[1]]=function(L){return this.$g(L,w[0],w[1])}}),_.extend=function(w,L){return w.$i||(w(L,M,_),w.$i=!0),_},_.locale=k,_.isDayjs=x,_.unix=function(w){return _(1e3*w)},_.en=$[C],_.Ls=$,_.p={},_})})(Md);var u$=Md.exports;const Mi=cn(u$);var Id={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(Mn,function(){return function(n,i,p){n=n||{};var u=i.prototype,f={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(h,o,r,l){return u.fromToBase(h,o,r,l)}p.en.relativeTime=f,u.fromToBase=function(h,o,r,l,c){for(var a,d,m,y=r.$locale().relativeTime||f,b=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"}],E=b.length,S=0;S<E;S+=1){var C=b[S];C.d&&(a=l?p(h).diff(r,C.d,!0):r.diff(h,C.d,!0));var $=(n.rounding||Math.round)(Math.abs(a));if(m=a>0,$<=C.r||!C.r){$<=1&&S>0&&(C=b[S-1]);var R=y[C.l];c&&($=c(""+$)),d=typeof R=="string"?R.replace("%d",$):R($,o,C.l,m);break}}if(o)return d;var x=m?y.future:y.past;return typeof x=="function"?x(d):x.replace("%s",d)},u.to=function(h,o){return g(h,o,this,!0)},u.from=function(h,o){return g(h,o,this)};var s=function(h){return h.$u?p.utc():p()};u.toNow=function(h){return this.to(s(this),h)},u.fromNow=function(h){return this.from(s(this),h)}}})})(Id);var h$=Id.exports;const f$=cn(h$);var Od={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(Mn,function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},i={};return function(p,u,f){var g,s=function(l,c,a){a===void 0&&(a={});var d=new Date(l),m=function(y,b){b===void 0&&(b={});var E=b.timeZoneName||"short",S=y+"|"+E,C=i[S];return C||(C=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:y,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:E}),i[S]=C),C}(c,a);return m.formatToParts(d)},h=function(l,c){for(var a=s(l,c),d=[],m=0;m<a.length;m+=1){var y=a[m],b=y.type,E=y.value,S=n[b];S>=0&&(d[S]=parseInt(E,10))}var C=d[3],$=C===24?0:C,R=d[0]+"-"+d[1]+"-"+d[2]+" "+$+":"+d[4]+":"+d[5]+":000",x=+l;return(f.utc(R).valueOf()-(x-=x%1e3))/6e4},o=u.prototype;o.tz=function(l,c){l===void 0&&(l=g);var a=this.utcOffset(),d=this.toDate(),m=d.toLocaleString("en-US",{timeZone:l}),y=Math.round((d-new Date(m))/1e3/60),b=f(m,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(d.getTimezoneOffset()/15)-y,!0);if(c){var E=b.utcOffset();b=b.add(a-E,"minute")}return b.$x.$timezone=l,b},o.offsetName=function(l){var c=this.$x.$timezone||f.tz.guess(),a=s(this.valueOf(),c,{timeZoneName:l}).find(function(d){return d.type.toLowerCase()==="timezonename"});return a&&a.value};var r=o.startOf;o.startOf=function(l,c){if(!this.$x||!this.$x.$timezone)return r.call(this,l,c);var a=f(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return r.call(a,l,c).tz(this.$x.$timezone,!0)},f.tz=function(l,c,a){var d=a&&c,m=a||c||g,y=h(+f(),m);if(typeof l!="string")return f(l).tz(m);var b=function($,R,x){var k=$-60*R*1e3,_=h(k,x);if(R===_)return[k,R];var v=h(k-=60*(_-R)*1e3,x);return _===v?[k,_]:[$-60*Math.min(_,v)*1e3,Math.max(_,v)]}(f.utc(l,d).valueOf(),y,m),E=b[0],S=b[1],C=f(E).utcOffset(S);return C.$x.$timezone=m,C},f.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},f.tz.setDefault=function(l){g=l}}})})(Od);var d$=Od.exports;const p$=cn(d$);var Fd={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(Mn,function(){var n="minute",i=/[+-]\d\d(?::?\d\d)?/g,p=/([+-]|\d\d)/g;return function(u,f,g){var s=f.prototype;g.utc=function(d){var m={date:d,utc:!0,args:arguments};return new f(m)},s.utc=function(d){var m=g(this.toDate(),{locale:this.$L,utc:!0});return d?m.add(this.utcOffset(),n):m},s.local=function(){return g(this.toDate(),{locale:this.$L,utc:!1})};var h=s.parse;s.parse=function(d){d.utc&&(this.$u=!0),this.$utils().u(d.$offset)||(this.$offset=d.$offset),h.call(this,d)};var o=s.init;s.init=function(){if(this.$u){var d=this.$d;this.$y=d.getUTCFullYear(),this.$M=d.getUTCMonth(),this.$D=d.getUTCDate(),this.$W=d.getUTCDay(),this.$H=d.getUTCHours(),this.$m=d.getUTCMinutes(),this.$s=d.getUTCSeconds(),this.$ms=d.getUTCMilliseconds()}else o.call(this)};var r=s.utcOffset;s.utcOffset=function(d,m){var y=this.$utils().u;if(y(d))return this.$u?0:y(this.$offset)?r.call(this):this.$offset;if(typeof d=="string"&&(d=function(C){C===void 0&&(C="");var $=C.match(i);if(!$)return null;var R=(""+$[0]).match(p)||["-",0,0],x=R[0],k=60*+R[1]+ +R[2];return k===0?0:x==="+"?k:-k}(d),d===null))return this;var b=Math.abs(d)<=16?60*d:d,E=this;if(m)return E.$offset=b,E.$u=d===0,E;if(d!==0){var S=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(E=this.local().add(b+S,n)).$offset=b,E.$x.$localOffset=S}else E=this.utc();return E};var l=s.format;s.format=function(d){var m=d||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,m)},s.valueOf=function(){var d=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*d},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(d){return d==="s"&&this.$offset?g(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():c.call(this)};var a=s.diff;s.diff=function(d,m,y){if(d&&this.$u===d.$u)return a.call(this,d,m,y);var b=this.local(),E=g(d).local();return a.call(b,E,m,y)}}})})(Fd);var g$=Fd.exports;const m$=cn(g$),v$=[{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 y$(e){return v$.find(n=>n.code===e)}Mi.extend(f$);Mi.extend(p$);Mi.extend(m$);function b$(e){return Mi(e).local().format("YYYY-MM-DD HH:mm:ss")}function w$(e){return Mi(e).local().fromNow()}function Nd(e){const t=y$(e);if(t!==void 0)return{lat:t.lat,long:t.long}}function $$(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 Nd(e.countryCode)}function Ui(e){if(e!=null)return typeof e=="string"?e:e.toString()}const _$=$e({name:"AlertItem",components:{Artifacts:n$,Tags:Td},props:{alert:{type:Object,required:!0}},setup(e,t){const n=u=>{t.emit("update-tag",u)},i=P1();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:b$,getHumanizedRelativeTime:w$}}}),C$={class:"box"},S$={class:"table is-fullwidth is-completely-borderless"},A$=P("th",null,"ID",-1),x$=P("span",null,"Delete",-1),k$={class:"icon is-small"},E$=P("th",null,"Rule",-1),R$=P("th",null,"Artifacts",-1),L$={key:0},T$=P("th",null,"Tags",-1),M$={class:"help"};function I$(e,t,n,i,p,u){const f=ue("font-awesome-icon"),g=ue("router-link"),s=ue("Artifacts"),h=ue("Tags");return q(),oe("div",C$,[P("table",S$,[P("tr",null,[A$,P("td",null,[et(Ae(e.alert.id)+" ",1),P("button",{class:"button is-light is-small is-pulled-right",onClick:t[0]||(t[0]=(...o)=>e.deleteAlert&&e.deleteAlert(...o))},[x$,P("span",k$,[he(f,{icon:"times"})])])])]),P("tr",null,[E$,P("td",null,[he(g,{to:{name:"Rule",params:{id:e.alert.ruleId}}},{default:dt(()=>[et(Ae(e.alert.ruleId),1)]),_:1},8,["to"])])]),P("tr",null,[R$,P("td",null,[he(s,{artifacts:e.alert.artifacts},null,8,["artifacts"])])]),e.alert.tags.length>0?(q(),oe("tr",L$,[T$,P("td",null,[he(h,{tags:e.alert.tags,onUpdateTag:e.updateTag},null,8,["tags","onUpdateTag"])])])):we("",!0)]),P("p",M$,"Created at: "+Ae(e.alert.createdAt),1)])}const O$=xe(_$,[["render",I$]]),Es=new WeakMap;function du(e,t,n={}){const{mode:i="replace",route:p=Qo(),router:u=Ri(),transform:f=o=>o}=n;Es.has(p)||Es.set(p,new Map);const g=Es.get(p);Uf(()=>{g.delete(e)}),g.set(e,p.query[e]);let s;const h=Va((o,r)=>(s=r,{get(){o();const l=g.get(e);return f(l!==void 0?l:bo(t))},set(l){g.get(e)!==l&&(g.set(e,l),r(),zt(()=>{const{params:c,query:a,hash:d}=p;u[bo(i)]({params:c,query:{...a,...Object.fromEntries(g.entries())},hash:d})}))}}));return Ye(()=>p.query[e],o=>{g.set(e,o),s()},{flush:"sync"}),h}const F$=$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=Qo(),i=Ri(),p={route:n,router:i},u=Ee(()=>Math.ceil(e.total/e.pageSize)),f=Ee(()=>u.value===1),g=Ee(()=>e.currentPage>1),s=Ee(()=>e.currentPage-1!==1),h=Ee(()=>e.currentPage<u.value),o=Ee(()=>e.currentPage+1!==u.value),r=l=>{const c=du("page",l.toString(),p);c.value=l.toString(),t.emit("update-page",l)};return nt(()=>{const l=du("page",null,p);l.value&&parseInt(l.value)!==e.currentPage&&r(parseInt(l.value))}),{updatePage:r,hasNextPage:h,hasOnlyOnePage:f,hasPreviousPage:g,isNextPageNotLast:o,isPreviousPageNotFirst:s,totalPageCount:u}}}),N$={key:0,class:"message is-warning"},P$=P("div",{class:"message-body"},"There is no result to show.",-1),D$=[P$],B$={key:1,class:"pagination",role:"navigation","aria-label":"pagination"},W$={key:0,class:"pagination-list"},H$={key:1,class:"pagination-list"},U$={key:0},z$={key:1},V$=P("span",{class:"pagination-ellipsis"},"…",-1),j$=[V$],G$={key:2},K$={key:3},Y$={key:4},X$=P("span",{class:"pagination-ellipsis"},"…",-1),Z$=[X$],Q$={key:5};function J$(e,t,n,i,p,u){return e.total===0?(q(),oe("article",N$,D$)):(q(),oe("nav",B$,[e.hasOnlyOnePage?(q(),oe("ul",W$,[P("li",null,[P("a",{class:"pagination-link mt-2 is-current",onClick:t[0]||(t[0]=f=>e.updatePage(1))},"1")])])):(q(),oe("ul",H$,[e.hasPreviousPage&&e.isPreviousPageNotFirst?(q(),oe("li",U$,[P("a",{class:"pagination-link mt-2",onClick:t[1]||(t[1]=f=>e.updatePage(1))}," 1")])):we("",!0),e.hasPreviousPage&&e.isPreviousPageNotFirst?(q(),oe("li",z$,j$)):we("",!0),e.hasPreviousPage?(q(),oe("li",G$,[P("a",{class:"pagination-link mt-2",onClick:t[2]||(t[2]=f=>e.updatePage(e.currentPage-1))},Ae(e.currentPage-1),1)])):we("",!0),P("li",null,[P("a",{class:"pagination-link mt-2 is-current",onClick:t[3]||(t[3]=f=>e.updatePage(e.currentPage))},Ae(e.currentPage),1)]),e.hasNextPage?(q(),oe("li",K$,[P("a",{class:"pagination-link mt-2",onClick:t[4]||(t[4]=f=>e.updatePage(e.currentPage+1))},Ae(e.currentPage+1),1)])):we("",!0),e.hasNextPage&&e.isNextPageNotLast?(q(),oe("li",Y$,Z$)):we("",!0),e.hasNextPage&&e.isNextPageNotLast?(q(),oe("li",Q$,[P("a",{class:"pagination-link mt-2",onClick:t[5]||(t[5]=f=>e.updatePage(e.totalPageCount))},Ae(e.totalPageCount),1)])):we("",!0)]))]))}const Pd=xe(F$,[["render",J$]]),q$=$e({name:"AlertsItem",components:{Alert:O$,Pagination:Pd},props:{alerts:{type:Object,required:!0}},emits:["update-page","refresh-page","update-tag"],setup(e,t){const n=()=>{window.scrollTo({top:0})};return{updatePage:f=>{n(),t.emit("update-page",f)},updateTag:f=>{n(),t.emit("update-tag",f)},refreshPage:()=>{n(),t.emit("refresh-page")}}}}),e_={class:"help"};function t_(e,t,n,i,p,u){const f=ue("Alert"),g=ue("Pagination");return q(),oe(Se,null,[(q(!0),oe(Se,null,ct(e.alerts.alerts,(s,h)=>(q(),Me(f,{alert:s,key:h,onRefreshPage:e.refreshPage,onUpdateTag:e.updateTag},null,8,["alert","onRefreshPage","onUpdateTag"]))),128)),he(g,{total:e.alerts.total,currentPage:e.alerts.currentPage,pageSize:e.alerts.pageSize,onUpdatePage:e.updatePage},null,8,["total","currentPage","pageSize","onUpdatePage"]),P("p",e_,"("+Ae(e.alerts.total)+" results in total, "+Ae(e.alerts.alerts.length)+" shown)",1)],64)}const Dd=xe(q$,[["render",t_]]),n_=$e({name:"AlertsForm",props:{tags:{type:Array,required:!0},ruleSet:{type:Array,required:!0},page:{type:Number,required:!0},tag:{type:String,required:!1}},setup(e){const t=Qo(),n=Te(void 0),i=Te(void 0),p=Yn(e,"tag"),u=Te(void 0),f=Te(void 0),g=Te(void 0),s=Te(void 0),h=Te(void 0),o=()=>{const l=t.query.asn,c=Ui(l);g.value=c===void 0?void 0:parseInt(c);const a=t.query.dnsRecord;s.value=Ui(a);const d=t.query.reverseDnsName;h.value=Ui(d);const m=t.query.tag;p.value===void 0&&(p.value=Ui(m))},r=()=>(o(),{artifact:n.value===""?void 0:n.value,page:e.page,ruleId:u.value===""?void 0:u.value,tag:p.value===""?void 0:p.value,toAt:f.value===""?void 0:f.value,fromAt:i.value===""?void 0:i.value});return Ye(()=>e.tag,()=>{p.value=e.tag}),{artifact:n,fromAt:i,getSearchParams:r,ruleId:u,toAt:f,tagInput:p}}}),i_={class:"columns"},r_={class:"column"},o_={class:"field is-horizontal"},s_=P("div",{class:"field-label is-normal"},[P("label",{class:"label"},"Rule")],-1),a_={class:"field-body"},l_={class:"field"},c_={class:"control"},u_={class:"select"},h_=P("option",null,null,-1),f_={class:"column"},d_={class:"field is-horizontal"},p_=P("div",{class:"field-label is-normal"},[P("label",{class:"label"},"Artifact")],-1),g_={class:"field-body"},m_={class:"field"},v_={class:"control"},y_={class:"columns"},b_={class:"column"},w_={class:"field is-horizontal"},$_=P("div",{class:"field-label is-normal"},[P("label",{class:"label"},"Tag")],-1),__={class:"field-body"},C_={class:"field"},S_={class:"control"},A_={class:"select"},x_=P("option",null,null,-1),k_=P("div",{class:"column"},null,-1),E_={class:"columns"},R_={class:"column"},L_={class:"field is-horizontal"},T_=P("div",{class:"field-label is-normal"},[P("label",{class:"label"},"From")],-1),M_={class:"field-body"},I_={class:"field"},O_={class:"control"},F_={class:"column"},N_={class:"field is-horizontal"},P_=P("div",{class:"field-label is-normal"},[P("label",{class:"label"},"To")],-1),D_={class:"field-body"},B_={class:"field"},W_={class:"control"};function H_(e,t,n,i,p,u){return q(),oe(Se,null,[P("div",i_,[P("div",r_,[P("div",o_,[s_,P("div",a_,[P("div",l_,[P("div",c_,[P("div",u_,[Tt(P("select",{"onUpdate:modelValue":t[0]||(t[0]=f=>e.ruleId=f)},[h_,(q(!0),oe(Se,null,ct(e.ruleSet,f=>(q(),oe("option",{key:f},Ae(f),1))),128))],512),[[pr,e.ruleId]])])])])])])]),P("div",f_,[P("div",d_,[p_,P("div",g_,[P("div",m_,[P("p",v_,[Tt(P("input",{class:"input",type:"text","onUpdate:modelValue":t[1]||(t[1]=f=>e.artifact=f)},null,512),[[Ot,e.artifact]])])])])])])]),P("div",y_,[P("div",b_,[P("div",w_,[$_,P("div",__,[P("div",C_,[P("div",S_,[P("div",A_,[Tt(P("select",{"onUpdate:modelValue":t[2]||(t[2]=f=>e.tagInput=f)},[x_,(q(!0),oe(Se,null,ct(e.tags,f=>(q(),oe("option",{key:f},Ae(f),1))),128))],512),[[pr,e.tagInput]])])])])])])]),k_]),P("div",E_,[P("div",R_,[P("div",L_,[T_,P("div",M_,[P("div",I_,[P("p",O_,[Tt(P("input",{class:"input",type:"date","onUpdate:modelValue":t[3]||(t[3]=f=>e.fromAt=f)},null,512),[[Ot,e.fromAt]])])])])])]),P("div",F_,[P("div",N_,[P_,P("div",D_,[P("div",B_,[P("p",W_,[Tt(P("input",{class:"input",type:"date","onUpdate:modelValue":t[4]||(t[4]=f=>e.toAt=f)},null,512),[[Ot,e.toAt]])])])])])])])],64)}const U_=xe(n_,[["render",H_]]);var Bd={exports:{}};const z_=Vf(w0);(function(e,t){(function(n,i){e.exports=i(z_)})(Mn,function(n){return function(){var i={789:function(g){g.exports=n}},p={};function u(g){var s=p[g];if(s!==void 0)return s.exports;var h=p[g]={exports:{}};return i[g](h,h.exports,u),h.exports}u.d=function(g,s){for(var h in s)u.o(s,h)&&!u.o(g,h)&&Object.defineProperty(g,h,{enumerable:!0,get:s[h]})},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 f={};return function(){function g(v,M){(M==null||M>v.length)&&(M=v.length);for(var A=0,w=new Array(M);A<M;A++)w[A]=v[A];return w}function s(v,M){if(v){if(typeof v=="string")return g(v,M);var A=Object.prototype.toString.call(v).slice(8,-1);return A==="Object"&&v.constructor&&(A=v.constructor.name),A==="Map"||A==="Set"?Array.from(v):A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A)?g(v,M):void 0}}function h(v){return function(M){if(Array.isArray(M))return g(M)}(v)||function(M){if(typeof Symbol<"u"&&M[Symbol.iterator]!=null||M["@@iterator"]!=null)return Array.from(M)}(v)||s(v)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
770
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function o(v,M,A){return M in v?Object.defineProperty(v,M,{value:A,enumerable:!0,configurable:!0,writable:!0}):v[M]=A,v}u.r(f),u.d(f,{default:function(){return _}});var r=u(789),l=(0,r.defineComponent)({props:{data:{required:!0,type:String},onClick:Function},render:function(){var v=this.data,M=this.onClick;return(0,r.createVNode)("span",{class:"vjs-tree-brackets",onClick:M},[v])}}),c=(0,r.defineComponent)({emits:["change","update:modelValue"],props:{checked:{type:Boolean,default:!1},isMultiple:Boolean,onChange:Function},setup:function(v,M){var A=M.emit;return{uiType:(0,r.computed)(function(){return v.isMultiple?"checkbox":"radio"}),model:(0,r.computed)({get:function(){return v.checked},set:function(w){return A("update:modelValue",w)}})}},render:function(){var v=this.uiType,M=this.model,A=this.$emit;return(0,r.createVNode)("label",{class:["vjs-check-controller",M?"is-checked":""],onClick:function(w){return w.stopPropagation()}},[(0,r.createVNode)("span",{class:"vjs-check-controller-inner is-".concat(v)},null),(0,r.createVNode)("input",{checked:M,class:"vjs-check-controller-original is-".concat(v),type:v,onChange:function(){return A("change",M)}},null)])}}),a=(0,r.defineComponent)({props:{nodeType:{required:!0,type:String},onClick:Function},render:function(){var v=this.nodeType,M=this.onClick,A=v==="objectStart"||v==="arrayStart";return A||v==="objectCollapsed"||v==="arrayCollapsed"?(0,r.createVNode)("span",{class:"vjs-carets vjs-carets-".concat(A?"open":"close"),onClick:M},[(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 d(v){return d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},d(v)}function m(v){return Object.prototype.toString.call(v).slice(8,-1).toLowerCase()}function y(v){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"root",A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,w=arguments.length>3?arguments[3]:void 0,L=w||{},T=L.key,O=L.index,I=L.type,F=I===void 0?"content":I,D=L.showComma,W=D!==void 0&&D,G=L.length,U=G===void 0?1:G,H=m(v);if(H==="array"){var X=b(v.map(function(Y,K,V){return y(Y,"".concat(M,"[").concat(K,"]"),A+1,{index:K,showComma:K!==V.length-1,length:U,type:F})}));return[y("[",M,A,{showComma:!1,key:T,length:v.length,type:"arrayStart"})[0]].concat(X,y("]",M,A,{showComma:W,length:v.length,type:"arrayEnd"})[0])}if(H==="object"){var J=Object.keys(v),z=b(J.map(function(Y,K,V){return y(v[Y],/^[a-zA-Z_]\w*$/.test(Y)?"".concat(M,".").concat(Y):"".concat(M,'["').concat(Y,'"]'),A+1,{key:Y,showComma:K!==V.length-1,length:U,type:F})}));return[y("{",M,A,{showComma:!1,key:T,index:O,length:J.length,type:"objectStart"})[0]].concat(z,y("}",M,A,{showComma:W,length:J.length,type:"objectEnd"})[0])}return[{content:v,level:A,key:T,index:O,path:M,showComma:W,length:U,type:F}]}function b(v){if(typeof Array.prototype.flat=="function")return v.flat();for(var M=h(v),A=[];M.length;){var w=M.shift();Array.isArray(w)?M.unshift.apply(M,h(w)):A.push(w)}return A}function E(v){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new WeakMap;if(v==null)return v;if(v instanceof Date)return new Date(v);if(v instanceof RegExp)return new RegExp(v);if(d(v)!=="object")return v;if(M.get(v))return M.get(v);if(Array.isArray(v)){var A=v.map(function(T){return E(T,M)});return M.set(v,A),A}var w={};for(var L in v)w[L]=E(v[L],M);return M.set(v,w),w}function S(v,M){var A=Object.keys(v);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(v);M&&(w=w.filter(function(L){return Object.getOwnPropertyDescriptor(v,L).enumerable})),A.push.apply(A,w)}return A}function C(v){for(var M=1;M<arguments.length;M++){var A=arguments[M]!=null?arguments[M]:{};M%2?S(Object(A),!0).forEach(function(w){o(v,w,A[w])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(A)):S(Object(A)).forEach(function(w){Object.defineProperty(v,w,Object.getOwnPropertyDescriptor(A,w))})}return v}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:C(C({},$),{},{node:{type:Object,required:!0},collapsed:Boolean,checked:Boolean,style:Object,onSelectedChange:{type:Function}}),emits:["nodeClick","bracketsClick","iconClick","selectedChange","valueChange"],setup:function(v,M){var A=M.emit,w=(0,r.computed)(function(){return m(v.node.content)}),L=(0,r.computed)(function(){return"vjs-value vjs-value-".concat(w.value)}),T=(0,r.computed)(function(){return v.showDoubleQuotes?'"'.concat(v.node.key,'"'):v.node.key}),O=(0,r.computed)(function(){return v.selectableType==="multiple"}),I=(0,r.computed)(function(){return v.selectableType==="single"}),F=(0,r.computed)(function(){return v.nodeSelectable(v.node)&&(O.value||I.value)}),D=(0,r.reactive)({editing:!1}),W=function(K){var V,ee,N=(ee=(V=K.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);A("valueChange",N,v.node.path)},G=(0,r.computed)(function(){var K,V=(K=v.node)===null||K===void 0?void 0:K.content;return V===null?V="null":V===void 0&&(V="undefined"),w.value==="string"?'"'.concat(V,'"'):V+""}),U=function(){var K=v.renderNodeValue;return K?K({node:v.node,defaultValue:G.value}):G.value},H=function(){A("bracketsClick",!v.collapsed,v.node.path)},X=function(){A("iconClick",!v.collapsed,v.node.path)},J=function(){A("selectedChange",v.node)},z=function(){A("nodeClick",v.node),F.value&&v.selectOnClickNode&&A("selectedChange",v.node)},Y=function(K){if(v.editable&&!D.editing){D.editing=!0;var V=function ee(N){var B;N.target!==K.target&&((B=N.target)===null||B===void 0?void 0:B.parentElement)!==K.target&&(D.editing=!1,document.removeEventListener("click",ee))};document.removeEventListener("click",V),document.addEventListener("click",V)}};return function(){var K,V=v.node;return(0,r.createVNode)("div",{class:{"vjs-tree-node":!0,"has-selector":v.showSelectController,"has-carets":v.showIcon,"is-highlight":v.highlightSelectedNode&&v.checked},onClick:z,style:v.style},[v.showLineNumber&&(0,r.createVNode)("span",{class:"vjs-node-index"},[V.id+1]),v.showSelectController&&F.value&&V.type!=="objectEnd"&&V.type!=="arrayEnd"&&(0,r.createVNode)(c,{isMultiple:O.value,checked:v.checked,onChange:J},null),(0,r.createVNode)("div",{class:"vjs-indent"},[Array.from(Array(V.level)).map(function(ee,N){return(0,r.createVNode)("div",{key:N,class:{"vjs-indent-unit":!0,"has-line":v.showLine}},null)}),v.showIcon&&(0,r.createVNode)(a,{nodeType:V.type,onClick:X},null)]),V.key&&(0,r.createVNode)("span",{class:"vjs-key"},[(K=v.renderNodeKey,K?K({node:v.node,defaultKey:T.value||""}):T.value),(0,r.createVNode)("span",{class:"vjs-colon"},[":".concat(v.showKeyValueSpace?" ":"")])]),(0,r.createVNode)("span",null,[V.type!=="content"&&V.content?(0,r.createVNode)(l,{data:V.content.toString(),onClick:H},null):(0,r.createVNode)("span",{class:L.value,onClick:!v.editable||v.editableTrigger&&v.editableTrigger!=="click"?void 0:Y,onDblclick:v.editable&&v.editableTrigger==="dblclick"?Y:void 0},[v.editable&&D.editing?(0,r.createVNode)("input",{value:G.value,onChange:W,style:{padding:"3px 8px",border:"1px solid #eee",boxShadow:"none",boxSizing:"border-box",borderRadius:5,fontFamily:"inherit"}},null):U()]),V.showComma&&(0,r.createVNode)("span",null,[","]),v.showLength&&v.collapsed&&(0,r.createVNode)("span",{class:"vjs-comment"},[(0,r.createTextVNode)(" // "),V.length,(0,r.createTextVNode)(" items ")])])])}}});function x(v,M){var A=Object.keys(v);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(v);M&&(w=w.filter(function(L){return Object.getOwnPropertyDescriptor(v,L).enumerable})),A.push.apply(A,w)}return A}function k(v){for(var M=1;M<arguments.length;M++){var A=arguments[M]!=null?arguments[M]:{};M%2?x(Object(A),!0).forEach(function(w){o(v,w,A[w])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(A)):x(Object(A)).forEach(function(w){Object.defineProperty(v,w,Object.getOwnPropertyDescriptor(A,w))})}return v}var _=(0,r.defineComponent)({name:"Tree",props:k(k({},$),{},{data:{type:[String,Number,Boolean,Array,Object],default:null},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(v,M){var A=M.emit,w=M.slots,L=(0,r.ref)(),T=(0,r.computed)(function(){return y(v.data,v.rootPath)}),O=function(V){return T.value.reduce(function(ee,N){var B,j=N.level>=V,Z=(B=v.pathCollapsible)===null||B===void 0?void 0:B.call(v,N);return N.type!=="objectStart"&&N.type!=="arrayStart"||!j&&!Z?ee:k(k({},ee),{},o({},N.path,1))},{})},I=(0,r.reactive)({translateY:0,visibleData:null,hiddenPaths:O(v.deep)}),F=(0,r.computed)(function(){for(var V=null,ee=[],N=T.value.length,B=0;B<N;B++){var j=k(k({},T.value[B]),{},{id:B}),Z=I.hiddenPaths[j.path];if(V&&V.path===j.path){var te=V.type==="objectStart",ie=k(k(k({},j),V),{},{showComma:j.showComma,content:te?"{...}":"[...]",type:te?"objectCollapsed":"arrayCollapsed"});V=null,ee.push(ie)}else{if(Z&&!V){V=j;continue}if(V)continue;ee.push(j)}}return ee}),D=(0,r.computed)(function(){var V=v.selectedValue;return V&&v.selectableType==="multiple"&&Array.isArray(V)?V:[V]}),W=(0,r.computed)(function(){return!v.selectableType||v.selectOnClickNode||v.showSelectController?"":"When selectableType is not null, selectOnClickNode and showSelectController cannot be false at the same time, because this will cause the selection to fail."}),G=function(){var V=F.value;if(v.virtual){var ee,N=v.height/v.itemHeight,B=((ee=L.value)===null||ee===void 0?void 0:ee.scrollTop)||0,j=Math.floor(B/v.itemHeight),Z=j<0?0:j+N>V.length?V.length-N:j;Z<0&&(Z=0);var te=Z+N;I.translateY=Z*v.itemHeight,I.visibleData=V.filter(function(ie,le){return le>=Z&&le<te})}else I.visibleData=V},U=function(){G()},H=function(V){var ee,N,B=V.path,j=v.selectableType;if(j==="multiple"){var Z=D.value.findIndex(function(se){return se===B}),te=h(D.value);Z!==-1?te.splice(Z,1):te.push(B),A("update:selectedValue",te),A("selectedChange",te,h(D.value))}else if(j==="single"&&D.value[0]!==B){var ie=(ee=D.value,N=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=[],_e=!0,Q=!1;try{for(re=re.call(se);!(_e=(ve=re.next()).done)&&(me.push(ve.value),!ce||me.length!==ce);_e=!0);}catch(ae){Q=!0,de=ae}finally{try{_e||re.return==null||re.return()}finally{if(Q)throw de}}return me}}(ee,N)||s(ee,N)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
771
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}())[0],le=B;A("update:selectedValue",le),A("selectedChange",le,ie)}},X=function(V){A("nodeClick",V)},J=function(V,ee){if(V)I.hiddenPaths=k(k({},I.hiddenPaths),{},o({},ee,1));else{var N=k({},I.hiddenPaths);delete N[ee],I.hiddenPaths=N}},z=function(V,ee){v.collapsedOnClickBrackets&&J(V,ee),A("bracketsClick",V)},Y=function(V,ee){J(V,ee),A("iconClick",V)},K=function(V,ee){var N=E(v.data),B=v.rootPath;new Function("data","val","data".concat(ee.slice(B.length),"=val"))(N,V),A("update:data",N)};return(0,r.watchEffect)(function(){W.value&&function(V){throw new Error("[VueJSONPretty] ".concat(V))}(W.value)}),(0,r.watchEffect)(function(){F.value&&G()}),(0,r.watch)(function(){return v.deep},function(V){V&&(I.hiddenPaths=O(V))}),function(){var V,ee,N=(V=v.renderNodeKey)!==null&&V!==void 0?V:w.renderNodeKey,B=(ee=v.renderNodeValue)!==null&&ee!==void 0?ee:w.renderNodeValue,j=I.visibleData&&I.visibleData.map(function(Z){return(0,r.createVNode)(R,{key:Z.id,node:Z,collapsed:!!I.hiddenPaths[Z.path],showDoubleQuotes:v.showDoubleQuotes,showLength:v.showLength,checked:D.value.includes(Z.path),selectableType:v.selectableType,showLine:v.showLine,showLineNumber:v.showLineNumber,showSelectController:v.showSelectController,selectOnClickNode:v.selectOnClickNode,nodeSelectable:v.nodeSelectable,highlightSelectedNode:v.highlightSelectedNode,editable:v.editable,editableTrigger:v.editableTrigger,showIcon:v.showIcon,showKeyValueSpace:v.showKeyValueSpace,renderNodeKey:N,renderNodeValue:B,onNodeClick:X,onBracketsClick:z,onIconClick:Y,onSelectedChange:H,onValueChange:K,style:v.itemHeight&&v.itemHeight!==20?{lineHeight:"".concat(v.itemHeight,"px")}:{}},null)});return(0,r.createVNode)("div",{ref:L,class:{"vjs-tree":!0,"is-virtual":v.virtual},onScroll:v.virtual?U:void 0,style:v.showLineNumber?k({paddingLeft:"".concat(12*Number(T.value.length.toString().length),"px")},v.style):v.style},[v.virtual?(0,r.createVNode)("div",{class:"vjs-tree-list",style:{height:"".concat(v.height,"px")}},[(0,r.createVNode)("div",{class:"vjs-tree-list-holder",style:{height:"".concat(F.value.length*v.itemHeight,"px")}},[(0,r.createVNode)("div",{class:"vjs-tree-list-holder-inner",style:{transform:"translateY(".concat(I.translateY,"px)")}},[j])])]):j])}}})}(),f}()})})(Bd);var V_=Bd.exports;const Wd=cn(V_),j_=$e({name:"ErrorItem",props:{error:{type:Object,required:!0}},components:{VueJsonPretty:Wd}}),G_={class:"notification is-danger is-light"},K_={key:0},Y_={key:1},X_={key:0,class:"message"},Z_={class:"message-body"};function Q_(e,t,n,i,p,u){var g,s;const f=ue("VueJsonPretty");return q(),oe(Se,null,[P("div",G_,[(g=e.error.response.data)!=null&&g.message?(q(),oe("p",K_,Ae(e.error.response.data.message),1)):(q(),oe("p",Y_,Ae(e.error),1))]),(s=e.error.response.data)!=null&&s.details?(q(),oe("article",X_,[P("div",Z_,[he(f,{data:e.error.response.data.details},null,8,["data"])])])):we("",!0)],64)}const un=xe(j_,[["render",Q_]]),J_=$e({name:"LoadingItem"}),q_={class:"has-text-centered"},eC={class:"fa-3x"};function tC(e,t,n,i,p,u){const f=ue("font-awesome-icon");return q(),oe("div",q_,[P("div",eC,[he(f,{icon:"spinner",spin:""})])])}const hn=xe(J_,[["render",tC]]),nC=$e({name:"AlertsWrapper",components:{AlertsComponent:Dd,FormComponent:U_,Loading:hn,ErrorMessage:un},setup(){const e=Te(1),t=Te(void 0),n=Te(),i=wl(),p=Ed(),u=B1(),f=async()=>{var c;const l=(c=n.value)==null?void 0:c.getSearchParams();return await i.perform(l)},g=l=>{e.value=l},s=()=>{e.value=1},h=async()=>{s(),await f()},o=l=>{t.value===l?t.value=void 0:t.value=l,zt(async()=>await h())},r=async()=>{await h()};return nt(async()=>{p.perform(),u.perform(),await f()}),Ye([e,t],async()=>{zt(async()=>await f())}),{getAlertsTask:i,getRuleSetTask:u,getTagsTask:p,refreshPage:r,search:h,tag:t,updatePage:g,updateTag:o,form:n,page:e}}}),iC={class:"box mb-6"},rC=P("hr",null,null,-1),oC={class:"columns"},sC={class:"column"},aC={class:"field is-grouped is-grouped-centered"},lC={class:"control"},cC={class:"icon is-small"},uC=P("span",null,"Search",-1),hC={key:0},fC=P("hr",null,null,-1);function dC(e,t,n,i,p,u){var r,l,c,a;const f=ue("FormComponent"),g=ue("font-awesome-icon"),s=ue("Loading"),h=ue("ErrorMessage"),o=ue("AlertsComponent");return q(),oe(Se,null,[P("div",iC,[he(f,{ref:"form",ruleSet:((r=e.getRuleSetTask.last)==null?void 0:r.value)||[],tags:((l=e.getTagsTask.last)==null?void 0:l.value)||[],page:e.page,tag:e.tag},null,8,["ruleSet","tags","page","tag"]),rC,P("div",oC,[P("div",sC,[P("div",aC,[P("p",lC,[P("a",{class:"button is-primary",onClick:t[0]||(t[0]=(...d)=>e.search&&e.search(...d))},[P("span",cC,[he(g,{icon:"search"})]),uC])])])])])]),e.getAlertsTask.performCount>0?(q(),oe("div",hC,[fC,e.getAlertsTask.isRunning?(q(),Me(s,{key:0})):we("",!0),e.getAlertsTask.isError?(q(),Me(h,{key:1,error:(c=e.getAlertsTask.last)==null?void 0:c.error},null,8,["error"])):we("",!0),(a=e.getAlertsTask.last)!=null&&a.value?(q(),Me(o,{key:2,alerts:e.getAlertsTask.last.value,onRefreshPage:e.refreshPage,onUpdatePage:e.updatePage,onUpdateTag:e.updateTag},null,8,["alerts","onRefreshPage","onUpdatePage","onUpdateTag"])):we("",!0)])):we("",!0)],64)}const pC=xe(nC,[["render",dC]]),gC=$e({name:"AlertsView",components:{Alerts:pC},setup(){ei("Alerts - Mihari")}});function mC(e,t,n,i,p,u){const f=ue("Alerts",!0);return q(),Me(f)}const vC=xe(gC,[["render",mC]]),yC=$e({name:"AlertsWithPagination",props:{ruleId:{type:String},artifact:{type:String}},components:{Alerts:Dd,Loading:hn},setup(e){const t=Te(1),n=Te(void 0),i=wl(),p=async()=>{const h={artifact:e.artifact,page:t.value,ruleId:e.ruleId,tag:n.value,toAt:void 0,fromAt:void 0};return await i.perform(h)},u=h=>{t.value=h},f=()=>{t.value=1},g=async()=>{f(),await p()},s=h=>{n.value===h?n.value=void 0:n.value=h};return nt(async()=>{await p()}),Ye([e,t,n],async()=>{zt(async()=>await p())}),{getAlertsTask:i,refreshPage:g,updatePage:u,updateTag:s}}});function bC(e,t,n,i,p,u){var s;const f=ue("Loading"),g=ue("Alerts");return q(),oe(Se,null,[e.getAlertsTask.isRunning?(q(),Me(f,{key:0})):we("",!0),(s=e.getAlertsTask.last)!=null&&s.value?(q(),Me(g,{key:1,alerts:e.getAlertsTask.last.value,onRefreshPage:e.refreshPage,onUpdatePage:e.updatePage,onUpdateTag:e.updateTag},null,8,["alerts","onRefreshPage","onUpdatePage","onUpdateTag"])):we("",!0)],64)}const Hd=xe(yC,[["render",bC]]),wC=$e({name:"AS",props:{autonomousSystem:{type:Object,required:!0}}}),$C={class:"tags are-medium"};function _C(e,t,n,i,p,u){const f=ue("router-link");return q(),oe("div",$C,[he(f,{class:"tag",to:{name:"Alerts",query:{asn:e.autonomousSystem.asn}}},{default:dt(()=>[et(Ae(e.autonomousSystem.asn),1)]),_:1},8,["to"])])}const CC=xe(wC,[["render",_C]]),SC=$e({name:"CPEsItem",props:{cpes:{type:Array,required:!0}}}),AC={class:"tags are-medium"};function xC(e,t,n,i,p,u){return q(),oe("div",AC,[(q(!0),oe(Se,null,ct(e.cpes,f=>(q(),oe("span",{class:"tag",key:f.cpe},Ae(f.cpe),1))),128))])}const kC=xe(SC,[["render",xC]]);var Ud={exports:{}};(function(e){(function(t,n){var i="…",p=/(((ftp|https?):\/\/)[\-\w@:%_\+.~#?,&\/\/=]+)|((mailto:)?[_.\w-]{1,300}@(.{1,300}\.)[a-zA-Z]{2,3})/g;function u(g,s,h){return h.length===g.length||!s.ellipsis||(h+=s.ellipsis),h}function f(g,s,h){var o="",r=!0,l=s,c,a;if(h=h||{},h.ellipsis=typeof h.ellipsis>"u"?i:h.ellipsis,!g||g.length===0)return"";for(r=!0;r;){if(p.lastIndex=o.length,r=p.exec(g),!r||r.index-o.length>=l||p.lastIndex>=s+3e3)return o+=g.substring(o.length,s),u(g,h,o);if(c=r[0],a=r.index,o+=g.substring(o.length,a+c.length),l-=a+c.length,l<=0)break}return u(g,h,o)}e.exports?e.exports=f:t.truncate=f})(String)})(Ud);var EC=Ud.exports;const RC=cn(EC),LC=$e({name:"DnsRecords",props:{dnsRecords:{type:Array,required:!0}},setup(){return{truncate:RC}}}),TC={class:"field is-grouped is-grouped-multiline"},MC={class:"tags has-addons are-medium"},IC={class:"tag is-dark"};function OC(e,t,n,i,p,u){const f=ue("router-link");return q(),oe("div",TC,[(q(!0),oe(Se,null,ct(e.dnsRecords,(g,s)=>(q(),oe("div",{class:"control",key:s},[P("div",MC,[P("span",IC,Ae(g.resource),1),he(f,{class:"tag",to:{name:"Alerts",query:{dnsRecord:g.value}}},{default:dt(()=>[et(Ae(e.truncate(g.value,50)),1)]),_:2},1032,["to"])])]))),128))])}const FC=xe(LC,[["render",OC]]),NC=$e({name:"PortsItem",props:{ports:{type:Array,required:!0}}}),PC={class:"tags are-medium"};function DC(e,t,n,i,p,u){return q(),oe("div",PC,[(q(!0),oe(Se,null,ct(e.ports,f=>(q(),oe("span",{class:"tag",key:f.port},Ae(f.port),1))),128))])}const BC=xe(NC,[["render",DC]]),WC=$e({name:"ReverseDnsNames",props:{reverseDnsNames:{type:Array,required:!0}}}),HC={class:"tags are-medium"};function UC(e,t,n,i,p,u){const f=ue("router-link");return q(),oe("div",HC,[(q(!0),oe(Se,null,ct(e.reverseDnsNames,g=>(q(),Me(f,{class:"tag",key:g.name,to:{name:"Alerts",query:{reverseDnsName:g.name}}},{default:dt(()=>[et(Ae(g.name),1)]),_:2},1032,["to"]))),128))])}const zC=xe(WC,[["render",UC]]),VC=$e({name:"TagsItem",props:{tags:{type:Array,required:!0}}}),jC={class:"tags are-medium"};function GC(e,t,n,i,p,u){const f=ue("router-link");return q(),oe("div",jC,[(q(!0),oe(Se,null,ct(e.tags,g=>(q(),Me(f,{class:"tag is-info is-light",key:g,to:{name:"Alerts",query:{tag:g}}},{default:dt(()=>[et(Ae(g),1)]),_:2},1032,["to"]))),128))])}const KC=xe(VC,[["render",GC]]),YC=$e({name:"WhoisRecord",props:{whoisRecord:{type:Object,required:!0}}}),XC={class:"field is-grouped is-grouped-multiline"},ZC={class:"control"},QC={class:"tags has-addons are-medium"},JC=P("span",{class:"tag is-dark"},"Registrar",-1),qC={class:"tag is-light"},eS={class:"control"},tS={class:"tags has-addons are-medium"},nS=P("span",{class:"tag is-dark"},"Created on",-1),iS={class:"tag is-light"},rS={class:"control"},oS={class:"tags has-addons are-medium"},sS=P("span",{class:"tag is-dark"},"Updated on",-1),aS={class:"tag is-light"},lS={class:"control"},cS={class:"tags has-addons are-medium"},uS=P("span",{class:"tag is-dark"},"Exipres on",-1),hS={class:"tag is-light"};function fS(e,t,n,i,p,u){var f;return q(),oe("div",XC,[P("div",ZC,[P("div",QC,[JC,P("span",qC,Ae(((f=e.whoisRecord.registrar)==null?void 0:f.name)||"N/A"),1)])]),P("div",eS,[P("div",tS,[nS,P("span",iS,Ae(e.whoisRecord.createdOn||"N/A"),1)])]),P("div",rS,[P("div",oS,[sS,P("span",aS,Ae(e.whoisRecord.updatedOn||"N/A"),1)])]),P("div",lS,[P("div",cS,[uS,P("span",hS,Ae(e.whoisRecord.expiresOn||"N/A"),1)])])])}const dS=xe(YC,[["render",fS]]),pS=$e({name:"LinkItem",props:{data:{type:String,required:!0},link:{type:Object,required:!0}}});const gS=["href"],mS=["src"];function vS(e,t,n,i,p,u){return q(),oe("a",{href:e.link.href(e.data),class:"tag is-white",target:"_blank"},[P("img",{src:e.link.favicon(),alt:"favicon"},null,8,mS),P("span",null,Ae(e.link.name),1)],8,gS)}const yS=xe(pS,[["render",vS],["__scopeId","data-v-66270500"]]);class Rt{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 bS extends Rt{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 wS extends Rt{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 $S extends Rt{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 _S extends Rt{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 CS extends Rt{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 SS extends Rt{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 AS extends Rt{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 zd extends Rt{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 xS extends zd{constructor(){super();Le(this,"type");this.type="domain"}href(n){return this.baseURL+`/indicator/domain/${n}`}}class Vd extends Rt{constructor(){super();Le(this,"baseURL");Le(this,"name");Le(this,"type");this.baseURL="https://securitytrails.com",this.name="SecurityTrails",this.type="domain"}}class kS extends Vd{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/domain/${t}/dns`}}class ES extends Vd{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/list/ip/${t}`}}class RS extends Rt{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 $l extends Rt{constructor(){super();Le(this,"baseURL");Le(this,"name");Le(this,"type");this.baseURL="https://urlscan.io",this.name="urlscan.io",this.type="domain"}}class LS extends $l{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/domain/${t}`}}class TS extends $l{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/ip/${t}`}}class MS extends $l{constructor(){super(),this.type="url"}href(t){const n=encodeURIComponent(`page.url:"${t}" OR task.url:"${t}"`);return this.baseURL+`/search/#${n}`}}var jd={exports:{}};const IS={},OS=Object.freeze(Object.defineProperty({__proto__:null,default:IS},Symbol.toStringTag,{value:"Module"})),pu=Vf(OS);/**
770
772
  * [js-sha256]{@link https://github.com/emn178/js-sha256}
771
773
  *
772
774
  * @version 0.10.1
773
775
  * @author Chen, Yi-Cyuan [emn178@gmail.com]
774
776
  * @copyright Chen, Yi-Cyuan 2014-2023
775
777
  * @license MIT
776
- */(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=Mn:d&&(i=self);var p=!i.JS_SHA256_NO_COMMON_JS&&!0&&e.exports,g=!i.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",s="0123456789abcdef".split(""),h=[-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],l=["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 a=function($,R){return function(x){return new E(R,!0).update(x)[$]()}},f=function($){var R=a("hex",$);u&&(R=m(R,$)),R.create=function(){return new E($)},R.update=function(_){return R.create().update(_)};for(var x=0;x<l.length;++x){var k=l[x];R[k]=a(k,$)}return R},m=function($,R){var x=du,k=du.Buffer,_=R?"sha224":"sha256",v;k.from&&!i.JS_SHA256_NO_BUFFER_FROM?v=k.from:v=function(A){return new k(A)};var M=function(A){if(typeof A=="string")return x.createHash(_).update(A,"utf8").digest("hex");if(A==null)throw new Error(t);return A.constructor===ArrayBuffer&&(A=new Uint8Array(A)),Array.isArray(A)||ArrayBuffer.isView(A)||A.constructor===k?x.createHash(_).update(v(A)).digest("hex"):$(A)};return M},y=function($,R){return function(x,k){return new S(x,R,!0).update(k)[$]()}},b=function($){var R=y("hex",$);R.create=function(_){return new S(_,$)},R.update=function(_,v){return R.create(_).update(v)};for(var x=0;x<l.length;++x){var k=l[x];R[k]=y(k,$)}return R};function E($,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=$}E.prototype.update=function($){if(!this.finalized){var R,x=typeof $;if(x!=="string"){if(x==="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 k,_=0,v,M=$.length,A=this.blocks;_<M;){if(this.hashed&&(this.hashed=!1,A[0]=this.block,A[16]=A[1]=A[2]=A[3]=A[4]=A[5]=A[6]=A[7]=A[8]=A[9]=A[10]=A[11]=A[12]=A[13]=A[14]=A[15]=0),R)for(v=this.start;_<M&&v<64;++_)A[v>>2]|=$[_]<<o[v++&3];else for(v=this.start;_<M&&v<64;++_)k=$.charCodeAt(_),k<128?A[v>>2]|=k<<o[v++&3]:k<2048?(A[v>>2]|=(192|k>>6)<<o[v++&3],A[v>>2]|=(128|k&63)<<o[v++&3]):k<55296||k>=57344?(A[v>>2]|=(224|k>>12)<<o[v++&3],A[v>>2]|=(128|k>>6&63)<<o[v++&3],A[v>>2]|=(128|k&63)<<o[v++&3]):(k=65536+((k&1023)<<10|$.charCodeAt(++_)&1023),A[v>>2]|=(240|k>>18)<<o[v++&3],A[v>>2]|=(128|k>>12&63)<<o[v++&3],A[v>>2]|=(128|k>>6&63)<<o[v++&3],A[v>>2]|=(128|k&63)<<o[v++&3]);this.lastByteIndex=v,this.bytes+=v-this.start,v>=64?(this.block=A[16],this.start=v-64,this.hash(),this.hashed=!0):this.start=v}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},E.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var $=this.blocks,R=this.lastByteIndex;$[16]=this.block,$[R>>2]|=h[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()}},E.prototype.hash=function(){var $=this.h0,R=this.h1,x=this.h2,k=this.h3,_=this.h4,v=this.h5,M=this.h6,A=this.h7,w=this.blocks,L,T,O,I,F,D,W,G,U,H,X;for(L=16;L<64;++L)F=w[L-15],T=(F>>>7|F<<25)^(F>>>18|F<<14)^F>>>3,F=w[L-2],O=(F>>>17|F<<15)^(F>>>19|F<<13)^F>>>10,w[L]=w[L-16]+T+w[L-7]+O<<0;for(X=R&x,L=0;L<64;L+=4)this.first?(this.is224?(G=300032,F=w[0]-1413257819,A=F-150054599<<0,k=F+24177077<<0):(G=704751109,F=w[0]-210244248,A=F-1521486534<<0,k=F+143694565<<0),this.first=!1):(T=($>>>2|$<<30)^($>>>13|$<<19)^($>>>22|$<<10),O=(_>>>6|_<<26)^(_>>>11|_<<21)^(_>>>25|_<<7),G=$&R,I=G^$&x^X,W=_&v^~_&M,F=A+O+W+r[L]+w[L],D=T+I,A=k+F<<0,k=F+D<<0),T=(k>>>2|k<<30)^(k>>>13|k<<19)^(k>>>22|k<<10),O=(A>>>6|A<<26)^(A>>>11|A<<21)^(A>>>25|A<<7),U=k&$,I=U^k&R^G,W=A&_^~A&v,F=M+O+W+r[L+1]+w[L+1],D=T+I,M=x+F<<0,x=F+D<<0,T=(x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10),O=(M>>>6|M<<26)^(M>>>11|M<<21)^(M>>>25|M<<7),H=x&k,I=H^x&$^U,W=M&A^~M&_,F=v+O+W+r[L+2]+w[L+2],D=T+I,v=R+F<<0,R=F+D<<0,T=(R>>>2|R<<30)^(R>>>13|R<<19)^(R>>>22|R<<10),O=(v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7),X=R&x,I=X^R&k^H,W=v&M^~v&A,F=_+O+W+r[L+3]+w[L+3],D=T+I,_=$+F<<0,$=F+D<<0,this.chromeBugWorkAround=!0;this.h0=this.h0+$<<0,this.h1=this.h1+R<<0,this.h2=this.h2+x<<0,this.h3=this.h3+k<<0,this.h4=this.h4+_<<0,this.h5=this.h5+v<<0,this.h6=this.h6+M<<0,this.h7=this.h7+A<<0},E.prototype.hex=function(){this.finalize();var $=this.h0,R=this.h1,x=this.h2,k=this.h3,_=this.h4,v=this.h5,M=this.h6,A=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[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[k>>28&15]+s[k>>24&15]+s[k>>20&15]+s[k>>16&15]+s[k>>12&15]+s[k>>8&15]+s[k>>4&15]+s[k&15]+s[_>>28&15]+s[_>>24&15]+s[_>>20&15]+s[_>>16&15]+s[_>>12&15]+s[_>>8&15]+s[_>>4&15]+s[_&15]+s[v>>28&15]+s[v>>24&15]+s[v>>20&15]+s[v>>16&15]+s[v>>12&15]+s[v>>8&15]+s[v>>4&15]+s[v&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];return this.is224||(w+=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]),w},E.prototype.toString=E.prototype.hex,E.prototype.digest=function(){this.finalize();var $=this.h0,R=this.h1,x=this.h2,k=this.h3,_=this.h4,v=this.h5,M=this.h6,A=this.h7,w=[$>>24&255,$>>16&255,$>>8&255,$&255,R>>24&255,R>>16&255,R>>8&255,R&255,x>>24&255,x>>16&255,x>>8&255,x&255,k>>24&255,k>>16&255,k>>8&255,k&255,_>>24&255,_>>16&255,_>>8&255,_&255,v>>24&255,v>>16&255,v>>8&255,v&255,M>>24&255,M>>16&255,M>>8&255,M&255];return this.is224||w.push(A>>24&255,A>>16&255,A>>8&255,A&255),w},E.prototype.array=E.prototype.digest,E.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,x){var k,_=typeof $;if(_==="string"){var v=[],M=$.length,A=0,w;for(k=0;k<M;++k)w=$.charCodeAt(k),w<128?v[A++]=w:w<2048?(v[A++]=192|w>>6,v[A++]=128|w&63):w<55296||w>=57344?(v[A++]=224|w>>12,v[A++]=128|w>>6&63,v[A++]=128|w&63):(w=65536+((w&1023)<<10|$.charCodeAt(++k)&1023),v[A++]=240|w>>18,v[A++]=128|w>>12&63,v[A++]=128|w>>6&63,v[A++]=128|w&63);$=v}else if(_==="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 E(R,!0).update($).array());var L=[],T=[];for(k=0;k<64;++k){var O=$[k]||0;L[k]=92^O,T[k]=54^O}E.call(this,R,x),this.update(T),this.oKeyPad=L,this.inner=!0,this.sharedMemory=x}S.prototype=new E,S.prototype.finalize=function(){if(E.prototype.finalize.call(this),this.inner){this.inner=!1;var $=this.array();E.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update($),E.prototype.finalize.call(this)}};var C=f();C.sha256=C,C.sha224=f(!0),C.sha256.hmac=b(),C.sha224.hmac=b(!0),p?e.exports=C:(i.sha256=C.sha256,i.sha224=C.sha224)})()})(Vd);var IS=Vd.exports,OS=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},_l={},FS=Object.prototype.hasOwnProperty,NS;function pu(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return null}}function gu(e){try{return encodeURIComponent(e)}catch{return null}}function PS(e){for(var t=/([^=?#&]+)=?([^&]*)/g,n={},i;i=t.exec(e);){var d=pu(i[1]),u=pu(i[2]);d===null||u===null||d in n||(n[d]=u)}return n}function DS(e,t){t=t||"";var n=[],i,d;typeof t!="string"&&(t="?");for(d in e)if(FS.call(e,d)){if(i=e[d],!i&&(i===null||i===NS||isNaN(i))&&(i=""),d=gu(d),i=gu(i),d===null||i===null)continue;n.push(d+"="+i)}return n.length?t+n.join("&"):""}_l.stringify=DS;_l.parse=PS;var jd=OS,ss=_l,BS=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,Gd=/[\n\r\t]/g,WS=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,Kd=/:\d+$/,HS=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,US=/^[a-zA-Z]:/;function Cl(e){return(e||"").toString().replace(BS,"")}var ma=[["#","hash"],["?","query"],function(t,n){return Ut(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]],mu={hash:1,query:1};function Yd(e){var t;typeof window<"u"?t=window:typeof Mn<"u"?t=Mn: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 jt(unescape(e.pathname),{});else if(d==="string"){i=new jt(e,{});for(u in mu)delete i[u]}else if(d==="object"){for(u in e)u in mu||(i[u]=e[u]);i.slashes===void 0&&(i.slashes=WS.test(e.href))}return i}function Ut(e){return e==="file:"||e==="ftp:"||e==="http:"||e==="https:"||e==="ws:"||e==="wss:"}function Xd(e,t){e=Cl(e),e=e.replace(Gd,""),t=t||{};var n=HS.exec(e),i=n[1]?n[1].toLowerCase():"",d=!!n[2],u=!!n[3],p=0,g;return d?u?(g=n[2]+n[3]+n[4],p=n[2].length+n[3].length):(g=n[2]+n[4],p=n[2].length):u?(g=n[3]+n[4],p=n[3].length):g=n[4],i==="file:"?p>=2&&(g=g.slice(2)):Ut(i)?g=n[4]:i?d&&(g=g.slice(2)):p>=2&&Ut(t.protocol)&&(g=n[4]),{protocol:i,slashes:d||Ut(i),slashesCount:p,rest:g}}function zS(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,p=0;i--;)n[i]==="."?n.splice(i,1):n[i]===".."?(n.splice(i,1),p++):p&&(i===0&&(u=!0),n.splice(i,1),p--);return u&&n.unshift(""),(d==="."||d==="..")&&n.push(""),n.join("/")}function jt(e,t,n){if(e=Cl(e),e=e.replace(Gd,""),!(this instanceof jt))return new jt(e,t,n);var i,d,u,p,g,s,h=ma.slice(),o=typeof t,r=this,l=0;for(o!=="object"&&o!=="string"&&(n=t,t=null),n&&typeof n!="function"&&(n=ss.parse),t=Yd(t),d=Xd(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||US.test(e))||!d.slashes&&(d.protocol||d.slashesCount<2||!Ut(r.protocol)))&&(h[3]=[/(.*)/,"pathname"]);l<h.length;l++){if(p=h[l],typeof p=="function"){e=p(e,r);continue}u=p[0],s=p[1],u!==u?r[s]=e:typeof u=="string"?(g=u==="@"?e.lastIndexOf(u):e.indexOf(u),~g&&(typeof p[2]=="number"?(r[s]=e.slice(0,g),e=e.slice(g+p[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&&p[3]&&t[s]||"",p[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=zS(r.pathname,t.pathname)),r.pathname.charAt(0)!=="/"&&Ut(r.protocol)&&(r.pathname="/"+r.pathname),jd(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:"&&Ut(r.protocol)&&r.host?r.protocol+"//"+r.host:"null",r.href=r.toString()}function VS(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,jd(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,Kd.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 p=0;p<ma.length;p++){var g=ma[p];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:"&&Ut(i.protocol)&&i.host?i.protocol+"//"+i.host:"null",i.href=i.toString(),i}function jS(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||Ut(n.protocol)?"//":"");return n.username?(u+=n.username,n.password&&(u+=":"+n.password),u+="@"):n.password?(u+=":"+n.password,u+="@"):n.protocol!=="file:"&&Ut(n.protocol)&&!i&&n.pathname!=="/"&&(u+="@"),(i[i.length-1]===":"||Kd.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}jt.prototype={set:VS,toString:jS};jt.extractProtocol=Xd;jt.location=Yd;jt.trimLeft=Cl;jt.qs=ss;var GS=jt;const KS=cn(GS);class as extends Rt{constructor(){super();Le(this,"baseURL");Le(this,"name");Le(this,"type");this.name="VirusTotal",this.baseURL="https://www.virustotal.com",this.type="domain"}}class YS extends as{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/gui/domain/${t}/detection`}}class XS extends as{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/gui/ip-address/${t}/details`}}class ZS extends as{constructor(){super(),this.type="url"}href(t){const n=IS.sha256(this.normalizeURL(t));return this.baseURL+`/gui/url/${n}/details`}normalizeURL(t){return new KS(t).pathname==="/"&&!t.endsWith("/")?`${t}/`:t}}class QS extends as{constructor(){super(),this.type="hash"}href(t){return this.baseURL+`/gui/file/${t}/details`}}const JS=[new vS,new yS,new bS,new $S,new wS,new _S,new CS,new SS,new Ud,new AS,new xS,new kS,new ES,new RS,new LS,new YS,new QS,new XS,new ZS],qS=$e({name:"LinksItem",components:{LinkComponent:mS},props:{data:{type:String,required:!0},type:{type:String,required:!0}},setup(e){const t=JS;return{selectedLinks:Ee(()=>e.type===void 0?t:t.filter(i=>i.type===e.type))}}}),eA={class:"tags are-medium"};function tA(e,t,n,i,d,u){const p=ue("LinkComponent");return q(),oe("div",eA,[(q(!0),oe(Se,null,ct(e.selectedLinks,g=>(q(),Me(p,{data:e.data,link:g,key:g.name},null,8,["data","link"]))),128))])}const nA=xe(qS,[["render",tA]]),iA=$e({name:"ArtifactItem",props:{artifact:{type:Object,required:!0}},components:{Alerts:Wd,AS:$C,DnsRecords:IC,Links:nA,Loading:hn,ReverseDnsNames:HC,Tags:jC,VueJsonPretty:Bd,WhoisRecord:hS,CPEs:AC,Ports:PC},emits:["refresh"],setup(e,t){const n=Te(void 0),i=Te(void 0),d=Te(!1),u=Ri(),p=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}`}),g=f=>{if(f!==void 0)return`https://maps.google.co.jp/maps?output=embed&q=${f.lat},${f.long}&z=3`},s=H1(),h=wl(),o=Ed(),r=B1(),l=async()=>{window.confirm(`Are you sure you want to delete ${e.artifact.data}?`)&&(await o.perform(e.artifact.id),u.push("/"))},c=async()=>{await r.perform(e.artifact.id),t.emit("refresh")};return nt(async()=>{if(e.artifact.dataType==="ip"){let f;if(e.artifact.geolocation===null){const m=await s.perform(e.artifact.data);f=b$(m),i.value=m.countryCode}else f=Fd(e.artifact.geolocation.countryCode);n.value=g(f)}}),{countryCode:i,enrichArtifactTask:r,getAlertsTask:h,googleMapSrc:n,showMetadata:d,urlscanLiveshotSrc:p,deleteArtifact:l,enrichArtifact:c,flipShowMetadata:()=>{d.value=!d.value}}}});const Ze=e=>(Ka("data-v-3bbfb14d"),e=e(),Ya(),e),rA={class:"column"},oA={key:0},sA=Ze(()=>P("hr",null,null,-1)),aA=Ze(()=>P("h2",{class:"is-size-2 mb-4"},"Artifact",-1)),lA={class:"columns"},cA={key:0,class:"column is-half"},uA={key:0},hA={class:"is-size-4 mb-2"},fA={class:"has-text-grey"},dA=["src"],pA={key:1},gA=Ze(()=>P("h4",{class:"is-size-4 mb-2"},[et(" Live screenshot "),P("span",{class:"has-text-grey"},"Hover to expand")],-1)),mA=["src"],vA={class:"column"},yA={class:"block"},bA=Ze(()=>P("h4",{class:"is-size-4 mb-2"},"Information",-1)),wA={class:"table is-fullwidth is-completely-borderless"},$A=Ze(()=>P("th",null,"ID",-1)),_A={class:"buttons is-pulled-right"},CA=Ze(()=>P("span",null,"Enrich",-1)),SA={class:"icon is-small"},AA=Ze(()=>P("span",null,"Metadata",-1)),xA={class:"icon is-small"},kA=Ze(()=>P("span",null,"Delete",-1)),EA={class:"icon is-small"},RA=Ze(()=>P("th",null,"Data type",-1)),LA=Ze(()=>P("th",null,"Data",-1)),TA=Ze(()=>P("th",null,"Source",-1)),MA={key:0},IA=Ze(()=>P("th",null,"Tags",-1)),OA={key:0},FA={class:"modal is-active"},NA={class:"modal-card"},PA={class:"modal-card-head"},DA=Ze(()=>P("p",{class:"modal-card-title"},"Metadata",-1)),BA={class:"modal-card-body"},WA={key:1,class:"block"},HA=Ze(()=>P("h4",{class:"is-size-4 mb-2"},"AS",-1)),UA={key:2,class:"block"},zA=Ze(()=>P("h4",{class:"is-size-4 mb-2"},"Reverse DNS",-1)),VA={key:3,class:"block"},jA=Ze(()=>P("h4",{class:"is-size-4 mb-2"},"DNS records",-1)),GA={key:4,class:"block"},KA=Ze(()=>P("h4",{class:"is-size-4 mb-2"},"CPEs",-1)),YA={key:5,class:"block"},XA=Ze(()=>P("h4",{class:"is-size-4 mb-2"},"Ports",-1)),ZA={key:6,class:"block"},QA=Ze(()=>P("h4",{class:"is-size-4 mb-2"},"Whois record",-1)),JA={class:"block"},qA=Ze(()=>P("h4",{class:"is-size-4 mb-2"},"Links",-1)),e2=Ze(()=>P("hr",null,null,-1)),t2={class:"column"},n2=Ze(()=>P("h2",{class:"is-size-2 mb-4"},"Related alerts",-1));function i2(e,t,n,i,d,u){var b;const p=ue("Loading"),g=ue("font-awesome-icon"),s=ue("Tags"),h=ue("VueJsonPretty"),o=ue("AS"),r=ue("ReverseDnsNames"),l=ue("DnsRecords"),c=ue("CPEs"),a=ue("Ports"),f=ue("WhoisRecord"),m=ue("Links"),y=ue("Alerts");return q(),oe(Se,null,[P("div",rA,[e.enrichArtifactTask.isRunning?(q(),oe("div",oA,[he(p),sA])):we("",!0),aA,P("div",lA,[e.googleMapSrc!==void 0||e.urlscanLiveshotSrc!==void 0?(q(),oe("div",cA,[e.googleMapSrc?(q(),oe("div",uA,[P("h4",hA,[et(" Geolocation "),P("span",fA,Ae(e.countryCode||((b=e.artifact.geolocation)==null?void 0:b.countryCode)),1)]),P("iframe",{class:"mb-4",src:e.googleMapSrc,width:"100%",height:"240px"},null,8,dA)])):we("",!0),e.urlscanLiveshotSrc?(q(),oe("div",pA,[gA,P("img",{src:e.urlscanLiveshotSrc,class:"liveshot",alt:"liveshot"},null,8,mA)])):we("",!0)])):we("",!0),P("div",vA,[P("div",yA,[bA,P("table",wA,[P("tr",null,[$A,P("td",null,[et(Ae(e.artifact.id)+" ",1),P("span",_A,[P("button",{class:"button is-primary is-light is-small",onClick:t[0]||(t[0]=(...E)=>e.enrichArtifact&&e.enrichArtifact(...E))},[CA,P("span",SA,[he(g,{icon:"lightbulb"})])]),e.artifact.metadata?(q(),oe("button",{key:0,class:"button is-info is-light is-small",onClick:t[1]||(t[1]=(...E)=>e.flipShowMetadata&&e.flipShowMetadata(...E))},[AA,P("span",xA,[he(g,{icon:"info-circle"})])])):we("",!0),P("button",{class:"button is-light is-small",onClick:t[2]||(t[2]=(...E)=>e.deleteArtifact&&e.deleteArtifact(...E))},[kA,P("span",EA,[he(g,{icon:"times"})])])])])]),P("tr",null,[RA,P("td",null,Ae(e.artifact.dataType),1)]),P("tr",null,[LA,P("td",null,Ae(e.artifact.data),1)]),P("tr",null,[TA,P("td",null,Ae(e.artifact.source),1)]),e.artifact.tags.length>0?(q(),oe("tr",MA,[IA,P("td",null,[he(s,{tags:e.artifact.tags},null,8,["tags"])])])):we("",!0)])]),e.artifact.metadata&&e.showMetadata?(q(),oe("div",OA,[P("div",FA,[P("div",{class:"modal-background",onClick:t[3]||(t[3]=(...E)=>e.flipShowMetadata&&e.flipShowMetadata(...E))}),P("div",NA,[P("header",PA,[DA,P("button",{class:"delete","aria-label":"close",onClick:t[4]||(t[4]=(...E)=>e.flipShowMetadata&&e.flipShowMetadata(...E))})]),P("section",BA,[he(h,{data:e.artifact.metadata},null,8,["data"])])])])])):we("",!0)])]),e.artifact.autonomousSystem?(q(),oe("div",WA,[HA,he(o,{autonomousSystem:e.artifact.autonomousSystem},null,8,["autonomousSystem"])])):we("",!0),e.artifact.reverseDnsNames?(q(),oe("div",UA,[zA,he(r,{reverseDnsNames:e.artifact.reverseDnsNames},null,8,["reverseDnsNames"])])):we("",!0),e.artifact.dnsRecords?(q(),oe("div",VA,[jA,he(l,{dnsRecords:e.artifact.dnsRecords},null,8,["dnsRecords"])])):we("",!0),e.artifact.cpes?(q(),oe("div",GA,[KA,he(c,{cpes:e.artifact.cpes},null,8,["cpes"])])):we("",!0),e.artifact.ports?(q(),oe("div",YA,[XA,he(a,{ports:e.artifact.ports},null,8,["ports"])])):we("",!0),e.artifact.whoisRecord?(q(),oe("div",ZA,[QA,he(f,{whoisRecord:e.artifact.whoisRecord},null,8,["whoisRecord"])])):we("",!0),P("div",JA,[qA,he(m,{data:e.artifact.data,type:e.artifact.dataType},null,8,["data","type"])])]),e2,P("div",t2,[n2,he(y,{artifact:e.artifact.data},null,8,["artifact"])])],64)}const r2=xe(iA,[["render",i2],["__scopeId","data-v-3bbfb14d"]]),o2=$e({name:"ArtifactWrapper",components:{ArtifactComponent:r2,Loading:hn,ErrorMessage:un},props:{id:{type:String,required:!0}},setup(e){const t=D1(),n=async()=>{await t.perform(e.id)},i=async()=>{await n()};return nt(async()=>{await n()}),Ye(e,async()=>{await n()}),{getArtifactTask:t,refresh:i}}});function s2(e,t,n,i,d,u){var h,o;const p=ue("Loading"),g=ue("ErrorMessage"),s=ue("ArtifactComponent");return q(),oe(Se,null,[e.getArtifactTask.isRunning?(q(),Me(p,{key:0})):we("",!0),e.getArtifactTask.isError?(q(),Me(g,{key:1,error:(h=e.getArtifactTask.last)==null?void 0:h.error},null,8,["error"])):we("",!0),(o=e.getArtifactTask.last)!=null&&o.value?(q(),Me(s,{key:2,artifact:e.getArtifactTask.last.value,onRefresh:e.refresh},null,8,["artifact","onRefresh"])):we("",!0)],64)}const a2=xe(o2,[["render",s2]]),l2=$e({name:"ArtifactView",components:{Artifact:a2},props:{id:{type:String,required:!0}},setup(e){const t=()=>{ei(`Artifact:${e.id} - Mihari`)};nt(()=>{t()}),Ye(()=>e.id,()=>{t()})}});function c2(e,t,n,i,d,u){const p=ue("Artifact",!0);return q(),Me(p,{id:e.id},null,8,["id"])}const u2=xe(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=P("thead",null,[P("tr",null,[P("th",null,"Name"),P("th",null,"Type"),P("th",null,"Configured"),P("th",null,"Key-value(s)")])],-1),m2={key:0,class:"button is-success is-small ml-1"},v2={class:"icon is-small"},y2=P("span",null,"Yes",-1),b2={key:1,class:"button is-warning is-small ml-1"},w2={class:"icon is-small"},$2=P("span",null,"No",-1),_2={key:0},C2={key:1};function S2(e,t,n,i,d,u){const p=ue("font-awesome-icon");return q(),oe("div",f2,[P("div",d2,[P("table",p2,[g2,P("tbody",null,[(q(!0),oe(Se,null,ct(e.configs,g=>(q(),oe("tr",{key:g.name},[P("td",null,Ae(g.name),1),P("td",null,Ae(g.type),1),P("td",null,[g.isConfigured?(q(),oe("button",m2,[P("span",v2,[he(p,{icon:"check"})]),y2])):(q(),oe("button",b2,[P("span",w2,[he(p,{icon:"exclamation"})]),$2]))]),P("td",null,[P("ul",null,[(q(!0),oe(Se,null,ct(g.values,(s,h)=>(q(),oe("li",{key:h},[P("strong",null,Ae(s.key),1),et(": "),s.value?(q(),oe("code",_2,Ae(s.value),1)):(q(),oe("span",C2,"N/A"))]))),128))])])]))),128))])])])])}const A2=xe(h2,[["render",S2]]),x2=$e({name:"ConfigsWrapper",components:{Configs:A2,Loading:hn,ErrorMessage:un},setup(){const e=W1();return nt(async()=>{await e.perform()}),{getConfigsTask:e}}});function k2(e,t,n,i,d,u){var h,o;const p=ue("Loading"),g=ue("ErrorMessage"),s=ue("Configs");return q(),oe(Se,null,[e.getConfigsTask.isRunning?(q(),Me(p,{key:0})):we("",!0),e.getConfigsTask.isError?(q(),Me(g,{key:1,error:(h=e.getConfigsTask.last)==null?void 0:h.error},null,8,["error"])):we("",!0),(o=e.getConfigsTask.last)!=null&&o.value?(q(),Me(s,{key:2,configs:e.getConfigsTask.last.value},null,8,["configs"])):we("",!0)],64)}const E2=xe(x2,[["render",k2]]),R2=$e({name:"ConfigView",components:{Configs:E2},setup(){ei("Config - Mihari")}});function L2(e,t,n,i,d,u){const p=ue("Configs",!0);return q(),Me(p)}const T2=xe(R2,[["render",L2]]);var Zd={exports:{}};(function(e,t){(function(){var n="ace",i=function(){return this}();!i&&typeof window<"u"&&(i=window);var d=function(o,r,l){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&&(l=r),d.modules[o]||(d.payloads[o]=l,d.modules[o]=null)};d.modules={},d.payloads={};var u=function(o,r,l){if(typeof r=="string"){var c=s(o,r);if(c!=null)return l&&l(),c}else if(Object.prototype.toString.call(r)==="[object Array]"){for(var a=[],f=0,m=r.length;f<m;++f){var y=s(o,r[f]);if(y==null&&p.original)return;a.push(y)}return l&&l.apply(null,a)||!0}},p=function(o,r){var l=u("",o,r);return l==null&&p.original?p.original.apply(this,arguments):l},g=function(o,r){if(r.indexOf("!")!==-1){var l=r.split("!");return g(o,l[0])+"!"+g(o,l[1])}if(r.charAt(0)=="."){var c=o.split("/").slice(0,-1).join("/");for(r=c+"/"+r;r.indexOf(".")!==-1&&a!=r;){var a=r;r=r.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return r},s=function(o,r){r=g(o,r);var l=d.modules[r];if(!l){if(l=d.payloads[r],typeof l=="function"){var c={},a={id:r,uri:"",exports:c,packaged:!0},f=function(y,b){return u(r,y,b)},m=l(f,c,a);c=m||a.exports,d.modules[r]=c,delete d.payloads[r]}l=d.modules[r]=c||l}return l};function h(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)&&(p.original=r.require,r.require=p,r.require.packaged=!0)}h(n)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(n,i,d){function u(p,g,s){Object.defineProperty(p,g,{value:s,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||u(String.prototype,"startsWith",function(p,g){return g=g||0,this.lastIndexOf(p,g)===g}),String.prototype.endsWith||u(String.prototype,"endsWith",function(p,g){var s=this;(g===void 0||g>s.length)&&(g=s.length),g-=p.length;var h=s.indexOf(p,g);return h!==-1&&h===g}),String.prototype.repeat||u(String.prototype,"repeat",function(p){for(var g="",s=this;p>0;)p&1&&(g+=s),(p>>=1)&&(s+=s);return g}),String.prototype.includes||u(String.prototype,"includes",function(p,g){return this.indexOf(p,g)!=-1}),Object.assign||(Object.assign=function(p){if(p==null)throw new TypeError("Cannot convert undefined or null to object");for(var g=Object(p),s=1;s<arguments.length;s++){var h=arguments[s];h!=null&&Object.keys(h).forEach(function(o){g[o]=h[o]})}return g}),Object.values||(Object.values=function(p){return Object.keys(p).map(function(g){return p[g]})}),Array.prototype.find||u(Array.prototype,"find",function(p){for(var g=this.length,s=arguments[1],h=0;h<g;h++){var o=this[h];if(p.call(s,o,h,this))return o}}),Array.prototype.findIndex||u(Array.prototype,"findIndex",function(p){for(var g=this.length,s=arguments[1],h=0;h<g;h++){var o=this[h];if(p.call(s,o,h,this))return h}}),Array.prototype.includes||u(Array.prototype,"includes",function(p,g){return this.indexOf(p,g)!=-1}),Array.prototype.fill||u(Array.prototype,"fill",function(p){for(var g=this,s=g.length>>>0,h=arguments[1],o=h>>0,r=o<0?Math.max(s+o,0):Math.min(o,s),l=arguments[2],c=l===void 0?s:l>>0,a=c<0?Math.max(s+c,0):Math.min(c,s);r<a;)g[r]=p,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(p){if(typeof p!="object"||!p)return p;var g;if(Array.isArray(p)){g=[];for(var s=0;s<p.length;s++)g[s]=u(p[s]);return g}if(Object.prototype.toString.call(p)!=="[object Object]")return p;g={};for(var s in p)g[s]=u(p[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 h="";s>0;)s&1&&(h+=g),(s>>=1)&&(g+=g);return h};var u=/^\s\s*/,p=/\s\s*$/;i.stringTrimLeft=function(g){return g.replace(u,"")},i.stringTrimRight=function(g){return g.replace(p,"")},i.copyObject=function(g){var s={};for(var h in g)s[h]=g[h];return s},i.copyArray=function(g){for(var s=[],h=0,o=g.length;h<o;h++)g[h]&&typeof g[h]=="object"?s[h]=this.copyObject(g[h]):s[h]=g[h];return s},i.deepCopy=n("./deep_copy").deepCopy,i.arrayToMap=function(g){for(var s={},h=0;h<g.length;h++)s[g[h]]=1;return s},i.createMap=function(g){var s=Object.create(null);for(var h in g)s[h]=g[h];return s},i.arrayRemove=function(g,s){for(var h=0;h<=g.length;h++)s===g[h]&&g.splice(h,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 h=[];return g.replace(s,function(o){h.push({offset:arguments[arguments.length-2],length:o.length})}),h},i.deferredCall=function(g){var s=null,h=function(){s=null,g()},o=function(r){return o.cancel(),s=setTimeout(h,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 h=null,o=function(){h=null,g()},r=function(l){h==null&&(h=setTimeout(o,l||s))};return r.delay=function(l){h&&clearTimeout(h),h=setTimeout(o,l||s)},r.schedule=r,r.call=function(){this.cancel(),g()},r.cancel=function(){h&&clearTimeout(h),h=null},r.isPending=function(){return h},r},i.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},i.supportsUnicodeFlag=function(){try{new RegExp("^.$","u")}catch{return!1}return!0}}),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:{},p=(/mac|win|linux/i.exec(u.platform)||["other"])[0].toLowerCase(),g=u.userAgent||"",s=u.appName||"";i.isWin=p=="win",i.isMac=p=="mac",i.isLinux=p=="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.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"),p="http://www.w3.org/1999/xhtml";i.buildDom=function l(c,a,f){if(typeof c=="string"&&c){var m=document.createTextNode(c);return a&&a.appendChild(m),m}if(!Array.isArray(c))return c&&c.appendChild&&a&&a.appendChild(c),c;if(typeof c[0]!="string"||!c[0]){for(var y=[],b=0;b<c.length;b++){var E=l(c[b],a,f);E&&y.push(E)}return y}var S=document.createElement(c[0]),C=c[1],$=1;C&&typeof C=="object"&&!Array.isArray(C)&&($=2);for(var b=$;b<c.length;b++)l(c[b],S,f);return $==2&&Object.keys(C).forEach(function(R){var x=C[R];R==="class"?S.className=Array.isArray(x)?x.join(" "):x:typeof x=="function"||R=="value"||R[0]=="$"?S[R]=x:R==="ref"?f&&(f[x]=S):R==="style"?typeof x=="string"&&(S.style.cssText=x):x!=null&&S.setAttribute(R,x)}),a&&a.appendChild(S),S},i.getDocumentHead=function(l){return l||(l=document),l.head||l.getElementsByTagName("head")[0]||l.documentElement},i.createElement=function(l,c){return document.createElementNS?document.createElementNS(c||p,l):document.createElement(l)},i.removeChildren=function(l){l.innerHTML=""},i.createTextNode=function(l,c){var a=c?c.ownerDocument:document;return a.createTextNode(l)},i.createFragment=function(l){var c=l?l.ownerDocument:document;return c.createDocumentFragment()},i.hasCssClass=function(l,c){var a=(l.className+"").split(/\s+/g);return a.indexOf(c)!==-1},i.addCssClass=function(l,c){i.hasCssClass(l,c)||(l.className+=" "+c)},i.removeCssClass=function(l,c){for(var a=l.className.split(/\s+/g);;){var f=a.indexOf(c);if(f==-1)break;a.splice(f,1)}l.className=a.join(" ")},i.toggleCssClass=function(l,c){for(var a=l.className.split(/\s+/g),f=!0;;){var m=a.indexOf(c);if(m==-1)break;f=!1,a.splice(m,1)}return f&&a.push(c),l.className=a.join(" "),f},i.setCssClass=function(l,c,a){a?i.addCssClass(l,c):i.removeCssClass(l,c)},i.hasCssString=function(l,c){var a=0,f;if(c=c||document,f=c.querySelectorAll("style")){for(;a<f.length;)if(f[a++].id===l)return!0}},i.removeElementById=function(l,c){c=c||document,c.getElementById(l)&&c.getElementById(l).remove()};var g,s=[];i.useStrictCSP=function(l){g=l,l==!1?h():s||(s=[])};function h(){var l=s;s=null,l&&l.forEach(function(c){o(c[0],c[1])})}function o(l,c,a){if(!(typeof document>"u")){if(s){if(a)h();else if(a===!1)return s.push([l,c])}if(!g){var f=a;!a||!a.getRootNode?f=document:(f=a.getRootNode(),(!f||f==a)&&(f=document));var m=f.ownerDocument||f;if(c&&i.hasCssString(c,f))return null;c&&(l+=`
777
- /*# sourceURL=ace/css/`+c+" */");var y=i.createElement("style");y.appendChild(m.createTextNode(l)),c&&(y.id=c),f==m&&(f=i.getDocumentHead(m)),f.insertBefore(y,f.firstChild)}}}if(i.importCssString=o,i.importCssStylsheet=function(l,c){i.buildDom(["link",{rel:"stylesheet",href:l}],i.getDocumentHead(c))},i.scrollbarWidth=function(l){var c=i.createElement("ace_inner");c.style.width="100%",c.style.minWidth="0px",c.style.height="200px",c.style.display="block";var a=i.createElement("ace_outer"),f=a.style;f.position="absolute",f.left="-10000px",f.overflow="hidden",f.width="200px",f.minWidth="0px",f.height="150px",f.display="block",a.appendChild(c);var m=l&&l.documentElement||document&&document.documentElement;if(!m)return 0;m.appendChild(a);var y=c.offsetWidth;f.overflow="scroll";var b=c.offsetWidth;return y===b&&(b=a.clientWidth),m.removeChild(a),y-b},i.computedStyle=function(l,c){return window.getComputedStyle(l,"")||{}},i.setStyle=function(l,c,a){l[c]!==a&&(l[c]=a)},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(l,c,a){l.style.transform="translate("+Math.round(c)+"px, "+Math.round(a)+"px)"}:i.translate=function(l,c,a){l.style.top=Math.round(a)+"px",l.style.left=Math.round(c)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(n,i,d){/*
778
+ */(function(e){(function(){var t="input is invalid type",n=typeof window=="object",i=n?window:{};i.JS_SHA256_NO_WINDOW&&(n=!1);var p=!n&&typeof self=="object",u=!i.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;u?i=Mn:p&&(i=self);var f=!i.JS_SHA256_NO_COMMON_JS&&!0&&e.exports,g=!i.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",s="0123456789abcdef".split(""),h=[-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],l=["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 a=function($,R){return function(x){return new E(R,!0).update(x)[$]()}},d=function($){var R=a("hex",$);u&&(R=m(R,$)),R.create=function(){return new E($)},R.update=function(_){return R.create().update(_)};for(var x=0;x<l.length;++x){var k=l[x];R[k]=a(k,$)}return R},m=function($,R){var x=pu,k=pu.Buffer,_=R?"sha224":"sha256",v;k.from&&!i.JS_SHA256_NO_BUFFER_FROM?v=k.from:v=function(A){return new k(A)};var M=function(A){if(typeof A=="string")return x.createHash(_).update(A,"utf8").digest("hex");if(A==null)throw new Error(t);return A.constructor===ArrayBuffer&&(A=new Uint8Array(A)),Array.isArray(A)||ArrayBuffer.isView(A)||A.constructor===k?x.createHash(_).update(v(A)).digest("hex"):$(A)};return M},y=function($,R){return function(x,k){return new S(x,R,!0).update(k)[$]()}},b=function($){var R=y("hex",$);R.create=function(_){return new S(_,$)},R.update=function(_,v){return R.create(_).update(v)};for(var x=0;x<l.length;++x){var k=l[x];R[k]=y(k,$)}return R};function E($,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=$}E.prototype.update=function($){if(!this.finalized){var R,x=typeof $;if(x!=="string"){if(x==="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 k,_=0,v,M=$.length,A=this.blocks;_<M;){if(this.hashed&&(this.hashed=!1,A[0]=this.block,A[16]=A[1]=A[2]=A[3]=A[4]=A[5]=A[6]=A[7]=A[8]=A[9]=A[10]=A[11]=A[12]=A[13]=A[14]=A[15]=0),R)for(v=this.start;_<M&&v<64;++_)A[v>>2]|=$[_]<<o[v++&3];else for(v=this.start;_<M&&v<64;++_)k=$.charCodeAt(_),k<128?A[v>>2]|=k<<o[v++&3]:k<2048?(A[v>>2]|=(192|k>>6)<<o[v++&3],A[v>>2]|=(128|k&63)<<o[v++&3]):k<55296||k>=57344?(A[v>>2]|=(224|k>>12)<<o[v++&3],A[v>>2]|=(128|k>>6&63)<<o[v++&3],A[v>>2]|=(128|k&63)<<o[v++&3]):(k=65536+((k&1023)<<10|$.charCodeAt(++_)&1023),A[v>>2]|=(240|k>>18)<<o[v++&3],A[v>>2]|=(128|k>>12&63)<<o[v++&3],A[v>>2]|=(128|k>>6&63)<<o[v++&3],A[v>>2]|=(128|k&63)<<o[v++&3]);this.lastByteIndex=v,this.bytes+=v-this.start,v>=64?(this.block=A[16],this.start=v-64,this.hash(),this.hashed=!0):this.start=v}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},E.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var $=this.blocks,R=this.lastByteIndex;$[16]=this.block,$[R>>2]|=h[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()}},E.prototype.hash=function(){var $=this.h0,R=this.h1,x=this.h2,k=this.h3,_=this.h4,v=this.h5,M=this.h6,A=this.h7,w=this.blocks,L,T,O,I,F,D,W,G,U,H,X;for(L=16;L<64;++L)F=w[L-15],T=(F>>>7|F<<25)^(F>>>18|F<<14)^F>>>3,F=w[L-2],O=(F>>>17|F<<15)^(F>>>19|F<<13)^F>>>10,w[L]=w[L-16]+T+w[L-7]+O<<0;for(X=R&x,L=0;L<64;L+=4)this.first?(this.is224?(G=300032,F=w[0]-1413257819,A=F-150054599<<0,k=F+24177077<<0):(G=704751109,F=w[0]-210244248,A=F-1521486534<<0,k=F+143694565<<0),this.first=!1):(T=($>>>2|$<<30)^($>>>13|$<<19)^($>>>22|$<<10),O=(_>>>6|_<<26)^(_>>>11|_<<21)^(_>>>25|_<<7),G=$&R,I=G^$&x^X,W=_&v^~_&M,F=A+O+W+r[L]+w[L],D=T+I,A=k+F<<0,k=F+D<<0),T=(k>>>2|k<<30)^(k>>>13|k<<19)^(k>>>22|k<<10),O=(A>>>6|A<<26)^(A>>>11|A<<21)^(A>>>25|A<<7),U=k&$,I=U^k&R^G,W=A&_^~A&v,F=M+O+W+r[L+1]+w[L+1],D=T+I,M=x+F<<0,x=F+D<<0,T=(x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10),O=(M>>>6|M<<26)^(M>>>11|M<<21)^(M>>>25|M<<7),H=x&k,I=H^x&$^U,W=M&A^~M&_,F=v+O+W+r[L+2]+w[L+2],D=T+I,v=R+F<<0,R=F+D<<0,T=(R>>>2|R<<30)^(R>>>13|R<<19)^(R>>>22|R<<10),O=(v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7),X=R&x,I=X^R&k^H,W=v&M^~v&A,F=_+O+W+r[L+3]+w[L+3],D=T+I,_=$+F<<0,$=F+D<<0,this.chromeBugWorkAround=!0;this.h0=this.h0+$<<0,this.h1=this.h1+R<<0,this.h2=this.h2+x<<0,this.h3=this.h3+k<<0,this.h4=this.h4+_<<0,this.h5=this.h5+v<<0,this.h6=this.h6+M<<0,this.h7=this.h7+A<<0},E.prototype.hex=function(){this.finalize();var $=this.h0,R=this.h1,x=this.h2,k=this.h3,_=this.h4,v=this.h5,M=this.h6,A=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[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[k>>28&15]+s[k>>24&15]+s[k>>20&15]+s[k>>16&15]+s[k>>12&15]+s[k>>8&15]+s[k>>4&15]+s[k&15]+s[_>>28&15]+s[_>>24&15]+s[_>>20&15]+s[_>>16&15]+s[_>>12&15]+s[_>>8&15]+s[_>>4&15]+s[_&15]+s[v>>28&15]+s[v>>24&15]+s[v>>20&15]+s[v>>16&15]+s[v>>12&15]+s[v>>8&15]+s[v>>4&15]+s[v&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];return this.is224||(w+=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]),w},E.prototype.toString=E.prototype.hex,E.prototype.digest=function(){this.finalize();var $=this.h0,R=this.h1,x=this.h2,k=this.h3,_=this.h4,v=this.h5,M=this.h6,A=this.h7,w=[$>>24&255,$>>16&255,$>>8&255,$&255,R>>24&255,R>>16&255,R>>8&255,R&255,x>>24&255,x>>16&255,x>>8&255,x&255,k>>24&255,k>>16&255,k>>8&255,k&255,_>>24&255,_>>16&255,_>>8&255,_&255,v>>24&255,v>>16&255,v>>8&255,v&255,M>>24&255,M>>16&255,M>>8&255,M&255];return this.is224||w.push(A>>24&255,A>>16&255,A>>8&255,A&255),w},E.prototype.array=E.prototype.digest,E.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,x){var k,_=typeof $;if(_==="string"){var v=[],M=$.length,A=0,w;for(k=0;k<M;++k)w=$.charCodeAt(k),w<128?v[A++]=w:w<2048?(v[A++]=192|w>>6,v[A++]=128|w&63):w<55296||w>=57344?(v[A++]=224|w>>12,v[A++]=128|w>>6&63,v[A++]=128|w&63):(w=65536+((w&1023)<<10|$.charCodeAt(++k)&1023),v[A++]=240|w>>18,v[A++]=128|w>>12&63,v[A++]=128|w>>6&63,v[A++]=128|w&63);$=v}else if(_==="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 E(R,!0).update($).array());var L=[],T=[];for(k=0;k<64;++k){var O=$[k]||0;L[k]=92^O,T[k]=54^O}E.call(this,R,x),this.update(T),this.oKeyPad=L,this.inner=!0,this.sharedMemory=x}S.prototype=new E,S.prototype.finalize=function(){if(E.prototype.finalize.call(this),this.inner){this.inner=!1;var $=this.array();E.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update($),E.prototype.finalize.call(this)}};var C=d();C.sha256=C,C.sha224=d(!0),C.sha256.hmac=b(),C.sha224.hmac=b(!0),f?e.exports=C:(i.sha256=C.sha256,i.sha224=C.sha224)})()})(jd);var FS=jd.exports,NS=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},_l={},PS=Object.prototype.hasOwnProperty,DS;function gu(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return null}}function mu(e){try{return encodeURIComponent(e)}catch{return null}}function BS(e){for(var t=/([^=?#&]+)=?([^&]*)/g,n={},i;i=t.exec(e);){var p=gu(i[1]),u=gu(i[2]);p===null||u===null||p in n||(n[p]=u)}return n}function WS(e,t){t=t||"";var n=[],i,p;typeof t!="string"&&(t="?");for(p in e)if(PS.call(e,p)){if(i=e[p],!i&&(i===null||i===DS||isNaN(i))&&(i=""),p=mu(p),i=mu(i),p===null||i===null)continue;n.push(p+"="+i)}return n.length?t+n.join("&"):""}_l.stringify=WS;_l.parse=BS;var Gd=NS,os=_l,HS=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,Kd=/[\n\r\t]/g,US=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,Yd=/:\d+$/,zS=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,VS=/^[a-zA-Z]:/;function Cl(e){return(e||"").toString().replace(HS,"")}var ma=[["#","hash"],["?","query"],function(t,n){return Ut(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]],vu={hash:1,query:1};function Xd(e){var t;typeof window<"u"?t=window:typeof Mn<"u"?t=Mn:typeof self<"u"?t=self:t={};var n=t.location||{};e=e||n;var i={},p=typeof e,u;if(e.protocol==="blob:")i=new jt(unescape(e.pathname),{});else if(p==="string"){i=new jt(e,{});for(u in vu)delete i[u]}else if(p==="object"){for(u in e)u in vu||(i[u]=e[u]);i.slashes===void 0&&(i.slashes=US.test(e.href))}return i}function Ut(e){return e==="file:"||e==="ftp:"||e==="http:"||e==="https:"||e==="ws:"||e==="wss:"}function Zd(e,t){e=Cl(e),e=e.replace(Kd,""),t=t||{};var n=zS.exec(e),i=n[1]?n[1].toLowerCase():"",p=!!n[2],u=!!n[3],f=0,g;return p?u?(g=n[2]+n[3]+n[4],f=n[2].length+n[3].length):(g=n[2]+n[4],f=n[2].length):u?(g=n[3]+n[4],f=n[3].length):g=n[4],i==="file:"?f>=2&&(g=g.slice(2)):Ut(i)?g=n[4]:i?p&&(g=g.slice(2)):f>=2&&Ut(t.protocol)&&(g=n[4]),{protocol:i,slashes:p||Ut(i),slashesCount:f,rest:g}}function jS(e,t){if(e==="")return t;for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),i=n.length,p=n[i-1],u=!1,f=0;i--;)n[i]==="."?n.splice(i,1):n[i]===".."?(n.splice(i,1),f++):f&&(i===0&&(u=!0),n.splice(i,1),f--);return u&&n.unshift(""),(p==="."||p==="..")&&n.push(""),n.join("/")}function jt(e,t,n){if(e=Cl(e),e=e.replace(Kd,""),!(this instanceof jt))return new jt(e,t,n);var i,p,u,f,g,s,h=ma.slice(),o=typeof t,r=this,l=0;for(o!=="object"&&o!=="string"&&(n=t,t=null),n&&typeof n!="function"&&(n=os.parse),t=Xd(t),p=Zd(e||"",t),i=!p.protocol&&!p.slashes,r.slashes=p.slashes||i&&t.slashes,r.protocol=p.protocol||t.protocol||"",e=p.rest,(p.protocol==="file:"&&(p.slashesCount!==2||VS.test(e))||!p.slashes&&(p.protocol||p.slashesCount<2||!Ut(r.protocol)))&&(h[3]=[/(.*)/,"pathname"]);l<h.length;l++){if(f=h[l],typeof f=="function"){e=f(e,r);continue}u=f[0],s=f[1],u!==u?r[s]=e:typeof u=="string"?(g=u==="@"?e.lastIndexOf(u):e.indexOf(u),~g&&(typeof f[2]=="number"?(r[s]=e.slice(0,g),e=e.slice(g+f[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&&f[3]&&t[s]||"",f[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=jS(r.pathname,t.pathname)),r.pathname.charAt(0)!=="/"&&Ut(r.protocol)&&(r.pathname="/"+r.pathname),Gd(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:"&&Ut(r.protocol)&&r.host?r.protocol+"//"+r.host:"null",r.href=r.toString()}function GS(e,t,n){var i=this;switch(e){case"query":typeof t=="string"&&t.length&&(t=(n||os.parse)(t)),i[e]=t;break;case"port":i[e]=t,Gd(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,Yd.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 p=e==="pathname"?"/":"#";i[e]=t.charAt(0)!==p?p+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 f=0;f<ma.length;f++){var g=ma[f];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:"&&Ut(i.protocol)&&i.host?i.protocol+"//"+i.host:"null",i.href=i.toString(),i}function KS(e){(!e||typeof e!="function")&&(e=os.stringify);var t,n=this,i=n.host,p=n.protocol;p&&p.charAt(p.length-1)!==":"&&(p+=":");var u=p+(n.protocol&&n.slashes||Ut(n.protocol)?"//":"");return n.username?(u+=n.username,n.password&&(u+=":"+n.password),u+="@"):n.password?(u+=":"+n.password,u+="@"):n.protocol!=="file:"&&Ut(n.protocol)&&!i&&n.pathname!=="/"&&(u+="@"),(i[i.length-1]===":"||Yd.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}jt.prototype={set:GS,toString:KS};jt.extractProtocol=Zd;jt.location=Xd;jt.trimLeft=Cl;jt.qs=os;var YS=jt;const XS=cn(YS);class ss extends Rt{constructor(){super();Le(this,"baseURL");Le(this,"name");Le(this,"type");this.name="VirusTotal",this.baseURL="https://www.virustotal.com",this.type="domain"}}class ZS extends ss{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/gui/domain/${t}/detection`}}class QS extends ss{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/gui/ip-address/${t}/details`}}class JS extends ss{constructor(){super(),this.type="url"}href(t){const n=FS.sha256(this.normalizeURL(t));return this.baseURL+`/gui/url/${n}/details`}normalizeURL(t){return new XS(t).pathname==="/"&&!t.endsWith("/")?`${t}/`:t}}class qS extends ss{constructor(){super(),this.type="hash"}href(t){return this.baseURL+`/gui/file/${t}/details`}}const eA=[new bS,new wS,new $S,new CS,new _S,new SS,new AS,new xS,new zd,new kS,new ES,new RS,new LS,new TS,new MS,new ZS,new qS,new QS,new JS],tA=$e({name:"LinksItem",components:{LinkComponent:yS},props:{data:{type:String,required:!0},type:{type:String,required:!0}},setup(e){const t=eA;return{selectedLinks:Ee(()=>e.type===void 0?t:t.filter(i=>i.type===e.type))}}}),nA={class:"tags are-medium"};function iA(e,t,n,i,p,u){const f=ue("LinkComponent");return q(),oe("div",nA,[(q(!0),oe(Se,null,ct(e.selectedLinks,g=>(q(),Me(f,{data:e.data,link:g,key:g.name},null,8,["data","link"]))),128))])}const rA=xe(tA,[["render",iA]]),oA=$e({name:"ArtifactItem",props:{artifact:{type:Object,required:!0}},components:{Alerts:Hd,AS:CC,DnsRecords:FC,Links:rA,Loading:hn,ReverseDnsNames:zC,Tags:KC,VueJsonPretty:Wd,WhoisRecord:dS,CPEs:kC,Ports:BC},emits:["refresh"],setup(e,t){const n=Te(void 0),i=Te(void 0),p=Te(!1),u=Ri(),f=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}`}),g=d=>{if(d!==void 0)return`https://maps.google.co.jp/maps?output=embed&q=${d.lat},${d.long}&z=3`},s=z1(),h=wl(),o=Rd(),r=H1(),l=async()=>{window.confirm(`Are you sure you want to delete ${e.artifact.data}?`)&&(await o.perform(e.artifact.id),u.push("/"))},c=async()=>{await r.perform(e.artifact.id),t.emit("refresh")};return nt(async()=>{if(e.artifact.dataType==="ip"){let d;if(e.artifact.geolocation===null){const m=await s.perform(e.artifact.data);d=$$(m),i.value=m.countryCode}else d=Nd(e.artifact.geolocation.countryCode);n.value=g(d)}}),{countryCode:i,enrichArtifactTask:r,getAlertsTask:h,googleMapSrc:n,showMetadata:p,urlscanLiveshotSrc:f,deleteArtifact:l,enrichArtifact:c,flipShowMetadata:()=>{p.value=!p.value}}}});const Ze=e=>(Ka("data-v-3bbfb14d"),e=e(),Ya(),e),sA={class:"column"},aA={key:0},lA=Ze(()=>P("hr",null,null,-1)),cA=Ze(()=>P("h2",{class:"is-size-2 mb-4"},"Artifact",-1)),uA={class:"columns"},hA={key:0,class:"column is-half"},fA={key:0},dA={class:"is-size-4 mb-2"},pA={class:"has-text-grey"},gA=["src"],mA={key:1},vA=Ze(()=>P("h4",{class:"is-size-4 mb-2"},[et(" Live screenshot "),P("span",{class:"has-text-grey"},"Hover to expand")],-1)),yA=["src"],bA={class:"column"},wA={class:"block"},$A=Ze(()=>P("h4",{class:"is-size-4 mb-2"},"Information",-1)),_A={class:"table is-fullwidth is-completely-borderless"},CA=Ze(()=>P("th",null,"ID",-1)),SA={class:"buttons is-pulled-right"},AA=Ze(()=>P("span",null,"Enrich",-1)),xA={class:"icon is-small"},kA=Ze(()=>P("span",null,"Metadata",-1)),EA={class:"icon is-small"},RA=Ze(()=>P("span",null,"Delete",-1)),LA={class:"icon is-small"},TA=Ze(()=>P("th",null,"Data type",-1)),MA=Ze(()=>P("th",null,"Data",-1)),IA=Ze(()=>P("th",null,"Source",-1)),OA={key:0},FA=Ze(()=>P("th",null,"Tags",-1)),NA={key:0},PA={class:"modal is-active"},DA={class:"modal-card"},BA={class:"modal-card-head"},WA=Ze(()=>P("p",{class:"modal-card-title"},"Metadata",-1)),HA={class:"modal-card-body"},UA={key:1,class:"block"},zA=Ze(()=>P("h4",{class:"is-size-4 mb-2"},"AS",-1)),VA={key:2,class:"block"},jA=Ze(()=>P("h4",{class:"is-size-4 mb-2"},"Reverse DNS",-1)),GA={key:3,class:"block"},KA=Ze(()=>P("h4",{class:"is-size-4 mb-2"},"DNS records",-1)),YA={key:4,class:"block"},XA=Ze(()=>P("h4",{class:"is-size-4 mb-2"},"CPEs",-1)),ZA={key:5,class:"block"},QA=Ze(()=>P("h4",{class:"is-size-4 mb-2"},"Ports",-1)),JA={key:6,class:"block"},qA=Ze(()=>P("h4",{class:"is-size-4 mb-2"},"Whois record",-1)),e2={class:"block"},t2=Ze(()=>P("h4",{class:"is-size-4 mb-2"},"Links",-1)),n2=Ze(()=>P("hr",null,null,-1)),i2={class:"column"},r2=Ze(()=>P("h2",{class:"is-size-2 mb-4"},"Related alerts",-1));function o2(e,t,n,i,p,u){var b;const f=ue("Loading"),g=ue("font-awesome-icon"),s=ue("Tags"),h=ue("VueJsonPretty"),o=ue("AS"),r=ue("ReverseDnsNames"),l=ue("DnsRecords"),c=ue("CPEs"),a=ue("Ports"),d=ue("WhoisRecord"),m=ue("Links"),y=ue("Alerts");return q(),oe(Se,null,[P("div",sA,[e.enrichArtifactTask.isRunning?(q(),oe("div",aA,[he(f),lA])):we("",!0),cA,P("div",uA,[e.googleMapSrc!==void 0||e.urlscanLiveshotSrc!==void 0?(q(),oe("div",hA,[e.googleMapSrc?(q(),oe("div",fA,[P("h4",dA,[et(" Geolocation "),P("span",pA,Ae(e.countryCode||((b=e.artifact.geolocation)==null?void 0:b.countryCode)),1)]),P("iframe",{class:"mb-4",src:e.googleMapSrc,width:"100%",height:"240px"},null,8,gA)])):we("",!0),e.urlscanLiveshotSrc?(q(),oe("div",mA,[vA,P("img",{src:e.urlscanLiveshotSrc,class:"liveshot",alt:"liveshot"},null,8,yA)])):we("",!0)])):we("",!0),P("div",bA,[P("div",wA,[$A,P("table",_A,[P("tr",null,[CA,P("td",null,[et(Ae(e.artifact.id)+" ",1),P("span",SA,[P("button",{class:"button is-primary is-light is-small",onClick:t[0]||(t[0]=(...E)=>e.enrichArtifact&&e.enrichArtifact(...E))},[AA,P("span",xA,[he(g,{icon:"lightbulb"})])]),e.artifact.metadata?(q(),oe("button",{key:0,class:"button is-info is-light is-small",onClick:t[1]||(t[1]=(...E)=>e.flipShowMetadata&&e.flipShowMetadata(...E))},[kA,P("span",EA,[he(g,{icon:"info-circle"})])])):we("",!0),P("button",{class:"button is-light is-small",onClick:t[2]||(t[2]=(...E)=>e.deleteArtifact&&e.deleteArtifact(...E))},[RA,P("span",LA,[he(g,{icon:"times"})])])])])]),P("tr",null,[TA,P("td",null,Ae(e.artifact.dataType),1)]),P("tr",null,[MA,P("td",null,Ae(e.artifact.data),1)]),P("tr",null,[IA,P("td",null,Ae(e.artifact.source),1)]),e.artifact.tags.length>0?(q(),oe("tr",OA,[FA,P("td",null,[he(s,{tags:e.artifact.tags},null,8,["tags"])])])):we("",!0)])]),e.artifact.metadata&&e.showMetadata?(q(),oe("div",NA,[P("div",PA,[P("div",{class:"modal-background",onClick:t[3]||(t[3]=(...E)=>e.flipShowMetadata&&e.flipShowMetadata(...E))}),P("div",DA,[P("header",BA,[WA,P("button",{class:"delete","aria-label":"close",onClick:t[4]||(t[4]=(...E)=>e.flipShowMetadata&&e.flipShowMetadata(...E))})]),P("section",HA,[he(h,{data:e.artifact.metadata},null,8,["data"])])])])])):we("",!0)])]),e.artifact.autonomousSystem?(q(),oe("div",UA,[zA,he(o,{autonomousSystem:e.artifact.autonomousSystem},null,8,["autonomousSystem"])])):we("",!0),e.artifact.reverseDnsNames?(q(),oe("div",VA,[jA,he(r,{reverseDnsNames:e.artifact.reverseDnsNames},null,8,["reverseDnsNames"])])):we("",!0),e.artifact.dnsRecords?(q(),oe("div",GA,[KA,he(l,{dnsRecords:e.artifact.dnsRecords},null,8,["dnsRecords"])])):we("",!0),e.artifact.cpes?(q(),oe("div",YA,[XA,he(c,{cpes:e.artifact.cpes},null,8,["cpes"])])):we("",!0),e.artifact.ports?(q(),oe("div",ZA,[QA,he(a,{ports:e.artifact.ports},null,8,["ports"])])):we("",!0),e.artifact.whoisRecord?(q(),oe("div",JA,[qA,he(d,{whoisRecord:e.artifact.whoisRecord},null,8,["whoisRecord"])])):we("",!0),P("div",e2,[t2,he(m,{data:e.artifact.data,type:e.artifact.dataType},null,8,["data","type"])])]),n2,P("div",i2,[r2,he(y,{artifact:e.artifact.data},null,8,["artifact"])])],64)}const s2=xe(oA,[["render",o2],["__scopeId","data-v-3bbfb14d"]]),a2=$e({name:"ArtifactWrapper",components:{ArtifactComponent:s2,Loading:hn,ErrorMessage:un},props:{id:{type:String,required:!0}},setup(e){const t=W1(),n=async()=>{await t.perform(e.id)},i=async()=>{await n()};return nt(async()=>{await n()}),Ye(e,async()=>{await n()}),{getArtifactTask:t,refresh:i}}});function l2(e,t,n,i,p,u){var h,o;const f=ue("Loading"),g=ue("ErrorMessage"),s=ue("ArtifactComponent");return q(),oe(Se,null,[e.getArtifactTask.isRunning?(q(),Me(f,{key:0})):we("",!0),e.getArtifactTask.isError?(q(),Me(g,{key:1,error:(h=e.getArtifactTask.last)==null?void 0:h.error},null,8,["error"])):we("",!0),(o=e.getArtifactTask.last)!=null&&o.value?(q(),Me(s,{key:2,artifact:e.getArtifactTask.last.value,onRefresh:e.refresh},null,8,["artifact","onRefresh"])):we("",!0)],64)}const c2=xe(a2,[["render",l2]]),u2=$e({name:"ArtifactView",components:{Artifact:c2},props:{id:{type:String,required:!0}},setup(e){const t=()=>{ei(`Artifact:${e.id} - Mihari`)};nt(()=>{t()}),Ye(()=>e.id,()=>{t()})}});function h2(e,t,n,i,p,u){const f=ue("Artifact",!0);return q(),Me(f,{id:e.id},null,8,["id"])}const f2=xe(u2,[["render",h2]]),d2=$e({name:"ConfigsItem",props:{configs:{type:Array,required:!0}}}),p2={class:"box"},g2={class:"table-container"},m2={class:"table is-fullwidth"},v2=P("thead",null,[P("tr",null,[P("th",null,"Name"),P("th",null,"Type"),P("th",null,"Configured"),P("th",null,"Key-value(s)")])],-1),y2={key:0,class:"button is-success is-small ml-1"},b2={class:"icon is-small"},w2=P("span",null,"Yes",-1),$2={key:1,class:"button is-warning is-small ml-1"},_2={class:"icon is-small"},C2=P("span",null,"No",-1),S2={key:0},A2={key:1};function x2(e,t,n,i,p,u){const f=ue("font-awesome-icon");return q(),oe("div",p2,[P("div",g2,[P("table",m2,[v2,P("tbody",null,[(q(!0),oe(Se,null,ct(e.configs,g=>(q(),oe("tr",{key:g.name},[P("td",null,Ae(g.name),1),P("td",null,Ae(g.type),1),P("td",null,[g.isConfigured?(q(),oe("button",y2,[P("span",b2,[he(f,{icon:"check"})]),w2])):(q(),oe("button",$2,[P("span",_2,[he(f,{icon:"exclamation"})]),C2]))]),P("td",null,[P("ul",null,[(q(!0),oe(Se,null,ct(g.values,(s,h)=>(q(),oe("li",{key:h},[P("strong",null,Ae(s.key),1),et(": "),s.value?(q(),oe("code",S2,Ae(s.value),1)):(q(),oe("span",A2,"N/A"))]))),128))])])]))),128))])])])])}const k2=xe(d2,[["render",x2]]),E2=$e({name:"ConfigsWrapper",components:{Configs:k2,Loading:hn,ErrorMessage:un},setup(){const e=U1();return nt(async()=>{await e.perform()}),{getConfigsTask:e}}});function R2(e,t,n,i,p,u){var h,o;const f=ue("Loading"),g=ue("ErrorMessage"),s=ue("Configs");return q(),oe(Se,null,[e.getConfigsTask.isRunning?(q(),Me(f,{key:0})):we("",!0),e.getConfigsTask.isError?(q(),Me(g,{key:1,error:(h=e.getConfigsTask.last)==null?void 0:h.error},null,8,["error"])):we("",!0),(o=e.getConfigsTask.last)!=null&&o.value?(q(),Me(s,{key:2,configs:e.getConfigsTask.last.value},null,8,["configs"])):we("",!0)],64)}const L2=xe(E2,[["render",R2]]),T2=$e({name:"ConfigView",components:{Configs:L2},setup(){ei("Config - Mihari")}});function M2(e,t,n,i,p,u){const f=ue("Configs",!0);return q(),Me(f)}const I2=xe(T2,[["render",M2]]);var Qd={exports:{}};(function(e,t){(function(){var n="ace",i=function(){return this}();!i&&typeof window<"u"&&(i=window);var p=function(o,r,l){if(typeof o!="string"){p.original?p.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(l=r),p.modules[o]||(p.payloads[o]=l,p.modules[o]=null)};p.modules={},p.payloads={};var u=function(o,r,l){if(typeof r=="string"){var c=s(o,r);if(c!=null)return l&&l(),c}else if(Object.prototype.toString.call(r)==="[object Array]"){for(var a=[],d=0,m=r.length;d<m;++d){var y=s(o,r[d]);if(y==null&&f.original)return;a.push(y)}return l&&l.apply(null,a)||!0}},f=function(o,r){var l=u("",o,r);return l==null&&f.original?f.original.apply(this,arguments):l},g=function(o,r){if(r.indexOf("!")!==-1){var l=r.split("!");return g(o,l[0])+"!"+g(o,l[1])}if(r.charAt(0)=="."){var c=o.split("/").slice(0,-1).join("/");for(r=c+"/"+r;r.indexOf(".")!==-1&&a!=r;){var a=r;r=r.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return r},s=function(o,r){r=g(o,r);var l=p.modules[r];if(!l){if(l=p.payloads[r],typeof l=="function"){var c={},a={id:r,uri:"",exports:c,packaged:!0},d=function(y,b){return u(r,y,b)},m=l(d,c,a);c=m||a.exports,p.modules[r]=c,delete p.payloads[r]}l=p.modules[r]=c||l}return l};function h(o){var r=i;o&&(i[o]||(i[o]={}),r=i[o]),(!r.define||!r.define.packaged)&&(p.original=r.define,r.define=p,r.define.packaged=!0),(!r.require||!r.require.packaged)&&(f.original=r.require,r.require=f,r.require.packaged=!0)}h(n)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(n,i,p){function u(f,g,s){Object.defineProperty(f,g,{value:s,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||u(String.prototype,"startsWith",function(f,g){return g=g||0,this.lastIndexOf(f,g)===g}),String.prototype.endsWith||u(String.prototype,"endsWith",function(f,g){var s=this;(g===void 0||g>s.length)&&(g=s.length),g-=f.length;var h=s.indexOf(f,g);return h!==-1&&h===g}),String.prototype.repeat||u(String.prototype,"repeat",function(f){for(var g="",s=this;f>0;)f&1&&(g+=s),(f>>=1)&&(s+=s);return g}),String.prototype.includes||u(String.prototype,"includes",function(f,g){return this.indexOf(f,g)!=-1}),Object.assign||(Object.assign=function(f){if(f==null)throw new TypeError("Cannot convert undefined or null to object");for(var g=Object(f),s=1;s<arguments.length;s++){var h=arguments[s];h!=null&&Object.keys(h).forEach(function(o){g[o]=h[o]})}return g}),Object.values||(Object.values=function(f){return Object.keys(f).map(function(g){return f[g]})}),Array.prototype.find||u(Array.prototype,"find",function(f){for(var g=this.length,s=arguments[1],h=0;h<g;h++){var o=this[h];if(f.call(s,o,h,this))return o}}),Array.prototype.findIndex||u(Array.prototype,"findIndex",function(f){for(var g=this.length,s=arguments[1],h=0;h<g;h++){var o=this[h];if(f.call(s,o,h,this))return h}}),Array.prototype.includes||u(Array.prototype,"includes",function(f,g){return this.indexOf(f,g)!=-1}),Array.prototype.fill||u(Array.prototype,"fill",function(f){for(var g=this,s=g.length>>>0,h=arguments[1],o=h>>0,r=o<0?Math.max(s+o,0):Math.min(o,s),l=arguments[2],c=l===void 0?s:l>>0,a=c<0?Math.max(s+c,0):Math.min(c,s);r<a;)g[r]=f,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,p){n("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(n,i,p){i.deepCopy=function u(f){if(typeof f!="object"||!f)return f;var g;if(Array.isArray(f)){g=[];for(var s=0;s<f.length;s++)g[s]=u(f[s]);return g}if(Object.prototype.toString.call(f)!=="[object Object]")return f;g={};for(var s in f)g[s]=u(f[s]);return g}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(n,i,p){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 h="";s>0;)s&1&&(h+=g),(s>>=1)&&(g+=g);return h};var u=/^\s\s*/,f=/\s\s*$/;i.stringTrimLeft=function(g){return g.replace(u,"")},i.stringTrimRight=function(g){return g.replace(f,"")},i.copyObject=function(g){var s={};for(var h in g)s[h]=g[h];return s},i.copyArray=function(g){for(var s=[],h=0,o=g.length;h<o;h++)g[h]&&typeof g[h]=="object"?s[h]=this.copyObject(g[h]):s[h]=g[h];return s},i.deepCopy=n("./deep_copy").deepCopy,i.arrayToMap=function(g){for(var s={},h=0;h<g.length;h++)s[g[h]]=1;return s},i.createMap=function(g){var s=Object.create(null);for(var h in g)s[h]=g[h];return s},i.arrayRemove=function(g,s){for(var h=0;h<=g.length;h++)s===g[h]&&g.splice(h,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 h=[];return g.replace(s,function(o){h.push({offset:arguments[arguments.length-2],length:o.length})}),h},i.deferredCall=function(g){var s=null,h=function(){s=null,g()},o=function(r){return o.cancel(),s=setTimeout(h,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 h=null,o=function(){h=null,g()},r=function(l){h==null&&(h=setTimeout(o,l||s))};return r.delay=function(l){h&&clearTimeout(h),h=setTimeout(o,l||s)},r.schedule=r,r.call=function(){this.cancel(),g()},r.cancel=function(){h&&clearTimeout(h),h=null},r.isPending=function(){return h},r},i.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},i.supportsUnicodeFlag=function(){try{new RegExp("^.$","u")}catch{return!1}return!0}}),ace.define("ace/lib/useragent",["require","exports","module"],function(n,i,p){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:{},f=(/mac|win|linux/i.exec(u.platform)||["other"])[0].toLowerCase(),g=u.userAgent||"",s=u.appName||"";i.isWin=f=="win",i.isMac=f=="mac",i.isLinux=f=="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.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,p){var u=n("./useragent"),f="http://www.w3.org/1999/xhtml";i.buildDom=function l(c,a,d){if(typeof c=="string"&&c){var m=document.createTextNode(c);return a&&a.appendChild(m),m}if(!Array.isArray(c))return c&&c.appendChild&&a&&a.appendChild(c),c;if(typeof c[0]!="string"||!c[0]){for(var y=[],b=0;b<c.length;b++){var E=l(c[b],a,d);E&&y.push(E)}return y}var S=document.createElement(c[0]),C=c[1],$=1;C&&typeof C=="object"&&!Array.isArray(C)&&($=2);for(var b=$;b<c.length;b++)l(c[b],S,d);return $==2&&Object.keys(C).forEach(function(R){var x=C[R];R==="class"?S.className=Array.isArray(x)?x.join(" "):x:typeof x=="function"||R=="value"||R[0]=="$"?S[R]=x:R==="ref"?d&&(d[x]=S):R==="style"?typeof x=="string"&&(S.style.cssText=x):x!=null&&S.setAttribute(R,x)}),a&&a.appendChild(S),S},i.getDocumentHead=function(l){return l||(l=document),l.head||l.getElementsByTagName("head")[0]||l.documentElement},i.createElement=function(l,c){return document.createElementNS?document.createElementNS(c||f,l):document.createElement(l)},i.removeChildren=function(l){l.innerHTML=""},i.createTextNode=function(l,c){var a=c?c.ownerDocument:document;return a.createTextNode(l)},i.createFragment=function(l){var c=l?l.ownerDocument:document;return c.createDocumentFragment()},i.hasCssClass=function(l,c){var a=(l.className+"").split(/\s+/g);return a.indexOf(c)!==-1},i.addCssClass=function(l,c){i.hasCssClass(l,c)||(l.className+=" "+c)},i.removeCssClass=function(l,c){for(var a=l.className.split(/\s+/g);;){var d=a.indexOf(c);if(d==-1)break;a.splice(d,1)}l.className=a.join(" ")},i.toggleCssClass=function(l,c){for(var a=l.className.split(/\s+/g),d=!0;;){var m=a.indexOf(c);if(m==-1)break;d=!1,a.splice(m,1)}return d&&a.push(c),l.className=a.join(" "),d},i.setCssClass=function(l,c,a){a?i.addCssClass(l,c):i.removeCssClass(l,c)},i.hasCssString=function(l,c){var a=0,d;if(c=c||document,d=c.querySelectorAll("style")){for(;a<d.length;)if(d[a++].id===l)return!0}},i.removeElementById=function(l,c){c=c||document,c.getElementById(l)&&c.getElementById(l).remove()};var g,s=[];i.useStrictCSP=function(l){g=l,l==!1?h():s||(s=[])};function h(){var l=s;s=null,l&&l.forEach(function(c){o(c[0],c[1])})}function o(l,c,a){if(!(typeof document>"u")){if(s){if(a)h();else if(a===!1)return s.push([l,c])}if(!g){var d=a;!a||!a.getRootNode?d=document:(d=a.getRootNode(),(!d||d==a)&&(d=document));var m=d.ownerDocument||d;if(c&&i.hasCssString(c,d))return null;c&&(l+=`
779
+ /*# sourceURL=ace/css/`+c+" */");var y=i.createElement("style");y.appendChild(m.createTextNode(l)),c&&(y.id=c),d==m&&(d=i.getDocumentHead(m)),d.insertBefore(y,d.firstChild)}}}if(i.importCssString=o,i.importCssStylsheet=function(l,c){i.buildDom(["link",{rel:"stylesheet",href:l}],i.getDocumentHead(c))},i.scrollbarWidth=function(l){var c=i.createElement("ace_inner");c.style.width="100%",c.style.minWidth="0px",c.style.height="200px",c.style.display="block";var a=i.createElement("ace_outer"),d=a.style;d.position="absolute",d.left="-10000px",d.overflow="hidden",d.width="200px",d.minWidth="0px",d.height="150px",d.display="block",a.appendChild(c);var m=l&&l.documentElement||document&&document.documentElement;if(!m)return 0;m.appendChild(a);var y=c.offsetWidth;d.overflow="scroll";var b=c.offsetWidth;return y===b&&(b=a.clientWidth),m.removeChild(a),y-b},i.computedStyle=function(l,c){return window.getComputedStyle(l,"")||{}},i.setStyle=function(l,c,a){l[c]!==a&&(l[c]=a)},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(l,c,a){l.style.transform="translate("+Math.round(c)+"px, "+Math.round(a)+"px)"}:i.translate=function(l,c,a){l.style.top=Math.round(a)+"px",l.style.left=Math.round(c)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(n,i,p){/*
778
780
  * based on code from:
779
781
  *
780
782
  * @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
781
783
  * Available via the MIT or new BSD license.
782
784
  * see: http://github.com/jrburke/requirejs for details
783
- */var u=n("./dom");i.get=function(p,g){var s=new XMLHttpRequest;s.open("GET",p,!0),s.onreadystatechange=function(){s.readyState===4&&g(s.responseText)},s.send(null)},i.loadScript=function(p,g){var s=u.getDocumentHead(),h=document.createElement("script");h.src=p,s.appendChild(h),h.onload=h.onreadystatechange=function(o,r){(r||!h.readyState||h.readyState=="loaded"||h.readyState=="complete")&&(h=h.onload=h.onreadystatechange=null,r||g())}},i.qualifyURL=function(p){var g=document.createElement("a");return g.href=p,g.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(n,i,d){i.inherits=function(u,p){u.super_=p,u.prototype=Object.create(p.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}})},i.mixin=function(u,p){for(var g in p)u[g]=p[g];return u},i.implement=function(u,p){i.mixin(u,p)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(n,i,d){var u={},p=function(){this.propagationStopped=!0},g=function(){this.defaultPrevented=!0};u._emit=u._dispatchEvent=function(s,h){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var o=this._eventRegistry[s]||[],r=this._defaultHandlers[s];if(!(!o.length&&!r)){(typeof h!="object"||!h)&&(h={}),h.type||(h.type=s),h.stopPropagation||(h.stopPropagation=p),h.preventDefault||(h.preventDefault=g),o=o.slice();for(var l=0;l<o.length&&(o[l](h,this),!h.propagationStopped);l++);if(r&&!h.defaultPrevented)return r(h,this)}},u._signal=function(s,h){var o=(this._eventRegistry||{})[s];if(o){o=o.slice();for(var r=0;r<o.length;r++)o[r](h,this)}},u.once=function(s,h){var o=this;if(this.on(s,function r(){o.off(s,r),h.apply(null,arguments)}),!h)return new Promise(function(r){h=r})},u.setDefaultHandler=function(s,h){var o=this._defaultHandlers;if(o||(o=this._defaultHandlers={_disabled_:{}}),o[s]){var r=o[s],l=o._disabled_[s];l||(o._disabled_[s]=l=[]),l.push(r);var c=l.indexOf(h);c!=-1&&l.splice(c,1)}o[s]=h},u.removeDefaultHandler=function(s,h){var o=this._defaultHandlers;if(o){var r=o._disabled_[s];if(o[s]==h)r&&this.setDefaultHandler(s,r.pop());else if(r){var l=r.indexOf(h);l!=-1&&r.splice(l,1)}}},u.on=u.addEventListener=function(s,h,o){this._eventRegistry=this._eventRegistry||{};var r=this._eventRegistry[s];return r||(r=this._eventRegistry[s]=[]),r.indexOf(h)==-1&&r[o?"unshift":"push"](h),h},u.off=u.removeListener=u.removeEventListener=function(s,h){this._eventRegistry=this._eventRegistry||{};var o=this._eventRegistry[s];if(o){var r=o.indexOf(h);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(p,g){var s=new Error(p);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"),p=n("./event_emitter").EventEmitter,g=n("./report_error").reportError,s={setOptions:function(l){Object.keys(l).forEach(function(c){this.setOption(c,l[c])},this)},getOptions:function(l){var c={};if(l)Array.isArray(l)||(c=l,l=Object.keys(c));else{var a=this.$options;l=Object.keys(a).filter(function(f){return!a[f].hidden})}return l.forEach(function(f){c[f]=this.getOption(f)},this),c},setOption:function(l,c){if(this["$"+l]!==c){var a=this.$options[l];if(!a)return h('misspelled option "'+l+'"');if(a.forwardTo)return this[a.forwardTo]&&this[a.forwardTo].setOption(l,c);a.handlesSet||(this["$"+l]=c),a&&a.set&&a.set.call(this,c)}},getOption:function(l){var c=this.$options[l];return c?c.forwardTo?this[c.forwardTo]&&this[c.forwardTo].getOption(l):c&&c.get?c.get.call(this):this["$"+l]:h('misspelled option "'+l+'"')}};function h(l){typeof console<"u"&&console.warn&&console.warn.apply(console,arguments)}var o,r=function(){function l(){this.$defaultOptions={}}return l.prototype.defineOptions=function(c,a,f){return c.$options||(this.$defaultOptions[a]=c.$options={}),Object.keys(f).forEach(function(m){var y=f[m];typeof y=="string"&&(y={forwardTo:y}),y.name||(y.name=m),c.$options[y.name]=y,"initialValue"in y&&(c["$"+y.name]=y.initialValue)}),u.implement(c,s),this},l.prototype.resetOptions=function(c){Object.keys(c.$options).forEach(function(a){var f=c.$options[a];"value"in f&&c.setOption(a,f.value)})},l.prototype.setDefaultValue=function(c,a,f){if(!c){for(c in this.$defaultOptions)if(this.$defaultOptions[c][a])break;if(!this.$defaultOptions[c][a])return!1}var m=this.$defaultOptions[c]||(this.$defaultOptions[c]={});m[a]&&(m.forwardTo?this.setDefaultValue(m.forwardTo,a,f):m[a].value=f)},l.prototype.setDefaultValues=function(c,a){Object.keys(a).forEach(function(f){this.setDefaultValue(c,f,a[f])},this)},l.prototype.setMessages=function(c){o=c},l.prototype.nls=function(c,a){o&&!o[c]&&h("No message found for '"+c+"' in the provided messages, falling back to default English message.");var f=o&&o[c]||c;return a&&(f=f.replace(/\$(\$|[\d]+)/g,function(m,y){return y=="$"?"$":a[y]})),f},l}();r.prototype.warn=h,r.prototype.reportError=g,u.implement(r.prototype,p),i.AppConfig=r}),ace.define("ace/theme/textmate-css",["require","exports","module"],function(n,i,d){d.exports=`.ace-tm .ace_gutter {
785
+ */var u=n("./dom");i.get=function(f,g){var s=new XMLHttpRequest;s.open("GET",f,!0),s.onreadystatechange=function(){s.readyState===4&&g(s.responseText)},s.send(null)},i.loadScript=function(f,g){var s=u.getDocumentHead(),h=document.createElement("script");h.src=f,s.appendChild(h),h.onload=h.onreadystatechange=function(o,r){(r||!h.readyState||h.readyState=="loaded"||h.readyState=="complete")&&(h=h.onload=h.onreadystatechange=null,r||g())}},i.qualifyURL=function(f){var g=document.createElement("a");return g.href=f,g.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(n,i,p){i.inherits=function(u,f){u.super_=f,u.prototype=Object.create(f.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}})},i.mixin=function(u,f){for(var g in f)u[g]=f[g];return u},i.implement=function(u,f){i.mixin(u,f)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(n,i,p){var u={},f=function(){this.propagationStopped=!0},g=function(){this.defaultPrevented=!0};u._emit=u._dispatchEvent=function(s,h){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var o=this._eventRegistry[s]||[],r=this._defaultHandlers[s];if(!(!o.length&&!r)){(typeof h!="object"||!h)&&(h={}),h.type||(h.type=s),h.stopPropagation||(h.stopPropagation=f),h.preventDefault||(h.preventDefault=g),o=o.slice();for(var l=0;l<o.length&&(o[l](h,this),!h.propagationStopped);l++);if(r&&!h.defaultPrevented)return r(h,this)}},u._signal=function(s,h){var o=(this._eventRegistry||{})[s];if(o){o=o.slice();for(var r=0;r<o.length;r++)o[r](h,this)}},u.once=function(s,h){var o=this;if(this.on(s,function r(){o.off(s,r),h.apply(null,arguments)}),!h)return new Promise(function(r){h=r})},u.setDefaultHandler=function(s,h){var o=this._defaultHandlers;if(o||(o=this._defaultHandlers={_disabled_:{}}),o[s]){var r=o[s],l=o._disabled_[s];l||(o._disabled_[s]=l=[]),l.push(r);var c=l.indexOf(h);c!=-1&&l.splice(c,1)}o[s]=h},u.removeDefaultHandler=function(s,h){var o=this._defaultHandlers;if(o){var r=o._disabled_[s];if(o[s]==h)r&&this.setDefaultHandler(s,r.pop());else if(r){var l=r.indexOf(h);l!=-1&&r.splice(l,1)}}},u.on=u.addEventListener=function(s,h,o){this._eventRegistry=this._eventRegistry||{};var r=this._eventRegistry[s];return r||(r=this._eventRegistry[s]=[]),r.indexOf(h)==-1&&r[o?"unshift":"push"](h),h},u.off=u.removeListener=u.removeEventListener=function(s,h){this._eventRegistry=this._eventRegistry||{};var o=this._eventRegistry[s];if(o){var r=o.indexOf(h);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,p){i.reportError=function(f,g){var s=new Error(f);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,p){"no use strict";var u=n("./oop"),f=n("./event_emitter").EventEmitter,g=n("./report_error").reportError,s={setOptions:function(l){Object.keys(l).forEach(function(c){this.setOption(c,l[c])},this)},getOptions:function(l){var c={};if(l)Array.isArray(l)||(c=l,l=Object.keys(c));else{var a=this.$options;l=Object.keys(a).filter(function(d){return!a[d].hidden})}return l.forEach(function(d){c[d]=this.getOption(d)},this),c},setOption:function(l,c){if(this["$"+l]!==c){var a=this.$options[l];if(!a)return h('misspelled option "'+l+'"');if(a.forwardTo)return this[a.forwardTo]&&this[a.forwardTo].setOption(l,c);a.handlesSet||(this["$"+l]=c),a&&a.set&&a.set.call(this,c)}},getOption:function(l){var c=this.$options[l];return c?c.forwardTo?this[c.forwardTo]&&this[c.forwardTo].getOption(l):c&&c.get?c.get.call(this):this["$"+l]:h('misspelled option "'+l+'"')}};function h(l){typeof console<"u"&&console.warn&&console.warn.apply(console,arguments)}var o,r=function(){function l(){this.$defaultOptions={}}return l.prototype.defineOptions=function(c,a,d){return c.$options||(this.$defaultOptions[a]=c.$options={}),Object.keys(d).forEach(function(m){var y=d[m];typeof y=="string"&&(y={forwardTo:y}),y.name||(y.name=m),c.$options[y.name]=y,"initialValue"in y&&(c["$"+y.name]=y.initialValue)}),u.implement(c,s),this},l.prototype.resetOptions=function(c){Object.keys(c.$options).forEach(function(a){var d=c.$options[a];"value"in d&&c.setOption(a,d.value)})},l.prototype.setDefaultValue=function(c,a,d){if(!c){for(c in this.$defaultOptions)if(this.$defaultOptions[c][a])break;if(!this.$defaultOptions[c][a])return!1}var m=this.$defaultOptions[c]||(this.$defaultOptions[c]={});m[a]&&(m.forwardTo?this.setDefaultValue(m.forwardTo,a,d):m[a].value=d)},l.prototype.setDefaultValues=function(c,a){Object.keys(a).forEach(function(d){this.setDefaultValue(c,d,a[d])},this)},l.prototype.setMessages=function(c){o=c},l.prototype.nls=function(c,a){o&&!o[c]&&h("No message found for '"+c+"' in the provided messages, falling back to default English message.");var d=o&&o[c]||c;return a&&(d=d.replace(/\$(\$|[\d]+)/g,function(m,y){return y=="$"?"$":a[y]})),d},l}();r.prototype.warn=h,r.prototype.reportError=g,u.implement(r.prototype,f),i.AppConfig=r}),ace.define("ace/theme/textmate-css",["require","exports","module"],function(n,i,p){p.exports=`.ace-tm .ace_gutter {
784
786
  background: #f0f0f0;
785
787
  color: #333;
786
788
  }
@@ -938,7 +940,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
938
940
  .ace-tm .ace_indent-guide-active {
939
941
  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
940
942
  }
941
- `}),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"),p=n("./lib/net"),g=n("./lib/dom"),s=n("./lib/app_config").AppConfig;d.exports=i=new s;var h={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};i.get=function(c){if(!h.hasOwnProperty(c))throw new Error("Unknown config key: "+c);return h[c]},i.set=function(c,a){if(h.hasOwnProperty(c))h[c]=a;else if(this.setDefaultValue("",c,a)==!1)throw new Error("Unknown config key: "+c);c=="useStrictCSP"&&g.useStrictCSP(a)},i.all=function(){return u.copyObject(h)},i.$modes={},i.moduleUrl=function(c,a){if(h.$moduleUrls[c])return h.$moduleUrls[c];var f=c.split("/");a=a||f[f.length-2]||"";var m=a=="snippets"?"/":"-",y=f[f.length-1];if(a=="worker"&&m=="-"){var b=new RegExp("^"+a+"[\\-_]|[\\-_]"+a+"$","g");y=y.replace(b,"")}(!y||y==a)&&f.length>1&&(y=f[f.length-2]);var E=h[a+"Path"];return E==null?E=h.basePath:m=="/"&&(a=m=""),E&&E.slice(-1)!="/"&&(E+="/"),E+a+m+y+this.get("suffix")},i.setModuleUrl=function(c,a){return h.$moduleUrls[c]=a};var o=function(c,a){if(c==="ace/theme/textmate"||c==="./theme/textmate")return a(null,n("./theme/textmate"));if(r)return r(c,a);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,a){var f,m;Array.isArray(c)&&(m=c[0],c=c[1]);var y=function(b){if(b&&!i.$loading[c])return a&&a(b);if(i.$loading[c]||(i.$loading[c]=[]),i.$loading[c].push(a),!(i.$loading[c].length>1)){var E=function(){o(c,function(S,C){C&&(i.$loaded[c]=C),i._emit("load.module",{name:c,module:C});var $=i.$loading[c];i.$loading[c]=null,$.forEach(function(R){R&&R(C)})})};if(!i.get("packaged"))return E();p.loadScript(i.moduleUrl(c,m),E),l()}};if(i.dynamicModules[c])i.dynamicModules[c]().then(function(b){b.default?y(b.default):y(b)});else{try{f=this.$require(c)}catch{}y(f||i.$loaded[c])}},i.$require=function(c){if(typeof d.require=="function"){var a="require";return d[a](c)}},i.setModuleLoader=function(c,a){i.dynamicModules[c]=a};var l=function(){!h.basePath&&!h.workerPath&&!h.modePath&&!h.themePath&&!Object.keys(h.$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"),l=function(){})};i.version="1.28.0"}),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(h,o){n([h],function(r){o(null,r)})});var p=function(){return this||typeof window<"u"&&window}();d.exports=function(h){u.init=g,u.$require=n,h.require=n},g(!0);function g(h){if(!(!p||!p.document)){u.set("packaged",h||n.packaged||d.packaged||p.define&&(void 0).packaged);var o={},r="",l=document.currentScript||document._currentScript,c=l&&l.ownerDocument||document;l&&l.src&&(r=l.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var a=c.getElementsByTagName("script"),f=0;f<a.length;f++){var m=a[f],y=m.src||m.getAttribute("src");if(y){for(var b=m.attributes,E=0,S=b.length;E<S;E++){var C=b[E];C.name.indexOf("data-ace-")===0&&(o[s(C.name.replace(/^data-ace-/,""))]=C.value)}var $=y.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(h){return h.replace(/-(.)/g,function(o,r){return r.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(n,i,d){var u=function(g,s){return g.row-s.row||g.column-s.column},p=function(){function g(s,h,o,r){this.start={row:s,column:h},this.end={row:o,column:r}}return g.prototype.isEqual=function(s){return this.start.row===s.start.row&&this.end.row===s.end.row&&this.start.column===s.start.column&&this.end.column===s.end.column},g.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},g.prototype.contains=function(s,h){return this.compare(s,h)==0},g.prototype.compareRange=function(s){var h,o=s.end,r=s.start;return h=this.compare(o.row,o.column),h==1?(h=this.compare(r.row,r.column),h==1?2:h==0?1:0):h==-1?-2:(h=this.compare(r.row,r.column),h==-1?-1:h==1?42:0)},g.prototype.comparePoint=function(s){return this.compare(s.row,s.column)},g.prototype.containsRange=function(s){return this.comparePoint(s.start)==0&&this.comparePoint(s.end)==0},g.prototype.intersects=function(s){var h=this.compareRange(s);return h==-1||h==0||h==1},g.prototype.isEnd=function(s,h){return this.end.row==s&&this.end.column==h},g.prototype.isStart=function(s,h){return this.start.row==s&&this.start.column==h},g.prototype.setStart=function(s,h){typeof s=="object"?(this.start.column=s.column,this.start.row=s.row):(this.start.row=s,this.start.column=h)},g.prototype.setEnd=function(s,h){typeof s=="object"?(this.end.column=s.column,this.end.row=s.row):(this.end.row=s,this.end.column=h)},g.prototype.inside=function(s,h){return this.compare(s,h)==0?!(this.isEnd(s,h)||this.isStart(s,h)):!1},g.prototype.insideStart=function(s,h){return this.compare(s,h)==0?!this.isEnd(s,h):!1},g.prototype.insideEnd=function(s,h){return this.compare(s,h)==0?!this.isStart(s,h):!1},g.prototype.compare=function(s,h){return!this.isMultiLine()&&s===this.start.row?h<this.start.column?-1:h>this.end.column?1:0:s<this.start.row?-1:s>this.end.row?1:this.start.row===s?h>=this.start.column?0:-1:this.end.row===s?h<=this.end.column?0:1:0},g.prototype.compareStart=function(s,h){return this.start.row==s&&this.start.column==h?-1:this.compare(s,h)},g.prototype.compareEnd=function(s,h){return this.end.row==s&&this.end.column==h?1:this.compare(s,h)},g.prototype.compareInside=function(s,h){return this.end.row==s&&this.end.column==h?1:this.start.row==s&&this.start.column==h?-1:this.compare(s,h)},g.prototype.clipRows=function(s,h){if(this.end.row>h)var o={row:h+1,column:0};else if(this.end.row<s)var o={row:s,column:0};if(this.start.row>h)var r={row:h+1,column:0};else if(this.start.row<s)var r={row:s,column:0};return g.fromPoints(r||this.start,o||this.end)},g.prototype.extend=function(s,h){var o=this.compare(s,h);if(o==0)return this;if(o==-1)var r={row:s,column:h};else var l={row:s,column:h};return g.fromPoints(r||this.start,l||this.end)},g.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},g.prototype.isMultiLine=function(){return this.start.row!==this.end.row},g.prototype.clone=function(){return g.fromPoints(this.start,this.end)},g.prototype.collapseRows=function(){return this.end.column==0?new g(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new g(this.start.row,0,this.end.row,0)},g.prototype.toScreenRange=function(s){var h=s.documentToScreenPosition(this.start),o=s.documentToScreenPosition(this.end);return new g(h.row,h.column,o.row,o.column)},g.prototype.moveBy=function(s,h){this.start.row+=s,this.start.column+=h,this.end.row+=s,this.end.column+=h},g}();p.fromPoints=function(g,s){return new p(g.row,g.column,s.row,s.column)},p.comparePoints=u,p.comparePoints=function(g,s){return g.row-s.row||g.column-s.column},i.Range=p}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(n,i,d){/*! @license
943
+ `}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(n,i,p){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,p){"no use strict";var u=n("./lib/lang"),f=n("./lib/net"),g=n("./lib/dom"),s=n("./lib/app_config").AppConfig;p.exports=i=new s;var h={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};i.get=function(c){if(!h.hasOwnProperty(c))throw new Error("Unknown config key: "+c);return h[c]},i.set=function(c,a){if(h.hasOwnProperty(c))h[c]=a;else if(this.setDefaultValue("",c,a)==!1)throw new Error("Unknown config key: "+c);c=="useStrictCSP"&&g.useStrictCSP(a)},i.all=function(){return u.copyObject(h)},i.$modes={},i.moduleUrl=function(c,a){if(h.$moduleUrls[c])return h.$moduleUrls[c];var d=c.split("/");a=a||d[d.length-2]||"";var m=a=="snippets"?"/":"-",y=d[d.length-1];if(a=="worker"&&m=="-"){var b=new RegExp("^"+a+"[\\-_]|[\\-_]"+a+"$","g");y=y.replace(b,"")}(!y||y==a)&&d.length>1&&(y=d[d.length-2]);var E=h[a+"Path"];return E==null?E=h.basePath:m=="/"&&(a=m=""),E&&E.slice(-1)!="/"&&(E+="/"),E+a+m+y+this.get("suffix")},i.setModuleUrl=function(c,a){return h.$moduleUrls[c]=a};var o=function(c,a){if(c==="ace/theme/textmate"||c==="./theme/textmate")return a(null,n("./theme/textmate"));if(r)return r(c,a);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,a){var d,m;Array.isArray(c)&&(m=c[0],c=c[1]);var y=function(b){if(b&&!i.$loading[c])return a&&a(b);if(i.$loading[c]||(i.$loading[c]=[]),i.$loading[c].push(a),!(i.$loading[c].length>1)){var E=function(){o(c,function(S,C){C&&(i.$loaded[c]=C),i._emit("load.module",{name:c,module:C});var $=i.$loading[c];i.$loading[c]=null,$.forEach(function(R){R&&R(C)})})};if(!i.get("packaged"))return E();f.loadScript(i.moduleUrl(c,m),E),l()}};if(i.dynamicModules[c])i.dynamicModules[c]().then(function(b){b.default?y(b.default):y(b)});else{try{d=this.$require(c)}catch{}y(d||i.$loaded[c])}},i.$require=function(c){if(typeof p.require=="function"){var a="require";return p[a](c)}},i.setModuleLoader=function(c,a){i.dynamicModules[c]=a};var l=function(){!h.basePath&&!h.workerPath&&!h.modePath&&!h.themePath&&!Object.keys(h.$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"),l=function(){})};i.version="1.28.0"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(n,i,p){n("./lib/fixoldbrowsers");var u=n("./config");u.setLoader(function(h,o){n([h],function(r){o(null,r)})});var f=function(){return this||typeof window<"u"&&window}();p.exports=function(h){u.init=g,u.$require=n,h.require=n},g(!0);function g(h){if(!(!f||!f.document)){u.set("packaged",h||n.packaged||p.packaged||f.define&&(void 0).packaged);var o={},r="",l=document.currentScript||document._currentScript,c=l&&l.ownerDocument||document;l&&l.src&&(r=l.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var a=c.getElementsByTagName("script"),d=0;d<a.length;d++){var m=a[d],y=m.src||m.getAttribute("src");if(y){for(var b=m.attributes,E=0,S=b.length;E<S;E++){var C=b[E];C.name.indexOf("data-ace-")===0&&(o[s(C.name.replace(/^data-ace-/,""))]=C.value)}var $=y.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(h){return h.replace(/-(.)/g,function(o,r){return r.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(n,i,p){var u=function(g,s){return g.row-s.row||g.column-s.column},f=function(){function g(s,h,o,r){this.start={row:s,column:h},this.end={row:o,column:r}}return g.prototype.isEqual=function(s){return this.start.row===s.start.row&&this.end.row===s.end.row&&this.start.column===s.start.column&&this.end.column===s.end.column},g.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},g.prototype.contains=function(s,h){return this.compare(s,h)==0},g.prototype.compareRange=function(s){var h,o=s.end,r=s.start;return h=this.compare(o.row,o.column),h==1?(h=this.compare(r.row,r.column),h==1?2:h==0?1:0):h==-1?-2:(h=this.compare(r.row,r.column),h==-1?-1:h==1?42:0)},g.prototype.comparePoint=function(s){return this.compare(s.row,s.column)},g.prototype.containsRange=function(s){return this.comparePoint(s.start)==0&&this.comparePoint(s.end)==0},g.prototype.intersects=function(s){var h=this.compareRange(s);return h==-1||h==0||h==1},g.prototype.isEnd=function(s,h){return this.end.row==s&&this.end.column==h},g.prototype.isStart=function(s,h){return this.start.row==s&&this.start.column==h},g.prototype.setStart=function(s,h){typeof s=="object"?(this.start.column=s.column,this.start.row=s.row):(this.start.row=s,this.start.column=h)},g.prototype.setEnd=function(s,h){typeof s=="object"?(this.end.column=s.column,this.end.row=s.row):(this.end.row=s,this.end.column=h)},g.prototype.inside=function(s,h){return this.compare(s,h)==0?!(this.isEnd(s,h)||this.isStart(s,h)):!1},g.prototype.insideStart=function(s,h){return this.compare(s,h)==0?!this.isEnd(s,h):!1},g.prototype.insideEnd=function(s,h){return this.compare(s,h)==0?!this.isStart(s,h):!1},g.prototype.compare=function(s,h){return!this.isMultiLine()&&s===this.start.row?h<this.start.column?-1:h>this.end.column?1:0:s<this.start.row?-1:s>this.end.row?1:this.start.row===s?h>=this.start.column?0:-1:this.end.row===s?h<=this.end.column?0:1:0},g.prototype.compareStart=function(s,h){return this.start.row==s&&this.start.column==h?-1:this.compare(s,h)},g.prototype.compareEnd=function(s,h){return this.end.row==s&&this.end.column==h?1:this.compare(s,h)},g.prototype.compareInside=function(s,h){return this.end.row==s&&this.end.column==h?1:this.start.row==s&&this.start.column==h?-1:this.compare(s,h)},g.prototype.clipRows=function(s,h){if(this.end.row>h)var o={row:h+1,column:0};else if(this.end.row<s)var o={row:s,column:0};if(this.start.row>h)var r={row:h+1,column:0};else if(this.start.row<s)var r={row:s,column:0};return g.fromPoints(r||this.start,o||this.end)},g.prototype.extend=function(s,h){var o=this.compare(s,h);if(o==0)return this;if(o==-1)var r={row:s,column:h};else var l={row:s,column:h};return g.fromPoints(r||this.start,l||this.end)},g.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},g.prototype.isMultiLine=function(){return this.start.row!==this.end.row},g.prototype.clone=function(){return g.fromPoints(this.start,this.end)},g.prototype.collapseRows=function(){return this.end.column==0?new g(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new g(this.start.row,0,this.end.row,0)},g.prototype.toScreenRange=function(s){var h=s.documentToScreenPosition(this.start),o=s.documentToScreenPosition(this.end);return new g(h.row,h.column,o.row,o.column)},g.prototype.moveBy=function(s,h){this.start.row+=s,this.start.column+=h,this.end.row+=s,this.end.column+=h},g}();f.fromPoints=function(g,s){return new f(g.row,g.column,s.row,s.column)},f.comparePoints=u,f.comparePoints=function(g,s){return g.row-s.row||g.column-s.column},i.Range=f}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(n,i,p){/*! @license
942
944
  ==========================================================================
943
945
  SproutCore -- JavaScript Application Framework
944
946
  copyright 2006-2009, Sprout Systems Inc., Apple Inc. and contributors.
@@ -967,7 +969,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
967
969
 
968
970
 
969
971
  ==========================================================================
970
- @license */var u=n("./oop"),p=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,h;for(h in g.FUNCTION_KEYS)s=g.FUNCTION_KEYS[h].toLowerCase(),g[s]=parseInt(h,10);for(h in g.PRINTABLE_KEYS)s=g.PRINTABLE_KEYS[h].toLowerCase(),g[s]=parseInt(h,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(l){return r&g.KEY_MODS[l]}).join("-")+"-"}(),g.KEY_MODS[0]="",g.KEY_MODS[-1]="input-",g}();u.mixin(i,p),i.default=i,i.keyCodeToString=function(g){var s=p[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"),p=n("./useragent"),g=null,s=0,h;function o(){h=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){h={passive:!1}}})}catch{}}function r(){return h==null&&o(),h}function l(E,S,C){this.elem=E,this.type=S,this.callback=C}l.prototype.destroy=function(){a(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var c=i.addListener=function(E,S,C,$){E.addEventListener(S,C,r()),$&&$.$toDestroy.push(new l(E,S,C))},a=i.removeListener=function(E,S,C){E.removeEventListener(S,C,r())};i.stopEvent=function(E){return i.stopPropagation(E),i.preventDefault(E),!1},i.stopPropagation=function(E){E.stopPropagation&&E.stopPropagation()},i.preventDefault=function(E){E.preventDefault&&E.preventDefault()},i.getButton=function(E){return E.type=="dblclick"?0:E.type=="contextmenu"||p.isMac&&E.ctrlKey&&!E.altKey&&!E.shiftKey?2:E.button},i.capture=function(E,S,C){var $=E&&E.ownerDocument||document;function R(x){S&&S(x),C&&C(x),a($,"mousemove",S),a($,"mouseup",R),a($,"dragstart",R)}return c($,"mousemove",S),c($,"mouseup",R),c($,"dragstart",R),R},i.addMouseWheelListener=function(E,S,C){c(E,"wheel",function($){var R=.15,x=$.deltaX||0,k=$.deltaY||0;switch($.deltaMode){case $.DOM_DELTA_PIXEL:$.wheelX=x*R,$.wheelY=k*R;break;case $.DOM_DELTA_LINE:var _=15;$.wheelX=x*_,$.wheelY=k*_;break;case $.DOM_DELTA_PAGE:var v=150;$.wheelX=x*v,$.wheelY=k*v;break}S($)},C)},i.addMultiMouseDownListener=function(E,S,C,$,R){var x=0,k,_,v,M={2:"dblclick",3:"tripleclick",4:"quadclick"};function A(w){if(i.getButton(w)!==0?x=0:w.detail>1?(x++,x>4&&(x=1)):x=1,p.isIE){var L=Math.abs(w.clientX-k)>5||Math.abs(w.clientY-_)>5;(!v||L)&&(x=1),v&&clearTimeout(v),v=setTimeout(function(){v=null},S[x-1]||600),x==1&&(k=w.clientX,_=w.clientY)}if(w._clicks=x,C[$]("mousedown",w),x>4)x=0;else if(x>1)return C[$](M[x],w)}Array.isArray(E)||(E=[E]),E.forEach(function(w){c(w,"mousedown",A,R)})};var f=function(E){return 0|(E.ctrlKey?1:0)|(E.altKey?2:0)|(E.shiftKey?4:0)|(E.metaKey?8:0)};i.getModifierString=function(E){return u.KEY_MODS[f(E)]};function m(E,S,C){var $=f(S);if(!p.isMac&&g){if(S.getModifierState&&(S.getModifierState("OS")||S.getModifierState("Win"))&&($|=8),g.altGr)if((3&$)!=3)g.altGr=0;else return;if(C===18||C===17){var R="location"in S?S.location:S.keyLocation;if(C===17&&R===1)g[C]==1&&(s=S.timeStamp);else if(C===18&&$===3&&R===2){var x=S.timeStamp-s;x<50&&(g.altGr=!0)}}}if(C in u.MODIFIER_KEYS&&(C=-1),!$&&C===13){var R="location"in S?S.location:S.keyLocation;if(R===3&&(E(S,$,-C),S.defaultPrevented))return}if(p.isChromeOS&&$&8){if(E(S,$,C),S.defaultPrevented)return;$&=-9}return!$&&!(C in u.FUNCTION_KEYS)&&!(C in u.PRINTABLE_KEYS)?!1:E(S,$,C)}i.addCommandKeyListener=function(E,S,C){if(p.isOldGecko||p.isOpera&&!("KeyboardEvent"in window)){var $=null;c(E,"keydown",function(x){$=x.keyCode},C),c(E,"keypress",function(x){return m(S,x,$)},C)}else{var R=null;c(E,"keydown",function(x){g[x.keyCode]=(g[x.keyCode]||0)+1;var k=m(S,x,x.keyCode);return R=x.defaultPrevented,k},C),c(E,"keypress",function(x){R&&(x.ctrlKey||x.altKey||x.shiftKey||x.metaKey)&&(i.stopEvent(x),R=null)},C),c(E,"keyup",function(x){g[x.keyCode]=null},C),g||(y(),c(window,"focus",y))}};function y(){g=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!p.isOldIE){var b=1;i.nextTick=function(E,S){S=S||window;var C="zero-timeout-message-"+b++,$=function(R){R.data==C&&(i.stopPropagation(R),a(S,"message",$),E())};c(S,"message",$),S.postMessage(C,"*")}}i.$idleBlocked=!1,i.onIdle=function(E,S){return setTimeout(function C(){i.$idleBlocked?setTimeout(C,100):E()},S)},i.$idleBlockId=null,i.blockIdle=function(E){i.$idleBlockId&&clearTimeout(i.$idleBlockId),i.$idleBlocked=!0,i.$idleBlockId=setTimeout(function(){i.$idleBlocked=!1},E||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(E){setTimeout(E,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"),p=n("../config").nls,g=n("../lib/useragent"),s=n("../lib/dom"),h=n("../lib/lang"),o=n("../clipboard"),r=g.isChrome<18,l=g.isIE,c=g.isChrome>63,a=400,f=n("../lib/keys"),m=f.KEY_MODS,y=g.isIOS,b=y?/\s/:/\n/,E=g.isMobile,S=function(C,$){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",!1),R.style.opacity="0",C.insertBefore(R,C.firstChild);var x=!1,k=!1,_=!1,v=!1,M="";E||(R.style.fontSize="1px");var A=!1,w=!1,L="",T=0,O=0,I=0,F=Number.MAX_SAFE_INTEGER,D=Number.MIN_SAFE_INTEGER,W=0;try{var G=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",p("editor")),$.session)){var ae=$.session.selection.cursor.row;R.setAttribute("aria-label",p("Cursor at row $0",[ae+1]))}},this.setAriaOptions({role:"textbox"}),u.addListener(R,"blur",function(Q){w||($.onBlur(Q),G=!1)},$),u.addListener(R,"focus",function(Q){if(!w){if(G=!0,g.isEdge)try{if(!document.hasFocus())return}catch{}$.onFocus(Q),g.isEdge?setTimeout(H):H()}},$),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:$.renderer.enableKeyboardAccessibility}),M||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 fe=[];if(ae)for(var be=R.parentElement;be&&be.nodeType==1;)fe.push(be),be.setAttribute("ace_nocontext",!0),!be.parentElement&&be.getRootNode?be=be.getRootNode().host:be=be.parentElement;R.focus({preventScroll:!0}),ae&&fe.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 G},$.on("beforeEndOperation",function(){var Q=$.curOp,ae=Q&&Q.command&&Q.command.name;if(ae!="insertstring"){var fe=ae&&(Q.docChanged||Q.selectionChanged);_&&fe&&(L=R.value="",le()),H()}});var U=function(Q,ae){for(var fe=ae,be=1;be<=Q-F&&be<2*W+1;be++)fe+=$.session.getLine(Q-be).length+1;return fe},H=y?function(Q){if(!(!G||x&&!Q||v)){Q||(Q="");var ae=`
972
+ @license */var u=n("./oop"),f=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,h;for(h in g.FUNCTION_KEYS)s=g.FUNCTION_KEYS[h].toLowerCase(),g[s]=parseInt(h,10);for(h in g.PRINTABLE_KEYS)s=g.PRINTABLE_KEYS[h].toLowerCase(),g[s]=parseInt(h,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(l){return r&g.KEY_MODS[l]}).join("-")+"-"}(),g.KEY_MODS[0]="",g.KEY_MODS[-1]="input-",g}();u.mixin(i,f),i.default=i,i.keyCodeToString=function(g){var s=f[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,p){var u=n("./keys"),f=n("./useragent"),g=null,s=0,h;function o(){h=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){h={passive:!1}}})}catch{}}function r(){return h==null&&o(),h}function l(E,S,C){this.elem=E,this.type=S,this.callback=C}l.prototype.destroy=function(){a(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var c=i.addListener=function(E,S,C,$){E.addEventListener(S,C,r()),$&&$.$toDestroy.push(new l(E,S,C))},a=i.removeListener=function(E,S,C){E.removeEventListener(S,C,r())};i.stopEvent=function(E){return i.stopPropagation(E),i.preventDefault(E),!1},i.stopPropagation=function(E){E.stopPropagation&&E.stopPropagation()},i.preventDefault=function(E){E.preventDefault&&E.preventDefault()},i.getButton=function(E){return E.type=="dblclick"?0:E.type=="contextmenu"||f.isMac&&E.ctrlKey&&!E.altKey&&!E.shiftKey?2:E.button},i.capture=function(E,S,C){var $=E&&E.ownerDocument||document;function R(x){S&&S(x),C&&C(x),a($,"mousemove",S),a($,"mouseup",R),a($,"dragstart",R)}return c($,"mousemove",S),c($,"mouseup",R),c($,"dragstart",R),R},i.addMouseWheelListener=function(E,S,C){c(E,"wheel",function($){var R=.15,x=$.deltaX||0,k=$.deltaY||0;switch($.deltaMode){case $.DOM_DELTA_PIXEL:$.wheelX=x*R,$.wheelY=k*R;break;case $.DOM_DELTA_LINE:var _=15;$.wheelX=x*_,$.wheelY=k*_;break;case $.DOM_DELTA_PAGE:var v=150;$.wheelX=x*v,$.wheelY=k*v;break}S($)},C)},i.addMultiMouseDownListener=function(E,S,C,$,R){var x=0,k,_,v,M={2:"dblclick",3:"tripleclick",4:"quadclick"};function A(w){if(i.getButton(w)!==0?x=0:w.detail>1?(x++,x>4&&(x=1)):x=1,f.isIE){var L=Math.abs(w.clientX-k)>5||Math.abs(w.clientY-_)>5;(!v||L)&&(x=1),v&&clearTimeout(v),v=setTimeout(function(){v=null},S[x-1]||600),x==1&&(k=w.clientX,_=w.clientY)}if(w._clicks=x,C[$]("mousedown",w),x>4)x=0;else if(x>1)return C[$](M[x],w)}Array.isArray(E)||(E=[E]),E.forEach(function(w){c(w,"mousedown",A,R)})};var d=function(E){return 0|(E.ctrlKey?1:0)|(E.altKey?2:0)|(E.shiftKey?4:0)|(E.metaKey?8:0)};i.getModifierString=function(E){return u.KEY_MODS[d(E)]};function m(E,S,C){var $=d(S);if(!f.isMac&&g){if(S.getModifierState&&(S.getModifierState("OS")||S.getModifierState("Win"))&&($|=8),g.altGr)if((3&$)!=3)g.altGr=0;else return;if(C===18||C===17){var R="location"in S?S.location:S.keyLocation;if(C===17&&R===1)g[C]==1&&(s=S.timeStamp);else if(C===18&&$===3&&R===2){var x=S.timeStamp-s;x<50&&(g.altGr=!0)}}}if(C in u.MODIFIER_KEYS&&(C=-1),!$&&C===13){var R="location"in S?S.location:S.keyLocation;if(R===3&&(E(S,$,-C),S.defaultPrevented))return}if(f.isChromeOS&&$&8){if(E(S,$,C),S.defaultPrevented)return;$&=-9}return!$&&!(C in u.FUNCTION_KEYS)&&!(C in u.PRINTABLE_KEYS)?!1:E(S,$,C)}i.addCommandKeyListener=function(E,S,C){if(f.isOldGecko||f.isOpera&&!("KeyboardEvent"in window)){var $=null;c(E,"keydown",function(x){$=x.keyCode},C),c(E,"keypress",function(x){return m(S,x,$)},C)}else{var R=null;c(E,"keydown",function(x){g[x.keyCode]=(g[x.keyCode]||0)+1;var k=m(S,x,x.keyCode);return R=x.defaultPrevented,k},C),c(E,"keypress",function(x){R&&(x.ctrlKey||x.altKey||x.shiftKey||x.metaKey)&&(i.stopEvent(x),R=null)},C),c(E,"keyup",function(x){g[x.keyCode]=null},C),g||(y(),c(window,"focus",y))}};function y(){g=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!f.isOldIE){var b=1;i.nextTick=function(E,S){S=S||window;var C="zero-timeout-message-"+b++,$=function(R){R.data==C&&(i.stopPropagation(R),a(S,"message",$),E())};c(S,"message",$),S.postMessage(C,"*")}}i.$idleBlocked=!1,i.onIdle=function(E,S){return setTimeout(function C(){i.$idleBlocked?setTimeout(C,100):E()},S)},i.$idleBlockId=null,i.blockIdle=function(E){i.$idleBlockId&&clearTimeout(i.$idleBlockId),i.$idleBlocked=!0,i.$idleBlockId=setTimeout(function(){i.$idleBlocked=!1},E||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(E){setTimeout(E,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(n,i,p){var u;p.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,p){var u=n("../lib/event"),f=n("../config").nls,g=n("../lib/useragent"),s=n("../lib/dom"),h=n("../lib/lang"),o=n("../clipboard"),r=g.isChrome<18,l=g.isIE,c=g.isChrome>63,a=400,d=n("../lib/keys"),m=d.KEY_MODS,y=g.isIOS,b=y?/\s/:/\n/,E=g.isMobile,S=function(C,$){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",!1),R.style.opacity="0",C.insertBefore(R,C.firstChild);var x=!1,k=!1,_=!1,v=!1,M="";E||(R.style.fontSize="1px");var A=!1,w=!1,L="",T=0,O=0,I=0,F=Number.MAX_SAFE_INTEGER,D=Number.MIN_SAFE_INTEGER,W=0;try{var G=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",f("editor")),$.session)){var ae=$.session.selection.cursor.row;R.setAttribute("aria-label",f("Cursor at row $0",[ae+1]))}},this.setAriaOptions({role:"textbox"}),u.addListener(R,"blur",function(Q){w||($.onBlur(Q),G=!1)},$),u.addListener(R,"focus",function(Q){if(!w){if(G=!0,g.isEdge)try{if(!document.hasFocus())return}catch{}$.onFocus(Q),g.isEdge?setTimeout(H):H()}},$),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:$.renderer.enableKeyboardAccessibility}),M||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 fe=[];if(ae)for(var be=R.parentElement;be&&be.nodeType==1;)fe.push(be),be.setAttribute("ace_nocontext",!0),!be.parentElement&&be.getRootNode?be=be.getRootNode().host:be=be.parentElement;R.focus({preventScroll:!0}),ae&&fe.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 G},$.on("beforeEndOperation",function(){var Q=$.curOp,ae=Q&&Q.command&&Q.command.name;if(ae!="insertstring"){var fe=ae&&(Q.docChanged||Q.selectionChanged);_&&fe&&(L=R.value="",le()),H()}});var U=function(Q,ae){for(var fe=ae,be=1;be<=Q-F&&be<2*W+1;be++)fe+=$.session.getLine(Q-be).length+1;return fe},H=y?function(Q){if(!(!G||x&&!Q||v)){Q||(Q="");var ae=`
971
973
  ab`+Q+`cde fg
972
974
  `;ae!=R.value&&(R.value=L=ae);var fe=4,be=4+(Q.length||($.selection.isEmpty()?0:1));(T!=fe||O!=be)&&R.setSelectionRange(fe,be),T=fe,O=be}}:function(){if(!(_||v)&&!(!G&&!Y)){_=!0;var Q=0,ae=0,fe="";if($.session){var be=$.selection,Re=be.getRange(),Ne=be.cursor.row;Ne===D+1?(F=D+1,D=F+2*W):Ne===F-1?(D=F-1,F=D-2*W):(Ne<F-1||Ne>D+1)&&(F=Ne>W?Ne-W:0,D=Ne>W?Ne+W:2*W);for(var Ke=[],De=F;De<=D;De++)Ke.push($.session.getLine(De));if(fe=Ke.join(`
973
975
  `),Q=U(Re.start.row,Re.start.column),ae=U(Re.end.row,Re.end.column),Re.start.row<F){var He=$.session.getLine(F-1);Q=Re.start.row<F-1?0:Q,ae+=He.length+1,fe=He+`
@@ -977,39 +979,39 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
977
979
  `,Q==ae?Q=ae=0:(Q=0,ae=1)));var ze=fe+`
978
980
 
979
981
  `;ze!=L&&(R.value=L=ze,T=O=ze.length)}if(Y&&(T=R.selectionStart,O=R.selectionEnd),O!=ae||T!=Q||R.selectionEnd!=O)try{R.setSelectionRange(Q,ae),T=Q,O=ae}catch{}_=!1}};this.resetSelection=H,G&&$.onFocus();var X=function(Q){return Q.selectionStart===0&&Q.selectionEnd>=L.length&&Q.value===L&&L&&Q.selectionEnd!==O},J=function(Q){_||(x?x=!1:X(R)?($.selectAll(),H()):E&&R.selectionStart!=T&&H())},z=null;this.setInputHandler=function(Q){z=Q},this.getInputHandler=function(){return z};var Y=!1,K=function(Q,ae){if(Y&&(Y=!1),k)return H(),Q&&$.onPaste(Q),k=!1,"";for(var fe=R.selectionStart,be=R.selectionEnd,Re=T,Ne=L.length-O,Ke=Q,De=Q.length-fe,He=Q.length-be,ke=0;Re>0&&L[ke]==Q[ke];)ke++,Re--;for(Ke=Ke.slice(ke),ke=1;Ne>0&&L.length-ke>T-1&&L[L.length-ke]==Q[Q.length-ke];)ke++,Ne--;De-=ke-1,He-=ke-1;var ze=Ke.length-ke+1;if(ze<0&&(Re=-ze,ze=0),Ke=Ke.slice(0,ze),!ae&&!Ke&&!De&&!Re&&!Ne&&!He)return"";v=!0;var fn=!1;return g.isAndroid&&Ke==". "&&(Ke=" ",fn=!0),Ke&&!Re&&!Ne&&!De&&!He||A?$.onTextInput(Ke):$.onTextInput(Ke,{extendLeft:Re,extendRight:Ne,restoreStart:De,restoreEnd:He}),v=!1,L=Q,T=fe,O=be,I=He,fn?`
980
- `:Ke},V=function(Q){if(_)return ie();if(Q&&Q.inputType){if(Q.inputType=="historyUndo")return $.execCommand("undo");if(Q.inputType=="historyRedo")return $.execCommand("redo")}var ae=R.value,fe=K(ae,!0);(ae.length>a+100||b.test(fe)||E&&T<1&&T==O)&&H()},ee=function(Q,ae,fe){var be=Q.clipboardData||window.clipboardData;if(!(!be||r)){var Re=l||fe?"Text":"text/plain";try{return ae?be.setData(Re,ae)!==!1:be.getData(Re)}catch(Ne){if(!fe)return ee(Ne,ae,!0)}}},N=function(Q,ae){var fe=$.getCopyText();if(!fe)return u.preventDefault(Q);ee(Q,fe)?(y&&(H(fe),x=fe,setTimeout(function(){x=!1},10)),ae?$.onCut():$.onCopy(),u.preventDefault(Q)):(x=!0,R.value=fe,R.select(),setTimeout(function(){x=!1,H(),ae?$.onCut():$.onCopy()}))},B=function(Q){N(Q,!0)},j=function(Q){N(Q,!1)},Z=function(Q){var ae=ee(Q);o.pasteCancelled()||(typeof ae=="string"?(ae&&$.onPaste(ae,Q),g.isIE&&setTimeout(H),u.preventDefault(Q)):(R.value="",k=!0))};u.addCommandKeyListener(R,$.onCommandKey.bind($),$),u.addListener(R,"select",J,$),u.addListener(R,"input",V,$),u.addListener(R,"cut",B,$),u.addListener(R,"copy",j,$),u.addListener(R,"paste",Z,$),(!("oncut"in R)||!("oncopy"in R)||!("onpaste"in R))&&u.addListener(C,"keydown",function(Q){if(!(g.isMac&&!Q.metaKey||!Q.ctrlKey))switch(Q.keyCode){case 67:j(Q);break;case 86:Z(Q);break;case 88:B(Q);break}},$);var te=function(Q){if(!(_||!$.onCompositionStart||$.$readOnly)&&(_={},!A)){Q.data&&(_.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,_.markerRange=ae,_.selectionStart=T,$.onCompositionStart(_),_.useTextareaForIME?(L=R.value="",T=0,O=0):(R.msGetInputContext&&(_.context=R.msGetInputContext()),R.getInputContext&&(_.context=R.getInputContext()))}},ie=function(){if(!(!_||!$.onCompositionUpdate||$.$readOnly)){if(A)return se();if(_.useTextareaForIME)$.onCompositionUpdate(R.value);else{var Q=R.value;K(Q),_.markerRange&&(_.context&&(_.markerRange.start.column=_.selectionStart=_.context.compositionStartOffset),_.markerRange.end.column=_.markerRange.start.column+O-_.selectionStart+I)}}},le=function(Q){!$.onCompositionEnd||$.$readOnly||(_=!1,$.onCompositionEnd(),$.off("mousedown",se),Q&&V())};function se(){w=!0,R.blur(),R.focus(),w=!1}var ce=h.delayedCall(ie,50).schedule.bind(null,null);function re(Q){Q.keyCode==27&&R.value.length<R.selectionStart&&(_||(L=R.value),T=O=-1,H()),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){A=Q,R.readOnly=!1},this.setReadOnly=function(Q){A||(R.readOnly=Q)},this.setCopyWithEmptySelection=function(Q){},this.onContextMenu=function(Q){Y=!0,H(),$._emit("nativecontextmenu",{target:$,domEvent:Q}),this.moveToMouse(Q,!0)},this.moveToMouse=function(Q,ae){M||(M=R.style.cssText),R.style.cssText=(ae?"z-index:100000;":"")+(g.isIE?"opacity:0.1;":"")+"text-indent: -"+(T+O)*$.renderer.characterWidth*.5+"px;";var fe=$.container.getBoundingClientRect(),be=s.computedStyle($.container),Re=fe.top+(parseInt(be.borderTopWidth)||0),Ne=fe.left+(parseInt(fe.borderLeftWidth)||0),Ke=fe.bottom-Re-R.clientHeight-2,De=function(He){s.translate(R,He.clientX-Ne-2,Math.min(He.clientY-Re-2,Ke))};De(Q),Q.type=="mousedown"&&($.renderer.$isMousePressed=!0,clearTimeout(ve),g.isWin&&u.capture($.container,De,de))},this.onContextMenuClose=de;var ve;function de(){clearTimeout(ve),ve=setTimeout(function(){M&&(R.style.cssText=M,M=""),$.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,$),y&&_e(C,$,R);function _e(Q,ae,fe){var be=null,Re=!1;fe.addEventListener("keydown",function(Ke){be&&clearTimeout(be),Re=!0},!0),fe.addEventListener("keyup",function(Ke){be=setTimeout(function(){Re=!1},100)},!0);var Ne=function(Ke){if(document.activeElement===fe&&!(Re||_||ae.$mouseHandler.isMousePressed)&&!x){var De=fe.selectionStart,He=fe.selectionEnd,ke=null,ze=0;if(De==0?ke=f.up:De==1?ke=f.home:He>O&&L[He]==`
981
- `?ke=f.end:De<T&&L[De-1]==" "?(ke=f.left,ze=m.option):De<T||De==T&&O!=T&&De==He?ke=f.left:He>O&&L.slice(0,He).split(`
982
- `).length>2?ke=f.down:He>O&&L[He-1]==" "?(ke=f.right,ze=m.option):(He>O||He==O&&O!=T&&De==He)&&(ke=f.right),De!==He&&(ze|=m.shift),ke){var fn=ae.onCommandKey({},ze,ke);if(!fn&&ae.commands){ke=f.keyCodeToString(ke);var Al=ae.commands.findKeyCommand(ze,ke);Al&&ae.execCommand(Al)}T=De,O=He,H("")}}};document.addEventListener("selectionchange",Ne),ae.on("destroy",function(){document.removeEventListener("selectionchange",Ne)})}this.destroy=function(){R.parentElement&&R.parentElement.removeChild(R)}};i.TextInput=S,i.$setUserAgentForTests=function(C,$){E=C,y=$}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(n,i,d){var u=n("../lib/useragent"),p=0,g=550,s=function(){function r(l){l.$clickSelection=null;var c=l.editor;c.setDefaultHandler("mousedown",this.onMouseDown.bind(l)),c.setDefaultHandler("dblclick",this.onDoubleClick.bind(l)),c.setDefaultHandler("tripleclick",this.onTripleClick.bind(l)),c.setDefaultHandler("quadclick",this.onQuadClick.bind(l)),c.setDefaultHandler("mousewheel",this.onMouseWheel.bind(l));var a=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];a.forEach(function(f){l[f]=this[f]},this),l.selectByLines=this.extendSelectionBy.bind(l,"getLineRange"),l.selectByWords=this.extendSelectionBy.bind(l,"getWordRange")}return r.prototype.onMouseDown=function(l){var c=l.inSelection(),a=l.getDocumentPosition();this.mousedownEvent=l;var f=this.editor,m=l.getButton();if(m!==0){var y=f.getSelectionRange(),b=y.isEmpty();(b||m==1)&&f.selection.moveToPosition(a),m==2&&(f.textInput.onContextMenu(l.domEvent),u.isMozilla||l.preventDefault());return}if(this.mousedownEvent.time=Date.now(),c&&!f.isFocused()&&(f.focus(),this.$focusTimeout&&!this.$clickSelection&&!f.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(l);return}return this.captureMouse(l),this.startSelect(a,l.domEvent._clicks>1),l.preventDefault()},r.prototype.startSelect=function(l,c){l=l||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var a=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?a.selection.selectToPosition(l):c||a.selection.moveToPosition(l),c||this.select(),a.setStyle("ace_selecting"),this.setState("select"))},r.prototype.select=function(){var l,c=this.editor,a=c.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var f=this.$clickSelection.comparePoint(a);if(f==-1)l=this.$clickSelection.end;else if(f==1)l=this.$clickSelection.start;else{var m=o(this.$clickSelection,a);a=m.cursor,l=m.anchor}c.selection.setSelectionAnchor(l.row,l.column)}c.selection.selectToPosition(a),c.renderer.scrollCursorIntoView()},r.prototype.extendSelectionBy=function(l){var c,a=this.editor,f=a.renderer.screenToTextCoordinates(this.x,this.y),m=a.selection[l](f.row,f.column);if(this.$clickSelection){var y=this.$clickSelection.comparePoint(m.start),b=this.$clickSelection.comparePoint(m.end);if(y==-1&&b<=0)c=this.$clickSelection.end,(m.end.row!=f.row||m.end.column!=f.column)&&(f=m.start);else if(b==1&&y>=0)c=this.$clickSelection.start,(m.start.row!=f.row||m.start.column!=f.column)&&(f=m.end);else if(y==-1&&b==1)f=m.end,c=m.start;else{var E=o(this.$clickSelection,f);f=E.cursor,c=E.anchor}a.selection.setSelectionAnchor(c.row,c.column)}a.selection.selectToPosition(f),a.renderer.scrollCursorIntoView()},r.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},r.prototype.focusWait=function(){var l=h(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),c=Date.now();(l>p||c-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},r.prototype.onDoubleClick=function(l){var c=l.getDocumentPosition(),a=this.editor,f=a.session,m=f.getBracketRange(c);m?(m.isEmpty()&&(m.start.column--,m.end.column++),this.setState("select")):(m=a.selection.getWordRange(c.row,c.column),this.setState("selectByWords")),this.$clickSelection=m,this.select()},r.prototype.onTripleClick=function(l){var c=l.getDocumentPosition(),a=this.editor;this.setState("selectByLines");var f=a.getSelectionRange();f.isMultiLine()&&f.contains(c.row,c.column)?(this.$clickSelection=a.selection.getLineRange(f.start.row),this.$clickSelection.end=a.selection.getLineRange(f.end.row).end):this.$clickSelection=a.selection.getLineRange(c.row),this.select()},r.prototype.onQuadClick=function(l){var c=this.editor;c.selectAll(),this.$clickSelection=c.getSelectionRange(),this.setState("selectAll")},r.prototype.onMouseWheel=function(l){if(!l.getAccelKey()){l.getShiftKey()&&l.wheelY&&!l.wheelX&&(l.wheelX=l.wheelY,l.wheelY=0);var c=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var a=this.$lastScroll,f=l.domEvent.timeStamp,m=f-a.t,y=m?l.wheelX/m:a.vx,b=m?l.wheelY/m:a.vy;m<g&&(y=(y+a.vx)/2,b=(b+a.vy)/2);var E=Math.abs(y/b),S=!1;if(E>=1&&c.renderer.isScrollableBy(l.wheelX*l.speed,0)&&(S=!0),E<=1&&c.renderer.isScrollableBy(0,l.wheelY*l.speed)&&(S=!0),S)a.allowed=f;else if(f-a.allowed<g){var C=Math.abs(y)<=1.5*Math.abs(a.vx)&&Math.abs(b)<=1.5*Math.abs(a.vy);C?(S=!0,a.allowed=f):a.allowed=0}if(a.t=f,a.vx=y,a.vy=b,S)return c.renderer.scrollBy(l.wheelX*l.speed,l.wheelY*l.speed),l.stop()}},r}();s.prototype.selectEnd=s.prototype.selectByLinesEnd,s.prototype.selectAllEnd=s.prototype.selectByLinesEnd,s.prototype.selectByWordsEnd=s.prototype.selectByLinesEnd,i.DefaultHandlers=s;function h(r,l,c,a){return Math.sqrt(Math.pow(c-r,2)+Math.pow(a-l,2))}function o(r,l){if(r.start.row==r.end.row)var c=2*l.column-r.start.column-r.end.column;else if(r.start.row==r.end.row-1&&!r.start.column&&!r.end.column)var c=l.column-4;else var c=2*l.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/tooltip",["require","exports","module","ace/lib/dom","ace/range"],function(n,i,d){var u=this&&this.__extends||function(){var a=function(f,m){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,b){y.__proto__=b}||function(y,b){for(var E in b)Object.prototype.hasOwnProperty.call(b,E)&&(y[E]=b[E])},a(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");a(f,m);function y(){this.constructor=f}f.prototype=m===null?Object.create(m):(y.prototype=m.prototype,new y)}}(),p=this&&this.__values||function(a){var f=typeof Symbol=="function"&&Symbol.iterator,m=f&&a[f],y=0;if(m)return m.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&y>=a.length&&(a=void 0),{value:a&&a[y++],done:!a}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")},g=n("./lib/dom"),s=n("./range").Range,h="ace_tooltip",o=function(){function a(f){this.isOpen=!1,this.$element=null,this.$parentNode=f}return a.prototype.$init=function(){return this.$element=g.createElement("div"),this.$element.className=h,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},a.prototype.getElement=function(){return this.$element||this.$init()},a.prototype.setText=function(f){this.getElement().textContent=f},a.prototype.setHtml=function(f){this.getElement().innerHTML=f},a.prototype.setPosition=function(f,m){this.getElement().style.left=f+"px",this.getElement().style.top=m+"px"},a.prototype.setClassName=function(f){g.addCssClass(this.getElement(),f)},a.prototype.setTheme=function(f){this.$element.className=h+" "+(f.isDark?"ace_dark ":"")+(f.cssClass||"")},a.prototype.show=function(f,m,y){f!=null&&this.setText(f),m!=null&&y!=null&&this.setPosition(m,y),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},a.prototype.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=h,this.isOpen=!1)},a.prototype.getHeight=function(){return this.getElement().offsetHeight},a.prototype.getWidth=function(){return this.getElement().offsetWidth},a.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},a}(),r=function(){function a(){this.popups=[]}return a.prototype.addPopup=function(f){this.popups.push(f),this.updatePopups()},a.prototype.removePopup=function(f){var m=this.popups.indexOf(f);m!==-1&&(this.popups.splice(m,1),this.updatePopups())},a.prototype.updatePopups=function(){var f,m,y,b;this.popups.sort(function(v,M){return M.priority-v.priority});var E=[];try{for(var S=p(this.popups),C=S.next();!C.done;C=S.next()){var $=C.value,R=!0;try{for(var x=(y=void 0,p(E)),k=x.next();!k.done;k=x.next()){var _=k.value;if(this.doPopupsOverlap(_,$)){R=!1;break}}}catch(v){y={error:v}}finally{try{k&&!k.done&&(b=x.return)&&b.call(x)}finally{if(y)throw y.error}}R?E.push($):$.hide()}}catch(v){f={error:v}}finally{try{C&&!C.done&&(m=S.return)&&m.call(S)}finally{if(f)throw f.error}}},a.prototype.doPopupsOverlap=function(f,m){var y=f.getElement().getBoundingClientRect(),b=m.getElement().getBoundingClientRect();return y.left<b.right&&y.right>b.left&&y.top<b.bottom&&y.bottom>b.top},a}(),l=new r;i.popupManager=l,i.Tooltip=o;var c=function(a){u(f,a);function f(m){m===void 0&&(m=document.body);var y=a.call(this,m)||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 b=y.getElement();return b.style.whiteSpace="pre-wrap",b.style.pointerEvents="auto",b.addEventListener("mouseout",y.onMouseOut),b.tabIndex=-1,b.addEventListener("blur",(function(){b.contains(document.activeElement)||this.hide()}).bind(y)),y}return f.prototype.addToEditor=function(m){m.on("mousemove",this.onMouseMove),m.on("mousedown",this.hide),m.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},f.prototype.removeFromEditor=function(m){m.off("mousemove",this.onMouseMove),m.off("mousedown",this.hide),m.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},f.prototype.onMouseMove=function(m,y){this.lastEvent=m,this.lastT=Date.now();var b=y.$mouseHandler.isMousePressed;if(this.isOpen){var E=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(E.row,E.column)||b||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||b||(this.lastEvent=m,this.timeout=setTimeout(this.waitForHover,this.idleTime))},f.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var m=Date.now()-this.lastT;if(this.idleTime-m>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-m);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},f.prototype.isOutsideOfText=function(m){var y=m.editor,b=m.getDocumentPosition(),E=y.session.getLine(b.row);if(b.column==E.length){var S=y.renderer.pixelToScreenCoordinates(m.clientX,m.clientY),C=y.session.documentToScreenPosition(b.row,b.column);if(C.column!=S.column||C.row!=S.row)return!0}return!1},f.prototype.setDataProvider=function(m){this.$gatherData=m},f.prototype.showForRange=function(m,y,b,E){if(!(E&&E!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var S=m.renderer;this.isOpen||(l.addPopup(this),this.$registerCloseEvents(),this.setTheme(S.theme)),this.isOpen=!0,this.addMarker(y,m.session),this.range=s.fromPoints(y.start,y.end);var C=this.getElement();C.innerHTML="",C.appendChild(b),C.style.display="block";var $=S.textToScreenCoordinates(y.start.row,y.start.column),R=C.clientHeight,x=S.scroller.getBoundingClientRect(),k=!0;$.pageY-R<0&&(k=!1),k?$.pageY-=R:$.pageY+=S.lineHeight,C.style.maxWidth=x.width-($.pageX-x.left)+"px",this.setPosition($.pageX,$.pageY)}},f.prototype.addMarker=function(m,y){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=y,this.marker=y&&y.addMarker(m,"ace_highlight-marker","text")},f.prototype.hide=function(m){!m&&document.activeElement==this.getElement()||m&&m.target&&(m.type!="keydown"||m.ctrlKey||m.metaKey)&&this.$element.contains(m.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,l.removePopup(this)))},f.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("mousewheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},f.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("mousewheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},f.prototype.onMouseOut=function(m){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!m.relatedTarget||m.relatedTarget==this.getElement()||m&&m.currentTarget.contains(m.relatedTarget)||m.relatedTarget.classList.contains("ace_content")||this.hide())},f}(o);i.HoverTooltip=c}),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(a,f){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,y){m.__proto__=y}||function(m,y){for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(m[b]=y[b])},c(a,f)};return function(a,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");c(a,f);function m(){this.constructor=a}a.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}}(),p=this&&this.__values||function(c){var a=typeof Symbol=="function"&&Symbol.iterator,f=a&&c[a],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(a?"Object is not iterable.":"Symbol.iterator is not defined.")},g=n("../lib/dom"),s=n("../lib/event"),h=n("../tooltip").Tooltip,o=n("../config").nls;function r(c){var a=c.editor,f=a.renderer.$gutterLayer,m=new l(a);c.editor.setDefaultHandler("guttermousedown",function($){if(!(!a.isFocused()||$.getButton()!=0)){var R=f.getRegion($);if(R!="foldWidgets"){var x=$.getDocumentPosition().row,k=a.session.selection;if($.getShiftKey())k.selectTo(x,0);else{if($.domEvent.detail==2)return a.selectAll(),$.preventDefault();c.$clickSelection=a.selection.getLineRange(x)}return c.setState("selectByLines"),c.captureMouse($),$.preventDefault()}}});var y,b;function E(){var $=b.getDocumentPosition().row,R=a.session.getLength();if($==R){var x=a.renderer.pixelToScreenCoordinates(0,b.y).row,k=b.$pos;if(x>a.session.documentToScreenRow(k.row,k.column))return S()}if(m.showTooltip($),!!m.isOpen)if(a.on("mousewheel",S),c.$tooltipFollowsMouse)C(b);else{var _=b.getGutterRow(),v=f.$lines.get(_);if(v){var M=v.element.querySelector(".ace_gutter_annotation"),A=M.getBoundingClientRect(),w=m.getElement().style;w.left=A.right+"px",w.top=A.bottom+"px"}else C(b)}}function S(){y&&(y=clearTimeout(y)),m.isOpen&&(m.hideTooltip(),a.off("mousewheel",S))}function C($){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&&C($),b=$,!y&&(y=setTimeout(function(){y=null,b&&!c.isMousePressed?E():S()},50))}),s.addListener(a.renderer.$gutter,"mouseout",function($){b=null,!(!m.isOpen||y)&&(y=setTimeout(function(){y=null,S()},50))},a),a.on("changeSession",S),a.on("input",S)}i.GutterHandler=r;var l=function(c){u(a,c);function a(f){var m=c.call(this,f.container)||this;return m.editor=f,m}return a.prototype.setPosition=function(f,m){var y=window.innerWidth||document.documentElement.clientWidth,b=window.innerHeight||document.documentElement.clientHeight,E=this.getWidth(),S=this.getHeight();f+=15,m+=15,f+E>y&&(f-=f+E-y),m+S>b&&(m-=20+S),h.prototype.setPosition.call(this,f,m)},Object.defineProperty(a,"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}),a.prototype.showTooltip=function(f){var m=this.editor.renderer.$gutterLayer,y=m.$annotations[f],b;y?b={text:Array.from(y.text),type:Array.from(y.type)}:b={text:[],type:[]};var E=m.session.getFoldLine(f);if(E&&m.$showFoldedAnnotations){for(var S={error:[],warning:[],info:[]},C,$=f+1;$<=E.end.row;$++)if(m.$annotations[$])for(var R=0;R<m.$annotations[$].text.length;R++){var x=m.$annotations[$].type[R];if(S[x].push(m.$annotations[$].text[R]),x==="error"){C="error_fold";continue}if(x==="warning"){C="warning_fold";continue}}if(C==="error_fold"||C==="warning_fold"){var k="".concat(a.annotationsToSummaryString(S)," in folded code.");b.text.push(k),b.type.push(C)}}if(b.text.length===0)return this.hide();for(var _={error:[],warning:[],info:[]},v=m.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",$=0;$<b.text.length;$++){var M="<span class='ace_".concat(b.type[$]," ").concat(v,"' aria-label='").concat(a.annotationLabels[b.type[$].replace("_fold","")].singular,"' role=img> </span> ").concat(b.text[$]);_[b.type[$].replace("_fold","")].push(M)}var A=[].concat(_.error,_.warning,_.info).join("<br>");this.setHtml(A),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)},a.prototype.hideTooltip=function(){this.$element.removeAttribute("aria-live"),this.hide(),this.editor._signal("hideGutterTooltip",this)},a.annotationsToSummaryString=function(f){var m,y,b=[],E=["error","warning","info"];try{for(var S=p(E),C=S.next();!C.done;C=S.next()){var $=C.value;if(f[$].length){var R=f[$].length===1?a.annotationLabels[$].singular:a.annotationLabels[$].plural;b.push("".concat(f[$].length," ").concat(R))}}}catch(x){m={error:x}}finally{try{C&&!C.done&&(y=S.return)&&y.call(S)}finally{if(m)throw m.error}}return b.join(", ")},a}(h);i.GutterTooltip=l}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(n,i,d){var u=n("../lib/event"),p=n("../lib/useragent"),g=function(){function s(h,o){this.domEvent=h,this.editor=o,this.x=this.clientX=h.clientX,this.y=this.clientY=h.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 h=this.getDocumentPosition().row,o=this.editor.session.documentToScreenRow(h,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 h=this.editor,o=h.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 p.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"),p=n("../lib/event"),g=n("../lib/useragent"),s=200,h=200,o=5;function r(c){var a=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(U){c[U]=this[U]},this),a.on("mousedown",this.onMouseDown.bind(c));var y=a.container,b,E,S,C,$,R,x=0,k,_,v,M,A;this.onDragStart=function(U){if(this.cancelDrag||!y.draggable){var H=this;return setTimeout(function(){H.startSelect(),H.captureMouse(U)},0),U.preventDefault()}$=a.getSelectionRange();var X=U.dataTransfer;X.effectAllowed=a.getReadOnly()?"copy":"copyMove",a.container.appendChild(f),X.setDragImage&&X.setDragImage(f,0,0),setTimeout(function(){a.container.removeChild(f)}),X.clearData(),X.setData("Text",a.session.getTextRange()),_=!0,this.setState("drag")},this.onDragEnd=function(U){if(y.draggable=!1,_=!1,this.setState(null),!a.getReadOnly()){var H=U.dataTransfer.dropEffect;!k&&H=="move"&&a.session.remove(a.getSelectionRange()),a.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(U){if(!(a.getReadOnly()||!W(U.dataTransfer)))return E=U.clientX,S=U.clientY,b||O(),x++,U.dataTransfer.dropEffect=k=G(U),p.preventDefault(U)},this.onDragOver=function(U){if(!(a.getReadOnly()||!W(U.dataTransfer)))return E=U.clientX,S=U.clientY,b||(O(),x++),F!==null&&(F=null),U.dataTransfer.dropEffect=k=G(U),p.preventDefault(U)},this.onDragLeave=function(U){if(x--,x<=0&&b)return I(),k=null,p.preventDefault(U)},this.onDrop=function(U){if(R){var H=U.dataTransfer;if(_)switch(k){case"move":$.contains(R.row,R.column)?$={start:R,end:R}:$=a.moveText($,R);break;case"copy":$=a.moveText($,R,!0);break}else{var X=H.getData("Text");$={start:R,end:a.session.insert(R,X)},a.focus(),k=null}return I(),p.preventDefault(U)}},p.addListener(y,"dragstart",this.onDragStart.bind(c),a),p.addListener(y,"dragend",this.onDragEnd.bind(c),a),p.addListener(y,"dragenter",this.onDragEnter.bind(c),a),p.addListener(y,"dragover",this.onDragOver.bind(c),a),p.addListener(y,"dragleave",this.onDragLeave.bind(c),a),p.addListener(y,"drop",this.onDrop.bind(c),a);function w(U,H){var X=Date.now(),J=!H||U.row!=H.row,z=!H||U.column!=H.column;if(!M||J||z)a.moveCursorToPosition(U),M=X,A={x:E,y:S};else{var Y=l(A.x,A.y,E,S);Y>o?M=null:X-M>=h&&(a.renderer.scrollCursorIntoView(),M=null)}}function L(U,H){var X=Date.now(),J=a.renderer.layerConfig.lineHeight,z=a.renderer.layerConfig.characterWidth,Y=a.renderer.scroller.getBoundingClientRect(),K={x:{left:E-Y.left,right:Y.right-E},y:{top:S-Y.top,bottom:Y.bottom-S}},V=Math.min(K.x.left,K.x.right),ee=Math.min(K.y.top,K.y.bottom),N={row:U.row,column:U.column};V/z<=2&&(N.column+=K.x.left<K.x.right?-3:2),ee/J<=1&&(N.row+=K.y.top<K.y.bottom?-1:1);var B=U.row!=N.row,j=U.column!=N.column,Z=!H||U.row!=H.row;B||j&&!Z?v?X-v>=s&&a.renderer.scrollCursorIntoView(N):v=X:v=null}function T(){var U=R;R=a.renderer.screenToTextCoordinates(E,S),w(R,U),L(R,U)}function O(){$=a.selection.toOrientedRange(),b=a.session.addMarker($,"ace_selection",a.getSelectionStyle()),a.clearSelection(),a.isFocused()&&a.renderer.$cursorLayer.setBlinking(!1),clearInterval(C),T(),C=setInterval(T,20),x=0,p.addListener(document,"mousemove",D)}function I(){clearInterval(C),a.session.removeMarker(b),b=null,a.selection.fromOrientedRange($),a.isFocused()&&!_&&a.$resetCursorStyle(),$=null,R=null,x=0,v=null,M=null,p.removeListener(document,"mousemove",D)}var F=null;function D(){F==null&&(F=setTimeout(function(){F!=null&&b&&I()},20))}function W(U){var H=U.types;return!H||Array.prototype.some.call(H,function(X){return X=="text/plain"||X=="Text"})}function G(U){var H=["copy","copymove","all","uninitialized"],X=["move","copymove","linkmove","all","uninitialized"],J=g.isMac?U.altKey:U.ctrlKey,z="uninitialized";try{z=U.dataTransfer.effectAllowed.toLowerCase()}catch{}var Y="none";return J&&H.indexOf(z)>=0?Y="copy":X.indexOf(z)>=0?Y="move":H.indexOf(z)>=0&&(Y="copy"),Y}}(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,a=c.container;a.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 a=this.editor.container;if(g.isIE&&this.state=="dragReady"){var f=l(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);f>3&&a.dragDrop()}if(this.state==="dragWait"){var f=l(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);f>0&&(a.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(c){if(this.$dragEnabled){this.mousedownEvent=c;var a=this.editor,f=c.inSelection(),m=c.getButton(),y=c.domEvent.detail||1;if(y===1&&m===0&&f){if(c.editor.inMultiSelectMode&&(c.getAccelKey()||c.getShiftKey()))return;this.mousedownEvent.time=Date.now();var b=c.domEvent.target||c.domEvent.srcElement;if("unselectable"in b&&(b.unselectable="on"),a.getDragDelay()){if(g.isWebKit){this.cancelDrag=!0;var E=a.container;E.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(c,this.onMouseDrag.bind(this)),c.defaultPrevented=!0}}}}).call(r.prototype);function l(c,a,f,m){return Math.sqrt(Math.pow(f-c,2)+Math.pow(m-a,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,p=n("../lib/event"),g=n("../lib/dom");i.addTouchListeners=function(s,h){var o="scroll",r,l,c,a,f,m,y=0,b,E=0,S=0,C=0,$,R;function x(){var w=window.navigator&&window.navigator.clipboard,L=!1,T=function(){var I=h.getCopyText(),F=h.session.getUndoManager().hasUndo();R.replaceChild(g.buildDom(L?["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:"openCommandPallete"},"Palette"]]:["span"]),R.firstChild)},O=function(I){var F=I.target.getAttribute("action");if(F=="more"||!L)return L=!L,T();F=="paste"?w.readText().then(function(D){h.execCommand(F,D)}):F&&((F=="cut"||F=="copy")&&(w?w.writeText(h.getCopyText()):document.execCommand("copy")),h.execCommand(F)),R.firstChild.style.display="none",L=!1,F!="openCommandPallete"&&h.focus()};R=g.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(I){o="menu",I.stopPropagation(),I.preventDefault(),h.textInput.focus()},ontouchend:function(I){I.stopPropagation(),I.preventDefault(),O(I)},onclick:O},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],h.container)}function k(){R||x();var w=h.selection.cursor,L=h.renderer.textToScreenCoordinates(w.row,w.column),T=h.renderer.textToScreenCoordinates(0,0).pageX,O=h.renderer.scrollLeft,I=h.container.getBoundingClientRect();R.style.top=L.pageY-I.top-3+"px",L.pageX-I.left<I.width-70?(R.style.left="",R.style.right="10px"):(R.style.right="",R.style.left=T+O-I.left+"px"),R.style.display="",R.firstChild.style.display="none",h.on("input",_)}function _(w){R&&(R.style.display="none"),h.off("input",_)}function v(){f=null,clearTimeout(f);var w=h.selection.getRange(),L=w.contains(b.row,b.column);(w.isEmpty()||!L)&&(h.selection.moveToPosition(b),h.selection.selectWord()),o="wait",k()}function M(){f=null,clearTimeout(f),h.selection.moveToPosition(b);var w=E>=2?h.selection.getLineRange(b.row):h.session.getBracketRange(b);w&&!w.isEmpty()?h.selection.setRange(w):h.selection.selectWord(),o="wait"}p.addListener(s,"contextmenu",function(w){if($){var L=h.textInput.getElement();L.focus()}},h),p.addListener(s,"touchstart",function(w){var L=w.touches;if(f||L.length>1){clearTimeout(f),f=null,c=-1,o="zoom";return}$=h.$mouseHandler.isMousePressed=!0;var T=h.renderer.layerConfig.lineHeight,O=h.renderer.layerConfig.lineHeight,I=w.timeStamp;a=I;var F=L[0],D=F.clientX,W=F.clientY;Math.abs(r-D)+Math.abs(l-W)>T&&(c=-1),r=w.clientX=D,l=w.clientY=W,S=C=0;var G=new u(w,h);if(b=G.getDocumentPosition(),I-c<500&&L.length==1&&!y)E++,w.preventDefault(),w.button=0,M();else{E=0;var U=h.selection.cursor,H=h.selection.isEmpty()?U:h.selection.anchor,X=h.renderer.$cursorLayer.getPixelPosition(U,!0),J=h.renderer.$cursorLayer.getPixelPosition(H,!0),z=h.renderer.scroller.getBoundingClientRect(),Y=h.renderer.layerConfig.offset,K=h.renderer.scrollLeft,V=function(B,j){return B=B/O,j=j/T-.75,B*B+j*j};if(w.clientX<z.left){o="zoom";return}var ee=V(w.clientX-z.left-X.left+K,w.clientY-z.top-X.top+Y),N=V(w.clientX-z.left-J.left+K,w.clientY-z.top-J.top+Y);ee<3.5&&N<3.5&&(o=ee>N?"cursor":"anchor"),N<3.5?o="anchor":ee<3.5?o="cursor":o="scroll",f=setTimeout(v,450)}c=I},h),p.addListener(s,"touchend",function(w){$=h.$mouseHandler.isMousePressed=!1,m&&clearInterval(m),o=="zoom"?(o="",y=0):f?(h.selection.moveToPosition(b),y=0,k()):o=="scroll"?(A(),_()):k(),clearTimeout(f),f=null},h),p.addListener(s,"touchmove",function(w){f&&(clearTimeout(f),f=null);var L=w.touches;if(!(L.length>1||o=="zoom")){var T=L[0],O=r-T.clientX,I=l-T.clientY;if(o=="wait")if(O*O+I*I>4)o="cursor";else return w.preventDefault();r=T.clientX,l=T.clientY,w.clientX=T.clientX,w.clientY=T.clientY;var F=w.timeStamp,D=F-a;if(a=F,o=="scroll"){var W=new u(w,h);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,C=I/D),h._emit("mousewheel",W),W.propagationStopped||(S=C=0)}else{var G=new u(w,h),U=G.getDocumentPosition();o=="cursor"?h.selection.moveCursorToPosition(U):o=="anchor"&&h.selection.setSelectionAnchor(U.row,U.column),h.renderer.scrollCursorIntoView(U),w.preventDefault()}}},h);function A(){y+=60,m=setInterval(function(){y--<=0&&(clearInterval(m),m=null),Math.abs(S)<.01&&(S=0),Math.abs(C)<.01&&(C=0),y<20&&(S=.9*S),y<20&&(C=.9*C);var w=h.session.getScrollTop();h.renderer.scrollBy(10*S,10*C),w==h.session.getScrollTop()&&(y=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"),p=n("../lib/useragent"),g=n("./default_handlers").DefaultHandlers,s=n("./default_gutter_handler").GutterHandler,h=n("./mouse_event").MouseEvent,o=n("./dragdrop_handler").DragdropHandler,r=n("./touch_handler").addTouchListeners,l=n("../config"),c=function(){function a(f){var m=this;this.editor=f,new g(this),new s(this),new o(this);var y=function(S){var C=!document.hasFocus||!document.hasFocus()||!f.isFocused()&&document.activeElement==(f.textInput&&f.textInput.getElement());C&&window.focus(),f.focus(),setTimeout(function(){f.isFocused()||f.focus()})},b=f.renderer.getMouseEventTarget();u.addListener(b,"click",this.onMouseEvent.bind(this,"click"),f),u.addListener(b,"mousemove",this.onMouseMove.bind(this,"mousemove"),f),u.addMultiMouseDownListener([b,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 E=f.renderer.$gutter;u.addListener(E,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),f),u.addListener(E,"click",this.onMouseEvent.bind(this,"gutterclick"),f),u.addListener(E,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),f),u.addListener(E,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),f),u.addListener(b,"mousedown",y,f),u.addListener(E,"mousedown",y,f),p.isIE&&f.renderer.scrollBarV&&(u.addListener(f.renderer.scrollBarV.element,"mousedown",y,f),u.addListener(f.renderer.scrollBarH.element,"mousedown",y,f)),f.on("mousemove",function(S){if(!(m.state||m.$dragDelay||!m.$dragEnabled)){var C=f.renderer.screenToTextCoordinates(S.x,S.y),$=f.session.selection.getRange(),R=f.renderer;!$.isEmpty()&&$.insideStart(C.row,C.column)?R.setCursorStyle("default"):R.setCursorStyle("")}},f)}return a.prototype.onMouseEvent=function(f,m){this.editor.session&&this.editor._emit(f,new h(m,this.editor))},a.prototype.onMouseMove=function(f,m){var y=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!y||!y.length||this.editor._emit(f,new h(m,this.editor))},a.prototype.onMouseWheel=function(f,m){var y=new h(m,this.editor);y.speed=this.$scrollSpeed*2,y.wheelX=m.wheelX,y.wheelY=m.wheelY,this.editor._emit(f,y)},a.prototype.setState=function(f){this.state=f},a.prototype.captureMouse=function(f,m){this.x=f.x,this.y=f.y,this.isMousePressed=!0;var y=this.editor,b=this.editor.renderer;b.$isMousePressed=!0;var E=this,S=function(k){if(k){if(p.isWebKit&&!k.which&&E.releaseMouse)return E.releaseMouse();E.x=k.clientX,E.y=k.clientY,m&&m(k),E.mouseEvent=new h(k,E.editor),E.$mouseMoved=!0}},C=function(k){y.off("beforeEndOperation",R),clearInterval(x),y.session&&$(),E[E.state+"End"]&&E[E.state+"End"](k),E.state="",E.isMousePressed=b.$isMousePressed=!1,b.$keepTextAreaAtCursor&&b.$moveTextAreaToCursor(),E.$onCaptureMouseMove=E.releaseMouse=null,k&&E.onMouseEvent("mouseup",k),y.endOperation()},$=function(){E[E.state]&&E[E.state](),E.$mouseMoved=!1};if(p.isOldIE&&f.domEvent.type=="dblclick")return setTimeout(function(){C(f)});var R=function(k){E.releaseMouse&&y.curOp.command.name&&y.curOp.selectionChanged&&(E[E.state+"End"]&&E[E.state+"End"](),E.state="",E.releaseMouse())};y.on("beforeEndOperation",R),y.startOperation({command:{name:"mouse"}}),E.$onCaptureMouseMove=S,E.releaseMouse=u.capture(this.editor.container,S,C);var x=setInterval($,20)},a.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)},a.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},a}();c.prototype.releaseMouse=null,l.defineOptions(c.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:p.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"),p=function(){function g(s){s.on("click",function(h){var o=h.getDocumentPosition(),r=s.session,l=r.getFoldAt(o.row,o.column,1);l&&(h.getAccelKey()?r.removeFold(l):r.expandFold(l),h.stop());var c=h.domEvent&&h.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(h){var o=s.renderer.$gutterLayer.getRegion(h);if(o=="foldWidgets"){var r=h.getDocumentPosition().row,l=s.session;l.foldWidgets&&l.foldWidgets[r]&&s.session.onFoldWidgetClick(r,h),s.isFocused()||s.focus(),h.stop()}}),s.on("gutterdblclick",function(h){var o=s.renderer.$gutterLayer.getRegion(h);if(o=="foldWidgets"){var r=h.getDocumentPosition().row,l=s.session,c=l.getParentFoldRangeData(r,!0),a=c.range||c.firstRange;if(a){r=a.start.row;var f=l.getFoldAt(r,l.getLine(r).length,1);f?l.removeFold(f):(l.addFold("...",a),s.renderer.scrollCursorIntoView({row:a.start.row,column:0}))}h.stop()}})}return g}();i.FoldHandler=p}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(n,i,d){var u=n("../lib/keys"),p=n("../lib/event"),g=function(){function s(h){this.$editor=h,this.$data={editor:h},this.$handlers=[],this.setDefaultHandler(h.commands)}return s.prototype.setDefaultHandler=function(h){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=h,this.addKeyboardHandler(h,0)},s.prototype.setKeyboardHandler=function(h){var o=this.$handlers;if(o[o.length-1]!=h){for(;o[o.length-1]&&o[o.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(o[o.length-1]);this.addKeyboardHandler(h,1)}},s.prototype.addKeyboardHandler=function(h,o){if(h){typeof h=="function"&&!h.handleKeyboard&&(h.handleKeyboard=h);var r=this.$handlers.indexOf(h);r!=-1&&this.$handlers.splice(r,1),o==null?this.$handlers.push(h):this.$handlers.splice(o,0,h),r==-1&&h.attach&&h.attach(this.$editor)}},s.prototype.removeKeyboardHandler=function(h){var o=this.$handlers.indexOf(h);return o==-1?!1:(this.$handlers.splice(o,1),h.detach&&h.detach(this.$editor),!0)},s.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},s.prototype.getStatusText=function(){var h=this.$data,o=h.editor;return this.$handlers.map(function(r){return r.getStatusText&&r.getStatusText(o,h)||""}).filter(Boolean).join(" ")},s.prototype.$callKeyboardHandlers=function(h,o,r,l){for(var c,a=!1,f=this.$editor.commands,m=this.$handlers.length;m--&&(c=this.$handlers[m].handleKeyboard(this.$data,h,o,r,l),!(!(!c||!c.command)&&(c.command=="null"?a=!0:a=f.exec(c.command,this.$editor,c.args,l),a&&l&&h!=-1&&c.passEvent!=!0&&c.command.passEvent!=!0&&p.stopEvent(l),a))););return!a&&h==-1&&(c={command:"insertstring"},a=f.exec("insertstring",this.$editor,o)),a&&this.$editor._signal&&this.$editor._signal("keyboardActivity",c),a},s.prototype.onCommandKey=function(h,o,r){var l=u.keyCodeToString(r);return this.$callKeyboardHandlers(o,l,r,h)},s.prototype.onTextInput=function(h){return this.$callKeyboardHandlers(-1,h)},s}();i.KeyBinding=g}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(n,i,d){var u=0,p=0,g=!1,s=!1,h=!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]],l=0,c=1,a=0,f=1,m=2,y=3,b=4,E=5,S=6,C=7,$=8,R=9,x=10,k=11,_=12,v=13,M=14,A=15,w=16,L=17,T=18,O=[T,T,T,T,T,T,T,T,T,S,E,S,$,E,T,T,T,T,T,T,T,T,T,T,T,T,T,T,E,E,E,S,$,b,b,k,k,k,b,b,b,b,b,x,R,x,R,R,m,m,m,m,m,m,m,m,m,m,R,b,b,b,b,b,b,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,b,b,b,b,b,b,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,b,b,b,b,T,T,T,T,T,T,E,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,R,b,k,k,k,k,b,b,b,b,a,b,b,T,b,b,k,k,m,m,b,a,b,b,b,m,a,b,b,b,b,b],I=[$,$,$,$,$,$,$,$,$,$,$,T,T,T,a,f,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,$,E,v,M,A,w,L,R,k,k,k,k,k,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,R,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,$];function F(U,H,X,J){var z=u?r:o,Y=null,K=null,V=null,ee=0,N=null,B=null,j=-1,Z=null,te=null,ie=[];if(!J)for(Z=0,J=[];Z<X;Z++)J[Z]=G(U[Z]);for(p=u,g=!1,s=!1,h=!1,te=0;te<X;te++){if(Y=ee,ie[te]=K=W(U,J,ie,te),ee=z[Y][K],N=ee&240,ee&=15,H[te]=V=z[ee][5],N>0)if(N==16){for(Z=j;Z<te;Z++)H[Z]=1;j=-1}else j=-1;if(B=z[ee][6],B)j==-1&&(j=te);else if(j>-1){for(Z=j;Z<te;Z++)H[Z]=V;j=-1}J[te]==E&&(H[te]=0),p|=V}if(h){for(Z=0;Z<X;Z++)if(J[Z]==S){H[Z]=u;for(var le=Z-1;le>=0&&J[le]==$;le--)H[le]=u}}}function D(U,H,X){if(!(p<U)){if(U==1&&u==c&&!s){X.reverse();return}for(var J=X.length,z=0,Y,K,V,ee;z<J;){if(H[z]>=U){for(Y=z+1;Y<J&&H[Y]>=U;)Y++;for(K=z,V=Y-1;K<V;K++,V--)ee=X[K],X[K]=X[V],X[V]=ee;z=Y}z++}}}function W(U,H,X,J){var z=H[J],Y,K,V,ee;switch(z){case a:case f:g=!1;case b:case y:return z;case m:return g?y:m;case C:return g=!0,f;case $:return b;case R:return J<1||J+1>=H.length||(Y=X[J-1])!=m&&Y!=y||(K=H[J+1])!=m&&K!=y?b:(g&&(K=y),K==Y?K:b);case x:return Y=J>0?X[J-1]:E,Y==m&&J+1<H.length&&H[J+1]==m?m:b;case k:if(J>0&&X[J-1]==m)return m;if(g)return b;for(ee=J+1,V=H.length;ee<V&&H[ee]==k;)ee++;return ee<V&&H[ee]==m?m:b;case _:for(V=H.length,ee=J+1;ee<V&&H[ee]==_;)ee++;if(ee<V){var N=U[J],B=N>=1425&&N<=2303||N==64286;if(Y=H[ee],B&&(Y==f||Y==C))return f}return J<1||(Y=H[J-1])==E?b:X[J-1];case E:return g=!1,s=!0,u;case S:return h=!0,b;case v:case M:case w:case L:case A:g=!1;case T:return b}}function G(U){var H=U.charCodeAt(0),X=H>>8;return X==0?H>191?a:O[H]:X==5?/[\u0591-\u05f4]/.test(U)?f:a:X==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(U)?_:/[\u0660-\u0669\u066b-\u066c]/.test(U)?y:H==1642?k:/[\u06f0-\u06f9]/.test(U)?m:C:X==32&&H<=8287?I[H&255]:X==254&&H>=65136?C:b}i.L=a,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(U,H,X){if(U.length<2)return{};var J=U.split(""),z=new Array(J.length),Y=new Array(J.length),K=[];u=X?c:l,F(J,K,J.length,H);for(var V=0;V<z.length;z[V]=V,V++);D(2,K,z),D(1,K,z);for(var V=0;V<z.length-1;V++)H[V]===y?K[V]=i.AN:K[V]===f&&(H[V]>C&&H[V]<v||H[V]===b||H[V]===T)?K[V]=i.ON_R:V>0&&J[V-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(J[V])&&(K[V-1]=K[V]=i.R_H,V++);J[J.length-1]===i.DOT&&(K[J.length-1]=i.B),J[0]==="‫"&&(K[0]=i.RLE);for(var V=0;V<z.length;V++)Y[V]=K[z[V]];return{logicalFromVisual:z,bidiLevels:Y}},i.hasBidiCharacters=function(U,H){for(var X=!1,J=0;J<U.length;J++)H[J]=G(U.charAt(J)),!X&&(H[J]==f||H[J]==C||H[J]==y)&&(X=!0);return X},i.getVisualFromLogicalIdx=function(U,H){for(var X=0;X<H.logicalFromVisual.length;X++)if(H.logicalFromVisual[X]==U)return X;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(n,i,d){var u=n("./lib/bidiutil"),p=n("./lib/lang"),g=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,s=function(){function h(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 h.prototype.isBidiRow=function(o,r,l){return this.seenBidi?(o!==this.currentRow&&(this.currentRow=o,this.updateRowLine(r,l),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},h.prototype.onChange=function(o){this.seenBidi?this.currentRow=null:o.action=="insert"&&g.test(o.lines.join(`
983
- `))&&(this.seenBidi=!0,this.currentRow=null)},h.prototype.getDocumentRow=function(){var o=0,r=this.session.$screenRowCache;if(r.length){var l=this.session.$getRowCacheIndex(r,this.currentRow);l>=0&&(o=this.session.$docRowCache[l])}return o},h.prototype.getSplitIndex=function(){var o=0,r=this.session.$screenRowCache;if(r.length)for(var l,c=this.session.$getRowCacheIndex(r,this.currentRow);this.currentRow-o>0&&(l=this.session.$getRowCacheIndex(r,this.currentRow-o-1),l===c);)c=l,o++;else o=this.currentRow;return o},h.prototype.updateRowLine=function(o,r){o===void 0&&(o=this.getDocumentRow());var l=o===this.session.getLength()-1,c=l?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 a=this.session.$wrapData[o];a&&(r===void 0&&(r=this.getSplitIndex()),r>0&&a.length?(this.wrapIndent=a.indent,this.wrapOffset=this.wrapIndent*this.charWidths[u.L],this.line=r<a.length?this.line.substring(a[r-1],a[r]):this.line.substring(a[a.length-1])):this.line=this.line.substring(0,a[r]),r==a.length&&(this.line+=this.showInvisibles?c:u.DOT))}else this.line+=this.showInvisibles?c:u.DOT;var f=this.session,m=0,y;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(b,E){return b===" "||f.isFullWidth(b.charCodeAt(0))?(y=b===" "?f.getScreenTabSize(E+m):2,m+=y-1,p.stringRepeat(u.DOT,y)):b}),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)},h.prototype.updateBidiMap=function(){var o=[];u.hasBidiCharacters(this.line,o)||this.isRtlDir?this.bidiMap=u.doBidiReorder(this.line,o,this.isRtlDir):this.bidiMap={}},h.prototype.markAsDirty=function(){this.currentRow=null},h.prototype.updateCharacterWidths=function(o){if(this.characterWidth!==o.$characterSize.width){this.fontMetrics=o;var r=this.characterWidth=o.$characterSize.width,l=o.$measureCharWidth("ה");this.charWidths[u.L]=this.charWidths[u.EN]=this.charWidths[u.ON_R]=r,this.charWidths[u.R]=this.charWidths[u.AN]=l,this.charWidths[u.R_H]=l*.45,this.charWidths[u.B]=this.charWidths[u.RLE]=0,this.currentRow=null}},h.prototype.setShowInvisibles=function(o){this.showInvisibles=o,this.currentRow=null},h.prototype.setEolChar=function(o){this.EOL=o},h.prototype.setContentWidth=function(o){this.contentWidth=o},h.prototype.isRtlLine=function(o){return this.$isRtl?!0:o!=null?this.session.getLine(o).charAt(0)==this.RLE:this.isRtlDir},h.prototype.setRtlDirection=function(o,r){for(var l=o.getCursorPosition(),c=o.selection.getSelectionAnchor().row;c<=l.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)},h.prototype.getPosLeft=function(o){o-=this.wrapIndent;var r=this.line.charAt(0)===this.RLE?1:0,l=o>r?this.session.getOverwrite()?o:o-1:r,c=u.getVisualFromLogicalIdx(l,this.bidiMap),a=this.bidiMap.bidiLevels,f=0;!this.session.getOverwrite()&&o<=r&&a[c]%2!==0&&c++;for(var m=0;m<c;m++)f+=this.charWidths[a[m]];return!this.session.getOverwrite()&&o>r&&a[c]%2===0&&(f+=this.charWidths[a[c]]),this.wrapIndent&&(f+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(f+=this.rtlLineOffset),f},h.prototype.getSelections=function(o,r){var l=this.bidiMap,c=l.bidiLevels,a,f=[],m=0,y=Math.min(o,r)-this.wrapIndent,b=Math.max(o,r)-this.wrapIndent,E=!1,S=!1,C=0;this.wrapIndent&&(m+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var $,R=0;R<c.length;R++)$=l.logicalFromVisual[R],a=c[R],E=$>=y&&$<b,E&&!S?C=m:!E&&S&&f.push({left:C,width:m-C}),m+=this.charWidths[a],S=E;if(E&&R===c.length&&f.push({left:C,width:m-C}),this.isRtlDir)for(var x=0;x<f.length;x++)f[x].left+=this.rtlLineOffset;return f},h.prototype.offsetToCol=function(l){this.isRtlDir&&(l-=this.rtlLineOffset);var r=0,l=Math.max(l,0),c=0,a=0,f=this.bidiMap.bidiLevels,m=this.charWidths[f[a]];for(this.wrapIndent&&(l-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);l>c+m/2;){if(c+=m,a===f.length-1){m=0;break}m=this.charWidths[f[++a]]}return a>0&&f[a-1]%2!==0&&f[a]%2===0?(l<c&&a--,r=this.bidiMap.logicalFromVisual[a]):a>0&&f[a-1]%2===0&&f[a]%2!==0?r=1+(l>c?this.bidiMap.logicalFromVisual[a]:this.bidiMap.logicalFromVisual[a-1]):this.isRtlDir&&a===f.length-1&&m===0&&f[a-1]%2===0||!this.isRtlDir&&a===0&&f[a]%2!==0?r=1+this.bidiMap.logicalFromVisual[a]:(a>0&&f[a-1]%2!==0&&m!==0&&a--,r=this.bidiMap.logicalFromVisual[a]),r===0&&this.isRtlDir&&r++,r+this.wrapIndent},h}();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"),p=n("./lib/lang"),g=n("./lib/event_emitter").EventEmitter,s=n("./range").Range,h=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 l=this;this.cursor.on("change",function(c){l.$cursorChanged=!0,l.$silent||l._emit("changeCursor"),!l.$isEmpty&&!l.$silent&&l._emit("changeSelection"),!l.$keepDesiredColumnOnChange&&c.old.column!=c.value.column&&(l.$desiredColumn=null)}),this.anchor.on("change",function(){l.$anchorChanged=!0,!l.$isEmpty&&!l.$silent&&l._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,l){this.$isEmpty=!1,this.anchor.setPosition(r,l)},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,l=this.lead;return r.row>l.row||r.row==l.row&&r.column>l.column},o.prototype.getRange=function(){var r=this.anchor,l=this.lead;return this.$isEmpty?s.fromPoints(l,l):this.isBackwards()?s.fromPoints(l,r):s.fromPoints(r,l)},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,l){var c=l?r.end:r.start,a=l?r.start:r.end;this.$setSelection(c.row,c.column,a.row,a.column)},o.prototype.$setSelection=function(r,l,c,a){if(!this.$silent){var f=this.$isEmpty,m=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(r,l),this.cursor.setPosition(c,a),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 l=this.lead;this.$isEmpty&&this.setSelectionAnchor(l.row,l.column),r.call(this)},o.prototype.selectTo=function(r,l){this.$moveSelection(function(){this.moveCursorTo(r,l)})},o.prototype.selectToPosition=function(r){this.$moveSelection(function(){this.moveCursorToPosition(r)})},o.prototype.moveTo=function(r,l){this.clearSelection(),this.moveCursorTo(r,l)},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,l){if(typeof l>"u"){var c=r||this.lead;r=c.row,l=c.column}return this.session.getWordRange(r,l)},o.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},o.prototype.selectAWord=function(){var r=this.getCursor(),l=this.session.getAWordRange(r.row,r.column);this.setSelectionRange(l)},o.prototype.getLineRange=function(r,l){var c=typeof r=="number"?r:this.lead.row,a,f=this.session.getFoldLine(c);return f?(c=f.start.row,a=f.end.row):a=c,l===!0?new s(c,0,a,this.session.getLine(a).length):new s(c,0,a+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,l,c){var a=r.column,f=r.column+l;return c<0&&(a=r.column-l,f=r.column),this.session.isTabStop(r)&&this.doc.getLine(r.row).slice(a,f).split(" ").length-1==l},o.prototype.moveCursorLeft=function(){var r=this.lead.getPosition(),l;if(l=this.session.getFoldAt(r.row,r.column,-1))this.moveCursorTo(l.start.row,l.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(),l;if(l=this.session.getFoldAt(r.row,r.column,1))this.moveCursorTo(l.end.row,l.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,l=this.lead.column,c=this.session.documentToScreenRow(r,l),a=this.session.screenToDocumentPosition(c,0),f=this.session.getDisplayLine(r,null,a.row,a.column),m=f.match(/^\s*/);m[0].length!=l&&!this.session.$useEmacsStyleLineStart&&(a.column+=m[0].length),this.moveCursorToPosition(a)},o.prototype.moveCursorLineEnd=function(){var r=this.lead,l=this.session.getDocumentLastRowColumnPosition(r.row,r.column);if(this.lead.column==l.column){var c=this.session.getLine(l.row);if(l.column==c.length){var a=c.search(/\s+$/);a>0&&(l.column=a)}}this.moveCursorTo(l.row,l.column)},o.prototype.moveCursorFileEnd=function(){var r=this.doc.getLength()-1,l=this.doc.getLine(r).length;this.moveCursorTo(r,l)},o.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},o.prototype.moveCursorLongWordRight=function(){var r=this.lead.row,l=this.lead.column,c=this.doc.getLine(r),a=c.substring(l);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var f=this.session.getFoldAt(r,l,1);if(f){this.moveCursorTo(f.end.row,f.end.column);return}if(this.session.nonTokenRe.exec(a)&&(l+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,a=c.substring(l)),l>=c.length){this.moveCursorTo(r,c.length),this.moveCursorRight(),r<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(a)&&(l+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(r,l)},o.prototype.moveCursorLongWordLeft=function(){var r=this.lead.row,l=this.lead.column,c;if(c=this.session.getFoldAt(r,l,-1)){this.moveCursorTo(c.start.row,c.start.column);return}var a=this.session.getFoldStringAt(r,l,-1);a==null&&(a=this.doc.getLine(r).substring(0,l));var f=p.stringReverse(a);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(f)&&(l-=this.session.nonTokenRe.lastIndex,f=f.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),l<=0){this.moveCursorTo(r,0),this.moveCursorLeft(),r>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(f)&&(l-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(r,l)},o.prototype.$shortWordEndIndex=function(r){var l=0,c,a=/\s/,f=this.session.tokenRe;if(f.lastIndex=0,this.session.tokenRe.exec(r))l=this.session.tokenRe.lastIndex;else{for(;(c=r[l])&&a.test(c);)l++;if(l<1){for(f.lastIndex=0;(c=r[l])&&!f.test(c);)if(f.lastIndex=0,l++,a.test(c))if(l>2){l--;break}else{for(;(c=r[l])&&a.test(c);)l++;if(l>2)break}}}return f.lastIndex=0,l},o.prototype.moveCursorShortWordRight=function(){var r=this.lead.row,l=this.lead.column,c=this.doc.getLine(r),a=c.substring(l),f=this.session.getFoldAt(r,l,1);if(f)return this.moveCursorTo(f.end.row,f.end.column);if(l==c.length){var m=this.doc.getLength();do r++,a=this.doc.getLine(r);while(r<m&&/^\s*$/.test(a));/^\s+/.test(a)||(a=""),l=0}var y=this.$shortWordEndIndex(a);this.moveCursorTo(r,l+y)},o.prototype.moveCursorShortWordLeft=function(){var r=this.lead.row,l=this.lead.column,c;if(c=this.session.getFoldAt(r,l,-1))return this.moveCursorTo(c.start.row,c.start.column);var a=this.session.getLine(r).substring(0,l);if(l===0){do r--,a=this.doc.getLine(r);while(r>0&&/^\s*$/.test(a));l=a.length,/\s+$/.test(a)||(a="")}var f=p.stringReverse(a),m=this.$shortWordEndIndex(f);return this.moveCursorTo(r,l-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,l){var c=this.session.documentToScreenPosition(this.lead.row,this.lead.column),a;if(l===0&&(r!==0&&(this.session.$bidiHandler.isBidiRow(c.row,this.lead.row)?(a=this.session.$bidiHandler.getPosLeft(c.column),c.column=Math.round(a/this.session.$bidiHandler.charWidths[0])):a=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,a);r!==0&&l===0&&m.row===this.lead.row&&(m.column,this.lead.column),this.moveCursorTo(m.row,m.column+l,l===0)},o.prototype.moveCursorToPosition=function(r){this.moveCursorTo(r.row,r.column)},o.prototype.moveCursorTo=function(r,l,c){var a=this.session.getFoldAt(r,l,1);a&&(r=a.start.row,l=a.start.column),this.$keepDesiredColumnOnChange=!0;var f=this.session.getLine(r);/[\uDC00-\uDFFF]/.test(f.charAt(l))&&f.charAt(l-1)&&(this.lead.row==r&&this.lead.column==l+1?l=l-1:l=l+1),this.lead.setPosition(r,l),this.$keepDesiredColumnOnChange=!1,c||(this.$desiredColumn=null)},o.prototype.moveCursorToScreen=function(r,l,c){var a=this.session.screenToDocumentPosition(r,l);this.moveCursorTo(a.row,a.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 l=this.getRange();return r?(r.start.column=l.start.column,r.start.row=l.start.row,r.end.column=l.end.column,r.end.row=l.end.row):r=l,r.cursor=this.isBackwards()?r.start:r.end,r.desiredColumn=this.$desiredColumn,r},o.prototype.getRangeOfMovements=function(r){var l=this.getCursor();try{r(this);var c=this.getCursor();return s.fromPoints(l,c)}catch{return s.fromPoints(l,l)}finally{this.moveCursorToPosition(l)}},o.prototype.toJSON=function(){if(this.rangeCount)var r=this.ranges.map(function(l){var c=l.clone();return c.isBackwards=l.cursor==l.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 l=r.length;l--;){var c=s.fromPoints(r[l].start,r[l].end);r[l].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 l=this.ranges.length;l--;)if(!this.ranges[l].isEqual(r[l]))return!1;return!0},o}();h.prototype.setSelectionAnchor=h.prototype.setAnchor,h.prototype.getSelectionAnchor=h.prototype.getAnchor,h.prototype.setSelectionRange=h.prototype.setRange,u.implement(h.prototype,g),i.Selection=h}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(n,i,d){var u=n("./lib/report_error").reportError,p=2e3,g=function(){function s(h){this.states=h,this.regExps={},this.matchMappings={};for(var o in this.states){for(var r=this.states[o],l=[],c=0,a=this.matchMappings[o]={defaultToken:"text"},f="g",m=[],y=0;y<r.length;y++){var b=r[y];if(b.defaultToken&&(a.defaultToken=b.defaultToken),b.caseInsensitive&&f.indexOf("i")===-1&&(f+="i"),b.unicode&&f.indexOf("u")===-1&&(f+="u"),b.regex!=null){b.regex instanceof RegExp&&(b.regex=b.regex.toString().slice(1,-1));var E=b.regex,S=new RegExp("(?:("+E+")|(.))").exec("a").length-2;Array.isArray(b.token)?b.token.length==1||S==1?b.token=b.token[0]:S-1!=b.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:b,groupCount:S-1}),b.token=b.token[0]):(b.tokenArray=b.token,b.token=null,b.onMatch=this.$arrayTokens):typeof b.token=="function"&&!b.onMatch&&(S>1?b.onMatch=this.$applyToken:b.onMatch=b.token),S>1&&(/\\\d/.test(b.regex)?E=b.regex.replace(/\\([0-9]+)/g,function(C,$){return"\\"+(parseInt($,10)+c+1)}):(S=1,E=this.removeCapturingGroups(b.regex)),!b.splitRegex&&typeof b.token!="string"&&m.push(b)),a[c]=y,c+=S,l.push(E),b.onMatch||(b.onMatch=null)}}l.length||(a[0]=0,l.push("$")),m.forEach(function(C){C.splitRegex=this.createSplitterRegexp(C.regex,f)},this),this.regExps[o]=new RegExp("("+l.join(")|(")+")|($)",f)}}return s.prototype.$setMaxTokenCount=function(h){p=h|0},s.prototype.$applyToken=function(h){var o=this.splitRegex.exec(h).slice(1),r=this.token.apply(this,o);if(typeof r=="string")return[{type:r,value:h}];for(var l=[],c=0,a=r.length;c<a;c++)o[c]&&(l[l.length]={type:r[c],value:o[c]});return l},s.prototype.$arrayTokens=function(h){if(!h)return[];var o=this.splitRegex.exec(h);if(!o)return"text";for(var r=[],l=this.tokenArray,c=0,a=l.length;c<a;c++)o[c+1]&&(r[r.length]={type:l[c],value:o[c+1]});return r},s.prototype.removeCapturingGroups=function(h){var o=h.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(r,l){return l?"(?:":r});return o},s.prototype.createSplitterRegexp=function(h,o){if(h.indexOf("(?=")!=-1){var r=0,l=!1,c={};h.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(a,f,m,y,b,E){return l?l=b!="]":b?l=!0:y?(r==c.stack&&(c.end=E+1,c.stack=-1),r--):m&&(r++,m.length!=1&&(c.stack=r,c.start=E)),a}),c.end!=null&&/^\)*$/.test(h.substr(c.end))&&(h=h.substring(0,c.start)+h.substr(c.end))}return h.charAt(0)!="^"&&(h="^"+h),h.charAt(h.length-1)!="$"&&(h+="$"),new RegExp(h,(o||"").replace("g",""))},s.prototype.getLineTokens=function(h,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 l=o||"start",c=this.states[l];c||(l="start",c=this.states[l]);var a=this.matchMappings[l],f=this.regExps[l];f.lastIndex=0;for(var m,y=[],b=0,E=0,S={type:null,value:""};m=f.exec(h);){var C=a.defaultToken,$=null,R=m[0],x=f.lastIndex;if(x-R.length>b){var k=h.substring(b,x-R.length);S.type==C?S.value+=k:(S.type&&y.push(S),S={type:C,value:k})}for(var _=0;_<m.length-2;_++)if(m[_+1]!==void 0){$=c[a[_]],$.onMatch?C=$.onMatch(R,l,r,h):C=$.token,$.next&&(typeof $.next=="string"?l=$.next:l=$.next(l,r),c=this.states[l],c||(this.reportError("state doesn't exist",l),l="start",c=this.states[l]),a=this.matchMappings[l],b=x,f=this.regExps[l],f.lastIndex=x),$.consumeLineEnd&&(b=x);break}if(R){if(typeof C=="string")(!$||$.merge!==!1)&&S.type===C?S.value+=R:(S.type&&y.push(S),S={type:C,value:R});else if(C){S.type&&y.push(S),S={type:null,value:""};for(var _=0;_<C.length;_++)y.push(C[_])}}if(b==h.length)break;if(b=x,E++>p){for(E>2*h.length&&this.reportError("infinite loop with in ace tokenizer",{startState:o,line:h});b<h.length;)S.type&&y.push(S),S={value:h.substring(b,b+=500),type:"overflow"};l="start",r=[];break}}return S.type&&y.push(S),r.length>1&&r[0]!==l&&r.unshift("#tmp",l),{tokens:y,state:r.length?r:l}},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,p=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(h,o){if(!o){for(var r in h)this.$rules[r]=h[r];return}for(var r in h){for(var l=h[r],c=0;c<l.length;c++){var a=l[c];(a.next||a.onMatch)&&(typeof a.next=="string"&&a.next.indexOf(o)!==0&&(a.next=o+a.next),a.nextState&&a.nextState.indexOf(o)!==0&&(a.nextState=o+a.nextState))}this.$rules[o+r]=l}},this.getRules=function(){return this.$rules},this.embedRules=function(h,o,r,l,c){var a=typeof h=="function"?new h().getRules():h;if(l)for(var f=0;f<l.length;f++)l[f]=o+l[f];else{l=[];for(var m in a)l.push(o+m)}if(this.addRules(a,o),r)for(var y=Array.prototype[c?"push":"unshift"],f=0;f<l.length;f++)y.apply(this.$rules[l[f]],u(r));this.$embeds||(this.$embeds=[]),this.$embeds.push(o)},this.getEmbeds=function(){return this.$embeds};var g=function(h,o){return(h!="start"||o.length)&&o.unshift(this.nextState,h),this.nextState},s=function(h,o){return o.shift(),o.shift()||"start"};this.normalizeRules=function(){var h=0,o=this.$rules;function r(l){var c=o[l];c.processed=!0;for(var a=0;a<c.length;a++){var f=c[a],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 y=f.next||f.push;if(y&&Array.isArray(y)){var b=f.stateName;b||(b=f.token,typeof b!="string"&&(b=b[0]||""),o[b]&&(b+=h++)),o[b]=y,f.next=b,r(b)}else y=="pop"&&(f.next=s);if(f.push&&(f.nextState=f.next||f.push,f.next=g,delete f.push),f.rules)for(var E in f.rules)o[E]?o[E].push&&o[E].push.apply(o[E],f.rules[E]):o[E]=f.rules[E];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 C=[a,1].concat(m);f.noEscape&&(C=C.filter(function($){return!$.next})),c.splice.apply(c,C),a--}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(h,o,r,l){var c=Object.create(null);return this.$keywordList=[],Object.keys(h).forEach(function(a){for(var f=h[a],m=f.split(l||"|"),y=m.length;y--;){var b=m[y];this.$keywordList.push(b),r&&(b=b.toLowerCase()),c[b]=a}},this),h=null,r?function(a){return c[a.toLowerCase()]||o}:function(a){return c[a]||o}},this.getKeywords=function(){return this.$keywords}}).call(p.prototype),i.TextHighlightRules=p}),ace.define("ace/mode/behaviour",["require","exports","module"],function(n,i,d){var u=function(){this.$behaviours={}};(function(){this.add=function(p,g,s){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[p]:this.$behaviours[p]={}}this.$behaviours[p][g]=s},this.addBehaviours=function(p){for(var g in p)for(var s in p[g])this.add(g,s,p[g][s])},this.remove=function(p){this.$behaviours&&this.$behaviours[p]&&delete this.$behaviours[p]},this.inherit=function(p,g){if(typeof p=="function")var s=new p().getBehaviours(g);else var s=p.getBehaviours(g);this.addBehaviours(s)},this.getBehaviours=function(p){if(p){for(var g={},s=0;s<p.length;s++)this.$behaviours[p[s]]&&(g[p[s]]=this.$behaviours[p[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,p=function(){function g(s,h,o){this.$session=s,this.$row=h,this.$rowTokens=s.getTokens(h);var r=s.getTokenAt(h,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,h=this.$tokenIndex,o=s[h].start;if(o!==void 0)return o;for(o=0;h>0;)h-=1,o+=s[h].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],h=this.getCurrentTokenColumn();return new u(this.$row,h,this.$row,h+s.value.length)},g}();i.TokenIterator=p}),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"),p=n("../behaviour").Behaviour,g=n("../../token_iterator").TokenIterator,s=n("../../lib/lang"),h=["text","paren.rparen","rparen","paren","punctuation.operator"],o=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],r,l={},c={'"':'"',"'":"'"},a=function(y){var b=-1;if(y.multiSelect&&(b=y.selection.index,l.rangeCount!=y.multiSelect.rangeCount&&(l={rangeCount:y.multiSelect.rangeCount})),l[b])return r=l[b];r=l[b]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},f=function(y,b,E,S){var C=y.end.row-y.start.row;return{text:E+b+S,selection:[0,y.start.column+1,C,y.end.column+(C?0:1)]}},m=function(y){y=y||{},this.add("braces","insertion",function(b,E,S,C,$){var R=S.getCursorPosition(),x=C.doc.getLine(R.row);if($=="{"){a(S);var k=S.getSelectionRange(),_=C.doc.getTextRange(k);if(_!==""&&_!=="{"&&S.getWrapBehavioursEnabled())return f(k,_,"{","}");if(m.isSaneInsertion(S,C))return/[\]\}\)]/.test(x[R.column])||S.inMultiSelectMode||y.braces?(m.recordAutoInsert(S,C,"}"),{text:"{}",selection:[1,1]}):(m.recordMaybeInsert(S,C,"{"),{text:"{",selection:[1,1]})}else if($=="}"){a(S);var v=x.substring(R.column,R.column+1);if(v=="}"){var M=C.$findOpeningBracket("}",{column:R.column+1,row:R.row});if(M!==null&&m.isAutoInsertedClosing(R,x,$))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if($==`
982
+ `:Ke},V=function(Q){if(_)return ie();if(Q&&Q.inputType){if(Q.inputType=="historyUndo")return $.execCommand("undo");if(Q.inputType=="historyRedo")return $.execCommand("redo")}var ae=R.value,fe=K(ae,!0);(ae.length>a+100||b.test(fe)||E&&T<1&&T==O)&&H()},ee=function(Q,ae,fe){var be=Q.clipboardData||window.clipboardData;if(!(!be||r)){var Re=l||fe?"Text":"text/plain";try{return ae?be.setData(Re,ae)!==!1:be.getData(Re)}catch(Ne){if(!fe)return ee(Ne,ae,!0)}}},N=function(Q,ae){var fe=$.getCopyText();if(!fe)return u.preventDefault(Q);ee(Q,fe)?(y&&(H(fe),x=fe,setTimeout(function(){x=!1},10)),ae?$.onCut():$.onCopy(),u.preventDefault(Q)):(x=!0,R.value=fe,R.select(),setTimeout(function(){x=!1,H(),ae?$.onCut():$.onCopy()}))},B=function(Q){N(Q,!0)},j=function(Q){N(Q,!1)},Z=function(Q){var ae=ee(Q);o.pasteCancelled()||(typeof ae=="string"?(ae&&$.onPaste(ae,Q),g.isIE&&setTimeout(H),u.preventDefault(Q)):(R.value="",k=!0))};u.addCommandKeyListener(R,$.onCommandKey.bind($),$),u.addListener(R,"select",J,$),u.addListener(R,"input",V,$),u.addListener(R,"cut",B,$),u.addListener(R,"copy",j,$),u.addListener(R,"paste",Z,$),(!("oncut"in R)||!("oncopy"in R)||!("onpaste"in R))&&u.addListener(C,"keydown",function(Q){if(!(g.isMac&&!Q.metaKey||!Q.ctrlKey))switch(Q.keyCode){case 67:j(Q);break;case 86:Z(Q);break;case 88:B(Q);break}},$);var te=function(Q){if(!(_||!$.onCompositionStart||$.$readOnly)&&(_={},!A)){Q.data&&(_.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,_.markerRange=ae,_.selectionStart=T,$.onCompositionStart(_),_.useTextareaForIME?(L=R.value="",T=0,O=0):(R.msGetInputContext&&(_.context=R.msGetInputContext()),R.getInputContext&&(_.context=R.getInputContext()))}},ie=function(){if(!(!_||!$.onCompositionUpdate||$.$readOnly)){if(A)return se();if(_.useTextareaForIME)$.onCompositionUpdate(R.value);else{var Q=R.value;K(Q),_.markerRange&&(_.context&&(_.markerRange.start.column=_.selectionStart=_.context.compositionStartOffset),_.markerRange.end.column=_.markerRange.start.column+O-_.selectionStart+I)}}},le=function(Q){!$.onCompositionEnd||$.$readOnly||(_=!1,$.onCompositionEnd(),$.off("mousedown",se),Q&&V())};function se(){w=!0,R.blur(),R.focus(),w=!1}var ce=h.delayedCall(ie,50).schedule.bind(null,null);function re(Q){Q.keyCode==27&&R.value.length<R.selectionStart&&(_||(L=R.value),T=O=-1,H()),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){A=Q,R.readOnly=!1},this.setReadOnly=function(Q){A||(R.readOnly=Q)},this.setCopyWithEmptySelection=function(Q){},this.onContextMenu=function(Q){Y=!0,H(),$._emit("nativecontextmenu",{target:$,domEvent:Q}),this.moveToMouse(Q,!0)},this.moveToMouse=function(Q,ae){M||(M=R.style.cssText),R.style.cssText=(ae?"z-index:100000;":"")+(g.isIE?"opacity:0.1;":"")+"text-indent: -"+(T+O)*$.renderer.characterWidth*.5+"px;";var fe=$.container.getBoundingClientRect(),be=s.computedStyle($.container),Re=fe.top+(parseInt(be.borderTopWidth)||0),Ne=fe.left+(parseInt(fe.borderLeftWidth)||0),Ke=fe.bottom-Re-R.clientHeight-2,De=function(He){s.translate(R,He.clientX-Ne-2,Math.min(He.clientY-Re-2,Ke))};De(Q),Q.type=="mousedown"&&($.renderer.$isMousePressed=!0,clearTimeout(ve),g.isWin&&u.capture($.container,De,de))},this.onContextMenuClose=de;var ve;function de(){clearTimeout(ve),ve=setTimeout(function(){M&&(R.style.cssText=M,M=""),$.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,$),y&&_e(C,$,R);function _e(Q,ae,fe){var be=null,Re=!1;fe.addEventListener("keydown",function(Ke){be&&clearTimeout(be),Re=!0},!0),fe.addEventListener("keyup",function(Ke){be=setTimeout(function(){Re=!1},100)},!0);var Ne=function(Ke){if(document.activeElement===fe&&!(Re||_||ae.$mouseHandler.isMousePressed)&&!x){var De=fe.selectionStart,He=fe.selectionEnd,ke=null,ze=0;if(De==0?ke=d.up:De==1?ke=d.home:He>O&&L[He]==`
983
+ `?ke=d.end:De<T&&L[De-1]==" "?(ke=d.left,ze=m.option):De<T||De==T&&O!=T&&De==He?ke=d.left:He>O&&L.slice(0,He).split(`
984
+ `).length>2?ke=d.down:He>O&&L[He-1]==" "?(ke=d.right,ze=m.option):(He>O||He==O&&O!=T&&De==He)&&(ke=d.right),De!==He&&(ze|=m.shift),ke){var fn=ae.onCommandKey({},ze,ke);if(!fn&&ae.commands){ke=d.keyCodeToString(ke);var Al=ae.commands.findKeyCommand(ze,ke);Al&&ae.execCommand(Al)}T=De,O=He,H("")}}};document.addEventListener("selectionchange",Ne),ae.on("destroy",function(){document.removeEventListener("selectionchange",Ne)})}this.destroy=function(){R.parentElement&&R.parentElement.removeChild(R)}};i.TextInput=S,i.$setUserAgentForTests=function(C,$){E=C,y=$}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(n,i,p){var u=n("../lib/useragent"),f=0,g=550,s=function(){function r(l){l.$clickSelection=null;var c=l.editor;c.setDefaultHandler("mousedown",this.onMouseDown.bind(l)),c.setDefaultHandler("dblclick",this.onDoubleClick.bind(l)),c.setDefaultHandler("tripleclick",this.onTripleClick.bind(l)),c.setDefaultHandler("quadclick",this.onQuadClick.bind(l)),c.setDefaultHandler("mousewheel",this.onMouseWheel.bind(l));var a=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];a.forEach(function(d){l[d]=this[d]},this),l.selectByLines=this.extendSelectionBy.bind(l,"getLineRange"),l.selectByWords=this.extendSelectionBy.bind(l,"getWordRange")}return r.prototype.onMouseDown=function(l){var c=l.inSelection(),a=l.getDocumentPosition();this.mousedownEvent=l;var d=this.editor,m=l.getButton();if(m!==0){var y=d.getSelectionRange(),b=y.isEmpty();(b||m==1)&&d.selection.moveToPosition(a),m==2&&(d.textInput.onContextMenu(l.domEvent),u.isMozilla||l.preventDefault());return}if(this.mousedownEvent.time=Date.now(),c&&!d.isFocused()&&(d.focus(),this.$focusTimeout&&!this.$clickSelection&&!d.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(l);return}return this.captureMouse(l),this.startSelect(a,l.domEvent._clicks>1),l.preventDefault()},r.prototype.startSelect=function(l,c){l=l||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var a=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?a.selection.selectToPosition(l):c||a.selection.moveToPosition(l),c||this.select(),a.setStyle("ace_selecting"),this.setState("select"))},r.prototype.select=function(){var l,c=this.editor,a=c.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var d=this.$clickSelection.comparePoint(a);if(d==-1)l=this.$clickSelection.end;else if(d==1)l=this.$clickSelection.start;else{var m=o(this.$clickSelection,a);a=m.cursor,l=m.anchor}c.selection.setSelectionAnchor(l.row,l.column)}c.selection.selectToPosition(a),c.renderer.scrollCursorIntoView()},r.prototype.extendSelectionBy=function(l){var c,a=this.editor,d=a.renderer.screenToTextCoordinates(this.x,this.y),m=a.selection[l](d.row,d.column);if(this.$clickSelection){var y=this.$clickSelection.comparePoint(m.start),b=this.$clickSelection.comparePoint(m.end);if(y==-1&&b<=0)c=this.$clickSelection.end,(m.end.row!=d.row||m.end.column!=d.column)&&(d=m.start);else if(b==1&&y>=0)c=this.$clickSelection.start,(m.start.row!=d.row||m.start.column!=d.column)&&(d=m.end);else if(y==-1&&b==1)d=m.end,c=m.start;else{var E=o(this.$clickSelection,d);d=E.cursor,c=E.anchor}a.selection.setSelectionAnchor(c.row,c.column)}a.selection.selectToPosition(d),a.renderer.scrollCursorIntoView()},r.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},r.prototype.focusWait=function(){var l=h(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),c=Date.now();(l>f||c-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},r.prototype.onDoubleClick=function(l){var c=l.getDocumentPosition(),a=this.editor,d=a.session,m=d.getBracketRange(c);m?(m.isEmpty()&&(m.start.column--,m.end.column++),this.setState("select")):(m=a.selection.getWordRange(c.row,c.column),this.setState("selectByWords")),this.$clickSelection=m,this.select()},r.prototype.onTripleClick=function(l){var c=l.getDocumentPosition(),a=this.editor;this.setState("selectByLines");var d=a.getSelectionRange();d.isMultiLine()&&d.contains(c.row,c.column)?(this.$clickSelection=a.selection.getLineRange(d.start.row),this.$clickSelection.end=a.selection.getLineRange(d.end.row).end):this.$clickSelection=a.selection.getLineRange(c.row),this.select()},r.prototype.onQuadClick=function(l){var c=this.editor;c.selectAll(),this.$clickSelection=c.getSelectionRange(),this.setState("selectAll")},r.prototype.onMouseWheel=function(l){if(!l.getAccelKey()){l.getShiftKey()&&l.wheelY&&!l.wheelX&&(l.wheelX=l.wheelY,l.wheelY=0);var c=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var a=this.$lastScroll,d=l.domEvent.timeStamp,m=d-a.t,y=m?l.wheelX/m:a.vx,b=m?l.wheelY/m:a.vy;m<g&&(y=(y+a.vx)/2,b=(b+a.vy)/2);var E=Math.abs(y/b),S=!1;if(E>=1&&c.renderer.isScrollableBy(l.wheelX*l.speed,0)&&(S=!0),E<=1&&c.renderer.isScrollableBy(0,l.wheelY*l.speed)&&(S=!0),S)a.allowed=d;else if(d-a.allowed<g){var C=Math.abs(y)<=1.5*Math.abs(a.vx)&&Math.abs(b)<=1.5*Math.abs(a.vy);C?(S=!0,a.allowed=d):a.allowed=0}if(a.t=d,a.vx=y,a.vy=b,S)return c.renderer.scrollBy(l.wheelX*l.speed,l.wheelY*l.speed),l.stop()}},r}();s.prototype.selectEnd=s.prototype.selectByLinesEnd,s.prototype.selectAllEnd=s.prototype.selectByLinesEnd,s.prototype.selectByWordsEnd=s.prototype.selectByLinesEnd,i.DefaultHandlers=s;function h(r,l,c,a){return Math.sqrt(Math.pow(c-r,2)+Math.pow(a-l,2))}function o(r,l){if(r.start.row==r.end.row)var c=2*l.column-r.start.column-r.end.column;else if(r.start.row==r.end.row-1&&!r.start.column&&!r.end.column)var c=l.column-4;else var c=2*l.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/tooltip",["require","exports","module","ace/lib/dom","ace/range"],function(n,i,p){var u=this&&this.__extends||function(){var a=function(d,m){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,b){y.__proto__=b}||function(y,b){for(var E in b)Object.prototype.hasOwnProperty.call(b,E)&&(y[E]=b[E])},a(d,m)};return function(d,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");a(d,m);function y(){this.constructor=d}d.prototype=m===null?Object.create(m):(y.prototype=m.prototype,new y)}}(),f=this&&this.__values||function(a){var d=typeof Symbol=="function"&&Symbol.iterator,m=d&&a[d],y=0;if(m)return m.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&y>=a.length&&(a=void 0),{value:a&&a[y++],done:!a}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")},g=n("./lib/dom"),s=n("./range").Range,h="ace_tooltip",o=function(){function a(d){this.isOpen=!1,this.$element=null,this.$parentNode=d}return a.prototype.$init=function(){return this.$element=g.createElement("div"),this.$element.className=h,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},a.prototype.getElement=function(){return this.$element||this.$init()},a.prototype.setText=function(d){this.getElement().textContent=d},a.prototype.setHtml=function(d){this.getElement().innerHTML=d},a.prototype.setPosition=function(d,m){this.getElement().style.left=d+"px",this.getElement().style.top=m+"px"},a.prototype.setClassName=function(d){g.addCssClass(this.getElement(),d)},a.prototype.setTheme=function(d){this.$element.className=h+" "+(d.isDark?"ace_dark ":"")+(d.cssClass||"")},a.prototype.show=function(d,m,y){d!=null&&this.setText(d),m!=null&&y!=null&&this.setPosition(m,y),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},a.prototype.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=h,this.isOpen=!1)},a.prototype.getHeight=function(){return this.getElement().offsetHeight},a.prototype.getWidth=function(){return this.getElement().offsetWidth},a.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},a}(),r=function(){function a(){this.popups=[]}return a.prototype.addPopup=function(d){this.popups.push(d),this.updatePopups()},a.prototype.removePopup=function(d){var m=this.popups.indexOf(d);m!==-1&&(this.popups.splice(m,1),this.updatePopups())},a.prototype.updatePopups=function(){var d,m,y,b;this.popups.sort(function(v,M){return M.priority-v.priority});var E=[];try{for(var S=f(this.popups),C=S.next();!C.done;C=S.next()){var $=C.value,R=!0;try{for(var x=(y=void 0,f(E)),k=x.next();!k.done;k=x.next()){var _=k.value;if(this.doPopupsOverlap(_,$)){R=!1;break}}}catch(v){y={error:v}}finally{try{k&&!k.done&&(b=x.return)&&b.call(x)}finally{if(y)throw y.error}}R?E.push($):$.hide()}}catch(v){d={error:v}}finally{try{C&&!C.done&&(m=S.return)&&m.call(S)}finally{if(d)throw d.error}}},a.prototype.doPopupsOverlap=function(d,m){var y=d.getElement().getBoundingClientRect(),b=m.getElement().getBoundingClientRect();return y.left<b.right&&y.right>b.left&&y.top<b.bottom&&y.bottom>b.top},a}(),l=new r;i.popupManager=l,i.Tooltip=o;var c=function(a){u(d,a);function d(m){m===void 0&&(m=document.body);var y=a.call(this,m)||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 b=y.getElement();return b.style.whiteSpace="pre-wrap",b.style.pointerEvents="auto",b.addEventListener("mouseout",y.onMouseOut),b.tabIndex=-1,b.addEventListener("blur",(function(){b.contains(document.activeElement)||this.hide()}).bind(y)),y}return d.prototype.addToEditor=function(m){m.on("mousemove",this.onMouseMove),m.on("mousedown",this.hide),m.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},d.prototype.removeFromEditor=function(m){m.off("mousemove",this.onMouseMove),m.off("mousedown",this.hide),m.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},d.prototype.onMouseMove=function(m,y){this.lastEvent=m,this.lastT=Date.now();var b=y.$mouseHandler.isMousePressed;if(this.isOpen){var E=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(E.row,E.column)||b||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||b||(this.lastEvent=m,this.timeout=setTimeout(this.waitForHover,this.idleTime))},d.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var m=Date.now()-this.lastT;if(this.idleTime-m>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-m);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},d.prototype.isOutsideOfText=function(m){var y=m.editor,b=m.getDocumentPosition(),E=y.session.getLine(b.row);if(b.column==E.length){var S=y.renderer.pixelToScreenCoordinates(m.clientX,m.clientY),C=y.session.documentToScreenPosition(b.row,b.column);if(C.column!=S.column||C.row!=S.row)return!0}return!1},d.prototype.setDataProvider=function(m){this.$gatherData=m},d.prototype.showForRange=function(m,y,b,E){if(!(E&&E!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var S=m.renderer;this.isOpen||(l.addPopup(this),this.$registerCloseEvents(),this.setTheme(S.theme)),this.isOpen=!0,this.addMarker(y,m.session),this.range=s.fromPoints(y.start,y.end);var C=this.getElement();C.innerHTML="",C.appendChild(b),C.style.display="block";var $=S.textToScreenCoordinates(y.start.row,y.start.column),R=C.clientHeight,x=S.scroller.getBoundingClientRect(),k=!0;$.pageY-R<0&&(k=!1),k?$.pageY-=R:$.pageY+=S.lineHeight,C.style.maxWidth=x.width-($.pageX-x.left)+"px",this.setPosition($.pageX,$.pageY)}},d.prototype.addMarker=function(m,y){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=y,this.marker=y&&y.addMarker(m,"ace_highlight-marker","text")},d.prototype.hide=function(m){!m&&document.activeElement==this.getElement()||m&&m.target&&(m.type!="keydown"||m.ctrlKey||m.metaKey)&&this.$element.contains(m.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,l.removePopup(this)))},d.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("mousewheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},d.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("mousewheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},d.prototype.onMouseOut=function(m){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!m.relatedTarget||m.relatedTarget==this.getElement()||m&&m.currentTarget.contains(m.relatedTarget)||m.relatedTarget.classList.contains("ace_content")||this.hide())},d}(o);i.HoverTooltip=c}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config"],function(n,i,p){var u=this&&this.__extends||function(){var c=function(a,d){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,y){m.__proto__=y}||function(m,y){for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(m[b]=y[b])},c(a,d)};return function(a,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");c(a,d);function m(){this.constructor=a}a.prototype=d===null?Object.create(d):(m.prototype=d.prototype,new m)}}(),f=this&&this.__values||function(c){var a=typeof Symbol=="function"&&Symbol.iterator,d=a&&c[a],m=0;if(d)return d.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(a?"Object is not iterable.":"Symbol.iterator is not defined.")},g=n("../lib/dom"),s=n("../lib/event"),h=n("../tooltip").Tooltip,o=n("../config").nls;function r(c){var a=c.editor,d=a.renderer.$gutterLayer,m=new l(a);c.editor.setDefaultHandler("guttermousedown",function($){if(!(!a.isFocused()||$.getButton()!=0)){var R=d.getRegion($);if(R!="foldWidgets"){var x=$.getDocumentPosition().row,k=a.session.selection;if($.getShiftKey())k.selectTo(x,0);else{if($.domEvent.detail==2)return a.selectAll(),$.preventDefault();c.$clickSelection=a.selection.getLineRange(x)}return c.setState("selectByLines"),c.captureMouse($),$.preventDefault()}}});var y,b;function E(){var $=b.getDocumentPosition().row,R=a.session.getLength();if($==R){var x=a.renderer.pixelToScreenCoordinates(0,b.y).row,k=b.$pos;if(x>a.session.documentToScreenRow(k.row,k.column))return S()}if(m.showTooltip($),!!m.isOpen)if(a.on("mousewheel",S),c.$tooltipFollowsMouse)C(b);else{var _=b.getGutterRow(),v=d.$lines.get(_);if(v){var M=v.element.querySelector(".ace_gutter_annotation"),A=M.getBoundingClientRect(),w=m.getElement().style;w.left=A.right+"px",w.top=A.bottom+"px"}else C(b)}}function S(){y&&(y=clearTimeout(y)),m.isOpen&&(m.hideTooltip(),a.off("mousewheel",S))}function C($){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&&C($),b=$,!y&&(y=setTimeout(function(){y=null,b&&!c.isMousePressed?E():S()},50))}),s.addListener(a.renderer.$gutter,"mouseout",function($){b=null,!(!m.isOpen||y)&&(y=setTimeout(function(){y=null,S()},50))},a),a.on("changeSession",S),a.on("input",S)}i.GutterHandler=r;var l=function(c){u(a,c);function a(d){var m=c.call(this,d.container)||this;return m.editor=d,m}return a.prototype.setPosition=function(d,m){var y=window.innerWidth||document.documentElement.clientWidth,b=window.innerHeight||document.documentElement.clientHeight,E=this.getWidth(),S=this.getHeight();d+=15,m+=15,d+E>y&&(d-=d+E-y),m+S>b&&(m-=20+S),h.prototype.setPosition.call(this,d,m)},Object.defineProperty(a,"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}),a.prototype.showTooltip=function(d){var m=this.editor.renderer.$gutterLayer,y=m.$annotations[d],b;y?b={text:Array.from(y.text),type:Array.from(y.type)}:b={text:[],type:[]};var E=m.session.getFoldLine(d);if(E&&m.$showFoldedAnnotations){for(var S={error:[],warning:[],info:[]},C,$=d+1;$<=E.end.row;$++)if(m.$annotations[$])for(var R=0;R<m.$annotations[$].text.length;R++){var x=m.$annotations[$].type[R];if(S[x].push(m.$annotations[$].text[R]),x==="error"){C="error_fold";continue}if(x==="warning"){C="warning_fold";continue}}if(C==="error_fold"||C==="warning_fold"){var k="".concat(a.annotationsToSummaryString(S)," in folded code.");b.text.push(k),b.type.push(C)}}if(b.text.length===0)return this.hide();for(var _={error:[],warning:[],info:[]},v=m.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",$=0;$<b.text.length;$++){var M="<span class='ace_".concat(b.type[$]," ").concat(v,"' aria-label='").concat(a.annotationLabels[b.type[$].replace("_fold","")].singular,"' role=img> </span> ").concat(b.text[$]);_[b.type[$].replace("_fold","")].push(M)}var A=[].concat(_.error,_.warning,_.info).join("<br>");this.setHtml(A),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)},a.prototype.hideTooltip=function(){this.$element.removeAttribute("aria-live"),this.hide(),this.editor._signal("hideGutterTooltip",this)},a.annotationsToSummaryString=function(d){var m,y,b=[],E=["error","warning","info"];try{for(var S=f(E),C=S.next();!C.done;C=S.next()){var $=C.value;if(d[$].length){var R=d[$].length===1?a.annotationLabels[$].singular:a.annotationLabels[$].plural;b.push("".concat(d[$].length," ").concat(R))}}}catch(x){m={error:x}}finally{try{C&&!C.done&&(y=S.return)&&y.call(S)}finally{if(m)throw m.error}}return b.join(", ")},a}(h);i.GutterTooltip=l}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(n,i,p){var u=n("../lib/event"),f=n("../lib/useragent"),g=function(){function s(h,o){this.domEvent=h,this.editor=o,this.x=this.clientX=h.clientX,this.y=this.clientY=h.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 h=this.getDocumentPosition().row,o=this.editor.session.documentToScreenRow(h,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 h=this.editor,o=h.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 f.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,p){var u=n("../lib/dom"),f=n("../lib/event"),g=n("../lib/useragent"),s=200,h=200,o=5;function r(c){var a=c.editor,d=u.createElement("div");d.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",d.textContent=" ";var m=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];m.forEach(function(U){c[U]=this[U]},this),a.on("mousedown",this.onMouseDown.bind(c));var y=a.container,b,E,S,C,$,R,x=0,k,_,v,M,A;this.onDragStart=function(U){if(this.cancelDrag||!y.draggable){var H=this;return setTimeout(function(){H.startSelect(),H.captureMouse(U)},0),U.preventDefault()}$=a.getSelectionRange();var X=U.dataTransfer;X.effectAllowed=a.getReadOnly()?"copy":"copyMove",a.container.appendChild(d),X.setDragImage&&X.setDragImage(d,0,0),setTimeout(function(){a.container.removeChild(d)}),X.clearData(),X.setData("Text",a.session.getTextRange()),_=!0,this.setState("drag")},this.onDragEnd=function(U){if(y.draggable=!1,_=!1,this.setState(null),!a.getReadOnly()){var H=U.dataTransfer.dropEffect;!k&&H=="move"&&a.session.remove(a.getSelectionRange()),a.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(U){if(!(a.getReadOnly()||!W(U.dataTransfer)))return E=U.clientX,S=U.clientY,b||O(),x++,U.dataTransfer.dropEffect=k=G(U),f.preventDefault(U)},this.onDragOver=function(U){if(!(a.getReadOnly()||!W(U.dataTransfer)))return E=U.clientX,S=U.clientY,b||(O(),x++),F!==null&&(F=null),U.dataTransfer.dropEffect=k=G(U),f.preventDefault(U)},this.onDragLeave=function(U){if(x--,x<=0&&b)return I(),k=null,f.preventDefault(U)},this.onDrop=function(U){if(R){var H=U.dataTransfer;if(_)switch(k){case"move":$.contains(R.row,R.column)?$={start:R,end:R}:$=a.moveText($,R);break;case"copy":$=a.moveText($,R,!0);break}else{var X=H.getData("Text");$={start:R,end:a.session.insert(R,X)},a.focus(),k=null}return I(),f.preventDefault(U)}},f.addListener(y,"dragstart",this.onDragStart.bind(c),a),f.addListener(y,"dragend",this.onDragEnd.bind(c),a),f.addListener(y,"dragenter",this.onDragEnter.bind(c),a),f.addListener(y,"dragover",this.onDragOver.bind(c),a),f.addListener(y,"dragleave",this.onDragLeave.bind(c),a),f.addListener(y,"drop",this.onDrop.bind(c),a);function w(U,H){var X=Date.now(),J=!H||U.row!=H.row,z=!H||U.column!=H.column;if(!M||J||z)a.moveCursorToPosition(U),M=X,A={x:E,y:S};else{var Y=l(A.x,A.y,E,S);Y>o?M=null:X-M>=h&&(a.renderer.scrollCursorIntoView(),M=null)}}function L(U,H){var X=Date.now(),J=a.renderer.layerConfig.lineHeight,z=a.renderer.layerConfig.characterWidth,Y=a.renderer.scroller.getBoundingClientRect(),K={x:{left:E-Y.left,right:Y.right-E},y:{top:S-Y.top,bottom:Y.bottom-S}},V=Math.min(K.x.left,K.x.right),ee=Math.min(K.y.top,K.y.bottom),N={row:U.row,column:U.column};V/z<=2&&(N.column+=K.x.left<K.x.right?-3:2),ee/J<=1&&(N.row+=K.y.top<K.y.bottom?-1:1);var B=U.row!=N.row,j=U.column!=N.column,Z=!H||U.row!=H.row;B||j&&!Z?v?X-v>=s&&a.renderer.scrollCursorIntoView(N):v=X:v=null}function T(){var U=R;R=a.renderer.screenToTextCoordinates(E,S),w(R,U),L(R,U)}function O(){$=a.selection.toOrientedRange(),b=a.session.addMarker($,"ace_selection",a.getSelectionStyle()),a.clearSelection(),a.isFocused()&&a.renderer.$cursorLayer.setBlinking(!1),clearInterval(C),T(),C=setInterval(T,20),x=0,f.addListener(document,"mousemove",D)}function I(){clearInterval(C),a.session.removeMarker(b),b=null,a.selection.fromOrientedRange($),a.isFocused()&&!_&&a.$resetCursorStyle(),$=null,R=null,x=0,v=null,M=null,f.removeListener(document,"mousemove",D)}var F=null;function D(){F==null&&(F=setTimeout(function(){F!=null&&b&&I()},20))}function W(U){var H=U.types;return!H||Array.prototype.some.call(H,function(X){return X=="text/plain"||X=="Text"})}function G(U){var H=["copy","copymove","all","uninitialized"],X=["move","copymove","linkmove","all","uninitialized"],J=g.isMac?U.altKey:U.ctrlKey,z="uninitialized";try{z=U.dataTransfer.effectAllowed.toLowerCase()}catch{}var Y="none";return J&&H.indexOf(z)>=0?Y="copy":X.indexOf(z)>=0?Y="move":H.indexOf(z)>=0&&(Y="copy"),Y}}(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,a=c.container;a.draggable=!0,c.renderer.$cursorLayer.setBlinking(!1),c.setStyle("ace_dragging");var d=g.isWin?"default":"move";c.renderer.setCursorStyle(d),this.setState("dragReady")},this.onMouseDrag=function(c){var a=this.editor.container;if(g.isIE&&this.state=="dragReady"){var d=l(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);d>3&&a.dragDrop()}if(this.state==="dragWait"){var d=l(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);d>0&&(a.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(c){if(this.$dragEnabled){this.mousedownEvent=c;var a=this.editor,d=c.inSelection(),m=c.getButton(),y=c.domEvent.detail||1;if(y===1&&m===0&&d){if(c.editor.inMultiSelectMode&&(c.getAccelKey()||c.getShiftKey()))return;this.mousedownEvent.time=Date.now();var b=c.domEvent.target||c.domEvent.srcElement;if("unselectable"in b&&(b.unselectable="on"),a.getDragDelay()){if(g.isWebKit){this.cancelDrag=!0;var E=a.container;E.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(c,this.onMouseDrag.bind(this)),c.defaultPrevented=!0}}}}).call(r.prototype);function l(c,a,d,m){return Math.sqrt(Math.pow(d-c,2)+Math.pow(m-a,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,p){var u=n("./mouse_event").MouseEvent,f=n("../lib/event"),g=n("../lib/dom");i.addTouchListeners=function(s,h){var o="scroll",r,l,c,a,d,m,y=0,b,E=0,S=0,C=0,$,R;function x(){var w=window.navigator&&window.navigator.clipboard,L=!1,T=function(){var I=h.getCopyText(),F=h.session.getUndoManager().hasUndo();R.replaceChild(g.buildDom(L?["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:"openCommandPallete"},"Palette"]]:["span"]),R.firstChild)},O=function(I){var F=I.target.getAttribute("action");if(F=="more"||!L)return L=!L,T();F=="paste"?w.readText().then(function(D){h.execCommand(F,D)}):F&&((F=="cut"||F=="copy")&&(w?w.writeText(h.getCopyText()):document.execCommand("copy")),h.execCommand(F)),R.firstChild.style.display="none",L=!1,F!="openCommandPallete"&&h.focus()};R=g.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(I){o="menu",I.stopPropagation(),I.preventDefault(),h.textInput.focus()},ontouchend:function(I){I.stopPropagation(),I.preventDefault(),O(I)},onclick:O},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],h.container)}function k(){R||x();var w=h.selection.cursor,L=h.renderer.textToScreenCoordinates(w.row,w.column),T=h.renderer.textToScreenCoordinates(0,0).pageX,O=h.renderer.scrollLeft,I=h.container.getBoundingClientRect();R.style.top=L.pageY-I.top-3+"px",L.pageX-I.left<I.width-70?(R.style.left="",R.style.right="10px"):(R.style.right="",R.style.left=T+O-I.left+"px"),R.style.display="",R.firstChild.style.display="none",h.on("input",_)}function _(w){R&&(R.style.display="none"),h.off("input",_)}function v(){d=null,clearTimeout(d);var w=h.selection.getRange(),L=w.contains(b.row,b.column);(w.isEmpty()||!L)&&(h.selection.moveToPosition(b),h.selection.selectWord()),o="wait",k()}function M(){d=null,clearTimeout(d),h.selection.moveToPosition(b);var w=E>=2?h.selection.getLineRange(b.row):h.session.getBracketRange(b);w&&!w.isEmpty()?h.selection.setRange(w):h.selection.selectWord(),o="wait"}f.addListener(s,"contextmenu",function(w){if($){var L=h.textInput.getElement();L.focus()}},h),f.addListener(s,"touchstart",function(w){var L=w.touches;if(d||L.length>1){clearTimeout(d),d=null,c=-1,o="zoom";return}$=h.$mouseHandler.isMousePressed=!0;var T=h.renderer.layerConfig.lineHeight,O=h.renderer.layerConfig.lineHeight,I=w.timeStamp;a=I;var F=L[0],D=F.clientX,W=F.clientY;Math.abs(r-D)+Math.abs(l-W)>T&&(c=-1),r=w.clientX=D,l=w.clientY=W,S=C=0;var G=new u(w,h);if(b=G.getDocumentPosition(),I-c<500&&L.length==1&&!y)E++,w.preventDefault(),w.button=0,M();else{E=0;var U=h.selection.cursor,H=h.selection.isEmpty()?U:h.selection.anchor,X=h.renderer.$cursorLayer.getPixelPosition(U,!0),J=h.renderer.$cursorLayer.getPixelPosition(H,!0),z=h.renderer.scroller.getBoundingClientRect(),Y=h.renderer.layerConfig.offset,K=h.renderer.scrollLeft,V=function(B,j){return B=B/O,j=j/T-.75,B*B+j*j};if(w.clientX<z.left){o="zoom";return}var ee=V(w.clientX-z.left-X.left+K,w.clientY-z.top-X.top+Y),N=V(w.clientX-z.left-J.left+K,w.clientY-z.top-J.top+Y);ee<3.5&&N<3.5&&(o=ee>N?"cursor":"anchor"),N<3.5?o="anchor":ee<3.5?o="cursor":o="scroll",d=setTimeout(v,450)}c=I},h),f.addListener(s,"touchend",function(w){$=h.$mouseHandler.isMousePressed=!1,m&&clearInterval(m),o=="zoom"?(o="",y=0):d?(h.selection.moveToPosition(b),y=0,k()):o=="scroll"?(A(),_()):k(),clearTimeout(d),d=null},h),f.addListener(s,"touchmove",function(w){d&&(clearTimeout(d),d=null);var L=w.touches;if(!(L.length>1||o=="zoom")){var T=L[0],O=r-T.clientX,I=l-T.clientY;if(o=="wait")if(O*O+I*I>4)o="cursor";else return w.preventDefault();r=T.clientX,l=T.clientY,w.clientX=T.clientX,w.clientY=T.clientY;var F=w.timeStamp,D=F-a;if(a=F,o=="scroll"){var W=new u(w,h);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,C=I/D),h._emit("mousewheel",W),W.propagationStopped||(S=C=0)}else{var G=new u(w,h),U=G.getDocumentPosition();o=="cursor"?h.selection.moveCursorToPosition(U):o=="anchor"&&h.selection.setSelectionAnchor(U.row,U.column),h.renderer.scrollCursorIntoView(U),w.preventDefault()}}},h);function A(){y+=60,m=setInterval(function(){y--<=0&&(clearInterval(m),m=null),Math.abs(S)<.01&&(S=0),Math.abs(C)<.01&&(C=0),y<20&&(S=.9*S),y<20&&(C=.9*C);var w=h.session.getScrollTop();h.renderer.scrollBy(10*S,10*C),w==h.session.getScrollTop()&&(y=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,p){var u=n("../lib/event"),f=n("../lib/useragent"),g=n("./default_handlers").DefaultHandlers,s=n("./default_gutter_handler").GutterHandler,h=n("./mouse_event").MouseEvent,o=n("./dragdrop_handler").DragdropHandler,r=n("./touch_handler").addTouchListeners,l=n("../config"),c=function(){function a(d){var m=this;this.editor=d,new g(this),new s(this),new o(this);var y=function(S){var C=!document.hasFocus||!document.hasFocus()||!d.isFocused()&&document.activeElement==(d.textInput&&d.textInput.getElement());C&&window.focus(),d.focus(),setTimeout(function(){d.isFocused()||d.focus()})},b=d.renderer.getMouseEventTarget();u.addListener(b,"click",this.onMouseEvent.bind(this,"click"),d),u.addListener(b,"mousemove",this.onMouseMove.bind(this,"mousemove"),d),u.addMultiMouseDownListener([b,d.renderer.scrollBarV&&d.renderer.scrollBarV.inner,d.renderer.scrollBarH&&d.renderer.scrollBarH.inner,d.textInput&&d.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",d),u.addMouseWheelListener(d.container,this.onMouseWheel.bind(this,"mousewheel"),d),r(d.container,d);var E=d.renderer.$gutter;u.addListener(E,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),d),u.addListener(E,"click",this.onMouseEvent.bind(this,"gutterclick"),d),u.addListener(E,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),d),u.addListener(E,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),d),u.addListener(b,"mousedown",y,d),u.addListener(E,"mousedown",y,d),f.isIE&&d.renderer.scrollBarV&&(u.addListener(d.renderer.scrollBarV.element,"mousedown",y,d),u.addListener(d.renderer.scrollBarH.element,"mousedown",y,d)),d.on("mousemove",function(S){if(!(m.state||m.$dragDelay||!m.$dragEnabled)){var C=d.renderer.screenToTextCoordinates(S.x,S.y),$=d.session.selection.getRange(),R=d.renderer;!$.isEmpty()&&$.insideStart(C.row,C.column)?R.setCursorStyle("default"):R.setCursorStyle("")}},d)}return a.prototype.onMouseEvent=function(d,m){this.editor.session&&this.editor._emit(d,new h(m,this.editor))},a.prototype.onMouseMove=function(d,m){var y=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!y||!y.length||this.editor._emit(d,new h(m,this.editor))},a.prototype.onMouseWheel=function(d,m){var y=new h(m,this.editor);y.speed=this.$scrollSpeed*2,y.wheelX=m.wheelX,y.wheelY=m.wheelY,this.editor._emit(d,y)},a.prototype.setState=function(d){this.state=d},a.prototype.captureMouse=function(d,m){this.x=d.x,this.y=d.y,this.isMousePressed=!0;var y=this.editor,b=this.editor.renderer;b.$isMousePressed=!0;var E=this,S=function(k){if(k){if(f.isWebKit&&!k.which&&E.releaseMouse)return E.releaseMouse();E.x=k.clientX,E.y=k.clientY,m&&m(k),E.mouseEvent=new h(k,E.editor),E.$mouseMoved=!0}},C=function(k){y.off("beforeEndOperation",R),clearInterval(x),y.session&&$(),E[E.state+"End"]&&E[E.state+"End"](k),E.state="",E.isMousePressed=b.$isMousePressed=!1,b.$keepTextAreaAtCursor&&b.$moveTextAreaToCursor(),E.$onCaptureMouseMove=E.releaseMouse=null,k&&E.onMouseEvent("mouseup",k),y.endOperation()},$=function(){E[E.state]&&E[E.state](),E.$mouseMoved=!1};if(f.isOldIE&&d.domEvent.type=="dblclick")return setTimeout(function(){C(d)});var R=function(k){E.releaseMouse&&y.curOp.command.name&&y.curOp.selectionChanged&&(E[E.state+"End"]&&E[E.state+"End"](),E.state="",E.releaseMouse())};y.on("beforeEndOperation",R),y.startOperation({command:{name:"mouse"}}),E.$onCaptureMouseMove=S,E.releaseMouse=u.capture(this.editor.container,S,C);var x=setInterval($,20)},a.prototype.cancelContextMenu=function(){var d=(function(m){m&&m.domEvent&&m.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",d),m&&m.domEvent&&u.stopEvent(m.domEvent))}).bind(this);setTimeout(d,10),this.editor.on("nativecontextmenu",d)},a.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},a}();c.prototype.releaseMouse=null,l.defineOptions(c.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:f.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,p){var u=n("../lib/dom"),f=function(){function g(s){s.on("click",function(h){var o=h.getDocumentPosition(),r=s.session,l=r.getFoldAt(o.row,o.column,1);l&&(h.getAccelKey()?r.removeFold(l):r.expandFold(l),h.stop());var c=h.domEvent&&h.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(h){var o=s.renderer.$gutterLayer.getRegion(h);if(o=="foldWidgets"){var r=h.getDocumentPosition().row,l=s.session;l.foldWidgets&&l.foldWidgets[r]&&s.session.onFoldWidgetClick(r,h),s.isFocused()||s.focus(),h.stop()}}),s.on("gutterdblclick",function(h){var o=s.renderer.$gutterLayer.getRegion(h);if(o=="foldWidgets"){var r=h.getDocumentPosition().row,l=s.session,c=l.getParentFoldRangeData(r,!0),a=c.range||c.firstRange;if(a){r=a.start.row;var d=l.getFoldAt(r,l.getLine(r).length,1);d?l.removeFold(d):(l.addFold("...",a),s.renderer.scrollCursorIntoView({row:a.start.row,column:0}))}h.stop()}})}return g}();i.FoldHandler=f}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(n,i,p){var u=n("../lib/keys"),f=n("../lib/event"),g=function(){function s(h){this.$editor=h,this.$data={editor:h},this.$handlers=[],this.setDefaultHandler(h.commands)}return s.prototype.setDefaultHandler=function(h){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=h,this.addKeyboardHandler(h,0)},s.prototype.setKeyboardHandler=function(h){var o=this.$handlers;if(o[o.length-1]!=h){for(;o[o.length-1]&&o[o.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(o[o.length-1]);this.addKeyboardHandler(h,1)}},s.prototype.addKeyboardHandler=function(h,o){if(h){typeof h=="function"&&!h.handleKeyboard&&(h.handleKeyboard=h);var r=this.$handlers.indexOf(h);r!=-1&&this.$handlers.splice(r,1),o==null?this.$handlers.push(h):this.$handlers.splice(o,0,h),r==-1&&h.attach&&h.attach(this.$editor)}},s.prototype.removeKeyboardHandler=function(h){var o=this.$handlers.indexOf(h);return o==-1?!1:(this.$handlers.splice(o,1),h.detach&&h.detach(this.$editor),!0)},s.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},s.prototype.getStatusText=function(){var h=this.$data,o=h.editor;return this.$handlers.map(function(r){return r.getStatusText&&r.getStatusText(o,h)||""}).filter(Boolean).join(" ")},s.prototype.$callKeyboardHandlers=function(h,o,r,l){for(var c,a=!1,d=this.$editor.commands,m=this.$handlers.length;m--&&(c=this.$handlers[m].handleKeyboard(this.$data,h,o,r,l),!(!(!c||!c.command)&&(c.command=="null"?a=!0:a=d.exec(c.command,this.$editor,c.args,l),a&&l&&h!=-1&&c.passEvent!=!0&&c.command.passEvent!=!0&&f.stopEvent(l),a))););return!a&&h==-1&&(c={command:"insertstring"},a=d.exec("insertstring",this.$editor,o)),a&&this.$editor._signal&&this.$editor._signal("keyboardActivity",c),a},s.prototype.onCommandKey=function(h,o,r){var l=u.keyCodeToString(r);return this.$callKeyboardHandlers(o,l,r,h)},s.prototype.onTextInput=function(h){return this.$callKeyboardHandlers(-1,h)},s}();i.KeyBinding=g}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(n,i,p){var u=0,f=0,g=!1,s=!1,h=!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]],l=0,c=1,a=0,d=1,m=2,y=3,b=4,E=5,S=6,C=7,$=8,R=9,x=10,k=11,_=12,v=13,M=14,A=15,w=16,L=17,T=18,O=[T,T,T,T,T,T,T,T,T,S,E,S,$,E,T,T,T,T,T,T,T,T,T,T,T,T,T,T,E,E,E,S,$,b,b,k,k,k,b,b,b,b,b,x,R,x,R,R,m,m,m,m,m,m,m,m,m,m,R,b,b,b,b,b,b,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,b,b,b,b,b,b,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,b,b,b,b,T,T,T,T,T,T,E,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,R,b,k,k,k,k,b,b,b,b,a,b,b,T,b,b,k,k,m,m,b,a,b,b,b,m,a,b,b,b,b,b],I=[$,$,$,$,$,$,$,$,$,$,$,T,T,T,a,d,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,$,E,v,M,A,w,L,R,k,k,k,k,k,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,R,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,$];function F(U,H,X,J){var z=u?r:o,Y=null,K=null,V=null,ee=0,N=null,B=null,j=-1,Z=null,te=null,ie=[];if(!J)for(Z=0,J=[];Z<X;Z++)J[Z]=G(U[Z]);for(f=u,g=!1,s=!1,h=!1,te=0;te<X;te++){if(Y=ee,ie[te]=K=W(U,J,ie,te),ee=z[Y][K],N=ee&240,ee&=15,H[te]=V=z[ee][5],N>0)if(N==16){for(Z=j;Z<te;Z++)H[Z]=1;j=-1}else j=-1;if(B=z[ee][6],B)j==-1&&(j=te);else if(j>-1){for(Z=j;Z<te;Z++)H[Z]=V;j=-1}J[te]==E&&(H[te]=0),f|=V}if(h){for(Z=0;Z<X;Z++)if(J[Z]==S){H[Z]=u;for(var le=Z-1;le>=0&&J[le]==$;le--)H[le]=u}}}function D(U,H,X){if(!(f<U)){if(U==1&&u==c&&!s){X.reverse();return}for(var J=X.length,z=0,Y,K,V,ee;z<J;){if(H[z]>=U){for(Y=z+1;Y<J&&H[Y]>=U;)Y++;for(K=z,V=Y-1;K<V;K++,V--)ee=X[K],X[K]=X[V],X[V]=ee;z=Y}z++}}}function W(U,H,X,J){var z=H[J],Y,K,V,ee;switch(z){case a:case d:g=!1;case b:case y:return z;case m:return g?y:m;case C:return g=!0,d;case $:return b;case R:return J<1||J+1>=H.length||(Y=X[J-1])!=m&&Y!=y||(K=H[J+1])!=m&&K!=y?b:(g&&(K=y),K==Y?K:b);case x:return Y=J>0?X[J-1]:E,Y==m&&J+1<H.length&&H[J+1]==m?m:b;case k:if(J>0&&X[J-1]==m)return m;if(g)return b;for(ee=J+1,V=H.length;ee<V&&H[ee]==k;)ee++;return ee<V&&H[ee]==m?m:b;case _:for(V=H.length,ee=J+1;ee<V&&H[ee]==_;)ee++;if(ee<V){var N=U[J],B=N>=1425&&N<=2303||N==64286;if(Y=H[ee],B&&(Y==d||Y==C))return d}return J<1||(Y=H[J-1])==E?b:X[J-1];case E:return g=!1,s=!0,u;case S:return h=!0,b;case v:case M:case w:case L:case A:g=!1;case T:return b}}function G(U){var H=U.charCodeAt(0),X=H>>8;return X==0?H>191?a:O[H]:X==5?/[\u0591-\u05f4]/.test(U)?d:a:X==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(U)?_:/[\u0660-\u0669\u066b-\u066c]/.test(U)?y:H==1642?k:/[\u06f0-\u06f9]/.test(U)?m:C:X==32&&H<=8287?I[H&255]:X==254&&H>=65136?C:b}i.L=a,i.R=d,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(U,H,X){if(U.length<2)return{};var J=U.split(""),z=new Array(J.length),Y=new Array(J.length),K=[];u=X?c:l,F(J,K,J.length,H);for(var V=0;V<z.length;z[V]=V,V++);D(2,K,z),D(1,K,z);for(var V=0;V<z.length-1;V++)H[V]===y?K[V]=i.AN:K[V]===d&&(H[V]>C&&H[V]<v||H[V]===b||H[V]===T)?K[V]=i.ON_R:V>0&&J[V-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(J[V])&&(K[V-1]=K[V]=i.R_H,V++);J[J.length-1]===i.DOT&&(K[J.length-1]=i.B),J[0]==="‫"&&(K[0]=i.RLE);for(var V=0;V<z.length;V++)Y[V]=K[z[V]];return{logicalFromVisual:z,bidiLevels:Y}},i.hasBidiCharacters=function(U,H){for(var X=!1,J=0;J<U.length;J++)H[J]=G(U.charAt(J)),!X&&(H[J]==d||H[J]==C||H[J]==y)&&(X=!0);return X},i.getVisualFromLogicalIdx=function(U,H){for(var X=0;X<H.logicalFromVisual.length;X++)if(H.logicalFromVisual[X]==U)return X;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(n,i,p){var u=n("./lib/bidiutil"),f=n("./lib/lang"),g=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,s=function(){function h(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 h.prototype.isBidiRow=function(o,r,l){return this.seenBidi?(o!==this.currentRow&&(this.currentRow=o,this.updateRowLine(r,l),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},h.prototype.onChange=function(o){this.seenBidi?this.currentRow=null:o.action=="insert"&&g.test(o.lines.join(`
985
+ `))&&(this.seenBidi=!0,this.currentRow=null)},h.prototype.getDocumentRow=function(){var o=0,r=this.session.$screenRowCache;if(r.length){var l=this.session.$getRowCacheIndex(r,this.currentRow);l>=0&&(o=this.session.$docRowCache[l])}return o},h.prototype.getSplitIndex=function(){var o=0,r=this.session.$screenRowCache;if(r.length)for(var l,c=this.session.$getRowCacheIndex(r,this.currentRow);this.currentRow-o>0&&(l=this.session.$getRowCacheIndex(r,this.currentRow-o-1),l===c);)c=l,o++;else o=this.currentRow;return o},h.prototype.updateRowLine=function(o,r){o===void 0&&(o=this.getDocumentRow());var l=o===this.session.getLength()-1,c=l?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 a=this.session.$wrapData[o];a&&(r===void 0&&(r=this.getSplitIndex()),r>0&&a.length?(this.wrapIndent=a.indent,this.wrapOffset=this.wrapIndent*this.charWidths[u.L],this.line=r<a.length?this.line.substring(a[r-1],a[r]):this.line.substring(a[a.length-1])):this.line=this.line.substring(0,a[r]),r==a.length&&(this.line+=this.showInvisibles?c:u.DOT))}else this.line+=this.showInvisibles?c:u.DOT;var d=this.session,m=0,y;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(b,E){return b===" "||d.isFullWidth(b.charCodeAt(0))?(y=b===" "?d.getScreenTabSize(E+m):2,m+=y-1,f.stringRepeat(u.DOT,y)):b}),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)},h.prototype.updateBidiMap=function(){var o=[];u.hasBidiCharacters(this.line,o)||this.isRtlDir?this.bidiMap=u.doBidiReorder(this.line,o,this.isRtlDir):this.bidiMap={}},h.prototype.markAsDirty=function(){this.currentRow=null},h.prototype.updateCharacterWidths=function(o){if(this.characterWidth!==o.$characterSize.width){this.fontMetrics=o;var r=this.characterWidth=o.$characterSize.width,l=o.$measureCharWidth("ה");this.charWidths[u.L]=this.charWidths[u.EN]=this.charWidths[u.ON_R]=r,this.charWidths[u.R]=this.charWidths[u.AN]=l,this.charWidths[u.R_H]=l*.45,this.charWidths[u.B]=this.charWidths[u.RLE]=0,this.currentRow=null}},h.prototype.setShowInvisibles=function(o){this.showInvisibles=o,this.currentRow=null},h.prototype.setEolChar=function(o){this.EOL=o},h.prototype.setContentWidth=function(o){this.contentWidth=o},h.prototype.isRtlLine=function(o){return this.$isRtl?!0:o!=null?this.session.getLine(o).charAt(0)==this.RLE:this.isRtlDir},h.prototype.setRtlDirection=function(o,r){for(var l=o.getCursorPosition(),c=o.selection.getSelectionAnchor().row;c<=l.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)},h.prototype.getPosLeft=function(o){o-=this.wrapIndent;var r=this.line.charAt(0)===this.RLE?1:0,l=o>r?this.session.getOverwrite()?o:o-1:r,c=u.getVisualFromLogicalIdx(l,this.bidiMap),a=this.bidiMap.bidiLevels,d=0;!this.session.getOverwrite()&&o<=r&&a[c]%2!==0&&c++;for(var m=0;m<c;m++)d+=this.charWidths[a[m]];return!this.session.getOverwrite()&&o>r&&a[c]%2===0&&(d+=this.charWidths[a[c]]),this.wrapIndent&&(d+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(d+=this.rtlLineOffset),d},h.prototype.getSelections=function(o,r){var l=this.bidiMap,c=l.bidiLevels,a,d=[],m=0,y=Math.min(o,r)-this.wrapIndent,b=Math.max(o,r)-this.wrapIndent,E=!1,S=!1,C=0;this.wrapIndent&&(m+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var $,R=0;R<c.length;R++)$=l.logicalFromVisual[R],a=c[R],E=$>=y&&$<b,E&&!S?C=m:!E&&S&&d.push({left:C,width:m-C}),m+=this.charWidths[a],S=E;if(E&&R===c.length&&d.push({left:C,width:m-C}),this.isRtlDir)for(var x=0;x<d.length;x++)d[x].left+=this.rtlLineOffset;return d},h.prototype.offsetToCol=function(l){this.isRtlDir&&(l-=this.rtlLineOffset);var r=0,l=Math.max(l,0),c=0,a=0,d=this.bidiMap.bidiLevels,m=this.charWidths[d[a]];for(this.wrapIndent&&(l-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);l>c+m/2;){if(c+=m,a===d.length-1){m=0;break}m=this.charWidths[d[++a]]}return a>0&&d[a-1]%2!==0&&d[a]%2===0?(l<c&&a--,r=this.bidiMap.logicalFromVisual[a]):a>0&&d[a-1]%2===0&&d[a]%2!==0?r=1+(l>c?this.bidiMap.logicalFromVisual[a]:this.bidiMap.logicalFromVisual[a-1]):this.isRtlDir&&a===d.length-1&&m===0&&d[a-1]%2===0||!this.isRtlDir&&a===0&&d[a]%2!==0?r=1+this.bidiMap.logicalFromVisual[a]:(a>0&&d[a-1]%2!==0&&m!==0&&a--,r=this.bidiMap.logicalFromVisual[a]),r===0&&this.isRtlDir&&r++,r+this.wrapIndent},h}();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,p){var u=n("./lib/oop"),f=n("./lib/lang"),g=n("./lib/event_emitter").EventEmitter,s=n("./range").Range,h=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 l=this;this.cursor.on("change",function(c){l.$cursorChanged=!0,l.$silent||l._emit("changeCursor"),!l.$isEmpty&&!l.$silent&&l._emit("changeSelection"),!l.$keepDesiredColumnOnChange&&c.old.column!=c.value.column&&(l.$desiredColumn=null)}),this.anchor.on("change",function(){l.$anchorChanged=!0,!l.$isEmpty&&!l.$silent&&l._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,l){this.$isEmpty=!1,this.anchor.setPosition(r,l)},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,l=this.lead;return r.row>l.row||r.row==l.row&&r.column>l.column},o.prototype.getRange=function(){var r=this.anchor,l=this.lead;return this.$isEmpty?s.fromPoints(l,l):this.isBackwards()?s.fromPoints(l,r):s.fromPoints(r,l)},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,l){var c=l?r.end:r.start,a=l?r.start:r.end;this.$setSelection(c.row,c.column,a.row,a.column)},o.prototype.$setSelection=function(r,l,c,a){if(!this.$silent){var d=this.$isEmpty,m=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(r,l),this.cursor.setPosition(c,a),this.$isEmpty=!s.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||d!=this.$isEmpty||m)&&this._emit("changeSelection")}},o.prototype.$moveSelection=function(r){var l=this.lead;this.$isEmpty&&this.setSelectionAnchor(l.row,l.column),r.call(this)},o.prototype.selectTo=function(r,l){this.$moveSelection(function(){this.moveCursorTo(r,l)})},o.prototype.selectToPosition=function(r){this.$moveSelection(function(){this.moveCursorToPosition(r)})},o.prototype.moveTo=function(r,l){this.clearSelection(),this.moveCursorTo(r,l)},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,l){if(typeof l>"u"){var c=r||this.lead;r=c.row,l=c.column}return this.session.getWordRange(r,l)},o.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},o.prototype.selectAWord=function(){var r=this.getCursor(),l=this.session.getAWordRange(r.row,r.column);this.setSelectionRange(l)},o.prototype.getLineRange=function(r,l){var c=typeof r=="number"?r:this.lead.row,a,d=this.session.getFoldLine(c);return d?(c=d.start.row,a=d.end.row):a=c,l===!0?new s(c,0,a,this.session.getLine(a).length):new s(c,0,a+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,l,c){var a=r.column,d=r.column+l;return c<0&&(a=r.column-l,d=r.column),this.session.isTabStop(r)&&this.doc.getLine(r.row).slice(a,d).split(" ").length-1==l},o.prototype.moveCursorLeft=function(){var r=this.lead.getPosition(),l;if(l=this.session.getFoldAt(r.row,r.column,-1))this.moveCursorTo(l.start.row,l.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(),l;if(l=this.session.getFoldAt(r.row,r.column,1))this.moveCursorTo(l.end.row,l.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,l=this.lead.column,c=this.session.documentToScreenRow(r,l),a=this.session.screenToDocumentPosition(c,0),d=this.session.getDisplayLine(r,null,a.row,a.column),m=d.match(/^\s*/);m[0].length!=l&&!this.session.$useEmacsStyleLineStart&&(a.column+=m[0].length),this.moveCursorToPosition(a)},o.prototype.moveCursorLineEnd=function(){var r=this.lead,l=this.session.getDocumentLastRowColumnPosition(r.row,r.column);if(this.lead.column==l.column){var c=this.session.getLine(l.row);if(l.column==c.length){var a=c.search(/\s+$/);a>0&&(l.column=a)}}this.moveCursorTo(l.row,l.column)},o.prototype.moveCursorFileEnd=function(){var r=this.doc.getLength()-1,l=this.doc.getLine(r).length;this.moveCursorTo(r,l)},o.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},o.prototype.moveCursorLongWordRight=function(){var r=this.lead.row,l=this.lead.column,c=this.doc.getLine(r),a=c.substring(l);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var d=this.session.getFoldAt(r,l,1);if(d){this.moveCursorTo(d.end.row,d.end.column);return}if(this.session.nonTokenRe.exec(a)&&(l+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,a=c.substring(l)),l>=c.length){this.moveCursorTo(r,c.length),this.moveCursorRight(),r<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(a)&&(l+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(r,l)},o.prototype.moveCursorLongWordLeft=function(){var r=this.lead.row,l=this.lead.column,c;if(c=this.session.getFoldAt(r,l,-1)){this.moveCursorTo(c.start.row,c.start.column);return}var a=this.session.getFoldStringAt(r,l,-1);a==null&&(a=this.doc.getLine(r).substring(0,l));var d=f.stringReverse(a);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(d)&&(l-=this.session.nonTokenRe.lastIndex,d=d.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),l<=0){this.moveCursorTo(r,0),this.moveCursorLeft(),r>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(d)&&(l-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(r,l)},o.prototype.$shortWordEndIndex=function(r){var l=0,c,a=/\s/,d=this.session.tokenRe;if(d.lastIndex=0,this.session.tokenRe.exec(r))l=this.session.tokenRe.lastIndex;else{for(;(c=r[l])&&a.test(c);)l++;if(l<1){for(d.lastIndex=0;(c=r[l])&&!d.test(c);)if(d.lastIndex=0,l++,a.test(c))if(l>2){l--;break}else{for(;(c=r[l])&&a.test(c);)l++;if(l>2)break}}}return d.lastIndex=0,l},o.prototype.moveCursorShortWordRight=function(){var r=this.lead.row,l=this.lead.column,c=this.doc.getLine(r),a=c.substring(l),d=this.session.getFoldAt(r,l,1);if(d)return this.moveCursorTo(d.end.row,d.end.column);if(l==c.length){var m=this.doc.getLength();do r++,a=this.doc.getLine(r);while(r<m&&/^\s*$/.test(a));/^\s+/.test(a)||(a=""),l=0}var y=this.$shortWordEndIndex(a);this.moveCursorTo(r,l+y)},o.prototype.moveCursorShortWordLeft=function(){var r=this.lead.row,l=this.lead.column,c;if(c=this.session.getFoldAt(r,l,-1))return this.moveCursorTo(c.start.row,c.start.column);var a=this.session.getLine(r).substring(0,l);if(l===0){do r--,a=this.doc.getLine(r);while(r>0&&/^\s*$/.test(a));l=a.length,/\s+$/.test(a)||(a="")}var d=f.stringReverse(a),m=this.$shortWordEndIndex(d);return this.moveCursorTo(r,l-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,l){var c=this.session.documentToScreenPosition(this.lead.row,this.lead.column),a;if(l===0&&(r!==0&&(this.session.$bidiHandler.isBidiRow(c.row,this.lead.row)?(a=this.session.$bidiHandler.getPosLeft(c.column),c.column=Math.round(a/this.session.$bidiHandler.charWidths[0])):a=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 d=this.session.lineWidgets[this.lead.row];r<0?r-=d.rowsAbove||0:r>0&&(r+=d.rowCount-(d.rowsAbove||0))}var m=this.session.screenToDocumentPosition(c.row+r,c.column,a);r!==0&&l===0&&m.row===this.lead.row&&(m.column,this.lead.column),this.moveCursorTo(m.row,m.column+l,l===0)},o.prototype.moveCursorToPosition=function(r){this.moveCursorTo(r.row,r.column)},o.prototype.moveCursorTo=function(r,l,c){var a=this.session.getFoldAt(r,l,1);a&&(r=a.start.row,l=a.start.column),this.$keepDesiredColumnOnChange=!0;var d=this.session.getLine(r);/[\uDC00-\uDFFF]/.test(d.charAt(l))&&d.charAt(l-1)&&(this.lead.row==r&&this.lead.column==l+1?l=l-1:l=l+1),this.lead.setPosition(r,l),this.$keepDesiredColumnOnChange=!1,c||(this.$desiredColumn=null)},o.prototype.moveCursorToScreen=function(r,l,c){var a=this.session.screenToDocumentPosition(r,l);this.moveCursorTo(a.row,a.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 l=this.getRange();return r?(r.start.column=l.start.column,r.start.row=l.start.row,r.end.column=l.end.column,r.end.row=l.end.row):r=l,r.cursor=this.isBackwards()?r.start:r.end,r.desiredColumn=this.$desiredColumn,r},o.prototype.getRangeOfMovements=function(r){var l=this.getCursor();try{r(this);var c=this.getCursor();return s.fromPoints(l,c)}catch{return s.fromPoints(l,l)}finally{this.moveCursorToPosition(l)}},o.prototype.toJSON=function(){if(this.rangeCount)var r=this.ranges.map(function(l){var c=l.clone();return c.isBackwards=l.cursor==l.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 l=r.length;l--;){var c=s.fromPoints(r[l].start,r[l].end);r[l].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 l=this.ranges.length;l--;)if(!this.ranges[l].isEqual(r[l]))return!1;return!0},o}();h.prototype.setSelectionAnchor=h.prototype.setAnchor,h.prototype.getSelectionAnchor=h.prototype.getAnchor,h.prototype.setSelectionRange=h.prototype.setRange,u.implement(h.prototype,g),i.Selection=h}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(n,i,p){var u=n("./lib/report_error").reportError,f=2e3,g=function(){function s(h){this.states=h,this.regExps={},this.matchMappings={};for(var o in this.states){for(var r=this.states[o],l=[],c=0,a=this.matchMappings[o]={defaultToken:"text"},d="g",m=[],y=0;y<r.length;y++){var b=r[y];if(b.defaultToken&&(a.defaultToken=b.defaultToken),b.caseInsensitive&&d.indexOf("i")===-1&&(d+="i"),b.unicode&&d.indexOf("u")===-1&&(d+="u"),b.regex!=null){b.regex instanceof RegExp&&(b.regex=b.regex.toString().slice(1,-1));var E=b.regex,S=new RegExp("(?:("+E+")|(.))").exec("a").length-2;Array.isArray(b.token)?b.token.length==1||S==1?b.token=b.token[0]:S-1!=b.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:b,groupCount:S-1}),b.token=b.token[0]):(b.tokenArray=b.token,b.token=null,b.onMatch=this.$arrayTokens):typeof b.token=="function"&&!b.onMatch&&(S>1?b.onMatch=this.$applyToken:b.onMatch=b.token),S>1&&(/\\\d/.test(b.regex)?E=b.regex.replace(/\\([0-9]+)/g,function(C,$){return"\\"+(parseInt($,10)+c+1)}):(S=1,E=this.removeCapturingGroups(b.regex)),!b.splitRegex&&typeof b.token!="string"&&m.push(b)),a[c]=y,c+=S,l.push(E),b.onMatch||(b.onMatch=null)}}l.length||(a[0]=0,l.push("$")),m.forEach(function(C){C.splitRegex=this.createSplitterRegexp(C.regex,d)},this),this.regExps[o]=new RegExp("("+l.join(")|(")+")|($)",d)}}return s.prototype.$setMaxTokenCount=function(h){f=h|0},s.prototype.$applyToken=function(h){var o=this.splitRegex.exec(h).slice(1),r=this.token.apply(this,o);if(typeof r=="string")return[{type:r,value:h}];for(var l=[],c=0,a=r.length;c<a;c++)o[c]&&(l[l.length]={type:r[c],value:o[c]});return l},s.prototype.$arrayTokens=function(h){if(!h)return[];var o=this.splitRegex.exec(h);if(!o)return"text";for(var r=[],l=this.tokenArray,c=0,a=l.length;c<a;c++)o[c+1]&&(r[r.length]={type:l[c],value:o[c+1]});return r},s.prototype.removeCapturingGroups=function(h){var o=h.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(r,l){return l?"(?:":r});return o},s.prototype.createSplitterRegexp=function(h,o){if(h.indexOf("(?=")!=-1){var r=0,l=!1,c={};h.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(a,d,m,y,b,E){return l?l=b!="]":b?l=!0:y?(r==c.stack&&(c.end=E+1,c.stack=-1),r--):m&&(r++,m.length!=1&&(c.stack=r,c.start=E)),a}),c.end!=null&&/^\)*$/.test(h.substr(c.end))&&(h=h.substring(0,c.start)+h.substr(c.end))}return h.charAt(0)!="^"&&(h="^"+h),h.charAt(h.length-1)!="$"&&(h+="$"),new RegExp(h,(o||"").replace("g",""))},s.prototype.getLineTokens=function(h,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 l=o||"start",c=this.states[l];c||(l="start",c=this.states[l]);var a=this.matchMappings[l],d=this.regExps[l];d.lastIndex=0;for(var m,y=[],b=0,E=0,S={type:null,value:""};m=d.exec(h);){var C=a.defaultToken,$=null,R=m[0],x=d.lastIndex;if(x-R.length>b){var k=h.substring(b,x-R.length);S.type==C?S.value+=k:(S.type&&y.push(S),S={type:C,value:k})}for(var _=0;_<m.length-2;_++)if(m[_+1]!==void 0){$=c[a[_]],$.onMatch?C=$.onMatch(R,l,r,h):C=$.token,$.next&&(typeof $.next=="string"?l=$.next:l=$.next(l,r),c=this.states[l],c||(this.reportError("state doesn't exist",l),l="start",c=this.states[l]),a=this.matchMappings[l],b=x,d=this.regExps[l],d.lastIndex=x),$.consumeLineEnd&&(b=x);break}if(R){if(typeof C=="string")(!$||$.merge!==!1)&&S.type===C?S.value+=R:(S.type&&y.push(S),S={type:C,value:R});else if(C){S.type&&y.push(S),S={type:null,value:""};for(var _=0;_<C.length;_++)y.push(C[_])}}if(b==h.length)break;if(b=x,E++>f){for(E>2*h.length&&this.reportError("infinite loop with in ace tokenizer",{startState:o,line:h});b<h.length;)S.type&&y.push(S),S={value:h.substring(b,b+=500),type:"overflow"};l="start",r=[];break}}return S.type&&y.push(S),r.length>1&&r[0]!==l&&r.unshift("#tmp",l),{tokens:y,state:r.length?r:l}},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,p){var u=n("../lib/deep_copy").deepCopy,f=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(h,o){if(!o){for(var r in h)this.$rules[r]=h[r];return}for(var r in h){for(var l=h[r],c=0;c<l.length;c++){var a=l[c];(a.next||a.onMatch)&&(typeof a.next=="string"&&a.next.indexOf(o)!==0&&(a.next=o+a.next),a.nextState&&a.nextState.indexOf(o)!==0&&(a.nextState=o+a.nextState))}this.$rules[o+r]=l}},this.getRules=function(){return this.$rules},this.embedRules=function(h,o,r,l,c){var a=typeof h=="function"?new h().getRules():h;if(l)for(var d=0;d<l.length;d++)l[d]=o+l[d];else{l=[];for(var m in a)l.push(o+m)}if(this.addRules(a,o),r)for(var y=Array.prototype[c?"push":"unshift"],d=0;d<l.length;d++)y.apply(this.$rules[l[d]],u(r));this.$embeds||(this.$embeds=[]),this.$embeds.push(o)},this.getEmbeds=function(){return this.$embeds};var g=function(h,o){return(h!="start"||o.length)&&o.unshift(this.nextState,h),this.nextState},s=function(h,o){return o.shift(),o.shift()||"start"};this.normalizeRules=function(){var h=0,o=this.$rules;function r(l){var c=o[l];c.processed=!0;for(var a=0;a<c.length;a++){var d=c[a],m=null;Array.isArray(d)&&(m=d,d={}),!d.regex&&d.start&&(d.regex=d.start,d.next||(d.next=[]),d.next.push({defaultToken:d.token},{token:d.token+".end",regex:d.end||d.start,next:"pop"}),d.token=d.token+".start",d.push=!0);var y=d.next||d.push;if(y&&Array.isArray(y)){var b=d.stateName;b||(b=d.token,typeof b!="string"&&(b=b[0]||""),o[b]&&(b+=h++)),o[b]=y,d.next=b,r(b)}else y=="pop"&&(d.next=s);if(d.push&&(d.nextState=d.next||d.push,d.next=g,delete d.push),d.rules)for(var E in d.rules)o[E]?o[E].push&&o[E].push.apply(o[E],d.rules[E]):o[E]=d.rules[E];var S=typeof d=="string"?d:d.include;if(S&&(S==="$self"&&(S="start"),Array.isArray(S)?m=S.map(function($){return o[$]}):m=o[S]),m){var C=[a,1].concat(m);d.noEscape&&(C=C.filter(function($){return!$.next})),c.splice.apply(c,C),a--}d.keywordMap&&(d.token=this.createKeywordMapper(d.keywordMap,d.defaultToken||"text",d.caseInsensitive),delete d.defaultToken)}}Object.keys(o).forEach(r,this)},this.createKeywordMapper=function(h,o,r,l){var c=Object.create(null);return this.$keywordList=[],Object.keys(h).forEach(function(a){for(var d=h[a],m=d.split(l||"|"),y=m.length;y--;){var b=m[y];this.$keywordList.push(b),r&&(b=b.toLowerCase()),c[b]=a}},this),h=null,r?function(a){return c[a.toLowerCase()]||o}:function(a){return c[a]||o}},this.getKeywords=function(){return this.$keywords}}).call(f.prototype),i.TextHighlightRules=f}),ace.define("ace/mode/behaviour",["require","exports","module"],function(n,i,p){var u=function(){this.$behaviours={}};(function(){this.add=function(f,g,s){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[f]:this.$behaviours[f]={}}this.$behaviours[f][g]=s},this.addBehaviours=function(f){for(var g in f)for(var s in f[g])this.add(g,s,f[g][s])},this.remove=function(f){this.$behaviours&&this.$behaviours[f]&&delete this.$behaviours[f]},this.inherit=function(f,g){if(typeof f=="function")var s=new f().getBehaviours(g);else var s=f.getBehaviours(g);this.addBehaviours(s)},this.getBehaviours=function(f){if(f){for(var g={},s=0;s<f.length;s++)this.$behaviours[f[s]]&&(g[f[s]]=this.$behaviours[f[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,p){var u=n("./range").Range,f=function(){function g(s,h,o){this.$session=s,this.$row=h,this.$rowTokens=s.getTokens(h);var r=s.getTokenAt(h,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,h=this.$tokenIndex,o=s[h].start;if(o!==void 0)return o;for(o=0;h>0;)h-=1,o+=s[h].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],h=this.getCurrentTokenColumn();return new u(this.$row,h,this.$row,h+s.value.length)},g}();i.TokenIterator=f}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(n,i,p){var u=n("../../lib/oop"),f=n("../behaviour").Behaviour,g=n("../../token_iterator").TokenIterator,s=n("../../lib/lang"),h=["text","paren.rparen","rparen","paren","punctuation.operator"],o=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],r,l={},c={'"':'"',"'":"'"},a=function(y){var b=-1;if(y.multiSelect&&(b=y.selection.index,l.rangeCount!=y.multiSelect.rangeCount&&(l={rangeCount:y.multiSelect.rangeCount})),l[b])return r=l[b];r=l[b]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},d=function(y,b,E,S){var C=y.end.row-y.start.row;return{text:E+b+S,selection:[0,y.start.column+1,C,y.end.column+(C?0:1)]}},m=function(y){y=y||{},this.add("braces","insertion",function(b,E,S,C,$){var R=S.getCursorPosition(),x=C.doc.getLine(R.row);if($=="{"){a(S);var k=S.getSelectionRange(),_=C.doc.getTextRange(k);if(_!==""&&_!=="{"&&S.getWrapBehavioursEnabled())return d(k,_,"{","}");if(m.isSaneInsertion(S,C))return/[\]\}\)]/.test(x[R.column])||S.inMultiSelectMode||y.braces?(m.recordAutoInsert(S,C,"}"),{text:"{}",selection:[1,1]}):(m.recordMaybeInsert(S,C,"{"),{text:"{",selection:[1,1]})}else if($=="}"){a(S);var v=x.substring(R.column,R.column+1);if(v=="}"){var M=C.$findOpeningBracket("}",{column:R.column+1,row:R.row});if(M!==null&&m.isAutoInsertedClosing(R,x,$))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if($==`
984
986
  `||$==`\r
985
987
  `){a(S);var A="";m.isMaybeInsertedClosing(R,x)&&(A=s.stringRepeat("}",r.maybeInsertedBrackets),m.clearMaybeInsertedClosing());var v=x.substring(R.column,R.column+1);if(v==="}"){var w=C.findMatchingBracket({row:R.row,column:R.column+1},"}");if(!w)return null;var L=this.$getIndent(C.getLine(w.row))}else if(A)var L=this.$getIndent(x);else{m.clearMaybeInsertedClosing();return}var T=L+C.getTabString();return{text:`
986
988
  `+T+`
987
- `+L+A,selection:[1,T.length,1,T.length]}}else m.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(b,E,S,C,$){var R=C.doc.getTextRange($);if(!$.isMultiLine()&&R=="{"){a(S);var x=C.doc.getLine($.start.row),k=x.substring($.end.column,$.end.column+1);if(k=="}")return $.end.column++,$;r.maybeInsertedBrackets--}}),this.add("parens","insertion",function(b,E,S,C,$){if($=="("){a(S);var R=S.getSelectionRange(),x=C.doc.getTextRange(R);if(x!==""&&S.getWrapBehavioursEnabled())return f(R,x,"(",")");if(m.isSaneInsertion(S,C))return m.recordAutoInsert(S,C,")"),{text:"()",selection:[1,1]}}else if($==")"){a(S);var k=S.getCursorPosition(),_=C.doc.getLine(k.row),v=_.substring(k.column,k.column+1);if(v==")"){var M=C.$findOpeningBracket(")",{column:k.column+1,row:k.row});if(M!==null&&m.isAutoInsertedClosing(k,_,$))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(b,E,S,C,$){var R=C.doc.getTextRange($);if(!$.isMultiLine()&&R=="("){a(S);var x=C.doc.getLine($.start.row),k=x.substring($.start.column+1,$.start.column+2);if(k==")")return $.end.column++,$}}),this.add("brackets","insertion",function(b,E,S,C,$){if($=="["){a(S);var R=S.getSelectionRange(),x=C.doc.getTextRange(R);if(x!==""&&S.getWrapBehavioursEnabled())return f(R,x,"[","]");if(m.isSaneInsertion(S,C))return m.recordAutoInsert(S,C,"]"),{text:"[]",selection:[1,1]}}else if($=="]"){a(S);var k=S.getCursorPosition(),_=C.doc.getLine(k.row),v=_.substring(k.column,k.column+1);if(v=="]"){var M=C.$findOpeningBracket("]",{column:k.column+1,row:k.row});if(M!==null&&m.isAutoInsertedClosing(k,_,$))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(b,E,S,C,$){var R=C.doc.getTextRange($);if(!$.isMultiLine()&&R=="["){a(S);var x=C.doc.getLine($.start.row),k=x.substring($.start.column+1,$.start.column+2);if(k=="]")return $.end.column++,$}}),this.add("string_dquotes","insertion",function(b,E,S,C,$){var R=C.$mode.$quotes||c;if($.length==1&&R[$]){if(this.lineCommentStart&&this.lineCommentStart.indexOf($)!=-1)return;a(S);var x=$,k=S.getSelectionRange(),_=C.doc.getTextRange(k);if(_!==""&&(_.length!=1||!R[_])&&S.getWrapBehavioursEnabled())return f(k,_,x,x);if(!_){var v=S.getCursorPosition(),M=C.doc.getLine(v.row),A=M.substring(v.column-1,v.column),w=M.substring(v.column,v.column+1),L=C.getTokenAt(v.row,v.column),T=C.getTokenAt(v.row,v.column+1);if(A=="\\"&&L&&/escape/.test(L.type))return null;var O=L&&/string|escape/.test(L.type),I=!T||/string|escape/.test(T.type),F;if(w==x)F=O!==I,F&&/string\.end/.test(T.type)&&(F=!1);else{if(O&&!I||O&&I)return null;var D=C.$mode.tokenRe;D.lastIndex=0;var W=D.test(A);D.lastIndex=0;var G=D.test(w),U=C.$mode.$pairQuotesAfter,H=U&&U[x]&&U[x].test(A);if(!H&&W||G||w&&!/[\s;,.})\]\\]/.test(w))return null;var X=M[v.column-2];if(A==x&&(X==x||D.test(X)))return null;F=!0}return{text:F?x+x:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(b,E,S,C,$){var R=C.$mode.$quotes||c,x=C.doc.getTextRange($);if(!$.isMultiLine()&&R.hasOwnProperty(x)){a(S);var k=C.doc.getLine($.start.row),_=k.substring($.start.column+1,$.start.column+2);if(_==x)return $.end.column++,$}}),y.closeDocComment!==!1&&this.add("doc comment end","insertion",function(b,E,S,C,$){if(b==="doc-start"&&($===`
989
+ `+L+A,selection:[1,T.length,1,T.length]}}else m.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(b,E,S,C,$){var R=C.doc.getTextRange($);if(!$.isMultiLine()&&R=="{"){a(S);var x=C.doc.getLine($.start.row),k=x.substring($.end.column,$.end.column+1);if(k=="}")return $.end.column++,$;r.maybeInsertedBrackets--}}),this.add("parens","insertion",function(b,E,S,C,$){if($=="("){a(S);var R=S.getSelectionRange(),x=C.doc.getTextRange(R);if(x!==""&&S.getWrapBehavioursEnabled())return d(R,x,"(",")");if(m.isSaneInsertion(S,C))return m.recordAutoInsert(S,C,")"),{text:"()",selection:[1,1]}}else if($==")"){a(S);var k=S.getCursorPosition(),_=C.doc.getLine(k.row),v=_.substring(k.column,k.column+1);if(v==")"){var M=C.$findOpeningBracket(")",{column:k.column+1,row:k.row});if(M!==null&&m.isAutoInsertedClosing(k,_,$))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(b,E,S,C,$){var R=C.doc.getTextRange($);if(!$.isMultiLine()&&R=="("){a(S);var x=C.doc.getLine($.start.row),k=x.substring($.start.column+1,$.start.column+2);if(k==")")return $.end.column++,$}}),this.add("brackets","insertion",function(b,E,S,C,$){if($=="["){a(S);var R=S.getSelectionRange(),x=C.doc.getTextRange(R);if(x!==""&&S.getWrapBehavioursEnabled())return d(R,x,"[","]");if(m.isSaneInsertion(S,C))return m.recordAutoInsert(S,C,"]"),{text:"[]",selection:[1,1]}}else if($=="]"){a(S);var k=S.getCursorPosition(),_=C.doc.getLine(k.row),v=_.substring(k.column,k.column+1);if(v=="]"){var M=C.$findOpeningBracket("]",{column:k.column+1,row:k.row});if(M!==null&&m.isAutoInsertedClosing(k,_,$))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(b,E,S,C,$){var R=C.doc.getTextRange($);if(!$.isMultiLine()&&R=="["){a(S);var x=C.doc.getLine($.start.row),k=x.substring($.start.column+1,$.start.column+2);if(k=="]")return $.end.column++,$}}),this.add("string_dquotes","insertion",function(b,E,S,C,$){var R=C.$mode.$quotes||c;if($.length==1&&R[$]){if(this.lineCommentStart&&this.lineCommentStart.indexOf($)!=-1)return;a(S);var x=$,k=S.getSelectionRange(),_=C.doc.getTextRange(k);if(_!==""&&(_.length!=1||!R[_])&&S.getWrapBehavioursEnabled())return d(k,_,x,x);if(!_){var v=S.getCursorPosition(),M=C.doc.getLine(v.row),A=M.substring(v.column-1,v.column),w=M.substring(v.column,v.column+1),L=C.getTokenAt(v.row,v.column),T=C.getTokenAt(v.row,v.column+1);if(A=="\\"&&L&&/escape/.test(L.type))return null;var O=L&&/string|escape/.test(L.type),I=!T||/string|escape/.test(T.type),F;if(w==x)F=O!==I,F&&/string\.end/.test(T.type)&&(F=!1);else{if(O&&!I||O&&I)return null;var D=C.$mode.tokenRe;D.lastIndex=0;var W=D.test(A);D.lastIndex=0;var G=D.test(w),U=C.$mode.$pairQuotesAfter,H=U&&U[x]&&U[x].test(A);if(!H&&W||G||w&&!/[\s;,.})\]\\]/.test(w))return null;var X=M[v.column-2];if(A==x&&(X==x||D.test(X)))return null;F=!0}return{text:F?x+x:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(b,E,S,C,$){var R=C.$mode.$quotes||c,x=C.doc.getTextRange($);if(!$.isMultiLine()&&R.hasOwnProperty(x)){a(S);var k=C.doc.getLine($.start.row),_=k.substring($.start.column+1,$.start.column+2);if(_==x)return $.end.column++,$}}),y.closeDocComment!==!1&&this.add("doc comment end","insertion",function(b,E,S,C,$){if(b==="doc-start"&&($===`
988
990
  `||$===`\r
989
- `)&&S.selection.isEmpty()){var R=S.getCursorPosition(),x=C.doc.getLine(R.row),k=C.doc.getLine(R.row+1),_=this.$getIndent(x);if(/\s*\*/.test(k))return/^\s*\*/.test(x)?{text:$+_+"* ",selection:[1,3+_.length,1,3+_.length]}:{text:$+_+" * ",selection:[1,3+_.length,1,3+_.length]};if(/\/\*\*/.test(x.substring(0,R.column)))return{text:$+_+" * "+$+" "+_+"*/",selection:[1,4+_.length,1,4+_.length]}}})};m.isSaneInsertion=function(y,b){var E=y.getCursorPosition(),S=new g(b,E.row,E.column);if(!this.$matchTokenType(S.getCurrentToken()||"text",h)){if(/[)}\]]/.test(y.session.getLine(E.row)[E.column]))return!0;var C=new g(b,E.row,E.column+1);if(!this.$matchTokenType(C.getCurrentToken()||"text",h))return!1}return S.stepForward(),S.getCurrentTokenRow()!==E.row||this.$matchTokenType(S.getCurrentToken()||"text",o)},m.$matchTokenType=function(y,b){return b.indexOf(y.type||y)>-1},m.recordAutoInsert=function(y,b,E){var S=y.getCursorPosition(),C=b.doc.getLine(S.row);this.isAutoInsertedClosing(S,C,r.autoInsertedLineEnd[0])||(r.autoInsertedBrackets=0),r.autoInsertedRow=S.row,r.autoInsertedLineEnd=E+C.substr(S.column),r.autoInsertedBrackets++},m.recordMaybeInsert=function(y,b,E){var S=y.getCursorPosition(),C=b.doc.getLine(S.row);this.isMaybeInsertedClosing(S,C)||(r.maybeInsertedBrackets=0),r.maybeInsertedRow=S.row,r.maybeInsertedLineStart=C.substr(0,S.column)+E,r.maybeInsertedLineEnd=C.substr(S.column),r.maybeInsertedBrackets++},m.isAutoInsertedClosing=function(y,b,E){return r.autoInsertedBrackets>0&&y.row===r.autoInsertedRow&&E===r.autoInsertedLineEnd[0]&&b.substr(y.column)===r.autoInsertedLineEnd},m.isMaybeInsertedClosing=function(y,b){return r.maybeInsertedBrackets>0&&y.row===r.maybeInsertedRow&&b.substr(y.column)===r.maybeInsertedLineEnd&&b.substr(0,y.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,p),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],p=0,g=[],s=0;s<u.length;s+=2)g.push(p+=u[s]),u[s+1]&&g.push(45,p+=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"),p=n("../tokenizer").Tokenizer,g=n("./text_highlight_rules").TextHighlightRules,s=n("./behaviour/cstyle").CstyleBehaviour,h=n("../unicode"),o=n("../lib/lang"),r=n("../token_iterator").TokenIterator,l=n("../range").Range,c=function(){this.HighlightRules=g};(function(){this.$defaultBehaviour=new s,this.tokenRe=new RegExp("^["+h.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+h.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new p(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(a,f,m,y){var b=f.doc,E=!0,S=!0,C=1/0,$=f.getTabSize(),R=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var _=this.lineCommentStart.map(o.escapeRegExp).join("|"),x=this.lineCommentStart[0];else var _=o.escapeRegExp(this.lineCommentStart),x=this.lineCommentStart;_=new RegExp("^(\\s*)(?:"+_+") ?"),R=f.getUseSoftTabs();var A=function(G,U){var H=G.match(_);if(H){var X=H[1].length,J=H[0].length;!T(G,X,J)&&H[0][J-1]==" "&&J--,b.removeInLine(U,X,J)}},L=x+" ",M=function(G,U){(!E||/\S/.test(G))&&(T(G,C,C)?b.insertInLine({row:U,column:C},L):b.insertInLine({row:U,column:C},x))},w=function(G,U){return _.test(G)},T=function(G,U,H){for(var X=0;U--&&G.charAt(U)==" ";)X++;if(X%$!=0)return!1;for(var X=0;G.charAt(H++)==" ";)X++;return $>2?X%$!=$-1:X%$==0}}else{if(!this.blockComment)return!1;var x=this.blockComment.start,k=this.blockComment.end,_=new RegExp("^(\\s*)(?:"+o.escapeRegExp(x)+")"),v=new RegExp("(?:"+o.escapeRegExp(k)+")\\s*$"),M=function(F,D){w(F,D)||(!E||/\S/.test(F))&&(b.insertInLine({row:D,column:F.length},k),b.insertInLine({row:D,column:C},x))},A=function(F,D){var W;(W=F.match(v))&&b.removeInLine(D,F.length-W[0].length,F.length),(W=F.match(_))&&b.removeInLine(D,W[1].length,W[0].length)},w=function(F,D){if(_.test(F))return!0;for(var W=f.getTokens(D),G=0;G<W.length;G++)if(W[G].type==="comment")return!0}}function O(F){for(var D=m;D<=y;D++)F(b.getLine(D),D)}var I=1/0;O(function(F,D){var W=F.search(/\S/);W!==-1?(W<C&&(C=W),S&&!w(F,D)&&(S=!1)):I>F.length&&(I=F.length)}),C==1/0&&(C=I,E=!1,S=!1),R&&C%$!=0&&(C=Math.floor(C/$)*$),O(S?A:M)},this.toggleBlockComment=function(a,f,m,y){var b=this.blockComment;if(b){!b.start&&b[0]&&(b=b[0]);var E=new r(f,y.row,y.column),S=E.getCurrentToken();f.selection;var C=f.selection.toOrientedRange(),$,R;if(S&&/comment/.test(S.type)){for(var x,k;S&&/comment/.test(S.type);){var _=S.value.indexOf(b.start);if(_!=-1){var v=E.getCurrentTokenRow(),M=E.getCurrentTokenColumn()+_;x=new l(v,M,v,M+b.start.length);break}S=E.stepBackward()}for(var E=new r(f,y.row,y.column),S=E.getCurrentToken();S&&/comment/.test(S.type);){var _=S.value.indexOf(b.end);if(_!=-1){var v=E.getCurrentTokenRow(),M=E.getCurrentTokenColumn()+_;k=new l(v,M,v,M+b.end.length);break}S=E.stepForward()}k&&f.remove(k),x&&(f.remove(x),$=x.start.row,R=-b.start.length)}else R=b.start.length,$=m.start.row,f.insert(m.end,b.end),f.insert(m.start,b.start);C.start.row==$&&(C.start.column+=R),C.end.row==$&&(C.end.column+=R),f.selection.fromOrientedRange(C)}},this.getNextLineIndent=function(a,f,m){return this.$getIndent(f)},this.checkOutdent=function(a,f,m){return!1},this.autoOutdent=function(a,f,m){},this.$getIndent=function(a){return a.match(/^\s*/)[0]},this.createWorker=function(a){return null},this.createModeDelegates=function(a){this.$embeds=[],this.$modes={};for(var f in a)if(a[f]){var m=a[f],y=m.prototype.$id,b=u.$modes[y];b||(u.$modes[y]=b=new m),u.$modes[f]||(u.$modes[f]=b),this.$embeds.push(f),this.$modes[f]=b}for(var E=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],f=0;f<E.length;f++)(function(C){var $=E[f],R=C[$];C[E[f]]=function(){return this.$delegator($,arguments,R)}})(this)},this.$delegator=function(a,f,m){var y=f[0]||"start";if(typeof y!="string"){if(Array.isArray(y[2])){var b=y[2][y[2].length-1],E=this.$modes[b];if(E)return E[a].apply(E,[y[1]].concat([].slice.call(f,1)))}y=y[0]||"start"}for(var S=0;S<this.$embeds.length;S++)if(this.$modes[this.$embeds[S]]){var C=y.split(this.$embeds[S]);if(!C[0]&&C[1]){f[0]=C[1];var E=this.$modes[this.$embeds[S]];return E[a].apply(E,f)}}var $=m.apply(this,f);return m?$:void 0},this.transformAction=function(a,f,m,y,b){if(this.$behaviour){var E=this.$behaviour.getBehaviours();for(var S in E)if(E[S][f]){var C=E[S][f].apply(this,arguments);if(C)return C}}},this.getKeywords=function(a){if(!this.completionKeywords){var f=this.$tokenizer.rules,m=[];for(var y in f)for(var b=f[y],E=0,S=b.length;E<S;E++)if(typeof b[E].token=="string")/keyword|support|storage/.test(b[E].token)&&m.push(b[E].regex);else if(typeof b[E].token=="object"){for(var C=0,$=b[E].token.length;C<$;C++)if(/keyword|support|storage/.test(b[E].token[C])){var y=b[E].regex.match(/\(.+?\)/g)[C];m.push(y.substr(1,y.length-2))}}this.completionKeywords=m}return a?m.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(a,f,m,y){var b=this.$keywordList||this.$createKeywordList();return b.map(function(E){return{name:E,value:E,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,p,g){var s=p.start.row,h=p.start.column,o=u[s]||"";switch(p.action){case"insert":var r=p.lines;if(r.length===1)u[s]=o.substring(0,h)+p.lines[0]+o.substring(h);else{var l=[s,1].concat(p.lines);u.splice.apply(u,l),u[s]=o.substring(0,h)+u[s],u[s+p.lines.length-1]+=o.substring(h)}break;case"remove":var c=p.end.column,a=p.end.row;s===a?u[s]=o.substring(0,h)+o.substring(c):u.splice(s,a-s+1,o.substring(0,h)+u[a].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"),p=n("./lib/event_emitter").EventEmitter,g=function(){function o(r,l,c){this.$onChange=this.onChange.bind(this),this.attach(r),typeof c>"u"?this.setPosition(l.row,l.column):this.setPosition(l,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 l=h(r,{row:this.row,column:this.column},this.$insertRight);this.setPosition(l.row,l.column,!0)}},o.prototype.setPosition=function(r,l,c){var a;if(c?a={row:r,column:l}:a=this.$clipPositionToDocument(r,l),!(this.row==a.row&&this.column==a.column)){var f={row:this.row,column:this.column};this.row=a.row,this.column=a.column,this._signal("change",{old:f,value:a})}},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,l){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,l))),l<0&&(c.column=0),c},o}();g.prototype.$insertRight=!1,u.implement(g.prototype,p);function s(o,r,l){var c=l?o.column<=r.column:o.column<r.column;return o.row<r.row||o.row==r.row&&c}function h(o,r,l){var c=o.action=="insert",a=(c?1:-1)*(o.end.row-o.start.row),f=(c?1:-1)*(o.end.column-o.start.column),m=o.start,y=c?m:o.end;return s(r,m,l)?{row:r.row,column:r.column}:s(y,r,!l)?{row:r.row+a,column:r.column+(r.row==y.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"),p=n("./apply_delta").applyDelta,g=n("./lib/event_emitter").EventEmitter,s=n("./range").Range,h=n("./anchor").Anchor,o=function(){function r(l){this.$lines=[""],l.length===0?this.$lines=[""]:Array.isArray(l)?this.insertMergedLines({row:0,column:0},l):this.insert({row:0,column:0},l)}return r.prototype.setValue=function(l){var c=this.getLength()-1;this.remove(new s(0,0,c,this.getLine(c).length)),this.insert({row:0,column:0},l||"")},r.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},r.prototype.createAnchor=function(l,c){return new h(this,l,c)},r.prototype.$detectNewLine=function(l){var c=l.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=c?c[1]:`
991
+ `)&&S.selection.isEmpty()){var R=S.getCursorPosition(),x=C.doc.getLine(R.row),k=C.doc.getLine(R.row+1),_=this.$getIndent(x);if(/\s*\*/.test(k))return/^\s*\*/.test(x)?{text:$+_+"* ",selection:[1,3+_.length,1,3+_.length]}:{text:$+_+" * ",selection:[1,3+_.length,1,3+_.length]};if(/\/\*\*/.test(x.substring(0,R.column)))return{text:$+_+" * "+$+" "+_+"*/",selection:[1,4+_.length,1,4+_.length]}}})};m.isSaneInsertion=function(y,b){var E=y.getCursorPosition(),S=new g(b,E.row,E.column);if(!this.$matchTokenType(S.getCurrentToken()||"text",h)){if(/[)}\]]/.test(y.session.getLine(E.row)[E.column]))return!0;var C=new g(b,E.row,E.column+1);if(!this.$matchTokenType(C.getCurrentToken()||"text",h))return!1}return S.stepForward(),S.getCurrentTokenRow()!==E.row||this.$matchTokenType(S.getCurrentToken()||"text",o)},m.$matchTokenType=function(y,b){return b.indexOf(y.type||y)>-1},m.recordAutoInsert=function(y,b,E){var S=y.getCursorPosition(),C=b.doc.getLine(S.row);this.isAutoInsertedClosing(S,C,r.autoInsertedLineEnd[0])||(r.autoInsertedBrackets=0),r.autoInsertedRow=S.row,r.autoInsertedLineEnd=E+C.substr(S.column),r.autoInsertedBrackets++},m.recordMaybeInsert=function(y,b,E){var S=y.getCursorPosition(),C=b.doc.getLine(S.row);this.isMaybeInsertedClosing(S,C)||(r.maybeInsertedBrackets=0),r.maybeInsertedRow=S.row,r.maybeInsertedLineStart=C.substr(0,S.column)+E,r.maybeInsertedLineEnd=C.substr(S.column),r.maybeInsertedBrackets++},m.isAutoInsertedClosing=function(y,b,E){return r.autoInsertedBrackets>0&&y.row===r.autoInsertedRow&&E===r.autoInsertedLineEnd[0]&&b.substr(y.column)===r.autoInsertedLineEnd},m.isMaybeInsertedClosing=function(y,b){return r.maybeInsertedBrackets>0&&y.row===r.maybeInsertedRow&&b.substr(y.column)===r.maybeInsertedLineEnd&&b.substr(0,y.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,f),i.CstyleBehaviour=m}),ace.define("ace/unicode",["require","exports","module"],function(n,i,p){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],f=0,g=[],s=0;s<u.length;s+=2)g.push(f+=u[s]),u[s+1]&&g.push(45,f+=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,p){var u=n("../config"),f=n("../tokenizer").Tokenizer,g=n("./text_highlight_rules").TextHighlightRules,s=n("./behaviour/cstyle").CstyleBehaviour,h=n("../unicode"),o=n("../lib/lang"),r=n("../token_iterator").TokenIterator,l=n("../range").Range,c=function(){this.HighlightRules=g};(function(){this.$defaultBehaviour=new s,this.tokenRe=new RegExp("^["+h.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+h.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new f(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(a,d,m,y){var b=d.doc,E=!0,S=!0,C=1/0,$=d.getTabSize(),R=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var _=this.lineCommentStart.map(o.escapeRegExp).join("|"),x=this.lineCommentStart[0];else var _=o.escapeRegExp(this.lineCommentStart),x=this.lineCommentStart;_=new RegExp("^(\\s*)(?:"+_+") ?"),R=d.getUseSoftTabs();var A=function(G,U){var H=G.match(_);if(H){var X=H[1].length,J=H[0].length;!T(G,X,J)&&H[0][J-1]==" "&&J--,b.removeInLine(U,X,J)}},L=x+" ",M=function(G,U){(!E||/\S/.test(G))&&(T(G,C,C)?b.insertInLine({row:U,column:C},L):b.insertInLine({row:U,column:C},x))},w=function(G,U){return _.test(G)},T=function(G,U,H){for(var X=0;U--&&G.charAt(U)==" ";)X++;if(X%$!=0)return!1;for(var X=0;G.charAt(H++)==" ";)X++;return $>2?X%$!=$-1:X%$==0}}else{if(!this.blockComment)return!1;var x=this.blockComment.start,k=this.blockComment.end,_=new RegExp("^(\\s*)(?:"+o.escapeRegExp(x)+")"),v=new RegExp("(?:"+o.escapeRegExp(k)+")\\s*$"),M=function(F,D){w(F,D)||(!E||/\S/.test(F))&&(b.insertInLine({row:D,column:F.length},k),b.insertInLine({row:D,column:C},x))},A=function(F,D){var W;(W=F.match(v))&&b.removeInLine(D,F.length-W[0].length,F.length),(W=F.match(_))&&b.removeInLine(D,W[1].length,W[0].length)},w=function(F,D){if(_.test(F))return!0;for(var W=d.getTokens(D),G=0;G<W.length;G++)if(W[G].type==="comment")return!0}}function O(F){for(var D=m;D<=y;D++)F(b.getLine(D),D)}var I=1/0;O(function(F,D){var W=F.search(/\S/);W!==-1?(W<C&&(C=W),S&&!w(F,D)&&(S=!1)):I>F.length&&(I=F.length)}),C==1/0&&(C=I,E=!1,S=!1),R&&C%$!=0&&(C=Math.floor(C/$)*$),O(S?A:M)},this.toggleBlockComment=function(a,d,m,y){var b=this.blockComment;if(b){!b.start&&b[0]&&(b=b[0]);var E=new r(d,y.row,y.column),S=E.getCurrentToken();d.selection;var C=d.selection.toOrientedRange(),$,R;if(S&&/comment/.test(S.type)){for(var x,k;S&&/comment/.test(S.type);){var _=S.value.indexOf(b.start);if(_!=-1){var v=E.getCurrentTokenRow(),M=E.getCurrentTokenColumn()+_;x=new l(v,M,v,M+b.start.length);break}S=E.stepBackward()}for(var E=new r(d,y.row,y.column),S=E.getCurrentToken();S&&/comment/.test(S.type);){var _=S.value.indexOf(b.end);if(_!=-1){var v=E.getCurrentTokenRow(),M=E.getCurrentTokenColumn()+_;k=new l(v,M,v,M+b.end.length);break}S=E.stepForward()}k&&d.remove(k),x&&(d.remove(x),$=x.start.row,R=-b.start.length)}else R=b.start.length,$=m.start.row,d.insert(m.end,b.end),d.insert(m.start,b.start);C.start.row==$&&(C.start.column+=R),C.end.row==$&&(C.end.column+=R),d.selection.fromOrientedRange(C)}},this.getNextLineIndent=function(a,d,m){return this.$getIndent(d)},this.checkOutdent=function(a,d,m){return!1},this.autoOutdent=function(a,d,m){},this.$getIndent=function(a){return a.match(/^\s*/)[0]},this.createWorker=function(a){return null},this.createModeDelegates=function(a){this.$embeds=[],this.$modes={};for(var d in a)if(a[d]){var m=a[d],y=m.prototype.$id,b=u.$modes[y];b||(u.$modes[y]=b=new m),u.$modes[d]||(u.$modes[d]=b),this.$embeds.push(d),this.$modes[d]=b}for(var E=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],d=0;d<E.length;d++)(function(C){var $=E[d],R=C[$];C[E[d]]=function(){return this.$delegator($,arguments,R)}})(this)},this.$delegator=function(a,d,m){var y=d[0]||"start";if(typeof y!="string"){if(Array.isArray(y[2])){var b=y[2][y[2].length-1],E=this.$modes[b];if(E)return E[a].apply(E,[y[1]].concat([].slice.call(d,1)))}y=y[0]||"start"}for(var S=0;S<this.$embeds.length;S++)if(this.$modes[this.$embeds[S]]){var C=y.split(this.$embeds[S]);if(!C[0]&&C[1]){d[0]=C[1];var E=this.$modes[this.$embeds[S]];return E[a].apply(E,d)}}var $=m.apply(this,d);return m?$:void 0},this.transformAction=function(a,d,m,y,b){if(this.$behaviour){var E=this.$behaviour.getBehaviours();for(var S in E)if(E[S][d]){var C=E[S][d].apply(this,arguments);if(C)return C}}},this.getKeywords=function(a){if(!this.completionKeywords){var d=this.$tokenizer.rules,m=[];for(var y in d)for(var b=d[y],E=0,S=b.length;E<S;E++)if(typeof b[E].token=="string")/keyword|support|storage/.test(b[E].token)&&m.push(b[E].regex);else if(typeof b[E].token=="object"){for(var C=0,$=b[E].token.length;C<$;C++)if(/keyword|support|storage/.test(b[E].token[C])){var y=b[E].regex.match(/\(.+?\)/g)[C];m.push(y.substr(1,y.length-2))}}this.completionKeywords=m}return a?m.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(a,d,m,y){var b=this.$keywordList||this.$createKeywordList();return b.map(function(E){return{name:E,value:E,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,p){i.applyDelta=function(u,f,g){var s=f.start.row,h=f.start.column,o=u[s]||"";switch(f.action){case"insert":var r=f.lines;if(r.length===1)u[s]=o.substring(0,h)+f.lines[0]+o.substring(h);else{var l=[s,1].concat(f.lines);u.splice.apply(u,l),u[s]=o.substring(0,h)+u[s],u[s+f.lines.length-1]+=o.substring(h)}break;case"remove":var c=f.end.column,a=f.end.row;s===a?u[s]=o.substring(0,h)+o.substring(c):u.splice(s,a-s+1,o.substring(0,h)+u[a].substring(c));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(n,i,p){var u=n("./lib/oop"),f=n("./lib/event_emitter").EventEmitter,g=function(){function o(r,l,c){this.$onChange=this.onChange.bind(this),this.attach(r),typeof c>"u"?this.setPosition(l.row,l.column):this.setPosition(l,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 l=h(r,{row:this.row,column:this.column},this.$insertRight);this.setPosition(l.row,l.column,!0)}},o.prototype.setPosition=function(r,l,c){var a;if(c?a={row:r,column:l}:a=this.$clipPositionToDocument(r,l),!(this.row==a.row&&this.column==a.column)){var d={row:this.row,column:this.column};this.row=a.row,this.column=a.column,this._signal("change",{old:d,value:a})}},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,l){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,l))),l<0&&(c.column=0),c},o}();g.prototype.$insertRight=!1,u.implement(g.prototype,f);function s(o,r,l){var c=l?o.column<=r.column:o.column<r.column;return o.row<r.row||o.row==r.row&&c}function h(o,r,l){var c=o.action=="insert",a=(c?1:-1)*(o.end.row-o.start.row),d=(c?1:-1)*(o.end.column-o.start.column),m=o.start,y=c?m:o.end;return s(r,m,l)?{row:r.row,column:r.column}:s(y,r,!l)?{row:r.row+a,column:r.column+(r.row==y.row?d: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,p){var u=n("./lib/oop"),f=n("./apply_delta").applyDelta,g=n("./lib/event_emitter").EventEmitter,s=n("./range").Range,h=n("./anchor").Anchor,o=function(){function r(l){this.$lines=[""],l.length===0?this.$lines=[""]:Array.isArray(l)?this.insertMergedLines({row:0,column:0},l):this.insert({row:0,column:0},l)}return r.prototype.setValue=function(l){var c=this.getLength()-1;this.remove(new s(0,0,c,this.getLine(c).length)),this.insert({row:0,column:0},l||"")},r.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},r.prototype.createAnchor=function(l,c){return new h(this,l,c)},r.prototype.$detectNewLine=function(l){var c=l.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=c?c[1]:`
990
992
  `,this._signal("changeNewLineMode")},r.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
991
993
  `;case"unix":return`
992
994
  `;default:return this.$autoNewLine||`
993
995
  `}},r.prototype.setNewLineMode=function(l){this.$newLineMode!==l&&(this.$newLineMode=l,this._signal("changeNewLineMode"))},r.prototype.getNewLineMode=function(){return this.$newLineMode},r.prototype.isNewLine=function(l){return l==`\r
994
996
  `||l=="\r"||l==`
995
- `},r.prototype.getLine=function(l){return this.$lines[l]||""},r.prototype.getLines=function(l,c){return this.$lines.slice(l,c+1)},r.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},r.prototype.getLength=function(){return this.$lines.length},r.prototype.getTextRange=function(l){return this.getLinesForRange(l).join(this.getNewLineCharacter())},r.prototype.getLinesForRange=function(l){var c;if(l.start.row===l.end.row)c=[this.getLine(l.start.row).substring(l.start.column,l.end.column)];else{c=this.getLines(l.start.row,l.end.row),c[0]=(c[0]||"").substring(l.start.column);var a=c.length-1;l.end.row-l.start.row==a&&(c[a]=c[a].substring(0,l.end.column))}return c},r.prototype.insertLines=function(l,c){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(l,c)},r.prototype.removeLines=function(l,c){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(l,c)},r.prototype.insertNewLine=function(l){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(l,["",""])},r.prototype.insert=function(l,c){return this.getLength()<=1&&this.$detectNewLine(c),this.insertMergedLines(l,this.$split(c))},r.prototype.insertInLine=function(l,c){var a=this.clippedPos(l.row,l.column),f=this.pos(l.row,l.column+c.length);return this.applyDelta({start:a,end:f,action:"insert",lines:[c]},!0),this.clonePos(f)},r.prototype.clippedPos=function(l,c){var a=this.getLength();l===void 0?l=a:l<0?l=0:l>=a&&(l=a-1,c=void 0);var f=this.getLine(l);return c==null&&(c=f.length),c=Math.min(Math.max(c,0),f.length),{row:l,column:c}},r.prototype.clonePos=function(l){return{row:l.row,column:l.column}},r.prototype.pos=function(l,c){return{row:l,column:c}},r.prototype.$clipPosition=function(l){var c=this.getLength();return l.row>=c?(l.row=Math.max(0,c-1),l.column=this.getLine(c-1).length):(l.row=Math.max(0,l.row),l.column=Math.min(Math.max(l.column,0),this.getLine(l.row).length)),l},r.prototype.insertFullLines=function(l,c){l=Math.min(Math.max(l,0),this.getLength());var a=0;l<this.getLength()?(c=c.concat([""]),a=0):(c=[""].concat(c),l--,a=this.$lines[l].length),this.insertMergedLines({row:l,column:a},c)},r.prototype.insertMergedLines=function(l,c){var a=this.clippedPos(l.row,l.column),f={row:a.row+c.length-1,column:(c.length==1?a.column:0)+c[c.length-1].length};return this.applyDelta({start:a,end:f,action:"insert",lines:c}),this.clonePos(f)},r.prototype.remove=function(l){var c=this.clippedPos(l.start.row,l.start.column),a=this.clippedPos(l.end.row,l.end.column);return this.applyDelta({start:c,end:a,action:"remove",lines:this.getLinesForRange({start:c,end:a})}),this.clonePos(c)},r.prototype.removeInLine=function(l,c,a){var f=this.clippedPos(l,c),m=this.clippedPos(l,a);return this.applyDelta({start:f,end:m,action:"remove",lines:this.getLinesForRange({start:f,end:m})},!0),this.clonePos(f)},r.prototype.removeFullLines=function(l,c){l=Math.min(Math.max(0,l),this.getLength()-1),c=Math.min(Math.max(0,c),this.getLength()-1);var a=c==this.getLength()-1&&l>0,f=c<this.getLength()-1,m=a?l-1:l,y=a?this.getLine(m).length:0,b=f?c+1:c,E=f?0:this.getLine(b).length,S=new s(m,y,b,E),C=this.$lines.slice(l,c+1);return this.applyDelta({start:S.start,end:S.end,action:"remove",lines:this.getLinesForRange(S)}),C},r.prototype.removeNewLine=function(l){l<this.getLength()-1&&l>=0&&this.applyDelta({start:this.pos(l,this.getLine(l).length),end:this.pos(l+1,0),action:"remove",lines:["",""]})},r.prototype.replace=function(l,c){if(l instanceof s||(l=s.fromPoints(l.start,l.end)),c.length===0&&l.isEmpty())return l.start;if(c==this.getTextRange(l))return l.end;this.remove(l);var a;return c?a=this.insert(l.start,c):a=l.start,a},r.prototype.applyDeltas=function(l){for(var c=0;c<l.length;c++)this.applyDelta(l[c])},r.prototype.revertDeltas=function(l){for(var c=l.length-1;c>=0;c--)this.revertDelta(l[c])},r.prototype.applyDelta=function(l,c){var a=l.action=="insert";(a?l.lines.length<=1&&!l.lines[0]:!s.comparePoints(l.start,l.end))||(a&&l.lines.length>2e4?this.$splitAndapplyLargeDelta(l,2e4):(p(this.$lines,l,c),this._signal("change",l)))},r.prototype.$safeApplyDelta=function(l){var c=this.$lines.length;(l.action=="remove"&&l.start.row<c&&l.end.row<c||l.action=="insert"&&l.start.row<=c)&&this.applyDelta(l)},r.prototype.$splitAndapplyLargeDelta=function(l,c){for(var a=l.lines,f=a.length-c+1,m=l.start.row,y=l.start.column,b=0,E=0;b<f;b=E){E+=c-1;var S=a.slice(b,E);S.push(""),this.applyDelta({start:this.pos(m+b,y),end:this.pos(m+E,y=0),action:l.action,lines:S},!0)}l.lines=a.slice(b),l.start.row=m+b,l.start.column=y,this.applyDelta(l,!0)},r.prototype.revertDelta=function(l){this.$safeApplyDelta({start:this.clonePos(l.start),end:this.clonePos(l.end),action:l.action=="insert"?"remove":"insert",lines:l.lines.slice()})},r.prototype.indexToPosition=function(l,c){for(var a=this.$lines||this.getAllLines(),f=this.getNewLineCharacter().length,m=c||0,y=a.length;m<y;m++)if(l-=a[m].length+f,l<0)return{row:m,column:l+a[m].length+f};return{row:y-1,column:l+a[y-1].length+f}},r.prototype.positionToIndex=function(l,c){for(var a=this.$lines||this.getAllLines(),f=this.getNewLineCharacter().length,m=0,y=Math.min(l.row,a.length),b=c||0;b<y;++b)m+=a[b].length+f;return m+l.column},r.prototype.$split=function(l){return l.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"),p=n("./lib/event_emitter").EventEmitter,g=function(){function s(h,o){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=h;var r=this;this.$worker=function(){if(r.running){for(var l=new Date,c=r.currentLine,a=-1,f=r.doc,m=c;r.lines[c];)c++;var y=f.getLength(),b=0;for(r.running=!1;c<y;){r.$tokenizeRow(c),a=c;do c++;while(r.lines[c]);if(b++,b%5===0&&new Date-l>20){r.running=setTimeout(r.$worker,20);break}}r.currentLine=c,a==-1&&(a=c),m<=a&&r.fireUpdateEvent(m,a)}}}return s.prototype.setTokenizer=function(h){this.tokenizer=h,this.lines=[],this.states=[],this.start(0)},s.prototype.setDocument=function(h){this.doc=h,this.lines=[],this.states=[],this.stop()},s.prototype.fireUpdateEvent=function(h,o){var r={first:h,last:o};this._signal("update",{data:r})},s.prototype.start=function(h){this.currentLine=Math.min(h||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(h){var o=h.start.row,r=h.end.row-o;if(r===0)this.lines[o]=null;else if(h.action=="remove")this.lines.splice(o,r+1,null),this.states.splice(o,r+1,null);else{var l=Array(r+1);l.unshift(o,1),this.lines.splice.apply(this.lines,l),this.states.splice.apply(this.states,l)}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(h){return this.lines[h]||this.$tokenizeRow(h)},s.prototype.getState=function(h){return this.currentLine==h&&this.$tokenizeRow(h),this.states[h]||"start"},s.prototype.$tokenizeRow=function(h){var o=this.doc.getLine(h),r=this.states[h-1],l=this.tokenizer.getLineTokens(o,r,h);return this.states[h]+""!=l.state+""?(this.states[h]=l.state,this.lines[h+1]=null,this.currentLine>h+1&&(this.currentLine=h+1)):this.currentLine==h&&(this.currentLine=h+1),this.lines[h]=l.tokens},s.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},s}();u.implement(g.prototype,p),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"),p=n("./range").Range,g=function(){function s(h,o,r){r===void 0&&(r="text"),this.setRegexp(h),this.clazz=o,this.type=r}return s.prototype.setRegexp=function(h){this.regExp+""!=h+""&&(this.regExp=h,this.cache=[])},s.prototype.update=function(h,o,r,l){if(this.regExp)for(var c=l.firstRow,a=l.lastRow,f={},m=c;m<=a;m++){var y=this.cache[m];y==null&&(y=u.getMatchOffsets(r.getLine(m),this.regExp),y.length>this.MAX_RANGES&&(y=y.slice(0,this.MAX_RANGES)),y=y.map(function(C){return new p(m,C.offset,m,C.offset+C.length)}),this.cache[m]=y.length?y:"");for(var b=y.length;b--;){var E=y[b].toScreenRange(r),S=E.toString();f[S]||(f[S]=!0,o.drawSingleLineMarker(h,E,this.clazz,l))}}},s}();g.prototype.MAX_RANGES=500,i.SearchHighlight=g}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(n,i,d){var u=n("../range").Range,p=function(){function g(s,h){this.foldData=s,Array.isArray(h)?this.folds=h:h=this.folds=[h];var o=h[h.length-1];this.range=new u(h[0].start.row,h[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(h){h.start.row+=s,h.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(h,o){return-h.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,h,o){var r=0,l=this.folds,c,a,f,m=!0;h==null&&(h=this.end.row,o=this.end.column);for(var y=0;y<l.length;y++){if(c=l[y],a=c.range.compareStart(h,o),a==-1){s(null,h,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||a===0)return;m=!c.sameRow,r=c.end.column}s(null,h,o,r,m)},g.prototype.getNextFoldTo=function(s,h){for(var o,r,l=0;l<this.folds.length;l++){if(o=this.folds[l],r=o.range.compareEnd(s,h),r==-1)return{fold:o,kind:"after"};if(r===0)return{fold:o,kind:"inside"}}return null},g.prototype.addRemoveChars=function(s,h,o){var r=this.getNextFoldTo(s,h),l,c;if(r){if(l=r.fold,r.kind=="inside"&&l.start.column!=h&&l.start.row!=s)window.console&&window.console.log(s,h,l);else if(l.start.row==s){c=this.folds;var a=c.indexOf(l);for(a===0&&(this.start.column+=o),a;a<c.length;a++){if(l=c[a],l.start.column+=o,!l.sameRow)return;l.end.column+=o}this.end.column+=o}}},g.prototype.split=function(s,h){var o=this.getNextFoldTo(s,h);if(!o||o.kind=="inside")return null;var r=o.fold,l=this.folds,c=this.foldData,a=l.indexOf(r),f=l[a-1];this.end.row=f.end.row,this.end.column=f.end.column,l=l.splice(a,l.length-a);var m=new g(c,l);return c.splice(c.indexOf(this)+1,0,m),m},g.prototype.merge=function(s){for(var h=s.folds,o=0;o<h.length;o++)this.addFold(h[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(h){s.push(" "+h.toString())}),s.push("]"),s.join(`
996
- `)},g.prototype.idxToPosition=function(s){for(var h=0,o=0;o<this.folds.length;o++){var r=this.folds[o];if(s-=r.start.column-h,s<0)return{row:r.start.row,column:r.start.column+s};if(s-=r.placeholder.length,s<0)return r.start;h=r.end.column}return{row:this.end.row,column:this.end.column+s}},g}();i.FoldLine=p}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(n,i,d){var u=n("./range").Range,p=u.comparePoints,g=function(){function s(){this.ranges=[],this.$bias=1}return s.prototype.pointIndex=function(h,o,r){for(var l=this.ranges,c=r||0;c<l.length;c++){var a=l[c],f=p(h,a.end);if(!(f>0)){var m=p(h,a.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(h){var o=!h.isEmpty(),r=this.pointIndex(h.start,o);r<0&&(r=-r-1);var l=this.pointIndex(h.end,o,r);return l<0?l=-l-1:l++,this.ranges.splice(r,l-r,h)},s.prototype.addList=function(h){for(var o=[],r=h.length;r--;)o.push.apply(o,this.add(h[r]));return o},s.prototype.substractPoint=function(h){var o=this.pointIndex(h);if(o>=0)return this.ranges.splice(o,1)},s.prototype.merge=function(){var h=[],o=this.ranges;o=o.sort(function(f,m){return p(f.start,m.start)});for(var r=o[0],l,c=1;c<o.length;c++){l=r,r=o[c];var a=p(l.end,r.start);a<0||a==0&&!l.isEmpty()&&!r.isEmpty()||(p(l.end,r.end)<0&&(l.end.row=r.end.row,l.end.column=r.end.column),o.splice(c,1),h.push(r),r=l,c--)}return this.ranges=o,h},s.prototype.contains=function(h,o){return this.pointIndex({row:h,column:o})>=0},s.prototype.containsPoint=function(h){return this.pointIndex(h)>=0},s.prototype.rangeAtPoint=function(h){var o=this.pointIndex(h);if(o>=0)return this.ranges[o]},s.prototype.clipRows=function(h,o){var r=this.ranges;if(r[0].start.row>o||r[r.length-1].start.row<h)return[];var l=this.pointIndex({row:h,column:0});l<0&&(l=-l-1);var c=this.pointIndex({row:o,column:0},l);c<0&&(c=-c-1);for(var a=[],f=l;f<c;f++)a.push(r[f]);return a},s.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},s.prototype.attach=function(h){this.session&&this.detach(),this.session=h,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(h){for(var o=h.start,r=h.end,l=o.row,c=r.row,a=this.ranges,f=0,m=a.length;f<m;f++){var y=a[f];if(y.end.row>=l)break}if(h.action=="insert")for(var b=c-l,E=-o.column+r.column;f<m;f++){var y=a[f];if(y.start.row>l)break;if(y.start.row==l&&y.start.column>=o.column&&(y.start.column==o.column&&this.$bias<=0||(y.start.column+=E,y.start.row+=b)),y.end.row==l&&y.end.column>=o.column){if(y.end.column==o.column&&this.$bias<0)continue;y.end.column==o.column&&E>0&&f<m-1&&y.end.column>y.start.column&&y.end.column==a[f+1].start.column&&(y.end.column-=E),y.end.column+=E,y.end.row+=b}}else for(var b=l-c,E=o.column-r.column;f<m;f++){var y=a[f];if(y.start.row>c)break;y.end.row<c&&(l<y.end.row||l==y.end.row&&o.column<y.end.column)?(y.end.row=l,y.end.column=o.column):y.end.row==c?y.end.column<=r.column?(b||y.end.column>o.column)&&(y.end.column=o.column,y.end.row=o.row):(y.end.column+=E,y.end.row+=b):y.end.row>c&&(y.end.row+=b),y.start.row<c&&(l<y.start.row||l==y.start.row&&o.column<y.start.column)?(y.start.row=l,y.start.column=o.column):y.start.row==c?y.start.column<=r.column?(b||y.start.column>o.column)&&(y.start.column=o.column,y.start.row=o.row):(y.start.column+=E,y.start.row+=b):y.start.row>c&&(y.start.row+=b)}if(b!=0&&f<m)for(;f<m;f++){var y=a[f];y.start.row+=b,y.end.row+=b}},s}();g.prototype.comparePoints=p,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 l=function(c,a){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var y in m)Object.prototype.hasOwnProperty.call(m,y)&&(f[y]=m[y])},l(c,a)};return function(c,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");l(c,a);function f(){this.constructor=c}c.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),p=n("../range_list").RangeList,g=function(l){u(c,l);function c(a,f){var m=l.call(this)||this;return m.foldLine=null,m.placeholder=f,m.range=a,m.start=a.start,m.end=a.end,m.sameRow=a.start.row==a.end.row,m.subFolds=m.ranges=[],m}return c.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},c.prototype.setFoldLine=function(a){this.foldLine=a,this.subFolds.forEach(function(f){f.setFoldLine(a)})},c.prototype.clone=function(){var a=this.range.clone(),f=new c(a,this.placeholder);return this.subFolds.forEach(function(m){f.subFolds.push(m.clone())}),f.collapseChildren=this.collapseChildren,f},c.prototype.addSubFold=function(a){if(!this.range.isEqual(a)){h(a,this.start);for(var E=a.start.row,S=a.start.column,f=0,m=-1;f<this.subFolds.length&&(m=this.subFolds[f].range.compare(E,S),m==1);f++);var y=this.subFolds[f],b=0;if(m==0){if(y.range.containsRange(a))return y.addSubFold(a);b=1}for(var E=a.range.end.row,S=a.range.end.column,C=f,m=-1;C<this.subFolds.length&&(m=this.subFolds[C].range.compare(E,S),m==1);C++);m==0&&C++;for(var $=this.subFolds.splice(f,C-f,a),R=m==0?$.length-1:$.length,x=b;x<R;x++)a.addSubFold($[x]);return a.setFoldLine(this.foldLine),a}},c.prototype.restoreRange=function(a){return r(a,this.start)},c}(p);function s(l,c){l.row-=c.row,l.row==0&&(l.column-=c.column)}function h(l,c){s(l.start,c),s(l.end,c)}function o(l,c){l.row==0&&(l.column+=c.column),l.row+=c.row}function r(l,c){o(l.start,c),o(l.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,p=n("./fold_line").FoldLine,g=n("./fold").Fold,s=n("../token_iterator").TokenIterator,h=n("../mouse/mouse_event").MouseEvent;function o(){this.getFoldAt=function(r,l,c){var a=this.getFoldLine(r);if(!a)return null;for(var f=a.folds,m=0;m<f.length;m++){var y=f[m].range;if(y.contains(r,l)){if(c==1&&y.isEnd(r,l)&&!y.isEmpty())continue;if(c==-1&&y.isStart(r,l)&&!y.isEmpty())continue;return f[m]}}},this.getFoldsInRange=function(r){var l=r.start,c=r.end,a=this.$foldData,f=[];l.column+=1,c.column-=1;for(var m=0;m<a.length;m++){var y=a[m].range.compareRange(r);if(y!=2){if(y==-2)break;for(var b=a[m].folds,E=0;E<b.length;E++){var S=b[E];if(y=S.range.compareRange(r),y==-2)break;if(y==2)continue;if(y==42)break;f.push(S)}}}return l.column-=1,c.column+=1,f},this.getFoldsInRangeList=function(r){if(Array.isArray(r)){var l=[];r.forEach(function(c){l=l.concat(this.getFoldsInRange(c))},this)}else var l=this.getFoldsInRange(r);return l},this.getAllFolds=function(){for(var r=[],l=this.$foldData,c=0;c<l.length;c++)for(var a=0;a<l[c].folds.length;a++)r.push(l[c].folds[a]);return r},this.getFoldStringAt=function(r,l,c,a){if(a=a||this.getFoldLine(r),!a)return null;for(var f={end:{column:0}},m,y,b=0;b<a.folds.length;b++){y=a.folds[b];var E=y.range.compareEnd(r,l);if(E==-1){m=this.getLine(y.start.row).substring(f.end.column,y.start.column);break}else if(E===0)return null;f=y}return m||(m=this.getLine(y.start.row).substring(f.end.column)),c==-1?m.substring(0,l-f.end.column):c==1?m.substring(l-f.end.column):m},this.getFoldLine=function(r,l){var c=this.$foldData,a=0;for(l&&(a=c.indexOf(l)),a==-1&&(a=0),a;a<c.length;a++){var f=c[a];if(f.start.row<=r&&f.end.row>=r)return f;if(f.end.row>r)return null}return null},this.getNextFoldLine=function(r,l){var c=this.$foldData,a=0;for(l&&(a=c.indexOf(l)),a==-1&&(a=0),a;a<c.length;a++){var f=c[a];if(f.end.row>=r)return f}return null},this.getFoldedRowCount=function(r,l){for(var c=this.$foldData,a=l-r+1,f=0;f<c.length;f++){var m=c[f],y=m.end.row,b=m.start.row;if(y>=l){b<l&&(b>=r?a-=l-b:a=0);break}else y>=r&&(b>=r?a-=y-b:a-=y-r+1)}return a},this.$addFoldLine=function(r){return this.$foldData.push(r),this.$foldData.sort(function(l,c){return l.start.row-c.start.row}),r},this.addFold=function(r,l){var c=this.$foldData,a=!1,f;r instanceof g?f=r:(f=new g(l,r),f.collapseChildren=l.collapseChildren),this.$clipRangeToDocument(f.range);var m=f.start.row,y=f.start.column,b=f.end.row,E=f.end.column,S=this.getFoldAt(m,y,1),C=this.getFoldAt(b,E,-1);if(S&&C==S)return S.addSubFold(f);S&&!S.range.isStart(m,y)&&this.removeFold(S),C&&!C.range.isEnd(b,E)&&this.removeFold(C);var $=this.getFoldsInRange(f.range);$.length>0&&(this.removeFolds($),f.collapseChildren||$.forEach(function(_){f.addSubFold(_)}));for(var R=0;R<c.length;R++){var x=c[R];if(b==x.start.row){x.addFold(f),a=!0;break}else if(m==x.end.row){if(x.addFold(f),a=!0,!f.sameRow){var k=c[R+1];if(k&&k.start.row==b){x.merge(k);break}}break}else if(b<=x.start.row)break}return a||(x=this.$addFoldLine(new p(this.$foldData,f))),this.$useWrapMode?this.$updateWrapData(x.start.row,x.start.row):this.$updateRowLengthCache(x.start.row,x.start.row),this.$modified=!0,this._signal("changeFold",{data:f,action:"add"}),f},this.addFolds=function(r){r.forEach(function(l){this.addFold(l)},this)},this.removeFold=function(r){var l=r.foldLine,c=l.start.row,a=l.end.row,f=this.$foldData,m=l.folds;if(m.length==1)f.splice(f.indexOf(l),1);else if(l.range.isEnd(r.end.row,r.end.column))m.pop(),l.end.row=m[m.length-1].end.row,l.end.column=m[m.length-1].end.column;else if(l.range.isStart(r.start.row,r.start.column))m.shift(),l.start.row=m[0].start.row,l.start.column=m[0].start.column;else if(r.sameRow)m.splice(m.indexOf(r),1);else{var y=l.split(r.start.row,r.start.column);m=y.folds,m.shift(),y.start.row=m[0].start.row,y.start.column=m[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(c,a):this.$updateRowLengthCache(c,a)),this.$modified=!0,this._signal("changeFold",{data:r,action:"remove"})},this.removeFolds=function(r){for(var l=[],c=0;c<r.length;c++)l.push(r[c]);l.forEach(function(a){this.removeFold(a)},this),this.$modified=!0},this.expandFold=function(r){this.removeFold(r),r.subFolds.forEach(function(l){r.restoreRange(l),this.addFold(l)},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(l){this.expandFold(l)},this)},this.unfold=function(r,l){var c,a;if(r==null)c=new u(0,0,this.getLength(),0),l==null&&(l=!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 a=[],r.forEach(function(m){a=a.concat(this.unfold(m))},this),a;c=r}a=this.getFoldsInRangeList(c);for(var f=a;a.length==1&&u.comparePoints(a[0].start,c.start)<0&&u.comparePoints(a[0].end,c.end)>0;)this.expandFolds(a),a=this.getFoldsInRangeList(c);if(l!=!1?this.removeFolds(a):this.expandFolds(a),f.length)return f},this.isRowFolded=function(r,l){return!!this.getFoldLine(r,l)},this.getRowFoldEnd=function(r,l){var c=this.getFoldLine(r,l);return c?c.end.row:r},this.getRowFoldStart=function(r,l){var c=this.getFoldLine(r,l);return c?c.start.row:r},this.getFoldDisplayLine=function(r,l,c,a,f){a==null&&(a=r.start.row),f==null&&(f=0),l==null&&(l=r.end.row),c==null&&(c=this.getLine(l).length);var m=this.doc,y="";return r.walk(function(b,E,S,C){if(!(E<a)){if(E==a){if(S<f)return;C=Math.max(f,C)}b!=null?y+=b:y+=m.getLine(E).substring(C,S)}},l,c),y},this.getDisplayLine=function(r,l,c,a){var f=this.getFoldLine(r);if(f)return this.getFoldDisplayLine(f,r,l,c,a);var m;return m=this.doc.getLine(r),m.substring(a||0,l||m.length)},this.$cloneFoldData=function(){var r=[];return r=this.$foldData.map(function(l){var c=l.folds.map(function(a){return a.clone()});return new p(r,c)}),r},this.toggleFold=function(r){var l=this.selection,c=l.getRange(),a,f;if(c.isEmpty()){var m=c.start;if(a=this.getFoldAt(m.row,m.column),a){this.expandFold(a);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 y=this.getFoldsInRange(c);if(r&&y.length){this.expandFolds(y);return}else y.length==1&&(a=y[0])}if(a||(a=this.getFoldAt(c.start.row,c.start.column)),a&&a.range.toString()==c.toString()){this.expandFold(a);return}var b="...";if(!c.isMultiLine()){if(b=this.getTextRange(c),b.length<4)return;b=b.trim().substring(0,2)+".."}this.addFold(b,c)},this.getCommentFoldRange=function(r,l,c){var a=new s(this,r,l),f=a.getCurrentToken(),m=f&&f.type;if(f&&/^comment|string/.test(m)){m=m.match(/comment|string/)[0],m=="comment"&&(m+="|doc-start|\\.doc");var y=new RegExp(m),b=new u;if(c!=1){do f=a.stepBackward();while(f&&y.test(f.type)&&!/^comment.end/.test(f.type));f=a.stepForward()}if(b.start.row=a.getCurrentTokenRow(),b.start.column=a.getCurrentTokenColumn()+(/^comment.start/.test(f.type)?f.value.length:2),a=new s(this,r,l),c!=-1){var E=-1;do if(f=a.stepForward(),E==-1){var S=this.getState(a.$row);y.test(S)||(E=a.$row)}else if(a.$row>E)break;while(f&&y.test(f.type)&&!/^comment.start/.test(f.type));f=a.stepBackward()}else f=a.getCurrentToken();return b.end.row=a.getCurrentTokenRow(),b.end.column=a.getCurrentTokenColumn(),/^comment.end/.test(f.type)||(b.end.column+=f.value.length-2),b}},this.foldAll=function(r,l,c,a){c==null&&(c=1e5);var f=this.foldWidgets;if(f){l=l||this.getLength(),r=r||0;for(var m=r;m<l;m++)if(f[m]==null&&(f[m]=this.getFoldWidget(m)),f[m]=="start"&&!(a&&!a(m))){var y=this.getFoldWidgetRange(m);y&&y.isMultiLine()&&y.end.row<=l&&y.start.row>=r&&(m=y.end.row,y.collapseChildren=c,this.addFold("...",y))}}},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(l){for(var c=r.getTokens(l),a=0;a<c.length;a++){var f=c[a];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 l=this.$foldMode;this.$setFolding(null),this.$setFolding(l)}},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,l){var c=this.foldWidgets;if(!c||l&&c[r])return{};for(var a=r-1,f;a>=0;){var m=c[a];if(m==null&&(m=c[a]=this.getFoldWidget(a)),m=="start"){var y=this.getFoldWidgetRange(a);if(f||(f=y),y&&y.end.row>=r)break}a--}return{range:a!==-1&&y,firstRange:f}},this.onFoldWidgetClick=function(r,l){l instanceof h&&(l=l.domEvent);var c={children:l.shiftKey,all:l.ctrlKey||l.metaKey,siblings:l.altKey},a=this.$toggleFoldWidget(r,c);if(!a){var f=l.target||l.srcElement;f&&/ace_fold-widget/.test(f.className)&&(f.className+=" ace_invalid")}},this.$toggleFoldWidget=function(r,l){if(this.getFoldWidget){var c=this.getFoldWidget(r),a=this.getLine(r),f=c==="end"?-1:1,m=this.getFoldAt(r,f===-1?0:a.length,f);if(m)return l.children||l.all?this.removeFold(m):this.expandFold(m),m;var y=this.getFoldWidgetRange(r,!0);if(y&&!y.isMultiLine()&&(m=this.getFoldAt(y.start.row,y.start.column,1),m&&y.isEqual(m.range)))return this.removeFold(m),m;if(l.siblings){var b=this.getParentFoldRangeData(r);if(b.range)var E=b.range.start.row+1,S=b.range.end.row;this.foldAll(E,S,l.all?1e4:0)}else l.children?(S=y?y.end.row:this.getLength(),this.foldAll(r+1,S,l.all?1e4:0)):y&&(l.all&&(y.collapseChildren=1e4),this.addFold("...",y));return y}},this.toggleFoldWidget=function(r){var l=this.selection.getCursor().row;l=this.getRowFoldStart(l);var c=this.$toggleFoldWidget(l,{});if(!c){var a=this.getParentFoldRangeData(l,!0);if(c=a.range||a.firstRange,c){l=c.start.row;var f=this.getFoldAt(l,this.getLine(l).length,1);f?this.removeFold(f):this.addFold("...",c)}}},this.updateFoldWidgets=function(r){var l=r.start.row,c=r.end.row-l;if(c===0)this.foldWidgets[l]=null;else if(r.action=="remove")this.foldWidgets.splice(l,c+1,null);else{var a=Array(c+1);a.unshift(l,1),this.foldWidgets.splice.apply(this.foldWidgets,a)}},this.tokenizerUpdateFoldWidgets=function(r){var l=r.data;l.first!=l.last&&this.foldWidgets.length>l.first&&this.foldWidgets.splice(l.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,p=n("../range").Range;function g(){this.findMatchingBracket=function(s,h){if(s.column==0)return null;var o=h||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 h=this.getLine(s.row),o=!0,r,l=h.charAt(s.column-1),c=l&&l.match(/([\(\[\{])|([\)\]\}])/);if(c||(l=h.charAt(s.column),s={row:s.row,column:s.column+1},c=l&&l.match(/([\(\[\{])|([\)\]\}])/),o=!1),!c)return null;if(c[1]){var a=this.$findClosingBracket(c[1],s);if(!a)return null;r=p.fromPoints(s,a),o||(r.end.column++,r.start.column--),r.cursor=r.end}else{var a=this.$findOpeningBracket(c[2],s);if(!a)return null;r=p.fromPoints(a,s),o||(r.start.column++,r.end.column--),r.cursor=r.start}return r},this.getMatchingBracketRanges=function(s,h){var o=this.getLine(s.row),r=/([\(\[\{])|([\)\]\}])/,l=!h&&o.charAt(s.column-1),c=l&&l.match(r);if(c||(l=(h===void 0||h)&&o.charAt(s.column),s={row:s.row,column:s.column+1},c=l&&l.match(r)),!c)return null;var a=new p(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[a];var m=new p(f.row,f.column,f.row,f.column+1);return[a,m]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(s,h,o){var r=this.$brackets[s],l=1,c=new u(this,h.row,h.column),a=c.getCurrentToken();if(a||(a=c.stepForward()),!!a){o||(o=new RegExp("(\\.?"+a.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var f=h.column-c.getCurrentTokenColumn()-2,m=a.value;;){for(;f>=0;){var y=m.charAt(f);if(y==r){if(l-=1,l==0)return{row:c.getCurrentTokenRow(),column:f+c.getCurrentTokenColumn()}}else y==s&&(l+=1);f-=1}do a=c.stepBackward();while(a&&!o.test(a.type));if(a==null)break;m=a.value,f=m.length-1}return null}},this.$findClosingBracket=function(s,h,o){var r=this.$brackets[s],l=1,c=new u(this,h.row,h.column),a=c.getCurrentToken();if(a||(a=c.stepForward()),!!a){o||(o=new RegExp("(\\.?"+a.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var f=h.column-c.getCurrentTokenColumn();;){for(var m=a.value,y=m.length;f<y;){var b=m.charAt(f);if(b==r){if(l-=1,l==0)return{row:c.getCurrentTokenRow(),column:f+c.getCurrentTokenColumn()}}else b==s&&(l+=1);f+=1}do a=c.stepForward();while(a&&!o.test(a.type));if(a==null)break;f=0}return null}},this.getMatchingTags=function(s){var h=new u(this,s.row,s.column),o=this.$findTagName(h);if(o){var r=h.stepBackward();return r.value==="<"?this.$findClosingTag(h,o):this.$findOpeningTag(h,o)}},this.$findTagName=function(s){var h=s.getCurrentToken(),o=!1,r=!1;if(h&&h.type.indexOf("tag-name")===-1)do r?h=s.stepBackward():h=s.stepForward(),h&&(h.value==="/>"?r=!0:h.type.indexOf("tag-name")!==-1&&(o=!0));while(h&&!o);return h},this.$findClosingTag=function(s,h){var o,r=h.value,l=h.value,c=0,a=new p(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);h=s.stepForward();var f=new p(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+h.value.length),m=!1;do if(o=h,h=s.stepForward(),h){if(h.value===">"&&!m){var y=new p(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);m=!0}if(h.type.indexOf("tag-name")!==-1){if(r=h.value,l===r){if(o.value==="<")c++;else if(o.value==="</"&&(c--,c<0)){s.stepBackward();var b=new p(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+2);h=s.stepForward();var E=new p(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+h.value.length);if(h=s.stepForward(),h&&h.value===">")var S=new p(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);else return}}}else if(l===r&&h.value==="/>"&&(c--,c<0))var b=new p(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+2),E=b,S=E,y=new p(f.end.row,f.end.column,f.end.row,f.end.column+1)}while(h&&c>=0);if(a&&y&&b&&S&&f&&E)return{openTag:new p(a.start.row,a.start.column,y.end.row,y.end.column),closeTag:new p(b.start.row,b.start.column,S.end.row,S.end.column),openTagName:f,closeTagName:E}},this.$findOpeningTag=function(s,h){var o=s.getCurrentToken(),r=h.value,l=0,c=s.getCurrentTokenRow(),a=s.getCurrentTokenColumn(),f=a+2,m=new p(c,a,c,f);s.stepForward();var y=new p(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+h.value.length);if(h=s.stepForward(),!(!h||h.value!==">")){var b=new p(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);s.stepBackward(),s.stepBackward();do if(h=o,c=s.getCurrentTokenRow(),a=s.getCurrentTokenColumn(),f=a+h.value.length,o=s.stepBackward(),h){if(h.type.indexOf("tag-name")!==-1){if(r===h.value)if(o.value==="<"){if(l++,l>0){var E=new p(c,a,c,f),S=new p(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);do h=s.stepForward();while(h&&h.value!==">");var C=new p(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1)}}else o.value==="</"&&l--}else if(h.value==="/>"){for(var $=0,R=o;R;){if(R.type.indexOf("tag-name")!==-1&&R.value===r){l--;break}else if(R.value==="<")break;R=s.stepBackward(),$++}for(var x=0;x<$;x++)s.stepForward()}}while(o&&l<=0);if(S&&C&&m&&b&&E&&y)return{openTag:new p(S.start.row,S.start.column,C.end.row,C.end.column),closeTag:new p(m.start.row,m.start.column,b.end.row,b.end.column),openTagName:E,closeTagName:y}}}}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/edit_session/folding","ace/edit_session/bracket_match"],function(n,i,d){var u=n("./lib/oop"),p=n("./lib/lang"),g=n("./bidihandler").BidiHandler,s=n("./config"),h=n("./lib/event_emitter").EventEmitter,o=n("./selection").Selection,r=n("./mode/text").Mode,l=n("./range").Range,c=n("./document").Document,a=n("./background_tokenizer").BackgroundTokenizer,f=n("./search_highlight").SearchHighlight,m=function(){function _(v,M){this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$foldData=[],this.id="session"+ ++_.$uid,this.$foldData.toString=function(){return this.join(`
997
- `)},this.bgTokenizer=new a(new r().getTokenizer(),this);var A=this;this.bgTokenizer.on("update",function(w){A._signal("tokenizerUpdate",w)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof v!="object"||!v.getLine)&&(v=new c(v)),this.setDocument(v),this.selection=new o(this),this.$bidiHandler=new g(this),s.resetOptions(this),this.setMode(M),s._signal("session",this),this.destroyed=!1}return _.prototype.setDocument=function(v){this.doc&&this.doc.off("change",this.$onChange),this.doc=v,v.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},_.prototype.getDocument=function(){return this.doc},_.prototype.$resetRowCache=function(v){if(!v){this.$docRowCache=[],this.$screenRowCache=[];return}var M=this.$docRowCache.length,A=this.$getRowCacheIndex(this.$docRowCache,v)+1;M>A&&(this.$docRowCache.splice(A,M),this.$screenRowCache.splice(A,M))},_.prototype.$getRowCacheIndex=function(v,M){for(var A=0,w=v.length-1;A<=w;){var L=A+w>>1,T=v[L];if(M>T)A=L+1;else if(M<T)w=L-1;else return L}return A-1},_.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},_.prototype.onChangeFold=function(v){var M=v.data;this.$resetRowCache(M.start.row)},_.prototype.onChange=function(v){this.$modified=!0,this.$bidiHandler.onChange(v),this.$resetRowCache(v.start.row);var M=this.$updateInternalDataOnChange(v);!this.$fromUndo&&this.$undoManager&&(M&&M.length&&(this.$undoManager.add({action:"removeFolds",folds:M},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(v,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(v),this._signal("change",v)},_.prototype.setValue=function(v){this.doc.setValue(v),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},_.prototype.toString=function(){return this.doc.getValue()},_.prototype.getSelection=function(){return this.selection},_.prototype.getState=function(v){return this.bgTokenizer.getState(v)},_.prototype.getTokens=function(v){return this.bgTokenizer.getTokens(v)},_.prototype.getTokenAt=function(v,M){var A=this.bgTokenizer.getTokens(v),w,L=0;if(M==null){var T=A.length-1;L=this.getLine(v).length}else for(var T=0;T<A.length&&(L+=A[T].value.length,!(L>=M));T++);return w=A[T],w?(w.index=T,w.start=L-w.value.length,w):null},_.prototype.setUndoManager=function(v){if(this.$undoManager=v,this.$informUndoManager&&this.$informUndoManager.cancel(),v){var M=this;v.addSession(this),this.$syncInformUndoManager=function(){M.$informUndoManager.cancel(),M.mergeUndoDeltas=!1},this.$informUndoManager=p.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},_.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},_.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},_.prototype.getTabString=function(){return this.getUseSoftTabs()?p.stringRepeat(" ",this.getTabSize()):" "},_.prototype.setUseSoftTabs=function(v){this.setOption("useSoftTabs",v)},_.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},_.prototype.setTabSize=function(v){this.setOption("tabSize",v)},_.prototype.getTabSize=function(){return this.$tabSize},_.prototype.isTabStop=function(v){return this.$useSoftTabs&&v.column%this.$tabSize===0},_.prototype.setNavigateWithinSoftTabs=function(v){this.setOption("navigateWithinSoftTabs",v)},_.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},_.prototype.setOverwrite=function(v){this.setOption("overwrite",v)},_.prototype.getOverwrite=function(){return this.$overwrite},_.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},_.prototype.addGutterDecoration=function(v,M){this.$decorations[v]||(this.$decorations[v]=""),this.$decorations[v]+=" "+M,this._signal("changeBreakpoint",{})},_.prototype.removeGutterDecoration=function(v,M){this.$decorations[v]=(this.$decorations[v]||"").replace(" "+M,""),this._signal("changeBreakpoint",{})},_.prototype.getBreakpoints=function(){return this.$breakpoints},_.prototype.setBreakpoints=function(v){this.$breakpoints=[];for(var M=0;M<v.length;M++)this.$breakpoints[v[M]]="ace_breakpoint";this._signal("changeBreakpoint",{})},_.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},_.prototype.setBreakpoint=function(v,M){M===void 0&&(M="ace_breakpoint"),M?this.$breakpoints[v]=M:delete this.$breakpoints[v],this._signal("changeBreakpoint",{})},_.prototype.clearBreakpoint=function(v){delete this.$breakpoints[v],this._signal("changeBreakpoint",{})},_.prototype.addMarker=function(v,M,A,w){var L=this.$markerId++,T={range:v,type:A||"line",renderer:typeof A=="function"?A:null,clazz:M,inFront:!!w,id:L};return w?(this.$frontMarkers[L]=T,this._signal("changeFrontMarker")):(this.$backMarkers[L]=T,this._signal("changeBackMarker")),L},_.prototype.addDynamicMarker=function(v,M){if(v.update){var A=this.$markerId++;return v.id=A,v.inFront=!!M,M?(this.$frontMarkers[A]=v,this._signal("changeFrontMarker")):(this.$backMarkers[A]=v,this._signal("changeBackMarker")),v}},_.prototype.removeMarker=function(v){var M=this.$frontMarkers[v]||this.$backMarkers[v];if(M){var A=M.inFront?this.$frontMarkers:this.$backMarkers;delete A[v],this._signal(M.inFront?"changeFrontMarker":"changeBackMarker")}},_.prototype.getMarkers=function(v){return v?this.$frontMarkers:this.$backMarkers},_.prototype.highlight=function(v){if(!this.$searchHighlight){var M=new f(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(M)}this.$searchHighlight.setRegexp(v)},_.prototype.highlightLines=function(v,M,A,w){typeof M!="number"&&(A=M,M=v),A||(A="ace_step");var L=new l(v,0,M,1/0);return L.id=this.addMarker(L,A,"fullLine",w),L},_.prototype.setAnnotations=function(v){this.$annotations=v,this._signal("changeAnnotation",{})},_.prototype.getAnnotations=function(){return this.$annotations||[]},_.prototype.clearAnnotations=function(){this.setAnnotations([])},_.prototype.$detectNewLine=function(v){var M=v.match(/^.*?(\r?\n)/m);M?this.$autoNewLine=M[1]:this.$autoNewLine=`
998
- `},_.prototype.getWordRange=function(v,M){var A=this.getLine(v),w=!1;if(M>0&&(w=!!A.charAt(M-1).match(this.tokenRe)),w||(w=!!A.charAt(M).match(this.tokenRe)),w)var L=this.tokenRe;else if(/^\s+$/.test(A.slice(M-1,M+1)))var L=/\s/;else var L=this.nonTokenRe;var T=M;if(T>0){do T--;while(T>=0&&A.charAt(T).match(L));T++}for(var O=M;O<A.length&&A.charAt(O).match(L);)O++;return new l(v,T,v,O)},_.prototype.getAWordRange=function(v,M){for(var A=this.getWordRange(v,M),w=this.getLine(A.end.row);w.charAt(A.end.column).match(/[ \t]/);)A.end.column+=1;return A},_.prototype.setNewLineMode=function(v){this.doc.setNewLineMode(v)},_.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},_.prototype.setUseWorker=function(v){this.setOption("useWorker",v)},_.prototype.getUseWorker=function(){return this.$useWorker},_.prototype.onReloadTokenizer=function(v){var M=v.data;this.bgTokenizer.start(M.first),this._signal("tokenizerUpdate",v)},_.prototype.setMode=function(v,M){if(v&&typeof v=="object"){if(v.getTokenizer)return this.$onChangeMode(v);var A=v,w=A.path}else w=v||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new r),this.$modes[w]&&!A){this.$onChangeMode(this.$modes[w]),M&&M();return}this.$modeId=w,s.loadModule(["mode",w],(function(L){if(this.$modeId!==w)return M&&M();this.$modes[w]&&!A?this.$onChangeMode(this.$modes[w]):L&&L.Mode&&(L=new L.Mode(A),A||(this.$modes[w]=L,L.$id=w),this.$onChangeMode(L)),M&&M()}).bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},_.prototype.$onChangeMode=function(v,M){if(M||(this.$modeId=v.$id),this.$mode!==v){var A=this.$mode;this.$mode=v,this.$stopWorker(),this.$useWorker&&this.$startWorker();var w=v.getTokenizer();if(w.on!==void 0){var L=this.onReloadTokenizer.bind(this);w.on("update",L)}this.bgTokenizer.setTokenizer(w),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=v.tokenRe,this.nonTokenRe=v.nonTokenRe,M||(v.attachToSession&&v.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(v.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:A,mode:v}))}},_.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},_.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(v){s.warn("Could not load worker",v),this.$worker=null}},_.prototype.getMode=function(){return this.$mode},_.prototype.setScrollTop=function(v){this.$scrollTop===v||isNaN(v)||(this.$scrollTop=v,this._signal("changeScrollTop",v))},_.prototype.getScrollTop=function(){return this.$scrollTop},_.prototype.setScrollLeft=function(v){this.$scrollLeft===v||isNaN(v)||(this.$scrollLeft=v,this._signal("changeScrollLeft",v))},_.prototype.getScrollLeft=function(){return this.$scrollLeft},_.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},_.prototype.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var v=0;return this.lineWidgets.forEach(function(M){M&&M.screenWidth>v&&(v=M.screenWidth)}),this.lineWidgetWidth=v},_.prototype.$computeWidth=function(v){if(this.$modified||v){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var M=this.doc.getAllLines(),A=this.$rowLengthCache,w=0,L=0,T=this.$foldData[L],O=T?T.start.row:1/0,I=M.length,F=0;F<I;F++){if(F>O){if(F=T.end.row+1,F>=I)break;T=this.$foldData[L++],O=T?T.start.row:1/0}A[F]==null&&(A[F]=this.$getStringScreenWidth(M[F])[0]),A[F]>w&&(w=A[F])}this.screenWidth=w}},_.prototype.getLine=function(v){return this.doc.getLine(v)},_.prototype.getLines=function(v,M){return this.doc.getLines(v,M)},_.prototype.getLength=function(){return this.doc.getLength()},_.prototype.getTextRange=function(v){return this.doc.getTextRange(v||this.selection.getRange())},_.prototype.insert=function(v,M){return this.doc.insert(v,M)},_.prototype.remove=function(v){return this.doc.remove(v)},_.prototype.removeFullLines=function(v,M){return this.doc.removeFullLines(v,M)},_.prototype.undoChanges=function(v,M){if(v.length){this.$fromUndo=!0;for(var A=v.length-1;A!=-1;A--){var w=v[A];w.action=="insert"||w.action=="remove"?this.doc.revertDelta(w):w.folds&&this.addFolds(w.folds)}!M&&this.$undoSelect&&(v.selectionBefore?this.selection.fromJSON(v.selectionBefore):this.selection.setRange(this.$getUndoSelection(v,!0))),this.$fromUndo=!1}},_.prototype.redoChanges=function(v,M){if(v.length){this.$fromUndo=!0;for(var A=0;A<v.length;A++){var w=v[A];(w.action=="insert"||w.action=="remove")&&this.doc.$safeApplyDelta(w)}!M&&this.$undoSelect&&(v.selectionAfter?this.selection.fromJSON(v.selectionAfter):this.selection.setRange(this.$getUndoSelection(v,!1))),this.$fromUndo=!1}},_.prototype.setUndoSelect=function(v){this.$undoSelect=v},_.prototype.$getUndoSelection=function(v,M){function A(I){return M?I.action!=="insert":I.action==="insert"}for(var w,L,T=0;T<v.length;T++){var O=v[T];if(O.start){if(!w){A(O)?w=l.fromPoints(O.start,O.end):w=l.fromPoints(O.start,O.start);continue}A(O)?(L=O.start,w.compare(L.row,L.column)==-1&&w.setStart(L),L=O.end,w.compare(L.row,L.column)==1&&w.setEnd(L)):(L=O.start,w.compare(L.row,L.column)==-1&&(w=l.fromPoints(O.start,O.start)))}}return w},_.prototype.replace=function(v,M){return this.doc.replace(v,M)},_.prototype.moveText=function(v,M,A){var w=this.getTextRange(v),L=this.getFoldsInRange(v),T=l.fromPoints(M,M);if(!A){this.remove(v);var O=v.start.row-v.end.row,I=O?-v.end.column:v.start.column-v.end.column;I&&(T.start.row==v.end.row&&T.start.column>v.end.column&&(T.start.column+=I),T.end.row==v.end.row&&T.end.column>v.end.column&&(T.end.column+=I)),O&&T.start.row>=v.end.row&&(T.start.row+=O,T.end.row+=O)}if(T.end=this.insert(T.start,w),L.length){var F=v.start,D=T.start,O=D.row-F.row,I=D.column-F.column;this.addFolds(L.map(function(U){return U=U.clone(),U.start.row==F.row&&(U.start.column+=I),U.end.row==F.row&&(U.end.column+=I),U.start.row+=O,U.end.row+=O,U}))}return T},_.prototype.indentRows=function(v,M,A){A=A.replace(/\t/g,this.getTabString());for(var w=v;w<=M;w++)this.doc.insertInLine({row:w,column:0},A)},_.prototype.outdentRows=function(v){for(var M=v.collapseRows(),A=new l(0,0,0,0),w=this.getTabSize(),L=M.start.row;L<=M.end.row;++L){var T=this.getLine(L);A.start.row=L,A.end.row=L;for(var O=0;O<w&&T.charAt(O)==" ";++O);O<w&&T.charAt(O)==" "?(A.start.column=O,A.end.column=O+1):(A.start.column=0,A.end.column=O),this.remove(A)}},_.prototype.$moveLines=function(v,M,A){if(v=this.getRowFoldStart(v),M=this.getRowFoldEnd(M),A<0){var w=this.getRowFoldStart(v+A);if(w<0)return 0;var L=w-v}else if(A>0){var w=this.getRowFoldEnd(M+A);if(w>this.doc.getLength()-1)return 0;var L=w-M}else{v=this.$clipRowToDocument(v),M=this.$clipRowToDocument(M);var L=M-v+1}var T=new l(v,0,M,Number.MAX_VALUE),O=this.getFoldsInRange(T).map(function(F){return F=F.clone(),F.start.row+=L,F.end.row+=L,F}),I=A==0?this.doc.getLines(v,M):this.doc.removeFullLines(v,M);return this.doc.insertFullLines(v+L,I),O.length&&this.addFolds(O),L},_.prototype.moveLinesUp=function(v,M){return this.$moveLines(v,M,-1)},_.prototype.moveLinesDown=function(v,M){return this.$moveLines(v,M,1)},_.prototype.duplicateLines=function(v,M){return this.$moveLines(v,M,0)},_.prototype.$clipRowToDocument=function(v){return Math.max(0,Math.min(v,this.doc.getLength()-1))},_.prototype.$clipColumnToRow=function(v,M){return M<0?0:Math.min(this.doc.getLine(v).length,M)},_.prototype.$clipPositionToDocument=function(v,M){if(M=Math.max(0,M),v<0)v=0,M=0;else{var A=this.doc.getLength();v>=A?(v=A-1,M=this.doc.getLine(A-1).length):M=Math.min(this.doc.getLine(v).length,M)}return{row:v,column:M}},_.prototype.$clipRangeToDocument=function(v){v.start.row<0?(v.start.row=0,v.start.column=0):v.start.column=this.$clipColumnToRow(v.start.row,v.start.column);var M=this.doc.getLength()-1;return v.end.row>M?(v.end.row=M,v.end.column=this.doc.getLine(M).length):v.end.column=this.$clipColumnToRow(v.end.row,v.end.column),v},_.prototype.setUseWrapMode=function(v){if(v!=this.$useWrapMode){if(this.$useWrapMode=v,this.$modified=!0,this.$resetRowCache(0),v){var M=this.getLength();this.$wrapData=Array(M),this.$updateWrapData(0,M-1)}this._signal("changeWrapMode")}},_.prototype.getUseWrapMode=function(){return this.$useWrapMode},_.prototype.setWrapLimitRange=function(v,M){(this.$wrapLimitRange.min!==v||this.$wrapLimitRange.max!==M)&&(this.$wrapLimitRange={min:v,max:M},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},_.prototype.adjustWrapLimit=function(v,M){var A=this.$wrapLimitRange;A.max<0&&(A={min:M,max:M});var w=this.$constrainWrapLimit(v,A.min,A.max);return w!=this.$wrapLimit&&w>1?(this.$wrapLimit=w,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},_.prototype.$constrainWrapLimit=function(v,M,A){return M&&(v=Math.max(M,v)),A&&(v=Math.min(A,v)),v},_.prototype.getWrapLimit=function(){return this.$wrapLimit},_.prototype.setWrapLimit=function(v){this.setWrapLimitRange(v,v)},_.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},_.prototype.$updateInternalDataOnChange=function(v){var M=this.$useWrapMode,A=v.action,w=v.start,L=v.end,T=w.row,O=L.row,I=O-T,F=null;if(this.$updating=!0,I!=0)if(A==="remove"){this[M?"$wrapData":"$rowLengthCache"].splice(T,I);var D=this.$foldData;F=this.getFoldsInRange(v),this.removeFolds(F);var W=this.getFoldLine(L.row),G=0;if(W){W.addRemoveChars(L.row,L.column,w.column-L.column),W.shiftRow(-I);var U=this.getFoldLine(T);U&&U!==W&&(U.merge(W),W=U),G=D.indexOf(W)+1}for(G;G<D.length;G++){var W=D[G];W.start.row>=L.row&&W.shiftRow(-I)}O=T}else{var H=Array(I);H.unshift(T,0);var X=M?this.$wrapData:this.$rowLengthCache;X.splice.apply(X,H);var D=this.$foldData,W=this.getFoldLine(T),G=0;if(W){var J=W.range.compareInside(w.row,w.column);J==0?(W=W.split(w.row,w.column),W&&(W.shiftRow(I),W.addRemoveChars(O,0,L.column-w.column))):J==-1&&(W.addRemoveChars(T,0,L.column-w.column),W.shiftRow(I)),G=D.indexOf(W)+1}for(G;G<D.length;G++){var W=D[G];W.start.row>=T&&W.shiftRow(I)}}else{I=Math.abs(v.start.column-v.end.column),A==="remove"&&(F=this.getFoldsInRange(v),this.removeFolds(F),I=-I);var W=this.getFoldLine(T);W&&W.addRemoveChars(T,w.column,I)}return M&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,M?this.$updateWrapData(T,O):this.$updateRowLengthCache(T,O),F},_.prototype.$updateRowLengthCache=function(v,M,A){this.$rowLengthCache[v]=null,this.$rowLengthCache[M]=null},_.prototype.$updateWrapData=function(v,M){var A=this.doc.getAllLines(),w=this.getTabSize(),L=this.$wrapData,T=this.$wrapLimit,O,I,F=v;for(M=Math.min(M,A.length-1);F<=M;)I=this.getFoldLine(F,I),I?(O=[],I.walk((function(D,W,G,U){var H;if(D!=null){H=this.$getDisplayTokens(D,O.length),H[0]=E;for(var X=1;X<H.length;X++)H[X]=S}else H=this.$getDisplayTokens(A[W].substring(U,G),O.length);O=O.concat(H)}).bind(this),I.end.row,A[I.end.row].length+1),L[I.start.row]=this.$computeWrapSplits(O,T,w),F=I.end.row+1):(O=this.$getDisplayTokens(A[F]),L[F]=this.$computeWrapSplits(O,T,w),F++)},_.prototype.$computeWrapSplits=function(v,M,A){if(v.length==0)return[];var w=[],L=v.length,T=0,O=0,I=this.$wrapAsCode,F=this.$indentedSoftWrap,D=M<=Math.max(2*A,8)||F===!1?0:Math.floor(M/2);function W(){var J=0;if(D===0)return J;if(F)for(var z=0;z<v.length;z++){var Y=v[z];if(Y==$)J+=1;else if(Y==R)J+=A;else{if(Y==x)continue;break}}return I&&F!==!1&&(J+=A),Math.min(J,D)}function G(J){for(var z=J-T,Y=T;Y<J;Y++){var K=v[Y];(K===12||K===2)&&(z-=1)}w.length||(U=W(),w.indent=U),O+=z,w.push(O),T=J}for(var U=0;L-T>M-U;){var H=T+M-U;if(v[H-1]>=$&&v[H]>=$){G(H);continue}if(v[H]==E||v[H]==S){for(H;H!=T-1&&v[H]!=E;H--);if(H>T){G(H);continue}for(H=T+M,H;H<v.length&&v[H]==S;H++);if(H==v.length)break;G(H);continue}for(var X=Math.max(H-(M-(M>>2)),T-1);H>X&&v[H]<E;)H--;if(I){for(;H>X&&v[H]<E;)H--;for(;H>X&&v[H]==C;)H--}else for(;H>X&&v[H]<$;)H--;if(H>X){G(++H);continue}H=T+M,v[H]==b&&H--,G(H-U)}return w},_.prototype.$getDisplayTokens=function(v,M){var A=[],w;M=M||0;for(var L=0;L<v.length;L++){var T=v.charCodeAt(L);if(T==9){w=this.getScreenTabSize(A.length+M),A.push(R);for(var O=1;O<w;O++)A.push(x)}else T==32?A.push($):T>39&&T<48||T>57&&T<64?A.push(C):T>=4352&&k(T)?A.push(y,b):A.push(y)}return A},_.prototype.$getStringScreenWidth=function(v,M,A){if(M==0)return[0,0];M==null&&(M=1/0),A=A||0;var w,L;for(L=0;L<v.length&&(w=v.charCodeAt(L),w==9?A+=this.getScreenTabSize(A):w>=4352&&k(w)?A+=2:A+=1,!(A>M));L++);return[A,L]},_.prototype.getRowLength=function(v){var M=1;return this.lineWidgets&&(M+=this.lineWidgets[v]&&this.lineWidgets[v].rowCount||0),!this.$useWrapMode||!this.$wrapData[v]?M:this.$wrapData[v].length+M},_.prototype.getRowLineCount=function(v){return!this.$useWrapMode||!this.$wrapData[v]?1:this.$wrapData[v].length+1},_.prototype.getRowWrapIndent=function(v){if(this.$useWrapMode){var M=this.screenToDocumentPosition(v,Number.MAX_VALUE),A=this.$wrapData[M.row];return A.length&&A[0]<M.column?A.indent:0}else return 0},_.prototype.getScreenLastRowColumn=function(v){var M=this.screenToDocumentPosition(v,Number.MAX_VALUE);return this.documentToScreenColumn(M.row,M.column)},_.prototype.getDocumentLastRowColumn=function(v,M){var A=this.documentToScreenRow(v,M);return this.getScreenLastRowColumn(A)},_.prototype.getDocumentLastRowColumnPosition=function(v,M){var A=this.documentToScreenRow(v,M);return this.screenToDocumentPosition(A,Number.MAX_VALUE/10)},_.prototype.getRowSplitData=function(v){if(this.$useWrapMode)return this.$wrapData[v]},_.prototype.getScreenTabSize=function(v){return this.$tabSize-(v%this.$tabSize|0)},_.prototype.screenToDocumentRow=function(v,M){return this.screenToDocumentPosition(v,M).row},_.prototype.screenToDocumentColumn=function(v,M){return this.screenToDocumentPosition(v,M).column},_.prototype.screenToDocumentPosition=function(v,M,A){if(v<0)return{row:0,column:0};var w,L=0,T=0,O,I=0,F=0,D=this.$screenRowCache,W=this.$getRowCacheIndex(D,v),G=D.length;if(G&&W>=0)var I=D[W],L=this.$docRowCache[W],U=v>D[G-1];else var U=!G;for(var H=this.getLength()-1,X=this.getNextFoldLine(L),J=X?X.start.row:1/0;I<=v&&(F=this.getRowLength(L),!(I+F>v||L>=H));)I+=F,L++,L>J&&(L=X.end.row+1,X=this.getNextFoldLine(L,X),J=X?X.start.row:1/0),U&&(this.$docRowCache.push(L),this.$screenRowCache.push(I));if(X&&X.start.row<=L)w=this.getFoldDisplayLine(X),L=X.start.row;else{if(I+F<=v||L>H)return{row:H,column:this.getLine(H).length};w=this.getLine(L),X=null}var z=0,Y=Math.floor(v-I);if(this.$useWrapMode){var K=this.$wrapData[L];K&&(O=K[Y],Y>0&&K.length&&(z=K.indent,T=K[Y-1]||K[K.length-1],w=w.substring(T)))}return A!==void 0&&this.$bidiHandler.isBidiRow(I+Y,L,Y)&&(M=this.$bidiHandler.offsetToCol(A)),T+=this.$getStringScreenWidth(w,M-z)[1],this.$useWrapMode&&T>=O&&(T=O-1),X?X.idxToPosition(T):{row:L,column:T}},_.prototype.documentToScreenPosition=function(v,M){if(typeof M>"u")var A=this.$clipPositionToDocument(v.row,v.column);else A=this.$clipPositionToDocument(v,M);v=A.row,M=A.column;var w=0,L=null,T=null;T=this.getFoldAt(v,M,1),T&&(v=T.start.row,M=T.start.column);var O,I=0,F=this.$docRowCache,D=this.$getRowCacheIndex(F,v),W=F.length;if(W&&D>=0)var I=F[D],w=this.$screenRowCache[D],G=v>F[W-1];else var G=!W;for(var U=this.getNextFoldLine(I),H=U?U.start.row:1/0;I<v;){if(I>=H){if(O=U.end.row+1,O>v)break;U=this.getNextFoldLine(O,U),H=U?U.start.row:1/0}else O=I+1;w+=this.getRowLength(I),I=O,G&&(this.$docRowCache.push(I),this.$screenRowCache.push(w))}var X="";U&&I>=H?(X=this.getFoldDisplayLine(U,v,M),L=U.start.row):(X=this.getLine(v).substring(0,M),L=v);var J=0;if(this.$useWrapMode){var z=this.$wrapData[L];if(z){for(var Y=0;X.length>=z[Y];)w++,Y++;X=X.substring(z[Y-1]||0,X.length),J=Y>0?z.indent:0}}return this.lineWidgets&&this.lineWidgets[I]&&this.lineWidgets[I].rowsAbove&&(w+=this.lineWidgets[I].rowsAbove),{row:w,column:J+this.$getStringScreenWidth(X)[0]}},_.prototype.documentToScreenColumn=function(v,M){return this.documentToScreenPosition(v,M).column},_.prototype.documentToScreenRow=function(v,M){return this.documentToScreenPosition(v,M).row},_.prototype.getScreenLength=function(){var v=0,M=null;if(this.$useWrapMode)for(var L=this.$wrapData.length,T=0,w=0,M=this.$foldData[w++],O=M?M.start.row:1/0;T<L;){var I=this.$wrapData[T];v+=I?I.length+1:1,T++,T>O&&(T=M.end.row+1,M=this.$foldData[w++],O=M?M.start.row:1/0)}else{v=this.getLength();for(var A=this.$foldData,w=0;w<A.length;w++)M=A[w],v-=M.end.row-M.start.row}return this.lineWidgets&&(v+=this.$getWidgetScreenLength()),v},_.prototype.$setFontMetrics=function(v){this.$enableVarChar&&(this.$getStringScreenWidth=function(M,A,w){if(A===0)return[0,0];A||(A=1/0),w=w||0;var L,T;for(T=0;T<M.length&&(L=M.charAt(T),L===" "?w+=this.getScreenTabSize(w):w+=v.getCharacterWidth(L),!(w>A));T++);return[w,T]})},_.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()},_}();m.$uid=0,m.prototype.$modes=s.$modes,m.prototype.getValue=m.prototype.toString,m.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},m.prototype.$overwrite=!1,m.prototype.$mode=null,m.prototype.$modeId=null,m.prototype.$scrollTop=0,m.prototype.$scrollLeft=0,m.prototype.$wrapLimit=80,m.prototype.$useWrapMode=!1,m.prototype.$wrapLimitRange={min:null,max:null},m.prototype.lineWidgets=null,m.prototype.isFullWidth=k,u.implement(m.prototype,h);var y=1,b=2,E=3,S=4,C=9,$=10,R=11,x=12;function k(_){return _<4352?!1:_>=4352&&_<=4447||_>=4515&&_<=4519||_>=4602&&_<=4607||_>=9001&&_<=9002||_>=11904&&_<=11929||_>=11931&&_<=12019||_>=12032&&_<=12245||_>=12272&&_<=12283||_>=12288&&_<=12350||_>=12353&&_<=12438||_>=12441&&_<=12543||_>=12549&&_<=12589||_>=12593&&_<=12686||_>=12688&&_<=12730||_>=12736&&_<=12771||_>=12784&&_<=12830||_>=12832&&_<=12871||_>=12880&&_<=13054||_>=13056&&_<=19903||_>=19968&&_<=42124||_>=42128&&_<=42182||_>=43360&&_<=43388||_>=44032&&_<=55203||_>=55216&&_<=55238||_>=55243&&_<=55291||_>=63744&&_<=64255||_>=65040&&_<=65049||_>=65072&&_<=65106||_>=65108&&_<=65126||_>=65128&&_<=65131||_>=65281&&_<=65376||_>=65504&&_<=65510}n("./edit_session/folding").Folding.call(m.prototype),n("./edit_session/bracket_match").BracketMatch.call(m.prototype),s.defineOptions(m.prototype,"session",{wrap:{set:function(_){if(!_||_=="off"?_=!1:_=="free"?_=!0:_=="printMargin"?_=-1:typeof _=="string"&&(_=parseInt(_,10)||!1),this.$wrap!=_)if(this.$wrap=_,!_)this.setUseWrapMode(!1);else{var v=typeof _=="number"?_:null;this.setWrapLimitRange(v,v),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(_){_=_=="auto"?this.$mode.type!="text":_!="text",_!=this.$wrapAsCode&&(this.$wrapAsCode=_,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(_){this.$useWorker=_,this.$stopWorker(),_&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(_){_=parseInt(_),_>0&&this.$tabSize!==_&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=_,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(_){this.setFoldStyle(_)},handlesSet:!0},overwrite:{set:function(_){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(_){this.doc.setNewLineMode(_)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(_){this.setMode(_)},get:function(){return this.$modeId},handlesSet:!0}}),i.EditSession=m}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(n,i,d){var u=n("./lib/lang"),p=n("./lib/oop"),g=n("./range").Range,s=function(){function o(){this.$options={}}return o.prototype.set=function(r){return p.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 l=this.$options,c=this.$matchIterator(r,l);if(!c)return!1;var a=null;return c.forEach(function(f,m,y,b){return a=new g(f,m,y,b),m==b&&l.start&&l.start.start&&l.skipCurrent!=!1&&a.isEqual(l.start)?(a=null,!1):!0}),a},o.prototype.findAll=function(r){var l=this.$options;if(!l.needle)return[];this.$assembleRegExp(l);var c=l.range,a=c?r.getLines(c.start.row,c.end.row):r.doc.getAllLines(),f=[],m=l.re;if(l.$isMultiLine){var y=m.length,b=a.length-y,E;e:for(var S=m.offset||0;S<=b;S++){for(var C=0;C<y;C++)if(a[S+C].search(m[C])==-1)continue e;var $=a[S],R=a[S+y-1],x=$.length-$.match(m[0])[0].length,k=R.match(m[y-1])[0].length;E&&E.end.row===S&&E.end.column>x||(f.push(E=new g(S,x,S+y-1,k)),y>2&&(S=S+y-2))}}else for(var _=0;_<a.length;_++)for(var v=u.getMatchOffsets(a[_],m),C=0;C<v.length;C++){var M=v[C];f.push(new g(_,M.offset,_,M.offset+M.length))}if(c){for(var A=c.start.column,w=c.end.column,_=0,C=f.length-1;_<C&&f[_].start.column<A&&f[_].start.row==0;)_++;for(var L=c.end.row-c.start.row;_<C&&f[C].end.column>w&&f[C].end.row==L;)C--;for(f=f.slice(_,C+1),_=0,C=f.length;_<C;_++)f[_].start.row+=c.start.row,f[_].end.row+=c.start.row}return f},o.prototype.replace=function(r,l){var c=this.$options,a=this.$assembleRegExp(c);if(c.$isMultiLine)return l;if(a){var f=a.exec(r);if(!f||f[0].length!=r.length)return null;if(l=r.replace(a,l),c.preserveCase){l=l.split("");for(var m=Math.min(r.length,r.length);m--;){var y=r[m];y&&y.toLowerCase()!=y?l[m]=l[m].toUpperCase():l[m]=l[m].toLowerCase()}l=l.join("")}return l}},o.prototype.$assembleRegExp=function(r,l){if(r.needle instanceof RegExp)return r.re=r.needle;var c=r.needle;if(!r.needle)return r.re=!1;r.$supportsUnicodeFlag===void 0&&(r.$supportsUnicodeFlag=u.supportsUnicodeFlag());try{new RegExp(c,"u")}catch{r.$supportsUnicodeFlag=!1}r.regExp||(c=u.escapeRegExp(c)),r.wholeWord&&(c=h(c,r));var a=r.caseSensitive?"gm":"gmi";if(r.$supportsUnicodeFlag&&(a+="u"),r.$isMultiLine=!l&&/[\n\r]/.test(c),r.$isMultiLine)return r.re=this.$assembleMultilineRegExp(c,a);try{var f=new RegExp(c,a)}catch{f=!1}return r.re=f},o.prototype.$assembleMultilineRegExp=function(r,l){for(var c=r.replace(/\r\n|\r|\n/g,`$
997
+ `},r.prototype.getLine=function(l){return this.$lines[l]||""},r.prototype.getLines=function(l,c){return this.$lines.slice(l,c+1)},r.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},r.prototype.getLength=function(){return this.$lines.length},r.prototype.getTextRange=function(l){return this.getLinesForRange(l).join(this.getNewLineCharacter())},r.prototype.getLinesForRange=function(l){var c;if(l.start.row===l.end.row)c=[this.getLine(l.start.row).substring(l.start.column,l.end.column)];else{c=this.getLines(l.start.row,l.end.row),c[0]=(c[0]||"").substring(l.start.column);var a=c.length-1;l.end.row-l.start.row==a&&(c[a]=c[a].substring(0,l.end.column))}return c},r.prototype.insertLines=function(l,c){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(l,c)},r.prototype.removeLines=function(l,c){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(l,c)},r.prototype.insertNewLine=function(l){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(l,["",""])},r.prototype.insert=function(l,c){return this.getLength()<=1&&this.$detectNewLine(c),this.insertMergedLines(l,this.$split(c))},r.prototype.insertInLine=function(l,c){var a=this.clippedPos(l.row,l.column),d=this.pos(l.row,l.column+c.length);return this.applyDelta({start:a,end:d,action:"insert",lines:[c]},!0),this.clonePos(d)},r.prototype.clippedPos=function(l,c){var a=this.getLength();l===void 0?l=a:l<0?l=0:l>=a&&(l=a-1,c=void 0);var d=this.getLine(l);return c==null&&(c=d.length),c=Math.min(Math.max(c,0),d.length),{row:l,column:c}},r.prototype.clonePos=function(l){return{row:l.row,column:l.column}},r.prototype.pos=function(l,c){return{row:l,column:c}},r.prototype.$clipPosition=function(l){var c=this.getLength();return l.row>=c?(l.row=Math.max(0,c-1),l.column=this.getLine(c-1).length):(l.row=Math.max(0,l.row),l.column=Math.min(Math.max(l.column,0),this.getLine(l.row).length)),l},r.prototype.insertFullLines=function(l,c){l=Math.min(Math.max(l,0),this.getLength());var a=0;l<this.getLength()?(c=c.concat([""]),a=0):(c=[""].concat(c),l--,a=this.$lines[l].length),this.insertMergedLines({row:l,column:a},c)},r.prototype.insertMergedLines=function(l,c){var a=this.clippedPos(l.row,l.column),d={row:a.row+c.length-1,column:(c.length==1?a.column:0)+c[c.length-1].length};return this.applyDelta({start:a,end:d,action:"insert",lines:c}),this.clonePos(d)},r.prototype.remove=function(l){var c=this.clippedPos(l.start.row,l.start.column),a=this.clippedPos(l.end.row,l.end.column);return this.applyDelta({start:c,end:a,action:"remove",lines:this.getLinesForRange({start:c,end:a})}),this.clonePos(c)},r.prototype.removeInLine=function(l,c,a){var d=this.clippedPos(l,c),m=this.clippedPos(l,a);return this.applyDelta({start:d,end:m,action:"remove",lines:this.getLinesForRange({start:d,end:m})},!0),this.clonePos(d)},r.prototype.removeFullLines=function(l,c){l=Math.min(Math.max(0,l),this.getLength()-1),c=Math.min(Math.max(0,c),this.getLength()-1);var a=c==this.getLength()-1&&l>0,d=c<this.getLength()-1,m=a?l-1:l,y=a?this.getLine(m).length:0,b=d?c+1:c,E=d?0:this.getLine(b).length,S=new s(m,y,b,E),C=this.$lines.slice(l,c+1);return this.applyDelta({start:S.start,end:S.end,action:"remove",lines:this.getLinesForRange(S)}),C},r.prototype.removeNewLine=function(l){l<this.getLength()-1&&l>=0&&this.applyDelta({start:this.pos(l,this.getLine(l).length),end:this.pos(l+1,0),action:"remove",lines:["",""]})},r.prototype.replace=function(l,c){if(l instanceof s||(l=s.fromPoints(l.start,l.end)),c.length===0&&l.isEmpty())return l.start;if(c==this.getTextRange(l))return l.end;this.remove(l);var a;return c?a=this.insert(l.start,c):a=l.start,a},r.prototype.applyDeltas=function(l){for(var c=0;c<l.length;c++)this.applyDelta(l[c])},r.prototype.revertDeltas=function(l){for(var c=l.length-1;c>=0;c--)this.revertDelta(l[c])},r.prototype.applyDelta=function(l,c){var a=l.action=="insert";(a?l.lines.length<=1&&!l.lines[0]:!s.comparePoints(l.start,l.end))||(a&&l.lines.length>2e4?this.$splitAndapplyLargeDelta(l,2e4):(f(this.$lines,l,c),this._signal("change",l)))},r.prototype.$safeApplyDelta=function(l){var c=this.$lines.length;(l.action=="remove"&&l.start.row<c&&l.end.row<c||l.action=="insert"&&l.start.row<=c)&&this.applyDelta(l)},r.prototype.$splitAndapplyLargeDelta=function(l,c){for(var a=l.lines,d=a.length-c+1,m=l.start.row,y=l.start.column,b=0,E=0;b<d;b=E){E+=c-1;var S=a.slice(b,E);S.push(""),this.applyDelta({start:this.pos(m+b,y),end:this.pos(m+E,y=0),action:l.action,lines:S},!0)}l.lines=a.slice(b),l.start.row=m+b,l.start.column=y,this.applyDelta(l,!0)},r.prototype.revertDelta=function(l){this.$safeApplyDelta({start:this.clonePos(l.start),end:this.clonePos(l.end),action:l.action=="insert"?"remove":"insert",lines:l.lines.slice()})},r.prototype.indexToPosition=function(l,c){for(var a=this.$lines||this.getAllLines(),d=this.getNewLineCharacter().length,m=c||0,y=a.length;m<y;m++)if(l-=a[m].length+d,l<0)return{row:m,column:l+a[m].length+d};return{row:y-1,column:l+a[y-1].length+d}},r.prototype.positionToIndex=function(l,c){for(var a=this.$lines||this.getAllLines(),d=this.getNewLineCharacter().length,m=0,y=Math.min(l.row,a.length),b=c||0;b<y;++b)m+=a[b].length+d;return m+l.column},r.prototype.$split=function(l){return l.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,p){var u=n("./lib/oop"),f=n("./lib/event_emitter").EventEmitter,g=function(){function s(h,o){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=h;var r=this;this.$worker=function(){if(r.running){for(var l=new Date,c=r.currentLine,a=-1,d=r.doc,m=c;r.lines[c];)c++;var y=d.getLength(),b=0;for(r.running=!1;c<y;){r.$tokenizeRow(c),a=c;do c++;while(r.lines[c]);if(b++,b%5===0&&new Date-l>20){r.running=setTimeout(r.$worker,20);break}}r.currentLine=c,a==-1&&(a=c),m<=a&&r.fireUpdateEvent(m,a)}}}return s.prototype.setTokenizer=function(h){this.tokenizer=h,this.lines=[],this.states=[],this.start(0)},s.prototype.setDocument=function(h){this.doc=h,this.lines=[],this.states=[],this.stop()},s.prototype.fireUpdateEvent=function(h,o){var r={first:h,last:o};this._signal("update",{data:r})},s.prototype.start=function(h){this.currentLine=Math.min(h||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(h){var o=h.start.row,r=h.end.row-o;if(r===0)this.lines[o]=null;else if(h.action=="remove")this.lines.splice(o,r+1,null),this.states.splice(o,r+1,null);else{var l=Array(r+1);l.unshift(o,1),this.lines.splice.apply(this.lines,l),this.states.splice.apply(this.states,l)}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(h){return this.lines[h]||this.$tokenizeRow(h)},s.prototype.getState=function(h){return this.currentLine==h&&this.$tokenizeRow(h),this.states[h]||"start"},s.prototype.$tokenizeRow=function(h){var o=this.doc.getLine(h),r=this.states[h-1],l=this.tokenizer.getLineTokens(o,r,h);return this.states[h]+""!=l.state+""?(this.states[h]=l.state,this.lines[h+1]=null,this.currentLine>h+1&&(this.currentLine=h+1)):this.currentLine==h&&(this.currentLine=h+1),this.lines[h]=l.tokens},s.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},s}();u.implement(g.prototype,f),i.BackgroundTokenizer=g}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(n,i,p){var u=n("./lib/lang"),f=n("./range").Range,g=function(){function s(h,o,r){r===void 0&&(r="text"),this.setRegexp(h),this.clazz=o,this.type=r}return s.prototype.setRegexp=function(h){this.regExp+""!=h+""&&(this.regExp=h,this.cache=[])},s.prototype.update=function(h,o,r,l){if(this.regExp)for(var c=l.firstRow,a=l.lastRow,d={},m=c;m<=a;m++){var y=this.cache[m];y==null&&(y=u.getMatchOffsets(r.getLine(m),this.regExp),y.length>this.MAX_RANGES&&(y=y.slice(0,this.MAX_RANGES)),y=y.map(function(C){return new f(m,C.offset,m,C.offset+C.length)}),this.cache[m]=y.length?y:"");for(var b=y.length;b--;){var E=y[b].toScreenRange(r),S=E.toString();d[S]||(d[S]=!0,o.drawSingleLineMarker(h,E,this.clazz,l))}}},s}();g.prototype.MAX_RANGES=500,i.SearchHighlight=g}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(n,i,p){var u=n("../range").Range,f=function(){function g(s,h){this.foldData=s,Array.isArray(h)?this.folds=h:h=this.folds=[h];var o=h[h.length-1];this.range=new u(h[0].start.row,h[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(h){h.start.row+=s,h.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(h,o){return-h.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,h,o){var r=0,l=this.folds,c,a,d,m=!0;h==null&&(h=this.end.row,o=this.end.column);for(var y=0;y<l.length;y++){if(c=l[y],a=c.range.compareStart(h,o),a==-1){s(null,h,o,r,m);return}if(d=s(null,c.start.row,c.start.column,r,m),d=!d&&s(c.placeholder,c.start.row,c.start.column,r),d||a===0)return;m=!c.sameRow,r=c.end.column}s(null,h,o,r,m)},g.prototype.getNextFoldTo=function(s,h){for(var o,r,l=0;l<this.folds.length;l++){if(o=this.folds[l],r=o.range.compareEnd(s,h),r==-1)return{fold:o,kind:"after"};if(r===0)return{fold:o,kind:"inside"}}return null},g.prototype.addRemoveChars=function(s,h,o){var r=this.getNextFoldTo(s,h),l,c;if(r){if(l=r.fold,r.kind=="inside"&&l.start.column!=h&&l.start.row!=s)window.console&&window.console.log(s,h,l);else if(l.start.row==s){c=this.folds;var a=c.indexOf(l);for(a===0&&(this.start.column+=o),a;a<c.length;a++){if(l=c[a],l.start.column+=o,!l.sameRow)return;l.end.column+=o}this.end.column+=o}}},g.prototype.split=function(s,h){var o=this.getNextFoldTo(s,h);if(!o||o.kind=="inside")return null;var r=o.fold,l=this.folds,c=this.foldData,a=l.indexOf(r),d=l[a-1];this.end.row=d.end.row,this.end.column=d.end.column,l=l.splice(a,l.length-a);var m=new g(c,l);return c.splice(c.indexOf(this)+1,0,m),m},g.prototype.merge=function(s){for(var h=s.folds,o=0;o<h.length;o++)this.addFold(h[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(h){s.push(" "+h.toString())}),s.push("]"),s.join(`
998
+ `)},g.prototype.idxToPosition=function(s){for(var h=0,o=0;o<this.folds.length;o++){var r=this.folds[o];if(s-=r.start.column-h,s<0)return{row:r.start.row,column:r.start.column+s};if(s-=r.placeholder.length,s<0)return r.start;h=r.end.column}return{row:this.end.row,column:this.end.column+s}},g}();i.FoldLine=f}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(n,i,p){var u=n("./range").Range,f=u.comparePoints,g=function(){function s(){this.ranges=[],this.$bias=1}return s.prototype.pointIndex=function(h,o,r){for(var l=this.ranges,c=r||0;c<l.length;c++){var a=l[c],d=f(h,a.end);if(!(d>0)){var m=f(h,a.start);return d===0?o&&m!==0?-c-2:c:m>0||m===0&&!o?c:-c-1}}return-c-1},s.prototype.add=function(h){var o=!h.isEmpty(),r=this.pointIndex(h.start,o);r<0&&(r=-r-1);var l=this.pointIndex(h.end,o,r);return l<0?l=-l-1:l++,this.ranges.splice(r,l-r,h)},s.prototype.addList=function(h){for(var o=[],r=h.length;r--;)o.push.apply(o,this.add(h[r]));return o},s.prototype.substractPoint=function(h){var o=this.pointIndex(h);if(o>=0)return this.ranges.splice(o,1)},s.prototype.merge=function(){var h=[],o=this.ranges;o=o.sort(function(d,m){return f(d.start,m.start)});for(var r=o[0],l,c=1;c<o.length;c++){l=r,r=o[c];var a=f(l.end,r.start);a<0||a==0&&!l.isEmpty()&&!r.isEmpty()||(f(l.end,r.end)<0&&(l.end.row=r.end.row,l.end.column=r.end.column),o.splice(c,1),h.push(r),r=l,c--)}return this.ranges=o,h},s.prototype.contains=function(h,o){return this.pointIndex({row:h,column:o})>=0},s.prototype.containsPoint=function(h){return this.pointIndex(h)>=0},s.prototype.rangeAtPoint=function(h){var o=this.pointIndex(h);if(o>=0)return this.ranges[o]},s.prototype.clipRows=function(h,o){var r=this.ranges;if(r[0].start.row>o||r[r.length-1].start.row<h)return[];var l=this.pointIndex({row:h,column:0});l<0&&(l=-l-1);var c=this.pointIndex({row:o,column:0},l);c<0&&(c=-c-1);for(var a=[],d=l;d<c;d++)a.push(r[d]);return a},s.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},s.prototype.attach=function(h){this.session&&this.detach(),this.session=h,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(h){for(var o=h.start,r=h.end,l=o.row,c=r.row,a=this.ranges,d=0,m=a.length;d<m;d++){var y=a[d];if(y.end.row>=l)break}if(h.action=="insert")for(var b=c-l,E=-o.column+r.column;d<m;d++){var y=a[d];if(y.start.row>l)break;if(y.start.row==l&&y.start.column>=o.column&&(y.start.column==o.column&&this.$bias<=0||(y.start.column+=E,y.start.row+=b)),y.end.row==l&&y.end.column>=o.column){if(y.end.column==o.column&&this.$bias<0)continue;y.end.column==o.column&&E>0&&d<m-1&&y.end.column>y.start.column&&y.end.column==a[d+1].start.column&&(y.end.column-=E),y.end.column+=E,y.end.row+=b}}else for(var b=l-c,E=o.column-r.column;d<m;d++){var y=a[d];if(y.start.row>c)break;y.end.row<c&&(l<y.end.row||l==y.end.row&&o.column<y.end.column)?(y.end.row=l,y.end.column=o.column):y.end.row==c?y.end.column<=r.column?(b||y.end.column>o.column)&&(y.end.column=o.column,y.end.row=o.row):(y.end.column+=E,y.end.row+=b):y.end.row>c&&(y.end.row+=b),y.start.row<c&&(l<y.start.row||l==y.start.row&&o.column<y.start.column)?(y.start.row=l,y.start.column=o.column):y.start.row==c?y.start.column<=r.column?(b||y.start.column>o.column)&&(y.start.column=o.column,y.start.row=o.row):(y.start.column+=E,y.start.row+=b):y.start.row>c&&(y.start.row+=b)}if(b!=0&&d<m)for(;d<m;d++){var y=a[d];y.start.row+=b,y.end.row+=b}},s}();g.prototype.comparePoints=f,i.RangeList=g}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(n,i,p){var u=this&&this.__extends||function(){var l=function(c,a){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,m){d.__proto__=m}||function(d,m){for(var y in m)Object.prototype.hasOwnProperty.call(m,y)&&(d[y]=m[y])},l(c,a)};return function(c,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");l(c,a);function d(){this.constructor=c}c.prototype=a===null?Object.create(a):(d.prototype=a.prototype,new d)}}(),f=n("../range_list").RangeList,g=function(l){u(c,l);function c(a,d){var m=l.call(this)||this;return m.foldLine=null,m.placeholder=d,m.range=a,m.start=a.start,m.end=a.end,m.sameRow=a.start.row==a.end.row,m.subFolds=m.ranges=[],m}return c.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},c.prototype.setFoldLine=function(a){this.foldLine=a,this.subFolds.forEach(function(d){d.setFoldLine(a)})},c.prototype.clone=function(){var a=this.range.clone(),d=new c(a,this.placeholder);return this.subFolds.forEach(function(m){d.subFolds.push(m.clone())}),d.collapseChildren=this.collapseChildren,d},c.prototype.addSubFold=function(a){if(!this.range.isEqual(a)){h(a,this.start);for(var E=a.start.row,S=a.start.column,d=0,m=-1;d<this.subFolds.length&&(m=this.subFolds[d].range.compare(E,S),m==1);d++);var y=this.subFolds[d],b=0;if(m==0){if(y.range.containsRange(a))return y.addSubFold(a);b=1}for(var E=a.range.end.row,S=a.range.end.column,C=d,m=-1;C<this.subFolds.length&&(m=this.subFolds[C].range.compare(E,S),m==1);C++);m==0&&C++;for(var $=this.subFolds.splice(d,C-d,a),R=m==0?$.length-1:$.length,x=b;x<R;x++)a.addSubFold($[x]);return a.setFoldLine(this.foldLine),a}},c.prototype.restoreRange=function(a){return r(a,this.start)},c}(f);function s(l,c){l.row-=c.row,l.row==0&&(l.column-=c.column)}function h(l,c){s(l.start,c),s(l.end,c)}function o(l,c){l.row==0&&(l.column+=c.column),l.row+=c.row}function r(l,c){o(l.start,c),o(l.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,p){var u=n("../range").Range,f=n("./fold_line").FoldLine,g=n("./fold").Fold,s=n("../token_iterator").TokenIterator,h=n("../mouse/mouse_event").MouseEvent;function o(){this.getFoldAt=function(r,l,c){var a=this.getFoldLine(r);if(!a)return null;for(var d=a.folds,m=0;m<d.length;m++){var y=d[m].range;if(y.contains(r,l)){if(c==1&&y.isEnd(r,l)&&!y.isEmpty())continue;if(c==-1&&y.isStart(r,l)&&!y.isEmpty())continue;return d[m]}}},this.getFoldsInRange=function(r){var l=r.start,c=r.end,a=this.$foldData,d=[];l.column+=1,c.column-=1;for(var m=0;m<a.length;m++){var y=a[m].range.compareRange(r);if(y!=2){if(y==-2)break;for(var b=a[m].folds,E=0;E<b.length;E++){var S=b[E];if(y=S.range.compareRange(r),y==-2)break;if(y==2)continue;if(y==42)break;d.push(S)}}}return l.column-=1,c.column+=1,d},this.getFoldsInRangeList=function(r){if(Array.isArray(r)){var l=[];r.forEach(function(c){l=l.concat(this.getFoldsInRange(c))},this)}else var l=this.getFoldsInRange(r);return l},this.getAllFolds=function(){for(var r=[],l=this.$foldData,c=0;c<l.length;c++)for(var a=0;a<l[c].folds.length;a++)r.push(l[c].folds[a]);return r},this.getFoldStringAt=function(r,l,c,a){if(a=a||this.getFoldLine(r),!a)return null;for(var d={end:{column:0}},m,y,b=0;b<a.folds.length;b++){y=a.folds[b];var E=y.range.compareEnd(r,l);if(E==-1){m=this.getLine(y.start.row).substring(d.end.column,y.start.column);break}else if(E===0)return null;d=y}return m||(m=this.getLine(y.start.row).substring(d.end.column)),c==-1?m.substring(0,l-d.end.column):c==1?m.substring(l-d.end.column):m},this.getFoldLine=function(r,l){var c=this.$foldData,a=0;for(l&&(a=c.indexOf(l)),a==-1&&(a=0),a;a<c.length;a++){var d=c[a];if(d.start.row<=r&&d.end.row>=r)return d;if(d.end.row>r)return null}return null},this.getNextFoldLine=function(r,l){var c=this.$foldData,a=0;for(l&&(a=c.indexOf(l)),a==-1&&(a=0),a;a<c.length;a++){var d=c[a];if(d.end.row>=r)return d}return null},this.getFoldedRowCount=function(r,l){for(var c=this.$foldData,a=l-r+1,d=0;d<c.length;d++){var m=c[d],y=m.end.row,b=m.start.row;if(y>=l){b<l&&(b>=r?a-=l-b:a=0);break}else y>=r&&(b>=r?a-=y-b:a-=y-r+1)}return a},this.$addFoldLine=function(r){return this.$foldData.push(r),this.$foldData.sort(function(l,c){return l.start.row-c.start.row}),r},this.addFold=function(r,l){var c=this.$foldData,a=!1,d;r instanceof g?d=r:(d=new g(l,r),d.collapseChildren=l.collapseChildren),this.$clipRangeToDocument(d.range);var m=d.start.row,y=d.start.column,b=d.end.row,E=d.end.column,S=this.getFoldAt(m,y,1),C=this.getFoldAt(b,E,-1);if(S&&C==S)return S.addSubFold(d);S&&!S.range.isStart(m,y)&&this.removeFold(S),C&&!C.range.isEnd(b,E)&&this.removeFold(C);var $=this.getFoldsInRange(d.range);$.length>0&&(this.removeFolds($),d.collapseChildren||$.forEach(function(_){d.addSubFold(_)}));for(var R=0;R<c.length;R++){var x=c[R];if(b==x.start.row){x.addFold(d),a=!0;break}else if(m==x.end.row){if(x.addFold(d),a=!0,!d.sameRow){var k=c[R+1];if(k&&k.start.row==b){x.merge(k);break}}break}else if(b<=x.start.row)break}return a||(x=this.$addFoldLine(new f(this.$foldData,d))),this.$useWrapMode?this.$updateWrapData(x.start.row,x.start.row):this.$updateRowLengthCache(x.start.row,x.start.row),this.$modified=!0,this._signal("changeFold",{data:d,action:"add"}),d},this.addFolds=function(r){r.forEach(function(l){this.addFold(l)},this)},this.removeFold=function(r){var l=r.foldLine,c=l.start.row,a=l.end.row,d=this.$foldData,m=l.folds;if(m.length==1)d.splice(d.indexOf(l),1);else if(l.range.isEnd(r.end.row,r.end.column))m.pop(),l.end.row=m[m.length-1].end.row,l.end.column=m[m.length-1].end.column;else if(l.range.isStart(r.start.row,r.start.column))m.shift(),l.start.row=m[0].start.row,l.start.column=m[0].start.column;else if(r.sameRow)m.splice(m.indexOf(r),1);else{var y=l.split(r.start.row,r.start.column);m=y.folds,m.shift(),y.start.row=m[0].start.row,y.start.column=m[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(c,a):this.$updateRowLengthCache(c,a)),this.$modified=!0,this._signal("changeFold",{data:r,action:"remove"})},this.removeFolds=function(r){for(var l=[],c=0;c<r.length;c++)l.push(r[c]);l.forEach(function(a){this.removeFold(a)},this),this.$modified=!0},this.expandFold=function(r){this.removeFold(r),r.subFolds.forEach(function(l){r.restoreRange(l),this.addFold(l)},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(l){this.expandFold(l)},this)},this.unfold=function(r,l){var c,a;if(r==null)c=new u(0,0,this.getLength(),0),l==null&&(l=!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 a=[],r.forEach(function(m){a=a.concat(this.unfold(m))},this),a;c=r}a=this.getFoldsInRangeList(c);for(var d=a;a.length==1&&u.comparePoints(a[0].start,c.start)<0&&u.comparePoints(a[0].end,c.end)>0;)this.expandFolds(a),a=this.getFoldsInRangeList(c);if(l!=!1?this.removeFolds(a):this.expandFolds(a),d.length)return d},this.isRowFolded=function(r,l){return!!this.getFoldLine(r,l)},this.getRowFoldEnd=function(r,l){var c=this.getFoldLine(r,l);return c?c.end.row:r},this.getRowFoldStart=function(r,l){var c=this.getFoldLine(r,l);return c?c.start.row:r},this.getFoldDisplayLine=function(r,l,c,a,d){a==null&&(a=r.start.row),d==null&&(d=0),l==null&&(l=r.end.row),c==null&&(c=this.getLine(l).length);var m=this.doc,y="";return r.walk(function(b,E,S,C){if(!(E<a)){if(E==a){if(S<d)return;C=Math.max(d,C)}b!=null?y+=b:y+=m.getLine(E).substring(C,S)}},l,c),y},this.getDisplayLine=function(r,l,c,a){var d=this.getFoldLine(r);if(d)return this.getFoldDisplayLine(d,r,l,c,a);var m;return m=this.doc.getLine(r),m.substring(a||0,l||m.length)},this.$cloneFoldData=function(){var r=[];return r=this.$foldData.map(function(l){var c=l.folds.map(function(a){return a.clone()});return new f(r,c)}),r},this.toggleFold=function(r){var l=this.selection,c=l.getRange(),a,d;if(c.isEmpty()){var m=c.start;if(a=this.getFoldAt(m.row,m.column),a){this.expandFold(a);return}else(d=this.findMatchingBracket(m))?c.comparePoint(d)==1?c.end=d:(c.start=d,c.start.column++,c.end.column--):(d=this.findMatchingBracket({row:m.row,column:m.column+1}))?(c.comparePoint(d)==1?c.end=d:c.start=d,c.start.column++):c=this.getCommentFoldRange(m.row,m.column)||c}else{var y=this.getFoldsInRange(c);if(r&&y.length){this.expandFolds(y);return}else y.length==1&&(a=y[0])}if(a||(a=this.getFoldAt(c.start.row,c.start.column)),a&&a.range.toString()==c.toString()){this.expandFold(a);return}var b="...";if(!c.isMultiLine()){if(b=this.getTextRange(c),b.length<4)return;b=b.trim().substring(0,2)+".."}this.addFold(b,c)},this.getCommentFoldRange=function(r,l,c){var a=new s(this,r,l),d=a.getCurrentToken(),m=d&&d.type;if(d&&/^comment|string/.test(m)){m=m.match(/comment|string/)[0],m=="comment"&&(m+="|doc-start|\\.doc");var y=new RegExp(m),b=new u;if(c!=1){do d=a.stepBackward();while(d&&y.test(d.type)&&!/^comment.end/.test(d.type));d=a.stepForward()}if(b.start.row=a.getCurrentTokenRow(),b.start.column=a.getCurrentTokenColumn()+(/^comment.start/.test(d.type)?d.value.length:2),a=new s(this,r,l),c!=-1){var E=-1;do if(d=a.stepForward(),E==-1){var S=this.getState(a.$row);y.test(S)||(E=a.$row)}else if(a.$row>E)break;while(d&&y.test(d.type)&&!/^comment.start/.test(d.type));d=a.stepBackward()}else d=a.getCurrentToken();return b.end.row=a.getCurrentTokenRow(),b.end.column=a.getCurrentTokenColumn(),/^comment.end/.test(d.type)||(b.end.column+=d.value.length-2),b}},this.foldAll=function(r,l,c,a){c==null&&(c=1e5);var d=this.foldWidgets;if(d){l=l||this.getLength(),r=r||0;for(var m=r;m<l;m++)if(d[m]==null&&(d[m]=this.getFoldWidget(m)),d[m]=="start"&&!(a&&!a(m))){var y=this.getFoldWidgetRange(m);y&&y.isMultiLine()&&y.end.row<=l&&y.start.row>=r&&(m=y.end.row,y.collapseChildren=c,this.addFold("...",y))}}},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(l){for(var c=r.getTokens(l),a=0;a<c.length;a++){var d=c[a];if(!(d.type=="text"&&/^\s+$/.test(d.value)))return!!/comment/.test(d.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 l=this.$foldMode;this.$setFolding(null),this.$setFolding(l)}},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,l){var c=this.foldWidgets;if(!c||l&&c[r])return{};for(var a=r-1,d;a>=0;){var m=c[a];if(m==null&&(m=c[a]=this.getFoldWidget(a)),m=="start"){var y=this.getFoldWidgetRange(a);if(d||(d=y),y&&y.end.row>=r)break}a--}return{range:a!==-1&&y,firstRange:d}},this.onFoldWidgetClick=function(r,l){l instanceof h&&(l=l.domEvent);var c={children:l.shiftKey,all:l.ctrlKey||l.metaKey,siblings:l.altKey},a=this.$toggleFoldWidget(r,c);if(!a){var d=l.target||l.srcElement;d&&/ace_fold-widget/.test(d.className)&&(d.className+=" ace_invalid")}},this.$toggleFoldWidget=function(r,l){if(this.getFoldWidget){var c=this.getFoldWidget(r),a=this.getLine(r),d=c==="end"?-1:1,m=this.getFoldAt(r,d===-1?0:a.length,d);if(m)return l.children||l.all?this.removeFold(m):this.expandFold(m),m;var y=this.getFoldWidgetRange(r,!0);if(y&&!y.isMultiLine()&&(m=this.getFoldAt(y.start.row,y.start.column,1),m&&y.isEqual(m.range)))return this.removeFold(m),m;if(l.siblings){var b=this.getParentFoldRangeData(r);if(b.range)var E=b.range.start.row+1,S=b.range.end.row;this.foldAll(E,S,l.all?1e4:0)}else l.children?(S=y?y.end.row:this.getLength(),this.foldAll(r+1,S,l.all?1e4:0)):y&&(l.all&&(y.collapseChildren=1e4),this.addFold("...",y));return y}},this.toggleFoldWidget=function(r){var l=this.selection.getCursor().row;l=this.getRowFoldStart(l);var c=this.$toggleFoldWidget(l,{});if(!c){var a=this.getParentFoldRangeData(l,!0);if(c=a.range||a.firstRange,c){l=c.start.row;var d=this.getFoldAt(l,this.getLine(l).length,1);d?this.removeFold(d):this.addFold("...",c)}}},this.updateFoldWidgets=function(r){var l=r.start.row,c=r.end.row-l;if(c===0)this.foldWidgets[l]=null;else if(r.action=="remove")this.foldWidgets.splice(l,c+1,null);else{var a=Array(c+1);a.unshift(l,1),this.foldWidgets.splice.apply(this.foldWidgets,a)}},this.tokenizerUpdateFoldWidgets=function(r){var l=r.data;l.first!=l.last&&this.foldWidgets.length>l.first&&this.foldWidgets.splice(l.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,p){var u=n("../token_iterator").TokenIterator,f=n("../range").Range;function g(){this.findMatchingBracket=function(s,h){if(s.column==0)return null;var o=h||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 h=this.getLine(s.row),o=!0,r,l=h.charAt(s.column-1),c=l&&l.match(/([\(\[\{])|([\)\]\}])/);if(c||(l=h.charAt(s.column),s={row:s.row,column:s.column+1},c=l&&l.match(/([\(\[\{])|([\)\]\}])/),o=!1),!c)return null;if(c[1]){var a=this.$findClosingBracket(c[1],s);if(!a)return null;r=f.fromPoints(s,a),o||(r.end.column++,r.start.column--),r.cursor=r.end}else{var a=this.$findOpeningBracket(c[2],s);if(!a)return null;r=f.fromPoints(a,s),o||(r.start.column++,r.end.column--),r.cursor=r.start}return r},this.getMatchingBracketRanges=function(s,h){var o=this.getLine(s.row),r=/([\(\[\{])|([\)\]\}])/,l=!h&&o.charAt(s.column-1),c=l&&l.match(r);if(c||(l=(h===void 0||h)&&o.charAt(s.column),s={row:s.row,column:s.column+1},c=l&&l.match(r)),!c)return null;var a=new f(s.row,s.column-1,s.row,s.column),d=c[1]?this.$findClosingBracket(c[1],s):this.$findOpeningBracket(c[2],s);if(!d)return[a];var m=new f(d.row,d.column,d.row,d.column+1);return[a,m]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(s,h,o){var r=this.$brackets[s],l=1,c=new u(this,h.row,h.column),a=c.getCurrentToken();if(a||(a=c.stepForward()),!!a){o||(o=new RegExp("(\\.?"+a.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var d=h.column-c.getCurrentTokenColumn()-2,m=a.value;;){for(;d>=0;){var y=m.charAt(d);if(y==r){if(l-=1,l==0)return{row:c.getCurrentTokenRow(),column:d+c.getCurrentTokenColumn()}}else y==s&&(l+=1);d-=1}do a=c.stepBackward();while(a&&!o.test(a.type));if(a==null)break;m=a.value,d=m.length-1}return null}},this.$findClosingBracket=function(s,h,o){var r=this.$brackets[s],l=1,c=new u(this,h.row,h.column),a=c.getCurrentToken();if(a||(a=c.stepForward()),!!a){o||(o=new RegExp("(\\.?"+a.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var d=h.column-c.getCurrentTokenColumn();;){for(var m=a.value,y=m.length;d<y;){var b=m.charAt(d);if(b==r){if(l-=1,l==0)return{row:c.getCurrentTokenRow(),column:d+c.getCurrentTokenColumn()}}else b==s&&(l+=1);d+=1}do a=c.stepForward();while(a&&!o.test(a.type));if(a==null)break;d=0}return null}},this.getMatchingTags=function(s){var h=new u(this,s.row,s.column),o=this.$findTagName(h);if(o){var r=h.stepBackward();return r.value==="<"?this.$findClosingTag(h,o):this.$findOpeningTag(h,o)}},this.$findTagName=function(s){var h=s.getCurrentToken(),o=!1,r=!1;if(h&&h.type.indexOf("tag-name")===-1)do r?h=s.stepBackward():h=s.stepForward(),h&&(h.value==="/>"?r=!0:h.type.indexOf("tag-name")!==-1&&(o=!0));while(h&&!o);return h},this.$findClosingTag=function(s,h){var o,r=h.value,l=h.value,c=0,a=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);h=s.stepForward();var d=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+h.value.length),m=!1;do if(o=h,h=s.stepForward(),h){if(h.value===">"&&!m){var y=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);m=!0}if(h.type.indexOf("tag-name")!==-1){if(r=h.value,l===r){if(o.value==="<")c++;else if(o.value==="</"&&(c--,c<0)){s.stepBackward();var b=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+2);h=s.stepForward();var E=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+h.value.length);if(h=s.stepForward(),h&&h.value===">")var S=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);else return}}}else if(l===r&&h.value==="/>"&&(c--,c<0))var b=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+2),E=b,S=E,y=new f(d.end.row,d.end.column,d.end.row,d.end.column+1)}while(h&&c>=0);if(a&&y&&b&&S&&d&&E)return{openTag:new f(a.start.row,a.start.column,y.end.row,y.end.column),closeTag:new f(b.start.row,b.start.column,S.end.row,S.end.column),openTagName:d,closeTagName:E}},this.$findOpeningTag=function(s,h){var o=s.getCurrentToken(),r=h.value,l=0,c=s.getCurrentTokenRow(),a=s.getCurrentTokenColumn(),d=a+2,m=new f(c,a,c,d);s.stepForward();var y=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+h.value.length);if(h=s.stepForward(),!(!h||h.value!==">")){var b=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);s.stepBackward(),s.stepBackward();do if(h=o,c=s.getCurrentTokenRow(),a=s.getCurrentTokenColumn(),d=a+h.value.length,o=s.stepBackward(),h){if(h.type.indexOf("tag-name")!==-1){if(r===h.value)if(o.value==="<"){if(l++,l>0){var E=new f(c,a,c,d),S=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);do h=s.stepForward();while(h&&h.value!==">");var C=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1)}}else o.value==="</"&&l--}else if(h.value==="/>"){for(var $=0,R=o;R;){if(R.type.indexOf("tag-name")!==-1&&R.value===r){l--;break}else if(R.value==="<")break;R=s.stepBackward(),$++}for(var x=0;x<$;x++)s.stepForward()}}while(o&&l<=0);if(S&&C&&m&&b&&E&&y)return{openTag:new f(S.start.row,S.start.column,C.end.row,C.end.column),closeTag:new f(m.start.row,m.start.column,b.end.row,b.end.column),openTagName:E,closeTagName:y}}}}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/edit_session/folding","ace/edit_session/bracket_match"],function(n,i,p){var u=n("./lib/oop"),f=n("./lib/lang"),g=n("./bidihandler").BidiHandler,s=n("./config"),h=n("./lib/event_emitter").EventEmitter,o=n("./selection").Selection,r=n("./mode/text").Mode,l=n("./range").Range,c=n("./document").Document,a=n("./background_tokenizer").BackgroundTokenizer,d=n("./search_highlight").SearchHighlight,m=function(){function _(v,M){this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$foldData=[],this.id="session"+ ++_.$uid,this.$foldData.toString=function(){return this.join(`
999
+ `)},this.bgTokenizer=new a(new r().getTokenizer(),this);var A=this;this.bgTokenizer.on("update",function(w){A._signal("tokenizerUpdate",w)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof v!="object"||!v.getLine)&&(v=new c(v)),this.setDocument(v),this.selection=new o(this),this.$bidiHandler=new g(this),s.resetOptions(this),this.setMode(M),s._signal("session",this),this.destroyed=!1}return _.prototype.setDocument=function(v){this.doc&&this.doc.off("change",this.$onChange),this.doc=v,v.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},_.prototype.getDocument=function(){return this.doc},_.prototype.$resetRowCache=function(v){if(!v){this.$docRowCache=[],this.$screenRowCache=[];return}var M=this.$docRowCache.length,A=this.$getRowCacheIndex(this.$docRowCache,v)+1;M>A&&(this.$docRowCache.splice(A,M),this.$screenRowCache.splice(A,M))},_.prototype.$getRowCacheIndex=function(v,M){for(var A=0,w=v.length-1;A<=w;){var L=A+w>>1,T=v[L];if(M>T)A=L+1;else if(M<T)w=L-1;else return L}return A-1},_.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},_.prototype.onChangeFold=function(v){var M=v.data;this.$resetRowCache(M.start.row)},_.prototype.onChange=function(v){this.$modified=!0,this.$bidiHandler.onChange(v),this.$resetRowCache(v.start.row);var M=this.$updateInternalDataOnChange(v);!this.$fromUndo&&this.$undoManager&&(M&&M.length&&(this.$undoManager.add({action:"removeFolds",folds:M},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(v,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(v),this._signal("change",v)},_.prototype.setValue=function(v){this.doc.setValue(v),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},_.prototype.toString=function(){return this.doc.getValue()},_.prototype.getSelection=function(){return this.selection},_.prototype.getState=function(v){return this.bgTokenizer.getState(v)},_.prototype.getTokens=function(v){return this.bgTokenizer.getTokens(v)},_.prototype.getTokenAt=function(v,M){var A=this.bgTokenizer.getTokens(v),w,L=0;if(M==null){var T=A.length-1;L=this.getLine(v).length}else for(var T=0;T<A.length&&(L+=A[T].value.length,!(L>=M));T++);return w=A[T],w?(w.index=T,w.start=L-w.value.length,w):null},_.prototype.setUndoManager=function(v){if(this.$undoManager=v,this.$informUndoManager&&this.$informUndoManager.cancel(),v){var M=this;v.addSession(this),this.$syncInformUndoManager=function(){M.$informUndoManager.cancel(),M.mergeUndoDeltas=!1},this.$informUndoManager=f.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},_.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},_.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},_.prototype.getTabString=function(){return this.getUseSoftTabs()?f.stringRepeat(" ",this.getTabSize()):" "},_.prototype.setUseSoftTabs=function(v){this.setOption("useSoftTabs",v)},_.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},_.prototype.setTabSize=function(v){this.setOption("tabSize",v)},_.prototype.getTabSize=function(){return this.$tabSize},_.prototype.isTabStop=function(v){return this.$useSoftTabs&&v.column%this.$tabSize===0},_.prototype.setNavigateWithinSoftTabs=function(v){this.setOption("navigateWithinSoftTabs",v)},_.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},_.prototype.setOverwrite=function(v){this.setOption("overwrite",v)},_.prototype.getOverwrite=function(){return this.$overwrite},_.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},_.prototype.addGutterDecoration=function(v,M){this.$decorations[v]||(this.$decorations[v]=""),this.$decorations[v]+=" "+M,this._signal("changeBreakpoint",{})},_.prototype.removeGutterDecoration=function(v,M){this.$decorations[v]=(this.$decorations[v]||"").replace(" "+M,""),this._signal("changeBreakpoint",{})},_.prototype.getBreakpoints=function(){return this.$breakpoints},_.prototype.setBreakpoints=function(v){this.$breakpoints=[];for(var M=0;M<v.length;M++)this.$breakpoints[v[M]]="ace_breakpoint";this._signal("changeBreakpoint",{})},_.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},_.prototype.setBreakpoint=function(v,M){M===void 0&&(M="ace_breakpoint"),M?this.$breakpoints[v]=M:delete this.$breakpoints[v],this._signal("changeBreakpoint",{})},_.prototype.clearBreakpoint=function(v){delete this.$breakpoints[v],this._signal("changeBreakpoint",{})},_.prototype.addMarker=function(v,M,A,w){var L=this.$markerId++,T={range:v,type:A||"line",renderer:typeof A=="function"?A:null,clazz:M,inFront:!!w,id:L};return w?(this.$frontMarkers[L]=T,this._signal("changeFrontMarker")):(this.$backMarkers[L]=T,this._signal("changeBackMarker")),L},_.prototype.addDynamicMarker=function(v,M){if(v.update){var A=this.$markerId++;return v.id=A,v.inFront=!!M,M?(this.$frontMarkers[A]=v,this._signal("changeFrontMarker")):(this.$backMarkers[A]=v,this._signal("changeBackMarker")),v}},_.prototype.removeMarker=function(v){var M=this.$frontMarkers[v]||this.$backMarkers[v];if(M){var A=M.inFront?this.$frontMarkers:this.$backMarkers;delete A[v],this._signal(M.inFront?"changeFrontMarker":"changeBackMarker")}},_.prototype.getMarkers=function(v){return v?this.$frontMarkers:this.$backMarkers},_.prototype.highlight=function(v){if(!this.$searchHighlight){var M=new d(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(M)}this.$searchHighlight.setRegexp(v)},_.prototype.highlightLines=function(v,M,A,w){typeof M!="number"&&(A=M,M=v),A||(A="ace_step");var L=new l(v,0,M,1/0);return L.id=this.addMarker(L,A,"fullLine",w),L},_.prototype.setAnnotations=function(v){this.$annotations=v,this._signal("changeAnnotation",{})},_.prototype.getAnnotations=function(){return this.$annotations||[]},_.prototype.clearAnnotations=function(){this.setAnnotations([])},_.prototype.$detectNewLine=function(v){var M=v.match(/^.*?(\r?\n)/m);M?this.$autoNewLine=M[1]:this.$autoNewLine=`
1000
+ `},_.prototype.getWordRange=function(v,M){var A=this.getLine(v),w=!1;if(M>0&&(w=!!A.charAt(M-1).match(this.tokenRe)),w||(w=!!A.charAt(M).match(this.tokenRe)),w)var L=this.tokenRe;else if(/^\s+$/.test(A.slice(M-1,M+1)))var L=/\s/;else var L=this.nonTokenRe;var T=M;if(T>0){do T--;while(T>=0&&A.charAt(T).match(L));T++}for(var O=M;O<A.length&&A.charAt(O).match(L);)O++;return new l(v,T,v,O)},_.prototype.getAWordRange=function(v,M){for(var A=this.getWordRange(v,M),w=this.getLine(A.end.row);w.charAt(A.end.column).match(/[ \t]/);)A.end.column+=1;return A},_.prototype.setNewLineMode=function(v){this.doc.setNewLineMode(v)},_.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},_.prototype.setUseWorker=function(v){this.setOption("useWorker",v)},_.prototype.getUseWorker=function(){return this.$useWorker},_.prototype.onReloadTokenizer=function(v){var M=v.data;this.bgTokenizer.start(M.first),this._signal("tokenizerUpdate",v)},_.prototype.setMode=function(v,M){if(v&&typeof v=="object"){if(v.getTokenizer)return this.$onChangeMode(v);var A=v,w=A.path}else w=v||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new r),this.$modes[w]&&!A){this.$onChangeMode(this.$modes[w]),M&&M();return}this.$modeId=w,s.loadModule(["mode",w],(function(L){if(this.$modeId!==w)return M&&M();this.$modes[w]&&!A?this.$onChangeMode(this.$modes[w]):L&&L.Mode&&(L=new L.Mode(A),A||(this.$modes[w]=L,L.$id=w),this.$onChangeMode(L)),M&&M()}).bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},_.prototype.$onChangeMode=function(v,M){if(M||(this.$modeId=v.$id),this.$mode!==v){var A=this.$mode;this.$mode=v,this.$stopWorker(),this.$useWorker&&this.$startWorker();var w=v.getTokenizer();if(w.on!==void 0){var L=this.onReloadTokenizer.bind(this);w.on("update",L)}this.bgTokenizer.setTokenizer(w),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=v.tokenRe,this.nonTokenRe=v.nonTokenRe,M||(v.attachToSession&&v.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(v.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:A,mode:v}))}},_.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},_.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(v){s.warn("Could not load worker",v),this.$worker=null}},_.prototype.getMode=function(){return this.$mode},_.prototype.setScrollTop=function(v){this.$scrollTop===v||isNaN(v)||(this.$scrollTop=v,this._signal("changeScrollTop",v))},_.prototype.getScrollTop=function(){return this.$scrollTop},_.prototype.setScrollLeft=function(v){this.$scrollLeft===v||isNaN(v)||(this.$scrollLeft=v,this._signal("changeScrollLeft",v))},_.prototype.getScrollLeft=function(){return this.$scrollLeft},_.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},_.prototype.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var v=0;return this.lineWidgets.forEach(function(M){M&&M.screenWidth>v&&(v=M.screenWidth)}),this.lineWidgetWidth=v},_.prototype.$computeWidth=function(v){if(this.$modified||v){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var M=this.doc.getAllLines(),A=this.$rowLengthCache,w=0,L=0,T=this.$foldData[L],O=T?T.start.row:1/0,I=M.length,F=0;F<I;F++){if(F>O){if(F=T.end.row+1,F>=I)break;T=this.$foldData[L++],O=T?T.start.row:1/0}A[F]==null&&(A[F]=this.$getStringScreenWidth(M[F])[0]),A[F]>w&&(w=A[F])}this.screenWidth=w}},_.prototype.getLine=function(v){return this.doc.getLine(v)},_.prototype.getLines=function(v,M){return this.doc.getLines(v,M)},_.prototype.getLength=function(){return this.doc.getLength()},_.prototype.getTextRange=function(v){return this.doc.getTextRange(v||this.selection.getRange())},_.prototype.insert=function(v,M){return this.doc.insert(v,M)},_.prototype.remove=function(v){return this.doc.remove(v)},_.prototype.removeFullLines=function(v,M){return this.doc.removeFullLines(v,M)},_.prototype.undoChanges=function(v,M){if(v.length){this.$fromUndo=!0;for(var A=v.length-1;A!=-1;A--){var w=v[A];w.action=="insert"||w.action=="remove"?this.doc.revertDelta(w):w.folds&&this.addFolds(w.folds)}!M&&this.$undoSelect&&(v.selectionBefore?this.selection.fromJSON(v.selectionBefore):this.selection.setRange(this.$getUndoSelection(v,!0))),this.$fromUndo=!1}},_.prototype.redoChanges=function(v,M){if(v.length){this.$fromUndo=!0;for(var A=0;A<v.length;A++){var w=v[A];(w.action=="insert"||w.action=="remove")&&this.doc.$safeApplyDelta(w)}!M&&this.$undoSelect&&(v.selectionAfter?this.selection.fromJSON(v.selectionAfter):this.selection.setRange(this.$getUndoSelection(v,!1))),this.$fromUndo=!1}},_.prototype.setUndoSelect=function(v){this.$undoSelect=v},_.prototype.$getUndoSelection=function(v,M){function A(I){return M?I.action!=="insert":I.action==="insert"}for(var w,L,T=0;T<v.length;T++){var O=v[T];if(O.start){if(!w){A(O)?w=l.fromPoints(O.start,O.end):w=l.fromPoints(O.start,O.start);continue}A(O)?(L=O.start,w.compare(L.row,L.column)==-1&&w.setStart(L),L=O.end,w.compare(L.row,L.column)==1&&w.setEnd(L)):(L=O.start,w.compare(L.row,L.column)==-1&&(w=l.fromPoints(O.start,O.start)))}}return w},_.prototype.replace=function(v,M){return this.doc.replace(v,M)},_.prototype.moveText=function(v,M,A){var w=this.getTextRange(v),L=this.getFoldsInRange(v),T=l.fromPoints(M,M);if(!A){this.remove(v);var O=v.start.row-v.end.row,I=O?-v.end.column:v.start.column-v.end.column;I&&(T.start.row==v.end.row&&T.start.column>v.end.column&&(T.start.column+=I),T.end.row==v.end.row&&T.end.column>v.end.column&&(T.end.column+=I)),O&&T.start.row>=v.end.row&&(T.start.row+=O,T.end.row+=O)}if(T.end=this.insert(T.start,w),L.length){var F=v.start,D=T.start,O=D.row-F.row,I=D.column-F.column;this.addFolds(L.map(function(U){return U=U.clone(),U.start.row==F.row&&(U.start.column+=I),U.end.row==F.row&&(U.end.column+=I),U.start.row+=O,U.end.row+=O,U}))}return T},_.prototype.indentRows=function(v,M,A){A=A.replace(/\t/g,this.getTabString());for(var w=v;w<=M;w++)this.doc.insertInLine({row:w,column:0},A)},_.prototype.outdentRows=function(v){for(var M=v.collapseRows(),A=new l(0,0,0,0),w=this.getTabSize(),L=M.start.row;L<=M.end.row;++L){var T=this.getLine(L);A.start.row=L,A.end.row=L;for(var O=0;O<w&&T.charAt(O)==" ";++O);O<w&&T.charAt(O)==" "?(A.start.column=O,A.end.column=O+1):(A.start.column=0,A.end.column=O),this.remove(A)}},_.prototype.$moveLines=function(v,M,A){if(v=this.getRowFoldStart(v),M=this.getRowFoldEnd(M),A<0){var w=this.getRowFoldStart(v+A);if(w<0)return 0;var L=w-v}else if(A>0){var w=this.getRowFoldEnd(M+A);if(w>this.doc.getLength()-1)return 0;var L=w-M}else{v=this.$clipRowToDocument(v),M=this.$clipRowToDocument(M);var L=M-v+1}var T=new l(v,0,M,Number.MAX_VALUE),O=this.getFoldsInRange(T).map(function(F){return F=F.clone(),F.start.row+=L,F.end.row+=L,F}),I=A==0?this.doc.getLines(v,M):this.doc.removeFullLines(v,M);return this.doc.insertFullLines(v+L,I),O.length&&this.addFolds(O),L},_.prototype.moveLinesUp=function(v,M){return this.$moveLines(v,M,-1)},_.prototype.moveLinesDown=function(v,M){return this.$moveLines(v,M,1)},_.prototype.duplicateLines=function(v,M){return this.$moveLines(v,M,0)},_.prototype.$clipRowToDocument=function(v){return Math.max(0,Math.min(v,this.doc.getLength()-1))},_.prototype.$clipColumnToRow=function(v,M){return M<0?0:Math.min(this.doc.getLine(v).length,M)},_.prototype.$clipPositionToDocument=function(v,M){if(M=Math.max(0,M),v<0)v=0,M=0;else{var A=this.doc.getLength();v>=A?(v=A-1,M=this.doc.getLine(A-1).length):M=Math.min(this.doc.getLine(v).length,M)}return{row:v,column:M}},_.prototype.$clipRangeToDocument=function(v){v.start.row<0?(v.start.row=0,v.start.column=0):v.start.column=this.$clipColumnToRow(v.start.row,v.start.column);var M=this.doc.getLength()-1;return v.end.row>M?(v.end.row=M,v.end.column=this.doc.getLine(M).length):v.end.column=this.$clipColumnToRow(v.end.row,v.end.column),v},_.prototype.setUseWrapMode=function(v){if(v!=this.$useWrapMode){if(this.$useWrapMode=v,this.$modified=!0,this.$resetRowCache(0),v){var M=this.getLength();this.$wrapData=Array(M),this.$updateWrapData(0,M-1)}this._signal("changeWrapMode")}},_.prototype.getUseWrapMode=function(){return this.$useWrapMode},_.prototype.setWrapLimitRange=function(v,M){(this.$wrapLimitRange.min!==v||this.$wrapLimitRange.max!==M)&&(this.$wrapLimitRange={min:v,max:M},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},_.prototype.adjustWrapLimit=function(v,M){var A=this.$wrapLimitRange;A.max<0&&(A={min:M,max:M});var w=this.$constrainWrapLimit(v,A.min,A.max);return w!=this.$wrapLimit&&w>1?(this.$wrapLimit=w,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},_.prototype.$constrainWrapLimit=function(v,M,A){return M&&(v=Math.max(M,v)),A&&(v=Math.min(A,v)),v},_.prototype.getWrapLimit=function(){return this.$wrapLimit},_.prototype.setWrapLimit=function(v){this.setWrapLimitRange(v,v)},_.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},_.prototype.$updateInternalDataOnChange=function(v){var M=this.$useWrapMode,A=v.action,w=v.start,L=v.end,T=w.row,O=L.row,I=O-T,F=null;if(this.$updating=!0,I!=0)if(A==="remove"){this[M?"$wrapData":"$rowLengthCache"].splice(T,I);var D=this.$foldData;F=this.getFoldsInRange(v),this.removeFolds(F);var W=this.getFoldLine(L.row),G=0;if(W){W.addRemoveChars(L.row,L.column,w.column-L.column),W.shiftRow(-I);var U=this.getFoldLine(T);U&&U!==W&&(U.merge(W),W=U),G=D.indexOf(W)+1}for(G;G<D.length;G++){var W=D[G];W.start.row>=L.row&&W.shiftRow(-I)}O=T}else{var H=Array(I);H.unshift(T,0);var X=M?this.$wrapData:this.$rowLengthCache;X.splice.apply(X,H);var D=this.$foldData,W=this.getFoldLine(T),G=0;if(W){var J=W.range.compareInside(w.row,w.column);J==0?(W=W.split(w.row,w.column),W&&(W.shiftRow(I),W.addRemoveChars(O,0,L.column-w.column))):J==-1&&(W.addRemoveChars(T,0,L.column-w.column),W.shiftRow(I)),G=D.indexOf(W)+1}for(G;G<D.length;G++){var W=D[G];W.start.row>=T&&W.shiftRow(I)}}else{I=Math.abs(v.start.column-v.end.column),A==="remove"&&(F=this.getFoldsInRange(v),this.removeFolds(F),I=-I);var W=this.getFoldLine(T);W&&W.addRemoveChars(T,w.column,I)}return M&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,M?this.$updateWrapData(T,O):this.$updateRowLengthCache(T,O),F},_.prototype.$updateRowLengthCache=function(v,M,A){this.$rowLengthCache[v]=null,this.$rowLengthCache[M]=null},_.prototype.$updateWrapData=function(v,M){var A=this.doc.getAllLines(),w=this.getTabSize(),L=this.$wrapData,T=this.$wrapLimit,O,I,F=v;for(M=Math.min(M,A.length-1);F<=M;)I=this.getFoldLine(F,I),I?(O=[],I.walk((function(D,W,G,U){var H;if(D!=null){H=this.$getDisplayTokens(D,O.length),H[0]=E;for(var X=1;X<H.length;X++)H[X]=S}else H=this.$getDisplayTokens(A[W].substring(U,G),O.length);O=O.concat(H)}).bind(this),I.end.row,A[I.end.row].length+1),L[I.start.row]=this.$computeWrapSplits(O,T,w),F=I.end.row+1):(O=this.$getDisplayTokens(A[F]),L[F]=this.$computeWrapSplits(O,T,w),F++)},_.prototype.$computeWrapSplits=function(v,M,A){if(v.length==0)return[];var w=[],L=v.length,T=0,O=0,I=this.$wrapAsCode,F=this.$indentedSoftWrap,D=M<=Math.max(2*A,8)||F===!1?0:Math.floor(M/2);function W(){var J=0;if(D===0)return J;if(F)for(var z=0;z<v.length;z++){var Y=v[z];if(Y==$)J+=1;else if(Y==R)J+=A;else{if(Y==x)continue;break}}return I&&F!==!1&&(J+=A),Math.min(J,D)}function G(J){for(var z=J-T,Y=T;Y<J;Y++){var K=v[Y];(K===12||K===2)&&(z-=1)}w.length||(U=W(),w.indent=U),O+=z,w.push(O),T=J}for(var U=0;L-T>M-U;){var H=T+M-U;if(v[H-1]>=$&&v[H]>=$){G(H);continue}if(v[H]==E||v[H]==S){for(H;H!=T-1&&v[H]!=E;H--);if(H>T){G(H);continue}for(H=T+M,H;H<v.length&&v[H]==S;H++);if(H==v.length)break;G(H);continue}for(var X=Math.max(H-(M-(M>>2)),T-1);H>X&&v[H]<E;)H--;if(I){for(;H>X&&v[H]<E;)H--;for(;H>X&&v[H]==C;)H--}else for(;H>X&&v[H]<$;)H--;if(H>X){G(++H);continue}H=T+M,v[H]==b&&H--,G(H-U)}return w},_.prototype.$getDisplayTokens=function(v,M){var A=[],w;M=M||0;for(var L=0;L<v.length;L++){var T=v.charCodeAt(L);if(T==9){w=this.getScreenTabSize(A.length+M),A.push(R);for(var O=1;O<w;O++)A.push(x)}else T==32?A.push($):T>39&&T<48||T>57&&T<64?A.push(C):T>=4352&&k(T)?A.push(y,b):A.push(y)}return A},_.prototype.$getStringScreenWidth=function(v,M,A){if(M==0)return[0,0];M==null&&(M=1/0),A=A||0;var w,L;for(L=0;L<v.length&&(w=v.charCodeAt(L),w==9?A+=this.getScreenTabSize(A):w>=4352&&k(w)?A+=2:A+=1,!(A>M));L++);return[A,L]},_.prototype.getRowLength=function(v){var M=1;return this.lineWidgets&&(M+=this.lineWidgets[v]&&this.lineWidgets[v].rowCount||0),!this.$useWrapMode||!this.$wrapData[v]?M:this.$wrapData[v].length+M},_.prototype.getRowLineCount=function(v){return!this.$useWrapMode||!this.$wrapData[v]?1:this.$wrapData[v].length+1},_.prototype.getRowWrapIndent=function(v){if(this.$useWrapMode){var M=this.screenToDocumentPosition(v,Number.MAX_VALUE),A=this.$wrapData[M.row];return A.length&&A[0]<M.column?A.indent:0}else return 0},_.prototype.getScreenLastRowColumn=function(v){var M=this.screenToDocumentPosition(v,Number.MAX_VALUE);return this.documentToScreenColumn(M.row,M.column)},_.prototype.getDocumentLastRowColumn=function(v,M){var A=this.documentToScreenRow(v,M);return this.getScreenLastRowColumn(A)},_.prototype.getDocumentLastRowColumnPosition=function(v,M){var A=this.documentToScreenRow(v,M);return this.screenToDocumentPosition(A,Number.MAX_VALUE/10)},_.prototype.getRowSplitData=function(v){if(this.$useWrapMode)return this.$wrapData[v]},_.prototype.getScreenTabSize=function(v){return this.$tabSize-(v%this.$tabSize|0)},_.prototype.screenToDocumentRow=function(v,M){return this.screenToDocumentPosition(v,M).row},_.prototype.screenToDocumentColumn=function(v,M){return this.screenToDocumentPosition(v,M).column},_.prototype.screenToDocumentPosition=function(v,M,A){if(v<0)return{row:0,column:0};var w,L=0,T=0,O,I=0,F=0,D=this.$screenRowCache,W=this.$getRowCacheIndex(D,v),G=D.length;if(G&&W>=0)var I=D[W],L=this.$docRowCache[W],U=v>D[G-1];else var U=!G;for(var H=this.getLength()-1,X=this.getNextFoldLine(L),J=X?X.start.row:1/0;I<=v&&(F=this.getRowLength(L),!(I+F>v||L>=H));)I+=F,L++,L>J&&(L=X.end.row+1,X=this.getNextFoldLine(L,X),J=X?X.start.row:1/0),U&&(this.$docRowCache.push(L),this.$screenRowCache.push(I));if(X&&X.start.row<=L)w=this.getFoldDisplayLine(X),L=X.start.row;else{if(I+F<=v||L>H)return{row:H,column:this.getLine(H).length};w=this.getLine(L),X=null}var z=0,Y=Math.floor(v-I);if(this.$useWrapMode){var K=this.$wrapData[L];K&&(O=K[Y],Y>0&&K.length&&(z=K.indent,T=K[Y-1]||K[K.length-1],w=w.substring(T)))}return A!==void 0&&this.$bidiHandler.isBidiRow(I+Y,L,Y)&&(M=this.$bidiHandler.offsetToCol(A)),T+=this.$getStringScreenWidth(w,M-z)[1],this.$useWrapMode&&T>=O&&(T=O-1),X?X.idxToPosition(T):{row:L,column:T}},_.prototype.documentToScreenPosition=function(v,M){if(typeof M>"u")var A=this.$clipPositionToDocument(v.row,v.column);else A=this.$clipPositionToDocument(v,M);v=A.row,M=A.column;var w=0,L=null,T=null;T=this.getFoldAt(v,M,1),T&&(v=T.start.row,M=T.start.column);var O,I=0,F=this.$docRowCache,D=this.$getRowCacheIndex(F,v),W=F.length;if(W&&D>=0)var I=F[D],w=this.$screenRowCache[D],G=v>F[W-1];else var G=!W;for(var U=this.getNextFoldLine(I),H=U?U.start.row:1/0;I<v;){if(I>=H){if(O=U.end.row+1,O>v)break;U=this.getNextFoldLine(O,U),H=U?U.start.row:1/0}else O=I+1;w+=this.getRowLength(I),I=O,G&&(this.$docRowCache.push(I),this.$screenRowCache.push(w))}var X="";U&&I>=H?(X=this.getFoldDisplayLine(U,v,M),L=U.start.row):(X=this.getLine(v).substring(0,M),L=v);var J=0;if(this.$useWrapMode){var z=this.$wrapData[L];if(z){for(var Y=0;X.length>=z[Y];)w++,Y++;X=X.substring(z[Y-1]||0,X.length),J=Y>0?z.indent:0}}return this.lineWidgets&&this.lineWidgets[I]&&this.lineWidgets[I].rowsAbove&&(w+=this.lineWidgets[I].rowsAbove),{row:w,column:J+this.$getStringScreenWidth(X)[0]}},_.prototype.documentToScreenColumn=function(v,M){return this.documentToScreenPosition(v,M).column},_.prototype.documentToScreenRow=function(v,M){return this.documentToScreenPosition(v,M).row},_.prototype.getScreenLength=function(){var v=0,M=null;if(this.$useWrapMode)for(var L=this.$wrapData.length,T=0,w=0,M=this.$foldData[w++],O=M?M.start.row:1/0;T<L;){var I=this.$wrapData[T];v+=I?I.length+1:1,T++,T>O&&(T=M.end.row+1,M=this.$foldData[w++],O=M?M.start.row:1/0)}else{v=this.getLength();for(var A=this.$foldData,w=0;w<A.length;w++)M=A[w],v-=M.end.row-M.start.row}return this.lineWidgets&&(v+=this.$getWidgetScreenLength()),v},_.prototype.$setFontMetrics=function(v){this.$enableVarChar&&(this.$getStringScreenWidth=function(M,A,w){if(A===0)return[0,0];A||(A=1/0),w=w||0;var L,T;for(T=0;T<M.length&&(L=M.charAt(T),L===" "?w+=this.getScreenTabSize(w):w+=v.getCharacterWidth(L),!(w>A));T++);return[w,T]})},_.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()},_}();m.$uid=0,m.prototype.$modes=s.$modes,m.prototype.getValue=m.prototype.toString,m.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},m.prototype.$overwrite=!1,m.prototype.$mode=null,m.prototype.$modeId=null,m.prototype.$scrollTop=0,m.prototype.$scrollLeft=0,m.prototype.$wrapLimit=80,m.prototype.$useWrapMode=!1,m.prototype.$wrapLimitRange={min:null,max:null},m.prototype.lineWidgets=null,m.prototype.isFullWidth=k,u.implement(m.prototype,h);var y=1,b=2,E=3,S=4,C=9,$=10,R=11,x=12;function k(_){return _<4352?!1:_>=4352&&_<=4447||_>=4515&&_<=4519||_>=4602&&_<=4607||_>=9001&&_<=9002||_>=11904&&_<=11929||_>=11931&&_<=12019||_>=12032&&_<=12245||_>=12272&&_<=12283||_>=12288&&_<=12350||_>=12353&&_<=12438||_>=12441&&_<=12543||_>=12549&&_<=12589||_>=12593&&_<=12686||_>=12688&&_<=12730||_>=12736&&_<=12771||_>=12784&&_<=12830||_>=12832&&_<=12871||_>=12880&&_<=13054||_>=13056&&_<=19903||_>=19968&&_<=42124||_>=42128&&_<=42182||_>=43360&&_<=43388||_>=44032&&_<=55203||_>=55216&&_<=55238||_>=55243&&_<=55291||_>=63744&&_<=64255||_>=65040&&_<=65049||_>=65072&&_<=65106||_>=65108&&_<=65126||_>=65128&&_<=65131||_>=65281&&_<=65376||_>=65504&&_<=65510}n("./edit_session/folding").Folding.call(m.prototype),n("./edit_session/bracket_match").BracketMatch.call(m.prototype),s.defineOptions(m.prototype,"session",{wrap:{set:function(_){if(!_||_=="off"?_=!1:_=="free"?_=!0:_=="printMargin"?_=-1:typeof _=="string"&&(_=parseInt(_,10)||!1),this.$wrap!=_)if(this.$wrap=_,!_)this.setUseWrapMode(!1);else{var v=typeof _=="number"?_:null;this.setWrapLimitRange(v,v),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(_){_=_=="auto"?this.$mode.type!="text":_!="text",_!=this.$wrapAsCode&&(this.$wrapAsCode=_,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(_){this.$useWorker=_,this.$stopWorker(),_&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(_){_=parseInt(_),_>0&&this.$tabSize!==_&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=_,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(_){this.setFoldStyle(_)},handlesSet:!0},overwrite:{set:function(_){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(_){this.doc.setNewLineMode(_)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(_){this.setMode(_)},get:function(){return this.$modeId},handlesSet:!0}}),i.EditSession=m}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(n,i,p){var u=n("./lib/lang"),f=n("./lib/oop"),g=n("./range").Range,s=function(){function o(){this.$options={}}return o.prototype.set=function(r){return f.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 l=this.$options,c=this.$matchIterator(r,l);if(!c)return!1;var a=null;return c.forEach(function(d,m,y,b){return a=new g(d,m,y,b),m==b&&l.start&&l.start.start&&l.skipCurrent!=!1&&a.isEqual(l.start)?(a=null,!1):!0}),a},o.prototype.findAll=function(r){var l=this.$options;if(!l.needle)return[];this.$assembleRegExp(l);var c=l.range,a=c?r.getLines(c.start.row,c.end.row):r.doc.getAllLines(),d=[],m=l.re;if(l.$isMultiLine){var y=m.length,b=a.length-y,E;e:for(var S=m.offset||0;S<=b;S++){for(var C=0;C<y;C++)if(a[S+C].search(m[C])==-1)continue e;var $=a[S],R=a[S+y-1],x=$.length-$.match(m[0])[0].length,k=R.match(m[y-1])[0].length;E&&E.end.row===S&&E.end.column>x||(d.push(E=new g(S,x,S+y-1,k)),y>2&&(S=S+y-2))}}else for(var _=0;_<a.length;_++)for(var v=u.getMatchOffsets(a[_],m),C=0;C<v.length;C++){var M=v[C];d.push(new g(_,M.offset,_,M.offset+M.length))}if(c){for(var A=c.start.column,w=c.end.column,_=0,C=d.length-1;_<C&&d[_].start.column<A&&d[_].start.row==0;)_++;for(var L=c.end.row-c.start.row;_<C&&d[C].end.column>w&&d[C].end.row==L;)C--;for(d=d.slice(_,C+1),_=0,C=d.length;_<C;_++)d[_].start.row+=c.start.row,d[_].end.row+=c.start.row}return d},o.prototype.replace=function(r,l){var c=this.$options,a=this.$assembleRegExp(c);if(c.$isMultiLine)return l;if(a){var d=a.exec(r);if(!d||d[0].length!=r.length)return null;if(l=r.replace(a,l),c.preserveCase){l=l.split("");for(var m=Math.min(r.length,r.length);m--;){var y=r[m];y&&y.toLowerCase()!=y?l[m]=l[m].toUpperCase():l[m]=l[m].toLowerCase()}l=l.join("")}return l}},o.prototype.$assembleRegExp=function(r,l){if(r.needle instanceof RegExp)return r.re=r.needle;var c=r.needle;if(!r.needle)return r.re=!1;r.$supportsUnicodeFlag===void 0&&(r.$supportsUnicodeFlag=u.supportsUnicodeFlag());try{new RegExp(c,"u")}catch{r.$supportsUnicodeFlag=!1}r.regExp||(c=u.escapeRegExp(c)),r.wholeWord&&(c=h(c,r));var a=r.caseSensitive?"gm":"gmi";if(r.$supportsUnicodeFlag&&(a+="u"),r.$isMultiLine=!l&&/[\n\r]/.test(c),r.$isMultiLine)return r.re=this.$assembleMultilineRegExp(c,a);try{var d=new RegExp(c,a)}catch{d=!1}return r.re=d},o.prototype.$assembleMultilineRegExp=function(r,l){for(var c=r.replace(/\r\n|\r|\n/g,`$
999
1001
  ^`).split(`
1000
- `),a=[],f=0;f<c.length;f++)try{a.push(new RegExp(c[f],l))}catch{return!1}return a},o.prototype.$matchIterator=function(r,l){var c=this.$assembleRegExp(l);if(!c)return!1;var a=l.backwards==!0,f=l.skipCurrent!=!1,m=l.range,y=l.start;y||(y=m?m[a?"end":"start"]:r.selection.getRange()),y.start&&(y=y[f!=a?"end":"start"]);var b=m?m.start.row:0,E=m?m.end.row:r.getLength()-1;if(a)var S=function(R){var x=y.row;if(!$(x,y.column,R)){for(x--;x>=b;x--)if($(x,Number.MAX_VALUE,R))return;if(l.wrap!=!1){for(x=E,b=y.row;x>=b;x--)if($(x,Number.MAX_VALUE,R))return}}};else var S=function(x){var k=y.row;if(!$(k,y.column,x)){for(k=k+1;k<=E;k++)if($(k,0,x))return;if(l.wrap!=!1){for(k=b,E=y.row;k<=E;k++)if($(k,0,x))return}}};if(l.$isMultiLine)var C=c.length,$=function(R,x,k){var _=a?R-C+1:R;if(!(_<0||_+C>r.getLength())){var v=r.getLine(_),M=v.search(c[0]);if(!(!a&&M<x||M===-1)){for(var A=1;A<C;A++)if(v=r.getLine(_+A),v.search(c[A])==-1)return;var w=v.match(c[C-1])[0].length;if(!(a&&w>x)&&k(_,M,_+C-1,w))return!0}}};else if(a)var $=function(x,k,_){var v=r.getLine(x),M=[],A,w=0;for(c.lastIndex=0;A=c.exec(v);){var L=A[0].length;if(w=A.index,!L){if(w>=v.length)break;c.lastIndex=w+=1}if(A.index+L>k)break;M.push(A.index,L)}for(var T=M.length-1;T>=0;T-=2){var O=M[T-1],L=M[T];if(_(x,O,x,O+L))return!0}};else var $=function(x,k,_){var v=r.getLine(x),M,A;for(c.lastIndex=k;A=c.exec(v);){var w=A[0].length;if(M=A.index,_(x,M,x,M+w))return!0;if(!w&&(c.lastIndex=M+=1,M>=v.length))return!1}};return{forEach:S}},o}();function h(o,r){var l=u.supportsLookbehind();function c(y,b){b===void 0&&(b=!0);var E=l&&r.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return E.test(y)||r.regExp?l&&r.$supportsUnicodeFlag?b?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var a=Array.from(o),f=a[0],m=a[a.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 l=function(c,a){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var y in m)Object.prototype.hasOwnProperty.call(m,y)&&(f[y]=m[y])},l(c,a)};return function(c,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");l(c,a);function f(){this.constructor=c}c.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),p=n("../lib/keys"),g=n("../lib/useragent"),s=p.KEY_MODS,h=function(){function l(c,a){this.$init(c,a,!1)}return l.prototype.$init=function(c,a,f){this.platform=a||(g.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(c),this.$singleCommand=f},l.prototype.addCommand=function(c){this.commands[c.name]&&this.removeCommand(c),this.commands[c.name]=c,c.bindKey&&this._buildKeyHash(c)},l.prototype.removeCommand=function(c,a){var f=c&&(typeof c=="string"?c:c.name);c=this.commands[f],a||delete this.commands[f];var m=this.commandKeyBinding;for(var y in m){var b=m[y];if(b==c)delete m[y];else if(Array.isArray(b)){var E=b.indexOf(c);E!=-1&&(b.splice(E,1),b.length==1&&(m[y]=b[0]))}}},l.prototype.bindKey=function(c,a,f){if(typeof c=="object"&&c&&(f==null&&(f=c.position),c=c[this.platform]),!!c){if(typeof a=="function")return this.addCommand({exec:a,bindKey:c,name:a.name||c});c.split("|").forEach(function(m){var y="";if(m.indexOf(" ")!=-1){var b=m.split(/\s+/);m=b.pop(),b.forEach(function(C){var $=this.parseKeys(C),R=s[$.hashId]+$.key;y+=(y?" ":"")+R,this._addCommandToBinding(y,"chainKeys")},this),y+=" "}var E=this.parseKeys(m),S=s[E.hashId]+E.key;this._addCommandToBinding(y+S,a,f)},this)}},l.prototype._addCommandToBinding=function(c,a,f){var m=this.commandKeyBinding,y;if(!a)delete m[c];else if(!m[c]||this.$singleCommand)m[c]=a;else{Array.isArray(m[c])?(y=m[c].indexOf(a))!=-1&&m[c].splice(y,1):m[c]=[m[c]],typeof f!="number"&&(f=o(a));var b=m[c];for(y=0;y<b.length;y++){var E=b[y],S=o(E);if(S>f)break}b.splice(y,0,a)}},l.prototype.addCommands=function(c){c&&Object.keys(c).forEach(function(a){var f=c[a];if(f){if(typeof f=="string")return this.bindKey(f,a);typeof f=="function"&&(f={exec:f}),typeof f=="object"&&(f.name||(f.name=a),this.addCommand(f))}},this)},l.prototype.removeCommands=function(c){Object.keys(c).forEach(function(a){this.removeCommand(c[a])},this)},l.prototype.bindKeys=function(c){Object.keys(c).forEach(function(a){this.bindKey(a,c[a])},this)},l.prototype._buildKeyHash=function(c){this.bindKey(c.bindKey,c)},l.prototype.parseKeys=function(c){var a=c.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(S){return S}),f=a.pop(),m=p[f];if(p.FUNCTION_KEYS[m])f=p.FUNCTION_KEYS[m].toLowerCase();else if(a.length){if(a.length==1&&a[0]=="shift")return{key:f.toUpperCase(),hashId:-1}}else return{key:f,hashId:-1};for(var y=0,b=a.length;b--;){var E=p.KEY_MODS[a[b]];if(E==null)return typeof console<"u"&&console.error("invalid modifier "+a[b]+" in "+c),!1;y|=E}return{key:f,hashId:y}},l.prototype.findKeyCommand=function(c,a){var f=s[c]+a;return this.commandKeyBinding[f]},l.prototype.handleKeyboard=function(c,a,f,m){if(!(m<0)){var y=s[a]+f,b=this.commandKeyBinding[y];return c.$keyChain&&(c.$keyChain+=" "+y,b=this.commandKeyBinding[c.$keyChain]||b),b&&(b=="chainKeys"||b[b.length-1]=="chainKeys")?(c.$keyChain=c.$keyChain||y,{command:"null"}):(c.$keyChain&&((!a||a==4)&&f.length==1?c.$keyChain=c.$keyChain.slice(0,-y.length-1):(a==-1||m>0)&&(c.$keyChain="")),{command:b})}},l.prototype.getStatusText=function(c,a){return a.$keyChain||""},l}();function o(l){return typeof l=="object"&&l.bindKey&&l.bindKey.position||(l.isDefault?-100:0)}var r=function(l){u(c,l);function c(a,f){var m=l.call(this,a,f)||this;return m.$singleCommand=!0,m}return c}(h);r.call=function(l,c,a){h.prototype.$init.call(l,c,a,!0)},h.call=function(l,c,a){h.prototype.$init.call(l,c,a,!1)},i.HashHandler=r,i.MultiHashHandler=h}),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,l){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var f in a)Object.prototype.hasOwnProperty.call(a,f)&&(c[f]=a[f])},o(r,l)};return function(r,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");o(r,l);function c(){this.constructor=r}r.prototype=l===null?Object.create(l):(c.prototype=l.prototype,new c)}}(),p=n("../lib/oop"),g=n("../keyboard/hash_handler").MultiHashHandler,s=n("../lib/event_emitter").EventEmitter,h=function(o){u(r,o);function r(l,c){var a=o.call(this,c,l)||this;return a.byName=a.commands,a.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)}),a}return r.prototype.exec=function(l,c,a){if(Array.isArray(l)){for(var f=l.length;f--;)if(this.exec(l[f],c,a))return!0;return!1}if(typeof l=="string"&&(l=this.commands[l]),!l||c&&c.$readOnly&&!l.readOnly||this.$checkCommandState!=!1&&l.isAvailable&&!l.isAvailable(c))return!1;var m={editor:c,command:l,args:a};return m.returnValue=this._emit("exec",m),this._signal("afterExec",m),m.returnValue!==!1},r.prototype.toggleRecording=function(l){if(!this.$inReplay)return l&&l._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(l){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(l);try{this.$inReplay=!0,this.macro.forEach(function(c){typeof c=="string"?this.exec(c,l):this.exec(c[0],l,c[1])},this)}finally{this.$inReplay=!1}}},r.prototype.trimMacro=function(l){return l.map(function(c){return typeof c[0]!="string"&&(c[0]=c[0].name),c[1]||(c=c[0]),c})},r}(g);p.implement(h.prototype,s),i.CommandManager=h}),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"),p=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){p.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){p.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){p.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){p.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(),l=r?o.selection.getLineRange():o.selection.getRange();o._emit("cut",l),l.isEmpty()||o.session.remove(l),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){p.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(),l=r?o.selection.getSelectionLead():o.selection.getSelectionAnchor(),c=r?o.selection.getSelectionAnchor():o.selection.getSelectionLead(),a=o.session.doc.getLine(l.row).length,f=o.session.doc.getTextRange(o.selection.getRange()),m=f.replace(/\n\s*/," ").length,y=o.session.doc.getLine(l.row),b=l.row+1;b<=c.row+1;b++){var E=u.stringTrimLeft(u.stringTrimRight(o.session.doc.getLine(b)));E.length!==0&&(E=" "+E),y+=E}c.row+1<o.session.doc.getLength()-1&&(y+=o.session.doc.getNewLineCharacter()),o.clearSelection(),o.session.doc.replace(new g(l.row,0,c.row+2,0),y),m>0?(o.selection.moveCursorTo(l.row,l.column),o.selection.selectTo(l.row,l.column+m)):(a=o.session.doc.getLine(l.row).length>a?a+1:a,o.selection.moveCursorTo(l.row,a))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:s(null,null),exec:function(o){var r=o.session.doc.getLength()-1,l=o.session.doc.getLine(r).length,c=o.selection.rangeList.ranges,a=[];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===l||a.push(new g(c[f].end.row,c[f].end.column,r,l))),f===0?c[f].start.row===0&&c[f].start.column===0||a.push(new g(0,0,c[f].start.row,c[f].start.column)):a.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<a.length;f++)o.selection.addRange(a[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(`
1002
+ `),a=[],d=0;d<c.length;d++)try{a.push(new RegExp(c[d],l))}catch{return!1}return a},o.prototype.$matchIterator=function(r,l){var c=this.$assembleRegExp(l);if(!c)return!1;var a=l.backwards==!0,d=l.skipCurrent!=!1,m=l.range,y=l.start;y||(y=m?m[a?"end":"start"]:r.selection.getRange()),y.start&&(y=y[d!=a?"end":"start"]);var b=m?m.start.row:0,E=m?m.end.row:r.getLength()-1;if(a)var S=function(R){var x=y.row;if(!$(x,y.column,R)){for(x--;x>=b;x--)if($(x,Number.MAX_VALUE,R))return;if(l.wrap!=!1){for(x=E,b=y.row;x>=b;x--)if($(x,Number.MAX_VALUE,R))return}}};else var S=function(x){var k=y.row;if(!$(k,y.column,x)){for(k=k+1;k<=E;k++)if($(k,0,x))return;if(l.wrap!=!1){for(k=b,E=y.row;k<=E;k++)if($(k,0,x))return}}};if(l.$isMultiLine)var C=c.length,$=function(R,x,k){var _=a?R-C+1:R;if(!(_<0||_+C>r.getLength())){var v=r.getLine(_),M=v.search(c[0]);if(!(!a&&M<x||M===-1)){for(var A=1;A<C;A++)if(v=r.getLine(_+A),v.search(c[A])==-1)return;var w=v.match(c[C-1])[0].length;if(!(a&&w>x)&&k(_,M,_+C-1,w))return!0}}};else if(a)var $=function(x,k,_){var v=r.getLine(x),M=[],A,w=0;for(c.lastIndex=0;A=c.exec(v);){var L=A[0].length;if(w=A.index,!L){if(w>=v.length)break;c.lastIndex=w+=1}if(A.index+L>k)break;M.push(A.index,L)}for(var T=M.length-1;T>=0;T-=2){var O=M[T-1],L=M[T];if(_(x,O,x,O+L))return!0}};else var $=function(x,k,_){var v=r.getLine(x),M,A;for(c.lastIndex=k;A=c.exec(v);){var w=A[0].length;if(M=A.index,_(x,M,x,M+w))return!0;if(!w&&(c.lastIndex=M+=1,M>=v.length))return!1}};return{forEach:S}},o}();function h(o,r){var l=u.supportsLookbehind();function c(y,b){b===void 0&&(b=!0);var E=l&&r.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return E.test(y)||r.regExp?l&&r.$supportsUnicodeFlag?b?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var a=Array.from(o),d=a[0],m=a[a.length-1];return c(d)+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,p){var u=this&&this.__extends||function(){var l=function(c,a){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,m){d.__proto__=m}||function(d,m){for(var y in m)Object.prototype.hasOwnProperty.call(m,y)&&(d[y]=m[y])},l(c,a)};return function(c,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");l(c,a);function d(){this.constructor=c}c.prototype=a===null?Object.create(a):(d.prototype=a.prototype,new d)}}(),f=n("../lib/keys"),g=n("../lib/useragent"),s=f.KEY_MODS,h=function(){function l(c,a){this.$init(c,a,!1)}return l.prototype.$init=function(c,a,d){this.platform=a||(g.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(c),this.$singleCommand=d},l.prototype.addCommand=function(c){this.commands[c.name]&&this.removeCommand(c),this.commands[c.name]=c,c.bindKey&&this._buildKeyHash(c)},l.prototype.removeCommand=function(c,a){var d=c&&(typeof c=="string"?c:c.name);c=this.commands[d],a||delete this.commands[d];var m=this.commandKeyBinding;for(var y in m){var b=m[y];if(b==c)delete m[y];else if(Array.isArray(b)){var E=b.indexOf(c);E!=-1&&(b.splice(E,1),b.length==1&&(m[y]=b[0]))}}},l.prototype.bindKey=function(c,a,d){if(typeof c=="object"&&c&&(d==null&&(d=c.position),c=c[this.platform]),!!c){if(typeof a=="function")return this.addCommand({exec:a,bindKey:c,name:a.name||c});c.split("|").forEach(function(m){var y="";if(m.indexOf(" ")!=-1){var b=m.split(/\s+/);m=b.pop(),b.forEach(function(C){var $=this.parseKeys(C),R=s[$.hashId]+$.key;y+=(y?" ":"")+R,this._addCommandToBinding(y,"chainKeys")},this),y+=" "}var E=this.parseKeys(m),S=s[E.hashId]+E.key;this._addCommandToBinding(y+S,a,d)},this)}},l.prototype._addCommandToBinding=function(c,a,d){var m=this.commandKeyBinding,y;if(!a)delete m[c];else if(!m[c]||this.$singleCommand)m[c]=a;else{Array.isArray(m[c])?(y=m[c].indexOf(a))!=-1&&m[c].splice(y,1):m[c]=[m[c]],typeof d!="number"&&(d=o(a));var b=m[c];for(y=0;y<b.length;y++){var E=b[y],S=o(E);if(S>d)break}b.splice(y,0,a)}},l.prototype.addCommands=function(c){c&&Object.keys(c).forEach(function(a){var d=c[a];if(d){if(typeof d=="string")return this.bindKey(d,a);typeof d=="function"&&(d={exec:d}),typeof d=="object"&&(d.name||(d.name=a),this.addCommand(d))}},this)},l.prototype.removeCommands=function(c){Object.keys(c).forEach(function(a){this.removeCommand(c[a])},this)},l.prototype.bindKeys=function(c){Object.keys(c).forEach(function(a){this.bindKey(a,c[a])},this)},l.prototype._buildKeyHash=function(c){this.bindKey(c.bindKey,c)},l.prototype.parseKeys=function(c){var a=c.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(S){return S}),d=a.pop(),m=f[d];if(f.FUNCTION_KEYS[m])d=f.FUNCTION_KEYS[m].toLowerCase();else if(a.length){if(a.length==1&&a[0]=="shift")return{key:d.toUpperCase(),hashId:-1}}else return{key:d,hashId:-1};for(var y=0,b=a.length;b--;){var E=f.KEY_MODS[a[b]];if(E==null)return typeof console<"u"&&console.error("invalid modifier "+a[b]+" in "+c),!1;y|=E}return{key:d,hashId:y}},l.prototype.findKeyCommand=function(c,a){var d=s[c]+a;return this.commandKeyBinding[d]},l.prototype.handleKeyboard=function(c,a,d,m){if(!(m<0)){var y=s[a]+d,b=this.commandKeyBinding[y];return c.$keyChain&&(c.$keyChain+=" "+y,b=this.commandKeyBinding[c.$keyChain]||b),b&&(b=="chainKeys"||b[b.length-1]=="chainKeys")?(c.$keyChain=c.$keyChain||y,{command:"null"}):(c.$keyChain&&((!a||a==4)&&d.length==1?c.$keyChain=c.$keyChain.slice(0,-y.length-1):(a==-1||m>0)&&(c.$keyChain="")),{command:b})}},l.prototype.getStatusText=function(c,a){return a.$keyChain||""},l}();function o(l){return typeof l=="object"&&l.bindKey&&l.bindKey.position||(l.isDefault?-100:0)}var r=function(l){u(c,l);function c(a,d){var m=l.call(this,a,d)||this;return m.$singleCommand=!0,m}return c}(h);r.call=function(l,c,a){h.prototype.$init.call(l,c,a,!0)},h.call=function(l,c,a){h.prototype.$init.call(l,c,a,!1)},i.HashHandler=r,i.MultiHashHandler=h}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(n,i,p){var u=this&&this.__extends||function(){var o=function(r,l){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var d in a)Object.prototype.hasOwnProperty.call(a,d)&&(c[d]=a[d])},o(r,l)};return function(r,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");o(r,l);function c(){this.constructor=r}r.prototype=l===null?Object.create(l):(c.prototype=l.prototype,new c)}}(),f=n("../lib/oop"),g=n("../keyboard/hash_handler").MultiHashHandler,s=n("../lib/event_emitter").EventEmitter,h=function(o){u(r,o);function r(l,c){var a=o.call(this,c,l)||this;return a.byName=a.commands,a.setDefaultHandler("exec",function(d){return d.args?d.command.exec(d.editor,d.args,d.event,!1):d.command.exec(d.editor,{},d.event,!0)}),a}return r.prototype.exec=function(l,c,a){if(Array.isArray(l)){for(var d=l.length;d--;)if(this.exec(l[d],c,a))return!0;return!1}if(typeof l=="string"&&(l=this.commands[l]),!l||c&&c.$readOnly&&!l.readOnly||this.$checkCommandState!=!1&&l.isAvailable&&!l.isAvailable(c))return!1;var m={editor:c,command:l,args:a};return m.returnValue=this._emit("exec",m),this._signal("afterExec",m),m.returnValue!==!1},r.prototype.toggleRecording=function(l){if(!this.$inReplay)return l&&l._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(l){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(l);try{this.$inReplay=!0,this.macro.forEach(function(c){typeof c=="string"?this.exec(c,l):this.exec(c[0],l,c[1])},this)}finally{this.$inReplay=!1}}},r.prototype.trimMacro=function(l){return l.map(function(c){return typeof c[0]!="string"&&(c[0]=c[0].name),c[1]||(c=c[0]),c})},r}(g);f.implement(h.prototype,s),i.CommandManager=h}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(n,i,p){var u=n("../lib/lang"),f=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){f.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){f.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){f.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){f.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(),l=r?o.selection.getLineRange():o.selection.getRange();o._emit("cut",l),l.isEmpty()||o.session.remove(l),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){f.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(),l=r?o.selection.getSelectionLead():o.selection.getSelectionAnchor(),c=r?o.selection.getSelectionAnchor():o.selection.getSelectionLead(),a=o.session.doc.getLine(l.row).length,d=o.session.doc.getTextRange(o.selection.getRange()),m=d.replace(/\n\s*/," ").length,y=o.session.doc.getLine(l.row),b=l.row+1;b<=c.row+1;b++){var E=u.stringTrimLeft(u.stringTrimRight(o.session.doc.getLine(b)));E.length!==0&&(E=" "+E),y+=E}c.row+1<o.session.doc.getLength()-1&&(y+=o.session.doc.getNewLineCharacter()),o.clearSelection(),o.session.doc.replace(new g(l.row,0,c.row+2,0),y),m>0?(o.selection.moveCursorTo(l.row,l.column),o.selection.selectTo(l.row,l.column+m)):(a=o.session.doc.getLine(l.row).length>a?a+1:a,o.selection.moveCursorTo(l.row,a))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:s(null,null),exec:function(o){var r=o.session.doc.getLength()-1,l=o.session.doc.getLine(r).length,c=o.selection.rangeList.ranges,a=[];c.length<1&&(c=[o.selection.getRange()]);for(var d=0;d<c.length;d++)d==c.length-1&&(c[d].end.row===r&&c[d].end.column===l||a.push(new g(c[d].end.row,c[d].end.column,r,l))),d===0?c[d].start.row===0&&c[d].start.column===0||a.push(new g(0,0,c[d].start.row,c[d].start.column)):a.push(new g(c[d-1].end.row,c[d-1].end.column,c[d].start.row,c[d].start.column));o.exitMultiSelectMode(),o.clearSelection();for(var d=0;d<a.length;d++)o.selection.addRange(a[d],!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(`
1001
1003
  `)},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(`
1002
- `),r.row===0&&o.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",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 h=1;h<9;h++)i.commands.push({name:"foldToLevel"+h,description:"Fold To Level "+h,level:h,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"),p=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 h;return this.lineWidgets?h=this.lineWidgets[s]&&this.lineWidgets[s].rowCount||0:h=0,!this.$useWrapMode||!this.$wrapData[s]?1+h:this.$wrapData[s].length+1+h},g.prototype.$getWidgetScreenLength=function(){var s=0;return this.lineWidgets.forEach(function(h){h&&h.rowCount&&!h.hidden&&(s+=h.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 h=this.editor;if(h){this.editor=null,h.widgetManager=null,h.renderer.off("beforeRender",this.measureWidgets),h.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,h){var o=h.lineWidgets;if(!(!o||!s.action)){for(var r=s.data,l=r.start.row,c=r.end.row,a=s.action=="add",f=l+1;f<c;f++)o[f]&&(o[f].hidden=a);o[c]&&(a?o[l]?o[c].hidden=a:o[l]=o[c]:(o[l]==o[c]&&(o[l]=void 0),o[c].hidden=a))}},g.prototype.updateOnChange=function(s){var h=this.session.lineWidgets;if(h){var o=s.start.row,r=s.end.row-o;if(r!==0)if(s.action=="remove"){var l=h.splice(o+1,r);!h[o]&&l[l.length-1]&&(h[o]=l.pop()),l.forEach(function(a){a&&this.removeLineWidget(a)},this),this.$updateRows()}else{var c=new Array(r);h[o]&&h[o].column!=null&&s.start.column>h[o].column&&o++,c.unshift(o,0),h.splice.apply(h,c),this.$updateRows()}}},g.prototype.$updateRows=function(){var s=this.session.lineWidgets;if(s){var h=!0;s.forEach(function(o,r){if(o)for(h=!1,o.row=r;o.$oldWidget;)o.$oldWidget.row=r,o=o.$oldWidget}),h&&(this.session.lineWidgets=null)}},g.prototype.$registerLineWidget=function(s){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var h=this.session.lineWidgets[s.row];return h&&(s.$oldWidget=h,h.el&&h.el.parentNode&&(h.el.parentNode.removeChild(h.el),h._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 h=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,h.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/h.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,h),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 h=this.session.lineWidgets[s.row];if(h==s)this.session.lineWidgets[s.row]=s.$oldWidget,s.$oldWidget&&this.onWidgetChanged(s.$oldWidget);else for(;h;){if(h.$oldWidget==s){h.$oldWidget=s.$oldWidget;break}h=h.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:s.row}}}),this.$updateRows()},g.prototype.getWidgetsAtRow=function(s){for(var h=this.session.lineWidgets,o=h&&h[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,h){var o=this.session._changedWidgets,r=h.layerConfig;if(!(!o||!o.length)){for(var l=1/0,c=0;c<o.length;c++){var a=o[c];if(!(!a||!a.el)&&a.session==this.session){if(!a._inDocument){if(this.session.lineWidgets[a.row]!=a)continue;a._inDocument=!0,h.container.appendChild(a.el)}a.h=a.el.offsetHeight,a.fixedWidth||(a.w=a.el.offsetWidth,a.screenWidth=Math.ceil(a.w/r.characterWidth));var f=a.h/r.lineHeight;a.coverLine&&(f-=this.session.getRowLineCount(a.row),f<0&&(f=0)),a.rowCount!=f&&(a.rowCount=f,a.row<l&&(l=a.row))}}l!=1/0&&(this.session._emit("changeFold",{data:{start:{row:l}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},g.prototype.renderWidgets=function(s,h){var o=h.layerConfig,r=this.session.lineWidgets;if(r){for(var l=Math.min(this.firstRow,o.firstRow),c=Math.max(this.lastRow,o.lastRow,r.length);l>0&&!r[l];)l--;this.firstRow=o.firstRow,this.lastRow=o.lastRow,h.$cursorLayer.config=o;for(var a=l;a<=c;a++){var f=r[a];if(!(!f||!f.el)){if(f.hidden){f.el.style.top=-100-(f.pixelHeight||0)+"px";continue}f._inDocument||(f._inDocument=!0,h.container.appendChild(f.el));var m=h.$cursorLayer.getPixelPosition({row:a,column:0},!0).top;f.coverLine||(m+=o.lineHeight*this.session.getRowLineCount(f.row)),f.el.style.top=m-o.offset+"px";var y=f.coverGutter?0:h.gutterWidth;f.fixedWidth||(y-=h.scrollLeft),f.el.style.left=y+"px",f.fullWidth&&f.screenWidth&&(f.el.style.minWidth=o.width+2*o.padding+"px"),f.fixedWidth?f.el.style.right=h.scrollBar.getWidth()+"px":f.el.style.right=""}}}},g}();i.LineWidgets=p}),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"),p=n("../mouse/default_gutter_handler").GutterTooltip,g=function(){function h(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 p(this.editor)}return h.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))},h.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))},h.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 l=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),c=this.$findNearestFoldWidget(l),a=this.$findNearestAnnotation(l);if(!(c===null&&a===null)){if(c===null&&a!==null){this.activeRowIndex=a,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}if(c!==null&&a===null){this.activeRowIndex=c,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}if(Math.abs(a-l)<Math.abs(c-l)){this.activeRowIndex=a,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)},h.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 l=this.lines.cells[this.activeRowIndex].element.childNodes[2],c=l.getBoundingClientRect(),a=this.annotationTooltip.getElement().style;a.left=c.right+"px",a.top=c.bottom+"px",this.annotationTooltip.showTooltip(this.$rowIndexToRow(this.activeRowIndex));break}return}},h.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()},h.prototype.$isFoldWidgetVisible=function(o){var r=this.editor.isRowFullyVisible(this.$rowIndexToRow(o)),l=this.$getFoldWidget(o).style.display!=="none";return r&&l},h.prototype.$isAnnotationVisible=function(o){var r=this.editor.isRowFullyVisible(this.$rowIndexToRow(o)),l=this.$getAnnotation(o).style.display!=="none";return r&&l},h.prototype.$getFoldWidget=function(o){var r=this.lines.get(o),l=r.element;return l.childNodes[1]},h.prototype.$getAnnotation=function(o){var r=this.lines.get(o),l=r.element;return l.childNodes[2]},h.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},h.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},h.prototype.$focusFoldWidget=function(o){if(o!=null){var r=this.$getFoldWidget(o);r.classList.add(this.editor.renderer.keyboardFocusClassName),r.focus()}},h.prototype.$focusAnnotation=function(o){if(o!=null){var r=this.$getAnnotation(o);r.classList.add(this.editor.renderer.keyboardFocusClassName),r.focus()}},h.prototype.$blurFoldWidget=function(o){var r=this.$getFoldWidget(o);r.classList.remove(this.editor.renderer.keyboardFocusClassName),r.blur()},h.prototype.$blurAnnotation=function(o){var r=this.$getAnnotation(o);r.classList.remove(this.editor.renderer.keyboardFocusClassName),r.blur()},h.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}},h.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}},h.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}},h.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}},h.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 l=this.$findNearestFoldWidget(this.activeRowIndex);if(l==null)break;this.activeLane="fold",this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=l,this.$focusFoldWidget(this.activeRowIndex);break}},h.prototype.$rowIndexToRow=function(o){var r=this.lines.get(o);return r?r.row:null},h.prototype.$rowToRowIndex=function(o){for(var r=0;r<this.lines.getLength();r++){var l=this.lines.get(r);if(l.row==o)return r}return null},h}();i.GutterKeyboardHandler=g;var s=function(){function h(o,r){this.gutterKeyboardHandler=r,this.domEvent=o}return h.prototype.getKey=function(){return u.keyCodeToString(this.domEvent.keyCode)},h.prototype.getRow=function(){return this.gutterKeyboardHandler.$rowIndexToRow(this.gutterKeyboardHandler.activeRowIndex)},h.prototype.isInAnnotationLane=function(){return this.gutterKeyboardHandler.activeLane==="annotation"},h.prototype.isInFoldLane=function(){return this.gutterKeyboardHandler.activeLane==="fold"},h}();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(A){var w=typeof Symbol=="function"&&Symbol.iterator,L=w&&A[w],T=0;if(L)return L.call(A);if(A&&typeof A.length=="number")return{next:function(){return A&&T>=A.length&&(A=void 0),{value:A&&A[T++],done:!A}}};throw new TypeError(w?"Object is not iterable.":"Symbol.iterator is not defined.")},p=n("./lib/oop"),g=n("./lib/dom"),s=n("./lib/lang"),h=n("./lib/useragent"),o=n("./keyboard/textinput").TextInput,r=n("./mouse/mouse_handler").MouseHandler,l=n("./mouse/fold_handler").FoldHandler,c=n("./keyboard/keybinding").KeyBinding,a=n("./edit_session").EditSession,f=n("./search").Search,m=n("./range").Range,y=n("./lib/event_emitter").EventEmitter,b=n("./commands/command_manager").CommandManager,E=n("./commands/default_commands").commands,S=n("./config"),C=n("./token_iterator").TokenIterator,$=n("./line_widgets").LineWidgets,R=n("./keyboard/gutter_handler").GutterKeyboardHandler,x=n("./config").nls,k=n("./clipboard"),_=n("./lib/keys"),v=function(){function A(w,L,T){this.$toDestroy=[];var O=w.getContainerElement();this.container=O,this.renderer=w,this.id="editor"+ ++A.$uid,this.commands=new b(h.isMac?"mac":"win",E),typeof document=="object"&&(this.textInput=new o(w.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new r(this),new l(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(L||T&&T.session||new a("")),S.resetOptions(this),T&&this.setOptions(T),S._signal("editor",this)}return A.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)},A.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()},A.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 L=this.curOp.command,T=L&&L.scrollIntoView;if(T){switch(T){case"center-animate":T="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var O=this.selection.getRange(),I=this.renderer.layerConfig;(O.start.row>=I.lastRow||O.end.row<=I.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}T=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}var 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}},A.prototype.$historyTracker=function(w){if(this.$mergeUndoDeltas){var L=this.prevOp,T=this.$mergeableCommands,O=L.command&&w.command.name==L.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(L.args)),this.mergeNextCommand=!0}else O=O&&T.indexOf(w.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(O=!1),O?this.session.mergeUndoDeltas=!0:T.indexOf(w.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},A.prototype.setKeyboardHandler=function(w,L){if(w&&typeof w=="string"&&w!="ace"){this.$keybindingId=w;var T=this;S.loadModule(["keybinding",w],function(O){T.$keybindingId==w&&T.keyBinding.setKeyboardHandler(O&&O.handler),L&&L()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(w),L&&L()},A.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},A.prototype.setSession=function(w){if(this.session!=w){this.curOp&&this.endOperation(),this.curOp={};var L=this.session;if(L){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var T=this.session.getSelection();T.off("changeCursor",this.$onCursorChange),T.off("changeSelection",this.$onSelectionChange)}this.session=w,w?(this.$onDocumentChange=this.onDocumentChange.bind(this),w.on("change",this.$onDocumentChange),this.renderer.setSession(w),this.$onChangeMode=this.onChangeMode.bind(this),w.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),w.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),w.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),w.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),w.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),w.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=w.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(w)),this._signal("changeSession",{session:w,oldSession:L}),this.curOp=null,L&&L._signal("changeEditor",{oldEditor:this}),w&&w._signal("changeEditor",{editor:this}),w&&!w.destroyed&&w.bgTokenizer.scheduleStart()}},A.prototype.getSession=function(){return this.session},A.prototype.setValue=function(w,L){return this.session.doc.setValue(w),L?L==1?this.navigateFileEnd():L==-1&&this.navigateFileStart():this.selectAll(),w},A.prototype.getValue=function(){return this.session.getValue()},A.prototype.getSelection=function(){return this.selection},A.prototype.resize=function(w){this.renderer.onResize(w)},A.prototype.setTheme=function(w,L){this.renderer.setTheme(w,L)},A.prototype.getTheme=function(){return this.renderer.getTheme()},A.prototype.setStyle=function(w){this.renderer.setStyle(w)},A.prototype.unsetStyle=function(w){this.renderer.unsetStyle(w)},A.prototype.getFontSize=function(){return this.getOption("fontSize")||g.computedStyle(this.container).fontSize},A.prototype.setFontSize=function(w){this.setOption("fontSize",w)},A.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var w=this;this.$highlightPending=!0,setTimeout(function(){w.$highlightPending=!1;var L=w.session;if(!(!L||L.destroyed)){L.$bracketHighlight&&(L.$bracketHighlight.markerIds.forEach(function(H){L.removeMarker(H)}),L.$bracketHighlight=null);var T=w.getCursorPosition(),O=w.getKeyboardHandler(),I=O&&O.$getDirectionForHighlight&&O.$getDirectionForHighlight(w),F=L.getMatchingBracketRanges(T,I);if(!F){var D=new C(L,T.row,T.column),W=D.getCurrentToken();if(W&&/\b(?:tag-open|tag-name)/.test(W.type)){var G=L.getMatchingTags(T);G&&(F=[G.openTagName,G.closeTagName])}}if(!F&&L.$mode.getMatching&&(F=L.$mode.getMatching(w.session)),!F){w.getHighlightIndentGuides()&&w.renderer.$textLayer.$highlightIndentGuide();return}var U="ace_bracket";Array.isArray(F)?F.length==1&&(U="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)])),L.$bracketHighlight={ranges:F,markerIds:F.map(function(H){return L.addMarker(H,U,"text")})},w.getHighlightIndentGuides()&&w.renderer.$textLayer.$highlightIndentGuide()}},50)}},A.prototype.focus=function(){this.textInput.focus()},A.prototype.isFocused=function(){return this.textInput.isFocused()},A.prototype.blur=function(){this.textInput.blur()},A.prototype.onFocus=function(w){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",w))},A.prototype.onBlur=function(w){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",w))},A.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},A.prototype.onDocumentChange=function(w){var L=this.session.$useWrapMode,T=w.start.row==w.end.row?w.end.row:1/0;this.renderer.updateLines(w.start.row,T,L),this._signal("change",w),this.$cursorChange()},A.prototype.onTokenizerUpdate=function(w){var L=w.data;this.renderer.updateLines(L.first,L.last)},A.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},A.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},A.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},A.prototype.$updateHighlightActiveLine=function(){var w=this.getSession(),L;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(L=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(L=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(L=!1)),w.$highlightLineMarker&&!L)w.removeMarker(w.$highlightLineMarker.id),w.$highlightLineMarker=null;else if(!w.$highlightLineMarker&&L){var T=new m(L.row,L.column,L.row,1/0);T.id=w.addMarker(T,"ace_active-line","screenLine"),w.$highlightLineMarker=T}else L&&(w.$highlightLineMarker.start.row=L.row,w.$highlightLineMarker.end.row=L.row,w.$highlightLineMarker.start.column=L.column,w._signal("changeBackMarker"))},A.prototype.onSelectionChange=function(w){var L=this.session;if(L.$selectionMarker&&L.removeMarker(L.$selectionMarker),L.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var T=this.selection.getRange(),O=this.getSelectionStyle();L.$selectionMarker=L.addMarker(T,"ace_selection",O)}var I=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(I),this._signal("changeSelection")},A.prototype.$getSelectionHighLightRegexp=function(){var w=this.session,L=this.getSelectionRange();if(!(L.isEmpty()||L.isMultiLine())){var T=L.start.column,O=L.end.column,I=w.getLine(L.start.row),F=I.substring(T,O);if(!(F.length>5e3||!/[\w\d]/.test(F))){var D=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:F}),W=I.substring(T-1,O+1);if(D.test(W))return D}}},A.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},A.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},A.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},A.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},A.prototype.onChangeMode=function(w){this.renderer.updateText(),this._emit("changeMode",w)},A.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},A.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},A.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},A.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},A.prototype.getCopyText=function(){var w=this.getSelectedText(),L=this.session.doc.getNewLineCharacter(),T=!1;if(!w&&this.$copyWithEmptySelection){T=!0;for(var O=this.selection.getAllRanges(),I=0;I<O.length;I++){var F=O[I];I&&O[I-1].start.row==F.start.row||(w+=this.session.getLine(F.start.row)+L)}}var D={text:w};return this._signal("copy",D),k.lineMode=T?D.text:!1,D.text},A.prototype.onCopy=function(){this.commands.exec("copy",this)},A.prototype.onCut=function(){this.commands.exec("cut",this)},A.prototype.onPaste=function(w,L){var T={text:w,event:L};this.commands.exec("paste",this,T)},A.prototype.$handlePaste=function(w){typeof w=="string"&&(w={text:w}),this._signal("paste",w);var L=w.text,T=L===k.lineMode,O=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)T?O.insert({row:this.selection.lead.row,column:0},L):this.insert(L);else if(T)this.selection.rangeList.ranges.forEach(function(U){O.insert({row:U.start.row,column:0},L)});else{var I=L.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,L);for(var W=F.length;W--;){var G=F[W];G.isEmpty()||O.remove(G),O.insert(G.start,I[W])}}},A.prototype.execCommand=function(w,L){return this.commands.exec(w,this,L)},A.prototype.insert=function(w,L){var T=this.session,O=T.getMode(),I=this.getCursorPosition();if(this.getBehavioursEnabled()&&!L){var F=O.transformAction(T.getState(I.row),"insertion",this,T,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(`
1004
+ `),r.row===0&&o.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",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 h=1;h<9;h++)i.commands.push({name:"foldToLevel"+h,description:"Fold To Level "+h,level:h,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,p){var u=n("./lib/dom"),f=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 h;return this.lineWidgets?h=this.lineWidgets[s]&&this.lineWidgets[s].rowCount||0:h=0,!this.$useWrapMode||!this.$wrapData[s]?1+h:this.$wrapData[s].length+1+h},g.prototype.$getWidgetScreenLength=function(){var s=0;return this.lineWidgets.forEach(function(h){h&&h.rowCount&&!h.hidden&&(s+=h.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 h=this.editor;if(h){this.editor=null,h.widgetManager=null,h.renderer.off("beforeRender",this.measureWidgets),h.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,h){var o=h.lineWidgets;if(!(!o||!s.action)){for(var r=s.data,l=r.start.row,c=r.end.row,a=s.action=="add",d=l+1;d<c;d++)o[d]&&(o[d].hidden=a);o[c]&&(a?o[l]?o[c].hidden=a:o[l]=o[c]:(o[l]==o[c]&&(o[l]=void 0),o[c].hidden=a))}},g.prototype.updateOnChange=function(s){var h=this.session.lineWidgets;if(h){var o=s.start.row,r=s.end.row-o;if(r!==0)if(s.action=="remove"){var l=h.splice(o+1,r);!h[o]&&l[l.length-1]&&(h[o]=l.pop()),l.forEach(function(a){a&&this.removeLineWidget(a)},this),this.$updateRows()}else{var c=new Array(r);h[o]&&h[o].column!=null&&s.start.column>h[o].column&&o++,c.unshift(o,0),h.splice.apply(h,c),this.$updateRows()}}},g.prototype.$updateRows=function(){var s=this.session.lineWidgets;if(s){var h=!0;s.forEach(function(o,r){if(o)for(h=!1,o.row=r;o.$oldWidget;)o.$oldWidget.row=r,o=o.$oldWidget}),h&&(this.session.lineWidgets=null)}},g.prototype.$registerLineWidget=function(s){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var h=this.session.lineWidgets[s.row];return h&&(s.$oldWidget=h,h.el&&h.el.parentNode&&(h.el.parentNode.removeChild(h.el),h._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 h=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,h.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/h.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,h),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 h=this.session.lineWidgets[s.row];if(h==s)this.session.lineWidgets[s.row]=s.$oldWidget,s.$oldWidget&&this.onWidgetChanged(s.$oldWidget);else for(;h;){if(h.$oldWidget==s){h.$oldWidget=s.$oldWidget;break}h=h.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:s.row}}}),this.$updateRows()},g.prototype.getWidgetsAtRow=function(s){for(var h=this.session.lineWidgets,o=h&&h[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,h){var o=this.session._changedWidgets,r=h.layerConfig;if(!(!o||!o.length)){for(var l=1/0,c=0;c<o.length;c++){var a=o[c];if(!(!a||!a.el)&&a.session==this.session){if(!a._inDocument){if(this.session.lineWidgets[a.row]!=a)continue;a._inDocument=!0,h.container.appendChild(a.el)}a.h=a.el.offsetHeight,a.fixedWidth||(a.w=a.el.offsetWidth,a.screenWidth=Math.ceil(a.w/r.characterWidth));var d=a.h/r.lineHeight;a.coverLine&&(d-=this.session.getRowLineCount(a.row),d<0&&(d=0)),a.rowCount!=d&&(a.rowCount=d,a.row<l&&(l=a.row))}}l!=1/0&&(this.session._emit("changeFold",{data:{start:{row:l}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},g.prototype.renderWidgets=function(s,h){var o=h.layerConfig,r=this.session.lineWidgets;if(r){for(var l=Math.min(this.firstRow,o.firstRow),c=Math.max(this.lastRow,o.lastRow,r.length);l>0&&!r[l];)l--;this.firstRow=o.firstRow,this.lastRow=o.lastRow,h.$cursorLayer.config=o;for(var a=l;a<=c;a++){var d=r[a];if(!(!d||!d.el)){if(d.hidden){d.el.style.top=-100-(d.pixelHeight||0)+"px";continue}d._inDocument||(d._inDocument=!0,h.container.appendChild(d.el));var m=h.$cursorLayer.getPixelPosition({row:a,column:0},!0).top;d.coverLine||(m+=o.lineHeight*this.session.getRowLineCount(d.row)),d.el.style.top=m-o.offset+"px";var y=d.coverGutter?0:h.gutterWidth;d.fixedWidth||(y-=h.scrollLeft),d.el.style.left=y+"px",d.fullWidth&&d.screenWidth&&(d.el.style.minWidth=o.width+2*o.padding+"px"),d.fixedWidth?d.el.style.right=h.scrollBar.getWidth()+"px":d.el.style.right=""}}}},g}();i.LineWidgets=f}),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys","ace/mouse/default_gutter_handler"],function(n,i,p){var u=n("../lib/keys"),f=n("../mouse/default_gutter_handler").GutterTooltip,g=function(){function h(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 f(this.editor)}return h.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))},h.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))},h.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 l=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),c=this.$findNearestFoldWidget(l),a=this.$findNearestAnnotation(l);if(!(c===null&&a===null)){if(c===null&&a!==null){this.activeRowIndex=a,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}if(c!==null&&a===null){this.activeRowIndex=c,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}if(Math.abs(a-l)<Math.abs(c-l)){this.activeRowIndex=a,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)},h.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 l=this.lines.cells[this.activeRowIndex].element.childNodes[2],c=l.getBoundingClientRect(),a=this.annotationTooltip.getElement().style;a.left=c.right+"px",a.top=c.bottom+"px",this.annotationTooltip.showTooltip(this.$rowIndexToRow(this.activeRowIndex));break}return}},h.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()},h.prototype.$isFoldWidgetVisible=function(o){var r=this.editor.isRowFullyVisible(this.$rowIndexToRow(o)),l=this.$getFoldWidget(o).style.display!=="none";return r&&l},h.prototype.$isAnnotationVisible=function(o){var r=this.editor.isRowFullyVisible(this.$rowIndexToRow(o)),l=this.$getAnnotation(o).style.display!=="none";return r&&l},h.prototype.$getFoldWidget=function(o){var r=this.lines.get(o),l=r.element;return l.childNodes[1]},h.prototype.$getAnnotation=function(o){var r=this.lines.get(o),l=r.element;return l.childNodes[2]},h.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},h.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},h.prototype.$focusFoldWidget=function(o){if(o!=null){var r=this.$getFoldWidget(o);r.classList.add(this.editor.renderer.keyboardFocusClassName),r.focus()}},h.prototype.$focusAnnotation=function(o){if(o!=null){var r=this.$getAnnotation(o);r.classList.add(this.editor.renderer.keyboardFocusClassName),r.focus()}},h.prototype.$blurFoldWidget=function(o){var r=this.$getFoldWidget(o);r.classList.remove(this.editor.renderer.keyboardFocusClassName),r.blur()},h.prototype.$blurAnnotation=function(o){var r=this.$getAnnotation(o);r.classList.remove(this.editor.renderer.keyboardFocusClassName),r.blur()},h.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}},h.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}},h.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}},h.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}},h.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 l=this.$findNearestFoldWidget(this.activeRowIndex);if(l==null)break;this.activeLane="fold",this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=l,this.$focusFoldWidget(this.activeRowIndex);break}},h.prototype.$rowIndexToRow=function(o){var r=this.lines.get(o);return r?r.row:null},h.prototype.$rowToRowIndex=function(o){for(var r=0;r<this.lines.getLength();r++){var l=this.lines.get(r);if(l.row==o)return r}return null},h}();i.GutterKeyboardHandler=g;var s=function(){function h(o,r){this.gutterKeyboardHandler=r,this.domEvent=o}return h.prototype.getKey=function(){return u.keyCodeToString(this.domEvent.keyCode)},h.prototype.getRow=function(){return this.gutterKeyboardHandler.$rowIndexToRow(this.gutterKeyboardHandler.activeRowIndex)},h.prototype.isInAnnotationLane=function(){return this.gutterKeyboardHandler.activeLane==="annotation"},h.prototype.isInFoldLane=function(){return this.gutterKeyboardHandler.activeLane==="fold"},h}();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,p){var u=this&&this.__values||function(A){var w=typeof Symbol=="function"&&Symbol.iterator,L=w&&A[w],T=0;if(L)return L.call(A);if(A&&typeof A.length=="number")return{next:function(){return A&&T>=A.length&&(A=void 0),{value:A&&A[T++],done:!A}}};throw new TypeError(w?"Object is not iterable.":"Symbol.iterator is not defined.")},f=n("./lib/oop"),g=n("./lib/dom"),s=n("./lib/lang"),h=n("./lib/useragent"),o=n("./keyboard/textinput").TextInput,r=n("./mouse/mouse_handler").MouseHandler,l=n("./mouse/fold_handler").FoldHandler,c=n("./keyboard/keybinding").KeyBinding,a=n("./edit_session").EditSession,d=n("./search").Search,m=n("./range").Range,y=n("./lib/event_emitter").EventEmitter,b=n("./commands/command_manager").CommandManager,E=n("./commands/default_commands").commands,S=n("./config"),C=n("./token_iterator").TokenIterator,$=n("./line_widgets").LineWidgets,R=n("./keyboard/gutter_handler").GutterKeyboardHandler,x=n("./config").nls,k=n("./clipboard"),_=n("./lib/keys"),v=function(){function A(w,L,T){this.$toDestroy=[];var O=w.getContainerElement();this.container=O,this.renderer=w,this.id="editor"+ ++A.$uid,this.commands=new b(h.isMac?"mac":"win",E),typeof document=="object"&&(this.textInput=new o(w.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new r(this),new l(this)),this.keyBinding=new c(this),this.$search=new d().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(L||T&&T.session||new a("")),S.resetOptions(this),T&&this.setOptions(T),S._signal("editor",this)}return A.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)},A.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()},A.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 L=this.curOp.command,T=L&&L.scrollIntoView;if(T){switch(T){case"center-animate":T="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var O=this.selection.getRange(),I=this.renderer.layerConfig;(O.start.row>=I.lastRow||O.end.row<=I.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}T=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}var 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}},A.prototype.$historyTracker=function(w){if(this.$mergeUndoDeltas){var L=this.prevOp,T=this.$mergeableCommands,O=L.command&&w.command.name==L.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(L.args)),this.mergeNextCommand=!0}else O=O&&T.indexOf(w.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(O=!1),O?this.session.mergeUndoDeltas=!0:T.indexOf(w.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},A.prototype.setKeyboardHandler=function(w,L){if(w&&typeof w=="string"&&w!="ace"){this.$keybindingId=w;var T=this;S.loadModule(["keybinding",w],function(O){T.$keybindingId==w&&T.keyBinding.setKeyboardHandler(O&&O.handler),L&&L()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(w),L&&L()},A.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},A.prototype.setSession=function(w){if(this.session!=w){this.curOp&&this.endOperation(),this.curOp={};var L=this.session;if(L){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var T=this.session.getSelection();T.off("changeCursor",this.$onCursorChange),T.off("changeSelection",this.$onSelectionChange)}this.session=w,w?(this.$onDocumentChange=this.onDocumentChange.bind(this),w.on("change",this.$onDocumentChange),this.renderer.setSession(w),this.$onChangeMode=this.onChangeMode.bind(this),w.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),w.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),w.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),w.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),w.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),w.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=w.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(w)),this._signal("changeSession",{session:w,oldSession:L}),this.curOp=null,L&&L._signal("changeEditor",{oldEditor:this}),w&&w._signal("changeEditor",{editor:this}),w&&!w.destroyed&&w.bgTokenizer.scheduleStart()}},A.prototype.getSession=function(){return this.session},A.prototype.setValue=function(w,L){return this.session.doc.setValue(w),L?L==1?this.navigateFileEnd():L==-1&&this.navigateFileStart():this.selectAll(),w},A.prototype.getValue=function(){return this.session.getValue()},A.prototype.getSelection=function(){return this.selection},A.prototype.resize=function(w){this.renderer.onResize(w)},A.prototype.setTheme=function(w,L){this.renderer.setTheme(w,L)},A.prototype.getTheme=function(){return this.renderer.getTheme()},A.prototype.setStyle=function(w){this.renderer.setStyle(w)},A.prototype.unsetStyle=function(w){this.renderer.unsetStyle(w)},A.prototype.getFontSize=function(){return this.getOption("fontSize")||g.computedStyle(this.container).fontSize},A.prototype.setFontSize=function(w){this.setOption("fontSize",w)},A.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var w=this;this.$highlightPending=!0,setTimeout(function(){w.$highlightPending=!1;var L=w.session;if(!(!L||L.destroyed)){L.$bracketHighlight&&(L.$bracketHighlight.markerIds.forEach(function(H){L.removeMarker(H)}),L.$bracketHighlight=null);var T=w.getCursorPosition(),O=w.getKeyboardHandler(),I=O&&O.$getDirectionForHighlight&&O.$getDirectionForHighlight(w),F=L.getMatchingBracketRanges(T,I);if(!F){var D=new C(L,T.row,T.column),W=D.getCurrentToken();if(W&&/\b(?:tag-open|tag-name)/.test(W.type)){var G=L.getMatchingTags(T);G&&(F=[G.openTagName,G.closeTagName])}}if(!F&&L.$mode.getMatching&&(F=L.$mode.getMatching(w.session)),!F){w.getHighlightIndentGuides()&&w.renderer.$textLayer.$highlightIndentGuide();return}var U="ace_bracket";Array.isArray(F)?F.length==1&&(U="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)])),L.$bracketHighlight={ranges:F,markerIds:F.map(function(H){return L.addMarker(H,U,"text")})},w.getHighlightIndentGuides()&&w.renderer.$textLayer.$highlightIndentGuide()}},50)}},A.prototype.focus=function(){this.textInput.focus()},A.prototype.isFocused=function(){return this.textInput.isFocused()},A.prototype.blur=function(){this.textInput.blur()},A.prototype.onFocus=function(w){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",w))},A.prototype.onBlur=function(w){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",w))},A.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},A.prototype.onDocumentChange=function(w){var L=this.session.$useWrapMode,T=w.start.row==w.end.row?w.end.row:1/0;this.renderer.updateLines(w.start.row,T,L),this._signal("change",w),this.$cursorChange()},A.prototype.onTokenizerUpdate=function(w){var L=w.data;this.renderer.updateLines(L.first,L.last)},A.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},A.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},A.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},A.prototype.$updateHighlightActiveLine=function(){var w=this.getSession(),L;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(L=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(L=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(L=!1)),w.$highlightLineMarker&&!L)w.removeMarker(w.$highlightLineMarker.id),w.$highlightLineMarker=null;else if(!w.$highlightLineMarker&&L){var T=new m(L.row,L.column,L.row,1/0);T.id=w.addMarker(T,"ace_active-line","screenLine"),w.$highlightLineMarker=T}else L&&(w.$highlightLineMarker.start.row=L.row,w.$highlightLineMarker.end.row=L.row,w.$highlightLineMarker.start.column=L.column,w._signal("changeBackMarker"))},A.prototype.onSelectionChange=function(w){var L=this.session;if(L.$selectionMarker&&L.removeMarker(L.$selectionMarker),L.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var T=this.selection.getRange(),O=this.getSelectionStyle();L.$selectionMarker=L.addMarker(T,"ace_selection",O)}var I=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(I),this._signal("changeSelection")},A.prototype.$getSelectionHighLightRegexp=function(){var w=this.session,L=this.getSelectionRange();if(!(L.isEmpty()||L.isMultiLine())){var T=L.start.column,O=L.end.column,I=w.getLine(L.start.row),F=I.substring(T,O);if(!(F.length>5e3||!/[\w\d]/.test(F))){var D=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:F}),W=I.substring(T-1,O+1);if(D.test(W))return D}}},A.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},A.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},A.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},A.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},A.prototype.onChangeMode=function(w){this.renderer.updateText(),this._emit("changeMode",w)},A.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},A.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},A.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},A.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},A.prototype.getCopyText=function(){var w=this.getSelectedText(),L=this.session.doc.getNewLineCharacter(),T=!1;if(!w&&this.$copyWithEmptySelection){T=!0;for(var O=this.selection.getAllRanges(),I=0;I<O.length;I++){var F=O[I];I&&O[I-1].start.row==F.start.row||(w+=this.session.getLine(F.start.row)+L)}}var D={text:w};return this._signal("copy",D),k.lineMode=T?D.text:!1,D.text},A.prototype.onCopy=function(){this.commands.exec("copy",this)},A.prototype.onCut=function(){this.commands.exec("cut",this)},A.prototype.onPaste=function(w,L){var T={text:w,event:L};this.commands.exec("paste",this,T)},A.prototype.$handlePaste=function(w){typeof w=="string"&&(w={text:w}),this._signal("paste",w);var L=w.text,T=L===k.lineMode,O=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)T?O.insert({row:this.selection.lead.row,column:0},L):this.insert(L);else if(T)this.selection.rangeList.ranges.forEach(function(U){O.insert({row:U.start.row,column:0},L)});else{var I=L.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,L);for(var W=F.length;W--;){var G=F[W];G.isEmpty()||O.remove(G),O.insert(G.start,I[W])}}},A.prototype.execCommand=function(w,L){return this.commands.exec(w,this,L)},A.prototype.insert=function(w,L){var T=this.session,O=T.getMode(),I=this.getCursorPosition();if(this.getBehavioursEnabled()&&!L){var F=O.transformAction(T.getState(I.row),"insertion",this,T,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(`
1003
1005
  `)==-1){var D=new 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==`
1004
1006
  `||w==`\r
1005
1007
  `){var H=T.getLine(I.row);if(I.column>H.search(/\S|$/)){var W=H.substr(I.column).search(/\S|$/);T.doc.removeInLine(I.row,I.column,I.column+W)}}this.clearSelection();var G=I.column,U=T.getState(I.row),H=T.getLine(I.row),X=O.checkOutdent(U,H,w);if(T.insert(I,w),F&&F.selection&&(F.selection.length==2?this.selection.setSelectionRange(new m(I.row,G+F.selection[0],I.row,G+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(T.getDocument().isNewLine(w)){var J=O.getNextLineIndent(U,H.slice(0,I.column),T.getTabString());T.insert({row:I.row+1,column:0},J)}X&&O.autoOutdent(U,T,I.row)}},A.prototype.autoIndent=function(){var w=this.session,L=w.getMode(),T,O;if(this.selection.isEmpty())T=0,O=w.doc.getLength()-1;else{var I=this.getSelectionRange();T=I.start.row,O=I.end.row}for(var F="",D="",W="",G,U,H,X=w.getTabString(),J=T;J<=O;J++)J>0&&(F=w.getState(J-1),D=w.getLine(J-1),W=L.getNextLineIndent(F,D,X)),G=w.getLine(J),U=L.$getIndent(G),W!==U&&(U.length>0&&(H=new m(J,0,J,U.length),w.remove(H)),W.length>0&&w.insert({row:J,column:0},W)),L.autoOutdent(F,w,J)},A.prototype.onTextInput=function(w,L){if(!L)return this.keyBinding.onTextInput(w);this.startOperation({command:{name:"insertstring"}});var T=this.applyComposition.bind(this,w,L);this.selection.rangeCount?this.forEachSelection(T):T(),this.endOperation()},A.prototype.applyComposition=function(w,L){if(L.extendLeft||L.extendRight){var T=this.selection.getRange();T.start.column-=L.extendLeft,T.end.column+=L.extendRight,T.start.column<0&&(T.start.row--,T.start.column+=this.session.getLine(T.start.row).length+1),this.selection.setRange(T),!w&&!T.isEmpty()&&this.remove()}if((w||!this.selection.isEmpty())&&this.insert(w,!0),L.restoreStart||L.restoreEnd){var T=this.selection.getRange();T.start.column-=L.restoreStart,T.end.column-=L.restoreEnd,this.selection.setRange(T)}},A.prototype.onCommandKey=function(w,L,T){return this.keyBinding.onCommandKey(w,L,T)},A.prototype.setOverwrite=function(w){this.session.setOverwrite(w)},A.prototype.getOverwrite=function(){return this.session.getOverwrite()},A.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},A.prototype.setScrollSpeed=function(w){this.setOption("scrollSpeed",w)},A.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},A.prototype.setDragDelay=function(w){this.setOption("dragDelay",w)},A.prototype.getDragDelay=function(){return this.getOption("dragDelay")},A.prototype.setSelectionStyle=function(w){this.setOption("selectionStyle",w)},A.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},A.prototype.setHighlightActiveLine=function(w){this.setOption("highlightActiveLine",w)},A.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},A.prototype.setHighlightGutterLine=function(w){this.setOption("highlightGutterLine",w)},A.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},A.prototype.setHighlightSelectedWord=function(w){this.setOption("highlightSelectedWord",w)},A.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},A.prototype.setAnimatedScroll=function(w){this.renderer.setAnimatedScroll(w)},A.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},A.prototype.setShowInvisibles=function(w){this.renderer.setShowInvisibles(w)},A.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},A.prototype.setDisplayIndentGuides=function(w){this.renderer.setDisplayIndentGuides(w)},A.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},A.prototype.setHighlightIndentGuides=function(w){this.renderer.setHighlightIndentGuides(w)},A.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},A.prototype.setShowPrintMargin=function(w){this.renderer.setShowPrintMargin(w)},A.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},A.prototype.setPrintMarginColumn=function(w){this.renderer.setPrintMarginColumn(w)},A.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},A.prototype.setReadOnly=function(w){this.setOption("readOnly",w)},A.prototype.getReadOnly=function(){return this.getOption("readOnly")},A.prototype.setBehavioursEnabled=function(w){this.setOption("behavioursEnabled",w)},A.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},A.prototype.setWrapBehavioursEnabled=function(w){this.setOption("wrapBehavioursEnabled",w)},A.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},A.prototype.setShowFoldWidgets=function(w){this.setOption("showFoldWidgets",w)},A.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},A.prototype.setFadeFoldWidgets=function(w){this.setOption("fadeFoldWidgets",w)},A.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},A.prototype.remove=function(w){this.selection.isEmpty()&&(w=="left"?this.selection.selectLeft():this.selection.selectRight());var L=this.getSelectionRange();if(this.getBehavioursEnabled()){var T=this.session,O=T.getState(L.start.row),I=T.getMode().transformAction(O,"deletion",this,T,L);if(L.end.column===0){var F=T.getTextRange(L);if(F[F.length-1]==`
1006
1008
  `){var D=T.getLine(L.end.row);/^\s+$/.test(D)&&(L.end.column=D.length)}}I&&(L=I)}this.session.remove(L),this.clearSelection()},A.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},A.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},A.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},A.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()},A.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var w=this.getCursorPosition();this.insert(`
1007
- `),this.moveCursorToPosition(w)},A.prototype.setGhostText=function(w,L){this.session.widgetManager||(this.session.widgetManager=new $(this.session),this.session.widgetManager.attach(this)),this.renderer.setGhostText(w,L)},A.prototype.removeGhostText=function(){this.session.widgetManager&&this.renderer.removeGhostText()},A.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var w=this.getCursorPosition(),L=w.column;if(L!==0){var T=this.session.getLine(w.row),O,I;L<T.length?(O=T.charAt(L)+T.charAt(L-1),I=new m(w.row,L-1,w.row,L+1)):(O=T.charAt(L-1)+T.charAt(L-2),I=new m(w.row,L-2,w.row,L)),this.session.replace(I,O),this.session.selection.moveToPosition(I.end)}}},A.prototype.toLowerCase=function(){var w=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var L=this.getSelectionRange(),T=this.session.getTextRange(L);this.session.replace(L,T.toLowerCase()),this.selection.setSelectionRange(w)},A.prototype.toUpperCase=function(){var w=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var L=this.getSelectionRange(),T=this.session.getTextRange(L);this.session.replace(L,T.toUpperCase()),this.selection.setSelectionRange(w)},A.prototype.indent=function(){var w=this.session,L=this.getSelectionRange();if(L.start.row<L.end.row){var T=this.$getSelectedRows();w.indentRows(T.first,T.last," ");return}else if(L.start.column<L.end.column){var O=w.getTextRange(L);if(!/^\s+$/.test(O)){var T=this.$getSelectedRows();w.indentRows(T.first,T.last," ");return}}var I=w.getLine(L.start.row),F=L.start,D=w.getTabSize(),W=w.documentToScreenColumn(F.row,F.column);if(this.session.getUseSoftTabs())var G=D-W%D,U=s.stringRepeat(" ",G);else{for(var G=W%D;I[L.start.column-1]==" "&&G;)L.start.column--,G--;this.selection.setSelectionRange(L),U=" "}return this.insert(U)},A.prototype.blockIndent=function(){var w=this.$getSelectedRows();this.session.indentRows(w.first,w.last," ")},A.prototype.blockOutdent=function(){var w=this.session.getSelection();this.session.outdentRows(w.getRange())},A.prototype.sortLines=function(){for(var w=this.$getSelectedRows(),L=this.session,T=[],O=w.first;O<=w.last;O++)T.push(L.getLine(O));T.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=L.getLine(O);I.start.row=O,I.end.row=O,I.end.column=F.length,L.replace(I,T[O-w.first])}},A.prototype.toggleCommentLines=function(){var w=this.session.getState(this.getCursorPosition().row),L=this.$getSelectedRows();this.session.getMode().toggleCommentLines(w,this.session,L.first,L.last)},A.prototype.toggleBlockComment=function(){var w=this.getCursorPosition(),L=this.session.getState(w.row),T=this.getSelectionRange();this.session.getMode().toggleBlockComment(L,this.session,T,w)},A.prototype.getNumberAt=function(w,L){var T=/[\-]?[0-9]+(?:\.[0-9]+)?/g;T.lastIndex=0;for(var O=this.session.getLine(w);T.lastIndex<L;){var I=T.exec(O);if(I.index<=L&&I.index+I[0].length>=L){var F={value:I[0],start:I.index,end:I.index+I[0].length};return F}}return null},A.prototype.modifyNumber=function(w){var L=this.selection.getCursor().row,T=this.selection.getCursor().column,O=new m(L,T-1,L,T),I=this.session.getTextRange(O);if(!isNaN(parseFloat(I))&&isFinite(I)){var F=this.getNumberAt(L,T);if(F){var D=F.value.indexOf(".")>=0?F.start+F.value.indexOf(".")+1:F.end,W=F.start+F.value.length-D,G=parseFloat(F.value);G*=Math.pow(10,W),D!==F.end&&T<D?w*=Math.pow(10,F.end-T-1):w*=Math.pow(10,F.end-T),G+=w,G/=Math.pow(10,W);var U=G.toFixed(W),H=new m(L,F.start,L,F.end);this.session.replace(H,U),this.moveCursorTo(L,Math.max(F.start+1,T+U.length-F.value.length))}}else this.toggleWord()},A.prototype.toggleWord=function(){var w=this.selection.getCursor().row,L=this.selection.getCursor().column;this.selection.selectWord();var T=this.getSelectedText(),O=this.selection.getWordRange().start.column,I=T.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),F=L-O-1;F<0&&(F=0);var D=0,W=0,G=this;T.match(/[A-Za-z0-9_]+/)&&I.forEach(function(ee,N){W=D+ee.length,F>=D&&F<=W&&(T=ee,G.selection.clearSelection(),G.moveCursorTo(w,D+O),G.selection.selectTo(w,W+O)),D=W});for(var U=this.$toggleWordPairs,H,X=0;X<U.length;X++)for(var J=U[X],z=0;z<=1;z++){var Y=+!z,K=T.match(new RegExp("^\\s?_?("+s.escapeRegExp(J[z])+")\\s?$","i"));if(K){var V=T.match(new RegExp("([_]|^|\\s)("+s.escapeRegExp(K[1])+")($|\\s)","g"));V&&(H=T.replace(new RegExp(s.escapeRegExp(J[z]),"i"),function(ee){var N=J[Y];return ee.toUpperCase()==ee?N=N.toUpperCase():ee.charAt(0).toUpperCase()==ee.charAt(0)&&(N=N.substr(0,0)+J[Y].charAt(0).toUpperCase()+N.substr(1)),N}),this.insert(H),H="")}}},A.prototype.findLinkAt=function(w,L){var T,O,I=this.session.getLine(w),F=I.split(/((?:https?|ftp):\/\/[\S]+)/),D=L;D<0&&(D=0);var W=0,G=0,U;try{for(var H=u(F),X=H.next();!X.done;X=H.next()){var J=X.value;if(G=W+J.length,D>=W&&D<=G&&J.match(/((?:https?|ftp):\/\/[\S]+)/)){U=J.replace(/[\s:.,'";}\]]+$/,"");break}W=G}}catch(z){T={error:z}}finally{try{X&&!X.done&&(O=H.return)&&O.call(H)}finally{if(T)throw T.error}}return U},A.prototype.openLink=function(){var w=this.selection.getCursor(),L=this.findLinkAt(w.row,w.column);return L&&window.open(L,"_blank"),L!=null},A.prototype.removeLines=function(){var w=this.$getSelectedRows();this.session.removeFullLines(w.first,w.last),this.clearSelection()},A.prototype.duplicateSelection=function(){var w=this.selection,L=this.session,T=w.getRange(),O=w.isBackwards();if(T.isEmpty()){var I=T.start.row;L.duplicateLines(I,I)}else{var F=O?T.start:T.end,D=L.insert(F,L.getTextRange(T),!1);T.start=F,T.end=D,w.setSelectionRange(T,O)}},A.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},A.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},A.prototype.moveText=function(w,L,T){return this.session.moveText(w,L,T)},A.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},A.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},A.prototype.$moveLines=function(w,L){var T,O,I=this.selection;if(!I.inMultiSelectMode||this.inVirtualSelectionMode){var F=I.toOrientedRange();T=this.$getSelectedRows(F),O=this.session.$moveLines(T.first,T.last,L?0:w),L&&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,G=0,U=D.length,H=0;H<U;H++){var X=H;D[H].moveBy(W,0),T=this.$getSelectedRows(D[H]);for(var J=T.first,z=T.last;++H<U;){G&&D[H].moveBy(G,0);var Y=this.$getSelectedRows(D[H]);if(L&&Y.first!=z)break;if(!L&&Y.first>z+1)break;z=Y.last}for(H--,W=this.session.$moveLines(J,z,L?0:w),L&&w==-1&&(X=H+1);X<=H;)D[X].moveBy(W,0),X++;L||(W=0),G+=W}I.fromOrientedRange(I.ranges[0]),I.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},A.prototype.$getSelectedRows=function(w){return w=(w||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(w.start.row),last:this.session.getRowFoldEnd(w.end.row)}},A.prototype.onCompositionStart=function(w){this.renderer.showComposition(w)},A.prototype.onCompositionUpdate=function(w){this.renderer.setCompositionText(w)},A.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},A.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},A.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},A.prototype.isRowVisible=function(w){return w>=this.getFirstVisibleRow()&&w<=this.getLastVisibleRow()},A.prototype.isRowFullyVisible=function(w){return w>=this.renderer.getFirstFullyVisibleRow()&&w<=this.renderer.getLastFullyVisibleRow()},A.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},A.prototype.$moveByPage=function(w,L){var T=this.renderer,O=this.renderer.layerConfig,I=w*Math.floor(O.height/O.lineHeight);L===!0?this.selection.$moveSelection(function(){this.moveCursorBy(I,0)}):L===!1&&(this.selection.moveCursorBy(I,0),this.selection.clearSelection());var F=T.scrollTop;T.scrollBy(0,I*O.lineHeight),L!=null&&T.scrollCursorIntoView(null,.5),T.animateScrolling(F)},A.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},A.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},A.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},A.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},A.prototype.scrollPageDown=function(){this.$moveByPage(1)},A.prototype.scrollPageUp=function(){this.$moveByPage(-1)},A.prototype.scrollToRow=function(w){this.renderer.scrollToRow(w)},A.prototype.scrollToLine=function(w,L,T,O){this.renderer.scrollToLine(w,L,T,O)},A.prototype.centerSelection=function(){var w=this.getSelectionRange(),L={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(L,.5)},A.prototype.getCursorPosition=function(){return this.selection.getCursor()},A.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},A.prototype.getSelectionRange=function(){return this.selection.getRange()},A.prototype.selectAll=function(){this.selection.selectAll()},A.prototype.clearSelection=function(){this.selection.clearSelection()},A.prototype.moveCursorTo=function(w,L){this.selection.moveCursorTo(w,L)},A.prototype.moveCursorToPosition=function(w){this.selection.moveCursorToPosition(w)},A.prototype.jumpToMatching=function(w,L){var T=this.getCursorPosition(),O=new C(this.session,T.row,T.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,G=!1,U={},H=T.column-D.start,X,J={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(D.value.match(/[{}()\[\]]/g)){for(;H<D.value.length&&!G;H++)if(J[D.value[H]])switch(X=J[D.value[H]]+"."+D.type.replace("rparen","lparen"),isNaN(U[X])&&(U[X]=0),D.value[H]){case"(":case"[":case"{":U[X]++;break;case")":case"]":case"}":U[X]--,U[X]===-1&&(W="bracket",G=!0);break}}else D.type.indexOf("tag-name")!==-1&&(isNaN(U[D.value])&&(U[D.value]=0),I.value==="<"&&F>1?U[D.value]++:I.value==="</"&&U[D.value]--,U[D.value]===-1&&(W="tag",G=!0));G||(I=D,F++,D=O.stepForward(),H=0)}while(D&&!G);if(W){var z,Y;if(W==="bracket")z=this.session.getBracketRange(T),z||(z=new m(O.getCurrentTokenRow(),O.getCurrentTokenColumn()+H-1,O.getCurrentTokenRow(),O.getCurrentTokenColumn()+H-1),Y=z.start,(L||Y.row===T.row&&Math.abs(Y.column-T.column)<2)&&(z=this.session.getBracketRange(Y)));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(T.row,T.column)===0){var K=this.session.getMatchingTags(T);K&&(K.openTag.contains(T.row,T.column)?(z=K.closeTag,Y=z.start):(z=K.openTag,K.closeTag.start.row===T.row&&K.closeTag.start.column===T.column?Y=z.end:Y=z.start))}Y=Y||z.start}Y=z&&z.cursor||Y,Y&&(w?z&&L?this.selection.setRange(z):z&&z.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(Y.row,Y.column):this.selection.moveTo(Y.row,Y.column))}}},A.prototype.gotoLine=function(w,L,T){this.selection.clearSelection(),this.session.unfold({row:w-1,column:L||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(w-1,L||0),this.isRowFullyVisible(w-1)||this.scrollToLine(w-1,!0,T)},A.prototype.navigateTo=function(w,L){this.selection.moveTo(w,L)},A.prototype.navigateUp=function(w){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var L=this.selection.anchor.getPosition();return this.moveCursorToPosition(L)}this.selection.clearSelection(),this.selection.moveCursorBy(-w||-1,0)},A.prototype.navigateDown=function(w){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var L=this.selection.anchor.getPosition();return this.moveCursorToPosition(L)}this.selection.clearSelection(),this.selection.moveCursorBy(w||1,0)},A.prototype.navigateLeft=function(w){if(this.selection.isEmpty())for(w=w||1;w--;)this.selection.moveCursorLeft();else{var L=this.getSelectionRange().start;this.moveCursorToPosition(L)}this.clearSelection()},A.prototype.navigateRight=function(w){if(this.selection.isEmpty())for(w=w||1;w--;)this.selection.moveCursorRight();else{var L=this.getSelectionRange().end;this.moveCursorToPosition(L)}this.clearSelection()},A.prototype.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},A.prototype.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},A.prototype.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},A.prototype.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},A.prototype.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},A.prototype.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},A.prototype.replace=function(w,L){L&&this.$search.set(L);var T=this.$search.find(this.session),O=0;return T&&(this.$tryReplace(T,w)&&(O=1),this.selection.setSelectionRange(T),this.renderer.scrollSelectionIntoView(T.start,T.end)),O},A.prototype.replaceAll=function(w,L){L&&this.$search.set(L);var T=this.$search.findAll(this.session),O=0;if(!T.length)return O;var I=this.getSelectionRange();this.selection.moveTo(0,0);for(var F=T.length-1;F>=0;--F)this.$tryReplace(T[F],w)&&O++;return this.selection.setSelectionRange(I),O},A.prototype.$tryReplace=function(w,L){var T=this.session.getTextRange(w);return L=this.$search.replace(T,L),L!==null?(w.end=this.session.replace(w,L),w):null},A.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},A.prototype.find=function(w,L,T){L||(L={}),typeof w=="string"||w instanceof RegExp?L.needle=w:typeof w=="object"&&p.mixin(L,w);var O=this.selection.getRange();L.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(L),L.start||this.$search.set({start:O});var I=this.$search.find(this.session);if(L.preventScroll)return I;if(I)return this.revealRange(I,T),I;L.backwards?O.start=O.end:O.end=O.start,this.selection.setRange(O)},A.prototype.findNext=function(w,L){this.find({skipCurrent:!0,backwards:!1},w,L)},A.prototype.findPrevious=function(w,L){this.find(w,{skipCurrent:!0,backwards:!0},L)},A.prototype.revealRange=function(w,L){this.session.unfold(w),this.selection.setSelectionRange(w);var T=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(w.start,w.end,.5),L!==!1&&this.renderer.animateScrolling(T)},A.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},A.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},A.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()},A.prototype.setAutoScrollEditorIntoView=function(w){if(w){var L,T=this,O=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var I=this.$scrollAnchor;I.style.cssText="position:absolute",this.container.insertBefore(I,this.container.firstChild);var F=this.on("changeSelection",function(){O=!0}),D=this.renderer.on("beforeRender",function(){O&&(L=T.renderer.container.getBoundingClientRect())}),W=this.renderer.on("afterRender",function(){if(O&&L&&(T.isFocused()||T.searchBox&&T.searchBox.isFocused())){var G=T.renderer,U=G.$cursorLayer.$pixelPos,H=G.layerConfig,X=U.top-H.offset;U.top>=0&&X+L.top<0?O=!0:U.top<H.height&&U.top+L.top+H.lineHeight>window.innerHeight?O=!1:O=null,O!=null&&(I.style.top=X+"px",I.style.left=U.left+"px",I.style.height=H.lineHeight+"px",I.scrollIntoView(O)),O=L=null}});this.setAutoScrollEditorIntoView=function(G){G||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",F),this.renderer.off("afterRender",W),this.renderer.off("beforeRender",D))}}},A.prototype.$resetCursorStyle=function(){var w=this.$cursorStyle||"ace",L=this.renderer.$cursorLayer;L&&(L.setSmoothBlinking(/smooth/.test(w)),L.isBlinking=!this.$readOnly&&w!="wide",g.setCssClass(L.element,"ace_slim-cursors",/slim/.test(w)))},A.prototype.prompt=function(w,L,T){var O=this;S.loadModule("ace/ext/prompt",function(I){I.prompt(O,w,L,T)})},A}();v.$uid=0,v.prototype.curOp=null,v.prototype.prevOp={},v.prototype.$mergeableCommands=["backspace","del","insertstring"],v.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"],["&&","||"],["==","!="]],p.implement(v.prototype,y),S.defineOptions(v.prototype,"editor",{selectionStyle:{set:function(A){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:A})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(A){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(A){this.textInput.setReadOnly(A),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(A){this.textInput.setCopyWithEmptySelection(A)},initialValue:!1},cursorStyle:{set:function(A){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(A){this.setAutoScrollEditorIntoView(A)}},keyboardHandler:{set:function(A){this.setKeyboardHandler(A)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(A){this.session.setValue(A)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(A){this.setSession(A)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(A){this.renderer.$gutterLayer.setShowLineNumbers(A),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),A&&this.$relativeLineNumbers?M.attach(this):M.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(A){this.$showLineNumbers&&A?M.attach(this):M.detach(this)}},placeholder:{set:function(A){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 L=g.createElement("div");L.className="ace_placeholder",L.textContent=this.$placeholder||"",this.renderer.placeholderNode=L,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(A){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},L=function(O){if(O.target==this.renderer.scroller&&O.keyCode===_.enter){O.preventDefault();var I=this.getCursorPosition().row;this.isRowVisible(I)||this.scrollToLine(I,!0,!0),this.focus()}},T;A?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(h.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",x("editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",x("Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",L.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",x("editor")),this.renderer.$gutter.setAttribute("aria-label",x("Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit")),this.renderer.$gutter.classList.add(this.renderer.keyboardFocusClassName),this.renderer.content.setAttribute("aria-hidden",!0),T||(T=new R(this)),T.addListener()):(this.renderer.enableKeyboardAccessibility=!1,this.textInput.getElement().setAttribute("tabindex",0),this.textInput.setNumberOfExtraLines(0),this.renderer.scroller.setAttribute("tabindex",-1),this.renderer.scroller.removeAttribute("role"),this.renderer.scroller.removeAttribute("aria-roledescription"),this.renderer.scroller.classList.remove(this.renderer.keyboardFocusClassName),this.renderer.scroller.removeAttribute("aria-label"),this.renderer.scroller.removeEventListener("keyup",L.bind(this)),this.commands.removeCommand(w),this.renderer.content.removeAttribute("aria-hidden"),this.renderer.$gutter.setAttribute("tabindex",-1),this.renderer.$gutter.setAttribute("aria-hidden",!0),this.renderer.$gutter.removeAttribute("role"),this.renderer.$gutter.removeAttribute("aria-roledescription"),this.renderer.$gutter.removeAttribute("aria-label"),this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName),T&&T.removeListener())},initialValue:!1},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",useResizeObserver:"renderer",useSvgGutterIcons:"renderer",showFoldedAnnotations:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var M={getText:function(A,w){return(Math.abs(A.selection.lead.row-w)||w+1+(w<9?"·":""))+""},getWidth:function(A,w,L){return Math.max(w.toString().length,(L.lastRow+1).toString().length,2)*L.characterWidth},update:function(A,w){w.renderer.$loop.schedule(w.renderer.CHANGE_GUTTER)},attach:function(A){A.renderer.$gutterLayer.$renderer=this,A.on("changeSelection",this.update),this.update(null,A)},detach:function(A){A.renderer.$gutterLayer.$renderer==this&&(A.renderer.$gutterLayer.$renderer=null),A.off("changeSelection",this.update),this.update(null,A)}};i.Editor=v}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(n,i,d){var u=function(){function C(){this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return C.prototype.addSession=function($){this.$session=$},C.prototype.add=function($,R,x){if(!this.$fromUndo&&$!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),R===!1||!this.lastDeltas){this.lastDeltas=[];var k=this.$undoStack.length;k>this.$undoDepth-1&&this.$undoStack.splice(0,k-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),$.id=this.$rev=++this.$maxRev}($.action=="remove"||$.action=="insert")&&(this.$lastDelta=$),this.lastDeltas.push($)}},C.prototype.addSelection=function($,R){this.selections.push({value:$,rev:R||this.$rev})},C.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},C.prototype.markIgnored=function($,R){R==null&&(R=this.$rev+1);for(var x=this.$undoStack,k=x.length;k--;){var _=x[k][0];if(_.id<=$)break;_.id<R&&(_.ignore=!0)}this.lastDeltas=null},C.prototype.getSelection=function($,R){for(var x=this.selections,k=x.length;k--;){var _=x[k];if(_.rev<$)return R&&(_=x[k+1]),_}},C.prototype.getRevision=function(){return this.$rev},C.prototype.getDeltas=function($,R){R==null&&(R=this.$rev+1);for(var x=this.$undoStack,k=null,_=0,v=x.length;v--;){var M=x[v][0];if(M.id<R&&!k&&(k=v+1),M.id<=$){_=v+1;break}}return x.slice(_,k)},C.prototype.getChangedRanges=function($,R){R==null&&(R=this.$rev+1)},C.prototype.getChangedLines=function($,R){R==null&&(R=this.$rev+1)},C.prototype.undo=function($,R){this.lastDeltas=null;var x=this.$undoStack;if(p(x,x.length)){$||($=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var k=x.pop(),_=null;return k&&(_=$.undoChanges(k,R),this.$redoStack.push(k),this.$syncRev()),this.$fromUndo=!1,_}},C.prototype.redo=function($,R){if(this.lastDeltas=null,$||($=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var x=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);S(this.$redoStack,x),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(v){v[0].id=++this.$maxRev},this)}var k=this.$redoStack.pop(),_=null;return k&&(_=$.redoChanges(k,R),this.$undoStack.push(k),this.$syncRev()),this.$fromUndo=!1,_},C.prototype.$syncRev=function(){var $=this.$undoStack,R=$[$.length-1],x=R&&R[0].id||0;this.$redoStackBaseRev=x,this.$rev=x},C.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=[]},C.prototype.canUndo=function(){return this.$undoStack.length>0},C.prototype.canRedo=function(){return this.$redoStack.length>0},C.prototype.bookmark=function($){$==null&&($=this.$rev),this.mark=$},C.prototype.isAtBookmark=function(){return this.$rev===this.mark},C.prototype.toJSON=function(){},C.prototype.fromJSON=function(){},C.prototype.$prettyPrint=function($){return $?r($):r(this.$undoStack)+`
1009
+ `),this.moveCursorToPosition(w)},A.prototype.setGhostText=function(w,L){this.session.widgetManager||(this.session.widgetManager=new $(this.session),this.session.widgetManager.attach(this)),this.renderer.setGhostText(w,L)},A.prototype.removeGhostText=function(){this.session.widgetManager&&this.renderer.removeGhostText()},A.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var w=this.getCursorPosition(),L=w.column;if(L!==0){var T=this.session.getLine(w.row),O,I;L<T.length?(O=T.charAt(L)+T.charAt(L-1),I=new m(w.row,L-1,w.row,L+1)):(O=T.charAt(L-1)+T.charAt(L-2),I=new m(w.row,L-2,w.row,L)),this.session.replace(I,O),this.session.selection.moveToPosition(I.end)}}},A.prototype.toLowerCase=function(){var w=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var L=this.getSelectionRange(),T=this.session.getTextRange(L);this.session.replace(L,T.toLowerCase()),this.selection.setSelectionRange(w)},A.prototype.toUpperCase=function(){var w=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var L=this.getSelectionRange(),T=this.session.getTextRange(L);this.session.replace(L,T.toUpperCase()),this.selection.setSelectionRange(w)},A.prototype.indent=function(){var w=this.session,L=this.getSelectionRange();if(L.start.row<L.end.row){var T=this.$getSelectedRows();w.indentRows(T.first,T.last," ");return}else if(L.start.column<L.end.column){var O=w.getTextRange(L);if(!/^\s+$/.test(O)){var T=this.$getSelectedRows();w.indentRows(T.first,T.last," ");return}}var I=w.getLine(L.start.row),F=L.start,D=w.getTabSize(),W=w.documentToScreenColumn(F.row,F.column);if(this.session.getUseSoftTabs())var G=D-W%D,U=s.stringRepeat(" ",G);else{for(var G=W%D;I[L.start.column-1]==" "&&G;)L.start.column--,G--;this.selection.setSelectionRange(L),U=" "}return this.insert(U)},A.prototype.blockIndent=function(){var w=this.$getSelectedRows();this.session.indentRows(w.first,w.last," ")},A.prototype.blockOutdent=function(){var w=this.session.getSelection();this.session.outdentRows(w.getRange())},A.prototype.sortLines=function(){for(var w=this.$getSelectedRows(),L=this.session,T=[],O=w.first;O<=w.last;O++)T.push(L.getLine(O));T.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=L.getLine(O);I.start.row=O,I.end.row=O,I.end.column=F.length,L.replace(I,T[O-w.first])}},A.prototype.toggleCommentLines=function(){var w=this.session.getState(this.getCursorPosition().row),L=this.$getSelectedRows();this.session.getMode().toggleCommentLines(w,this.session,L.first,L.last)},A.prototype.toggleBlockComment=function(){var w=this.getCursorPosition(),L=this.session.getState(w.row),T=this.getSelectionRange();this.session.getMode().toggleBlockComment(L,this.session,T,w)},A.prototype.getNumberAt=function(w,L){var T=/[\-]?[0-9]+(?:\.[0-9]+)?/g;T.lastIndex=0;for(var O=this.session.getLine(w);T.lastIndex<L;){var I=T.exec(O);if(I.index<=L&&I.index+I[0].length>=L){var F={value:I[0],start:I.index,end:I.index+I[0].length};return F}}return null},A.prototype.modifyNumber=function(w){var L=this.selection.getCursor().row,T=this.selection.getCursor().column,O=new m(L,T-1,L,T),I=this.session.getTextRange(O);if(!isNaN(parseFloat(I))&&isFinite(I)){var F=this.getNumberAt(L,T);if(F){var D=F.value.indexOf(".")>=0?F.start+F.value.indexOf(".")+1:F.end,W=F.start+F.value.length-D,G=parseFloat(F.value);G*=Math.pow(10,W),D!==F.end&&T<D?w*=Math.pow(10,F.end-T-1):w*=Math.pow(10,F.end-T),G+=w,G/=Math.pow(10,W);var U=G.toFixed(W),H=new m(L,F.start,L,F.end);this.session.replace(H,U),this.moveCursorTo(L,Math.max(F.start+1,T+U.length-F.value.length))}}else this.toggleWord()},A.prototype.toggleWord=function(){var w=this.selection.getCursor().row,L=this.selection.getCursor().column;this.selection.selectWord();var T=this.getSelectedText(),O=this.selection.getWordRange().start.column,I=T.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),F=L-O-1;F<0&&(F=0);var D=0,W=0,G=this;T.match(/[A-Za-z0-9_]+/)&&I.forEach(function(ee,N){W=D+ee.length,F>=D&&F<=W&&(T=ee,G.selection.clearSelection(),G.moveCursorTo(w,D+O),G.selection.selectTo(w,W+O)),D=W});for(var U=this.$toggleWordPairs,H,X=0;X<U.length;X++)for(var J=U[X],z=0;z<=1;z++){var Y=+!z,K=T.match(new RegExp("^\\s?_?("+s.escapeRegExp(J[z])+")\\s?$","i"));if(K){var V=T.match(new RegExp("([_]|^|\\s)("+s.escapeRegExp(K[1])+")($|\\s)","g"));V&&(H=T.replace(new RegExp(s.escapeRegExp(J[z]),"i"),function(ee){var N=J[Y];return ee.toUpperCase()==ee?N=N.toUpperCase():ee.charAt(0).toUpperCase()==ee.charAt(0)&&(N=N.substr(0,0)+J[Y].charAt(0).toUpperCase()+N.substr(1)),N}),this.insert(H),H="")}}},A.prototype.findLinkAt=function(w,L){var T,O,I=this.session.getLine(w),F=I.split(/((?:https?|ftp):\/\/[\S]+)/),D=L;D<0&&(D=0);var W=0,G=0,U;try{for(var H=u(F),X=H.next();!X.done;X=H.next()){var J=X.value;if(G=W+J.length,D>=W&&D<=G&&J.match(/((?:https?|ftp):\/\/[\S]+)/)){U=J.replace(/[\s:.,'";}\]]+$/,"");break}W=G}}catch(z){T={error:z}}finally{try{X&&!X.done&&(O=H.return)&&O.call(H)}finally{if(T)throw T.error}}return U},A.prototype.openLink=function(){var w=this.selection.getCursor(),L=this.findLinkAt(w.row,w.column);return L&&window.open(L,"_blank"),L!=null},A.prototype.removeLines=function(){var w=this.$getSelectedRows();this.session.removeFullLines(w.first,w.last),this.clearSelection()},A.prototype.duplicateSelection=function(){var w=this.selection,L=this.session,T=w.getRange(),O=w.isBackwards();if(T.isEmpty()){var I=T.start.row;L.duplicateLines(I,I)}else{var F=O?T.start:T.end,D=L.insert(F,L.getTextRange(T),!1);T.start=F,T.end=D,w.setSelectionRange(T,O)}},A.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},A.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},A.prototype.moveText=function(w,L,T){return this.session.moveText(w,L,T)},A.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},A.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},A.prototype.$moveLines=function(w,L){var T,O,I=this.selection;if(!I.inMultiSelectMode||this.inVirtualSelectionMode){var F=I.toOrientedRange();T=this.$getSelectedRows(F),O=this.session.$moveLines(T.first,T.last,L?0:w),L&&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,G=0,U=D.length,H=0;H<U;H++){var X=H;D[H].moveBy(W,0),T=this.$getSelectedRows(D[H]);for(var J=T.first,z=T.last;++H<U;){G&&D[H].moveBy(G,0);var Y=this.$getSelectedRows(D[H]);if(L&&Y.first!=z)break;if(!L&&Y.first>z+1)break;z=Y.last}for(H--,W=this.session.$moveLines(J,z,L?0:w),L&&w==-1&&(X=H+1);X<=H;)D[X].moveBy(W,0),X++;L||(W=0),G+=W}I.fromOrientedRange(I.ranges[0]),I.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},A.prototype.$getSelectedRows=function(w){return w=(w||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(w.start.row),last:this.session.getRowFoldEnd(w.end.row)}},A.prototype.onCompositionStart=function(w){this.renderer.showComposition(w)},A.prototype.onCompositionUpdate=function(w){this.renderer.setCompositionText(w)},A.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},A.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},A.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},A.prototype.isRowVisible=function(w){return w>=this.getFirstVisibleRow()&&w<=this.getLastVisibleRow()},A.prototype.isRowFullyVisible=function(w){return w>=this.renderer.getFirstFullyVisibleRow()&&w<=this.renderer.getLastFullyVisibleRow()},A.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},A.prototype.$moveByPage=function(w,L){var T=this.renderer,O=this.renderer.layerConfig,I=w*Math.floor(O.height/O.lineHeight);L===!0?this.selection.$moveSelection(function(){this.moveCursorBy(I,0)}):L===!1&&(this.selection.moveCursorBy(I,0),this.selection.clearSelection());var F=T.scrollTop;T.scrollBy(0,I*O.lineHeight),L!=null&&T.scrollCursorIntoView(null,.5),T.animateScrolling(F)},A.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},A.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},A.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},A.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},A.prototype.scrollPageDown=function(){this.$moveByPage(1)},A.prototype.scrollPageUp=function(){this.$moveByPage(-1)},A.prototype.scrollToRow=function(w){this.renderer.scrollToRow(w)},A.prototype.scrollToLine=function(w,L,T,O){this.renderer.scrollToLine(w,L,T,O)},A.prototype.centerSelection=function(){var w=this.getSelectionRange(),L={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(L,.5)},A.prototype.getCursorPosition=function(){return this.selection.getCursor()},A.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},A.prototype.getSelectionRange=function(){return this.selection.getRange()},A.prototype.selectAll=function(){this.selection.selectAll()},A.prototype.clearSelection=function(){this.selection.clearSelection()},A.prototype.moveCursorTo=function(w,L){this.selection.moveCursorTo(w,L)},A.prototype.moveCursorToPosition=function(w){this.selection.moveCursorToPosition(w)},A.prototype.jumpToMatching=function(w,L){var T=this.getCursorPosition(),O=new C(this.session,T.row,T.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,G=!1,U={},H=T.column-D.start,X,J={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(D.value.match(/[{}()\[\]]/g)){for(;H<D.value.length&&!G;H++)if(J[D.value[H]])switch(X=J[D.value[H]]+"."+D.type.replace("rparen","lparen"),isNaN(U[X])&&(U[X]=0),D.value[H]){case"(":case"[":case"{":U[X]++;break;case")":case"]":case"}":U[X]--,U[X]===-1&&(W="bracket",G=!0);break}}else D.type.indexOf("tag-name")!==-1&&(isNaN(U[D.value])&&(U[D.value]=0),I.value==="<"&&F>1?U[D.value]++:I.value==="</"&&U[D.value]--,U[D.value]===-1&&(W="tag",G=!0));G||(I=D,F++,D=O.stepForward(),H=0)}while(D&&!G);if(W){var z,Y;if(W==="bracket")z=this.session.getBracketRange(T),z||(z=new m(O.getCurrentTokenRow(),O.getCurrentTokenColumn()+H-1,O.getCurrentTokenRow(),O.getCurrentTokenColumn()+H-1),Y=z.start,(L||Y.row===T.row&&Math.abs(Y.column-T.column)<2)&&(z=this.session.getBracketRange(Y)));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(T.row,T.column)===0){var K=this.session.getMatchingTags(T);K&&(K.openTag.contains(T.row,T.column)?(z=K.closeTag,Y=z.start):(z=K.openTag,K.closeTag.start.row===T.row&&K.closeTag.start.column===T.column?Y=z.end:Y=z.start))}Y=Y||z.start}Y=z&&z.cursor||Y,Y&&(w?z&&L?this.selection.setRange(z):z&&z.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(Y.row,Y.column):this.selection.moveTo(Y.row,Y.column))}}},A.prototype.gotoLine=function(w,L,T){this.selection.clearSelection(),this.session.unfold({row:w-1,column:L||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(w-1,L||0),this.isRowFullyVisible(w-1)||this.scrollToLine(w-1,!0,T)},A.prototype.navigateTo=function(w,L){this.selection.moveTo(w,L)},A.prototype.navigateUp=function(w){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var L=this.selection.anchor.getPosition();return this.moveCursorToPosition(L)}this.selection.clearSelection(),this.selection.moveCursorBy(-w||-1,0)},A.prototype.navigateDown=function(w){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var L=this.selection.anchor.getPosition();return this.moveCursorToPosition(L)}this.selection.clearSelection(),this.selection.moveCursorBy(w||1,0)},A.prototype.navigateLeft=function(w){if(this.selection.isEmpty())for(w=w||1;w--;)this.selection.moveCursorLeft();else{var L=this.getSelectionRange().start;this.moveCursorToPosition(L)}this.clearSelection()},A.prototype.navigateRight=function(w){if(this.selection.isEmpty())for(w=w||1;w--;)this.selection.moveCursorRight();else{var L=this.getSelectionRange().end;this.moveCursorToPosition(L)}this.clearSelection()},A.prototype.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},A.prototype.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},A.prototype.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},A.prototype.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},A.prototype.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},A.prototype.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},A.prototype.replace=function(w,L){L&&this.$search.set(L);var T=this.$search.find(this.session),O=0;return T&&(this.$tryReplace(T,w)&&(O=1),this.selection.setSelectionRange(T),this.renderer.scrollSelectionIntoView(T.start,T.end)),O},A.prototype.replaceAll=function(w,L){L&&this.$search.set(L);var T=this.$search.findAll(this.session),O=0;if(!T.length)return O;var I=this.getSelectionRange();this.selection.moveTo(0,0);for(var F=T.length-1;F>=0;--F)this.$tryReplace(T[F],w)&&O++;return this.selection.setSelectionRange(I),O},A.prototype.$tryReplace=function(w,L){var T=this.session.getTextRange(w);return L=this.$search.replace(T,L),L!==null?(w.end=this.session.replace(w,L),w):null},A.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},A.prototype.find=function(w,L,T){L||(L={}),typeof w=="string"||w instanceof RegExp?L.needle=w:typeof w=="object"&&f.mixin(L,w);var O=this.selection.getRange();L.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(L),L.start||this.$search.set({start:O});var I=this.$search.find(this.session);if(L.preventScroll)return I;if(I)return this.revealRange(I,T),I;L.backwards?O.start=O.end:O.end=O.start,this.selection.setRange(O)},A.prototype.findNext=function(w,L){this.find({skipCurrent:!0,backwards:!1},w,L)},A.prototype.findPrevious=function(w,L){this.find(w,{skipCurrent:!0,backwards:!0},L)},A.prototype.revealRange=function(w,L){this.session.unfold(w),this.selection.setSelectionRange(w);var T=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(w.start,w.end,.5),L!==!1&&this.renderer.animateScrolling(T)},A.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},A.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},A.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()},A.prototype.setAutoScrollEditorIntoView=function(w){if(w){var L,T=this,O=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var I=this.$scrollAnchor;I.style.cssText="position:absolute",this.container.insertBefore(I,this.container.firstChild);var F=this.on("changeSelection",function(){O=!0}),D=this.renderer.on("beforeRender",function(){O&&(L=T.renderer.container.getBoundingClientRect())}),W=this.renderer.on("afterRender",function(){if(O&&L&&(T.isFocused()||T.searchBox&&T.searchBox.isFocused())){var G=T.renderer,U=G.$cursorLayer.$pixelPos,H=G.layerConfig,X=U.top-H.offset;U.top>=0&&X+L.top<0?O=!0:U.top<H.height&&U.top+L.top+H.lineHeight>window.innerHeight?O=!1:O=null,O!=null&&(I.style.top=X+"px",I.style.left=U.left+"px",I.style.height=H.lineHeight+"px",I.scrollIntoView(O)),O=L=null}});this.setAutoScrollEditorIntoView=function(G){G||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",F),this.renderer.off("afterRender",W),this.renderer.off("beforeRender",D))}}},A.prototype.$resetCursorStyle=function(){var w=this.$cursorStyle||"ace",L=this.renderer.$cursorLayer;L&&(L.setSmoothBlinking(/smooth/.test(w)),L.isBlinking=!this.$readOnly&&w!="wide",g.setCssClass(L.element,"ace_slim-cursors",/slim/.test(w)))},A.prototype.prompt=function(w,L,T){var O=this;S.loadModule("ace/ext/prompt",function(I){I.prompt(O,w,L,T)})},A}();v.$uid=0,v.prototype.curOp=null,v.prototype.prevOp={},v.prototype.$mergeableCommands=["backspace","del","insertstring"],v.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"],["&&","||"],["==","!="]],f.implement(v.prototype,y),S.defineOptions(v.prototype,"editor",{selectionStyle:{set:function(A){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:A})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(A){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(A){this.textInput.setReadOnly(A),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(A){this.textInput.setCopyWithEmptySelection(A)},initialValue:!1},cursorStyle:{set:function(A){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(A){this.setAutoScrollEditorIntoView(A)}},keyboardHandler:{set:function(A){this.setKeyboardHandler(A)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(A){this.session.setValue(A)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(A){this.setSession(A)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(A){this.renderer.$gutterLayer.setShowLineNumbers(A),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),A&&this.$relativeLineNumbers?M.attach(this):M.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(A){this.$showLineNumbers&&A?M.attach(this):M.detach(this)}},placeholder:{set:function(A){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 L=g.createElement("div");L.className="ace_placeholder",L.textContent=this.$placeholder||"",this.renderer.placeholderNode=L,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(A){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},L=function(O){if(O.target==this.renderer.scroller&&O.keyCode===_.enter){O.preventDefault();var I=this.getCursorPosition().row;this.isRowVisible(I)||this.scrollToLine(I,!0,!0),this.focus()}},T;A?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(h.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",x("editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",x("Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",L.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",x("editor")),this.renderer.$gutter.setAttribute("aria-label",x("Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit")),this.renderer.$gutter.classList.add(this.renderer.keyboardFocusClassName),this.renderer.content.setAttribute("aria-hidden",!0),T||(T=new R(this)),T.addListener()):(this.renderer.enableKeyboardAccessibility=!1,this.textInput.getElement().setAttribute("tabindex",0),this.textInput.setNumberOfExtraLines(0),this.renderer.scroller.setAttribute("tabindex",-1),this.renderer.scroller.removeAttribute("role"),this.renderer.scroller.removeAttribute("aria-roledescription"),this.renderer.scroller.classList.remove(this.renderer.keyboardFocusClassName),this.renderer.scroller.removeAttribute("aria-label"),this.renderer.scroller.removeEventListener("keyup",L.bind(this)),this.commands.removeCommand(w),this.renderer.content.removeAttribute("aria-hidden"),this.renderer.$gutter.setAttribute("tabindex",-1),this.renderer.$gutter.setAttribute("aria-hidden",!0),this.renderer.$gutter.removeAttribute("role"),this.renderer.$gutter.removeAttribute("aria-roledescription"),this.renderer.$gutter.removeAttribute("aria-label"),this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName),T&&T.removeListener())},initialValue:!1},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",useResizeObserver:"renderer",useSvgGutterIcons:"renderer",showFoldedAnnotations:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var M={getText:function(A,w){return(Math.abs(A.selection.lead.row-w)||w+1+(w<9?"·":""))+""},getWidth:function(A,w,L){return Math.max(w.toString().length,(L.lastRow+1).toString().length,2)*L.characterWidth},update:function(A,w){w.renderer.$loop.schedule(w.renderer.CHANGE_GUTTER)},attach:function(A){A.renderer.$gutterLayer.$renderer=this,A.on("changeSelection",this.update),this.update(null,A)},detach:function(A){A.renderer.$gutterLayer.$renderer==this&&(A.renderer.$gutterLayer.$renderer=null),A.off("changeSelection",this.update),this.update(null,A)}};i.Editor=v}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(n,i,p){var u=function(){function C(){this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return C.prototype.addSession=function($){this.$session=$},C.prototype.add=function($,R,x){if(!this.$fromUndo&&$!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),R===!1||!this.lastDeltas){this.lastDeltas=[];var k=this.$undoStack.length;k>this.$undoDepth-1&&this.$undoStack.splice(0,k-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),$.id=this.$rev=++this.$maxRev}($.action=="remove"||$.action=="insert")&&(this.$lastDelta=$),this.lastDeltas.push($)}},C.prototype.addSelection=function($,R){this.selections.push({value:$,rev:R||this.$rev})},C.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},C.prototype.markIgnored=function($,R){R==null&&(R=this.$rev+1);for(var x=this.$undoStack,k=x.length;k--;){var _=x[k][0];if(_.id<=$)break;_.id<R&&(_.ignore=!0)}this.lastDeltas=null},C.prototype.getSelection=function($,R){for(var x=this.selections,k=x.length;k--;){var _=x[k];if(_.rev<$)return R&&(_=x[k+1]),_}},C.prototype.getRevision=function(){return this.$rev},C.prototype.getDeltas=function($,R){R==null&&(R=this.$rev+1);for(var x=this.$undoStack,k=null,_=0,v=x.length;v--;){var M=x[v][0];if(M.id<R&&!k&&(k=v+1),M.id<=$){_=v+1;break}}return x.slice(_,k)},C.prototype.getChangedRanges=function($,R){R==null&&(R=this.$rev+1)},C.prototype.getChangedLines=function($,R){R==null&&(R=this.$rev+1)},C.prototype.undo=function($,R){this.lastDeltas=null;var x=this.$undoStack;if(f(x,x.length)){$||($=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var k=x.pop(),_=null;return k&&(_=$.undoChanges(k,R),this.$redoStack.push(k),this.$syncRev()),this.$fromUndo=!1,_}},C.prototype.redo=function($,R){if(this.lastDeltas=null,$||($=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var x=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);S(this.$redoStack,x),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(v){v[0].id=++this.$maxRev},this)}var k=this.$redoStack.pop(),_=null;return k&&(_=$.redoChanges(k,R),this.$undoStack.push(k),this.$syncRev()),this.$fromUndo=!1,_},C.prototype.$syncRev=function(){var $=this.$undoStack,R=$[$.length-1],x=R&&R[0].id||0;this.$redoStackBaseRev=x,this.$rev=x},C.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=[]},C.prototype.canUndo=function(){return this.$undoStack.length>0},C.prototype.canRedo=function(){return this.$redoStack.length>0},C.prototype.bookmark=function($){$==null&&($=this.$rev),this.mark=$},C.prototype.isAtBookmark=function(){return this.$rev===this.mark},C.prototype.toJSON=function(){},C.prototype.fromJSON=function(){},C.prototype.$prettyPrint=function($){return $?r($):r(this.$undoStack)+`
1008
1010
  ---
1009
- `+r(this.$redoStack)},C}();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 p(C,$){for(var R=$;R--;){var x=C[R];if(x&&!x[0].ignore){for(;R<$-1;){var k=a(C[R],C[R+1]);C[R]=k[0],C[R+1]=k[1],R++}return!0}}}var g=n("./range").Range,s=g.comparePoints;g.comparePoints;function h(C){return{row:C.row,column:C.column}}function o(C){return{start:h(C.start),end:h(C.end),action:C.action,lines:C.lines.slice()}}function r(C){if(C=C||this,Array.isArray(C))return C.map(r).join(`
1011
+ `+r(this.$redoStack)},C}();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 f(C,$){for(var R=$;R--;){var x=C[R];if(x&&!x[0].ignore){for(;R<$-1;){var k=a(C[R],C[R+1]);C[R]=k[0],C[R+1]=k[1],R++}return!0}}}var g=n("./range").Range,s=g.comparePoints;g.comparePoints;function h(C){return{row:C.row,column:C.column}}function o(C){return{start:h(C.start),end:h(C.end),action:C.action,lines:C.lines.slice()}}function r(C){if(C=C||this,Array.isArray(C))return C.map(r).join(`
1010
1012
  `);var $="";return C.action?($=C.action=="insert"?"+":"-",$+="["+C.lines+"]"):C.value&&(Array.isArray(C.value)?$=C.value.map(l).join(`
1011
- `):$=l(C.value)),C.start&&($+=l(C)),(C.id||C.rev)&&($+=" ("+(C.id||C.rev)+")"),$}function l(C){return C.start.row+":"+C.start.column+"=>"+C.end.row+":"+C.end.column}function c(C,$){var R=C.action=="insert",x=$.action=="insert";if(R&&x)if(s($.start,C.end)>=0)m($,C,-1);else if(s($.start,C.start)<=0)m(C,$,1);else return null;else if(R&&!x)if(s($.start,C.end)>=0)m($,C,-1);else if(s($.end,C.start)<=0)m(C,$,-1);else return null;else if(!R&&x)if(s($.start,C.start)>=0)m($,C,1);else if(s($.start,C.start)<=0)m(C,$,1);else return null;else if(!R&&!x)if(s($.start,C.start)>=0)m($,C,1);else if(s($.end,C.start)<=0)m(C,$,-1);else return null;return[$,C]}function a(C,$){for(var R=C.length;R--;)for(var x=0;x<$.length;x++)if(!c(C[R],$[x])){for(;R<C.length;){for(;x--;)c($[x],C[R]);x=$.length,R++}return[C,$]}return C.selectionBefore=$.selectionBefore=C.selectionAfter=$.selectionAfter=null,[$,C]}function f(C,$){var R=C.action=="insert",x=$.action=="insert";if(R&&x)s(C.start,$.start)<0?m($,C,1):m(C,$,1);else if(R&&!x)s(C.start,$.end)>=0?m(C,$,-1):(s(C.start,$.start)<=0||m(C,g.fromPoints($.start,C.start),-1),m($,C,1));else if(!R&&x)s($.start,C.end)>=0?m($,C,-1):(s($.start,C.start)<=0||m($,g.fromPoints(C.start,$.start),-1),m(C,$,1));else if(!R&&!x)if(s($.start,C.end)>=0)m($,C,-1);else if(s($.end,C.start)<=0)m(C,$,-1);else{var k,_;return s(C.start,$.start)<0&&(k=C,C=b(C,$.start)),s(C.end,$.end)>0&&(_=b(C,$.end)),y($.end,C.start,C.end,-1),_&&!k&&(C.lines=_.lines,C.start=_.start,C.end=_.end,_=C),[$,k,_].filter(Boolean)}return[$,C]}function m(C,$,R){y(C.start,$.start,$.end,R),y(C.end,$.start,$.end,R)}function y(C,$,R,x){C.row==(x==1?$:R).row&&(C.column+=x*(R.column-$.column)),C.row+=x*(R.row-$.row)}function b(C,$){var R=C.lines,x=C.end;C.end=h($);var k=C.end.row-C.start.row,_=R.splice(k,R.length),v=k?$.column:$.column-C.start.column;R.push(_[0].substring(0,v)),_[0]=_[0].substr(v);var M={start:h($),end:x,lines:_,action:C.action};return M}function E(C,$){$=o($);for(var R=C.length;R--;){for(var x=C[R],k=0;k<x.length;k++){var _=x[k],v=f(_,$);$=v[0],v.length!=2&&(v[2]?(x.splice(k+1,1,v[1],v[2]),k++):v[1]||(x.splice(k,1),k--))}x.length||C.splice(R,1)}return C}function S(C,$){for(var R=0;R<$.length;R++)for(var x=$[R],k=0;k<x.length;k++)E(C,x[k])}i.UndoManager=u}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(n,i,d){var u=n("../lib/dom"),p=function(){function g(s,h){this.element=s,this.canvasHeight=h||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,h){return Math.floor(s.firstRowScreen*s.lineHeight/this.canvasHeight)!==Math.floor(h.firstRowScreen*h.lineHeight/this.canvasHeight)},g.prototype.computeLineTop=function(s,h,o){var r=h.firstRowScreen*h.lineHeight,l=Math.floor(r/this.canvasHeight),c=o.documentToScreenRow(s,0)*h.lineHeight;return c-l*this.canvasHeight},g.prototype.computeLineHeight=function(s,h,o){return h.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 h=u.createFragment(this.element),o=0;o<s.length;o++)h.appendChild(s[o].element);this.element.appendChild(h)}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 h=u.createFragment(this.element),o=0;o<s.length;o++)h.appendChild(s[o].element);this.element.firstChild?this.element.insertBefore(h,this.element.firstChild):this.element.appendChild(h)}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,h,o,r){var l=this.cellCache.pop();if(!l){var c=u.createElement("div");r&&r(c),this.element.appendChild(c),l={element:c,text:"",row:s}}return l.row=s,l},g}();i.Lines=p}),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"),p=n("../lib/oop"),g=n("../lib/lang"),s=n("../lib/event_emitter").EventEmitter,h=n("./lines").Lines,o=n("../config").nls,r=function(){function c(a){this.element=u.createElement("div"),this.element.className="ace_layer ace_gutter-layer",a.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new h(this.element),this.$lines.$offsetCoefficient=1}return c.prototype.setSession=function(a){this.session&&this.session.off("change",this.$updateAnnotations),this.session=a,a&&a.on("change",this.$updateAnnotations)},c.prototype.addGutterDecoration=function(a,f){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(a,f)},c.prototype.removeGutterDecoration=function(a,f){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(a,f)},c.prototype.setAnnotations=function(a){this.$annotations=[];for(var f=0;f<a.length;f++){var m=a[f],y=m.row,b=this.$annotations[y];b||(b=this.$annotations[y]={text:[],type:[]});var E=m.text,S=m.type;E=E?g.escapeHTML(E):m.html||"",b.text.indexOf(E)===-1&&(b.text.push(E),b.type.push(S));var C=m.className;C?b.className=C:S=="error"?b.className=" ace_error":S=="warning"&&b.className!=" ace_error"?b.className=" ace_warning":S=="info"&&!b.className&&(b.className=" ace_info")}},c.prototype.$updateAnnotations=function(a){if(this.$annotations.length){var f=a.start.row,m=a.end.row-f;if(m!==0)if(a.action=="remove")this.$annotations.splice(f,m+1,null);else{var y=new Array(m+1);y.unshift(f,1),this.$annotations.splice.apply(this.$annotations,y)}}},c.prototype.update=function(a){this.config=a;var f=this.session,m=a.firstRow,y=Math.min(a.lastRow+a.gutterOffset,f.getLength()-1);this.oldLastRow=y,this.config=a,this.$lines.moveContainer(a),this.$updateCursorRow();for(var b=f.getNextFoldLine(m),E=b?b.start.row:1/0,S=null,C=-1,$=m;;){if($>E&&($=b.end.row+1,b=f.getNextFoldLine($,b),E=b?b.start.row:1/0),$>y){for(;this.$lines.getLength()>C+1;)this.$lines.pop();break}S=this.$lines.get(++C),S?S.row=$:(S=this.$lines.createCell($,a,this.session,l),this.$lines.push(S)),this.$renderCell(S,a,b,$),$++}this._signal("afterRender"),this.$updateGutterWidth(a)},c.prototype.$updateGutterWidth=function(a){var f=this.session,m=f.gutterRenderer||this.$renderer,y=f.$firstLineNumber,b=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||f.$useWrapMode)&&(b=f.getLength()+y-1);var E=m?m.getWidth(f,b,a):b.toString().length*a.characterWidth,S=this.$padding||this.$computePadding();E+=S.left+S.right,E!==this.gutterWidth&&!isNaN(E)&&(this.gutterWidth=E,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",E))},c.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var a=this.session.selection.getCursor();this.$cursorRow!==a.row&&(this.$cursorRow=a.row)}},c.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var a=this.session.selection.cursor.row;if(this.$cursorRow=a,!(this.$cursorCell&&this.$cursorCell.row==a)){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 y=f[m];if(y.row>=this.$cursorRow){if(y.row>this.$cursorRow){var b=this.session.getFoldLine(this.$cursorRow);if(m>0&&b&&b.start.row==f[m-1].row)y=f[m-1];else break}y.element.className="ace_gutter-active-line "+y.element.className,this.$cursorCell=y;break}}}}},c.prototype.scrollLines=function(a){var f=this.config;if(this.config=a,this.$updateCursorRow(),this.$lines.pageChanged(f,a))return this.update(a);this.$lines.moveContainer(a);var m=Math.min(a.lastRow+a.gutterOffset,this.session.getLength()-1),y=this.oldLastRow;if(this.oldLastRow=m,!f||y<a.firstRow)return this.update(a);if(m<f.firstRow)return this.update(a);if(f.firstRow<a.firstRow)for(var b=this.session.getFoldedRowCount(f.firstRow,a.firstRow-1);b>0;b--)this.$lines.shift();if(y>m)for(var b=this.session.getFoldedRowCount(m+1,y);b>0;b--)this.$lines.pop();a.firstRow<f.firstRow&&this.$lines.unshift(this.$renderLines(a,a.firstRow,f.firstRow-1)),m>y&&this.$lines.push(this.$renderLines(a,y+1,m)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(a)},c.prototype.$renderLines=function(a,f,m){for(var y=[],b=f,E=this.session.getNextFoldLine(b),S=E?E.start.row:1/0;b>S&&(b=E.end.row+1,E=this.session.getNextFoldLine(b,E),S=E?E.start.row:1/0),!(b>m);){var C=this.$lines.createCell(b,a,this.session,l);this.$renderCell(C,a,E,b),y.push(C),b++}return y},c.prototype.$renderCell=function(a,f,m,y){var b=a.element,E=this.session,S=b.childNodes[0],C=b.childNodes[1],$=b.childNodes[2],R=$.firstChild,x=E.$firstLineNumber,k=E.$breakpoints,_=E.$decorations,v=E.gutterRenderer||this.$renderer,M=this.$showFoldWidgets&&E.foldWidgets,A=m?m.start.row:Number.MAX_VALUE,w=f.lineHeight+"px",L=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",T=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",O=(v?v.getText(E,y):y+x).toString();if(this.$highlightGutterLine&&(y==this.$cursorRow||m&&y<this.$cursorRow&&y>=A&&this.$cursorRow<=m.end.row)&&(L+="ace_gutter-active-line ",this.$cursorCell!=a&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=a)),k[y]&&(L+=k[y]),_[y]&&(L+=_[y]),this.$annotations[y]&&y!==A&&(L+=this.$annotations[y].className),M){var I=M[y];I==null&&(I=M[y]=E.getFoldWidget(y))}if(I){var F="ace_fold-widget ace_"+I,D=I=="start"&&y==A&&y<m.end.row;if(D){F+=" ace_closed";for(var W="",G=!1,U=y+1;U<=m.end.row;U++)if(this.$annotations[U]){if(this.$annotations[U].className===" ace_error"){G=!0,W=" ace_error_fold";break}if(this.$annotations[U].className===" ace_warning"){G=!0,W=" ace_warning_fold";continue}}L+=W}else F+=" ace_open";C.className!=F&&(C.className=F),u.setStyle(C.style,"height",w),u.setStyle(C.style,"display","inline-block"),C.setAttribute("role","button"),C.setAttribute("tabindex","-1");var H=E.getFoldWidgetRange(y);H?C.setAttribute("aria-label",o("Toggle code folding, rows $0 through $1",[H.start.row+1,H.end.row+1])):m?C.setAttribute("aria-label",o("Toggle code folding, rows $0 through $1",[m.start.row+1,m.end.row+1])):C.setAttribute("aria-label",o("Toggle code folding, row $0",[y+1])),D?(C.setAttribute("aria-expanded","false"),C.setAttribute("title",o("Unfold code"))):(C.setAttribute("aria-expanded","true"),C.setAttribute("title",o("Fold code")))}else C&&(u.setStyle(C.style,"display","none"),C.setAttribute("tabindex","0"),C.removeAttribute("role"),C.removeAttribute("aria-label"));return G&&this.$showFoldedAnnotations?($.className="ace_gutter_annotation",R.className=T,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[y]?($.className="ace_gutter_annotation",R.className=T,this.$useSvgGutterIcons?R.className+=this.$annotations[y].className:b.classList.add(this.$annotations[y].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),b.className!=L&&(b.className=L),u.setStyle(a.element.style,"height",this.$lines.computeLineHeight(y,f,E)+"px"),u.setStyle(a.element.style,"top",this.$lines.computeLineTop(y,f,E)+"px"),a.text=O,$.style.display==="none"&&C.style.display==="none"?a.element.setAttribute("aria-hidden",!0):a.element.setAttribute("aria-hidden",!1),a},c.prototype.setHighlightGutterLine=function(a){this.$highlightGutterLine=a},c.prototype.setShowLineNumbers=function(a){this.$renderer=!a&&{getWidth:function(){return 0},getText:function(){return""}}},c.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},c.prototype.setShowFoldWidgets=function(a){a?u.addCssClass(this.element,"ace_folding-enabled"):u.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=a,this.$padding=null},c.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},c.prototype.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var a=u.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(a.borderLeftWidth)||0)+(parseInt(a.paddingLeft)||0)+1,this.$padding.right=(parseInt(a.borderRightWidth)||0)+(parseInt(a.paddingRight)||0),this.$padding},c.prototype.getRegion=function(a){var f=this.$padding||this.$computePadding(),m=this.element.getBoundingClientRect();if(a.x<f.left+m.left)return"markers";if(this.$showFoldWidgets&&a.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,p.implement(r.prototype,s);function l(c){var a=document.createTextNode("");c.appendChild(a);var f=u.createElement("span");c.appendChild(f);var m=u.createElement("span");c.appendChild(m);var y=u.createElement("span");return m.appendChild(y),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,p=n("../lib/dom"),g=function(){function h(o){this.element=p.createElement("div"),this.element.className="ace_layer ace_marker-layer",o.appendChild(this.element)}return h.prototype.setPadding=function(o){this.$padding=o},h.prototype.setSession=function(o){this.session=o},h.prototype.setMarkers=function(o){this.markers=o},h.prototype.elt=function(o,r){var l=this.i!=-1&&this.element.childNodes[this.i];l?this.i++:(l=document.createElement("div"),this.element.appendChild(l),this.i=-1),l.style.cssText=r,l.className=o},h.prototype.update=function(o){if(o){this.config=o,this.i=0;var r;for(var l in this.markers){var c=this.markers[l];if(!c.range){c.update(r,this,this.session,o);continue}var a=c.range.clipRows(o.firstRow,o.lastRow);if(!a.isEmpty())if(a=a.toScreenRange(this.session),c.renderer){var f=this.$getTop(a.start.row,o),m=this.$padding+a.start.column*o.characterWidth;c.renderer(r,a,m,f,o)}else c.type=="fullLine"?this.drawFullLineMarker(r,a,c.clazz,o):c.type=="screenLine"?this.drawScreenLineMarker(r,a,c.clazz,o):a.isMultiLine()?c.type=="text"?this.drawTextMarker(r,a,c.clazz,o):this.drawMultiLineMarker(r,a,c.clazz,o):this.drawSingleLineMarker(r,a,c.clazz+" ace_start ace_br15",o)}if(this.i!=-1)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},h.prototype.$getTop=function(o,r){return(o-r.firstRowScreen)*r.lineHeight},h.prototype.drawTextMarker=function(o,r,l,c,a){for(var f=this.session,m=r.start.row,y=r.end.row,b=m,E=0,S=0,C=f.getScreenLastRowColumn(b),$=new u(b,r.start.column,b,S);b<=y;b++)$.start.row=$.end.row=b,$.start.column=b==m?r.start.column:f.getRowWrapIndent(b),$.end.column=C,E=S,S=C,C=b+1<y?f.getScreenLastRowColumn(b+1):b==y?0:r.end.column,this.drawSingleLineMarker(o,$,l+(b==m?" ace_start":"")+" ace_br"+s(b==m||b==m+1&&r.start.column,E<S,S>C,b==y),c,b==y?0:1,a)},h.prototype.drawMultiLineMarker=function(o,r,l,c,a){var f=this.$padding,m=c.lineHeight,y=this.$getTop(r.start.row,c),b=f+r.start.column*c.characterWidth;if(a=a||"",this.session.$bidiHandler.isBidiRow(r.start.row)){var E=r.clone();E.end.row=E.start.row,E.end.column=this.session.getLine(E.start.row).length,this.drawBidiSingleLineMarker(o,E,l+" ace_br1 ace_start",c,null,a)}else this.elt(l+" ace_br1 ace_start","height:"+m+"px;right:0;top:"+y+"px;left:"+b+"px;"+(a||""));if(this.session.$bidiHandler.isBidiRow(r.end.row)){var E=r.clone();E.start.row=E.end.row,E.start.column=0,this.drawBidiSingleLineMarker(o,E,l+" ace_br12",c,null,a)}else{y=this.$getTop(r.end.row,c);var S=r.end.column*c.characterWidth;this.elt(l+" ace_br12","height:"+m+"px;width:"+S+"px;top:"+y+"px;left:"+f+"px;"+(a||""))}if(m=(r.end.row-r.start.row-1)*c.lineHeight,!(m<=0)){y=this.$getTop(r.start.row+1,c);var C=(r.start.column?1:0)|(r.end.column?0:8);this.elt(l+(C?" ace_br"+C:""),"height:"+m+"px;right:0;top:"+y+"px;left:"+f+"px;"+(a||""))}},h.prototype.drawSingleLineMarker=function(o,r,l,c,a,f){if(this.session.$bidiHandler.isBidiRow(r.start.row))return this.drawBidiSingleLineMarker(o,r,l,c,a,f);var m=c.lineHeight,y=(r.end.column+(a||0)-r.start.column)*c.characterWidth,b=this.$getTop(r.start.row,c),E=this.$padding+r.start.column*c.characterWidth;this.elt(l,"height:"+m+"px;width:"+y+"px;top:"+b+"px;left:"+E+"px;"+(f||""))},h.prototype.drawBidiSingleLineMarker=function(o,r,l,c,a,f){var m=c.lineHeight,y=this.$getTop(r.start.row,c),b=this.$padding,E=this.session.$bidiHandler.getSelections(r.start.column,r.end.column);E.forEach(function(S){this.elt(l,"height:"+m+"px;width:"+(S.width+(a||0))+"px;top:"+y+"px;left:"+(b+S.left)+"px;"+(f||""))},this)},h.prototype.drawFullLineMarker=function(o,r,l,c,a){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(l,"height:"+m+"px;top:"+f+"px;left:0;right:0;"+(a||""))},h.prototype.drawScreenLineMarker=function(o,r,l,c,a){var f=this.$getTop(r.start.row,c),m=c.lineHeight;this.elt(l,"height:"+m+"px;top:"+f+"px;left:0;right:0;"+(a||""))},h}();g.prototype.$padding=0;function s(h,o,r,l){return(h?1:0)|(o?2:0)|(r?4:0)|(l?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(p){return u.has(p)}}),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"),p=n("../lib/dom"),g=n("../lib/lang"),s=n("./lines").Lines,h=n("../lib/event_emitter").EventEmitter,o=n("../config").nls,r=n("./text_util").isTextToken,l=function(){function c(a){this.dom=p,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",a.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new s(this.element)}return c.prototype.$updateEolChar=function(){var a=this.session.doc,f=a.getNewLineCharacter()==`
1012
- `&&a.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(a){this.$padding=a,this.element.style.margin="0 "+a+"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(a){this.$fontMetrics=a,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(a){this.session=a,a&&this.$computeTabString()},c.prototype.setShowInvisibles=function(a){return this.showInvisibles==a?!1:(this.showInvisibles=a,typeof a=="string"?(this.showSpaces=/tab/i.test(a),this.showTabs=/space/i.test(a),this.showEOL=/eol/i.test(a)):this.showSpaces=this.showTabs=this.showEOL=a,this.$computeTabString(),!0)},c.prototype.setDisplayIndentGuides=function(a){return this.displayIndentGuides==a?!1:(this.displayIndentGuides=a,this.$computeTabString(),!0)},c.prototype.setHighlightIndentGuides=function(a){return this.$highlightIndentGuides===a?!1:(this.$highlightIndentGuides=a,a)},c.prototype.$computeTabString=function(){var a=this.session.getTabSize();this.tabSize=a;for(var f=this.$tabStrings=[0],m=1;m<a+1;m++)if(this.showTabs){var y=this.dom.createElement("span");y.className="ace_invisible ace_invisible_tab",y.textContent=g.stringRepeat(this.TAB_CHAR,m),f.push(y)}else f.push(this.dom.createTextNode(g.stringRepeat(" ",m),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var b="ace_indent-guide",E=this.showSpaces?" ace_invisible ace_invisible_space":"",S=this.showSpaces?g.stringRepeat(this.SPACE_CHAR,this.tabSize):g.stringRepeat(" ",this.tabSize),C=this.showTabs?" ace_invisible ace_invisible_tab":"",$=this.showTabs?g.stringRepeat(this.TAB_CHAR,this.tabSize):S,y=this.dom.createElement("span");y.className=b+E,y.textContent=S,this.$tabStrings[" "]=y;var y=this.dom.createElement("span");y.className=b+C,y.textContent=$,this.$tabStrings[" "]=y}},c.prototype.updateLines=function(a,f,m){if(this.config.lastRow!=a.lastRow||this.config.firstRow!=a.firstRow)return this.update(a);this.config=a;for(var y=Math.max(f,a.firstRow),b=Math.min(m,a.lastRow),E=this.element.childNodes,S=0,$=a.firstRow;$<y;$++){var R=this.session.getFoldLine($);if(R)if(R.containsRow(y)){y=R.start.row;break}else $=R.end.row;S++}for(var C=!1,$=y,R=this.session.getNextFoldLine($),x=R?R.start.row:1/0;$>x&&($=R.end.row+1,R=this.session.getNextFoldLine($,R),x=R?R.start.row:1/0),!($>b);){var k=E[S++];if(k){this.dom.removeChildren(k),this.$renderLine(k,$,$==x?R:!1),C&&(k.style.top=this.$lines.computeLineTop($,a,this.session)+"px");var _=a.lineHeight*this.session.getRowLength($)+"px";k.style.height!=_&&(C=!0,k.style.height=_)}$++}if(C)for(;S<this.$lines.cells.length;){var v=this.$lines.cells[S++];v.element.style.top=this.$lines.computeLineTop(v.row,a,this.session)+"px"}},c.prototype.scrollLines=function(a){var f=this.config;if(this.config=a,this.$lines.pageChanged(f,a))return this.update(a);this.$lines.moveContainer(a);var m=a.lastRow,y=f?f.lastRow:-1;if(!f||y<a.firstRow)return this.update(a);if(m<f.firstRow)return this.update(a);if(!f||f.lastRow<a.firstRow)return this.update(a);if(a.lastRow<f.firstRow)return this.update(a);if(f.firstRow<a.firstRow)for(var b=this.session.getFoldedRowCount(f.firstRow,a.firstRow-1);b>0;b--)this.$lines.shift();if(f.lastRow>a.lastRow)for(var b=this.session.getFoldedRowCount(a.lastRow+1,f.lastRow);b>0;b--)this.$lines.pop();a.firstRow<f.firstRow&&this.$lines.unshift(this.$renderLinesFragment(a,a.firstRow,f.firstRow-1)),a.lastRow>f.lastRow&&this.$lines.push(this.$renderLinesFragment(a,f.lastRow+1,a.lastRow)),this.$highlightIndentGuide()},c.prototype.$renderLinesFragment=function(a,f,m){for(var y=[],b=f,E=this.session.getNextFoldLine(b),S=E?E.start.row:1/0;b>S&&(b=E.end.row+1,E=this.session.getNextFoldLine(b,E),S=E?E.start.row:1/0),!(b>m);){var C=this.$lines.createCell(b,a,this.session),$=C.element;this.dom.removeChildren($),p.setStyle($.style,"height",this.$lines.computeLineHeight(b,a,this.session)+"px"),p.setStyle($.style,"top",this.$lines.computeLineTop(b,a,this.session)+"px"),this.$renderLine($,b,b==S?E:!1),this.$useLineGroups()?$.className="ace_line_group":$.className="ace_line",y.push(C),b++}return y},c.prototype.update=function(a){this.$lines.moveContainer(a),this.config=a;for(var f=a.firstRow,m=a.lastRow,y=this.$lines;y.getLength();)y.pop();y.push(this.$renderLinesFragment(a,f,m))},c.prototype.$renderToken=function(a,f,m,y){for(var b=this,E=/(\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),C,$=0;C=E.exec(y);){var R=C[1],x=C[2],k=C[3],_=C[4],v=C[5];if(!(!b.showSpaces&&x)){var M=$!=C.index?y.slice($,C.index):"";if($=C.index+C[0].length,M&&S.appendChild(this.dom.createTextNode(M,this.element)),R){var A=b.session.getScreenTabSize(f+C.index);S.appendChild(b.$tabStrings[A].cloneNode(!0)),f+=A-1}else if(x)if(b.showSpaces){var w=this.dom.createElement("span");w.className="ace_invisible ace_invisible_space",w.textContent=g.stringRepeat(b.SPACE_CHAR,x.length),S.appendChild(w)}else S.appendChild(this.dom.createTextNode(x,this.element));else if(k){var w=this.dom.createElement("span");w.className="ace_invisible ace_invisible_space ace_invalid",w.textContent=g.stringRepeat(b.SPACE_CHAR,k.length),S.appendChild(w)}else if(_){f+=1;var w=this.dom.createElement("span");w.style.width=b.config.characterWidth*2+"px",w.className=b.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",w.textContent=b.showSpaces?b.SPACE_CHAR:_,S.appendChild(w)}else if(v){f+=1;var w=this.dom.createElement("span");w.style.width=b.config.characterWidth*2+"px",w.className="ace_cjk",w.textContent=v,S.appendChild(w)}}}if(S.appendChild(this.dom.createTextNode($?y.slice($):y,this.element)),r(m.type))a.appendChild(S);else{var L="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=L,w.appendChild(S),a.appendChild(w)}return f+y.length},c.prototype.renderIndentGuide=function(a,f,m){var y=f.search(this.$indentGuideRe);if(y<=0||y>=m)return f;if(f[0]==" "){y-=y%this.tabSize;for(var b=y/this.tabSize,E=0;E<b;E++)a.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),f.substr(y)}else if(f[0]==" "){for(var E=0;E<y;E++)a.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),f.substr(y)}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 a=this.session.doc.$lines;if(a){var f=this.session.selection.getCursor(),m=/^\s*/.exec(this.session.doc.getLine(f.row))[0].length,y=Math.floor(m/this.tabSize);this.$highlightIndentGuideMarker={indentLevel:y,start:f.row};var b=this.session.$bracketHighlight;if(b){for(var E=this.session.$bracketHighlight.ranges,S=0;S<E.length;S++)if(f.row!==E[S].start.row){this.$highlightIndentGuideMarker.end=E[S].start.row,f.row>E[S].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&a[f.row]!==""&&f.column===a[f.row].length){this.$highlightIndentGuideMarker.dir=1;for(var S=f.row+1;S<a.length;S++){var C=a[S],$=/^\s*/.exec(C)[0].length;if(C!==""&&(this.$highlightIndentGuideMarker.end=S,$<=m))break}}this.$renderHighlightIndentGuide()}}},c.prototype.$clearActiveIndentGuide=function(){for(var a=this.$lines.cells,f=0;f<a.length;f++){var m=a[f],y=m.element.childNodes;if(y.length>0){for(var b=0;b<y.length;b++)if(y[b].classList&&y[b].classList.contains("ace_indent-guide-active")){y[b].classList.remove("ace_indent-guide-active");break}}}},c.prototype.$setIndentGuideActive=function(a,f){var m=this.session.doc.getLine(a.row);if(m!==""){var y=a.element.childNodes;if(y){var b=y[f-1];b&&b.classList&&b.classList.contains("ace_indent-guide")&&b.classList.add("ace_indent-guide-active")}}},c.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var a=this.$lines.cells;this.$clearActiveIndentGuide();var f=this.$highlightIndentGuideMarker.indentLevel;if(f!==0)if(this.$highlightIndentGuideMarker.dir===1)for(var m=0;m<a.length;m++){var y=a[m];if(this.$highlightIndentGuideMarker.end&&y.row>=this.$highlightIndentGuideMarker.start+1){if(y.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(y,f)}}else for(var m=a.length-1;m>=0;m--){var y=a[m];if(this.$highlightIndentGuideMarker.end&&y.row<this.$highlightIndentGuideMarker.start){if(y.row<=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(y,f)}}}},c.prototype.$createLineElement=function(a){var f=this.dom.createElement("div");return f.className="ace_line",f.style.height=this.config.lineHeight+"px",f},c.prototype.$renderWrappedLine=function(a,f,m){var y=0,b=0,E=m[0],S=0,C=this.$createLineElement();a.appendChild(C);for(var $=0;$<f.length;$++){var R=f[$],x=R.value;if($==0&&this.displayIndentGuides){if(y=x.length,x=this.renderIndentGuide(C,x,E),!x)continue;y-=x.length}if(y+x.length<E)S=this.$renderToken(C,S,R,x),y+=x.length;else{for(;y+x.length>=E;)S=this.$renderToken(C,S,R,x.substring(0,E-y)),x=x.substring(E-y),y=E,C=this.$createLineElement(),a.appendChild(C),C.appendChild(this.dom.createTextNode(g.stringRepeat(" ",m.indent),this.element)),b++,S=0,E=m[b]||Number.MAX_VALUE;x.length!=0&&(y+=x.length,S=this.$renderToken(C,S,R,x))}}m[m.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(C,S,null,"",!0)},c.prototype.$renderSimpleLine=function(a,f){for(var m=0,y=0;y<f.length;y++){var b=f[y],E=b.value;if(!(y==0&&this.displayIndentGuides&&(E=this.renderIndentGuide(a,E),!E))){if(m+E.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(a,m,b,E);m=this.$renderToken(a,m,b,E)}}},c.prototype.$renderOverflowMessage=function(a,f,m,y,b){m&&this.$renderToken(a,f,m,y.slice(0,this.MAX_LINE_LENGTH-f));var E=this.dom.createElement("span");E.className="ace_inline_button ace_keyword ace_toggle_wrap",E.textContent=b?"<hide>":"<click to see more...>",a.appendChild(E)},c.prototype.$renderLine=function(a,f,m){if(!m&&m!=!1&&(m=this.session.getFoldLine(f)),m)var y=this.$getFoldLineTokens(f,m);else var y=this.session.getTokens(f);var b=a;if(y.length){var E=this.session.getRowSplitData(f);if(E&&E.length){this.$renderWrappedLine(a,y,E);var b=a.lastChild}else{var b=a;this.$useLineGroups()&&(b=this.$createLineElement(),a.appendChild(b)),this.$renderSimpleLine(b,y)}}else this.$useLineGroups()&&(b=this.$createLineElement(),a.appendChild(b));if(this.showEOL&&b){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,b.appendChild(S)}},c.prototype.$getFoldLineTokens=function(a,f){var m=this.session,y=[];function b(S,C,$){for(var R=0,x=0;x+S[R].value.length<C;)if(x+=S[R].value.length,R++,R==S.length)return;if(x!=C){var k=S[R].value.substring(C-x);k.length>$-C&&(k=k.substring(0,$-C)),y.push({type:S[R].type,value:k}),x=C+k.length,R+=1}for(;x<$&&R<S.length;){var k=S[R].value;k.length+x>$?y.push({type:S[R].type,value:k.substring(0,$-x)}):y.push(S[R]),x+=k.length,R+=1}}var E=m.getTokens(a);return f.walk(function(S,C,$,R,x){S!=null?y.push({type:"fold",value:S}):(x&&(E=m.getTokens(C)),E.length&&b(E,R,$))},f.end.row,this.session.getLine(f.end.row).length),y},c.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},c}();l.prototype.EOF_CHAR="¶",l.prototype.EOL_CHAR_LF="¬",l.prototype.EOL_CHAR_CRLF="¤",l.prototype.EOL_CHAR=l.prototype.EOL_CHAR_LF,l.prototype.TAB_CHAR="—",l.prototype.SPACE_CHAR="·",l.prototype.$padding=0,l.prototype.MAX_LINE_LENGTH=1e4,l.prototype.showInvisibles=!1,l.prototype.showSpaces=!1,l.prototype.showTabs=!1,l.prototype.showEOL=!1,l.prototype.displayIndentGuides=!0,l.prototype.$highlightIndentGuides=!0,l.prototype.$tabStrings=[],l.prototype.destroy={},l.prototype.onChangeTabSize=l.prototype.$computeTabString,u.implement(l.prototype,h),i.Text=l}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(n,i,d){var u=n("../lib/dom"),p=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 h=this.cursors,o=h.length;o--;)u.setStyle(h[o].style,"opacity",s?"":"0")},g.prototype.$startCssAnimation=function(){for(var s=this.cursors,h=s.length;h--;)s[h].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 h=(function(){this.timeoutId=setTimeout(function(){s(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){s(!0),h()},this.blinkInterval),h()}},g.prototype.getPixelPosition=function(s,h){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),l=(o.row-(h?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:r,top:l}},g.prototype.isCursorInView=function(s,h){return s.top>=0&&s.top<h.maxHeight},g.prototype.update=function(s){this.config=s;var h=this.session.$selectionMarkers,o=0,r=0;(h===void 0||h.length===0)&&(h=[{cursor:null}]);for(var o=0,l=h.length;o<l;o++){var c=this.getPixelPosition(h[o].cursor,!0);if(!((c.top>s.height+s.offset||c.top<0)&&o>1)){var a=this.cursors[r++]||this.addCursor(),f=a.style;this.drawCursor?this.drawCursor(a,c,s,h[o],this.session):this.isCursorInView(c,s)?(u.setStyle(f,"display","block"),u.translate(a,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}();p.prototype.$padding=0,p.prototype.drawCursor=null,i.Cursor=p}),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 a=function(f,m){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,b){y.__proto__=b}||function(y,b){for(var E in b)Object.prototype.hasOwnProperty.call(b,E)&&(y[E]=b[E])},a(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");a(f,m);function y(){this.constructor=f}f.prototype=m===null?Object.create(m):(y.prototype=m.prototype,new y)}}(),p=n("./lib/oop"),g=n("./lib/dom"),s=n("./lib/event"),h=n("./lib/event_emitter").EventEmitter,o=32768,r=function(){function a(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 a.prototype.setVisible=function(f){this.element.style.display=f?"":"none",this.isVisible=f,this.coeff=1},a}();p.implement(r.prototype,h);var l=function(a){u(f,a);function f(m,y){var b=a.call(this,m,"-v")||this;return b.scrollTop=0,b.scrollHeight=0,y.$scrollbarWidth=b.width=g.scrollbarWidth(m.ownerDocument),b.inner.style.width=b.element.style.width=(b.width||15)+5+"px",b.$minWidth=0,b}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);l.prototype.setInnerHeight=l.prototype.setScrollHeight;var c=function(a){u(f,a);function f(m,y){var b=a.call(this,m,"-h")||this;return b.scrollLeft=0,b.height=y.$scrollbarWidth,b.inner.style.height=b.element.style.height=(b.height||15)+5+"px",b}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=l,i.ScrollBarV=l,i.ScrollBarH=c,i.VScrollBar=l,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(a,f){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,y){m.__proto__=y}||function(m,y){for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(m[b]=y[b])},c(a,f)};return function(a,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");c(a,f);function m(){this.constructor=a}a.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}}(),p=n("./lib/oop"),g=n("./lib/dom"),s=n("./lib/event"),h=n("./lib/event_emitter").EventEmitter;g.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{
1013
+ `):$=l(C.value)),C.start&&($+=l(C)),(C.id||C.rev)&&($+=" ("+(C.id||C.rev)+")"),$}function l(C){return C.start.row+":"+C.start.column+"=>"+C.end.row+":"+C.end.column}function c(C,$){var R=C.action=="insert",x=$.action=="insert";if(R&&x)if(s($.start,C.end)>=0)m($,C,-1);else if(s($.start,C.start)<=0)m(C,$,1);else return null;else if(R&&!x)if(s($.start,C.end)>=0)m($,C,-1);else if(s($.end,C.start)<=0)m(C,$,-1);else return null;else if(!R&&x)if(s($.start,C.start)>=0)m($,C,1);else if(s($.start,C.start)<=0)m(C,$,1);else return null;else if(!R&&!x)if(s($.start,C.start)>=0)m($,C,1);else if(s($.end,C.start)<=0)m(C,$,-1);else return null;return[$,C]}function a(C,$){for(var R=C.length;R--;)for(var x=0;x<$.length;x++)if(!c(C[R],$[x])){for(;R<C.length;){for(;x--;)c($[x],C[R]);x=$.length,R++}return[C,$]}return C.selectionBefore=$.selectionBefore=C.selectionAfter=$.selectionAfter=null,[$,C]}function d(C,$){var R=C.action=="insert",x=$.action=="insert";if(R&&x)s(C.start,$.start)<0?m($,C,1):m(C,$,1);else if(R&&!x)s(C.start,$.end)>=0?m(C,$,-1):(s(C.start,$.start)<=0||m(C,g.fromPoints($.start,C.start),-1),m($,C,1));else if(!R&&x)s($.start,C.end)>=0?m($,C,-1):(s($.start,C.start)<=0||m($,g.fromPoints(C.start,$.start),-1),m(C,$,1));else if(!R&&!x)if(s($.start,C.end)>=0)m($,C,-1);else if(s($.end,C.start)<=0)m(C,$,-1);else{var k,_;return s(C.start,$.start)<0&&(k=C,C=b(C,$.start)),s(C.end,$.end)>0&&(_=b(C,$.end)),y($.end,C.start,C.end,-1),_&&!k&&(C.lines=_.lines,C.start=_.start,C.end=_.end,_=C),[$,k,_].filter(Boolean)}return[$,C]}function m(C,$,R){y(C.start,$.start,$.end,R),y(C.end,$.start,$.end,R)}function y(C,$,R,x){C.row==(x==1?$:R).row&&(C.column+=x*(R.column-$.column)),C.row+=x*(R.row-$.row)}function b(C,$){var R=C.lines,x=C.end;C.end=h($);var k=C.end.row-C.start.row,_=R.splice(k,R.length),v=k?$.column:$.column-C.start.column;R.push(_[0].substring(0,v)),_[0]=_[0].substr(v);var M={start:h($),end:x,lines:_,action:C.action};return M}function E(C,$){$=o($);for(var R=C.length;R--;){for(var x=C[R],k=0;k<x.length;k++){var _=x[k],v=d(_,$);$=v[0],v.length!=2&&(v[2]?(x.splice(k+1,1,v[1],v[2]),k++):v[1]||(x.splice(k,1),k--))}x.length||C.splice(R,1)}return C}function S(C,$){for(var R=0;R<$.length;R++)for(var x=$[R],k=0;k<x.length;k++)E(C,x[k])}i.UndoManager=u}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(n,i,p){var u=n("../lib/dom"),f=function(){function g(s,h){this.element=s,this.canvasHeight=h||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,h){return Math.floor(s.firstRowScreen*s.lineHeight/this.canvasHeight)!==Math.floor(h.firstRowScreen*h.lineHeight/this.canvasHeight)},g.prototype.computeLineTop=function(s,h,o){var r=h.firstRowScreen*h.lineHeight,l=Math.floor(r/this.canvasHeight),c=o.documentToScreenRow(s,0)*h.lineHeight;return c-l*this.canvasHeight},g.prototype.computeLineHeight=function(s,h,o){return h.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 h=u.createFragment(this.element),o=0;o<s.length;o++)h.appendChild(s[o].element);this.element.appendChild(h)}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 h=u.createFragment(this.element),o=0;o<s.length;o++)h.appendChild(s[o].element);this.element.firstChild?this.element.insertBefore(h,this.element.firstChild):this.element.appendChild(h)}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,h,o,r){var l=this.cellCache.pop();if(!l){var c=u.createElement("div");r&&r(c),this.element.appendChild(c),l={element:c,text:"",row:s}}return l.row=s,l},g}();i.Lines=f}),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,p){var u=n("../lib/dom"),f=n("../lib/oop"),g=n("../lib/lang"),s=n("../lib/event_emitter").EventEmitter,h=n("./lines").Lines,o=n("../config").nls,r=function(){function c(a){this.element=u.createElement("div"),this.element.className="ace_layer ace_gutter-layer",a.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new h(this.element),this.$lines.$offsetCoefficient=1}return c.prototype.setSession=function(a){this.session&&this.session.off("change",this.$updateAnnotations),this.session=a,a&&a.on("change",this.$updateAnnotations)},c.prototype.addGutterDecoration=function(a,d){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(a,d)},c.prototype.removeGutterDecoration=function(a,d){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(a,d)},c.prototype.setAnnotations=function(a){this.$annotations=[];for(var d=0;d<a.length;d++){var m=a[d],y=m.row,b=this.$annotations[y];b||(b=this.$annotations[y]={text:[],type:[]});var E=m.text,S=m.type;E=E?g.escapeHTML(E):m.html||"",b.text.indexOf(E)===-1&&(b.text.push(E),b.type.push(S));var C=m.className;C?b.className=C:S=="error"?b.className=" ace_error":S=="warning"&&b.className!=" ace_error"?b.className=" ace_warning":S=="info"&&!b.className&&(b.className=" ace_info")}},c.prototype.$updateAnnotations=function(a){if(this.$annotations.length){var d=a.start.row,m=a.end.row-d;if(m!==0)if(a.action=="remove")this.$annotations.splice(d,m+1,null);else{var y=new Array(m+1);y.unshift(d,1),this.$annotations.splice.apply(this.$annotations,y)}}},c.prototype.update=function(a){this.config=a;var d=this.session,m=a.firstRow,y=Math.min(a.lastRow+a.gutterOffset,d.getLength()-1);this.oldLastRow=y,this.config=a,this.$lines.moveContainer(a),this.$updateCursorRow();for(var b=d.getNextFoldLine(m),E=b?b.start.row:1/0,S=null,C=-1,$=m;;){if($>E&&($=b.end.row+1,b=d.getNextFoldLine($,b),E=b?b.start.row:1/0),$>y){for(;this.$lines.getLength()>C+1;)this.$lines.pop();break}S=this.$lines.get(++C),S?S.row=$:(S=this.$lines.createCell($,a,this.session,l),this.$lines.push(S)),this.$renderCell(S,a,b,$),$++}this._signal("afterRender"),this.$updateGutterWidth(a)},c.prototype.$updateGutterWidth=function(a){var d=this.session,m=d.gutterRenderer||this.$renderer,y=d.$firstLineNumber,b=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||d.$useWrapMode)&&(b=d.getLength()+y-1);var E=m?m.getWidth(d,b,a):b.toString().length*a.characterWidth,S=this.$padding||this.$computePadding();E+=S.left+S.right,E!==this.gutterWidth&&!isNaN(E)&&(this.gutterWidth=E,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",E))},c.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var a=this.session.selection.getCursor();this.$cursorRow!==a.row&&(this.$cursorRow=a.row)}},c.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var a=this.session.selection.cursor.row;if(this.$cursorRow=a,!(this.$cursorCell&&this.$cursorCell.row==a)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var d=this.$lines.cells;this.$cursorCell=null;for(var m=0;m<d.length;m++){var y=d[m];if(y.row>=this.$cursorRow){if(y.row>this.$cursorRow){var b=this.session.getFoldLine(this.$cursorRow);if(m>0&&b&&b.start.row==d[m-1].row)y=d[m-1];else break}y.element.className="ace_gutter-active-line "+y.element.className,this.$cursorCell=y;break}}}}},c.prototype.scrollLines=function(a){var d=this.config;if(this.config=a,this.$updateCursorRow(),this.$lines.pageChanged(d,a))return this.update(a);this.$lines.moveContainer(a);var m=Math.min(a.lastRow+a.gutterOffset,this.session.getLength()-1),y=this.oldLastRow;if(this.oldLastRow=m,!d||y<a.firstRow)return this.update(a);if(m<d.firstRow)return this.update(a);if(d.firstRow<a.firstRow)for(var b=this.session.getFoldedRowCount(d.firstRow,a.firstRow-1);b>0;b--)this.$lines.shift();if(y>m)for(var b=this.session.getFoldedRowCount(m+1,y);b>0;b--)this.$lines.pop();a.firstRow<d.firstRow&&this.$lines.unshift(this.$renderLines(a,a.firstRow,d.firstRow-1)),m>y&&this.$lines.push(this.$renderLines(a,y+1,m)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(a)},c.prototype.$renderLines=function(a,d,m){for(var y=[],b=d,E=this.session.getNextFoldLine(b),S=E?E.start.row:1/0;b>S&&(b=E.end.row+1,E=this.session.getNextFoldLine(b,E),S=E?E.start.row:1/0),!(b>m);){var C=this.$lines.createCell(b,a,this.session,l);this.$renderCell(C,a,E,b),y.push(C),b++}return y},c.prototype.$renderCell=function(a,d,m,y){var b=a.element,E=this.session,S=b.childNodes[0],C=b.childNodes[1],$=b.childNodes[2],R=$.firstChild,x=E.$firstLineNumber,k=E.$breakpoints,_=E.$decorations,v=E.gutterRenderer||this.$renderer,M=this.$showFoldWidgets&&E.foldWidgets,A=m?m.start.row:Number.MAX_VALUE,w=d.lineHeight+"px",L=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",T=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",O=(v?v.getText(E,y):y+x).toString();if(this.$highlightGutterLine&&(y==this.$cursorRow||m&&y<this.$cursorRow&&y>=A&&this.$cursorRow<=m.end.row)&&(L+="ace_gutter-active-line ",this.$cursorCell!=a&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=a)),k[y]&&(L+=k[y]),_[y]&&(L+=_[y]),this.$annotations[y]&&y!==A&&(L+=this.$annotations[y].className),M){var I=M[y];I==null&&(I=M[y]=E.getFoldWidget(y))}if(I){var F="ace_fold-widget ace_"+I,D=I=="start"&&y==A&&y<m.end.row;if(D){F+=" ace_closed";for(var W="",G=!1,U=y+1;U<=m.end.row;U++)if(this.$annotations[U]){if(this.$annotations[U].className===" ace_error"){G=!0,W=" ace_error_fold";break}if(this.$annotations[U].className===" ace_warning"){G=!0,W=" ace_warning_fold";continue}}L+=W}else F+=" ace_open";C.className!=F&&(C.className=F),u.setStyle(C.style,"height",w),u.setStyle(C.style,"display","inline-block"),C.setAttribute("role","button"),C.setAttribute("tabindex","-1");var H=E.getFoldWidgetRange(y);H?C.setAttribute("aria-label",o("Toggle code folding, rows $0 through $1",[H.start.row+1,H.end.row+1])):m?C.setAttribute("aria-label",o("Toggle code folding, rows $0 through $1",[m.start.row+1,m.end.row+1])):C.setAttribute("aria-label",o("Toggle code folding, row $0",[y+1])),D?(C.setAttribute("aria-expanded","false"),C.setAttribute("title",o("Unfold code"))):(C.setAttribute("aria-expanded","true"),C.setAttribute("title",o("Fold code")))}else C&&(u.setStyle(C.style,"display","none"),C.setAttribute("tabindex","0"),C.removeAttribute("role"),C.removeAttribute("aria-label"));return G&&this.$showFoldedAnnotations?($.className="ace_gutter_annotation",R.className=T,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[y]?($.className="ace_gutter_annotation",R.className=T,this.$useSvgGutterIcons?R.className+=this.$annotations[y].className:b.classList.add(this.$annotations[y].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),b.className!=L&&(b.className=L),u.setStyle(a.element.style,"height",this.$lines.computeLineHeight(y,d,E)+"px"),u.setStyle(a.element.style,"top",this.$lines.computeLineTop(y,d,E)+"px"),a.text=O,$.style.display==="none"&&C.style.display==="none"?a.element.setAttribute("aria-hidden",!0):a.element.setAttribute("aria-hidden",!1),a},c.prototype.setHighlightGutterLine=function(a){this.$highlightGutterLine=a},c.prototype.setShowLineNumbers=function(a){this.$renderer=!a&&{getWidth:function(){return 0},getText:function(){return""}}},c.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},c.prototype.setShowFoldWidgets=function(a){a?u.addCssClass(this.element,"ace_folding-enabled"):u.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=a,this.$padding=null},c.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},c.prototype.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var a=u.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(a.borderLeftWidth)||0)+(parseInt(a.paddingLeft)||0)+1,this.$padding.right=(parseInt(a.borderRightWidth)||0)+(parseInt(a.paddingRight)||0),this.$padding},c.prototype.getRegion=function(a){var d=this.$padding||this.$computePadding(),m=this.element.getBoundingClientRect();if(a.x<d.left+m.left)return"markers";if(this.$showFoldWidgets&&a.x>m.right-d.right)return"foldWidgets"},c}();r.prototype.$fixedWidth=!1,r.prototype.$highlightGutterLine=!0,r.prototype.$renderer="",r.prototype.$showLineNumbers=!0,r.prototype.$showFoldWidgets=!0,f.implement(r.prototype,s);function l(c){var a=document.createTextNode("");c.appendChild(a);var d=u.createElement("span");c.appendChild(d);var m=u.createElement("span");c.appendChild(m);var y=u.createElement("span");return m.appendChild(y),c}i.Gutter=r}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(n,i,p){var u=n("../range").Range,f=n("../lib/dom"),g=function(){function h(o){this.element=f.createElement("div"),this.element.className="ace_layer ace_marker-layer",o.appendChild(this.element)}return h.prototype.setPadding=function(o){this.$padding=o},h.prototype.setSession=function(o){this.session=o},h.prototype.setMarkers=function(o){this.markers=o},h.prototype.elt=function(o,r){var l=this.i!=-1&&this.element.childNodes[this.i];l?this.i++:(l=document.createElement("div"),this.element.appendChild(l),this.i=-1),l.style.cssText=r,l.className=o},h.prototype.update=function(o){if(o){this.config=o,this.i=0;var r;for(var l in this.markers){var c=this.markers[l];if(!c.range){c.update(r,this,this.session,o);continue}var a=c.range.clipRows(o.firstRow,o.lastRow);if(!a.isEmpty())if(a=a.toScreenRange(this.session),c.renderer){var d=this.$getTop(a.start.row,o),m=this.$padding+a.start.column*o.characterWidth;c.renderer(r,a,m,d,o)}else c.type=="fullLine"?this.drawFullLineMarker(r,a,c.clazz,o):c.type=="screenLine"?this.drawScreenLineMarker(r,a,c.clazz,o):a.isMultiLine()?c.type=="text"?this.drawTextMarker(r,a,c.clazz,o):this.drawMultiLineMarker(r,a,c.clazz,o):this.drawSingleLineMarker(r,a,c.clazz+" ace_start ace_br15",o)}if(this.i!=-1)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},h.prototype.$getTop=function(o,r){return(o-r.firstRowScreen)*r.lineHeight},h.prototype.drawTextMarker=function(o,r,l,c,a){for(var d=this.session,m=r.start.row,y=r.end.row,b=m,E=0,S=0,C=d.getScreenLastRowColumn(b),$=new u(b,r.start.column,b,S);b<=y;b++)$.start.row=$.end.row=b,$.start.column=b==m?r.start.column:d.getRowWrapIndent(b),$.end.column=C,E=S,S=C,C=b+1<y?d.getScreenLastRowColumn(b+1):b==y?0:r.end.column,this.drawSingleLineMarker(o,$,l+(b==m?" ace_start":"")+" ace_br"+s(b==m||b==m+1&&r.start.column,E<S,S>C,b==y),c,b==y?0:1,a)},h.prototype.drawMultiLineMarker=function(o,r,l,c,a){var d=this.$padding,m=c.lineHeight,y=this.$getTop(r.start.row,c),b=d+r.start.column*c.characterWidth;if(a=a||"",this.session.$bidiHandler.isBidiRow(r.start.row)){var E=r.clone();E.end.row=E.start.row,E.end.column=this.session.getLine(E.start.row).length,this.drawBidiSingleLineMarker(o,E,l+" ace_br1 ace_start",c,null,a)}else this.elt(l+" ace_br1 ace_start","height:"+m+"px;right:0;top:"+y+"px;left:"+b+"px;"+(a||""));if(this.session.$bidiHandler.isBidiRow(r.end.row)){var E=r.clone();E.start.row=E.end.row,E.start.column=0,this.drawBidiSingleLineMarker(o,E,l+" ace_br12",c,null,a)}else{y=this.$getTop(r.end.row,c);var S=r.end.column*c.characterWidth;this.elt(l+" ace_br12","height:"+m+"px;width:"+S+"px;top:"+y+"px;left:"+d+"px;"+(a||""))}if(m=(r.end.row-r.start.row-1)*c.lineHeight,!(m<=0)){y=this.$getTop(r.start.row+1,c);var C=(r.start.column?1:0)|(r.end.column?0:8);this.elt(l+(C?" ace_br"+C:""),"height:"+m+"px;right:0;top:"+y+"px;left:"+d+"px;"+(a||""))}},h.prototype.drawSingleLineMarker=function(o,r,l,c,a,d){if(this.session.$bidiHandler.isBidiRow(r.start.row))return this.drawBidiSingleLineMarker(o,r,l,c,a,d);var m=c.lineHeight,y=(r.end.column+(a||0)-r.start.column)*c.characterWidth,b=this.$getTop(r.start.row,c),E=this.$padding+r.start.column*c.characterWidth;this.elt(l,"height:"+m+"px;width:"+y+"px;top:"+b+"px;left:"+E+"px;"+(d||""))},h.prototype.drawBidiSingleLineMarker=function(o,r,l,c,a,d){var m=c.lineHeight,y=this.$getTop(r.start.row,c),b=this.$padding,E=this.session.$bidiHandler.getSelections(r.start.column,r.end.column);E.forEach(function(S){this.elt(l,"height:"+m+"px;width:"+(S.width+(a||0))+"px;top:"+y+"px;left:"+(b+S.left)+"px;"+(d||""))},this)},h.prototype.drawFullLineMarker=function(o,r,l,c,a){var d=this.$getTop(r.start.row,c),m=c.lineHeight;r.start.row!=r.end.row&&(m+=this.$getTop(r.end.row,c)-d),this.elt(l,"height:"+m+"px;top:"+d+"px;left:0;right:0;"+(a||""))},h.prototype.drawScreenLineMarker=function(o,r,l,c,a){var d=this.$getTop(r.start.row,c),m=c.lineHeight;this.elt(l,"height:"+m+"px;top:"+d+"px;left:0;right:0;"+(a||""))},h}();g.prototype.$padding=0;function s(h,o,r,l){return(h?1:0)|(o?2:0)|(r?4:0)|(l?8:0)}i.Marker=g}),ace.define("ace/layer/text_util",["require","exports","module"],function(n,i,p){var u=new Set(["text","rparen","lparen"]);i.isTextToken=function(f){return u.has(f)}}),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,p){var u=n("../lib/oop"),f=n("../lib/dom"),g=n("../lib/lang"),s=n("./lines").Lines,h=n("../lib/event_emitter").EventEmitter,o=n("../config").nls,r=n("./text_util").isTextToken,l=function(){function c(a){this.dom=f,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",a.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new s(this.element)}return c.prototype.$updateEolChar=function(){var a=this.session.doc,d=a.getNewLineCharacter()==`
1014
+ `&&a.getNewLineMode()!="windows",m=d?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=m)return this.EOL_CHAR=m,!0},c.prototype.setPadding=function(a){this.$padding=a,this.element.style.margin="0 "+a+"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(a){this.$fontMetrics=a,this.$fontMetrics.on("changeCharacterSize",(function(d){this._signal("changeCharacterSize",d)}).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(a){this.session=a,a&&this.$computeTabString()},c.prototype.setShowInvisibles=function(a){return this.showInvisibles==a?!1:(this.showInvisibles=a,typeof a=="string"?(this.showSpaces=/tab/i.test(a),this.showTabs=/space/i.test(a),this.showEOL=/eol/i.test(a)):this.showSpaces=this.showTabs=this.showEOL=a,this.$computeTabString(),!0)},c.prototype.setDisplayIndentGuides=function(a){return this.displayIndentGuides==a?!1:(this.displayIndentGuides=a,this.$computeTabString(),!0)},c.prototype.setHighlightIndentGuides=function(a){return this.$highlightIndentGuides===a?!1:(this.$highlightIndentGuides=a,a)},c.prototype.$computeTabString=function(){var a=this.session.getTabSize();this.tabSize=a;for(var d=this.$tabStrings=[0],m=1;m<a+1;m++)if(this.showTabs){var y=this.dom.createElement("span");y.className="ace_invisible ace_invisible_tab",y.textContent=g.stringRepeat(this.TAB_CHAR,m),d.push(y)}else d.push(this.dom.createTextNode(g.stringRepeat(" ",m),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var b="ace_indent-guide",E=this.showSpaces?" ace_invisible ace_invisible_space":"",S=this.showSpaces?g.stringRepeat(this.SPACE_CHAR,this.tabSize):g.stringRepeat(" ",this.tabSize),C=this.showTabs?" ace_invisible ace_invisible_tab":"",$=this.showTabs?g.stringRepeat(this.TAB_CHAR,this.tabSize):S,y=this.dom.createElement("span");y.className=b+E,y.textContent=S,this.$tabStrings[" "]=y;var y=this.dom.createElement("span");y.className=b+C,y.textContent=$,this.$tabStrings[" "]=y}},c.prototype.updateLines=function(a,d,m){if(this.config.lastRow!=a.lastRow||this.config.firstRow!=a.firstRow)return this.update(a);this.config=a;for(var y=Math.max(d,a.firstRow),b=Math.min(m,a.lastRow),E=this.element.childNodes,S=0,$=a.firstRow;$<y;$++){var R=this.session.getFoldLine($);if(R)if(R.containsRow(y)){y=R.start.row;break}else $=R.end.row;S++}for(var C=!1,$=y,R=this.session.getNextFoldLine($),x=R?R.start.row:1/0;$>x&&($=R.end.row+1,R=this.session.getNextFoldLine($,R),x=R?R.start.row:1/0),!($>b);){var k=E[S++];if(k){this.dom.removeChildren(k),this.$renderLine(k,$,$==x?R:!1),C&&(k.style.top=this.$lines.computeLineTop($,a,this.session)+"px");var _=a.lineHeight*this.session.getRowLength($)+"px";k.style.height!=_&&(C=!0,k.style.height=_)}$++}if(C)for(;S<this.$lines.cells.length;){var v=this.$lines.cells[S++];v.element.style.top=this.$lines.computeLineTop(v.row,a,this.session)+"px"}},c.prototype.scrollLines=function(a){var d=this.config;if(this.config=a,this.$lines.pageChanged(d,a))return this.update(a);this.$lines.moveContainer(a);var m=a.lastRow,y=d?d.lastRow:-1;if(!d||y<a.firstRow)return this.update(a);if(m<d.firstRow)return this.update(a);if(!d||d.lastRow<a.firstRow)return this.update(a);if(a.lastRow<d.firstRow)return this.update(a);if(d.firstRow<a.firstRow)for(var b=this.session.getFoldedRowCount(d.firstRow,a.firstRow-1);b>0;b--)this.$lines.shift();if(d.lastRow>a.lastRow)for(var b=this.session.getFoldedRowCount(a.lastRow+1,d.lastRow);b>0;b--)this.$lines.pop();a.firstRow<d.firstRow&&this.$lines.unshift(this.$renderLinesFragment(a,a.firstRow,d.firstRow-1)),a.lastRow>d.lastRow&&this.$lines.push(this.$renderLinesFragment(a,d.lastRow+1,a.lastRow)),this.$highlightIndentGuide()},c.prototype.$renderLinesFragment=function(a,d,m){for(var y=[],b=d,E=this.session.getNextFoldLine(b),S=E?E.start.row:1/0;b>S&&(b=E.end.row+1,E=this.session.getNextFoldLine(b,E),S=E?E.start.row:1/0),!(b>m);){var C=this.$lines.createCell(b,a,this.session),$=C.element;this.dom.removeChildren($),f.setStyle($.style,"height",this.$lines.computeLineHeight(b,a,this.session)+"px"),f.setStyle($.style,"top",this.$lines.computeLineTop(b,a,this.session)+"px"),this.$renderLine($,b,b==S?E:!1),this.$useLineGroups()?$.className="ace_line_group":$.className="ace_line",y.push(C),b++}return y},c.prototype.update=function(a){this.$lines.moveContainer(a),this.config=a;for(var d=a.firstRow,m=a.lastRow,y=this.$lines;y.getLength();)y.pop();y.push(this.$renderLinesFragment(a,d,m))},c.prototype.$renderToken=function(a,d,m,y){for(var b=this,E=/(\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),C,$=0;C=E.exec(y);){var R=C[1],x=C[2],k=C[3],_=C[4],v=C[5];if(!(!b.showSpaces&&x)){var M=$!=C.index?y.slice($,C.index):"";if($=C.index+C[0].length,M&&S.appendChild(this.dom.createTextNode(M,this.element)),R){var A=b.session.getScreenTabSize(d+C.index);S.appendChild(b.$tabStrings[A].cloneNode(!0)),d+=A-1}else if(x)if(b.showSpaces){var w=this.dom.createElement("span");w.className="ace_invisible ace_invisible_space",w.textContent=g.stringRepeat(b.SPACE_CHAR,x.length),S.appendChild(w)}else S.appendChild(this.dom.createTextNode(x,this.element));else if(k){var w=this.dom.createElement("span");w.className="ace_invisible ace_invisible_space ace_invalid",w.textContent=g.stringRepeat(b.SPACE_CHAR,k.length),S.appendChild(w)}else if(_){d+=1;var w=this.dom.createElement("span");w.style.width=b.config.characterWidth*2+"px",w.className=b.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",w.textContent=b.showSpaces?b.SPACE_CHAR:_,S.appendChild(w)}else if(v){d+=1;var w=this.dom.createElement("span");w.style.width=b.config.characterWidth*2+"px",w.className="ace_cjk",w.textContent=v,S.appendChild(w)}}}if(S.appendChild(this.dom.createTextNode($?y.slice($):y,this.element)),r(m.type))a.appendChild(S);else{var L="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=L,w.appendChild(S),a.appendChild(w)}return d+y.length},c.prototype.renderIndentGuide=function(a,d,m){var y=d.search(this.$indentGuideRe);if(y<=0||y>=m)return d;if(d[0]==" "){y-=y%this.tabSize;for(var b=y/this.tabSize,E=0;E<b;E++)a.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),d.substr(y)}else if(d[0]==" "){for(var E=0;E<y;E++)a.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),d.substr(y)}return this.$highlightIndentGuide(),d},c.prototype.$highlightIndentGuide=function(){if(!(!this.$highlightIndentGuides||!this.displayIndentGuides)){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var a=this.session.doc.$lines;if(a){var d=this.session.selection.getCursor(),m=/^\s*/.exec(this.session.doc.getLine(d.row))[0].length,y=Math.floor(m/this.tabSize);this.$highlightIndentGuideMarker={indentLevel:y,start:d.row};var b=this.session.$bracketHighlight;if(b){for(var E=this.session.$bracketHighlight.ranges,S=0;S<E.length;S++)if(d.row!==E[S].start.row){this.$highlightIndentGuideMarker.end=E[S].start.row,d.row>E[S].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&a[d.row]!==""&&d.column===a[d.row].length){this.$highlightIndentGuideMarker.dir=1;for(var S=d.row+1;S<a.length;S++){var C=a[S],$=/^\s*/.exec(C)[0].length;if(C!==""&&(this.$highlightIndentGuideMarker.end=S,$<=m))break}}this.$renderHighlightIndentGuide()}}},c.prototype.$clearActiveIndentGuide=function(){for(var a=this.$lines.cells,d=0;d<a.length;d++){var m=a[d],y=m.element.childNodes;if(y.length>0){for(var b=0;b<y.length;b++)if(y[b].classList&&y[b].classList.contains("ace_indent-guide-active")){y[b].classList.remove("ace_indent-guide-active");break}}}},c.prototype.$setIndentGuideActive=function(a,d){var m=this.session.doc.getLine(a.row);if(m!==""){var y=a.element.childNodes;if(y){var b=y[d-1];b&&b.classList&&b.classList.contains("ace_indent-guide")&&b.classList.add("ace_indent-guide-active")}}},c.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var a=this.$lines.cells;this.$clearActiveIndentGuide();var d=this.$highlightIndentGuideMarker.indentLevel;if(d!==0)if(this.$highlightIndentGuideMarker.dir===1)for(var m=0;m<a.length;m++){var y=a[m];if(this.$highlightIndentGuideMarker.end&&y.row>=this.$highlightIndentGuideMarker.start+1){if(y.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(y,d)}}else for(var m=a.length-1;m>=0;m--){var y=a[m];if(this.$highlightIndentGuideMarker.end&&y.row<this.$highlightIndentGuideMarker.start){if(y.row<=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(y,d)}}}},c.prototype.$createLineElement=function(a){var d=this.dom.createElement("div");return d.className="ace_line",d.style.height=this.config.lineHeight+"px",d},c.prototype.$renderWrappedLine=function(a,d,m){var y=0,b=0,E=m[0],S=0,C=this.$createLineElement();a.appendChild(C);for(var $=0;$<d.length;$++){var R=d[$],x=R.value;if($==0&&this.displayIndentGuides){if(y=x.length,x=this.renderIndentGuide(C,x,E),!x)continue;y-=x.length}if(y+x.length<E)S=this.$renderToken(C,S,R,x),y+=x.length;else{for(;y+x.length>=E;)S=this.$renderToken(C,S,R,x.substring(0,E-y)),x=x.substring(E-y),y=E,C=this.$createLineElement(),a.appendChild(C),C.appendChild(this.dom.createTextNode(g.stringRepeat(" ",m.indent),this.element)),b++,S=0,E=m[b]||Number.MAX_VALUE;x.length!=0&&(y+=x.length,S=this.$renderToken(C,S,R,x))}}m[m.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(C,S,null,"",!0)},c.prototype.$renderSimpleLine=function(a,d){for(var m=0,y=0;y<d.length;y++){var b=d[y],E=b.value;if(!(y==0&&this.displayIndentGuides&&(E=this.renderIndentGuide(a,E),!E))){if(m+E.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(a,m,b,E);m=this.$renderToken(a,m,b,E)}}},c.prototype.$renderOverflowMessage=function(a,d,m,y,b){m&&this.$renderToken(a,d,m,y.slice(0,this.MAX_LINE_LENGTH-d));var E=this.dom.createElement("span");E.className="ace_inline_button ace_keyword ace_toggle_wrap",E.textContent=b?"<hide>":"<click to see more...>",a.appendChild(E)},c.prototype.$renderLine=function(a,d,m){if(!m&&m!=!1&&(m=this.session.getFoldLine(d)),m)var y=this.$getFoldLineTokens(d,m);else var y=this.session.getTokens(d);var b=a;if(y.length){var E=this.session.getRowSplitData(d);if(E&&E.length){this.$renderWrappedLine(a,y,E);var b=a.lastChild}else{var b=a;this.$useLineGroups()&&(b=this.$createLineElement(),a.appendChild(b)),this.$renderSimpleLine(b,y)}}else this.$useLineGroups()&&(b=this.$createLineElement(),a.appendChild(b));if(this.showEOL&&b){m&&(d=m.end.row);var S=this.dom.createElement("span");S.className="ace_invisible ace_invisible_eol",S.textContent=d==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,b.appendChild(S)}},c.prototype.$getFoldLineTokens=function(a,d){var m=this.session,y=[];function b(S,C,$){for(var R=0,x=0;x+S[R].value.length<C;)if(x+=S[R].value.length,R++,R==S.length)return;if(x!=C){var k=S[R].value.substring(C-x);k.length>$-C&&(k=k.substring(0,$-C)),y.push({type:S[R].type,value:k}),x=C+k.length,R+=1}for(;x<$&&R<S.length;){var k=S[R].value;k.length+x>$?y.push({type:S[R].type,value:k.substring(0,$-x)}):y.push(S[R]),x+=k.length,R+=1}}var E=m.getTokens(a);return d.walk(function(S,C,$,R,x){S!=null?y.push({type:"fold",value:S}):(x&&(E=m.getTokens(C)),E.length&&b(E,R,$))},d.end.row,this.session.getLine(d.end.row).length),y},c.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},c}();l.prototype.EOF_CHAR="¶",l.prototype.EOL_CHAR_LF="¬",l.prototype.EOL_CHAR_CRLF="¤",l.prototype.EOL_CHAR=l.prototype.EOL_CHAR_LF,l.prototype.TAB_CHAR="—",l.prototype.SPACE_CHAR="·",l.prototype.$padding=0,l.prototype.MAX_LINE_LENGTH=1e4,l.prototype.showInvisibles=!1,l.prototype.showSpaces=!1,l.prototype.showTabs=!1,l.prototype.showEOL=!1,l.prototype.displayIndentGuides=!0,l.prototype.$highlightIndentGuides=!0,l.prototype.$tabStrings=[],l.prototype.destroy={},l.prototype.onChangeTabSize=l.prototype.$computeTabString,u.implement(l.prototype,h),i.Text=l}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(n,i,p){var u=n("../lib/dom"),f=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 h=this.cursors,o=h.length;o--;)u.setStyle(h[o].style,"opacity",s?"":"0")},g.prototype.$startCssAnimation=function(){for(var s=this.cursors,h=s.length;h--;)s[h].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 h=(function(){this.timeoutId=setTimeout(function(){s(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){s(!0),h()},this.blinkInterval),h()}},g.prototype.getPixelPosition=function(s,h){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),l=(o.row-(h?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:r,top:l}},g.prototype.isCursorInView=function(s,h){return s.top>=0&&s.top<h.maxHeight},g.prototype.update=function(s){this.config=s;var h=this.session.$selectionMarkers,o=0,r=0;(h===void 0||h.length===0)&&(h=[{cursor:null}]);for(var o=0,l=h.length;o<l;o++){var c=this.getPixelPosition(h[o].cursor,!0);if(!((c.top>s.height+s.offset||c.top<0)&&o>1)){var a=this.cursors[r++]||this.addCursor(),d=a.style;this.drawCursor?this.drawCursor(a,c,s,h[o],this.session):this.isCursorInView(c,s)?(u.setStyle(d,"display","block"),u.translate(a,c.left,c.top),u.setStyle(d,"width",Math.round(s.characterWidth)+"px"),u.setStyle(d,"height",s.lineHeight+"px")):u.setStyle(d,"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}();f.prototype.$padding=0,f.prototype.drawCursor=null,i.Cursor=f}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(n,i,p){var u=this&&this.__extends||function(){var a=function(d,m){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,b){y.__proto__=b}||function(y,b){for(var E in b)Object.prototype.hasOwnProperty.call(b,E)&&(y[E]=b[E])},a(d,m)};return function(d,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");a(d,m);function y(){this.constructor=d}d.prototype=m===null?Object.create(m):(y.prototype=m.prototype,new y)}}(),f=n("./lib/oop"),g=n("./lib/dom"),s=n("./lib/event"),h=n("./lib/event_emitter").EventEmitter,o=32768,r=function(){function a(d,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),d.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 a.prototype.setVisible=function(d){this.element.style.display=d?"":"none",this.isVisible=d,this.coeff=1},a}();f.implement(r.prototype,h);var l=function(a){u(d,a);function d(m,y){var b=a.call(this,m,"-v")||this;return b.scrollTop=0,b.scrollHeight=0,y.$scrollbarWidth=b.width=g.scrollbarWidth(m.ownerDocument),b.inner.style.width=b.element.style.width=(b.width||15)+5+"px",b.$minWidth=0,b}return d.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},d.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},d.prototype.setHeight=function(m){this.element.style.height=m+"px"},d.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"},d.prototype.setScrollTop=function(m){this.scrollTop!=m&&(this.skipEvent=!0,this.scrollTop=m,this.element.scrollTop=m*this.coeff)},d}(r);l.prototype.setInnerHeight=l.prototype.setScrollHeight;var c=function(a){u(d,a);function d(m,y){var b=a.call(this,m,"-h")||this;return b.scrollLeft=0,b.height=y.$scrollbarWidth,b.inner.style.height=b.element.style.height=(b.height||15)+5+"px",b}return d.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},d.prototype.getHeight=function(){return this.isVisible?this.height:0},d.prototype.setWidth=function(m){this.element.style.width=m+"px"},d.prototype.setInnerWidth=function(m){this.inner.style.width=m+"px"},d.prototype.setScrollWidth=function(m){this.inner.style.width=m+"px"},d.prototype.setScrollLeft=function(m){this.scrollLeft!=m&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=m)},d}(r);i.ScrollBar=l,i.ScrollBarV=l,i.ScrollBarH=c,i.VScrollBar=l,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,p){var u=this&&this.__extends||function(){var c=function(a,d){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,y){m.__proto__=y}||function(m,y){for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(m[b]=y[b])},c(a,d)};return function(a,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");c(a,d);function m(){this.constructor=a}a.prototype=d===null?Object.create(d):(m.prototype=d.prototype,new m)}}(),f=n("./lib/oop"),g=n("./lib/dom"),s=n("./lib/event"),h=n("./lib/event_emitter").EventEmitter;g.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{
1013
1015
  position: absolute;
1014
1016
  background: rgba(128, 128, 128, 0.6);
1015
1017
  -moz-box-sizing: border-box;
@@ -1047,7 +1049,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1047
1049
  .ace_editor>.ace_sb_grabbed {
1048
1050
  z-index: 8;
1049
1051
  background: #000;
1050
- }`,"ace_scrollbar.css",!1);var o=function(){function c(a,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,a.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,s.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return c.prototype.setVisible=function(a){this.element.style.display=a?"":"none",this.isVisible=a,this.coeff=1},c}();p.implement(o.prototype,h);var r=function(c){u(a,c);function a(f,m){var y=c.call(this,f,"-v")||this;return y.scrollTop=0,y.scrollHeight=0,y.parent=f,y.width=y.VScrollWidth,y.renderer=m,y.inner.style.width=y.element.style.width=(y.width||15)+"px",y.$minWidth=0,y}return a.prototype.onMouseDown=function(f,m){if(f==="mousedown"&&!(s.getButton(m)!==0||m.detail===2)){if(m.target===this.inner){var y=this,b=m.clientY,E=function(_){b=_.clientY},S=function(){clearInterval(x)},C=m.clientY,$=this.thumbTop,R=function(){if(b!==void 0){var _=y.scrollTopFromThumbTop($+b-C);_!==y.scrollTop&&y._emit("scroll",{data:_})}};s.capture(this.inner,E,S);var x=setInterval(R,20);return s.preventDefault(m)}var k=m.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(k)}),s.preventDefault(m)}},a.prototype.getHeight=function(){return this.height},a.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},a.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},a.prototype.setHeight=function(f){this.height=Math.max(0,f),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},a.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})))},a.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"},a}(o);r.prototype.setInnerHeight=r.prototype.setScrollHeight;var l=function(c){u(a,c);function a(f,m){var y=c.call(this,f,"-h")||this;return y.scrollLeft=0,y.scrollWidth=0,y.height=y.HScrollHeight,y.inner.style.height=y.element.style.height=(y.height||12)+"px",y.renderer=m,y}return a.prototype.onMouseDown=function(f,m){if(f==="mousedown"&&!(s.getButton(m)!==0||m.detail===2)){if(m.target===this.inner){var y=this,b=m.clientX,E=function(_){b=_.clientX},S=function(){clearInterval(x)},C=m.clientX,$=this.thumbLeft,R=function(){if(b!==void 0){var _=y.scrollLeftFromThumbLeft($+b-C);_!==y.scrollLeft&&y._emit("scroll",{data:_})}};s.capture(this.inner,E,S);var x=setInterval(R,20);return s.preventDefault(m)}var k=m.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(k)}),s.preventDefault(m)}},a.prototype.getHeight=function(){return this.isVisible?this.height:0},a.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},a.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)},a.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})))},a.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"},a}(o);l.prototype.setInnerWidth=l.prototype.setScrollWidth,i.ScrollBar=r,i.ScrollBarV=r,i.ScrollBarH=l,i.VScrollBar=r,i.HScrollBar=l}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(n,i,d){var u=n("./lib/event"),p=function(){function g(s,h){this.onRender=s,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=h||window;var o=this;this._flush=function(r){o.pending=!1;var l=o.changes;if(l&&(u.blockIdle(100),o.changes=0,o.onRender(l)),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 h=this.changes;return this.changes=0,h},g}();i.RenderLoop=p}),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"),p=n("../lib/dom"),g=n("../lib/lang"),s=n("../lib/event"),h=n("../lib/useragent"),o=n("../lib/event_emitter").EventEmitter,r=512,l=typeof ResizeObserver=="function",c=200,a=function(){function f(m){this.el=p.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=p.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=p.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},l?this.$addObserver():this.checkForSizeChanges()}return f.prototype.$setMeasureNodeStyles=function(m,y){m.width=m.height="auto",m.left=m.top="0px",m.visibility="hidden",m.position="absolute",m.whiteSpace="pre",h.isIE<8?m["font-family"]="inherit":m.font="inherit",m.overflow=y?"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 y=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=m,this.charSizes=Object.create(null),this.allowBoldFonts=y&&y.width===m.width&&y.height===m.height,this._emit("changeCharacterSize",{data:m})}},f.prototype.$addObserver=function(){var m=this;this.$observer=new window.ResizeObserver(function(y){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 y(){m.checkForSizeChanges(),s.onIdle(y,500)},500)},f.prototype.setPolling=function(m){m?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},f.prototype.$measureSizes=function(m){var y={height:(m||this.$measureNode).clientHeight,width:(m||this.$measureNode).clientWidth/r};return y.width===0||y.height===0?null:y},f.prototype.$measureCharWidth=function(m){this.$main.textContent=g.stringRepeat(m,r);var y=this.$main.getBoundingClientRect();return y.width/r},f.prototype.getCharacterWidth=function(m){var y=this.charSizes[m];return y===void 0&&(y=this.charSizes[m]=this.$measureCharWidth(m)/this.$characterSize.width),y},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(y,b){return["div",{style:"position: absolute;top:"+y+"px;left:"+b+"px;"}]};this.els=p.buildDom([m(0,0),m(c,0),m(0,c),m(c,c)],this.el)},f.prototype.transformCoordinates=function(m,y){if(m){var b=this.$getZoom(this.el);m=$(1/b,m)}function E(D,W,G){var U=D[1]*W[0]-D[0]*W[1];return[(-W[1]*G[0]+W[0]*G[1])/U,(+D[1]*G[0]-D[0]*G[1])/U]}function S(D,W){return[D[0]-W[0],D[1]-W[1]]}function C(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 x=R(this.els[0]),k=R(this.els[1]),_=R(this.els[2]),v=R(this.els[3]),M=E(S(v,k),S(v,_),S(C(k,_),C(v,x))),A=$(1+M[0],S(k,x)),w=$(1+M[1],S(_,x));if(y){var L=y,T=M[0]*L[0]/c+M[1]*L[1]/c+1,O=C($(L[0],A),$(L[1],w));return C($(1/T/c,O),x)}var I=S(m,x),F=E(S(A,$(M[0],I)),S(w,$(M[1],I)),I);return $(c,F)},f}();a.prototype.$characterSize={width:0,height:0},u.implement(a.prototype,o),i.FontMetrics=a}),ace.define("ace/css/editor-css",["require","exports","module"],function(n,i,d){d.exports=`
1052
+ }`,"ace_scrollbar.css",!1);var o=function(){function c(a,d){this.element=g.createElement("div"),this.element.className="ace_sb"+d,this.inner=g.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,a.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,s.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return c.prototype.setVisible=function(a){this.element.style.display=a?"":"none",this.isVisible=a,this.coeff=1},c}();f.implement(o.prototype,h);var r=function(c){u(a,c);function a(d,m){var y=c.call(this,d,"-v")||this;return y.scrollTop=0,y.scrollHeight=0,y.parent=d,y.width=y.VScrollWidth,y.renderer=m,y.inner.style.width=y.element.style.width=(y.width||15)+"px",y.$minWidth=0,y}return a.prototype.onMouseDown=function(d,m){if(d==="mousedown"&&!(s.getButton(m)!==0||m.detail===2)){if(m.target===this.inner){var y=this,b=m.clientY,E=function(_){b=_.clientY},S=function(){clearInterval(x)},C=m.clientY,$=this.thumbTop,R=function(){if(b!==void 0){var _=y.scrollTopFromThumbTop($+b-C);_!==y.scrollTop&&y._emit("scroll",{data:_})}};s.capture(this.inner,E,S);var x=setInterval(R,20);return s.preventDefault(m)}var k=m.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(k)}),s.preventDefault(m)}},a.prototype.getHeight=function(){return this.height},a.prototype.scrollTopFromThumbTop=function(d){var m=d*(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},a.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},a.prototype.setHeight=function(d){this.height=Math.max(0,d),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},a.prototype.setScrollHeight=function(d,m){this.pageHeight===d&&!m||(this.pageHeight=d,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})))},a.prototype.setScrollTop=function(d){this.scrollTop=d,d<0&&(d=0),this.thumbTop=d*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},a}(o);r.prototype.setInnerHeight=r.prototype.setScrollHeight;var l=function(c){u(a,c);function a(d,m){var y=c.call(this,d,"-h")||this;return y.scrollLeft=0,y.scrollWidth=0,y.height=y.HScrollHeight,y.inner.style.height=y.element.style.height=(y.height||12)+"px",y.renderer=m,y}return a.prototype.onMouseDown=function(d,m){if(d==="mousedown"&&!(s.getButton(m)!==0||m.detail===2)){if(m.target===this.inner){var y=this,b=m.clientX,E=function(_){b=_.clientX},S=function(){clearInterval(x)},C=m.clientX,$=this.thumbLeft,R=function(){if(b!==void 0){var _=y.scrollLeftFromThumbLeft($+b-C);_!==y.scrollLeft&&y._emit("scroll",{data:_})}};s.capture(this.inner,E,S);var x=setInterval(R,20);return s.preventDefault(m)}var k=m.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(k)}),s.preventDefault(m)}},a.prototype.getHeight=function(){return this.isVisible?this.height:0},a.prototype.scrollLeftFromThumbLeft=function(d){var m=d*(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},a.prototype.setWidth=function(d){this.width=Math.max(0,d),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},a.prototype.setScrollWidth=function(d,m){this.pageWidth===d&&!m||(this.pageWidth=d,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})))},a.prototype.setScrollLeft=function(d){this.scrollLeft=d,d<0&&(d=0),this.thumbLeft=d*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},a}(o);l.prototype.setInnerWidth=l.prototype.setScrollWidth,i.ScrollBar=r,i.ScrollBarV=r,i.ScrollBarH=l,i.VScrollBar=r,i.HScrollBar=l}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(n,i,p){var u=n("./lib/event"),f=function(){function g(s,h){this.onRender=s,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=h||window;var o=this;this._flush=function(r){o.pending=!1;var l=o.changes;if(l&&(u.blockIdle(100),o.changes=0,o.onRender(l)),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 h=this.changes;return this.changes=0,h},g}();i.RenderLoop=f}),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,p){var u=n("../lib/oop"),f=n("../lib/dom"),g=n("../lib/lang"),s=n("../lib/event"),h=n("../lib/useragent"),o=n("../lib/event_emitter").EventEmitter,r=512,l=typeof ResizeObserver=="function",c=200,a=function(){function d(m){this.el=f.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=f.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=f.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},l?this.$addObserver():this.checkForSizeChanges()}return d.prototype.$setMeasureNodeStyles=function(m,y){m.width=m.height="auto",m.left=m.top="0px",m.visibility="hidden",m.position="absolute",m.whiteSpace="pre",h.isIE<8?m["font-family"]="inherit":m.font="inherit",m.overflow=y?"hidden":"visible"},d.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 y=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=m,this.charSizes=Object.create(null),this.allowBoldFonts=y&&y.width===m.width&&y.height===m.height,this._emit("changeCharacterSize",{data:m})}},d.prototype.$addObserver=function(){var m=this;this.$observer=new window.ResizeObserver(function(y){m.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},d.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var m=this;return this.$pollSizeChangesTimer=s.onIdle(function y(){m.checkForSizeChanges(),s.onIdle(y,500)},500)},d.prototype.setPolling=function(m){m?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},d.prototype.$measureSizes=function(m){var y={height:(m||this.$measureNode).clientHeight,width:(m||this.$measureNode).clientWidth/r};return y.width===0||y.height===0?null:y},d.prototype.$measureCharWidth=function(m){this.$main.textContent=g.stringRepeat(m,r);var y=this.$main.getBoundingClientRect();return y.width/r},d.prototype.getCharacterWidth=function(m){var y=this.charSizes[m];return y===void 0&&(y=this.charSizes[m]=this.$measureCharWidth(m)/this.$characterSize.width),y},d.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},d.prototype.$getZoom=function(m){return!m||!m.parentElement?1:(window.getComputedStyle(m).zoom||1)*this.$getZoom(m.parentElement)},d.prototype.$initTransformMeasureNodes=function(){var m=function(y,b){return["div",{style:"position: absolute;top:"+y+"px;left:"+b+"px;"}]};this.els=f.buildDom([m(0,0),m(c,0),m(0,c),m(c,c)],this.el)},d.prototype.transformCoordinates=function(m,y){if(m){var b=this.$getZoom(this.el);m=$(1/b,m)}function E(D,W,G){var U=D[1]*W[0]-D[0]*W[1];return[(-W[1]*G[0]+W[0]*G[1])/U,(+D[1]*G[0]-D[0]*G[1])/U]}function S(D,W){return[D[0]-W[0],D[1]-W[1]]}function C(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 x=R(this.els[0]),k=R(this.els[1]),_=R(this.els[2]),v=R(this.els[3]),M=E(S(v,k),S(v,_),S(C(k,_),C(v,x))),A=$(1+M[0],S(k,x)),w=$(1+M[1],S(_,x));if(y){var L=y,T=M[0]*L[0]/c+M[1]*L[1]/c+1,O=C($(L[0],A),$(L[1],w));return C($(1/T/c,O),x)}var I=S(m,x),F=E(S(A,$(M[0],I)),S(w,$(M[1],I)),I);return $(c,F)},d}();a.prototype.$characterSize={width:0,height:0},u.implement(a.prototype,o),i.FontMetrics=a}),ace.define("ace/css/editor-css",["require","exports","module"],function(n,i,p){p.exports=`
1051
1053
  .ace_br1 {border-top-left-radius : 3px;}
1052
1054
  .ace_br2 {border-top-right-radius : 3px;}
1053
1055
  .ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}
@@ -1689,11 +1691,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1689
1691
  opacity: 0.5;
1690
1692
  font-style: italic;
1691
1693
  white-space: pre;
1692
- }`}),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"),p=n("../lib/oop"),g=n("../lib/event_emitter").EventEmitter,s=function(){function h(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 h.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 l=(o.lastRow+1)*this.lineHeight;l<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight}var c=this.canvas.getContext("2d");function a(v,M){return v.priority<M.priority?-1:v.priority>M.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(v){v.priority=m[v.type]||null}),f=f.sort(a);for(var y=this.renderer.session.$foldData,b=0;b<f.length;b++){var E=f[b].row,S=this.compensateFoldRows(E,y),C=Math.round((E-S)*this.lineHeight*this.heightRatio),$=Math.round((E-S)*this.lineHeight*this.heightRatio),R=Math.round(((E-S)*this.lineHeight+this.lineHeight)*this.heightRatio),x=R-$;if(x<this.minDecorationHeight){var k=($+R)/2|0;k<this.halfMinDecorationHeight?k=this.halfMinDecorationHeight:k+this.halfMinDecorationHeight>this.canvasHeight&&(k=this.canvasHeight-this.halfMinDecorationHeight),$=Math.round(k-this.halfMinDecorationHeight),R=Math.round(k+this.halfMinDecorationHeight)}c.fillStyle=r[f[b].type]||null,c.fillRect(0,C,this.canvasWidth,R-$)}}var _=this.renderer.session.selection.getCursor();if(_){var S=this.compensateFoldRows(_.row,y),C=Math.round((_.row-S)*this.lineHeight*this.heightRatio);c.fillStyle="rgba(0, 0, 0, 0.5)",c.fillRect(0,C,this.canvasWidth,2)}},h.prototype.compensateFoldRows=function(o,r){var l=0;if(r&&r.length>0)for(var c=0;c<r.length;c++)o>r[c].start.row&&o<r[c].end.row?l+=o-r[c].start.row:o>=r[c].end.row&&(l+=r[c].end.row-r[c].start.row);return l},h}();p.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"),p=n("./lib/dom"),g=n("./lib/lang"),s=n("./config"),h=n("./layer/gutter").Gutter,o=n("./layer/marker").Marker,r=n("./layer/text").Text,l=n("./layer/cursor").Cursor,c=n("./scrollbar").HScrollBar,a=n("./scrollbar").VScrollBar,f=n("./scrollbar_custom").HScrollBar,m=n("./scrollbar_custom").VScrollBar,y=n("./renderloop").RenderLoop,b=n("./layer/font_metrics").FontMetrics,E=n("./lib/event_emitter").EventEmitter,S=n("./css/editor-css"),C=n("./layer/decorators").Decorator,$=n("./lib/useragent");p.importCssString(S,"ace_editor.css",!1);var R=function(){function x(k,_){var v=this;this.container=k||p.createElement("div"),p.addCssClass(this.container,"ace_editor"),p.HI_DPI&&p.addCssClass(this.container,"ace_hidpi"),this.setTheme(_),s.get("useStrictCSP")==null&&s.set("useStrictCSP",!1),this.$gutter=p.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=p.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=p.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new h(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new o(this.content);var M=this.$textLayer=new r(this.content);this.canvas=M.element,this.$markerFront=new o(this.content),this.$cursorLayer=new l(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new a(this.container,this),this.scrollBarH=new c(this.container,this),this.scrollBarV.on("scroll",function(A){v.$scrollAnimation||v.session.setScrollTop(A.data-v.scrollMargin.top)}),this.scrollBarH.on("scroll",function(A){v.$scrollAnimation||v.session.setScrollLeft(A.data-v.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new b(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(A){v.updateCharacterSize(),v.onResize(!0,v.gutterWidth,v.$size.width,v.$size.height),v._signal("changeCharacterSize",A)}),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 y(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 x.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(),p.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},x.prototype.setSession=function(k){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=k,k&&this.scrollMargin.top&&k.getScrollTop()<=0&&k.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(k),this.$markerBack.setSession(k),this.$markerFront.setSession(k),this.$gutterLayer.setSession(k),this.$textLayer.setSession(k),k&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},x.prototype.updateLines=function(k,_,v){if(_===void 0&&(_=1/0),this.$changedLines?(this.$changedLines.firstRow>k&&(this.$changedLines.firstRow=k),this.$changedLines.lastRow<_&&(this.$changedLines.lastRow=_)):this.$changedLines={firstRow:k,lastRow:_},this.$changedLines.lastRow<this.layerConfig.firstRow)if(v)this.$changedLines.lastRow=this.layerConfig.lastRow;else return;this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},x.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},x.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},x.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},x.prototype.updateFull=function(k){k?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},x.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},x.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},x.prototype.onResize=function(k,_,v,M){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=k?1:0;var A=this.container;M||(M=A.clientHeight||A.scrollHeight),v||(v=A.clientWidth||A.scrollWidth);var w=this.$updateCachedSize(k,_,v,M);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!v&&!M)return this.resizing=0;k&&(this.$gutterLayer.$padding=null),k?this.$renderChanges(w|this.$changes,!0):this.$loop.schedule(w|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},x.prototype.$updateCachedSize=function(k,_,v,M){M-=this.$extraHeight||0;var A=0,w=this.$size,L={width:w.width,height:w.height,scrollerHeight:w.scrollerHeight,scrollerWidth:w.scrollerWidth};if(M&&(k||w.height!=M)&&(w.height=M,A|=this.CHANGE_SIZE,w.scrollerHeight=w.height,this.$horizScroll&&(w.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(w.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",A=A|this.CHANGE_SCROLL),v&&(k||w.width!=v)){A|=this.CHANGE_SIZE,w.width=v,_==null&&(_=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=_,p.setStyle(this.scrollBarH.element.style,"left",_+"px"),p.setStyle(this.scroller.style,"left",_+this.margin.left+"px"),w.scrollerWidth=Math.max(0,v-_-this.scrollBarV.getWidth()-this.margin.h),p.setStyle(this.$gutter.style,"left",this.margin.left+"px");var T=this.scrollBarV.getWidth()+"px";p.setStyle(this.scrollBarH.element.style,"right",T),p.setStyle(this.scroller.style,"right",T),p.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(w.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||k)&&(A|=this.CHANGE_FULL)}return w.$dirty=!v||!M,A&&this._signal("resize",L),A},x.prototype.onGutterResize=function(k){var _=this.$showGutter?k:0;_!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,_,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()},x.prototype.adjustWrapLimit=function(){var k=this.$size.scrollerWidth-this.$padding*2,_=Math.floor(k/this.characterWidth);return this.session.adjustWrapLimit(_,this.$showPrintMargin&&this.$printMarginColumn)},x.prototype.setAnimatedScroll=function(k){this.setOption("animatedScroll",k)},x.prototype.getAnimatedScroll=function(){return this.$animatedScroll},x.prototype.setShowInvisibles=function(k){this.setOption("showInvisibles",k),this.session.$bidiHandler.setShowInvisibles(k)},x.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},x.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},x.prototype.setDisplayIndentGuides=function(k){this.setOption("displayIndentGuides",k)},x.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},x.prototype.setHighlightIndentGuides=function(k){this.setOption("highlightIndentGuides",k)},x.prototype.setShowPrintMargin=function(k){this.setOption("showPrintMargin",k)},x.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},x.prototype.setPrintMarginColumn=function(k){this.setOption("printMarginColumn",k)},x.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},x.prototype.getShowGutter=function(){return this.getOption("showGutter")},x.prototype.setShowGutter=function(k){return this.setOption("showGutter",k)},x.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},x.prototype.setFadeFoldWidgets=function(k){this.setOption("fadeFoldWidgets",k)},x.prototype.setHighlightGutterLine=function(k){this.setOption("highlightGutterLine",k)},x.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},x.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var k=p.createElement("div");k.className="ace_layer ace_print-margin-layer",this.$printMarginEl=p.createElement("div"),this.$printMarginEl.className="ace_print-margin",k.appendChild(this.$printMarginEl),this.content.insertBefore(k,this.content.firstChild)}var _=this.$printMarginEl.style;_.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",_.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},x.prototype.getContainerElement=function(){return this.container},x.prototype.getMouseEventTarget=function(){return this.scroller},x.prototype.getTextAreaContainer=function(){return this.container},x.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var k=this.textarea.style,_=this.$composition;if(!this.$keepTextAreaAtCursor&&!_){p.translate(this.textarea,-100,0);return}var v=this.$cursorLayer.$pixelPos;if(v){_&&_.markerRange&&(v=this.$cursorLayer.getPixelPosition(_.markerRange.start,!0));var M=this.layerConfig,A=v.top,w=v.left;A-=M.offset;var L=_&&_.useTextareaForIME||$.isMobile?this.lineHeight:1;if(A<0||A>M.height-L){p.translate(this.textarea,0,0);return}var T=1,O=this.$size.height-L;if(!_)A+=this.lineHeight;else if(_.useTextareaForIME){var I=this.textarea.value;T=this.characterWidth*this.session.$getStringScreenWidth(I)[0]}else A+=this.lineHeight+2;w-=this.scrollLeft,w>this.$size.scrollerWidth-T&&(w=this.$size.scrollerWidth-T),w+=this.gutterWidth+this.margin.left,p.setStyle(k,"height",L+"px"),p.setStyle(k,"width",T+"px"),p.translate(this.textarea,Math.min(w,this.$size.scrollerWidth-T),Math.min(A,O))}}},x.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},x.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},x.prototype.getLastFullyVisibleRow=function(){var k=this.layerConfig,_=k.lastRow,v=this.session.documentToScreenRow(_,0)*k.lineHeight;return v-this.session.getScrollTop()>k.height-k.lineHeight?_-1:_},x.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},x.prototype.setPadding=function(k){this.$padding=k,this.$textLayer.setPadding(k),this.$cursorLayer.setPadding(k),this.$markerFront.setPadding(k),this.$markerBack.setPadding(k),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},x.prototype.setScrollMargin=function(k,_,v,M){var A=this.scrollMargin;A.top=k|0,A.bottom=_|0,A.right=M|0,A.left=v|0,A.v=A.top+A.bottom,A.h=A.left+A.right,A.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-A.top),this.updateFull()},x.prototype.setMargin=function(k,_,v,M){var A=this.margin;A.top=k|0,A.bottom=_|0,A.right=M|0,A.left=v|0,A.v=A.top+A.bottom,A.h=A.left+A.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},x.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},x.prototype.setHScrollBarAlwaysVisible=function(k){this.setOption("hScrollBarAlwaysVisible",k)},x.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},x.prototype.setVScrollBarAlwaysVisible=function(k){this.setOption("vScrollBarAlwaysVisible",k)},x.prototype.$updateScrollBarV=function(){var k=this.layerConfig.maxHeight,_=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(k-=(_-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>k-_&&(k=this.scrollTop+_,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(k+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},x.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},x.prototype.freeze=function(){this.$frozen=!0},x.prototype.unfreeze=function(){this.$frozen=!1},x.prototype.$renderChanges=function(k,_){if(this.$changes&&(k|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!k&&!_){this.$changes|=k;return}if(this.$size.$dirty)return this.$changes|=k,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",k),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var v=this.layerConfig;if(k&this.CHANGE_FULL||k&this.CHANGE_SIZE||k&this.CHANGE_TEXT||k&this.CHANGE_LINES||k&this.CHANGE_SCROLL||k&this.CHANGE_H_SCROLL){if(k|=this.$computeLayerConfig()|this.$loop.clear(),v.firstRow!=this.layerConfig.firstRow&&v.firstRowScreen==this.layerConfig.firstRowScreen){var M=this.scrollTop+(v.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;M>0&&(this.scrollTop=M,k=k|this.CHANGE_SCROLL,k|=this.$computeLayerConfig()|this.$loop.clear())}v=this.layerConfig,this.$updateScrollBarV(),k&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),p.translate(this.content,-this.scrollLeft,-v.offset);var A=v.width+2*this.$padding+"px",w=v.minHeight+"px";p.setStyle(this.content.style,"width",A),p.setStyle(this.content.style,"height",w)}if(k&this.CHANGE_H_SCROLL&&(p.translate(this.content,-this.scrollLeft,-v.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),k&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(v),this.$showGutter&&this.$gutterLayer.update(v),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(v),this.$markerBack.update(v),this.$markerFront.update(v),this.$cursorLayer.update(v),this.$moveTextAreaToCursor(),this._signal("afterRender",k);return}if(k&this.CHANGE_SCROLL){this.$changedLines=null,k&this.CHANGE_TEXT||k&this.CHANGE_LINES?this.$textLayer.update(v):this.$textLayer.scrollLines(v),this.$showGutter&&(k&this.CHANGE_GUTTER||k&this.CHANGE_LINES?this.$gutterLayer.update(v):this.$gutterLayer.scrollLines(v)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(v),this.$markerBack.update(v),this.$markerFront.update(v),this.$cursorLayer.update(v),this.$moveTextAreaToCursor(),this._signal("afterRender",k);return}k&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(v),this.$showGutter&&this.$gutterLayer.update(v),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(v)):k&this.CHANGE_LINES?((this.$updateLines()||k&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(v),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(v)):k&this.CHANGE_TEXT||k&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(v),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(v)):k&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(v),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(v)),k&this.CHANGE_CURSOR&&(this.$cursorLayer.update(v),this.$moveTextAreaToCursor()),k&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(v),k&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(v),this._signal("afterRender",k)},x.prototype.$autosize=function(){var k=this.session.getScreenLength()*this.lineHeight,_=this.$maxLines*this.lineHeight,v=Math.min(_,Math.max((this.$minLines||1)*this.lineHeight,k))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(v+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&v>this.$maxPixelHeight&&(v=this.$maxPixelHeight);var M=v<=2*this.lineHeight,A=!M&&k>_;if(v!=this.desiredHeight||this.$size.height!=this.desiredHeight||A!=this.$vScroll){A!=this.$vScroll&&(this.$vScroll=A,this.scrollBarV.setVisible(A));var w=this.container.clientWidth;this.container.style.height=v+"px",this.$updateCachedSize(!0,this.$gutterWidth,w,v),this.desiredHeight=v,this._signal("autosize")}},x.prototype.$computeLayerConfig=function(){var k=this.session,_=this.$size,v=_.height<=2*this.lineHeight,M=this.session.getScreenLength(),A=M*this.lineHeight,w=this.$getLongestLine(),L=!v&&(this.$hScrollBarAlwaysVisible||_.scrollerWidth-w-2*this.$padding<0),T=this.$horizScroll!==L;T&&(this.$horizScroll=L,this.scrollBarH.setVisible(L));var O=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var I=_.scrollerHeight+this.lineHeight,F=!this.$maxLines&&this.$scrollPastEnd?(_.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;A+=F;var D=this.scrollMargin;this.session.setScrollTop(Math.max(-D.top,Math.min(this.scrollTop,A-_.scrollerHeight+D.bottom))),this.session.setScrollLeft(Math.max(-D.left,Math.min(this.scrollLeft,w+2*this.$padding-_.scrollerWidth+D.right)));var W=!v&&(this.$vScrollBarAlwaysVisible||_.scrollerHeight-A+F<0||this.scrollTop>D.top),G=O!==W;G&&(this.$vScroll=W,this.scrollBarV.setVisible(W));var U=this.scrollTop%this.lineHeight,H=Math.ceil(I/this.lineHeight)-1,X=Math.max(0,Math.round((this.scrollTop-U)/this.lineHeight)),J=X+H,z,Y,K=this.lineHeight;X=k.screenToDocumentRow(X,0);var V=k.getFoldLine(X);V&&(X=V.start.row),z=k.documentToScreenRow(X,0),Y=k.getRowLength(X)*K,J=Math.min(k.screenToDocumentRow(J,0),k.getLength()-1),I=_.scrollerHeight+k.getRowLength(J)*K+Y,U=this.scrollTop-z*K;var ee=0;return(this.layerConfig.width!=w||T)&&(ee=this.CHANGE_H_SCROLL),(T||G)&&(ee|=this.$updateCachedSize(!0,this.gutterWidth,_.width,_.height),this._signal("scrollbarVisibilityChanged"),G&&(w=this.$getLongestLine())),this.layerConfig={width:w,padding:this.$padding,firstRow:X,firstRowScreen:z,lastRow:J,lineHeight:K,characterWidth:this.characterWidth,minHeight:I,maxHeight:A,offset:U,gutterOffset:K?Math.max(0,Math.ceil((U+_.height-_.scrollerHeight)/K)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(w-this.$padding),ee},x.prototype.$updateLines=function(){if(this.$changedLines){var k=this.$changedLines.firstRow,_=this.$changedLines.lastRow;this.$changedLines=null;var v=this.layerConfig;if(!(k>v.lastRow+1)&&!(_<v.firstRow)){if(_===1/0){this.$showGutter&&this.$gutterLayer.update(v),this.$textLayer.update(v);return}return this.$textLayer.updateLines(v,k,_),!0}}},x.prototype.$getLongestLine=function(){var k=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(k+=1),this.$textLayer&&k>this.$textLayer.MAX_LINE_LENGTH&&(k=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(k*this.characterWidth))},x.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},x.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},x.prototype.addGutterDecoration=function(k,_){this.$gutterLayer.addGutterDecoration(k,_)},x.prototype.removeGutterDecoration=function(k,_){this.$gutterLayer.removeGutterDecoration(k,_)},x.prototype.updateBreakpoints=function(k){this.$loop.schedule(this.CHANGE_GUTTER)},x.prototype.setAnnotations=function(k){this.$gutterLayer.setAnnotations(k),this.$loop.schedule(this.CHANGE_GUTTER)},x.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},x.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},x.prototype.showCursor=function(){this.$cursorLayer.showCursor()},x.prototype.scrollSelectionIntoView=function(k,_,v){this.scrollCursorIntoView(k,v),this.scrollCursorIntoView(_,v)},x.prototype.scrollCursorIntoView=function(k,_,v){if(this.$size.scrollerHeight!==0){var M=this.$cursorLayer.getPixelPosition(k),A=M.left,w=M.top,L=v&&v.top||0,T=v&&v.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var O=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;O+L>w?(_&&O+L>w+this.lineHeight&&(w-=_*this.$size.scrollerHeight),w===0&&(w=-this.scrollMargin.top),this.session.setScrollTop(w)):O+this.$size.scrollerHeight-T<w+this.lineHeight&&(_&&O+this.$size.scrollerHeight-T<w-this.lineHeight&&(w+=_*this.$size.scrollerHeight),this.session.setScrollTop(w+this.lineHeight+T-this.$size.scrollerHeight));var I=this.scrollLeft,F=2*this.layerConfig.characterWidth;A-F<I?(A-=F,A<this.$padding+F&&(A=-this.scrollMargin.left),this.session.setScrollLeft(A)):(A+=F,I+this.$size.scrollerWidth<A+this.characterWidth?this.session.setScrollLeft(Math.round(A+this.characterWidth-this.$size.scrollerWidth)):I<=this.$padding&&A-I<this.characterWidth&&this.session.setScrollLeft(0))}},x.prototype.getScrollTop=function(){return this.session.getScrollTop()},x.prototype.getScrollLeft=function(){return this.session.getScrollLeft()},x.prototype.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},x.prototype.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},x.prototype.scrollToRow=function(k){this.session.setScrollTop(k*this.lineHeight)},x.prototype.alignCursor=function(k,_){typeof k=="number"&&(k={row:k,column:0});var v=this.$cursorLayer.getPixelPosition(k),M=this.$size.scrollerHeight-this.lineHeight,A=v.top-M*(_||0);return this.session.setScrollTop(A),A},x.prototype.$calcSteps=function(k,_){var v=0,M=this.STEPS,A=[],w=function(L,T,O){return O*(Math.pow(L-1,3)+1)+T};for(v=0;v<M;++v)A.push(w(v/this.STEPS,k,_-k));return A},x.prototype.scrollToLine=function(k,_,v,M){var A=this.$cursorLayer.getPixelPosition({row:k,column:0}),w=A.top;_&&(w-=this.$size.scrollerHeight/2);var L=this.scrollTop;this.session.setScrollTop(w),v!==!1&&this.animateScrolling(L,M)},x.prototype.animateScrolling=function(k,_){var v=this.scrollTop;if(!this.$animatedScroll)return;var M=this;if(k==v)return;if(this.$scrollAnimation){var A=this.$scrollAnimation.steps;if(A.length&&(k=A[0],k==v))return}var w=M.$calcSteps(k,v);this.$scrollAnimation={from:k,to:v,steps:w},clearInterval(this.$timer),M.session.setScrollTop(w.shift()),M.session.$scrollTop=v;function L(){M.$timer=clearInterval(M.$timer),M.$scrollAnimation=null,M.$stopAnimation=!1,_&&_()}this.$timer=setInterval(function(){if(M.$stopAnimation){L();return}if(!M.session)return clearInterval(M.$timer);w.length?(M.session.setScrollTop(w.shift()),M.session.$scrollTop=v):v!=null?(M.session.$scrollTop=-1,M.session.setScrollTop(v),v=null):L()},10)},x.prototype.scrollToY=function(k){this.scrollTop!==k&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=k)},x.prototype.scrollToX=function(k){this.scrollLeft!==k&&(this.scrollLeft=k),this.$loop.schedule(this.CHANGE_H_SCROLL)},x.prototype.scrollTo=function(k,_){this.session.setScrollTop(_),this.session.setScrollLeft(k)},x.prototype.scrollBy=function(k,_){_&&this.session.setScrollTop(this.session.getScrollTop()+_),k&&this.session.setScrollLeft(this.session.getScrollLeft()+k)},x.prototype.isScrollableBy=function(k,_){if(_<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||_>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||k<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||k>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},x.prototype.pixelToScreenCoordinates=function(k,_){var v;if(this.$hasCssTransforms){v={top:0,left:0};var M=this.$fontMetrics.transformCoordinates([k,_]);k=M[1]-this.gutterWidth-this.margin.left,_=M[0]}else v=this.scroller.getBoundingClientRect();var A=k+this.scrollLeft-v.left-this.$padding,w=A/this.characterWidth,L=Math.floor((_+this.scrollTop-v.top)/this.lineHeight),T=this.$blockCursor?Math.floor(w):Math.round(w);return{row:L,column:T,side:w-T>0?1:-1,offsetX:A}},x.prototype.screenToTextCoordinates=function(k,_){var v;if(this.$hasCssTransforms){v={top:0,left:0};var M=this.$fontMetrics.transformCoordinates([k,_]);k=M[1]-this.gutterWidth-this.margin.left,_=M[0]}else v=this.scroller.getBoundingClientRect();var A=k+this.scrollLeft-v.left-this.$padding,w=A/this.characterWidth,L=this.$blockCursor?Math.floor(w):Math.round(w),T=Math.floor((_+this.scrollTop-v.top)/this.lineHeight);return this.session.screenToDocumentPosition(T,Math.max(L,0),A)},x.prototype.textToScreenCoordinates=function(k,_){var v=this.scroller.getBoundingClientRect(),M=this.session.documentToScreenPosition(k,_),A=this.$padding+(this.session.$bidiHandler.isBidiRow(M.row,k)?this.session.$bidiHandler.getPosLeft(M.column):Math.round(M.column*this.characterWidth)),w=M.row*this.lineHeight;return{pageX:v.left+A-this.scrollLeft,pageY:v.top+w-this.scrollTop}},x.prototype.visualizeFocus=function(){p.addCssClass(this.container,"ace_focus")},x.prototype.visualizeBlur=function(){p.removeCssClass(this.container,"ace_focus")},x.prototype.showComposition=function(k){this.$composition=k,k.cssText||(k.cssText=this.textarea.style.cssText),k.useTextareaForIME==null&&(k.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(p.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):k.markerId=this.session.addMarker(k.markerRange,"ace_composition_marker","text")},x.prototype.setCompositionText=function(k){var _=this.session.selection.cursor;this.addToken(k,"composition_placeholder",_.row,_.column),this.$moveTextAreaToCursor()},x.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),p.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var k=this.session.selection.cursor;this.removeExtraToken(k.row,k.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},x.prototype.setGhostText=function(k,_){var v=this.session.selection.cursor,M=_||{row:v.row,column:v.column};this.removeGhostText();var A=k.split(`
1694
+ }`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(n,i,p){var u=n("../lib/dom"),f=n("../lib/oop"),g=n("../lib/event_emitter").EventEmitter,s=function(){function h(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 h.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 l=(o.lastRow+1)*this.lineHeight;l<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight}var c=this.canvas.getContext("2d");function a(v,M){return v.priority<M.priority?-1:v.priority>M.priority?1:0}var d=this.renderer.session.$annotations;if(c.clearRect(0,0,this.canvas.width,this.canvas.height),d){var m={info:1,warning:2,error:3};d.forEach(function(v){v.priority=m[v.type]||null}),d=d.sort(a);for(var y=this.renderer.session.$foldData,b=0;b<d.length;b++){var E=d[b].row,S=this.compensateFoldRows(E,y),C=Math.round((E-S)*this.lineHeight*this.heightRatio),$=Math.round((E-S)*this.lineHeight*this.heightRatio),R=Math.round(((E-S)*this.lineHeight+this.lineHeight)*this.heightRatio),x=R-$;if(x<this.minDecorationHeight){var k=($+R)/2|0;k<this.halfMinDecorationHeight?k=this.halfMinDecorationHeight:k+this.halfMinDecorationHeight>this.canvasHeight&&(k=this.canvasHeight-this.halfMinDecorationHeight),$=Math.round(k-this.halfMinDecorationHeight),R=Math.round(k+this.halfMinDecorationHeight)}c.fillStyle=r[d[b].type]||null,c.fillRect(0,C,this.canvasWidth,R-$)}}var _=this.renderer.session.selection.getCursor();if(_){var S=this.compensateFoldRows(_.row,y),C=Math.round((_.row-S)*this.lineHeight*this.heightRatio);c.fillStyle="rgba(0, 0, 0, 0.5)",c.fillRect(0,C,this.canvasWidth,2)}},h.prototype.compensateFoldRows=function(o,r){var l=0;if(r&&r.length>0)for(var c=0;c<r.length;c++)o>r[c].start.row&&o<r[c].end.row?l+=o-r[c].start.row:o>=r[c].end.row&&(l+=r[c].end.row-r[c].start.row);return l},h}();f.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,p){var u=n("./lib/oop"),f=n("./lib/dom"),g=n("./lib/lang"),s=n("./config"),h=n("./layer/gutter").Gutter,o=n("./layer/marker").Marker,r=n("./layer/text").Text,l=n("./layer/cursor").Cursor,c=n("./scrollbar").HScrollBar,a=n("./scrollbar").VScrollBar,d=n("./scrollbar_custom").HScrollBar,m=n("./scrollbar_custom").VScrollBar,y=n("./renderloop").RenderLoop,b=n("./layer/font_metrics").FontMetrics,E=n("./lib/event_emitter").EventEmitter,S=n("./css/editor-css"),C=n("./layer/decorators").Decorator,$=n("./lib/useragent");f.importCssString(S,"ace_editor.css",!1);var R=function(){function x(k,_){var v=this;this.container=k||f.createElement("div"),f.addCssClass(this.container,"ace_editor"),f.HI_DPI&&f.addCssClass(this.container,"ace_hidpi"),this.setTheme(_),s.get("useStrictCSP")==null&&s.set("useStrictCSP",!1),this.$gutter=f.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=f.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=f.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new h(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new o(this.content);var M=this.$textLayer=new r(this.content);this.canvas=M.element,this.$markerFront=new o(this.content),this.$cursorLayer=new l(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new a(this.container,this),this.scrollBarH=new c(this.container,this),this.scrollBarV.on("scroll",function(A){v.$scrollAnimation||v.session.setScrollTop(A.data-v.scrollMargin.top)}),this.scrollBarH.on("scroll",function(A){v.$scrollAnimation||v.session.setScrollLeft(A.data-v.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new b(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(A){v.updateCharacterSize(),v.onResize(!0,v.gutterWidth,v.$size.width,v.$size.height),v._signal("changeCharacterSize",A)}),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 y(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 x.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(),f.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},x.prototype.setSession=function(k){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=k,k&&this.scrollMargin.top&&k.getScrollTop()<=0&&k.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(k),this.$markerBack.setSession(k),this.$markerFront.setSession(k),this.$gutterLayer.setSession(k),this.$textLayer.setSession(k),k&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},x.prototype.updateLines=function(k,_,v){if(_===void 0&&(_=1/0),this.$changedLines?(this.$changedLines.firstRow>k&&(this.$changedLines.firstRow=k),this.$changedLines.lastRow<_&&(this.$changedLines.lastRow=_)):this.$changedLines={firstRow:k,lastRow:_},this.$changedLines.lastRow<this.layerConfig.firstRow)if(v)this.$changedLines.lastRow=this.layerConfig.lastRow;else return;this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},x.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},x.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},x.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},x.prototype.updateFull=function(k){k?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},x.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},x.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},x.prototype.onResize=function(k,_,v,M){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=k?1:0;var A=this.container;M||(M=A.clientHeight||A.scrollHeight),v||(v=A.clientWidth||A.scrollWidth);var w=this.$updateCachedSize(k,_,v,M);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!v&&!M)return this.resizing=0;k&&(this.$gutterLayer.$padding=null),k?this.$renderChanges(w|this.$changes,!0):this.$loop.schedule(w|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},x.prototype.$updateCachedSize=function(k,_,v,M){M-=this.$extraHeight||0;var A=0,w=this.$size,L={width:w.width,height:w.height,scrollerHeight:w.scrollerHeight,scrollerWidth:w.scrollerWidth};if(M&&(k||w.height!=M)&&(w.height=M,A|=this.CHANGE_SIZE,w.scrollerHeight=w.height,this.$horizScroll&&(w.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(w.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",A=A|this.CHANGE_SCROLL),v&&(k||w.width!=v)){A|=this.CHANGE_SIZE,w.width=v,_==null&&(_=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=_,f.setStyle(this.scrollBarH.element.style,"left",_+"px"),f.setStyle(this.scroller.style,"left",_+this.margin.left+"px"),w.scrollerWidth=Math.max(0,v-_-this.scrollBarV.getWidth()-this.margin.h),f.setStyle(this.$gutter.style,"left",this.margin.left+"px");var T=this.scrollBarV.getWidth()+"px";f.setStyle(this.scrollBarH.element.style,"right",T),f.setStyle(this.scroller.style,"right",T),f.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(w.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||k)&&(A|=this.CHANGE_FULL)}return w.$dirty=!v||!M,A&&this._signal("resize",L),A},x.prototype.onGutterResize=function(k){var _=this.$showGutter?k:0;_!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,_,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()},x.prototype.adjustWrapLimit=function(){var k=this.$size.scrollerWidth-this.$padding*2,_=Math.floor(k/this.characterWidth);return this.session.adjustWrapLimit(_,this.$showPrintMargin&&this.$printMarginColumn)},x.prototype.setAnimatedScroll=function(k){this.setOption("animatedScroll",k)},x.prototype.getAnimatedScroll=function(){return this.$animatedScroll},x.prototype.setShowInvisibles=function(k){this.setOption("showInvisibles",k),this.session.$bidiHandler.setShowInvisibles(k)},x.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},x.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},x.prototype.setDisplayIndentGuides=function(k){this.setOption("displayIndentGuides",k)},x.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},x.prototype.setHighlightIndentGuides=function(k){this.setOption("highlightIndentGuides",k)},x.prototype.setShowPrintMargin=function(k){this.setOption("showPrintMargin",k)},x.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},x.prototype.setPrintMarginColumn=function(k){this.setOption("printMarginColumn",k)},x.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},x.prototype.getShowGutter=function(){return this.getOption("showGutter")},x.prototype.setShowGutter=function(k){return this.setOption("showGutter",k)},x.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},x.prototype.setFadeFoldWidgets=function(k){this.setOption("fadeFoldWidgets",k)},x.prototype.setHighlightGutterLine=function(k){this.setOption("highlightGutterLine",k)},x.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},x.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var k=f.createElement("div");k.className="ace_layer ace_print-margin-layer",this.$printMarginEl=f.createElement("div"),this.$printMarginEl.className="ace_print-margin",k.appendChild(this.$printMarginEl),this.content.insertBefore(k,this.content.firstChild)}var _=this.$printMarginEl.style;_.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",_.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},x.prototype.getContainerElement=function(){return this.container},x.prototype.getMouseEventTarget=function(){return this.scroller},x.prototype.getTextAreaContainer=function(){return this.container},x.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var k=this.textarea.style,_=this.$composition;if(!this.$keepTextAreaAtCursor&&!_){f.translate(this.textarea,-100,0);return}var v=this.$cursorLayer.$pixelPos;if(v){_&&_.markerRange&&(v=this.$cursorLayer.getPixelPosition(_.markerRange.start,!0));var M=this.layerConfig,A=v.top,w=v.left;A-=M.offset;var L=_&&_.useTextareaForIME||$.isMobile?this.lineHeight:1;if(A<0||A>M.height-L){f.translate(this.textarea,0,0);return}var T=1,O=this.$size.height-L;if(!_)A+=this.lineHeight;else if(_.useTextareaForIME){var I=this.textarea.value;T=this.characterWidth*this.session.$getStringScreenWidth(I)[0]}else A+=this.lineHeight+2;w-=this.scrollLeft,w>this.$size.scrollerWidth-T&&(w=this.$size.scrollerWidth-T),w+=this.gutterWidth+this.margin.left,f.setStyle(k,"height",L+"px"),f.setStyle(k,"width",T+"px"),f.translate(this.textarea,Math.min(w,this.$size.scrollerWidth-T),Math.min(A,O))}}},x.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},x.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},x.prototype.getLastFullyVisibleRow=function(){var k=this.layerConfig,_=k.lastRow,v=this.session.documentToScreenRow(_,0)*k.lineHeight;return v-this.session.getScrollTop()>k.height-k.lineHeight?_-1:_},x.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},x.prototype.setPadding=function(k){this.$padding=k,this.$textLayer.setPadding(k),this.$cursorLayer.setPadding(k),this.$markerFront.setPadding(k),this.$markerBack.setPadding(k),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},x.prototype.setScrollMargin=function(k,_,v,M){var A=this.scrollMargin;A.top=k|0,A.bottom=_|0,A.right=M|0,A.left=v|0,A.v=A.top+A.bottom,A.h=A.left+A.right,A.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-A.top),this.updateFull()},x.prototype.setMargin=function(k,_,v,M){var A=this.margin;A.top=k|0,A.bottom=_|0,A.right=M|0,A.left=v|0,A.v=A.top+A.bottom,A.h=A.left+A.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},x.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},x.prototype.setHScrollBarAlwaysVisible=function(k){this.setOption("hScrollBarAlwaysVisible",k)},x.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},x.prototype.setVScrollBarAlwaysVisible=function(k){this.setOption("vScrollBarAlwaysVisible",k)},x.prototype.$updateScrollBarV=function(){var k=this.layerConfig.maxHeight,_=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(k-=(_-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>k-_&&(k=this.scrollTop+_,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(k+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},x.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},x.prototype.freeze=function(){this.$frozen=!0},x.prototype.unfreeze=function(){this.$frozen=!1},x.prototype.$renderChanges=function(k,_){if(this.$changes&&(k|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!k&&!_){this.$changes|=k;return}if(this.$size.$dirty)return this.$changes|=k,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",k),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var v=this.layerConfig;if(k&this.CHANGE_FULL||k&this.CHANGE_SIZE||k&this.CHANGE_TEXT||k&this.CHANGE_LINES||k&this.CHANGE_SCROLL||k&this.CHANGE_H_SCROLL){if(k|=this.$computeLayerConfig()|this.$loop.clear(),v.firstRow!=this.layerConfig.firstRow&&v.firstRowScreen==this.layerConfig.firstRowScreen){var M=this.scrollTop+(v.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;M>0&&(this.scrollTop=M,k=k|this.CHANGE_SCROLL,k|=this.$computeLayerConfig()|this.$loop.clear())}v=this.layerConfig,this.$updateScrollBarV(),k&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),f.translate(this.content,-this.scrollLeft,-v.offset);var A=v.width+2*this.$padding+"px",w=v.minHeight+"px";f.setStyle(this.content.style,"width",A),f.setStyle(this.content.style,"height",w)}if(k&this.CHANGE_H_SCROLL&&(f.translate(this.content,-this.scrollLeft,-v.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),k&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(v),this.$showGutter&&this.$gutterLayer.update(v),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(v),this.$markerBack.update(v),this.$markerFront.update(v),this.$cursorLayer.update(v),this.$moveTextAreaToCursor(),this._signal("afterRender",k);return}if(k&this.CHANGE_SCROLL){this.$changedLines=null,k&this.CHANGE_TEXT||k&this.CHANGE_LINES?this.$textLayer.update(v):this.$textLayer.scrollLines(v),this.$showGutter&&(k&this.CHANGE_GUTTER||k&this.CHANGE_LINES?this.$gutterLayer.update(v):this.$gutterLayer.scrollLines(v)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(v),this.$markerBack.update(v),this.$markerFront.update(v),this.$cursorLayer.update(v),this.$moveTextAreaToCursor(),this._signal("afterRender",k);return}k&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(v),this.$showGutter&&this.$gutterLayer.update(v),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(v)):k&this.CHANGE_LINES?((this.$updateLines()||k&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(v),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(v)):k&this.CHANGE_TEXT||k&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(v),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(v)):k&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(v),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(v)),k&this.CHANGE_CURSOR&&(this.$cursorLayer.update(v),this.$moveTextAreaToCursor()),k&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(v),k&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(v),this._signal("afterRender",k)},x.prototype.$autosize=function(){var k=this.session.getScreenLength()*this.lineHeight,_=this.$maxLines*this.lineHeight,v=Math.min(_,Math.max((this.$minLines||1)*this.lineHeight,k))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(v+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&v>this.$maxPixelHeight&&(v=this.$maxPixelHeight);var M=v<=2*this.lineHeight,A=!M&&k>_;if(v!=this.desiredHeight||this.$size.height!=this.desiredHeight||A!=this.$vScroll){A!=this.$vScroll&&(this.$vScroll=A,this.scrollBarV.setVisible(A));var w=this.container.clientWidth;this.container.style.height=v+"px",this.$updateCachedSize(!0,this.$gutterWidth,w,v),this.desiredHeight=v,this._signal("autosize")}},x.prototype.$computeLayerConfig=function(){var k=this.session,_=this.$size,v=_.height<=2*this.lineHeight,M=this.session.getScreenLength(),A=M*this.lineHeight,w=this.$getLongestLine(),L=!v&&(this.$hScrollBarAlwaysVisible||_.scrollerWidth-w-2*this.$padding<0),T=this.$horizScroll!==L;T&&(this.$horizScroll=L,this.scrollBarH.setVisible(L));var O=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var I=_.scrollerHeight+this.lineHeight,F=!this.$maxLines&&this.$scrollPastEnd?(_.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;A+=F;var D=this.scrollMargin;this.session.setScrollTop(Math.max(-D.top,Math.min(this.scrollTop,A-_.scrollerHeight+D.bottom))),this.session.setScrollLeft(Math.max(-D.left,Math.min(this.scrollLeft,w+2*this.$padding-_.scrollerWidth+D.right)));var W=!v&&(this.$vScrollBarAlwaysVisible||_.scrollerHeight-A+F<0||this.scrollTop>D.top),G=O!==W;G&&(this.$vScroll=W,this.scrollBarV.setVisible(W));var U=this.scrollTop%this.lineHeight,H=Math.ceil(I/this.lineHeight)-1,X=Math.max(0,Math.round((this.scrollTop-U)/this.lineHeight)),J=X+H,z,Y,K=this.lineHeight;X=k.screenToDocumentRow(X,0);var V=k.getFoldLine(X);V&&(X=V.start.row),z=k.documentToScreenRow(X,0),Y=k.getRowLength(X)*K,J=Math.min(k.screenToDocumentRow(J,0),k.getLength()-1),I=_.scrollerHeight+k.getRowLength(J)*K+Y,U=this.scrollTop-z*K;var ee=0;return(this.layerConfig.width!=w||T)&&(ee=this.CHANGE_H_SCROLL),(T||G)&&(ee|=this.$updateCachedSize(!0,this.gutterWidth,_.width,_.height),this._signal("scrollbarVisibilityChanged"),G&&(w=this.$getLongestLine())),this.layerConfig={width:w,padding:this.$padding,firstRow:X,firstRowScreen:z,lastRow:J,lineHeight:K,characterWidth:this.characterWidth,minHeight:I,maxHeight:A,offset:U,gutterOffset:K?Math.max(0,Math.ceil((U+_.height-_.scrollerHeight)/K)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(w-this.$padding),ee},x.prototype.$updateLines=function(){if(this.$changedLines){var k=this.$changedLines.firstRow,_=this.$changedLines.lastRow;this.$changedLines=null;var v=this.layerConfig;if(!(k>v.lastRow+1)&&!(_<v.firstRow)){if(_===1/0){this.$showGutter&&this.$gutterLayer.update(v),this.$textLayer.update(v);return}return this.$textLayer.updateLines(v,k,_),!0}}},x.prototype.$getLongestLine=function(){var k=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(k+=1),this.$textLayer&&k>this.$textLayer.MAX_LINE_LENGTH&&(k=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(k*this.characterWidth))},x.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},x.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},x.prototype.addGutterDecoration=function(k,_){this.$gutterLayer.addGutterDecoration(k,_)},x.prototype.removeGutterDecoration=function(k,_){this.$gutterLayer.removeGutterDecoration(k,_)},x.prototype.updateBreakpoints=function(k){this.$loop.schedule(this.CHANGE_GUTTER)},x.prototype.setAnnotations=function(k){this.$gutterLayer.setAnnotations(k),this.$loop.schedule(this.CHANGE_GUTTER)},x.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},x.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},x.prototype.showCursor=function(){this.$cursorLayer.showCursor()},x.prototype.scrollSelectionIntoView=function(k,_,v){this.scrollCursorIntoView(k,v),this.scrollCursorIntoView(_,v)},x.prototype.scrollCursorIntoView=function(k,_,v){if(this.$size.scrollerHeight!==0){var M=this.$cursorLayer.getPixelPosition(k),A=M.left,w=M.top,L=v&&v.top||0,T=v&&v.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var O=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;O+L>w?(_&&O+L>w+this.lineHeight&&(w-=_*this.$size.scrollerHeight),w===0&&(w=-this.scrollMargin.top),this.session.setScrollTop(w)):O+this.$size.scrollerHeight-T<w+this.lineHeight&&(_&&O+this.$size.scrollerHeight-T<w-this.lineHeight&&(w+=_*this.$size.scrollerHeight),this.session.setScrollTop(w+this.lineHeight+T-this.$size.scrollerHeight));var I=this.scrollLeft,F=2*this.layerConfig.characterWidth;A-F<I?(A-=F,A<this.$padding+F&&(A=-this.scrollMargin.left),this.session.setScrollLeft(A)):(A+=F,I+this.$size.scrollerWidth<A+this.characterWidth?this.session.setScrollLeft(Math.round(A+this.characterWidth-this.$size.scrollerWidth)):I<=this.$padding&&A-I<this.characterWidth&&this.session.setScrollLeft(0))}},x.prototype.getScrollTop=function(){return this.session.getScrollTop()},x.prototype.getScrollLeft=function(){return this.session.getScrollLeft()},x.prototype.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},x.prototype.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},x.prototype.scrollToRow=function(k){this.session.setScrollTop(k*this.lineHeight)},x.prototype.alignCursor=function(k,_){typeof k=="number"&&(k={row:k,column:0});var v=this.$cursorLayer.getPixelPosition(k),M=this.$size.scrollerHeight-this.lineHeight,A=v.top-M*(_||0);return this.session.setScrollTop(A),A},x.prototype.$calcSteps=function(k,_){var v=0,M=this.STEPS,A=[],w=function(L,T,O){return O*(Math.pow(L-1,3)+1)+T};for(v=0;v<M;++v)A.push(w(v/this.STEPS,k,_-k));return A},x.prototype.scrollToLine=function(k,_,v,M){var A=this.$cursorLayer.getPixelPosition({row:k,column:0}),w=A.top;_&&(w-=this.$size.scrollerHeight/2);var L=this.scrollTop;this.session.setScrollTop(w),v!==!1&&this.animateScrolling(L,M)},x.prototype.animateScrolling=function(k,_){var v=this.scrollTop;if(!this.$animatedScroll)return;var M=this;if(k==v)return;if(this.$scrollAnimation){var A=this.$scrollAnimation.steps;if(A.length&&(k=A[0],k==v))return}var w=M.$calcSteps(k,v);this.$scrollAnimation={from:k,to:v,steps:w},clearInterval(this.$timer),M.session.setScrollTop(w.shift()),M.session.$scrollTop=v;function L(){M.$timer=clearInterval(M.$timer),M.$scrollAnimation=null,M.$stopAnimation=!1,_&&_()}this.$timer=setInterval(function(){if(M.$stopAnimation){L();return}if(!M.session)return clearInterval(M.$timer);w.length?(M.session.setScrollTop(w.shift()),M.session.$scrollTop=v):v!=null?(M.session.$scrollTop=-1,M.session.setScrollTop(v),v=null):L()},10)},x.prototype.scrollToY=function(k){this.scrollTop!==k&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=k)},x.prototype.scrollToX=function(k){this.scrollLeft!==k&&(this.scrollLeft=k),this.$loop.schedule(this.CHANGE_H_SCROLL)},x.prototype.scrollTo=function(k,_){this.session.setScrollTop(_),this.session.setScrollLeft(k)},x.prototype.scrollBy=function(k,_){_&&this.session.setScrollTop(this.session.getScrollTop()+_),k&&this.session.setScrollLeft(this.session.getScrollLeft()+k)},x.prototype.isScrollableBy=function(k,_){if(_<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||_>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||k<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||k>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},x.prototype.pixelToScreenCoordinates=function(k,_){var v;if(this.$hasCssTransforms){v={top:0,left:0};var M=this.$fontMetrics.transformCoordinates([k,_]);k=M[1]-this.gutterWidth-this.margin.left,_=M[0]}else v=this.scroller.getBoundingClientRect();var A=k+this.scrollLeft-v.left-this.$padding,w=A/this.characterWidth,L=Math.floor((_+this.scrollTop-v.top)/this.lineHeight),T=this.$blockCursor?Math.floor(w):Math.round(w);return{row:L,column:T,side:w-T>0?1:-1,offsetX:A}},x.prototype.screenToTextCoordinates=function(k,_){var v;if(this.$hasCssTransforms){v={top:0,left:0};var M=this.$fontMetrics.transformCoordinates([k,_]);k=M[1]-this.gutterWidth-this.margin.left,_=M[0]}else v=this.scroller.getBoundingClientRect();var A=k+this.scrollLeft-v.left-this.$padding,w=A/this.characterWidth,L=this.$blockCursor?Math.floor(w):Math.round(w),T=Math.floor((_+this.scrollTop-v.top)/this.lineHeight);return this.session.screenToDocumentPosition(T,Math.max(L,0),A)},x.prototype.textToScreenCoordinates=function(k,_){var v=this.scroller.getBoundingClientRect(),M=this.session.documentToScreenPosition(k,_),A=this.$padding+(this.session.$bidiHandler.isBidiRow(M.row,k)?this.session.$bidiHandler.getPosLeft(M.column):Math.round(M.column*this.characterWidth)),w=M.row*this.lineHeight;return{pageX:v.left+A-this.scrollLeft,pageY:v.top+w-this.scrollTop}},x.prototype.visualizeFocus=function(){f.addCssClass(this.container,"ace_focus")},x.prototype.visualizeBlur=function(){f.removeCssClass(this.container,"ace_focus")},x.prototype.showComposition=function(k){this.$composition=k,k.cssText||(k.cssText=this.textarea.style.cssText),k.useTextareaForIME==null&&(k.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(f.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):k.markerId=this.session.addMarker(k.markerRange,"ace_composition_marker","text")},x.prototype.setCompositionText=function(k){var _=this.session.selection.cursor;this.addToken(k,"composition_placeholder",_.row,_.column),this.$moveTextAreaToCursor()},x.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),f.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var k=this.session.selection.cursor;this.removeExtraToken(k.row,k.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},x.prototype.setGhostText=function(k,_){var v=this.session.selection.cursor,M=_||{row:v.row,column:v.column};this.removeGhostText();var A=k.split(`
1693
1695
  `);this.addToken(A[0],"ghost_text",M.row,M.column),this.$ghostText={text:k,position:{row:M.row,column:M.column}},A.length>1&&(this.$ghostTextWidget={text:A.slice(1).join(`
1694
- `),row:M.row,column:M.column,className:"ace_ghost_text"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget))},x.prototype.removeGhostText=function(){if(this.$ghostText){var k=this.$ghostText.position;this.removeExtraToken(k.row,k.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},x.prototype.addToken=function(k,_,v,M){var A=this.session;A.bgTokenizer.lines[v]=null;var w={type:_,value:k},L=A.getTokens(v);if(M==null||!L.length)L.push(w);else for(var T=0,O=0;O<L.length;O++){var I=L[O];if(T+=I.value.length,M<=T){var F=I.value.length-(T-M),D=I.value.slice(0,F),W=I.value.slice(F);L.splice(O,1,{type:I.type,value:D},w,{type:I.type,value:W});break}}this.updateLines(v,v)},x.prototype.removeExtraToken=function(k,_){this.session.bgTokenizer.lines[k]=null,this.updateLines(k,k)},x.prototype.setTheme=function(k,_){var v=this;if(this.$themeId=k,v._dispatchEvent("themeChange",{theme:k}),!k||typeof k=="string"){var M=k||this.$options.theme.initialValue;s.loadModule(["theme",M],A)}else A(k);function A(w){if(v.$themeId!=k)return _&&_();if(!w||!w.cssClass)throw new Error("couldn't load module "+k+" or it didn't call define");w.$id&&(v.$themeId=w.$id),p.importCssString(w.cssText,w.cssClass,v.container),v.theme&&p.removeCssClass(v.container,v.theme.cssClass);var L="padding"in w?w.padding:"padding"in(v.theme||{})?4:v.$padding;v.$padding&&L!=v.$padding&&v.setPadding(L),v.$theme=w.cssClass,v.theme=w,p.addCssClass(v.container,w.cssClass),p.setCssClass(v.container,"ace_dark",w.isDark),v.$size&&(v.$size.width=0,v.$updateSizeAsync()),v._dispatchEvent("themeLoaded",{theme:w}),_&&_()}},x.prototype.getTheme=function(){return this.$themeId},x.prototype.setStyle=function(k,_){p.setCssClass(this.container,k,_!==!1)},x.prototype.unsetStyle=function(k){p.removeCssClass(this.container,k)},x.prototype.setCursorStyle=function(k){p.setStyle(this.scroller.style,"cursor",k)},x.prototype.setMouseCursor=function(k){p.setStyle(this.scroller.style,"cursor",k)},x.prototype.attachToShadowRoot=function(){p.importCssString(S,"ace_editor.css",this.container)},x.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent="",this.setOption("useResizeObserver",!1)},x.prototype.$updateCustomScrollbar=function(k){var _=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,k===!0?(this.scrollBarV=new m(this.container,this),this.scrollBarH=new f(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function(v){_.$scrollAnimation||_.session.setScrollTop(v.data-_.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(v){_.$scrollAnimation||_.session.setScrollLeft(v.data-_.scrollMargin.left)}),this.$scrollDecorator=new C(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new a(this.container,this),this.scrollBarH=new c(this.container,this),this.scrollBarV.addEventListener("scroll",function(v){_.$scrollAnimation||_.session.setScrollTop(v.data-_.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(v){_.$scrollAnimation||_.session.setScrollLeft(v.data-_.scrollMargin.left)}))},x.prototype.$addResizeObserver=function(){if(!(!window.ResizeObserver||this.$resizeObserver)){var k=this;this.$resizeTimer=g.delayedCall(function(){k.destroyed||k.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(_){var v=_[0].contentRect.width,M=_[0].contentRect.height;Math.abs(k.$size.width-v)>1||Math.abs(k.$size.height-M)>1?k.$resizeTimer.delay():k.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},x}();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,E),s.defineOptions(R.prototype,"renderer",{useResizeObserver:{set:function(x){!x&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):x&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(x){this.$textLayer.setShowInvisibles(x)&&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(x){typeof x=="number"&&(this.$printMarginColumn=x),this.$showPrintMargin=!!x,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(x){this.$gutter.style.display=x?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(x){this.$gutterLayer.$useSvgGutterIcons=x},initialValue:!1},showFoldedAnnotations:{set:function(x){this.$gutterLayer.$showFoldedAnnotations=x},initialValue:!1},fadeFoldWidgets:{set:function(x){p.setCssClass(this.$gutter,"ace_fade-fold-widgets",x)},initialValue:!1},showFoldWidgets:{set:function(x){this.$gutterLayer.setShowFoldWidgets(x),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(x){this.$textLayer.setDisplayIndentGuides(x)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(x){this.$textLayer.setHighlightIndentGuides(x)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(x){this.$gutterLayer.setHighlightGutterLine(x),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(x){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(x){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(x){typeof x=="number"&&(x=x+"px"),this.container.style.fontSize=x,this.updateFontSize()},initialValue:12},fontFamily:{set:function(x){this.container.style.fontFamily=x,this.updateFontSize()}},maxLines:{set:function(x){this.updateFull()}},minLines:{set:function(x){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(x){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(x){x=+x||0,this.$scrollPastEnd!=x&&(this.$scrollPastEnd=x,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(x){this.$gutterLayer.$fixedWidth=!!x,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(x){this.$updateCustomScrollbar(x)},initialValue:!1},theme:{set:function(x){this.setTheme(x)},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"),p=n("../lib/net"),g=n("../lib/event_emitter").EventEmitter,s=n("../config");function h(c){var a="importScripts('"+p.qualifyURL(c)+"');";try{return new Blob([a],{type:"application/javascript"})}catch{var f=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,m=new f;return m.append(a),m.getBlob("application/javascript")}}function o(c){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(s.get("loadWorkerFromBlob")){var a=h(c),f=window.URL||window.webkitURL,m=f.createObjectURL(a);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,a,f,m,y){if(n.nameToUrl&&!n.toUrl&&(n.toUrl=n.nameToUrl),s.get("packaged")||!n.toUrl)m=m||s.moduleUrl(a,"worker");else{var b=this.$normalizePath;m=m||b(n.toUrl("ace/worker/worker.js",null,"_"));var E={};c.forEach(function(S){E[S]=b(n.toUrl(S,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=o(m),y&&this.send("importScripts",y),this.$worker.postMessage({init:!0,tlns:E,module:a,classname:f}),this.$worker},this.onMessage=function(c){var a=c.data;switch(a.type){case"event":this._signal(a.name,{data:a.data});break;case"call":var f=this.callbacks[a.id];f&&(f(a.data),delete this.callbacks[a.id]);break;case"error":this.reportError(a.data);break;case"log":window.console&&console.log&&console.log.apply(console,a.data);break}},this.reportError=function(c){window.console&&console.error&&console.error(c)},this.$normalizePath=function(c){return p.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,a){this.$worker.postMessage({command:c,args:a})},this.call=function(c,a,f){if(f){var m=this.callbackId++;this.callbacks[m]=f,a.push(m)}this.send(c,a)},this.emit=function(c,a){try{a.data&&a.data.err&&(a.data.err={message:a.data.err.message,stack:a.data.err.stack,code:a.data.err.code}),this.$worker&&this.$worker.postMessage({event:c,data:{data:a.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 l=function(c,a,f){var m=null,y=!1,b=Object.create(g),E=[],S=new r({messageBuffer:E,terminate:function(){},postMessage:function($){E.push($),m&&(y?setTimeout(C):C())}});S.setEmitSync=function($){y=$};var C=function(){var $=E.shift();$.command?m[$.command].apply(m,$.args):$.event&&b._signal($.event,$.data)};return b.postMessage=function($){S.onMessage({data:$})},b.callback=function($,R){this.postMessage({type:"call",id:R,data:$})},b.emit=function($,R){this.postMessage({type:"event",name:$,data:R})},s.loadModule(["worker",a],function($){for(m=new $[f](b);E.length;)C()}),S};i.UIWorkerClient=l,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,p=n("./lib/event_emitter").EventEmitter,g=n("./lib/oop"),s=function(){function h(o,r,l,c,a,f){var m=this;this.length=r,this.session=o,this.doc=o.getDocument(),this.mainClass=a,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=l;var y=o.getUndoManager().$undoStack||o.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=y.length,this.setup(),o.selection.on("changeCursor",this.$onCursorChange)}return h.prototype.setup=function(){var o=this,r=this.doc,l=this.session;this.selectionBefore=l.selection.toJSON(),l.selection.inMultiSelectMode&&l.selection.toSingleRange(),this.pos=r.createAnchor(this.$pos.row,this.$pos.column);var c=this.pos;c.$insertRight=!0,c.detach(),c.markerId=l.addMarker(new u(c.row,c.column,c.row,c.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(a){var f=r.createAnchor(a.row,a.column);f.$insertRight=!0,f.detach(),o.others.push(f)}),l.setUndoSelect(!1)},h.prototype.showOtherMarkers=function(){if(!this.othersActive){var o=this.session,r=this;this.othersActive=!0,this.others.forEach(function(l){l.markerId=o.addMarker(new u(l.row,l.column,l.row,l.column+r.length),r.othersClass,null,!1)})}},h.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)}},h.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 l=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,a=r.start.column-this.pos.column;if(this.updateAnchors(o),c&&(this.length+=l),c&&!this.session.$fromUndo){if(o.action==="insert")for(var f=this.others.length-1;f>=0;f--){var m=this.others[f],y={row:m.row,column:m.column+a};this.doc.insertMergedLines(y,o.lines)}else if(o.action==="remove")for(var f=this.others.length-1;f>=0;f--){var m=this.others[f],y={row:m.row,column:m.column+a};this.doc.remove(new u(y.row,y.column,y.row,y.column-l))}}this.$updating=!1,this.updateMarkers()}},h.prototype.updateAnchors=function(o){this.pos.onChange(o);for(var r=this.others.length;r--;)this.others[r].onChange(o);this.updateMarkers()},h.prototype.updateMarkers=function(){if(!this.$updating){var o=this,r=this.session,l=function(a,f){r.removeMarker(a.markerId),a.markerId=r.addMarker(new u(a.row,a.column,a.row,a.column+o.length),f,null,!1)};l(this.pos,this.mainClass);for(var c=this.others.length;c--;)l(this.others[c],this.othersClass)}},h.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))}},h.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},h.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var o=this.session.getUndoManager(),r=(o.$undoStack||o.$undostack).length-this.$undoStackDepth,l=0;l<r;l++)o.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},h}();g.implement(s.prototype,p),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"),p=n("../lib/useragent");function g(h,o){return h.row==o.row&&h.column==o.column}function s(h){var o=h.domEvent,r=o.altKey,l=o.shiftKey,c=o.ctrlKey,a=h.getAccelKey(),f=h.getButton();if(c&&p.isMac&&(f=o.button),h.editor.inMultiSelectMode&&f==2){h.editor.textInput.onContextMenu(h.domEvent);return}if(!c&&!r&&!a){f===0&&h.editor.inMultiSelectMode&&h.editor.exitMultiSelectMode();return}if(f===0){var m=h.editor,y=m.selection,b=m.inMultiSelectMode,E=h.getDocumentPosition(),S=y.getCursor(),C=h.inSelection()||y.isEmpty()&&g(E,S),$=h.x,R=h.y,x=function(W){$=W.clientX,R=W.clientY},k=m.session,_=m.renderer.pixelToScreenCoordinates($,R),v=_,M;if(m.$mouseHandler.$enableJumpToDef)c&&r||a&&r?M=l?"block":"add":r&&m.$blockSelectEnabled&&(M="block");else if(a&&!r){if(M="add",!b&&l)return}else r&&m.$blockSelectEnabled&&(M="block");if(M&&p.isMac&&o.ctrlKey&&m.$mouseHandler.cancelContextMenu(),M=="add"){if(!b&&C)return;if(!b){var A=y.toOrientedRange();m.addSelectionMarker(A)}var w=y.rangeList.rangeAtPoint(E);m.inVirtualSelectionMode=!0,l&&(w=null,A=y.ranges[0]||A,m.removeSelectionMarker(A)),m.once("mouseup",function(){var W=y.toOrientedRange();w&&W.isEmpty()&&g(w.cursor,W.cursor)?y.substractPoint(W.cursor):(l?y.substractPoint(A.cursor):A&&(m.removeSelectionMarker(A),y.addRange(A)),y.addRange(W)),m.inVirtualSelectionMode=!1})}else if(M=="block"){h.stop(),m.inVirtualSelectionMode=!0;var L,T=[],O=function(){var W=m.renderer.pixelToScreenCoordinates($,R),G=k.screenToDocumentPosition(W.row,W.column,W.offsetX);g(v,W)&&g(G,y.lead)||(v=W,m.selection.moveToPosition(G),m.renderer.scrollCursorIntoView(),m.removeSelectionMarkers(T),T=y.rectangularRangeBlock(v,_),m.$mouseHandler.$clickSelection&&T.length==1&&T[0].isEmpty()&&(T[0]=m.$mouseHandler.$clickSelection.clone()),T.forEach(m.addSelectionMarker,m),m.updateSelectionMarkers())};b&&!a?y.toSingleRange():!b&&a&&(L=y.toOrientedRange(),m.addSelectionMarker(L)),l?_=k.documentToScreenPosition(y.lead):y.moveToPosition(E),v={row:-1,column:-1};var I=function(W){O(),clearInterval(D),m.removeSelectionMarkers(T),T.length||(T=[y.toOrientedRange()]),L&&(m.removeSelectionMarker(L),y.toSingleRange(L));for(var G=0;G<T.length;G++)y.addRange(T[G]);m.inVirtualSelectionMode=!1,m.$mouseHandler.$clickSelection=null},F=O;u.capture(m.container,x,I);var D=setInterval(function(){F()},20);return h.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(p){p.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(p){p.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(p){p.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(p){p.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(p){p.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(p){p.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(p){p.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(p){p.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(p){p.multiSelect.rangeCount>1?p.multiSelect.joinSelections():p.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(p){p.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(p){p.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(p){p.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(p){p.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(p){return p&&p.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,p=n("./range").Range,g=n("./selection").Selection,s=n("./mouse/multi_select_handler").onMouseDown,h=n("./lib/event"),o=n("./lib/lang"),r=n("./commands/multi_select_commands");i.commands=r.defaultCommands.concat(r.multiSelectCommands);var l=n("./search").Search,c=new l;function a(S,C,$){return c.$options.wrap=!0,c.$options.needle=C,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,C){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(),C||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)),C||this.fromOrientedRange(S)}},this.toSingleRange=function(S){S=S||this.ranges[0];var C=this.rangeList.removeAll();C.length&&this.$onRemoveRange(C),S&&this.fromOrientedRange(S)},this.substractPoint=function(S){var C=this.rangeList.substractPoint(S);if(C)return this.$onRemoveRange(C),C[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 C=this.rangeList.ranges.pop();S.push(C),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)),C=C||this.ranges[0],C&&!C.isEqual(this.getRange())&&this.fromOrientedRange(C)},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()],C=[],$=0;$<S.length;$++){var R=S[$],x=R.start.row,k=R.end.row;if(x===k)C.push(R.clone());else{for(C.push(new p(x,R.start.column,x,this.session.getLine(x).length));++x<k;)C.push(this.getLineRange(x,!0));C.push(new p(k,0,k,R.end.column))}$==0&&!this.isBackwards()&&(C=C.reverse())}this.toSingleRange();for(var $=C.length;$--;)this.addRange(C[$])},this.joinSelections=function(){var S=this.rangeList.ranges,C=S[S.length-1],$=p.fromPoints(S[0].start,C.end);this.toSingleRange(),this.setSelectionRange($,C.cursor==C.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var S=this.rangeList.ranges,C=S[S.length-1],$=p.fromPoints(S[0].start,C.end);this.toSingleRange(),this.setSelectionRange($,C.cursor==C.start)}else{var R=this.session.documentToScreenPosition(this.cursor),x=this.session.documentToScreenPosition(this.anchor),k=this.rectangularRangeBlock(R,x);k.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(S,C,$){var R=[],x=S.column<C.column;if(x)var k=S.column,_=C.column,v=S.offsetX,M=C.offsetX;else var k=C.column,_=S.column,v=C.offsetX,M=S.offsetX;var A=S.row<C.row;if(A)var w=S.row,L=C.row;else var w=C.row,L=S.row;k<0&&(k=0),w<0&&(w=0),w==L&&($=!0);for(var T,O=w;O<=L;O++){var I=p.fromPoints(this.session.screenToDocumentPosition(O,k,v),this.session.screenToDocumentPosition(O,_,M));if(I.isEmpty()){if(T&&y(I.end,T))break;T=I.end}I.cursor=x?I.start:I.end,R.push(I)}if(A&&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 C=this.getSelectionStyle();return S.marker=this.session.addMarker(S,"ace_selection",C),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 C=this.session.$selectionMarkers.indexOf(S);C!=-1&&this.session.$selectionMarkers.splice(C,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(S){for(var C=this.session.$selectionMarkers,$=S.length;$--;){var R=S[$];if(R.marker){this.session.removeMarker(R.marker);var x=C.indexOf(R);x!=-1&&C.splice(x,1)}}this.session.selectionMarkerCount=C.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 C=S.command,$=S.editor;if($.multiSelect){if(C.multiSelectAction)C.multiSelectAction=="forEach"?R=$.forEachSelection(C,S.args):C.multiSelectAction=="forEachLine"?R=$.forEachSelection(C,S.args,!0):C.multiSelectAction=="single"?($.exitMultiSelectMode(),R=C.exec($,S.args||{})):R=C.multiSelectAction($,S.args||{});else{var R=C.exec($,S.args||{});$.multiSelect.addRange($.multiSelect.toOrientedRange()),$.multiSelect.mergeOverlappingRanges()}return R}},this.forEachSelection=function(S,C,$){if(!this.inVirtualSelectionMode){var R=$&&$.keepOrder,x=$==!0||$&&$.$byLines,k=this.session,_=this.selection,v=_.rangeList,M=(R?_:v).ranges,A;if(!M.length)return S.exec?S.exec(this,C||{}):S(this,C||{});var w=_._eventRegistry;_._eventRegistry={};var L=new g(k);this.inVirtualSelectionMode=!0;for(var T=M.length;T--;){if(x)for(;T>0&&M[T].start.row==M[T-1].end.row;)T--;L.fromOrientedRange(M[T]),L.index=T,this.selection=k.selection=L;var O=S.exec?S.exec(this,C||{}):S(this,C||{});!A&&O!==void 0&&(A=O),L.toOrientedRange(M[T])}L.detach(),this.selection=k.selection=_,this.inVirtualSelectionMode=!1,_._eventRegistry=w,_.mergeOverlappingRanges(),_.ranges[0]&&_.fromOrientedRange(_.ranges[0]);var I=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),I&&I.from==I.to&&this.renderer.animateScrolling(I.from),A}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var S="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var C=this.multiSelect.rangeList.ranges,$=[],R=0;R<C.length;R++)$.push(this.session.getTextRange(C[R]));var x=this.session.getDocument().getNewLineCharacter();S=$.join(x),S.length==($.length-1)*x.length&&(S="")}else this.selection.isEmpty()||(S=this.session.getTextRange(this.getSelectionRange()));return S},this.$checkMultiselectChange=function(S,C){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var $=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&C==this.multiSelect.anchor)return;var R=C==this.multiSelect.anchor?$.cursor==$.start?$.end:$.start:$.cursor;R.row!=C.row||this.session.$clipPositionToDocument(R.row,R.column).column!=C.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(S,C,$){if(C=C||{},C.needle=S||C.needle,C.needle==null){var R=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();C.needle=this.session.getTextRange(R)}this.$search.set(C);var x=this.$search.findAll(this.session);if(!x.length)return 0;var k=this.multiSelect;$||k.toSingleRange(x[0]);for(var _=x.length;_--;)k.addRange(x[_],!0);return R&&k.rangeList.rangeAtPoint(R.start)&&k.addRange(R,!0),x.length},this.selectMoreLines=function(S,C){var $=this.selection.toOrientedRange(),R=$.cursor==$.end,x=this.session.documentToScreenPosition($.cursor);this.selection.$desiredColumn&&(x.column=this.selection.$desiredColumn);var k=this.session.screenToDocumentPosition(x.row+S,x.column);if($.isEmpty())var v=k;else var _=this.session.documentToScreenPosition(R?$.end:$.start),v=this.session.screenToDocumentPosition(_.row+S,_.column);if(R){var M=p.fromPoints(k,v);M.cursor=M.start}else{var M=p.fromPoints(v,k);M.cursor=M.end}if(M.desiredColumn=x.column,!this.selection.inMultiSelectMode)this.selection.addRange($);else if(C)var A=$.cursor;this.selection.addRange(M),A&&this.selection.substractPoint(A)},this.transposeSelections=function(S){for(var C=this.session,$=C.multiSelect,R=$.ranges,x=R.length;x--;){var k=R[x];if(k.isEmpty()){var _=C.getWordRange(k.start.row,k.start.column);k.start.row=_.start.row,k.start.column=_.start.column,k.end.row=_.end.row,k.end.column=_.end.column}}$.mergeOverlappingRanges();for(var v=[],x=R.length;x--;){var k=R[x];v.unshift(C.getTextRange(k))}S<0?v.unshift(v.pop()):v.push(v.shift());for(var x=R.length;x--;){var k=R[x],_=k.clone();C.replace(k,v[x]),k.start.row=_.start.row,k.start.column=_.start.column}$.fromOrientedRange($.ranges[0])},this.selectMore=function(S,C,$){var R=this.session,x=R.multiSelect,k=x.toOrientedRange();if(!(k.isEmpty()&&(k=R.getWordRange(k.start.row,k.start.column),k.cursor=S==-1?k.start:k.end,this.multiSelect.addRange(k),$))){var _=R.getTextRange(k),v=a(R,_,S);v&&(v.cursor=S==-1?v.start:v.end,this.session.unfold(v),this.multiSelect.addRange(v),this.renderer.scrollCursorIntoView(null,.5)),C&&this.multiSelect.substractPoint(k.cursor)}},this.alignCursors=function(){var S=this.session,C=S.multiSelect,$=C.ranges,R=-1,x=$.filter(function(F){if(F.cursor.row==R)return!0;R=F.cursor.row});if(!$.length||x.length==$.length-1){var k=this.selection.getRange(),_=k.start.row,v=k.end.row,M=_==v;if(M){var A=this.session.getLength(),w;do w=this.session.getLine(v);while(/[=:]/.test(w)&&++v<A);do w=this.session.getLine(_);while(/[=:]/.test(w)&&--_>0);_<0&&(_=0),v>=A&&(v=A-1)}var L=this.session.removeFullLines(_,v);L=this.$reAlignText(L,M),this.session.insert({row:_,column:0},L.join(`
1696
+ `),row:M.row,column:M.column,className:"ace_ghost_text"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget))},x.prototype.removeGhostText=function(){if(this.$ghostText){var k=this.$ghostText.position;this.removeExtraToken(k.row,k.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},x.prototype.addToken=function(k,_,v,M){var A=this.session;A.bgTokenizer.lines[v]=null;var w={type:_,value:k},L=A.getTokens(v);if(M==null||!L.length)L.push(w);else for(var T=0,O=0;O<L.length;O++){var I=L[O];if(T+=I.value.length,M<=T){var F=I.value.length-(T-M),D=I.value.slice(0,F),W=I.value.slice(F);L.splice(O,1,{type:I.type,value:D},w,{type:I.type,value:W});break}}this.updateLines(v,v)},x.prototype.removeExtraToken=function(k,_){this.session.bgTokenizer.lines[k]=null,this.updateLines(k,k)},x.prototype.setTheme=function(k,_){var v=this;if(this.$themeId=k,v._dispatchEvent("themeChange",{theme:k}),!k||typeof k=="string"){var M=k||this.$options.theme.initialValue;s.loadModule(["theme",M],A)}else A(k);function A(w){if(v.$themeId!=k)return _&&_();if(!w||!w.cssClass)throw new Error("couldn't load module "+k+" or it didn't call define");w.$id&&(v.$themeId=w.$id),f.importCssString(w.cssText,w.cssClass,v.container),v.theme&&f.removeCssClass(v.container,v.theme.cssClass);var L="padding"in w?w.padding:"padding"in(v.theme||{})?4:v.$padding;v.$padding&&L!=v.$padding&&v.setPadding(L),v.$theme=w.cssClass,v.theme=w,f.addCssClass(v.container,w.cssClass),f.setCssClass(v.container,"ace_dark",w.isDark),v.$size&&(v.$size.width=0,v.$updateSizeAsync()),v._dispatchEvent("themeLoaded",{theme:w}),_&&_()}},x.prototype.getTheme=function(){return this.$themeId},x.prototype.setStyle=function(k,_){f.setCssClass(this.container,k,_!==!1)},x.prototype.unsetStyle=function(k){f.removeCssClass(this.container,k)},x.prototype.setCursorStyle=function(k){f.setStyle(this.scroller.style,"cursor",k)},x.prototype.setMouseCursor=function(k){f.setStyle(this.scroller.style,"cursor",k)},x.prototype.attachToShadowRoot=function(){f.importCssString(S,"ace_editor.css",this.container)},x.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent="",this.setOption("useResizeObserver",!1)},x.prototype.$updateCustomScrollbar=function(k){var _=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,k===!0?(this.scrollBarV=new m(this.container,this),this.scrollBarH=new d(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function(v){_.$scrollAnimation||_.session.setScrollTop(v.data-_.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(v){_.$scrollAnimation||_.session.setScrollLeft(v.data-_.scrollMargin.left)}),this.$scrollDecorator=new C(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new a(this.container,this),this.scrollBarH=new c(this.container,this),this.scrollBarV.addEventListener("scroll",function(v){_.$scrollAnimation||_.session.setScrollTop(v.data-_.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(v){_.$scrollAnimation||_.session.setScrollLeft(v.data-_.scrollMargin.left)}))},x.prototype.$addResizeObserver=function(){if(!(!window.ResizeObserver||this.$resizeObserver)){var k=this;this.$resizeTimer=g.delayedCall(function(){k.destroyed||k.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(_){var v=_[0].contentRect.width,M=_[0].contentRect.height;Math.abs(k.$size.width-v)>1||Math.abs(k.$size.height-M)>1?k.$resizeTimer.delay():k.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},x}();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,E),s.defineOptions(R.prototype,"renderer",{useResizeObserver:{set:function(x){!x&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):x&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(x){this.$textLayer.setShowInvisibles(x)&&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(x){typeof x=="number"&&(this.$printMarginColumn=x),this.$showPrintMargin=!!x,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(x){this.$gutter.style.display=x?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(x){this.$gutterLayer.$useSvgGutterIcons=x},initialValue:!1},showFoldedAnnotations:{set:function(x){this.$gutterLayer.$showFoldedAnnotations=x},initialValue:!1},fadeFoldWidgets:{set:function(x){f.setCssClass(this.$gutter,"ace_fade-fold-widgets",x)},initialValue:!1},showFoldWidgets:{set:function(x){this.$gutterLayer.setShowFoldWidgets(x),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(x){this.$textLayer.setDisplayIndentGuides(x)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(x){this.$textLayer.setHighlightIndentGuides(x)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(x){this.$gutterLayer.setHighlightGutterLine(x),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(x){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(x){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(x){typeof x=="number"&&(x=x+"px"),this.container.style.fontSize=x,this.updateFontSize()},initialValue:12},fontFamily:{set:function(x){this.container.style.fontFamily=x,this.updateFontSize()}},maxLines:{set:function(x){this.updateFull()}},minLines:{set:function(x){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(x){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(x){x=+x||0,this.$scrollPastEnd!=x&&(this.$scrollPastEnd=x,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(x){this.$gutterLayer.$fixedWidth=!!x,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(x){this.$updateCustomScrollbar(x)},initialValue:!1},theme:{set:function(x){this.setTheme(x)},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,p){var u=n("../lib/oop"),f=n("../lib/net"),g=n("../lib/event_emitter").EventEmitter,s=n("../config");function h(c){var a="importScripts('"+f.qualifyURL(c)+"');";try{return new Blob([a],{type:"application/javascript"})}catch{var d=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,m=new d;return m.append(a),m.getBlob("application/javascript")}}function o(c){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(s.get("loadWorkerFromBlob")){var a=h(c),d=window.URL||window.webkitURL,m=d.createObjectURL(a);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,a,d,m,y){if(n.nameToUrl&&!n.toUrl&&(n.toUrl=n.nameToUrl),s.get("packaged")||!n.toUrl)m=m||s.moduleUrl(a,"worker");else{var b=this.$normalizePath;m=m||b(n.toUrl("ace/worker/worker.js",null,"_"));var E={};c.forEach(function(S){E[S]=b(n.toUrl(S,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=o(m),y&&this.send("importScripts",y),this.$worker.postMessage({init:!0,tlns:E,module:a,classname:d}),this.$worker},this.onMessage=function(c){var a=c.data;switch(a.type){case"event":this._signal(a.name,{data:a.data});break;case"call":var d=this.callbacks[a.id];d&&(d(a.data),delete this.callbacks[a.id]);break;case"error":this.reportError(a.data);break;case"log":window.console&&console.log&&console.log.apply(console,a.data);break}},this.reportError=function(c){window.console&&console.error&&console.error(c)},this.$normalizePath=function(c){return f.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,a){this.$worker.postMessage({command:c,args:a})},this.call=function(c,a,d){if(d){var m=this.callbackId++;this.callbacks[m]=d,a.push(m)}this.send(c,a)},this.emit=function(c,a){try{a.data&&a.data.err&&(a.data.err={message:a.data.err.message,stack:a.data.err.stack,code:a.data.err.code}),this.$worker&&this.$worker.postMessage({event:c,data:{data:a.data}})}catch(d){console.error(d.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 l=function(c,a,d){var m=null,y=!1,b=Object.create(g),E=[],S=new r({messageBuffer:E,terminate:function(){},postMessage:function($){E.push($),m&&(y?setTimeout(C):C())}});S.setEmitSync=function($){y=$};var C=function(){var $=E.shift();$.command?m[$.command].apply(m,$.args):$.event&&b._signal($.event,$.data)};return b.postMessage=function($){S.onMessage({data:$})},b.callback=function($,R){this.postMessage({type:"call",id:R,data:$})},b.emit=function($,R){this.postMessage({type:"event",name:$,data:R})},s.loadModule(["worker",a],function($){for(m=new $[d](b);E.length;)C()}),S};i.UIWorkerClient=l,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,p){var u=n("./range").Range,f=n("./lib/event_emitter").EventEmitter,g=n("./lib/oop"),s=function(){function h(o,r,l,c,a,d){var m=this;this.length=r,this.session=o,this.doc=o.getDocument(),this.mainClass=a,this.othersClass=d,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=l;var y=o.getUndoManager().$undoStack||o.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=y.length,this.setup(),o.selection.on("changeCursor",this.$onCursorChange)}return h.prototype.setup=function(){var o=this,r=this.doc,l=this.session;this.selectionBefore=l.selection.toJSON(),l.selection.inMultiSelectMode&&l.selection.toSingleRange(),this.pos=r.createAnchor(this.$pos.row,this.$pos.column);var c=this.pos;c.$insertRight=!0,c.detach(),c.markerId=l.addMarker(new u(c.row,c.column,c.row,c.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(a){var d=r.createAnchor(a.row,a.column);d.$insertRight=!0,d.detach(),o.others.push(d)}),l.setUndoSelect(!1)},h.prototype.showOtherMarkers=function(){if(!this.othersActive){var o=this.session,r=this;this.othersActive=!0,this.others.forEach(function(l){l.markerId=o.addMarker(new u(l.row,l.column,l.row,l.column+r.length),r.othersClass,null,!1)})}},h.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)}},h.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 l=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,a=r.start.column-this.pos.column;if(this.updateAnchors(o),c&&(this.length+=l),c&&!this.session.$fromUndo){if(o.action==="insert")for(var d=this.others.length-1;d>=0;d--){var m=this.others[d],y={row:m.row,column:m.column+a};this.doc.insertMergedLines(y,o.lines)}else if(o.action==="remove")for(var d=this.others.length-1;d>=0;d--){var m=this.others[d],y={row:m.row,column:m.column+a};this.doc.remove(new u(y.row,y.column,y.row,y.column-l))}}this.$updating=!1,this.updateMarkers()}},h.prototype.updateAnchors=function(o){this.pos.onChange(o);for(var r=this.others.length;r--;)this.others[r].onChange(o);this.updateMarkers()},h.prototype.updateMarkers=function(){if(!this.$updating){var o=this,r=this.session,l=function(a,d){r.removeMarker(a.markerId),a.markerId=r.addMarker(new u(a.row,a.column,a.row,a.column+o.length),d,null,!1)};l(this.pos,this.mainClass);for(var c=this.others.length;c--;)l(this.others[c],this.othersClass)}},h.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))}},h.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},h.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var o=this.session.getUndoManager(),r=(o.$undoStack||o.$undostack).length-this.$undoStackDepth,l=0;l<r;l++)o.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},h}();g.implement(s.prototype,f),i.PlaceHolder=s}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(n,i,p){var u=n("../lib/event"),f=n("../lib/useragent");function g(h,o){return h.row==o.row&&h.column==o.column}function s(h){var o=h.domEvent,r=o.altKey,l=o.shiftKey,c=o.ctrlKey,a=h.getAccelKey(),d=h.getButton();if(c&&f.isMac&&(d=o.button),h.editor.inMultiSelectMode&&d==2){h.editor.textInput.onContextMenu(h.domEvent);return}if(!c&&!r&&!a){d===0&&h.editor.inMultiSelectMode&&h.editor.exitMultiSelectMode();return}if(d===0){var m=h.editor,y=m.selection,b=m.inMultiSelectMode,E=h.getDocumentPosition(),S=y.getCursor(),C=h.inSelection()||y.isEmpty()&&g(E,S),$=h.x,R=h.y,x=function(W){$=W.clientX,R=W.clientY},k=m.session,_=m.renderer.pixelToScreenCoordinates($,R),v=_,M;if(m.$mouseHandler.$enableJumpToDef)c&&r||a&&r?M=l?"block":"add":r&&m.$blockSelectEnabled&&(M="block");else if(a&&!r){if(M="add",!b&&l)return}else r&&m.$blockSelectEnabled&&(M="block");if(M&&f.isMac&&o.ctrlKey&&m.$mouseHandler.cancelContextMenu(),M=="add"){if(!b&&C)return;if(!b){var A=y.toOrientedRange();m.addSelectionMarker(A)}var w=y.rangeList.rangeAtPoint(E);m.inVirtualSelectionMode=!0,l&&(w=null,A=y.ranges[0]||A,m.removeSelectionMarker(A)),m.once("mouseup",function(){var W=y.toOrientedRange();w&&W.isEmpty()&&g(w.cursor,W.cursor)?y.substractPoint(W.cursor):(l?y.substractPoint(A.cursor):A&&(m.removeSelectionMarker(A),y.addRange(A)),y.addRange(W)),m.inVirtualSelectionMode=!1})}else if(M=="block"){h.stop(),m.inVirtualSelectionMode=!0;var L,T=[],O=function(){var W=m.renderer.pixelToScreenCoordinates($,R),G=k.screenToDocumentPosition(W.row,W.column,W.offsetX);g(v,W)&&g(G,y.lead)||(v=W,m.selection.moveToPosition(G),m.renderer.scrollCursorIntoView(),m.removeSelectionMarkers(T),T=y.rectangularRangeBlock(v,_),m.$mouseHandler.$clickSelection&&T.length==1&&T[0].isEmpty()&&(T[0]=m.$mouseHandler.$clickSelection.clone()),T.forEach(m.addSelectionMarker,m),m.updateSelectionMarkers())};b&&!a?y.toSingleRange():!b&&a&&(L=y.toOrientedRange(),m.addSelectionMarker(L)),l?_=k.documentToScreenPosition(y.lead):y.moveToPosition(E),v={row:-1,column:-1};var I=function(W){O(),clearInterval(D),m.removeSelectionMarkers(T),T.length||(T=[y.toOrientedRange()]),L&&(m.removeSelectionMarker(L),y.toSingleRange(L));for(var G=0;G<T.length;G++)y.addRange(T[G]);m.inVirtualSelectionMode=!1,m.$mouseHandler.$clickSelection=null},F=O;u.capture(m.container,x,I);var D=setInterval(function(){F()},20);return h.preventDefault()}}}i.onMouseDown=s}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(n,i,p){i.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(f){f.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(f){f.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(f){f.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(f){f.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(f){f.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(f){f.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(f){f.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(f){f.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(f){f.multiSelect.rangeCount>1?f.multiSelect.joinSelections():f.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(f){f.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(f){f.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(f){f.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(f){f.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(f){return f&&f.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,p){var u=n("./range_list").RangeList,f=n("./range").Range,g=n("./selection").Selection,s=n("./mouse/multi_select_handler").onMouseDown,h=n("./lib/event"),o=n("./lib/lang"),r=n("./commands/multi_select_commands");i.commands=r.defaultCommands.concat(r.multiSelectCommands);var l=n("./search").Search,c=new l;function a(S,C,$){return c.$options.wrap=!0,c.$options.needle=C,c.$options.backwards=$==-1,c.find(S)}var d=n("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(d.prototype),(function(){this.ranges=null,this.rangeList=null,this.addRange=function(S,C){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(),C||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)),C||this.fromOrientedRange(S)}},this.toSingleRange=function(S){S=S||this.ranges[0];var C=this.rangeList.removeAll();C.length&&this.$onRemoveRange(C),S&&this.fromOrientedRange(S)},this.substractPoint=function(S){var C=this.rangeList.substractPoint(S);if(C)return this.$onRemoveRange(C),C[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 C=this.rangeList.ranges.pop();S.push(C),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)),C=C||this.ranges[0],C&&!C.isEqual(this.getRange())&&this.fromOrientedRange(C)},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()],C=[],$=0;$<S.length;$++){var R=S[$],x=R.start.row,k=R.end.row;if(x===k)C.push(R.clone());else{for(C.push(new f(x,R.start.column,x,this.session.getLine(x).length));++x<k;)C.push(this.getLineRange(x,!0));C.push(new f(k,0,k,R.end.column))}$==0&&!this.isBackwards()&&(C=C.reverse())}this.toSingleRange();for(var $=C.length;$--;)this.addRange(C[$])},this.joinSelections=function(){var S=this.rangeList.ranges,C=S[S.length-1],$=f.fromPoints(S[0].start,C.end);this.toSingleRange(),this.setSelectionRange($,C.cursor==C.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var S=this.rangeList.ranges,C=S[S.length-1],$=f.fromPoints(S[0].start,C.end);this.toSingleRange(),this.setSelectionRange($,C.cursor==C.start)}else{var R=this.session.documentToScreenPosition(this.cursor),x=this.session.documentToScreenPosition(this.anchor),k=this.rectangularRangeBlock(R,x);k.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(S,C,$){var R=[],x=S.column<C.column;if(x)var k=S.column,_=C.column,v=S.offsetX,M=C.offsetX;else var k=C.column,_=S.column,v=C.offsetX,M=S.offsetX;var A=S.row<C.row;if(A)var w=S.row,L=C.row;else var w=C.row,L=S.row;k<0&&(k=0),w<0&&(w=0),w==L&&($=!0);for(var T,O=w;O<=L;O++){var I=f.fromPoints(this.session.screenToDocumentPosition(O,k,v),this.session.screenToDocumentPosition(O,_,M));if(I.isEmpty()){if(T&&y(I.end,T))break;T=I.end}I.cursor=x?I.start:I.end,R.push(I)}if(A&&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 C=this.getSelectionStyle();return S.marker=this.session.addMarker(S,"ace_selection",C),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 C=this.session.$selectionMarkers.indexOf(S);C!=-1&&this.session.$selectionMarkers.splice(C,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(S){for(var C=this.session.$selectionMarkers,$=S.length;$--;){var R=S[$];if(R.marker){this.session.removeMarker(R.marker);var x=C.indexOf(R);x!=-1&&C.splice(x,1)}}this.session.selectionMarkerCount=C.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 C=S.command,$=S.editor;if($.multiSelect){if(C.multiSelectAction)C.multiSelectAction=="forEach"?R=$.forEachSelection(C,S.args):C.multiSelectAction=="forEachLine"?R=$.forEachSelection(C,S.args,!0):C.multiSelectAction=="single"?($.exitMultiSelectMode(),R=C.exec($,S.args||{})):R=C.multiSelectAction($,S.args||{});else{var R=C.exec($,S.args||{});$.multiSelect.addRange($.multiSelect.toOrientedRange()),$.multiSelect.mergeOverlappingRanges()}return R}},this.forEachSelection=function(S,C,$){if(!this.inVirtualSelectionMode){var R=$&&$.keepOrder,x=$==!0||$&&$.$byLines,k=this.session,_=this.selection,v=_.rangeList,M=(R?_:v).ranges,A;if(!M.length)return S.exec?S.exec(this,C||{}):S(this,C||{});var w=_._eventRegistry;_._eventRegistry={};var L=new g(k);this.inVirtualSelectionMode=!0;for(var T=M.length;T--;){if(x)for(;T>0&&M[T].start.row==M[T-1].end.row;)T--;L.fromOrientedRange(M[T]),L.index=T,this.selection=k.selection=L;var O=S.exec?S.exec(this,C||{}):S(this,C||{});!A&&O!==void 0&&(A=O),L.toOrientedRange(M[T])}L.detach(),this.selection=k.selection=_,this.inVirtualSelectionMode=!1,_._eventRegistry=w,_.mergeOverlappingRanges(),_.ranges[0]&&_.fromOrientedRange(_.ranges[0]);var I=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),I&&I.from==I.to&&this.renderer.animateScrolling(I.from),A}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var S="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var C=this.multiSelect.rangeList.ranges,$=[],R=0;R<C.length;R++)$.push(this.session.getTextRange(C[R]));var x=this.session.getDocument().getNewLineCharacter();S=$.join(x),S.length==($.length-1)*x.length&&(S="")}else this.selection.isEmpty()||(S=this.session.getTextRange(this.getSelectionRange()));return S},this.$checkMultiselectChange=function(S,C){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var $=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&C==this.multiSelect.anchor)return;var R=C==this.multiSelect.anchor?$.cursor==$.start?$.end:$.start:$.cursor;R.row!=C.row||this.session.$clipPositionToDocument(R.row,R.column).column!=C.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(S,C,$){if(C=C||{},C.needle=S||C.needle,C.needle==null){var R=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();C.needle=this.session.getTextRange(R)}this.$search.set(C);var x=this.$search.findAll(this.session);if(!x.length)return 0;var k=this.multiSelect;$||k.toSingleRange(x[0]);for(var _=x.length;_--;)k.addRange(x[_],!0);return R&&k.rangeList.rangeAtPoint(R.start)&&k.addRange(R,!0),x.length},this.selectMoreLines=function(S,C){var $=this.selection.toOrientedRange(),R=$.cursor==$.end,x=this.session.documentToScreenPosition($.cursor);this.selection.$desiredColumn&&(x.column=this.selection.$desiredColumn);var k=this.session.screenToDocumentPosition(x.row+S,x.column);if($.isEmpty())var v=k;else var _=this.session.documentToScreenPosition(R?$.end:$.start),v=this.session.screenToDocumentPosition(_.row+S,_.column);if(R){var M=f.fromPoints(k,v);M.cursor=M.start}else{var M=f.fromPoints(v,k);M.cursor=M.end}if(M.desiredColumn=x.column,!this.selection.inMultiSelectMode)this.selection.addRange($);else if(C)var A=$.cursor;this.selection.addRange(M),A&&this.selection.substractPoint(A)},this.transposeSelections=function(S){for(var C=this.session,$=C.multiSelect,R=$.ranges,x=R.length;x--;){var k=R[x];if(k.isEmpty()){var _=C.getWordRange(k.start.row,k.start.column);k.start.row=_.start.row,k.start.column=_.start.column,k.end.row=_.end.row,k.end.column=_.end.column}}$.mergeOverlappingRanges();for(var v=[],x=R.length;x--;){var k=R[x];v.unshift(C.getTextRange(k))}S<0?v.unshift(v.pop()):v.push(v.shift());for(var x=R.length;x--;){var k=R[x],_=k.clone();C.replace(k,v[x]),k.start.row=_.start.row,k.start.column=_.start.column}$.fromOrientedRange($.ranges[0])},this.selectMore=function(S,C,$){var R=this.session,x=R.multiSelect,k=x.toOrientedRange();if(!(k.isEmpty()&&(k=R.getWordRange(k.start.row,k.start.column),k.cursor=S==-1?k.start:k.end,this.multiSelect.addRange(k),$))){var _=R.getTextRange(k),v=a(R,_,S);v&&(v.cursor=S==-1?v.start:v.end,this.session.unfold(v),this.multiSelect.addRange(v),this.renderer.scrollCursorIntoView(null,.5)),C&&this.multiSelect.substractPoint(k.cursor)}},this.alignCursors=function(){var S=this.session,C=S.multiSelect,$=C.ranges,R=-1,x=$.filter(function(F){if(F.cursor.row==R)return!0;R=F.cursor.row});if(!$.length||x.length==$.length-1){var k=this.selection.getRange(),_=k.start.row,v=k.end.row,M=_==v;if(M){var A=this.session.getLength(),w;do w=this.session.getLine(v);while(/[=:]/.test(w)&&++v<A);do w=this.session.getLine(_);while(/[=:]/.test(w)&&--_>0);_<0&&(_=0),v>=A&&(v=A-1)}var L=this.session.removeFullLines(_,v);L=this.$reAlignText(L,M),this.session.insert({row:_,column:0},L.join(`
1695
1697
  `)+`
1696
- `),M||(k.start.column=0,k.end.column=L[L.length-1].length),this.selection.setRange(k)}else{x.forEach(function(F){C.substractPoint(F.cursor)});var T=0,O=1/0,I=$.map(function(F){var D=F.cursor,W=S.getLine(D.row),G=W.substr(D.column).search(/\S/g);return G==-1&&(G=0),D.column>T&&(T=D.column),G<O&&(O=G),G});$.forEach(function(F,D){var W=F.cursor,G=T-W.column,U=I[D]-O;G>U?S.insert(W,o.stringRepeat(" ",G-U)):S.remove(new p(W.row,W.column,W.row,W.column-G+U)),F.start.column=F.end.column=T,F.start.row=F.end.row=W.row,F.cursor=F.end}),C.fromOrientedRange($[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(S,C){var $=!0,R=!0,x,k,_;return S.map(function(L){var T=L.match(/(\s*)(.*?)(\s*)([=:].*)/);return T?x==null?(x=T[1].length,k=T[2].length,_=T[3].length,T):(x+k+_!=T[1].length+T[2].length+T[3].length&&(R=!1),x!=T[1].length&&($=!1),x>T[1].length&&(x=T[1].length),k<T[2].length&&(k=T[2].length),_>T[3].length&&(_=T[3].length),T):[L]}).map(C?M:$?R?A:M:w);function v(L){return o.stringRepeat(" ",L)}function M(L){return L[2]?v(x)+L[2]+v(k-L[2].length+_)+L[4].replace(/^([=:])\s+/,"$1 "):L[0]}function A(L){return L[2]?v(x+k-L[2].length)+L[2]+v(_)+L[4].replace(/^([=:])\s+/,"$1 "):L[0]}function w(L){return L[2]?v(x)+L[2]+v(_)+L[4].replace(/^([=:])\s+/,"$1 "):L[0]}}}).call(m.prototype);function y(S,C){return S.row==C.row&&S.column==C.column}i.onSessionChange=function(S){var C=S.session;C&&!C.multiSelect&&(C.$selectionMarkers=[],C.selection.$initRangeList(),C.multiSelect=C.selection),this.multiSelect=C&&C.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)),C&&(C.multiSelect.on("addRange",this.$onAddRange),C.multiSelect.on("removeRange",this.$onRemoveRange),C.multiSelect.on("multiSelect",this.$onMultiSelect),C.multiSelect.on("singleSelect",this.$onSingleSelect),C.multiSelect.lead.on("change",this.$checkMultiselectChange),C.multiSelect.anchor.on("change",this.$checkMultiselectChange)),C&&this.inMultiSelectMode!=C.selection.inMultiSelectMode&&(C.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function b(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),E(S))}function E(S){if(!S.textInput)return;var C=S.textInput.getElement(),$=!1;h.addListener(C,"keydown",function(x){var k=x.keyCode==18&&!(x.ctrlKey||x.shiftKey||x.metaKey);S.$blockSelectEnabled&&k?$||(S.renderer.setMouseCursor("crosshair"),$=!0):$&&R()},S),h.addListener(C,"keyup",R,S),h.addListener(C,"blur",R,S);function R(x){$&&(S.renderer.setMouseCursor(""),$=!1)}}i.MultiSelect=b,n("./config").defineOptions(m.prototype,"editor",{enableMultiselect:{set:function(S){b(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,p=i.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(g,s,h){var o=g.getLine(h);return this.foldingStartMarker.test(o)?"start":s=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(o)?"end":""},this.getFoldWidgetRange=function(g,s,h){return null},this.indentationBlock=function(g,s,h){var o=/\S/,r=g.getLine(s),l=r.search(o);if(l!=-1){for(var c=h||r.length,a=g.getLength(),f=s,m=s;++s<a;){var y=g.getLine(s).search(o);if(y!=-1){if(y<=l){var b=g.getTokenAt(s,0);if(!b||b.type!=="string")break}m=s}}if(m>f){var E=g.getLine(m).length;return new u(f,c,m,E)}}},this.openingBracketBlock=function(g,s,h,o,r){var l={row:h,column:o+1},c=g.$findClosingBracket(s,l,r);if(c){var a=g.foldWidgets[c.row];return a==null&&(a=g.getFoldWidget(c.row)),a=="start"&&c.row>l.row&&(c.row--,c.column=g.getLine(c.row).length),u.fromPoints(l,c)}},this.closingBracketBlock=function(g,s,h,o,r){var l={row:h,column:o},c=g.$findOpeningBracket(s,l);if(c)return c.column++,l.column--,u.fromPoints(c,l)}}).call(p.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,p=n("../lib/dom"),g=n("../range").Range,s=n("../config").nls;function h(r,l,c){for(var a=0,f=r.length-1;a<=f;){var m=a+f>>1,y=c(l,r[m]);if(y>0)a=m+1;else if(y<0)f=m-1;else return m}return-(a+1)}function o(r,l,c){var a=r.getAnnotations().sort(g.comparePoints);if(a.length){var f=h(a,{row:l,column:-1},g.comparePoints);f<0&&(f=-f-1),f>=a.length?f=c>0?0:a.length-1:f===0&&c<0&&(f=a.length-1);var m=a[f];if(!(!m||!c)){if(m.row===l){do m=a[f+=c];while(m&&m.row===l);if(!m)return a.slice()}var y=[];l=m.row;do y[c<0?"unshift":"push"](m),m=a[f+=c];while(m&&m.row==l);return y.length&&y}}}i.showErrorMarker=function(r,l){var c=r.session;c.widgetManager||(c.widgetManager=new u(c),c.widgetManager.attach(r));var a=r.getCursorPosition(),f=a.row,m=c.widgetManager.getWidgetsAtRow(f).filter(function(k){return k.type=="errorMarker"})[0];m?m.destroy():f-=l;var y=o(c,f,l),b;if(y){var E=y[0];a.column=(E.pos&&typeof E.column!="number"?E.pos.sc:E.column)||0,a.row=E.row,b=r.renderer.$gutterLayer.$annotations[a.row]}else{if(m)return;b={text:[s("Looks good!")],className:"ace_ok"}}r.session.unfold(a.row),r.selection.moveToPosition(a);var S={row:a.row,fixedWidth:!0,coverGutter:!0,el:p.createElement("div"),type:"errorMarker"},C=S.el.appendChild(p.createElement("div")),$=S.el.appendChild(p.createElement("div"));$.className="error_widget_arrow "+b.className;var R=r.renderer.$cursorLayer.getPixelPosition(a).left;$.style.left=R+r.renderer.gutterWidth-5+"px",S.el.className="error_widget_wrapper",C.className="error_widget "+b.className,C.innerHTML=b.text.join("<br>"),C.appendChild(p.createElement("div"));var x=function(k,_,v){if(_===0&&(v==="esc"||v==="return"))return S.destroy(),{command:"null"}};S.destroy=function(){r.$mouseHandler.isMousePressed||(r.keyBinding.removeKeyboardHandler(x),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(x),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})},p.importCssString(`
1698
+ `),M||(k.start.column=0,k.end.column=L[L.length-1].length),this.selection.setRange(k)}else{x.forEach(function(F){C.substractPoint(F.cursor)});var T=0,O=1/0,I=$.map(function(F){var D=F.cursor,W=S.getLine(D.row),G=W.substr(D.column).search(/\S/g);return G==-1&&(G=0),D.column>T&&(T=D.column),G<O&&(O=G),G});$.forEach(function(F,D){var W=F.cursor,G=T-W.column,U=I[D]-O;G>U?S.insert(W,o.stringRepeat(" ",G-U)):S.remove(new f(W.row,W.column,W.row,W.column-G+U)),F.start.column=F.end.column=T,F.start.row=F.end.row=W.row,F.cursor=F.end}),C.fromOrientedRange($[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(S,C){var $=!0,R=!0,x,k,_;return S.map(function(L){var T=L.match(/(\s*)(.*?)(\s*)([=:].*)/);return T?x==null?(x=T[1].length,k=T[2].length,_=T[3].length,T):(x+k+_!=T[1].length+T[2].length+T[3].length&&(R=!1),x!=T[1].length&&($=!1),x>T[1].length&&(x=T[1].length),k<T[2].length&&(k=T[2].length),_>T[3].length&&(_=T[3].length),T):[L]}).map(C?M:$?R?A:M:w);function v(L){return o.stringRepeat(" ",L)}function M(L){return L[2]?v(x)+L[2]+v(k-L[2].length+_)+L[4].replace(/^([=:])\s+/,"$1 "):L[0]}function A(L){return L[2]?v(x+k-L[2].length)+L[2]+v(_)+L[4].replace(/^([=:])\s+/,"$1 "):L[0]}function w(L){return L[2]?v(x)+L[2]+v(_)+L[4].replace(/^([=:])\s+/,"$1 "):L[0]}}}).call(m.prototype);function y(S,C){return S.row==C.row&&S.column==C.column}i.onSessionChange=function(S){var C=S.session;C&&!C.multiSelect&&(C.$selectionMarkers=[],C.selection.$initRangeList(),C.multiSelect=C.selection),this.multiSelect=C&&C.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)),C&&(C.multiSelect.on("addRange",this.$onAddRange),C.multiSelect.on("removeRange",this.$onRemoveRange),C.multiSelect.on("multiSelect",this.$onMultiSelect),C.multiSelect.on("singleSelect",this.$onSingleSelect),C.multiSelect.lead.on("change",this.$checkMultiselectChange),C.multiSelect.anchor.on("change",this.$checkMultiselectChange)),C&&this.inMultiSelectMode!=C.selection.inMultiSelectMode&&(C.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function b(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),E(S))}function E(S){if(!S.textInput)return;var C=S.textInput.getElement(),$=!1;h.addListener(C,"keydown",function(x){var k=x.keyCode==18&&!(x.ctrlKey||x.shiftKey||x.metaKey);S.$blockSelectEnabled&&k?$||(S.renderer.setMouseCursor("crosshair"),$=!0):$&&R()},S),h.addListener(C,"keyup",R,S),h.addListener(C,"blur",R,S);function R(x){$&&(S.renderer.setMouseCursor(""),$=!1)}}i.MultiSelect=b,n("./config").defineOptions(m.prototype,"editor",{enableMultiselect:{set:function(S){b(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,p){var u=n("../../range").Range,f=i.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(g,s,h){var o=g.getLine(h);return this.foldingStartMarker.test(o)?"start":s=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(o)?"end":""},this.getFoldWidgetRange=function(g,s,h){return null},this.indentationBlock=function(g,s,h){var o=/\S/,r=g.getLine(s),l=r.search(o);if(l!=-1){for(var c=h||r.length,a=g.getLength(),d=s,m=s;++s<a;){var y=g.getLine(s).search(o);if(y!=-1){if(y<=l){var b=g.getTokenAt(s,0);if(!b||b.type!=="string")break}m=s}}if(m>d){var E=g.getLine(m).length;return new u(d,c,m,E)}}},this.openingBracketBlock=function(g,s,h,o,r){var l={row:h,column:o+1},c=g.$findClosingBracket(s,l,r);if(c){var a=g.foldWidgets[c.row];return a==null&&(a=g.getFoldWidget(c.row)),a=="start"&&c.row>l.row&&(c.row--,c.column=g.getLine(c.row).length),u.fromPoints(l,c)}},this.closingBracketBlock=function(g,s,h,o,r){var l={row:h,column:o},c=g.$findOpeningBracket(s,l);if(c)return c.column++,l.column--,u.fromPoints(c,l)}}).call(f.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range","ace/config"],function(n,i,p){var u=n("../line_widgets").LineWidgets,f=n("../lib/dom"),g=n("../range").Range,s=n("../config").nls;function h(r,l,c){for(var a=0,d=r.length-1;a<=d;){var m=a+d>>1,y=c(l,r[m]);if(y>0)a=m+1;else if(y<0)d=m-1;else return m}return-(a+1)}function o(r,l,c){var a=r.getAnnotations().sort(g.comparePoints);if(a.length){var d=h(a,{row:l,column:-1},g.comparePoints);d<0&&(d=-d-1),d>=a.length?d=c>0?0:a.length-1:d===0&&c<0&&(d=a.length-1);var m=a[d];if(!(!m||!c)){if(m.row===l){do m=a[d+=c];while(m&&m.row===l);if(!m)return a.slice()}var y=[];l=m.row;do y[c<0?"unshift":"push"](m),m=a[d+=c];while(m&&m.row==l);return y.length&&y}}}i.showErrorMarker=function(r,l){var c=r.session;c.widgetManager||(c.widgetManager=new u(c),c.widgetManager.attach(r));var a=r.getCursorPosition(),d=a.row,m=c.widgetManager.getWidgetsAtRow(d).filter(function(k){return k.type=="errorMarker"})[0];m?m.destroy():d-=l;var y=o(c,d,l),b;if(y){var E=y[0];a.column=(E.pos&&typeof E.column!="number"?E.pos.sc:E.column)||0,a.row=E.row,b=r.renderer.$gutterLayer.$annotations[a.row]}else{if(m)return;b={text:[s("Looks good!")],className:"ace_ok"}}r.session.unfold(a.row),r.selection.moveToPosition(a);var S={row:a.row,fixedWidth:!0,coverGutter:!0,el:f.createElement("div"),type:"errorMarker"},C=S.el.appendChild(f.createElement("div")),$=S.el.appendChild(f.createElement("div"));$.className="error_widget_arrow "+b.className;var R=r.renderer.$cursorLayer.getPixelPosition(a).left;$.style.left=R+r.renderer.gutterWidth-5+"px",S.el.className="error_widget_wrapper",C.className="error_widget "+b.className,C.innerHTML=b.text.join("<br>"),C.appendChild(f.createElement("div"));var x=function(k,_,v){if(_===0&&(v==="esc"||v==="return"))return S.destroy(),{command:"null"}};S.destroy=function(){r.$mouseHandler.isMousePressed||(r.keyBinding.removeKeyboardHandler(x),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(x),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})},f.importCssString(`
1697
1699
  .error_widget_wrapper {
1698
1700
  background: inherit;
1699
1701
  color: inherit;
@@ -1726,13 +1728,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1726
1728
  border-left-color: transparent!important;
1727
1729
  top: -5px;
1728
1730
  }
1729
- `,"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"),p=n("./range").Range,g=n("./editor").Editor,s=n("./edit_session").EditSession,h=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,l){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 a="";if(r&&/input|textarea/i.test(r.tagName)){var f=r;a=f.value,r=u.createElement("pre"),f.parentNode.replaceChild(r,f)}else r&&(a=r.textContent,r.innerHTML="");var m=i.createEditSession(a),y=new g(new o(r),m,l),b={document:m,editor:y,onResize:y.resize.bind(y,null)};return f&&(b.textarea=f),y.on("destroy",function(){b.editor.container.env=null}),y.container.env=y.env=b,y},i.createEditSession=function(r,l){var c=new s(r,l);return c.setUndoManager(new h),c},i.Range=p,i.Editor=g,i.EditSession=s,i.UndoManager=h,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)})}()})(Zd);var M2=Zd.exports;const Sl=cn(M2),I2="/assets/mode-yaml-a21faa53.js",O2="data:application/javascript;base64,YWNlLmRlZmluZSgiYWNlL3RoZW1lL21vbm9rYWktY3NzIixbInJlcXVpcmUiLCJleHBvcnRzIiwibW9kdWxlIl0sZnVuY3Rpb24oZSx0LG4pe24uZXhwb3J0cz0iLmFjZS1tb25va2FpIC5hY2VfZ3V0dGVyIHtcbiAgYmFja2dyb3VuZDogIzJGMzEyOTtcbiAgY29sb3I6ICM4RjkwOEFcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfcHJpbnQtbWFyZ2luIHtcbiAgd2lkdGg6IDFweDtcbiAgYmFja2dyb3VuZDogIzU1NTY1MVxufVxuXG4uYWNlLW1vbm9rYWkge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjcyODIyO1xuICBjb2xvcjogI0Y4RjhGMlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9jdXJzb3Ige1xuICBjb2xvcjogI0Y4RjhGMFxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9zZWxlY3Rpb24ge1xuICBiYWNrZ3JvdW5kOiAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaS5hY2VfbXVsdGlzZWxlY3QgLmFjZV9zZWxlY3Rpb24uYWNlX3N0YXJ0IHtcbiAgYm94LXNoYWRvdzogMCAwIDNweCAwcHggIzI3MjgyMjtcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfbWFya2VyLWxheWVyIC5hY2Vfc3RlcCB7XG4gIGJhY2tncm91bmQ6IHJnYigxMDIsIDgyLCAwKVxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9icmFja2V0IHtcbiAgbWFyZ2luOiAtMXB4IDAgMCAtMXB4O1xuICBib3JkZXI6IDFweCBzb2xpZCAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX21hcmtlci1sYXllciAuYWNlX2FjdGl2ZS1saW5lIHtcbiAgYmFja2dyb3VuZDogIzIwMjAyMFxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9ndXR0ZXItYWN0aXZlLWxpbmUge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjcyNzI3XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX21hcmtlci1sYXllciAuYWNlX3NlbGVjdGVkLXdvcmQge1xuICBib3JkZXI6IDFweCBzb2xpZCAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2ludmlzaWJsZSB7XG4gIGNvbG9yOiAjNTI1MjRkXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2VudGl0eS5hY2VfbmFtZS5hY2VfdGFnLFxuLmFjZS1tb25va2FpIC5hY2Vfa2V5d29yZCxcbi5hY2UtbW9ub2thaSAuYWNlX21ldGEuYWNlX3RhZyxcbi5hY2UtbW9ub2thaSAuYWNlX3N0b3JhZ2Uge1xuICBjb2xvcjogI0Y5MjY3MlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9wdW5jdHVhdGlvbixcbi5hY2UtbW9ub2thaSAuYWNlX3B1bmN0dWF0aW9uLmFjZV90YWcge1xuICBjb2xvcjogI2ZmZlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9jb25zdGFudC5hY2VfY2hhcmFjdGVyLFxuLmFjZS1tb25va2FpIC5hY2VfY29uc3RhbnQuYWNlX2xhbmd1YWdlLFxuLmFjZS1tb25va2FpIC5hY2VfY29uc3RhbnQuYWNlX251bWVyaWMsXG4uYWNlLW1vbm9rYWkgLmFjZV9jb25zdGFudC5hY2Vfb3RoZXIge1xuICBjb2xvcjogI0FFODFGRlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9pbnZhbGlkIHtcbiAgY29sb3I6ICNGOEY4RjA7XG4gIGJhY2tncm91bmQtY29sb3I6ICNGOTI2NzJcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfaW52YWxpZC5hY2VfZGVwcmVjYXRlZCB7XG4gIGNvbG9yOiAjRjhGOEYwO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjQUU4MUZGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N1cHBvcnQuYWNlX2NvbnN0YW50LFxuLmFjZS1tb25va2FpIC5hY2Vfc3VwcG9ydC5hY2VfZnVuY3Rpb24ge1xuICBjb2xvcjogIzY2RDlFRlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9mb2xkIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI0E2RTIyRTtcbiAgYm9yZGVyLWNvbG9yOiAjRjhGOEYyXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N0b3JhZ2UuYWNlX3R5cGUsXG4uYWNlLW1vbm9rYWkgLmFjZV9zdXBwb3J0LmFjZV9jbGFzcyxcbi5hY2UtbW9ub2thaSAuYWNlX3N1cHBvcnQuYWNlX3R5cGUge1xuICBmb250LXN0eWxlOiBpdGFsaWM7XG4gIGNvbG9yOiAjNjZEOUVGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2VudGl0eS5hY2VfbmFtZS5hY2VfZnVuY3Rpb24sXG4uYWNlLW1vbm9rYWkgLmFjZV9lbnRpdHkuYWNlX290aGVyLFxuLmFjZS1tb25va2FpIC5hY2VfZW50aXR5LmFjZV9vdGhlci5hY2VfYXR0cmlidXRlLW5hbWUsXG4uYWNlLW1vbm9rYWkgLmFjZV92YXJpYWJsZSB7XG4gIGNvbG9yOiAjQTZFMjJFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3ZhcmlhYmxlLmFjZV9wYXJhbWV0ZXIge1xuICBmb250LXN0eWxlOiBpdGFsaWM7XG4gIGNvbG9yOiAjRkQ5NzFGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N0cmluZyB7XG4gIGNvbG9yOiAjRTZEQjc0XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2NvbW1lbnQge1xuICBjb2xvcjogIzc1NzE1RVxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9pbmRlbnQtZ3VpZGUge1xuICBiYWNrZ3JvdW5kOiB1cmwoZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFBRUFBQUFDQ0FZQUFBQ1pnYlluQUFBQUVrbEVRVlFJbVdQUTBGRDBaWEJ6ZC93UEFBalZBb3hlU2dOZUFBQUFBRWxGVGtTdVFtQ0MpIHJpZ2h0IHJlcGVhdC15XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2luZGVudC1ndWlkZS1hY3RpdmUge1xuICBiYWNrZ3JvdW5kOiB1cmwoZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFBRUFBQUFDQ0FZQUFBQ1pnYlluQUFBQUVrbEVRVlFJVzJQUTFkWDl6ekJ6NXN6L0FCQ2NCRkZlbnRMbEFBQUFBRWxGVGtTdVFtQ0MpIHJpZ2h0IHJlcGVhdC15O1xufVxuIn0pLGFjZS5kZWZpbmUoImFjZS90aGVtZS9tb25va2FpIixbInJlcXVpcmUiLCJleHBvcnRzIiwibW9kdWxlIiwiYWNlL3RoZW1lL21vbm9rYWktY3NzIiwiYWNlL2xpYi9kb20iXSxmdW5jdGlvbihlLHQsbil7dC5pc0Rhcms9ITAsdC5jc3NDbGFzcz0iYWNlLW1vbm9rYWkiLHQuY3NzVGV4dD1lKCIuL21vbm9rYWktY3NzIik7dmFyIHI9ZSgiLi4vbGliL2RvbSIpO3IuaW1wb3J0Q3NzU3RyaW5nKHQuY3NzVGV4dCx0LmNzc0NsYXNzLCExKX0pOyAgICAgICAgICAgICAgICAoZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICAgICAgYWNlLnJlcXVpcmUoWyJhY2UvdGhlbWUvbW9ub2thaSJdLCBmdW5jdGlvbihtKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0eXBlb2YgbW9kdWxlID09ICJvYmplY3QiICYmIHR5cGVvZiBleHBvcnRzID09ICJvYmplY3QiICYmIG1vZHVsZSkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgbW9kdWxlLmV4cG9ydHMgPSBtOwogICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgICB9KSgpOwogICAgICAgICAgICA=";Sl.config.setModuleUrl("ace/mode/yaml",I2);Sl.config.setModuleUrl("ace/theme/monokai",O2);var Qd=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 p=u[d];n.call(i,p[1],p[0])}},t}()}(),va=typeof window<"u"&&typeof document<"u"&&window.document===document,Co=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(Co):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 p(){F2(u)}function g(){var s=Date.now();if(n){if(s-d<N2)return;i=!0}else n=!0,i=!1,setTimeout(p,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(){!va||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(){!va||!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}(),Jd=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},$i=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Co},qd=ls(0,0,0,0);function So(e){return parseFloat(e)||0}function vu(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+So(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],p=e["padding-"+u];n[u]=So(p)}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 qd;var i=$i(e).getComputedStyle(e),d=U2(i),u=d.left+d.right,p=d.top+d.bottom,g=So(i.width),s=So(i.height);if(i.boxSizing==="border-box"&&(Math.round(g+u)!==t&&(g-=vu(i,"left","right")+u),Math.round(s+p)!==n&&(s-=vu(i,"top","bottom")+p)),!G2(e)){var h=Math.round(g+u)-t,o=Math.round(s+p)-n;Math.abs(h)!==1&&(g-=h),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 $i(e).SVGGraphicsElement}:function(e){return e instanceof $i(e).SVGElement&&typeof e.getBBox=="function"}}();function G2(e){return e===$i(e).document.documentElement}function K2(e){return va?j2(e)?z2(e):V2(e):qd}function Y2(e){var t=e.x,n=e.y,i=e.width,d=e.height,u=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,p=Object.create(u.prototype);return Jd(p,{x:t,y:n,width:i,height:d,top:n,right:t+i,bottom:d+n,left:t}),p}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);Jd(this,{target:t,contentRect:i})}return e}(),Q2=function(){function e(t,n,i){if(this.activeObservations_=[],this.observations_=new Qd,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 $i(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 $i(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}(),ep=typeof WeakMap<"u"?new WeakMap:new Qd,tp=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 Q2(t,n,this);ep.set(this,i)}return e}();["observe","unobserve","disconnect"].forEach(function(e){tp.prototype[e]=function(){var t;return(t=ep.get(this))[e].apply(t,arguments)}});var J2=function(){return typeof Co.ResizeObserver<"u"?Co.ResizeObserver:tp}();const yu=["blur","input","change","changeSelectionStyle","changeSession","copy","focus","paste"],np=$e({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",...yu],render(){return Ei("div")},mounted(){const e=this._editor=Po(Sl.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)}),yu.forEach(t=>{const n="on"+Si(t);typeof this.$.vnode.props[n]=="function"&&e.on(t,this.$emit.bind(this,t))}),this._ro=new J2(()=>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()}},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:np},props:{yaml:{type:String,required:!0}},emits:["update-yaml"],setup(e,t){const n=Yn(e,"yaml");return $h(()=>{t.emit("update-yaml",n.value)}),{yamlInput:n}}}),ex={class:"block"};function tx(e,t,n,i,d,u){const p=ue("VAceEditor");return q(),oe("div",ex,[he(p,{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 ip=xe(q2,[["render",tx]]),nx=$e({name:"EditRule",components:{InputForm:ip,ErrorMessage:un},props:{rule:{type:Object,required:!0}},setup(e){const t=Ri(),n=Yn(e,"rule"),i=Yn(n.value,"yaml"),d=G1();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}}}),ix={class:"column"},rx={class:"is-size-2 mb-4"},ox={class:"field is-grouped is-grouped-centered"},sx={class:"control"},ax={class:"icon is-small"},lx=P("span",null,"Edit",-1),cx={key:0},ux=P("hr",null,null,-1);function hx(e,t,n,i,d,u){var h,o;const p=ue("InputForm"),g=ue("font-awesome-icon"),s=ue("ErrorMessage");return q(),oe("div",ix,[P("h2",rx,"Edit rule: "+Ae(e.rule.id),1),he(p,{yaml:e.yaml,"onUpdate:yaml":t[0]||(t[0]=r=>e.yaml=r),onUpdateYaml:e.updateYAML},null,8,["yaml","onUpdateYaml"]),P("div",ox,[P("p",sx,[P("a",{class:"button is-primary",onClick:t[1]||(t[1]=(...r)=>e.edit&&e.edit(...r))},[P("span",ax,[he(g,{icon:"edit"})]),lx])])]),(h=e.updateRuleTask.last)!=null&&h.error?(q(),oe("div",cx,[ux,he(s,{error:(o=e.updateRuleTask.last)==null?void 0:o.error},null,8,["error"])])):we("",!0)])}const fx=xe(nx,[["render",hx]]),dx=$e({name:"EditRuleWrapper",components:{EditRule:fx,Loading:hn,ErrorMessage:un},props:{id:{type:String,required:!0}},setup(e){const t=Rd(),n=async()=>{await t.perform(e.id)};return nt(async()=>{await n()}),Ye(e,async()=>{await n()}),{getRuleTask:t}}});function px(e,t,n,i,d,u){var h,o;const p=ue("Loading"),g=ue("ErrorMessage"),s=ue("EditRule");return q(),oe(Se,null,[e.getRuleTask.isRunning?(q(),Me(p,{key:0})):we("",!0),e.getRuleTask.isError?(q(),Me(g,{key:1,error:(h=e.getRuleTask.last)==null?void 0:h.error},null,8,["error"])):we("",!0),(o=e.getRuleTask.last)!=null&&o.value?(q(),Me(s,{key:2,rule:e.getRuleTask.last.value},null,8,["rule"])):we("",!0)],64)}const gx=xe(dx,[["render",px]]),mx=$e({name:"EditRuleView",components:{EditRule:gx},props:{id:{type:String,required:!0}},setup(e){const t=()=>{ei(`Edit rule:${e.id} - Mihari`)};nt(()=>{t()}),Ye(()=>e.id,()=>{t()})}});function vx(e,t,n,i,d,u){const p=ue("EditRule",!0);return q(),Me(p,{id:e.id},null,8,["id"])}const yx=xe(mx,[["render",vx]]);function bx(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 h=s.match(/\n([\t ]+|(?!\s).)/g);return h?g.concat(h.map(function(o){var r,l;return(l=(r=o.match(/[\t ]/g))===null||r===void 0?void 0:r.length)!==null&&l!==void 0?l:0})):g},[]);if(d.length){var u=new RegExp(`
1730
- [ ]{`+Math.min.apply(Math,d)+"}","g");i=i.map(function(g){return g.replace(u,`
1731
- `)})}i[0]=i[0].replace(/^\r?\n/,"");var p=i[0];return t.forEach(function(g,s){var h=p.match(/(?:^|\n)( *)$/),o=h?h[1]:"",r=g;typeof g=="string"&&g.includes(`
1731
+ `,"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,p){n("./loader_build")(i);var u=n("./lib/dom"),f=n("./range").Range,g=n("./editor").Editor,s=n("./edit_session").EditSession,h=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,l){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 a="";if(r&&/input|textarea/i.test(r.tagName)){var d=r;a=d.value,r=u.createElement("pre"),d.parentNode.replaceChild(r,d)}else r&&(a=r.textContent,r.innerHTML="");var m=i.createEditSession(a),y=new g(new o(r),m,l),b={document:m,editor:y,onResize:y.resize.bind(y,null)};return d&&(b.textarea=d),y.on("destroy",function(){b.editor.container.env=null}),y.container.env=y.env=b,y},i.createEditSession=function(r,l){var c=new s(r,l);return c.setUndoManager(new h),c},i.Range=f,i.Editor=g,i.EditSession=s,i.UndoManager=h,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 p in n)n.hasOwnProperty(p)&&(i.ace[p]=n[p]);i.ace.default=i.ace,e&&(e.exports=i.ace)})}()})(Qd);var O2=Qd.exports;const Sl=cn(O2),F2="/assets/mode-yaml-a21faa53.js",N2="data:application/javascript;base64,YWNlLmRlZmluZSgiYWNlL3RoZW1lL21vbm9rYWktY3NzIixbInJlcXVpcmUiLCJleHBvcnRzIiwibW9kdWxlIl0sZnVuY3Rpb24oZSx0LG4pe24uZXhwb3J0cz0iLmFjZS1tb25va2FpIC5hY2VfZ3V0dGVyIHtcbiAgYmFja2dyb3VuZDogIzJGMzEyOTtcbiAgY29sb3I6ICM4RjkwOEFcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfcHJpbnQtbWFyZ2luIHtcbiAgd2lkdGg6IDFweDtcbiAgYmFja2dyb3VuZDogIzU1NTY1MVxufVxuXG4uYWNlLW1vbm9rYWkge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjcyODIyO1xuICBjb2xvcjogI0Y4RjhGMlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9jdXJzb3Ige1xuICBjb2xvcjogI0Y4RjhGMFxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9zZWxlY3Rpb24ge1xuICBiYWNrZ3JvdW5kOiAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaS5hY2VfbXVsdGlzZWxlY3QgLmFjZV9zZWxlY3Rpb24uYWNlX3N0YXJ0IHtcbiAgYm94LXNoYWRvdzogMCAwIDNweCAwcHggIzI3MjgyMjtcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfbWFya2VyLWxheWVyIC5hY2Vfc3RlcCB7XG4gIGJhY2tncm91bmQ6IHJnYigxMDIsIDgyLCAwKVxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9icmFja2V0IHtcbiAgbWFyZ2luOiAtMXB4IDAgMCAtMXB4O1xuICBib3JkZXI6IDFweCBzb2xpZCAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX21hcmtlci1sYXllciAuYWNlX2FjdGl2ZS1saW5lIHtcbiAgYmFja2dyb3VuZDogIzIwMjAyMFxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9ndXR0ZXItYWN0aXZlLWxpbmUge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjcyNzI3XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX21hcmtlci1sYXllciAuYWNlX3NlbGVjdGVkLXdvcmQge1xuICBib3JkZXI6IDFweCBzb2xpZCAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2ludmlzaWJsZSB7XG4gIGNvbG9yOiAjNTI1MjRkXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2VudGl0eS5hY2VfbmFtZS5hY2VfdGFnLFxuLmFjZS1tb25va2FpIC5hY2Vfa2V5d29yZCxcbi5hY2UtbW9ub2thaSAuYWNlX21ldGEuYWNlX3RhZyxcbi5hY2UtbW9ub2thaSAuYWNlX3N0b3JhZ2Uge1xuICBjb2xvcjogI0Y5MjY3MlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9wdW5jdHVhdGlvbixcbi5hY2UtbW9ub2thaSAuYWNlX3B1bmN0dWF0aW9uLmFjZV90YWcge1xuICBjb2xvcjogI2ZmZlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9jb25zdGFudC5hY2VfY2hhcmFjdGVyLFxuLmFjZS1tb25va2FpIC5hY2VfY29uc3RhbnQuYWNlX2xhbmd1YWdlLFxuLmFjZS1tb25va2FpIC5hY2VfY29uc3RhbnQuYWNlX251bWVyaWMsXG4uYWNlLW1vbm9rYWkgLmFjZV9jb25zdGFudC5hY2Vfb3RoZXIge1xuICBjb2xvcjogI0FFODFGRlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9pbnZhbGlkIHtcbiAgY29sb3I6ICNGOEY4RjA7XG4gIGJhY2tncm91bmQtY29sb3I6ICNGOTI2NzJcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfaW52YWxpZC5hY2VfZGVwcmVjYXRlZCB7XG4gIGNvbG9yOiAjRjhGOEYwO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjQUU4MUZGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N1cHBvcnQuYWNlX2NvbnN0YW50LFxuLmFjZS1tb25va2FpIC5hY2Vfc3VwcG9ydC5hY2VfZnVuY3Rpb24ge1xuICBjb2xvcjogIzY2RDlFRlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9mb2xkIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI0E2RTIyRTtcbiAgYm9yZGVyLWNvbG9yOiAjRjhGOEYyXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N0b3JhZ2UuYWNlX3R5cGUsXG4uYWNlLW1vbm9rYWkgLmFjZV9zdXBwb3J0LmFjZV9jbGFzcyxcbi5hY2UtbW9ub2thaSAuYWNlX3N1cHBvcnQuYWNlX3R5cGUge1xuICBmb250LXN0eWxlOiBpdGFsaWM7XG4gIGNvbG9yOiAjNjZEOUVGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2VudGl0eS5hY2VfbmFtZS5hY2VfZnVuY3Rpb24sXG4uYWNlLW1vbm9rYWkgLmFjZV9lbnRpdHkuYWNlX290aGVyLFxuLmFjZS1tb25va2FpIC5hY2VfZW50aXR5LmFjZV9vdGhlci5hY2VfYXR0cmlidXRlLW5hbWUsXG4uYWNlLW1vbm9rYWkgLmFjZV92YXJpYWJsZSB7XG4gIGNvbG9yOiAjQTZFMjJFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3ZhcmlhYmxlLmFjZV9wYXJhbWV0ZXIge1xuICBmb250LXN0eWxlOiBpdGFsaWM7XG4gIGNvbG9yOiAjRkQ5NzFGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N0cmluZyB7XG4gIGNvbG9yOiAjRTZEQjc0XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2NvbW1lbnQge1xuICBjb2xvcjogIzc1NzE1RVxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9pbmRlbnQtZ3VpZGUge1xuICBiYWNrZ3JvdW5kOiB1cmwoZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFBRUFBQUFDQ0FZQUFBQ1pnYlluQUFBQUVrbEVRVlFJbVdQUTBGRDBaWEJ6ZC93UEFBalZBb3hlU2dOZUFBQUFBRWxGVGtTdVFtQ0MpIHJpZ2h0IHJlcGVhdC15XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2luZGVudC1ndWlkZS1hY3RpdmUge1xuICBiYWNrZ3JvdW5kOiB1cmwoZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFBRUFBQUFDQ0FZQUFBQ1pnYlluQUFBQUVrbEVRVlFJVzJQUTFkWDl6ekJ6NXN6L0FCQ2NCRkZlbnRMbEFBQUFBRWxGVGtTdVFtQ0MpIHJpZ2h0IHJlcGVhdC15O1xufVxuIn0pLGFjZS5kZWZpbmUoImFjZS90aGVtZS9tb25va2FpIixbInJlcXVpcmUiLCJleHBvcnRzIiwibW9kdWxlIiwiYWNlL3RoZW1lL21vbm9rYWktY3NzIiwiYWNlL2xpYi9kb20iXSxmdW5jdGlvbihlLHQsbil7dC5pc0Rhcms9ITAsdC5jc3NDbGFzcz0iYWNlLW1vbm9rYWkiLHQuY3NzVGV4dD1lKCIuL21vbm9rYWktY3NzIik7dmFyIHI9ZSgiLi4vbGliL2RvbSIpO3IuaW1wb3J0Q3NzU3RyaW5nKHQuY3NzVGV4dCx0LmNzc0NsYXNzLCExKX0pOyAgICAgICAgICAgICAgICAoZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICAgICAgYWNlLnJlcXVpcmUoWyJhY2UvdGhlbWUvbW9ub2thaSJdLCBmdW5jdGlvbihtKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0eXBlb2YgbW9kdWxlID09ICJvYmplY3QiICYmIHR5cGVvZiBleHBvcnRzID09ICJvYmplY3QiICYmIG1vZHVsZSkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgbW9kdWxlLmV4cG9ydHMgPSBtOwogICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgICB9KSgpOwogICAgICAgICAgICA=";Sl.config.setModuleUrl("ace/mode/yaml",F2);Sl.config.setModuleUrl("ace/theme/monokai",N2);var Jd=function(){if(typeof Map<"u")return Map;function e(t,n){var i=-1;return t.some(function(p,u){return p[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),p=this.__entries__[i];return p&&p[1]},t.prototype.set=function(n,i){var p=e(this.__entries__,n);~p?this.__entries__[p][1]=i:this.__entries__.push([n,i])},t.prototype.delete=function(n){var i=this.__entries__,p=e(i,n);~p&&i.splice(p,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 p=0,u=this.__entries__;p<u.length;p++){var f=u[p];n.call(i,f[1],f[0])}},t}()}(),va=typeof window<"u"&&typeof document<"u"&&window.document===document,_o=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")()}(),P2=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(_o):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),D2=2;function B2(e,t){var n=!1,i=!1,p=0;function u(){n&&(n=!1,e()),i&&g()}function f(){P2(u)}function g(){var s=Date.now();if(n){if(s-p<D2)return;i=!0}else n=!0,i=!1,setTimeout(f,t);p=s}return g}var W2=20,H2=["top","right","bottom","left","width","height","size","weight"],U2=typeof MutationObserver<"u",z2=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=B2(this.refresh.bind(this),W2)}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(){!va||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),U2?(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(){!va||!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,p=H2.some(function(u){return!!~i.indexOf(u)});p&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),qd=function(e,t){for(var n=0,i=Object.keys(t);n<i.length;n++){var p=i[n];Object.defineProperty(e,p,{value:t[p],enumerable:!1,writable:!1,configurable:!0})}return e},$i=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||_o},ep=as(0,0,0,0);function Co(e){return parseFloat(e)||0}function yu(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(i,p){var u=e["border-"+p+"-width"];return i+Co(u)},0)}function V2(e){for(var t=["top","right","bottom","left"],n={},i=0,p=t;i<p.length;i++){var u=p[i],f=e["padding-"+u];n[u]=Co(f)}return n}function j2(e){var t=e.getBBox();return as(0,0,t.width,t.height)}function G2(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return ep;var i=$i(e).getComputedStyle(e),p=V2(i),u=p.left+p.right,f=p.top+p.bottom,g=Co(i.width),s=Co(i.height);if(i.boxSizing==="border-box"&&(Math.round(g+u)!==t&&(g-=yu(i,"left","right")+u),Math.round(s+f)!==n&&(s-=yu(i,"top","bottom")+f)),!Y2(e)){var h=Math.round(g+u)-t,o=Math.round(s+f)-n;Math.abs(h)!==1&&(g-=h),Math.abs(o)!==1&&(s-=o)}return as(p.left,p.top,g,s)}var K2=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof $i(e).SVGGraphicsElement}:function(e){return e instanceof $i(e).SVGElement&&typeof e.getBBox=="function"}}();function Y2(e){return e===$i(e).document.documentElement}function X2(e){return va?K2(e)?j2(e):G2(e):ep}function Z2(e){var t=e.x,n=e.y,i=e.width,p=e.height,u=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,f=Object.create(u.prototype);return qd(f,{x:t,y:n,width:i,height:p,top:n,right:t+i,bottom:p+n,left:t}),f}function as(e,t,n,i){return{x:e,y:t,width:n,height:i}}var Q2=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=as(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=X2(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}(),J2=function(){function e(t,n){var i=Z2(n);qd(this,{target:t,contentRect:i})}return e}(),q2=function(){function e(t,n,i){if(this.activeObservations_=[],this.observations_=new Jd,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 $i(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new Q2(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 $i(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 J2(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}(),tp=typeof WeakMap<"u"?new WeakMap:new Jd,np=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=z2.getInstance(),i=new q2(t,n,this);tp.set(this,i)}return e}();["observe","unobserve","disconnect"].forEach(function(e){np.prototype[e]=function(){var t;return(t=tp.get(this))[e].apply(t,arguments)}});var ex=function(){return typeof _o.ResizeObserver<"u"?_o.ResizeObserver:np}();const bu=["blur","input","change","changeSelectionStyle","changeSession","copy","focus","paste"],ip=$e({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",...bu],render(){return Ei("div")},mounted(){const e=this._editor=No(Sl.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)}),bu.forEach(t=>{const n="on"+Si(t);typeof this.$.vnode.props[n]=="function"&&e.on(t,this.$emit.bind(this,t))}),this._ro=new ex(()=>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()}},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)}}}),tx=$e({name:"RuleInputForm",components:{VAceEditor:ip},props:{yaml:{type:String,required:!0}},emits:["update-yaml"],setup(e,t){const n=Yn(e,"yaml");return _h(()=>{t.emit("update-yaml",n.value)}),{yamlInput:n}}}),nx={class:"block"};function ix(e,t,n,i,p,u){const f=ue("VAceEditor");return q(),oe("div",nx,[he(f,{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 rp=xe(tx,[["render",ix]]),rx=$e({name:"EditRule",components:{InputForm:rp,ErrorMessage:un},props:{rule:{type:Object,required:!0}},setup(e){const t=Ri(),n=Yn(e,"rule"),i=Yn(n.value,"yaml"),p=Y1();return{edit:async()=>{const g=await p.perform({id:e.rule.id,yaml:i.value});t.push({name:"Rule",params:{id:g.id}})},yaml:i,updateYAML:g=>{i.value=g},updateRuleTask:p}}}),ox={class:"column"},sx={class:"is-size-2 mb-4"},ax={class:"field is-grouped is-grouped-centered"},lx={class:"control"},cx={class:"icon is-small"},ux=P("span",null,"Edit",-1),hx={key:0},fx=P("hr",null,null,-1);function dx(e,t,n,i,p,u){var h,o;const f=ue("InputForm"),g=ue("font-awesome-icon"),s=ue("ErrorMessage");return q(),oe("div",ox,[P("h2",sx,"Edit rule: "+Ae(e.rule.id),1),he(f,{yaml:e.yaml,"onUpdate:yaml":t[0]||(t[0]=r=>e.yaml=r),onUpdateYaml:e.updateYAML},null,8,["yaml","onUpdateYaml"]),P("div",ax,[P("p",lx,[P("a",{class:"button is-primary",onClick:t[1]||(t[1]=(...r)=>e.edit&&e.edit(...r))},[P("span",cx,[he(g,{icon:"edit"})]),ux])])]),(h=e.updateRuleTask.last)!=null&&h.error?(q(),oe("div",hx,[fx,he(s,{error:(o=e.updateRuleTask.last)==null?void 0:o.error},null,8,["error"])])):we("",!0)])}const px=xe(rx,[["render",dx]]),gx=$e({name:"EditRuleWrapper",components:{EditRule:px,Loading:hn,ErrorMessage:un},props:{id:{type:String,required:!0}},setup(e){const t=Ld(),n=async()=>{await t.perform(e.id)};return nt(async()=>{await n()}),Ye(e,async()=>{await n()}),{getRuleTask:t}}});function mx(e,t,n,i,p,u){var h,o;const f=ue("Loading"),g=ue("ErrorMessage"),s=ue("EditRule");return q(),oe(Se,null,[e.getRuleTask.isRunning?(q(),Me(f,{key:0})):we("",!0),e.getRuleTask.isError?(q(),Me(g,{key:1,error:(h=e.getRuleTask.last)==null?void 0:h.error},null,8,["error"])):we("",!0),(o=e.getRuleTask.last)!=null&&o.value?(q(),Me(s,{key:2,rule:e.getRuleTask.last.value},null,8,["rule"])):we("",!0)],64)}const vx=xe(gx,[["render",mx]]),yx=$e({name:"EditRuleView",components:{EditRule:vx},props:{id:{type:String,required:!0}},setup(e){const t=()=>{ei(`Edit rule:${e.id} - Mihari`)};nt(()=>{t()}),Ye(()=>e.id,()=>{t()})}});function bx(e,t,n,i,p,u){const f=ue("EditRule",!0);return q(),Me(f,{id:e.id},null,8,["id"])}const wx=xe(yx,[["render",bx]]);function $x(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 p=i.reduce(function(g,s){var h=s.match(/\n([\t ]+|(?!\s).)/g);return h?g.concat(h.map(function(o){var r,l;return(l=(r=o.match(/[\t ]/g))===null||r===void 0?void 0:r.length)!==null&&l!==void 0?l:0})):g},[]);if(p.length){var u=new RegExp(`
1732
+ [ ]{`+Math.min.apply(Math,p)+"}","g");i=i.map(function(g){return g.replace(u,`
1733
+ `)})}i[0]=i[0].replace(/^\r?\n/,"");var f=i[0];return t.forEach(function(g,s){var h=f.match(/(?:^|\n)( *)$/),o=h?h[1]:"",r=g;typeof g=="string"&&g.includes(`
1732
1734
  `)&&(r=String(g).split(`
1733
1735
  `).map(function(l,c){return c===0?l:""+o+l}).join(`
1734
- `)),p+=r+i[s+1]}),p}var Zr,wx=new Uint8Array(16);function $x(){if(!Zr&&(Zr=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Zr))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Zr(wx)}const _x=/^(?:[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 Cx(e){return typeof e=="string"&&_x.test(e)}var rt=[];for(var Ls=0;Ls<256;++Ls)rt.push((Ls+256).toString(16).substr(1));function Sx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(rt[e[t+0]]+rt[e[t+1]]+rt[e[t+2]]+rt[e[t+3]]+"-"+rt[e[t+4]]+rt[e[t+5]]+"-"+rt[e[t+6]]+rt[e[t+7]]+"-"+rt[e[t+8]]+rt[e[t+9]]+"-"+rt[e[t+10]]+rt[e[t+11]]+rt[e[t+12]]+rt[e[t+13]]+rt[e[t+14]]+rt[e[t+15]]).toLowerCase();if(!Cx(n))throw TypeError("Stringified UUID is invalid");return n}function Ax(e,t,n){e=e||{};var i=e.random||(e.rng||$x)();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 Sx(i)}function xx(){const e=Ax(),t=Mi();return bx`id: ${e}
1736
+ `)),f+=r+i[s+1]}),f}var Zr,_x=new Uint8Array(16);function Cx(){if(!Zr&&(Zr=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Zr))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Zr(_x)}const Sx=/^(?:[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 Ax(e){return typeof e=="string"&&Sx.test(e)}var rt=[];for(var Rs=0;Rs<256;++Rs)rt.push((Rs+256).toString(16).substr(1));function xx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(rt[e[t+0]]+rt[e[t+1]]+rt[e[t+2]]+rt[e[t+3]]+"-"+rt[e[t+4]]+rt[e[t+5]]+"-"+rt[e[t+6]]+rt[e[t+7]]+"-"+rt[e[t+8]]+rt[e[t+9]]+"-"+rt[e[t+10]]+rt[e[t+11]]+rt[e[t+12]]+rt[e[t+13]]+rt[e[t+14]]+rt[e[t+15]]).toLowerCase();if(!Ax(n))throw TypeError("Stringified UUID is invalid");return n}function kx(e,t,n){e=e||{};var i=e.random||(e.rng||Cx)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,t){n=n||0;for(var p=0;p<16;++p)t[n+p]=i[p];return t}return xx(i)}function Ex(){const e=kx(),t=Mi();return $x`id: ${e}
1735
1737
  title: Title goes here
1736
1738
  description: Description goes here
1737
1739
  created_on: ${t.format("YYYY-MM-DD")}
1738
- queries: []`}const kx=$e({name:"NewRule",components:{InputForm:ip,ErrorMessage:un},setup(){const e=Ri(),t=Te(xx()),n=j1();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}}}),Ex={class:"column"},Rx=P("h2",{class:"is-size-2 mb-4"},"New rule",-1),Lx={class:"field is-grouped is-grouped-centered"},Tx={class:"control"},Mx={class:"icon is-small"},Ix=P("span",null,"Create",-1),Ox={key:0},Fx=P("hr",null,null,-1);function Nx(e,t,n,i,d,u){var h,o;const p=ue("InputForm"),g=ue("font-awesome-icon"),s=ue("ErrorMessage");return q(),oe("div",Ex,[Rx,he(p,{yaml:e.yaml,"onUpdate:yaml":t[0]||(t[0]=r=>e.yaml=r),onUpdateYaml:e.updateYAML},null,8,["yaml","onUpdateYaml"]),P("div",Lx,[P("p",Tx,[P("a",{class:"button is-primary",onClick:t[1]||(t[1]=(...r)=>e.create&&e.create(...r))},[P("span",Mx,[he(g,{icon:"plus"})]),Ix])])]),(h=e.createRuleTask.last)!=null&&h.error?(q(),oe("div",Ox,[Fx,he(s,{error:(o=e.createRuleTask.last)==null?void 0:o.error},null,8,["error"])])):we("",!0)])}const Px=xe(kx,[["render",Nx]]),Dx=$e({name:"NewRuleView",components:{NewRule:Px},setup(){const e=()=>{ei("New rule - Mihari")};nt(()=>{e()})}});function Bx(e,t,n,i,d,u){const p=ue("NewRule",!0);return q(),Me(p)}const Wx=xe(Dx,[["render",Bx]]),Hx=$e({name:"YAML",components:{VAceEditor:np},props:{yaml:{type:String,required:!0}},setup(){}}),Ux={class:"block"};function zx(e,t,n,i,d,u){const p=ue("VAceEditor");return q(),oe("div",Ux,[he(p,{class:"vue-ace-editor",value:e.yaml,lang:"yaml",theme:"monokai",options:{readOnly:!0,fontSize:16,maxLines:1e4,minLines:6}},null,8,["value"])])}const Vx=xe(Hx,[["render",zx]]),jx=$e({name:"RuleItem",props:{rule:{type:Object,required:!0}},components:{YAML:Vx,Alerts:Wd,Loading:hn,ErrorMessage:un},emits:["refresh"],setup(e,t){const n=Ri(),i=z1(),d=V1();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}}}),Gx={class:"column"},Kx={key:0},Yx=P("hr",null,null,-1),Xx={key:1},Zx=P("hr",null,null,-1),Qx=P("h2",{class:"is-size-2 mb-4"},"Rule",-1),Jx={class:"is-clearfix"},qx={class:"buttons is-pulled-right"},ek=P("span",null,"Run",-1),tk={class:"icon is-small"},nk=P("span",null,"Edit",-1),ik={class:"icon is-small"},rk=P("span",null,"Delete",-1),ok={class:"icon is-small"},sk=P("hr",null,null,-1),ak={class:"column"},lk=P("h2",{class:"is-size-2 mb-4"},"Related alerts",-1);function ck(e,t,n,i,d,u){var l;const p=ue("Loading"),g=ue("ErrorMessage"),s=ue("font-awesome-icon"),h=ue("router-link"),o=ue("YAML"),r=ue("Alerts");return q(),oe(Se,null,[P("div",Gx,[e.runRuleTask.isRunning?(q(),oe("div",Kx,[he(p),Yx])):we("",!0),(l=e.runRuleTask.last)!=null&&l.error?(q(),oe("div",Xx,[he(g,{error:e.runRuleTask.last.error},null,8,["error"]),Zx])):we("",!0),Qx,P("p",Jx,[P("span",qx,[P("button",{class:"button is-primary is-light is-small",onClick:t[0]||(t[0]=(...c)=>e.runRule&&e.runRule(...c))},[ek,P("span",tk,[he(s,{icon:"arrow-right"})])]),he(h,{class:"button is-info is-light is-small",to:{name:"EditRule",params:{id:e.rule.id}}},{default:dt(()=>[nk,P("span",ik,[he(s,{icon:"edit"})])]),_:1},8,["to"]),P("button",{class:"button is-light is-small",onClick:t[1]||(t[1]=(...c)=>e.deleteRule&&e.deleteRule(...c))},[rk,P("span",ok,[he(s,{icon:"times"})])])])]),he(o,{yaml:e.rule.yaml},null,8,["yaml"])]),sk,P("div",ak,[lk,he(r,{ruleId:e.rule.id},null,8,["ruleId"])])],64)}const uk=xe(jx,[["render",ck]]),hk=$e({name:"RuleWrapper",components:{Rule:uk,Loading:hn,ErrorMessage:un},props:{id:{type:String,required:!0}},setup(e){const t=Rd(),n=async()=>{await t.perform(e.id)},i=async()=>{await n()};return nt(async()=>{await n()}),Ye(e,async()=>{await n()}),{getRuleTask:t,refresh:i}}});function fk(e,t,n,i,d,u){var h,o;const p=ue("Loading"),g=ue("ErrorMessage"),s=ue("Rule");return q(),oe(Se,null,[e.getRuleTask.isRunning?(q(),Me(p,{key:0})):we("",!0),e.getRuleTask.isError?(q(),Me(g,{key:1,error:(h=e.getRuleTask.last)==null?void 0:h.error},null,8,["error"])):we("",!0),(o=e.getRuleTask.last)!=null&&o.value?(q(),Me(s,{key:2,rule:e.getRuleTask.last.value,onRefresh:e.refresh},null,8,["rule","onRefresh"])):we("",!0)],64)}const dk=xe(hk,[["render",fk]]),pk=$e({name:"RuleView",components:{Rule:dk},props:{id:{type:String,required:!0}},setup(e){const t=()=>{ei(`Rule:${e.id} - Mihari`)};nt(()=>{t()}),Ye(()=>e.id,()=>{t()})}});function gk(e,t,n,i,d,u){const p=ue("Rule",!0);return q(),Me(p,{id:e.id},null,8,["id"])}const mk=xe(pk,[["render",gk]]),vk=$e({name:"RulesForm",props:{tags:{type:Array,required:!0},page:{type:Number,required:!0},tag:{type:String,required:!1}},setup(e){const t=Jo(),n=Te(void 0),i=Te(void 0),d=Yn(e,"tag"),u=Te(void 0),p=Te(void 0),g=()=>{const h=t.query.tag;d.value===void 0&&(d.value=Ui(h))},s=()=>(g(),{description:n.value===""?void 0:n.value,page:e.page,tag:d.value===""?void 0:d.value,title:u.value===""?void 0:u.value,toAt:p.value===""?void 0:p.value,fromAt:i.value===""?void 0:i.value});return Ye(()=>e.tag,()=>{d.value=e.tag}),{description:n,fromAt:i,getSearchParams:s,title:u,toAt:p,tagInput:d}}}),yk={class:"columns"},bk={class:"column"},wk={class:"field is-horizontal"},$k=P("div",{class:"field-label is-normal"},[P("label",{class:"label"},"Title")],-1),_k={class:"field-body"},Ck={class:"field"},Sk={class:"control"},Ak={class:"column"},xk={class:"field is-horizontal"},kk=P("div",{class:"field-label is-normal"},[P("label",{class:"label"},"Description")],-1),Ek={class:"field-body"},Rk={class:"field"},Lk={class:"control"},Tk={class:"columns"},Mk={class:"column"},Ik={class:"field is-horizontal"},Ok=P("div",{class:"field-label is-normal"},[P("label",{class:"label"},"Tag")],-1),Fk={class:"field-body"},Nk={class:"field"},Pk={class:"control"},Dk={class:"select"},Bk=P("option",null,null,-1),Wk=P("div",{class:"column"},null,-1),Hk={class:"columns"},Uk={class:"column"},zk={class:"field is-horizontal"},Vk=P("div",{class:"field-label is-normal"},[P("label",{class:"label"},"From")],-1),jk={class:"field-body"},Gk={class:"field"},Kk={class:"control"},Yk={class:"column"},Xk={class:"field is-horizontal"},Zk=P("div",{class:"field-label is-normal"},[P("label",{class:"label"},"To")],-1),Qk={class:"field-body"},Jk={class:"field"},qk={class:"control"};function eE(e,t,n,i,d,u){return q(),oe(Se,null,[P("div",yk,[P("div",bk,[P("div",wk,[$k,P("div",_k,[P("div",Ck,[P("p",Sk,[Tt(P("input",{class:"input",type:"text","onUpdate:modelValue":t[0]||(t[0]=p=>e.title=p)},null,512),[[Ot,e.title]])])])])])]),P("div",Ak,[P("div",xk,[kk,P("div",Ek,[P("div",Rk,[P("p",Lk,[Tt(P("input",{class:"input",type:"text","onUpdate:modelValue":t[1]||(t[1]=p=>e.description=p)},null,512),[[Ot,e.description]])])])])])])]),P("div",Tk,[P("div",Mk,[P("div",Ik,[Ok,P("div",Fk,[P("div",Nk,[P("div",Pk,[P("div",Dk,[Tt(P("select",{"onUpdate:modelValue":t[2]||(t[2]=p=>e.tagInput=p)},[Bk,(q(!0),oe(Se,null,ct(e.tags,p=>(q(),oe("option",{key:p},Ae(p),1))),128))],512),[[pr,e.tagInput]])])])])])])]),Wk]),P("div",Hk,[P("div",Uk,[P("div",zk,[Vk,P("div",jk,[P("div",Gk,[P("p",Kk,[Tt(P("input",{class:"input",type:"date","onUpdate:modelValue":t[3]||(t[3]=p=>e.fromAt=p)},null,512),[[Ot,e.fromAt]])])])])])]),P("div",Yk,[P("div",Xk,[Zk,P("div",Qk,[P("div",Jk,[P("p",qk,[Tt(P("input",{class:"input",type:"date","onUpdate:modelValue":t[4]||(t[4]=p=>e.toAt=p)},null,512),[[Ot,e.toAt]])])])])])])])],64)}const tE=xe(vk,[["render",eE]]),nE=$e({name:"RulesItem",props:{rules:{type:Object,required:!0}},components:{Pagination:Nd,Tags:Ld},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)},p=Ee(()=>e.rules.rules.length>0);return{updatePage:i,refreshPage:d,updateTag:u,hasRules:p}}}),iE={key:0},rE={class:"table is-fullwidth"},oE=P("tr",null,[P("th",null,"ID"),P("th",null,"Title"),P("th",null,"Description"),P("th",null,"Tags")],-1),sE={class:"help"};function aE(e,t,n,i,d,u){const p=ue("router-link"),g=ue("Tags"),s=ue("Pagination");return q(),oe(Se,null,[e.hasRules?(q(),oe("div",iE,[P("table",rE,[oE,(q(!0),oe(Se,null,ct(e.rules.rules,h=>(q(),oe("tr",{key:h.id},[P("td",null,[he(p,{to:{name:"Rule",params:{id:h.id}}},{default:dt(()=>[et(Ae(h.id),1)]),_:2},1032,["to"])]),P("td",null,Ae(h.title),1),P("td",null,Ae(h.description),1),P("td",null,[he(g,{tags:h.tags,onUpdateTag:e.updateTag},null,8,["tags","onUpdateTag"])])]))),128))])])):we("",!0),he(s,{currentPage:e.rules.currentPage,total:e.rules.total,pageSize:e.rules.pageSize,onUpdatePage:e.updatePage},null,8,["currentPage","total","pageSize","onUpdatePage"]),P("p",sE,"("+Ae(e.rules.total)+" results in total, "+Ae(e.rules.rules.length)+" shown)",1)],64)}const lE=xe(nE,[["render",aE]]),cE=$e({name:"RulesWrapper",components:{Rules:lE,Loading:hn,FormComponent:tE,ErrorMessage:un},setup(){const e=Te(1),t=Te(void 0),n=Te(),i=U1(),d=kd(),u=async()=>{var l;const r=(l=n.value)==null?void 0:l.getSearchParams();return await i.perform(r)},p=r=>{e.value=r},g=()=>{e.value=1},s=async()=>{g(),await u()},h=r=>{t.value===r?t.value=void 0:t.value=r,zt(async()=>await s())},o=async()=>{await s()};return nt(async()=>{d.perform(),await u()}),Ye([e,t],async()=>{zt(async()=>await u())}),{form:n,getRulesTask:i,getTagsTask:d,page:e,tag:t,refreshPage:o,search:s,updatePage:p,updateTag:h}}}),uE={class:"box mb-6"},hE=P("hr",null,null,-1),fE={class:"column"},dE={class:"field is-grouped is-grouped-centered"},pE={class:"control"},gE={class:"icon is-small"},mE=P("span",null,"Search",-1),vE={key:0},yE=P("hr",null,null,-1);function bE(e,t,n,i,d,u){var r,l,c;const p=ue("FormComponent"),g=ue("font-awesome-icon"),s=ue("Loading"),h=ue("ErrorMessage"),o=ue("Rules");return q(),oe(Se,null,[P("div",uE,[he(p,{ref:"form",tags:((r=e.getTagsTask.last)==null?void 0:r.value)||[],page:e.page,tag:e.tag},null,8,["tags","page","tag"]),hE,P("div",fE,[P("div",dE,[P("p",pE,[P("a",{class:"button is-primary",onClick:t[0]||(t[0]=(...a)=>e.search&&e.search(...a))},[P("span",gE,[he(g,{icon:"search"})]),mE])])])])]),e.getRulesTask.performCount>0?(q(),oe("div",vE,[yE,e.getRulesTask.isRunning?(q(),Me(s,{key:0})):we("",!0),e.getRulesTask.isError?(q(),Me(h,{key:1,error:(l=e.getRulesTask.last)==null?void 0:l.error},null,8,["error"])):we("",!0),(c=e.getRulesTask.last)!=null&&c.value?(q(),Me(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 wE=xe(cE,[["render",bE]]),$E=$e({name:"RulesView",components:{Rules:wE},setup(){ei("Rules - Mihari")}});function _E(e,t,n,i,d,u){const p=ue("Rules",!0);return q(),Me(p)}const CE=xe($E,[["render",_E]]),SE=[{path:"/",name:"Alerts",component:gC},{path:"/configs",name:"Configs",component:T2},{path:"/artifacts/:id",name:"Artifact",component:u2,props:!0},{path:"/rules",name:"Rules",component:CE},{path:"/rules/new",name:"NewRule",component:Wx},{path:"/rules/:id",name:"Rule",component:mk,props:!0},{path:"/rules/:id/edit",name:"EditRule",component:yx,props:!0}],AE=Kb({history:cb(),routes:SE});Bg.add(Vg,qg,zg,em,Gg,Hg,Xg,Yg,Jg,Qg);const rp=xf(V0);rp.component("font-awesome-icon",R0);rp.use(AE).mount("#app");
1740
+ queries: []`}const Rx=$e({name:"NewRule",components:{InputForm:rp,ErrorMessage:un},setup(){const e=Ri(),t=Te(Ex()),n=K1();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}}}),Lx={class:"column"},Tx=P("h2",{class:"is-size-2 mb-4"},"New rule",-1),Mx={class:"field is-grouped is-grouped-centered"},Ix={class:"control"},Ox={class:"icon is-small"},Fx=P("span",null,"Create",-1),Nx={key:0},Px=P("hr",null,null,-1);function Dx(e,t,n,i,p,u){var h,o;const f=ue("InputForm"),g=ue("font-awesome-icon"),s=ue("ErrorMessage");return q(),oe("div",Lx,[Tx,he(f,{yaml:e.yaml,"onUpdate:yaml":t[0]||(t[0]=r=>e.yaml=r),onUpdateYaml:e.updateYAML},null,8,["yaml","onUpdateYaml"]),P("div",Mx,[P("p",Ix,[P("a",{class:"button is-primary",onClick:t[1]||(t[1]=(...r)=>e.create&&e.create(...r))},[P("span",Ox,[he(g,{icon:"plus"})]),Fx])])]),(h=e.createRuleTask.last)!=null&&h.error?(q(),oe("div",Nx,[Px,he(s,{error:(o=e.createRuleTask.last)==null?void 0:o.error},null,8,["error"])])):we("",!0)])}const Bx=xe(Rx,[["render",Dx]]),Wx=$e({name:"NewRuleView",components:{NewRule:Bx},setup(){const e=()=>{ei("New rule - Mihari")};nt(()=>{e()})}});function Hx(e,t,n,i,p,u){const f=ue("NewRule",!0);return q(),Me(f)}const Ux=xe(Wx,[["render",Hx]]),zx=$e({name:"YAML",components:{VAceEditor:ip},props:{yaml:{type:String,required:!0}},setup(){}}),Vx={class:"block"};function jx(e,t,n,i,p,u){const f=ue("VAceEditor");return q(),oe("div",Vx,[he(f,{class:"vue-ace-editor",value:e.yaml,lang:"yaml",theme:"monokai",options:{readOnly:!0,fontSize:16,maxLines:1e4,minLines:6}},null,8,["value"])])}const Gx=xe(zx,[["render",jx]]),Kx=$e({name:"RuleItem",props:{rule:{type:Object,required:!0}},components:{YAML:Gx,Alerts:Hd,Loading:hn,ErrorMessage:un},emits:["refresh"],setup(e,t){const n=Ri(),i=j1(),p=G1();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 p.perform(e.rule.id),t.emit("refresh")},runRuleTask:p}}}),Yx={class:"column"},Xx={key:0},Zx=P("hr",null,null,-1),Qx={key:1},Jx=P("hr",null,null,-1),qx=P("h2",{class:"is-size-2 mb-4"},"Rule",-1),ek={class:"is-clearfix"},tk={class:"buttons is-pulled-right"},nk=P("span",null,"Run",-1),ik={class:"icon is-small"},rk=P("span",null,"Edit",-1),ok={class:"icon is-small"},sk=P("span",null,"Delete",-1),ak={class:"icon is-small"},lk=P("hr",null,null,-1),ck={class:"column"},uk=P("h2",{class:"is-size-2 mb-4"},"Related alerts",-1);function hk(e,t,n,i,p,u){var l;const f=ue("Loading"),g=ue("ErrorMessage"),s=ue("font-awesome-icon"),h=ue("router-link"),o=ue("YAML"),r=ue("Alerts");return q(),oe(Se,null,[P("div",Yx,[e.runRuleTask.isRunning?(q(),oe("div",Xx,[he(f),Zx])):we("",!0),(l=e.runRuleTask.last)!=null&&l.error?(q(),oe("div",Qx,[he(g,{error:e.runRuleTask.last.error},null,8,["error"]),Jx])):we("",!0),qx,P("p",ek,[P("span",tk,[P("button",{class:"button is-primary is-light is-small",onClick:t[0]||(t[0]=(...c)=>e.runRule&&e.runRule(...c))},[nk,P("span",ik,[he(s,{icon:"arrow-right"})])]),he(h,{class:"button is-info is-light is-small",to:{name:"EditRule",params:{id:e.rule.id}}},{default:dt(()=>[rk,P("span",ok,[he(s,{icon:"edit"})])]),_:1},8,["to"]),P("button",{class:"button is-light is-small",onClick:t[1]||(t[1]=(...c)=>e.deleteRule&&e.deleteRule(...c))},[sk,P("span",ak,[he(s,{icon:"times"})])])])]),he(o,{yaml:e.rule.yaml},null,8,["yaml"])]),lk,P("div",ck,[uk,he(r,{ruleId:e.rule.id},null,8,["ruleId"])])],64)}const fk=xe(Kx,[["render",hk]]),dk=$e({name:"RuleWrapper",components:{Rule:fk,Loading:hn,ErrorMessage:un},props:{id:{type:String,required:!0}},setup(e){const t=Ld(),n=async()=>{await t.perform(e.id)},i=async()=>{await n()};return nt(async()=>{await n()}),Ye(e,async()=>{await n()}),{getRuleTask:t,refresh:i}}});function pk(e,t,n,i,p,u){var h,o;const f=ue("Loading"),g=ue("ErrorMessage"),s=ue("Rule");return q(),oe(Se,null,[e.getRuleTask.isRunning?(q(),Me(f,{key:0})):we("",!0),e.getRuleTask.isError?(q(),Me(g,{key:1,error:(h=e.getRuleTask.last)==null?void 0:h.error},null,8,["error"])):we("",!0),(o=e.getRuleTask.last)!=null&&o.value?(q(),Me(s,{key:2,rule:e.getRuleTask.last.value,onRefresh:e.refresh},null,8,["rule","onRefresh"])):we("",!0)],64)}const gk=xe(dk,[["render",pk]]),mk=$e({name:"RuleView",components:{Rule:gk},props:{id:{type:String,required:!0}},setup(e){const t=()=>{ei(`Rule:${e.id} - Mihari`)};nt(()=>{t()}),Ye(()=>e.id,()=>{t()})}});function vk(e,t,n,i,p,u){const f=ue("Rule",!0);return q(),Me(f,{id:e.id},null,8,["id"])}const yk=xe(mk,[["render",vk]]),bk=$e({name:"RulesForm",props:{tags:{type:Array,required:!0},page:{type:Number,required:!0},tag:{type:String,required:!1}},setup(e){const t=Qo(),n=Te(void 0),i=Te(void 0),p=Yn(e,"tag"),u=Te(void 0),f=Te(void 0),g=()=>{const h=t.query.tag;p.value===void 0&&(p.value=Ui(h))},s=()=>(g(),{description:n.value===""?void 0:n.value,page:e.page,tag:p.value===""?void 0:p.value,title:u.value===""?void 0:u.value,toAt:f.value===""?void 0:f.value,fromAt:i.value===""?void 0:i.value});return Ye(()=>e.tag,()=>{p.value=e.tag}),{description:n,fromAt:i,getSearchParams:s,title:u,toAt:f,tagInput:p}}}),wk={class:"columns"},$k={class:"column"},_k={class:"field is-horizontal"},Ck=P("div",{class:"field-label is-normal"},[P("label",{class:"label"},"Title")],-1),Sk={class:"field-body"},Ak={class:"field"},xk={class:"control"},kk={class:"column"},Ek={class:"field is-horizontal"},Rk=P("div",{class:"field-label is-normal"},[P("label",{class:"label"},"Description")],-1),Lk={class:"field-body"},Tk={class:"field"},Mk={class:"control"},Ik={class:"columns"},Ok={class:"column"},Fk={class:"field is-horizontal"},Nk=P("div",{class:"field-label is-normal"},[P("label",{class:"label"},"Tag")],-1),Pk={class:"field-body"},Dk={class:"field"},Bk={class:"control"},Wk={class:"select"},Hk=P("option",null,null,-1),Uk=P("div",{class:"column"},null,-1),zk={class:"columns"},Vk={class:"column"},jk={class:"field is-horizontal"},Gk=P("div",{class:"field-label is-normal"},[P("label",{class:"label"},"From")],-1),Kk={class:"field-body"},Yk={class:"field"},Xk={class:"control"},Zk={class:"column"},Qk={class:"field is-horizontal"},Jk=P("div",{class:"field-label is-normal"},[P("label",{class:"label"},"To")],-1),qk={class:"field-body"},eE={class:"field"},tE={class:"control"};function nE(e,t,n,i,p,u){return q(),oe(Se,null,[P("div",wk,[P("div",$k,[P("div",_k,[Ck,P("div",Sk,[P("div",Ak,[P("p",xk,[Tt(P("input",{class:"input",type:"text","onUpdate:modelValue":t[0]||(t[0]=f=>e.title=f)},null,512),[[Ot,e.title]])])])])])]),P("div",kk,[P("div",Ek,[Rk,P("div",Lk,[P("div",Tk,[P("p",Mk,[Tt(P("input",{class:"input",type:"text","onUpdate:modelValue":t[1]||(t[1]=f=>e.description=f)},null,512),[[Ot,e.description]])])])])])])]),P("div",Ik,[P("div",Ok,[P("div",Fk,[Nk,P("div",Pk,[P("div",Dk,[P("div",Bk,[P("div",Wk,[Tt(P("select",{"onUpdate:modelValue":t[2]||(t[2]=f=>e.tagInput=f)},[Hk,(q(!0),oe(Se,null,ct(e.tags,f=>(q(),oe("option",{key:f},Ae(f),1))),128))],512),[[pr,e.tagInput]])])])])])])]),Uk]),P("div",zk,[P("div",Vk,[P("div",jk,[Gk,P("div",Kk,[P("div",Yk,[P("p",Xk,[Tt(P("input",{class:"input",type:"date","onUpdate:modelValue":t[3]||(t[3]=f=>e.fromAt=f)},null,512),[[Ot,e.fromAt]])])])])])]),P("div",Zk,[P("div",Qk,[Jk,P("div",qk,[P("div",eE,[P("p",tE,[Tt(P("input",{class:"input",type:"date","onUpdate:modelValue":t[4]||(t[4]=f=>e.toAt=f)},null,512),[[Ot,e.toAt]])])])])])])])],64)}const iE=xe(bk,[["render",nE]]),rE=$e({name:"RulesItem",props:{rules:{type:Object,required:!0}},components:{Pagination:Pd,Tags:Td},emits:["update-page","refresh-page","update-tag"],setup(e,t){const n=()=>{window.scrollTo({top:0})},i=g=>{n(),t.emit("update-page",g)},p=()=>{n(),t.emit("refresh-page")},u=g=>{n(),t.emit("update-tag",g)},f=Ee(()=>e.rules.rules.length>0);return{updatePage:i,refreshPage:p,updateTag:u,hasRules:f}}}),oE={key:0},sE={class:"table is-fullwidth"},aE=P("tr",null,[P("th",null,"ID"),P("th",null,"Title"),P("th",null,"Description"),P("th",null,"Tags")],-1),lE={class:"help"};function cE(e,t,n,i,p,u){const f=ue("router-link"),g=ue("Tags"),s=ue("Pagination");return q(),oe(Se,null,[e.hasRules?(q(),oe("div",oE,[P("table",sE,[aE,(q(!0),oe(Se,null,ct(e.rules.rules,h=>(q(),oe("tr",{key:h.id},[P("td",null,[he(f,{to:{name:"Rule",params:{id:h.id}}},{default:dt(()=>[et(Ae(h.id),1)]),_:2},1032,["to"])]),P("td",null,Ae(h.title),1),P("td",null,Ae(h.description),1),P("td",null,[he(g,{tags:h.tags,onUpdateTag:e.updateTag},null,8,["tags","onUpdateTag"])])]))),128))])])):we("",!0),he(s,{currentPage:e.rules.currentPage,total:e.rules.total,pageSize:e.rules.pageSize,onUpdatePage:e.updatePage},null,8,["currentPage","total","pageSize","onUpdatePage"]),P("p",lE,"("+Ae(e.rules.total)+" results in total, "+Ae(e.rules.rules.length)+" shown)",1)],64)}const uE=xe(rE,[["render",cE]]),hE=$e({name:"RulesWrapper",components:{Rules:uE,Loading:hn,FormComponent:iE,ErrorMessage:un},setup(){const e=Te(1),t=Te(void 0),n=Te(),i=V1(),p=Ed(),u=async()=>{var l;const r=(l=n.value)==null?void 0:l.getSearchParams();return await i.perform(r)},f=r=>{e.value=r},g=()=>{e.value=1},s=async()=>{g(),await u()},h=r=>{t.value===r?t.value=void 0:t.value=r,zt(async()=>await s())},o=async()=>{await s()};return nt(async()=>{p.perform(),await u()}),Ye([e,t],async()=>{zt(async()=>await u())}),{form:n,getRulesTask:i,getTagsTask:p,page:e,tag:t,refreshPage:o,search:s,updatePage:f,updateTag:h}}}),fE={class:"box mb-6"},dE=P("hr",null,null,-1),pE={class:"column"},gE={class:"field is-grouped is-grouped-centered"},mE={class:"control"},vE={class:"icon is-small"},yE=P("span",null,"Search",-1),bE={key:0},wE=P("hr",null,null,-1);function $E(e,t,n,i,p,u){var r,l,c;const f=ue("FormComponent"),g=ue("font-awesome-icon"),s=ue("Loading"),h=ue("ErrorMessage"),o=ue("Rules");return q(),oe(Se,null,[P("div",fE,[he(f,{ref:"form",tags:((r=e.getTagsTask.last)==null?void 0:r.value)||[],page:e.page,tag:e.tag},null,8,["tags","page","tag"]),dE,P("div",pE,[P("div",gE,[P("p",mE,[P("a",{class:"button is-primary",onClick:t[0]||(t[0]=(...a)=>e.search&&e.search(...a))},[P("span",vE,[he(g,{icon:"search"})]),yE])])])])]),e.getRulesTask.performCount>0?(q(),oe("div",bE,[wE,e.getRulesTask.isRunning?(q(),Me(s,{key:0})):we("",!0),e.getRulesTask.isError?(q(),Me(h,{key:1,error:(l=e.getRulesTask.last)==null?void 0:l.error},null,8,["error"])):we("",!0),(c=e.getRulesTask.last)!=null&&c.value?(q(),Me(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 _E=xe(hE,[["render",$E]]),CE=$e({name:"RulesView",components:{Rules:_E},setup(){ei("Rules - Mihari")}});function SE(e,t,n,i,p,u){const f=ue("Rules",!0);return q(),Me(f)}const AE=xe(CE,[["render",SE]]),xE=[{path:"/",name:"Alerts",component:vC},{path:"/configs",name:"Configs",component:I2},{path:"/artifacts/:id",name:"Artifact",component:f2,props:!0},{path:"/rules",name:"Rules",component:AE},{path:"/rules/new",name:"NewRule",component:Ux},{path:"/rules/:id",name:"Rule",component:yk,props:!0},{path:"/rules/:id/edit",name:"EditRule",component:wx,props:!0}],kE=Yb({history:ub(),routes:xE});Wg.add(jg,em,Vg,tm,Kg,Ug,Zg,Xg,qg,Jg);const op=kf(j0);op.component("font-awesome-icon",L0);op.use(kE).mount("#app");