mihari 8.2.0 → 8.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1621 @@
1
+ (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const h of i)if(h.type==="childList")for(const f of h.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&r(f)}).observe(document,{childList:!0,subtree:!0});function n(i){const h={};return i.integrity&&(h.integrity=i.integrity),i.referrerPolicy&&(h.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?h.credentials="include":i.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function r(i){if(i.ep)return;i.ep=!0;const h=n(i);fetch(i.href,h)}})();/*!
2
+ * Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com
3
+ * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
4
+ * Copyright 2025 Fonticons, Inc.
5
+ */function js(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Lg(e){if(Array.isArray(e))return e}function Rg(e){if(Array.isArray(e))return js(e)}function Ig(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Og(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Sh(r.key),r)}}function Ng(e,t,n){return t&&Og(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Oi(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Oa(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(s){throw s},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
6
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var h,f=!0,g=!1;return{s:function(){n=n.call(e)},n:function(){var s=n.next();return f=s.done,s},e:function(s){g=!0,h=s},f:function(){try{f||n.return==null||n.return()}finally{if(g)throw h}}}}function Ee(e,t,n){return(t=Sh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dg(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Fg(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,h,f,g=[],s=!0,p=!1;try{if(h=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=h.call(n)).done)&&(g.push(r.value),g.length!==t);s=!0);}catch(o){p=!0,i=o}finally{try{if(!s&&n.return!=null&&(f=n.return(),Object(f)!==f))return}finally{if(p)throw i}}return g}}function Pg(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
7
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zg(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
8
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ae(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zl(Object(n),!0).forEach(function(r){Ee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zl(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function So(e,t){return Lg(e)||Fg(e,t)||Oa(e,t)||Pg()}function Wt(e){return Rg(e)||Dg(e)||Oa(e)||zg()}function Wg(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Sh(e){var t=Wg(e,"string");return typeof t=="symbol"?t:t+""}function Ji(e){"@babel/helpers - typeof";return Ji=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},Ji(e)}function Oa(e,t){if(e){if(typeof e=="string")return js(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?js(e,t):void 0}}var Wl=function(){},Na={},$h={},_h=null,Ch={mark:Wl,measure:Wl};try{typeof window<"u"&&(Na=window),typeof document<"u"&&($h=document),typeof MutationObserver<"u"&&(_h=MutationObserver),typeof performance<"u"&&(Ch=performance)}catch{}var jg=Na.navigator||{},jl=jg.userAgent,Bl=jl===void 0?"":jl,Sn=Na,Ye=$h,Hl=_h,bi=Ch;Sn.document;var hn=!!Ye.documentElement&&!!Ye.head&&typeof Ye.addEventListener=="function"&&typeof Ye.createElement=="function",xh=~Bl.indexOf("MSIE")||~Bl.indexOf("Trident/"),ss,Bg=/fa(k|kd|s|r|l|t|d|dr|dl|dt|b|slr|slpr|wsb|tl|ns|nds|es|jr|jfr|jdr|usb|ufsb|udsb|cr|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,Hg=/Font ?Awesome ?([567 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit|Notdog Duo|Notdog|Chisel|Etch|Thumbprint|Jelly Fill|Jelly Duo|Jelly|Utility|Utility Fill|Utility Duo|Slab Press|Slab|Whiteboard)?.*/i,Ah={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"},slab:{"fa-regular":"regular",faslr:"regular"},"slab-press":{"fa-regular":"regular",faslpr:"regular"},thumbprint:{"fa-light":"light",fatl:"light"},whiteboard:{"fa-semibold":"semibold",fawsb:"semibold"},notdog:{"fa-solid":"solid",fans:"solid"},"notdog-duo":{"fa-solid":"solid",fands:"solid"},etch:{"fa-solid":"solid",faes:"solid"},jelly:{"fa-regular":"regular",fajr:"regular"},"jelly-fill":{"fa-regular":"regular",fajfr:"regular"},"jelly-duo":{"fa-regular":"regular",fajdr:"regular"},chisel:{"fa-regular":"regular",facr:"regular"},utility:{"fa-semibold":"semibold",fausb:"semibold"},"utility-duo":{"fa-semibold":"semibold",faudsb:"semibold"},"utility-fill":{"fa-semibold":"semibold",faufsb:"semibold"}},Ug={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},kh=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-utility","fa-utility-duo","fa-utility-fill"],st="classic",ni="duotone",Eh="sharp",Mh="sharp-duotone",Th="chisel",Lh="etch",Rh="jelly",Ih="jelly-duo",Oh="jelly-fill",Nh="notdog",Dh="notdog-duo",Fh="slab",Ph="slab-press",zh="thumbprint",Wh="utility",jh="utility-duo",Bh="utility-fill",Hh="whiteboard",Vg="Classic",Gg="Duotone",Zg="Sharp",Yg="Sharp Duotone",Kg="Chisel",Xg="Etch",Qg="Jelly",Jg="Jelly Duo",qg="Jelly Fill",em="Notdog",tm="Notdog Duo",nm="Slab",rm="Slab Press",im="Thumbprint",om="Utility",sm="Utility Duo",am="Utility Fill",lm="Whiteboard",Uh=[st,ni,Eh,Mh,Th,Lh,Rh,Ih,Oh,Nh,Dh,Fh,Ph,zh,Wh,jh,Bh,Hh];ss={},Ee(Ee(Ee(Ee(Ee(Ee(Ee(Ee(Ee(Ee(ss,st,Vg),ni,Gg),Eh,Zg),Mh,Yg),Th,Kg),Lh,Xg),Rh,Qg),Ih,Jg),Oh,qg),Nh,em),Ee(Ee(Ee(Ee(Ee(Ee(Ee(Ee(ss,Dh,tm),Fh,nm),Ph,rm),zh,im),Wh,om),jh,sm),Bh,am),Hh,lm);var cm={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"},slab:{400:"faslr"},"slab-press":{400:"faslpr"},whiteboard:{600:"fawsb"},thumbprint:{300:"fatl"},notdog:{900:"fans"},"notdog-duo":{900:"fands"},etch:{900:"faes"},chisel:{400:"facr"},jelly:{400:"fajr"},"jelly-fill":{400:"fajfr"},"jelly-duo":{400:"fajdr"},utility:{600:"fausb"},"utility-duo":{600:"faudsb"},"utility-fill":{600:"faufsb"}},um={"Font Awesome 7 Free":{900:"fas",400:"far"},"Font Awesome 7 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 7 Brands":{400:"fab",normal:"fab"},"Font Awesome 7 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 7 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 7 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"},"Font Awesome 7 Jelly":{400:"fajr",normal:"fajr"},"Font Awesome 7 Jelly Fill":{400:"fajfr",normal:"fajfr"},"Font Awesome 7 Jelly Duo":{400:"fajdr",normal:"fajdr"},"Font Awesome 7 Slab":{400:"faslr",normal:"faslr"},"Font Awesome 7 Slab Press":{400:"faslpr",normal:"faslpr"},"Font Awesome 7 Thumbprint":{300:"fatl",normal:"fatl"},"Font Awesome 7 Notdog":{900:"fans",normal:"fans"},"Font Awesome 7 Notdog Duo":{900:"fands",normal:"fands"},"Font Awesome 7 Etch":{900:"faes",normal:"faes"},"Font Awesome 7 Chisel":{400:"facr",normal:"facr"},"Font Awesome 7 Whiteboard":{600:"fawsb",normal:"fawsb"},"Font Awesome 7 Utility":{600:"fausb",normal:"fausb"},"Font Awesome 7 Utility Duo":{600:"faudsb",normal:"faudsb"},"Font Awesome 7 Utility Fill":{600:"faufsb",normal:"faufsb"}},hm=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["chisel",{defaultShortPrefixId:"facr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["etch",{defaultShortPrefixId:"faes",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["jelly",{defaultShortPrefixId:"fajr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-duo",{defaultShortPrefixId:"fajdr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-fill",{defaultShortPrefixId:"fajfr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["notdog",{defaultShortPrefixId:"fans",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["notdog-duo",{defaultShortPrefixId:"fands",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["slab",{defaultShortPrefixId:"faslr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["slab-press",{defaultShortPrefixId:"faslpr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["thumbprint",{defaultShortPrefixId:"fatl",defaultStyleId:"light",styleIds:["light"],futureStyleIds:[],defaultFontWeight:300}],["utility",{defaultShortPrefixId:"fausb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-duo",{defaultShortPrefixId:"faudsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-fill",{defaultShortPrefixId:"faufsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["whiteboard",{defaultShortPrefixId:"fawsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}]]),fm={chisel:{regular:"facr"},classic:{brands:"fab",light:"fal",regular:"far",solid:"fas",thin:"fat"},duotone:{light:"fadl",regular:"fadr",solid:"fad",thin:"fadt"},etch:{solid:"faes"},jelly:{regular:"fajr"},"jelly-duo":{regular:"fajdr"},"jelly-fill":{regular:"fajfr"},notdog:{solid:"fans"},"notdog-duo":{solid:"fands"},sharp:{light:"fasl",regular:"fasr",solid:"fass",thin:"fast"},"sharp-duotone":{light:"fasdl",regular:"fasdr",solid:"fasds",thin:"fasdt"},slab:{regular:"faslr"},"slab-press":{regular:"faslpr"},thumbprint:{light:"fatl"},utility:{semibold:"fausb"},"utility-duo":{semibold:"faudsb"},"utility-fill":{semibold:"faufsb"},whiteboard:{semibold:"fawsb"}},Vh=["fak","fa-kit","fakd","fa-kit-duotone"],Ul={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},dm=["kit"],pm="kit",gm="kit-duotone",mm="Kit",vm="Kit Duotone";Ee(Ee({},pm,mm),gm,vm);var ym={kit:{"fa-kit":"fak"}},bm={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},wm={kit:{fak:"fa-kit"}},Vl={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},as,wi={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Sm=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-utility","fa-utility-duo","fa-utility-fill"],$m="classic",_m="duotone",Cm="sharp",xm="sharp-duotone",Am="chisel",km="etch",Em="jelly",Mm="jelly-duo",Tm="jelly-fill",Lm="notdog",Rm="notdog-duo",Im="slab",Om="slab-press",Nm="thumbprint",Dm="utility",Fm="utility-duo",Pm="utility-fill",zm="whiteboard",Wm="Classic",jm="Duotone",Bm="Sharp",Hm="Sharp Duotone",Um="Chisel",Vm="Etch",Gm="Jelly",Zm="Jelly Duo",Ym="Jelly Fill",Km="Notdog",Xm="Notdog Duo",Qm="Slab",Jm="Slab Press",qm="Thumbprint",ev="Utility",tv="Utility Duo",nv="Utility Fill",rv="Whiteboard";as={},Ee(Ee(Ee(Ee(Ee(Ee(Ee(Ee(Ee(Ee(as,$m,Wm),_m,jm),Cm,Bm),xm,Hm),Am,Um),km,Vm),Em,Gm),Mm,Zm),Tm,Ym),Lm,Km),Ee(Ee(Ee(Ee(Ee(Ee(Ee(Ee(as,Rm,Xm),Im,Qm),Om,Jm),Nm,qm),Dm,ev),Fm,tv),Pm,nv),zm,rv);var iv="kit",ov="kit-duotone",sv="Kit",av="Kit Duotone";Ee(Ee({},iv,sv),ov,av);var lv={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"},slab:{"fa-regular":"faslr"},"slab-press":{"fa-regular":"faslpr"},whiteboard:{"fa-semibold":"fawsb"},thumbprint:{"fa-light":"fatl"},notdog:{"fa-solid":"fans"},"notdog-duo":{"fa-solid":"fands"},etch:{"fa-solid":"faes"},jelly:{"fa-regular":"fajr"},"jelly-fill":{"fa-regular":"fajfr"},"jelly-duo":{"fa-regular":"fajdr"},chisel:{"fa-regular":"facr"},utility:{"fa-semibold":"fausb"},"utility-duo":{"fa-semibold":"faudsb"},"utility-fill":{"fa-semibold":"faufsb"}},cv={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"],slab:["faslr"],"slab-press":["faslpr"],whiteboard:["fawsb"],thumbprint:["fatl"],notdog:["fans"],"notdog-duo":["fands"],etch:["faes"],jelly:["fajr"],"jelly-fill":["fajfr"],"jelly-duo":["fajdr"],chisel:["facr"],utility:["fausb"],"utility-duo":["faudsb"],"utility-fill":["faufsb"]},Bs={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"},slab:{faslr:"fa-regular"},"slab-press":{faslpr:"fa-regular"},whiteboard:{fawsb:"fa-semibold"},thumbprint:{fatl:"fa-light"},notdog:{fans:"fa-solid"},"notdog-duo":{fands:"fa-solid"},etch:{faes:"fa-solid"},jelly:{fajr:"fa-regular"},"jelly-fill":{fajfr:"fa-regular"},"jelly-duo":{fajdr:"fa-regular"},chisel:{facr:"fa-regular"},utility:{fausb:"fa-semibold"},"utility-duo":{faudsb:"fa-semibold"},"utility-fill":{faufsb:"fa-semibold"}},uv=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands","fa-semibold"],Gh=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt","faslr","faslpr","fawsb","fatl","fans","fands","faes","fajr","fajfr","fajdr","facr","fausb","faudsb","faufsb"].concat(Sm,uv),hv=["solid","regular","light","thin","duotone","brands","semibold"],Zh=[1,2,3,4,5,6,7,8,9,10],fv=Zh.concat([11,12,13,14,15,16,17,18,19,20]),dv=["aw","fw","pull-left","pull-right"],pv=[].concat(Wt(Object.keys(cv)),hv,dv,["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","inverse","layers","layers-bottom-left","layers-bottom-right","layers-counter","layers-text","layers-top-left","layers-top-right","li","pull-end","pull-start","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul","width-auto","width-fixed",wi.GROUP,wi.SWAP_OPACITY,wi.PRIMARY,wi.SECONDARY]).concat(Zh.map(function(e){return"".concat(e,"x")})).concat(fv.map(function(e){return"w-".concat(e)})),gv={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}},an="___FONT_AWESOME___",Hs=16,Yh="fa",Kh="svg-inline--fa",zn="data-fa-i2svg",Us="data-fa-pseudo-element",mv="data-fa-pseudo-element-pending",Da="data-prefix",Fa="data-icon",Gl="fontawesome-i2svg",vv="async",yv=["HTML","HEAD","STYLE","SCRIPT"],Xh=["::before","::after",":before",":after"],Qh=function(){try{return!0}catch{return!1}}();function ri(e){return new Proxy(e,{get:function(n,r){return r in n?n[r]:n[st]}})}var Jh=ae({},Ah);Jh[st]=ae(ae(ae(ae({},{"fa-duotone":"duotone"}),Ah[st]),Ul.kit),Ul["kit-duotone"]);var bv=ri(Jh),Vs=ae({},fm);Vs[st]=ae(ae(ae(ae({},{duotone:"fad"}),Vs[st]),Vl.kit),Vl["kit-duotone"]);var Zl=ri(Vs),Gs=ae({},Bs);Gs[st]=ae(ae({},Gs[st]),wm.kit);var Pa=ri(Gs),Zs=ae({},lv);Zs[st]=ae(ae({},Zs[st]),ym.kit);ri(Zs);var wv=Bg,qh="fa-layers-text",Sv=Hg,$v=ae({},cm);ri($v);var _v=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],ls=Ug,Cv=[].concat(Wt(dm),Wt(pv)),Rr=Sn.FontAwesomeConfig||{};function xv(e){var t=Ye.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function Av(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(Ye&&typeof Ye.querySelector=="function"){var kv=[["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-search-pseudo-elements","searchPseudoElements"],["data-search-pseudo-elements-warnings","searchPseudoElementsWarnings"],["data-search-pseudo-elements-full-scan","searchPseudoElementsFullScan"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];kv.forEach(function(e){var t=So(e,2),n=t[0],r=t[1],i=Av(xv(n));i!=null&&(Rr[r]=i)})}var ef={styleDefault:"solid",familyDefault:st,cssPrefix:Yh,replacementClass:Kh,autoReplaceSvg:!0,autoAddCss:!0,searchPseudoElements:!1,searchPseudoElementsWarnings:!0,searchPseudoElementsFullScan:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Rr.familyPrefix&&(Rr.cssPrefix=Rr.familyPrefix);var lr=ae(ae({},ef),Rr);lr.autoReplaceSvg||(lr.observeMutations=!1);var we={};Object.keys(ef).forEach(function(e){Object.defineProperty(we,e,{enumerable:!0,set:function(n){lr[e]=n,Ir.forEach(function(r){return r(we)})},get:function(){return lr[e]}})});Object.defineProperty(we,"familyPrefix",{enumerable:!0,set:function(t){lr.cssPrefix=t,Ir.forEach(function(n){return n(we)})},get:function(){return lr.cssPrefix}});Sn.FontAwesomeConfig=we;var Ir=[];function Ev(e){return Ir.push(e),function(){Ir.splice(Ir.indexOf(e),1)}}var Yn=Hs,Xt={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Mv(e){if(!(!e||!hn)){var t=Ye.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=Ye.head.childNodes,r=null,i=n.length-1;i>-1;i--){var h=n[i],f=(h.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(f)>-1&&(r=h)}return Ye.head.insertBefore(t,r),e}}var Tv="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Yl(){for(var e=12,t="";e-- >0;)t+=Tv[Math.random()*62|0];return t}function vr(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function za(e){return e.classList?vr(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function tf(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Lv(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(tf(e[n]),'" ')},"").trim()}function $o(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function Wa(e){return e.size!==Xt.size||e.x!==Xt.x||e.y!==Xt.y||e.rotate!==Xt.rotate||e.flipX||e.flipY}function Rv(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,i={transform:"translate(".concat(n/2," 256)")},h="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(h," ").concat(f," ").concat(g)},p={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:s,path:p}}function Iv(e){var t=e.transform,n=e.width,r=n===void 0?Hs:n,i=e.height,h=i===void 0?Hs:i,f="";return xh?f+="translate(".concat(t.x/Yn-r/2,"em, ").concat(t.y/Yn-h/2,"em) "):f+="translate(calc(-50% + ".concat(t.x/Yn,"em), calc(-50% + ").concat(t.y/Yn,"em)) "),f+="scale(".concat(t.size/Yn*(t.flipX?-1:1),", ").concat(t.size/Yn*(t.flipY?-1:1),") "),f+="rotate(".concat(t.rotate,"deg) "),f}var Ov=`:root, :host {
9
+ --fa-font-solid: normal 900 1em/1 "Font Awesome 7 Free";
10
+ --fa-font-regular: normal 400 1em/1 "Font Awesome 7 Free";
11
+ --fa-font-light: normal 300 1em/1 "Font Awesome 7 Pro";
12
+ --fa-font-thin: normal 100 1em/1 "Font Awesome 7 Pro";
13
+ --fa-font-duotone: normal 900 1em/1 "Font Awesome 7 Duotone";
14
+ --fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 7 Duotone";
15
+ --fa-font-duotone-light: normal 300 1em/1 "Font Awesome 7 Duotone";
16
+ --fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 7 Duotone";
17
+ --fa-font-brands: normal 400 1em/1 "Font Awesome 7 Brands";
18
+ --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 7 Sharp";
19
+ --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 7 Sharp";
20
+ --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 7 Sharp";
21
+ --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 7 Sharp";
22
+ --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 7 Sharp Duotone";
23
+ --fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 7 Sharp Duotone";
24
+ --fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 7 Sharp Duotone";
25
+ --fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 7 Sharp Duotone";
26
+ --fa-font-slab-regular: normal 400 1em/1 "Font Awesome 7 Slab";
27
+ --fa-font-slab-press-regular: normal 400 1em/1 "Font Awesome 7 Slab Press";
28
+ --fa-font-whiteboard-semibold: normal 600 1em/1 "Font Awesome 7 Whiteboard";
29
+ --fa-font-thumbprint-light: normal 300 1em/1 "Font Awesome 7 Thumbprint";
30
+ --fa-font-notdog-solid: normal 900 1em/1 "Font Awesome 7 Notdog";
31
+ --fa-font-notdog-duo-solid: normal 900 1em/1 "Font Awesome 7 Notdog Duo";
32
+ --fa-font-etch-solid: normal 900 1em/1 "Font Awesome 7 Etch";
33
+ --fa-font-jelly-regular: normal 400 1em/1 "Font Awesome 7 Jelly";
34
+ --fa-font-jelly-fill-regular: normal 400 1em/1 "Font Awesome 7 Jelly Fill";
35
+ --fa-font-jelly-duo-regular: normal 400 1em/1 "Font Awesome 7 Jelly Duo";
36
+ --fa-font-chisel-regular: normal 400 1em/1 "Font Awesome 7 Chisel";
37
+ --fa-font-utility-semibold: normal 600 1em/1 "Font Awesome 7 Utility";
38
+ --fa-font-utility-duo-semibold: normal 600 1em/1 "Font Awesome 7 Utility Duo";
39
+ --fa-font-utility-fill-semibold: normal 600 1em/1 "Font Awesome 7 Utility Fill";
40
+ }
41
+
42
+ .svg-inline--fa {
43
+ box-sizing: content-box;
44
+ display: var(--fa-display, inline-block);
45
+ height: 1em;
46
+ overflow: visible;
47
+ vertical-align: -0.125em;
48
+ width: var(--fa-width, 1.25em);
49
+ }
50
+ .svg-inline--fa.fa-2xs {
51
+ vertical-align: 0.1em;
52
+ }
53
+ .svg-inline--fa.fa-xs {
54
+ vertical-align: 0em;
55
+ }
56
+ .svg-inline--fa.fa-sm {
57
+ vertical-align: -0.0714285714em;
58
+ }
59
+ .svg-inline--fa.fa-lg {
60
+ vertical-align: -0.2em;
61
+ }
62
+ .svg-inline--fa.fa-xl {
63
+ vertical-align: -0.25em;
64
+ }
65
+ .svg-inline--fa.fa-2xl {
66
+ vertical-align: -0.3125em;
67
+ }
68
+ .svg-inline--fa.fa-pull-left,
69
+ .svg-inline--fa .fa-pull-start {
70
+ float: inline-start;
71
+ margin-inline-end: var(--fa-pull-margin, 0.3em);
72
+ }
73
+ .svg-inline--fa.fa-pull-right,
74
+ .svg-inline--fa .fa-pull-end {
75
+ float: inline-end;
76
+ margin-inline-start: var(--fa-pull-margin, 0.3em);
77
+ }
78
+ .svg-inline--fa.fa-li {
79
+ width: var(--fa-li-width, 2em);
80
+ inset-inline-start: calc(-1 * var(--fa-li-width, 2em));
81
+ inset-block-start: 0.25em; /* syncing vertical alignment with Web Font rendering */
82
+ }
83
+
84
+ .fa-layers-counter, .fa-layers-text {
85
+ display: inline-block;
86
+ position: absolute;
87
+ text-align: center;
88
+ }
89
+
90
+ .fa-layers {
91
+ display: inline-block;
92
+ height: 1em;
93
+ position: relative;
94
+ text-align: center;
95
+ vertical-align: -0.125em;
96
+ width: var(--fa-width, 1.25em);
97
+ }
98
+ .fa-layers .svg-inline--fa {
99
+ inset: 0;
100
+ margin: auto;
101
+ position: absolute;
102
+ transform-origin: center center;
103
+ }
104
+
105
+ .fa-layers-text {
106
+ left: 50%;
107
+ top: 50%;
108
+ transform: translate(-50%, -50%);
109
+ transform-origin: center center;
110
+ }
111
+
112
+ .fa-layers-counter {
113
+ background-color: var(--fa-counter-background-color, #ff253a);
114
+ border-radius: var(--fa-counter-border-radius, 1em);
115
+ box-sizing: border-box;
116
+ color: var(--fa-inverse, #fff);
117
+ line-height: var(--fa-counter-line-height, 1);
118
+ max-width: var(--fa-counter-max-width, 5em);
119
+ min-width: var(--fa-counter-min-width, 1.5em);
120
+ overflow: hidden;
121
+ padding: var(--fa-counter-padding, 0.25em 0.5em);
122
+ right: var(--fa-right, 0);
123
+ text-overflow: ellipsis;
124
+ top: var(--fa-top, 0);
125
+ transform: scale(var(--fa-counter-scale, 0.25));
126
+ transform-origin: top right;
127
+ }
128
+
129
+ .fa-layers-bottom-right {
130
+ bottom: var(--fa-bottom, 0);
131
+ right: var(--fa-right, 0);
132
+ top: auto;
133
+ transform: scale(var(--fa-layers-scale, 0.25));
134
+ transform-origin: bottom right;
135
+ }
136
+
137
+ .fa-layers-bottom-left {
138
+ bottom: var(--fa-bottom, 0);
139
+ left: var(--fa-left, 0);
140
+ right: auto;
141
+ top: auto;
142
+ transform: scale(var(--fa-layers-scale, 0.25));
143
+ transform-origin: bottom left;
144
+ }
145
+
146
+ .fa-layers-top-right {
147
+ top: var(--fa-top, 0);
148
+ right: var(--fa-right, 0);
149
+ transform: scale(var(--fa-layers-scale, 0.25));
150
+ transform-origin: top right;
151
+ }
152
+
153
+ .fa-layers-top-left {
154
+ left: var(--fa-left, 0);
155
+ right: auto;
156
+ top: var(--fa-top, 0);
157
+ transform: scale(var(--fa-layers-scale, 0.25));
158
+ transform-origin: top left;
159
+ }
160
+
161
+ .fa-1x {
162
+ font-size: 1em;
163
+ }
164
+
165
+ .fa-2x {
166
+ font-size: 2em;
167
+ }
168
+
169
+ .fa-3x {
170
+ font-size: 3em;
171
+ }
172
+
173
+ .fa-4x {
174
+ font-size: 4em;
175
+ }
176
+
177
+ .fa-5x {
178
+ font-size: 5em;
179
+ }
180
+
181
+ .fa-6x {
182
+ font-size: 6em;
183
+ }
184
+
185
+ .fa-7x {
186
+ font-size: 7em;
187
+ }
188
+
189
+ .fa-8x {
190
+ font-size: 8em;
191
+ }
192
+
193
+ .fa-9x {
194
+ font-size: 9em;
195
+ }
196
+
197
+ .fa-10x {
198
+ font-size: 10em;
199
+ }
200
+
201
+ .fa-2xs {
202
+ font-size: calc(10 / 16 * 1em); /* converts a 10px size into an em-based value that's relative to the scale's 16px base */
203
+ line-height: calc(1 / 10 * 1em); /* sets the line-height of the icon back to that of it's parent */
204
+ vertical-align: calc((6 / 10 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
205
+ }
206
+
207
+ .fa-xs {
208
+ font-size: calc(12 / 16 * 1em); /* converts a 12px size into an em-based value that's relative to the scale's 16px base */
209
+ line-height: calc(1 / 12 * 1em); /* sets the line-height of the icon back to that of it's parent */
210
+ vertical-align: calc((6 / 12 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
211
+ }
212
+
213
+ .fa-sm {
214
+ font-size: calc(14 / 16 * 1em); /* converts a 14px size into an em-based value that's relative to the scale's 16px base */
215
+ line-height: calc(1 / 14 * 1em); /* sets the line-height of the icon back to that of it's parent */
216
+ vertical-align: calc((6 / 14 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
217
+ }
218
+
219
+ .fa-lg {
220
+ font-size: calc(20 / 16 * 1em); /* converts a 20px size into an em-based value that's relative to the scale's 16px base */
221
+ line-height: calc(1 / 20 * 1em); /* sets the line-height of the icon back to that of it's parent */
222
+ vertical-align: calc((6 / 20 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
223
+ }
224
+
225
+ .fa-xl {
226
+ font-size: calc(24 / 16 * 1em); /* converts a 24px size into an em-based value that's relative to the scale's 16px base */
227
+ line-height: calc(1 / 24 * 1em); /* sets the line-height of the icon back to that of it's parent */
228
+ vertical-align: calc((6 / 24 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
229
+ }
230
+
231
+ .fa-2xl {
232
+ font-size: calc(32 / 16 * 1em); /* converts a 32px size into an em-based value that's relative to the scale's 16px base */
233
+ line-height: calc(1 / 32 * 1em); /* sets the line-height of the icon back to that of it's parent */
234
+ vertical-align: calc((6 / 32 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
235
+ }
236
+
237
+ .fa-width-auto {
238
+ --fa-width: auto;
239
+ }
240
+
241
+ .fa-fw,
242
+ .fa-width-fixed {
243
+ --fa-width: 1.25em;
244
+ }
245
+
246
+ .fa-ul {
247
+ list-style-type: none;
248
+ margin-inline-start: var(--fa-li-margin, 2.5em);
249
+ padding-inline-start: 0;
250
+ }
251
+ .fa-ul > li {
252
+ position: relative;
253
+ }
254
+
255
+ .fa-li {
256
+ inset-inline-start: calc(-1 * var(--fa-li-width, 2em));
257
+ position: absolute;
258
+ text-align: center;
259
+ width: var(--fa-li-width, 2em);
260
+ line-height: inherit;
261
+ }
262
+
263
+ /* Heads Up: Bordered Icons will not be supported in the future!
264
+ - This feature will be deprecated in the next major release of Font Awesome (v8)!
265
+ - You may continue to use it in this version *v7), but it will not be supported in Font Awesome v8.
266
+ */
267
+ /* Notes:
268
+ * --@{v.$css-prefix}-border-width = 1/16 by default (to render as ~1px based on a 16px default font-size)
269
+ * --@{v.$css-prefix}-border-padding =
270
+ ** 3/16 for vertical padding (to give ~2px of vertical whitespace around an icon considering it's vertical alignment)
271
+ ** 4/16 for horizontal padding (to give ~4px of horizontal whitespace around an icon)
272
+ */
273
+ .fa-border {
274
+ border-color: var(--fa-border-color, #eee);
275
+ border-radius: var(--fa-border-radius, 0.1em);
276
+ border-style: var(--fa-border-style, solid);
277
+ border-width: var(--fa-border-width, 0.0625em);
278
+ box-sizing: var(--fa-border-box-sizing, content-box);
279
+ padding: var(--fa-border-padding, 0.1875em 0.25em);
280
+ }
281
+
282
+ .fa-pull-left,
283
+ .fa-pull-start {
284
+ float: inline-start;
285
+ margin-inline-end: var(--fa-pull-margin, 0.3em);
286
+ }
287
+
288
+ .fa-pull-right,
289
+ .fa-pull-end {
290
+ float: inline-end;
291
+ margin-inline-start: var(--fa-pull-margin, 0.3em);
292
+ }
293
+
294
+ .fa-beat {
295
+ animation-name: fa-beat;
296
+ animation-delay: var(--fa-animation-delay, 0s);
297
+ animation-direction: var(--fa-animation-direction, normal);
298
+ animation-duration: var(--fa-animation-duration, 1s);
299
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
300
+ animation-timing-function: var(--fa-animation-timing, ease-in-out);
301
+ }
302
+
303
+ .fa-bounce {
304
+ animation-name: fa-bounce;
305
+ animation-delay: var(--fa-animation-delay, 0s);
306
+ animation-direction: var(--fa-animation-direction, normal);
307
+ animation-duration: var(--fa-animation-duration, 1s);
308
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
309
+ animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
310
+ }
311
+
312
+ .fa-fade {
313
+ animation-name: fa-fade;
314
+ animation-delay: var(--fa-animation-delay, 0s);
315
+ animation-direction: var(--fa-animation-direction, normal);
316
+ animation-duration: var(--fa-animation-duration, 1s);
317
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
318
+ animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
319
+ }
320
+
321
+ .fa-beat-fade {
322
+ animation-name: fa-beat-fade;
323
+ animation-delay: var(--fa-animation-delay, 0s);
324
+ animation-direction: var(--fa-animation-direction, normal);
325
+ animation-duration: var(--fa-animation-duration, 1s);
326
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
327
+ animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
328
+ }
329
+
330
+ .fa-flip {
331
+ animation-name: fa-flip;
332
+ animation-delay: var(--fa-animation-delay, 0s);
333
+ animation-direction: var(--fa-animation-direction, normal);
334
+ animation-duration: var(--fa-animation-duration, 1s);
335
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
336
+ animation-timing-function: var(--fa-animation-timing, ease-in-out);
337
+ }
338
+
339
+ .fa-shake {
340
+ animation-name: fa-shake;
341
+ animation-delay: var(--fa-animation-delay, 0s);
342
+ animation-direction: var(--fa-animation-direction, normal);
343
+ animation-duration: var(--fa-animation-duration, 1s);
344
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
345
+ animation-timing-function: var(--fa-animation-timing, linear);
346
+ }
347
+
348
+ .fa-spin {
349
+ animation-name: fa-spin;
350
+ animation-delay: var(--fa-animation-delay, 0s);
351
+ animation-direction: var(--fa-animation-direction, normal);
352
+ animation-duration: var(--fa-animation-duration, 2s);
353
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
354
+ animation-timing-function: var(--fa-animation-timing, linear);
355
+ }
356
+
357
+ .fa-spin-reverse {
358
+ --fa-animation-direction: reverse;
359
+ }
360
+
361
+ .fa-pulse,
362
+ .fa-spin-pulse {
363
+ animation-name: fa-spin;
364
+ animation-direction: var(--fa-animation-direction, normal);
365
+ animation-duration: var(--fa-animation-duration, 1s);
366
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
367
+ animation-timing-function: var(--fa-animation-timing, steps(8));
368
+ }
369
+
370
+ @media (prefers-reduced-motion: reduce) {
371
+ .fa-beat,
372
+ .fa-bounce,
373
+ .fa-fade,
374
+ .fa-beat-fade,
375
+ .fa-flip,
376
+ .fa-pulse,
377
+ .fa-shake,
378
+ .fa-spin,
379
+ .fa-spin-pulse {
380
+ animation: none !important;
381
+ transition: none !important;
382
+ }
383
+ }
384
+ @keyframes fa-beat {
385
+ 0%, 90% {
386
+ transform: scale(1);
387
+ }
388
+ 45% {
389
+ transform: scale(var(--fa-beat-scale, 1.25));
390
+ }
391
+ }
392
+ @keyframes fa-bounce {
393
+ 0% {
394
+ transform: scale(1, 1) translateY(0);
395
+ }
396
+ 10% {
397
+ transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
398
+ }
399
+ 30% {
400
+ transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
401
+ }
402
+ 50% {
403
+ transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
404
+ }
405
+ 57% {
406
+ transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
407
+ }
408
+ 64% {
409
+ transform: scale(1, 1) translateY(0);
410
+ }
411
+ 100% {
412
+ transform: scale(1, 1) translateY(0);
413
+ }
414
+ }
415
+ @keyframes fa-fade {
416
+ 50% {
417
+ opacity: var(--fa-fade-opacity, 0.4);
418
+ }
419
+ }
420
+ @keyframes fa-beat-fade {
421
+ 0%, 100% {
422
+ opacity: var(--fa-beat-fade-opacity, 0.4);
423
+ transform: scale(1);
424
+ }
425
+ 50% {
426
+ opacity: 1;
427
+ transform: scale(var(--fa-beat-fade-scale, 1.125));
428
+ }
429
+ }
430
+ @keyframes fa-flip {
431
+ 50% {
432
+ transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
433
+ }
434
+ }
435
+ @keyframes fa-shake {
436
+ 0% {
437
+ transform: rotate(-15deg);
438
+ }
439
+ 4% {
440
+ transform: rotate(15deg);
441
+ }
442
+ 8%, 24% {
443
+ transform: rotate(-18deg);
444
+ }
445
+ 12%, 28% {
446
+ transform: rotate(18deg);
447
+ }
448
+ 16% {
449
+ transform: rotate(-22deg);
450
+ }
451
+ 20% {
452
+ transform: rotate(22deg);
453
+ }
454
+ 32% {
455
+ transform: rotate(-12deg);
456
+ }
457
+ 36% {
458
+ transform: rotate(12deg);
459
+ }
460
+ 40%, 100% {
461
+ transform: rotate(0deg);
462
+ }
463
+ }
464
+ @keyframes fa-spin {
465
+ 0% {
466
+ transform: rotate(0deg);
467
+ }
468
+ 100% {
469
+ transform: rotate(360deg);
470
+ }
471
+ }
472
+ .fa-rotate-90 {
473
+ transform: rotate(90deg);
474
+ }
475
+
476
+ .fa-rotate-180 {
477
+ transform: rotate(180deg);
478
+ }
479
+
480
+ .fa-rotate-270 {
481
+ transform: rotate(270deg);
482
+ }
483
+
484
+ .fa-flip-horizontal {
485
+ transform: scale(-1, 1);
486
+ }
487
+
488
+ .fa-flip-vertical {
489
+ transform: scale(1, -1);
490
+ }
491
+
492
+ .fa-flip-both,
493
+ .fa-flip-horizontal.fa-flip-vertical {
494
+ transform: scale(-1, -1);
495
+ }
496
+
497
+ .fa-rotate-by {
498
+ transform: rotate(var(--fa-rotate-angle, 0));
499
+ }
500
+
501
+ .svg-inline--fa .fa-primary {
502
+ fill: var(--fa-primary-color, currentColor);
503
+ opacity: var(--fa-primary-opacity, 1);
504
+ }
505
+
506
+ .svg-inline--fa .fa-secondary {
507
+ fill: var(--fa-secondary-color, currentColor);
508
+ opacity: var(--fa-secondary-opacity, 0.4);
509
+ }
510
+
511
+ .svg-inline--fa.fa-swap-opacity .fa-primary {
512
+ opacity: var(--fa-secondary-opacity, 0.4);
513
+ }
514
+
515
+ .svg-inline--fa.fa-swap-opacity .fa-secondary {
516
+ opacity: var(--fa-primary-opacity, 1);
517
+ }
518
+
519
+ .svg-inline--fa mask .fa-primary,
520
+ .svg-inline--fa mask .fa-secondary {
521
+ fill: black;
522
+ }
523
+
524
+ .svg-inline--fa.fa-inverse {
525
+ fill: var(--fa-inverse, #fff);
526
+ }
527
+
528
+ .fa-stack {
529
+ display: inline-block;
530
+ height: 2em;
531
+ line-height: 2em;
532
+ position: relative;
533
+ vertical-align: middle;
534
+ width: 2.5em;
535
+ }
536
+
537
+ .fa-inverse {
538
+ color: var(--fa-inverse, #fff);
539
+ }
540
+
541
+ .svg-inline--fa.fa-stack-1x {
542
+ --fa-width: 1.25em;
543
+ height: 1em;
544
+ width: var(--fa-width);
545
+ }
546
+ .svg-inline--fa.fa-stack-2x {
547
+ --fa-width: 2.5em;
548
+ height: 2em;
549
+ width: var(--fa-width);
550
+ }
551
+
552
+ .fa-stack-1x,
553
+ .fa-stack-2x {
554
+ inset: 0;
555
+ margin: auto;
556
+ position: absolute;
557
+ z-index: var(--fa-stack-z-index, auto);
558
+ }`;function nf(){var e=Yh,t=Kh,n=we.cssPrefix,r=we.replacementClass,i=Ov;if(n!==e||r!==t){var h=new RegExp("\\.".concat(e,"\\-"),"g"),f=new RegExp("\\--".concat(e,"\\-"),"g"),g=new RegExp("\\.".concat(t),"g");i=i.replace(h,".".concat(n,"-")).replace(f,"--".concat(n,"-")).replace(g,".".concat(r))}return i}var Kl=!1;function cs(){we.autoAddCss&&!Kl&&(Mv(nf()),Kl=!0)}var Nv={mixout:function(){return{dom:{css:nf,insertCss:cs}}},hooks:function(){return{beforeDOMElementCreation:function(){cs()},beforeI2svg:function(){cs()}}}},ln=Sn||{};ln[an]||(ln[an]={});ln[an].styles||(ln[an].styles={});ln[an].hooks||(ln[an].hooks={});ln[an].shims||(ln[an].shims=[]);var Pt=ln[an],rf=[],of=function(){Ye.removeEventListener("DOMContentLoaded",of),qi=1,rf.map(function(t){return t()})},qi=!1;hn&&(qi=(Ye.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Ye.readyState),qi||Ye.addEventListener("DOMContentLoaded",of));function Dv(e){hn&&(qi?setTimeout(e,0):rf.push(e))}function ii(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,i=e.children,h=i===void 0?[]:i;return typeof e=="string"?tf(e):"<".concat(t," ").concat(Lv(r),">").concat(h.map(ii).join(""),"</").concat(t,">")}function Xl(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var us=function(t,n,r,i){var h=Object.keys(t),f=h.length,g=n,s,p,o;for(r===void 0?(s=1,o=t[h[0]]):(s=0,o=r);s<f;s++)p=h[s],o=g(o,t[p],p,t);return o};function sf(e){return Wt(e).length!==1?null:e.codePointAt(0).toString(16)}function Ql(e){return Object.keys(e).reduce(function(t,n){var r=e[n],i=!!r.icon;return i?t[r.iconName]=r.icon:t[n]=r,t},{})}function Ys(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,i=r===void 0?!1:r,h=Ql(t);typeof Pt.hooks.addPack=="function"&&!i?Pt.hooks.addPack(e,Ql(t)):Pt.styles[e]=ae(ae({},Pt.styles[e]||{}),h),e==="fas"&&Ys("fa",t)}var Hr=Pt.styles,Fv=Pt.shims,af=Object.keys(Pa),Pv=af.reduce(function(e,t){return e[t]=Object.keys(Pa[t]),e},{}),ja=null,lf={},cf={},uf={},hf={},ff={};function zv(e){return~Cv.indexOf(e)}function Wv(e,t){var n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!zv(i)?i:null}var df=function(){var t=function(h){return us(Hr,function(f,g,s){return f[s]=us(g,h,{}),f},{})};lf=t(function(i,h,f){if(h[3]&&(i[h[3]]=f),h[2]){var g=h[2].filter(function(s){return typeof s=="number"});g.forEach(function(s){i[s.toString(16)]=f})}return i}),cf=t(function(i,h,f){if(i[f]=f,h[2]){var g=h[2].filter(function(s){return typeof s=="string"});g.forEach(function(s){i[s]=f})}return i}),ff=t(function(i,h,f){var g=h[2];return i[f]=f,g.forEach(function(s){i[s]=f}),i});var n="far"in Hr||we.autoFetchSvg,r=us(Fv,function(i,h){var f=h[0],g=h[1],s=h[2];return g==="far"&&!n&&(g="fas"),typeof f=="string"&&(i.names[f]={prefix:g,iconName:s}),typeof f=="number"&&(i.unicodes[f.toString(16)]={prefix:g,iconName:s}),i},{names:{},unicodes:{}});uf=r.names,hf=r.unicodes,ja=_o(we.styleDefault,{family:we.familyDefault})};Ev(function(e){ja=_o(e.styleDefault,{family:we.familyDefault})});df();function Ba(e,t){return(lf[e]||{})[t]}function jv(e,t){return(cf[e]||{})[t]}function In(e,t){return(ff[e]||{})[t]}function pf(e){return uf[e]||{prefix:null,iconName:null}}function Bv(e){var t=hf[e],n=Ba("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function $n(){return ja}var gf=function(){return{prefix:null,iconName:null,rest:[]}};function Hv(e){var t=st,n=af.reduce(function(r,i){return r[i]="".concat(we.cssPrefix,"-").concat(i),r},{});return Uh.forEach(function(r){(e.includes(n[r])||e.some(function(i){return Pv[r].includes(i)}))&&(t=r)}),t}function _o(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?st:n,i=bv[r][e];if(r===ni&&!e)return"fad";var h=Zl[r][e]||Zl[r][i],f=e in Pt.styles?e:null,g=h||f||null;return g}function Uv(e){var t=[],n=null;return e.forEach(function(r){var i=Wv(we.cssPrefix,r);i?n=i:r&&t.push(r)}),{iconName:n,rest:t}}function Jl(e){return e.sort().filter(function(t,n,r){return r.indexOf(t)===n})}var ql=Gh.concat(Vh);function Co(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.skipLookups,r=n===void 0?!1:n,i=null,h=Jl(e.filter(function(u){return ql.includes(u)})),f=Jl(e.filter(function(u){return!ql.includes(u)})),g=h.filter(function(u){return i=u,!kh.includes(u)}),s=So(g,1),p=s[0],o=p===void 0?null:p,a=Hv(h),c=ae(ae({},Uv(f)),{},{prefix:_o(o,{family:a})});return ae(ae(ae({},c),Yv({values:e,family:a,styles:Hr,config:we,canonical:c,givenPrefix:i})),Vv(r,i,c))}function Vv(e,t,n){var r=n.prefix,i=n.iconName;if(e||!r||!i)return{prefix:r,iconName:i};var h=t==="fa"?pf(i):{},f=In(r,i);return i=h.iconName||f||i,r=h.prefix||r,r==="far"&&!Hr.far&&Hr.fas&&!we.autoFetchSvg&&(r="fas"),{prefix:r,iconName:i}}var Gv=Uh.filter(function(e){return e!==st||e!==ni}),Zv=Object.keys(Bs).filter(function(e){return e!==st}).map(function(e){return Object.keys(Bs[e])}).flat();function Yv(e){var t=e.values,n=e.family,r=e.canonical,i=e.givenPrefix,h=i===void 0?"":i,f=e.styles,g=f===void 0?{}:f,s=e.config,p=s===void 0?{}:s,o=n===ni,a=t.includes("fa-duotone")||t.includes("fad"),c=p.familyDefault==="duotone",u=r.prefix==="fad"||r.prefix==="fa-duotone";if(!o&&(a||c||u)&&(r.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab"),!r.prefix&&Gv.includes(n)){var l=Object.keys(g).find(function(m){return Zv.includes(m)});if(l||p.autoFetchSvg){var d=hm.get(n).defaultShortPrefixId;r.prefix=d,r.iconName=In(r.prefix,r.iconName)||r.iconName}}return(r.prefix==="fa"||h==="fa")&&(r.prefix=$n()||"fas"),r}var Kv=function(){function e(){Ig(this,e),this.definitions={}}return Ng(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,i=new Array(r),h=0;h<r;h++)i[h]=arguments[h];var f=i.reduce(this._pullDefinitions,{});Object.keys(f).forEach(function(g){n.definitions[g]=ae(ae({},n.definitions[g]||{}),f[g]),Ys(g,f[g]);var s=Pa[st][g];s&&Ys(s,f[g]),df()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(n,r){var i=r.prefix&&r.iconName&&r.icon?{0:r}:r;return Object.keys(i).map(function(h){var f=i[h],g=f.prefix,s=f.iconName,p=f.icon,o=p[2];n[g]||(n[g]={}),o.length>0&&o.forEach(function(a){typeof a=="string"&&(n[g][a]=p)}),n[g][s]=p}),n}}])}(),ec=[],qn={},nr={},Xv=Object.keys(nr);function Qv(e,t){var n=t.mixoutsTo;return ec=e,qn={},Object.keys(nr).forEach(function(r){Xv.indexOf(r)===-1&&delete nr[r]}),ec.forEach(function(r){var i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(function(f){typeof i[f]=="function"&&(n[f]=i[f]),Ji(i[f])==="object"&&Object.keys(i[f]).forEach(function(g){n[f]||(n[f]={}),n[f][g]=i[f][g]})}),r.hooks){var h=r.hooks();Object.keys(h).forEach(function(f){qn[f]||(qn[f]=[]),qn[f].push(h[f])})}r.provides&&r.provides(nr)}),n}function Ks(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var h=qn[e]||[];return h.forEach(function(f){t=f.apply(null,[t].concat(r))}),t}function Wn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=qn[e]||[];i.forEach(function(h){h.apply(null,n)})}function _n(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return nr[e]?nr[e].apply(null,t):void 0}function Xs(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,n=e.prefix||$n();if(t)return t=In(n,t)||t,Xl(mf.definitions,n,t)||Xl(Pt.styles,n,t)}var mf=new Kv,Jv=function(){we.autoReplaceSvg=!1,we.observeMutations=!1,Wn("noAuto")},qv={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return hn?(Wn("beforeI2svg",t),_n("pseudoElements2svg",t),_n("i2svg",t)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;we.autoReplaceSvg===!1&&(we.autoReplaceSvg=!0),we.observeMutations=!0,Dv(function(){ty({autoReplaceSvgRoot:n}),Wn("watch",t)})}},ey={icon:function(t){if(t===null)return null;if(Ji(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:In(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],r=_o(t[0]);return{prefix:r,iconName:In(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(we.cssPrefix,"-"))>-1||t.match(wv))){var i=Co(t.split(" "),{skipLookups:!0});return{prefix:i.prefix||$n(),iconName:In(i.prefix,i.iconName)||i.iconName}}if(typeof t=="string"){var h=$n();return{prefix:h,iconName:In(h,t)||t}}}},Lt={noAuto:Jv,config:we,dom:qv,parse:ey,library:mf,findIconDefinition:Xs,toHtml:ii},ty=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?Ye:n;(Object.keys(Pt.styles).length>0||we.autoFetchSvg)&&hn&&we.autoReplaceSvg&&Lt.dom.i2svg({node:r})};function xo(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return ii(r)})}}),Object.defineProperty(e,"node",{get:function(){if(hn){var r=Ye.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function ny(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,h=e.styles,f=e.transform;if(Wa(f)&&n.found&&!r.found){var g=n.width,s=n.height,p={x:g/s/2,y:.5};i.style=$o(ae(ae({},h),{},{"transform-origin":"".concat(p.x+f.x/16,"em ").concat(p.y+f.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function ry(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,h=e.symbol,f=h===!0?"".concat(t,"-").concat(we.cssPrefix,"-").concat(n):h;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:ae(ae({},i),{},{id:f}),children:r}]}]}function iy(e){var t=["aria-label","aria-labelledby","title","role"];return t.some(function(n){return n in e})}function Ha(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,h=e.iconName,f=e.transform,g=e.symbol,s=e.maskId,p=e.extra,o=e.watchable,a=o===void 0?!1:o,c=r.found?r:n,u=c.width,l=c.height,d=[we.replacementClass,h?"".concat(we.cssPrefix,"-").concat(h):""].filter(function(S){return p.classes.indexOf(S)===-1}).filter(function(S){return S!==""||!!S}).concat(p.classes).join(" "),m={children:[],attributes:ae(ae({},p.attributes),{},{"data-prefix":i,"data-icon":h,class:d,role:p.attributes.role||"img",viewBox:"0 0 ".concat(u," ").concat(l)})};!iy(p.attributes)&&!p.attributes["aria-hidden"]&&(m.attributes["aria-hidden"]="true"),a&&(m.attributes[zn]="");var v=ae(ae({},m),{},{prefix:i,iconName:h,main:n,mask:r,maskId:s,transform:f,symbol:g,styles:ae({},p.styles)}),y=r.found&&n.found?_n("generateAbstractMask",v)||{children:[],attributes:{}}:_n("generateAbstractIcon",v)||{children:[],attributes:{}},C=y.children,$=y.attributes;return v.children=C,v.attributes=$,g?ry(v):ny(v)}function tc(e){var t=e.content,n=e.width,r=e.height,i=e.transform,h=e.extra,f=e.watchable,g=f===void 0?!1:f,s=ae(ae({},h.attributes),{},{class:h.classes.join(" ")});g&&(s[zn]="");var p=ae({},h.styles);Wa(i)&&(p.transform=Iv({transform:i,width:n,height:r}),p["-webkit-transform"]=p.transform);var o=$o(p);o.length>0&&(s.style=o);var a=[];return a.push({tag:"span",attributes:s,children:[t]}),a}function oy(e){var t=e.content,n=e.extra,r=ae(ae({},n.attributes),{},{class:n.classes.join(" ")}),i=$o(n.styles);i.length>0&&(r.style=i);var h=[];return h.push({tag:"span",attributes:r,children:[t]}),h}var hs=Pt.styles;function Qs(e){var t=e[0],n=e[1],r=e.slice(4),i=So(r,1),h=i[0],f=null;return Array.isArray(h)?f={tag:"g",attributes:{class:"".concat(we.cssPrefix,"-").concat(ls.GROUP)},children:[{tag:"path",attributes:{class:"".concat(we.cssPrefix,"-").concat(ls.SECONDARY),fill:"currentColor",d:h[0]}},{tag:"path",attributes:{class:"".concat(we.cssPrefix,"-").concat(ls.PRIMARY),fill:"currentColor",d:h[1]}}]}:f={tag:"path",attributes:{fill:"currentColor",d:h}},{found:!0,width:t,height:n,icon:f}}var sy={found:!1,width:512,height:512};function ay(e,t){!Qh&&!we.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Js(e,t){var n=t;return t==="fa"&&we.styleDefault!==null&&(t=$n()),new Promise(function(r,i){if(n==="fa"){var h=pf(e)||{};e=h.iconName||e,t=h.prefix||t}if(e&&t&&hs[t]&&hs[t][e]){var f=hs[t][e];return r(Qs(f))}ay(e,t),r(ae(ae({},sy),{},{icon:we.showMissingIcons&&e?_n("missingIconAbstract")||{}:{}}))})}var nc=function(){},qs=we.measurePerformance&&bi&&bi.mark&&bi.measure?bi:{mark:nc,measure:nc},Tr='FA "7.1.0"',ly=function(t){return qs.mark("".concat(Tr," ").concat(t," begins")),function(){return vf(t)}},vf=function(t){qs.mark("".concat(Tr," ").concat(t," ends")),qs.measure("".concat(Tr," ").concat(t),"".concat(Tr," ").concat(t," begins"),"".concat(Tr," ").concat(t," ends"))},Ua={begin:ly,end:vf},Ni=function(){};function rc(e){var t=e.getAttribute?e.getAttribute(zn):null;return typeof t=="string"}function cy(e){var t=e.getAttribute?e.getAttribute(Da):null,n=e.getAttribute?e.getAttribute(Fa):null;return t&&n}function uy(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(we.replacementClass)}function hy(){if(we.autoReplaceSvg===!0)return Di.replace;var e=Di[we.autoReplaceSvg];return e||Di.replace}function fy(e){return Ye.createElementNS("http://www.w3.org/2000/svg",e)}function dy(e){return Ye.createElement(e)}function yf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?fy:dy:n;if(typeof e=="string")return Ye.createTextNode(e);var i=r(e.tag);Object.keys(e.attributes||[]).forEach(function(f){i.setAttribute(f,e.attributes[f])});var h=e.children||[];return h.forEach(function(f){i.appendChild(yf(f,{ceFn:r}))}),i}function py(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var Di={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(i){n.parentNode.insertBefore(yf(i),n)}),n.getAttribute(zn)===null&&we.keepOriginalSource){var r=Ye.createComment(py(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~za(n).indexOf(we.replacementClass))return Di.replace(t);var i=new RegExp("".concat(we.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var h=r[0].attributes.class.split(" ").reduce(function(g,s){return s===we.replacementClass||s.match(i)?g.toSvg.push(s):g.toNode.push(s),g},{toNode:[],toSvg:[]});r[0].attributes.class=h.toSvg.join(" "),h.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",h.toNode.join(" "))}var f=r.map(function(g){return ii(g)}).join(`
559
+ `);n.setAttribute(zn,""),n.innerHTML=f}};function ic(e){e()}function bf(e,t){var n=typeof t=="function"?t:Ni;if(e.length===0)n();else{var r=ic;we.mutateApproach===vv&&(r=Sn.requestAnimationFrame||ic),r(function(){var i=hy(),h=Ua.begin("mutate");e.map(i),h(),n()})}}var Va=!1;function wf(){Va=!0}function ea(){Va=!1}var eo=null;function oc(e){if(Hl&&we.observeMutations){var t=e.treeCallback,n=t===void 0?Ni:t,r=e.nodeCallback,i=r===void 0?Ni:r,h=e.pseudoElementsCallback,f=h===void 0?Ni:h,g=e.observeMutationsRoot,s=g===void 0?Ye:g;eo=new Hl(function(p){if(!Va){var o=$n();vr(p).forEach(function(a){if(a.type==="childList"&&a.addedNodes.length>0&&!rc(a.addedNodes[0])&&(we.searchPseudoElements&&f(a.target),n(a.target)),a.type==="attributes"&&a.target.parentNode&&we.searchPseudoElements&&f([a.target],!0),a.type==="attributes"&&rc(a.target)&&~_v.indexOf(a.attributeName))if(a.attributeName==="class"&&cy(a.target)){var c=Co(za(a.target)),u=c.prefix,l=c.iconName;a.target.setAttribute(Da,u||o),l&&a.target.setAttribute(Fa,l)}else uy(a.target)&&i(a.target)})}}),hn&&eo.observe(s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function gy(){eo&&eo.disconnect()}function my(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,i){var h=i.split(":"),f=h[0],g=h.slice(1);return f&&g.length>0&&(r[f]=g.join(":").trim()),r},{})),n}function vy(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",i=Co(za(e));return i.prefix||(i.prefix=$n()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=jv(i.prefix,e.innerText)||Ba(i.prefix,sf(e.innerText))),!i.iconName&&we.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function yy(e){var t=vr(e.attributes).reduce(function(n,r){return n.name!=="class"&&n.name!=="style"&&(n[r.name]=r.value),n},{});return t}function by(){return{iconName:null,prefix:null,transform:Xt,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function sc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=vy(e),r=n.iconName,i=n.prefix,h=n.rest,f=yy(e),g=Ks("parseNodeAttributes",{},e),s=t.styleParser?my(e):[];return ae({iconName:r,prefix:i,transform:Xt,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:h,styles:s,attributes:f}},g)}var wy=Pt.styles;function Sf(e){var t=we.autoReplaceSvg==="nest"?sc(e,{styleParser:!1}):sc(e);return~t.extra.classes.indexOf(qh)?_n("generateLayersText",e,t):_n("generateSvgReplacementMutation",e,t)}function Sy(){return[].concat(Wt(Vh),Wt(Gh))}function ac(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!hn)return Promise.resolve();var n=Ye.documentElement.classList,r=function(a){return n.add("".concat(Gl,"-").concat(a))},i=function(a){return n.remove("".concat(Gl,"-").concat(a))},h=we.autoFetchSvg?Sy():kh.concat(Object.keys(wy));h.includes("fa")||h.push("fa");var f=[".".concat(qh,":not([").concat(zn,"])")].concat(h.map(function(o){return".".concat(o,":not([").concat(zn,"])")})).join(", ");if(f.length===0)return Promise.resolve();var g=[];try{g=vr(e.querySelectorAll(f))}catch{}if(g.length>0)r("pending"),i("complete");else return Promise.resolve();var s=Ua.begin("onTree"),p=g.reduce(function(o,a){try{var c=Sf(a);c&&o.push(c)}catch(u){Qh||u.name==="MissingIcon"&&console.error(u)}return o},[]);return new Promise(function(o,a){Promise.all(p).then(function(c){bf(c,function(){r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),s(),o()})}).catch(function(c){s(),a(c)})})}function $y(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Sf(e).then(function(n){n&&bf([n],t)})}function _y(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:Xs(t||{}),i=n.mask;return i&&(i=(i||{}).icon?i:Xs(i||{})),e(r,ae(ae({},n),{},{mask:i}))}}var Cy=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,i=r===void 0?Xt:r,h=n.symbol,f=h===void 0?!1:h,g=n.mask,s=g===void 0?null:g,p=n.maskId,o=p===void 0?null:p,a=n.classes,c=a===void 0?[]:a,u=n.attributes,l=u===void 0?{}:u,d=n.styles,m=d===void 0?{}:d;if(t){var v=t.prefix,y=t.iconName,C=t.icon;return xo(ae({type:"icon"},t),function(){return Wn("beforeDOMElementCreation",{iconDefinition:t,params:n}),Ha({icons:{main:Qs(C),mask:s?Qs(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:v,iconName:y,transform:ae(ae({},Xt),i),symbol:f,maskId:o,extra:{attributes:l,styles:m,classes:c}})})}},xy={mixout:function(){return{icon:_y(Cy)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=ac,n.nodeCallback=$y,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,i=r===void 0?Ye:r,h=n.callback,f=h===void 0?function(){}:h;return ac(i,f)},t.generateSvgReplacementMutation=function(n,r){var i=r.iconName,h=r.prefix,f=r.transform,g=r.symbol,s=r.mask,p=r.maskId,o=r.extra;return new Promise(function(a,c){Promise.all([Js(i,h),s.iconName?Js(s.iconName,s.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(u){var l=So(u,2),d=l[0],m=l[1];a([n,Ha({icons:{main:d,mask:m},prefix:h,iconName:i,transform:f,symbol:g,maskId:p,extra:o,watchable:!0})])}).catch(c)})},t.generateAbstractIcon=function(n){var r=n.children,i=n.attributes,h=n.main,f=n.transform,g=n.styles,s=$o(g);s.length>0&&(i.style=s);var p;return Wa(f)&&(p=_n("generateAbstractTransformGrouping",{main:h,transform:f,containerWidth:h.width,iconWidth:h.width})),r.push(p||h.icon),{children:r,attributes:i}}}},Ay={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.classes,h=i===void 0?[]:i;return xo({type:"layer"},function(){Wn("beforeDOMElementCreation",{assembler:n,params:r});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(we.cssPrefix,"-layers")].concat(Wt(h)).join(" ")},children:f}]})}}}},ky={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};r.title;var i=r.classes,h=i===void 0?[]:i,f=r.attributes,g=f===void 0?{}:f,s=r.styles,p=s===void 0?{}:s;return xo({type:"counter",content:n},function(){return Wn("beforeDOMElementCreation",{content:n,params:r}),oy({content:n.toString(),extra:{attributes:g,styles:p,classes:["".concat(we.cssPrefix,"-layers-counter")].concat(Wt(h))}})})}}}},Ey={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.transform,h=i===void 0?Xt:i,f=r.classes,g=f===void 0?[]:f,s=r.attributes,p=s===void 0?{}:s,o=r.styles,a=o===void 0?{}:o;return xo({type:"text",content:n},function(){return Wn("beforeDOMElementCreation",{content:n,params:r}),tc({content:n,transform:ae(ae({},Xt),h),extra:{attributes:p,styles:a,classes:["".concat(we.cssPrefix,"-layers-text")].concat(Wt(g))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var i=r.transform,h=r.extra,f=null,g=null;if(xh){var s=parseInt(getComputedStyle(n).fontSize,10),p=n.getBoundingClientRect();f=p.width/s,g=p.height/s}return Promise.resolve([n,tc({content:n.innerHTML,width:f,height:g,transform:i,extra:h,watchable:!0})])}}},$f=new RegExp('"',"ug"),lc=[1105920,1112319],cc=ae(ae(ae(ae({},{FontAwesome:{normal:"fas",400:"fas"}}),um),gv),bm),ta=Object.keys(cc).reduce(function(e,t){return e[t.toLowerCase()]=cc[t],e},{}),My=Object.keys(ta).reduce(function(e,t){var n=ta[t];return e[t]=n[900]||Wt(Object.entries(n))[0][1],e},{});function Ty(e){var t=e.replace($f,"");return sf(Wt(t)[0]||"")}function Ly(e){var t=e.getPropertyValue("font-feature-settings").includes("ss01"),n=e.getPropertyValue("content"),r=n.replace($f,""),i=r.codePointAt(0),h=i>=lc[0]&&i<=lc[1],f=r.length===2?r[0]===r[1]:!1;return h||f||t}function Ry(e,t){var n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),i=isNaN(r)?"normal":r;return(ta[n]||{})[i]||My[n]}function uc(e,t){var n="".concat(mv).concat(t.replace(":","-"));return new Promise(function(r,i){if(e.getAttribute(n)!==null)return r();var h=vr(e.children),f=h.filter(function(b){return b.getAttribute(Us)===t})[0],g=Sn.getComputedStyle(e,t),s=g.getPropertyValue("font-family"),p=s.match(Sv),o=g.getPropertyValue("font-weight"),a=g.getPropertyValue("content");if(f&&!p)return e.removeChild(f),r();if(p&&a!=="none"&&a!==""){var c=g.getPropertyValue("content"),u=Ry(s,o),l=Ty(c),d=p[0].startsWith("FontAwesome"),m=Ly(g),v=Ba(u,l),y=v;if(d){var C=Bv(l);C.iconName&&C.prefix&&(v=C.iconName,u=C.prefix)}if(v&&!m&&(!f||f.getAttribute(Da)!==u||f.getAttribute(Fa)!==y)){e.setAttribute(n,y),f&&e.removeChild(f);var $=by(),S=$.extra;S.attributes[Us]=t,Js(v,u).then(function(b){var k=Ha(ae(ae({},$),{},{icons:{main:b,mask:gf()},prefix:u,iconName:y,extra:S,watchable:!0})),R=Ye.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(R,e.firstChild):e.appendChild(R),R.outerHTML=k.map(function(E){return ii(E)}).join(`
560
+ `),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function Iy(e){return Promise.all([uc(e,"::before"),uc(e,"::after")])}function Oy(e){return e.parentNode!==document.head&&!~yv.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Us)&&(!e.parentNode||e.parentNode.tagName!=="svg")}var Ny=function(t){return!!t&&Xh.some(function(n){return t.includes(n)})},Dy=function(t){if(!t)return[];var n=new Set,r=t.split(/,(?![^()]*\))/).map(function(s){return s.trim()});r=r.flatMap(function(s){return s.includes("(")?s:s.split(",").map(function(p){return p.trim()})});var i=Oi(r),h;try{for(i.s();!(h=i.n()).done;){var f=h.value;if(Ny(f)){var g=Xh.reduce(function(s,p){return s.replace(p,"")},f);g!==""&&g!=="*"&&n.add(g)}}}catch(s){i.e(s)}finally{i.f()}return n};function hc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(hn){var n;if(t)n=e;else if(we.searchPseudoElementsFullScan)n=e.querySelectorAll("*");else{var r=new Set,i=Oi(document.styleSheets),h;try{for(i.s();!(h=i.n()).done;){var f=h.value;try{var g=Oi(f.cssRules),s;try{for(g.s();!(s=g.n()).done;){var p=s.value,o=Dy(p.selectorText),a=Oi(o),c;try{for(a.s();!(c=a.n()).done;){var u=c.value;r.add(u)}}catch(d){a.e(d)}finally{a.f()}}}catch(d){g.e(d)}finally{g.f()}}catch(d){we.searchPseudoElementsWarnings&&console.warn("Font Awesome: cannot parse stylesheet: ".concat(f.href," (").concat(d.message,`)
561
+ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the <link>, enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.`))}}}catch(d){i.e(d)}finally{i.f()}if(!r.size)return;var l=Array.from(r).join(", ");try{n=e.querySelectorAll(l)}catch{}}return new Promise(function(d,m){var v=vr(n).filter(Oy).map(Iy),y=Ua.begin("searchPseudoElements");wf(),Promise.all(v).then(function(){y(),ea(),d()}).catch(function(){y(),ea(),m()})})}}var Fy={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=hc,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,i=r===void 0?Ye:r;we.searchPseudoElements&&hc(i)}}},fc=!1,Py={mixout:function(){return{dom:{unwatch:function(){wf(),fc=!0}}}},hooks:function(){return{bootstrap:function(){oc(Ks("mutationObserverCallbacks",{}))},noAuto:function(){gy()},watch:function(n){var r=n.observeMutationsRoot;fc?ea():oc(Ks("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},dc=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,i){var h=i.toLowerCase().split("-"),f=h[0],g=h.slice(1).join("-");if(f&&g==="h")return r.flipX=!0,r;if(f&&g==="v")return r.flipY=!0,r;if(g=parseFloat(g),isNaN(g))return r;switch(f){case"grow":r.size=r.size+g;break;case"shrink":r.size=r.size-g;break;case"left":r.x=r.x-g;break;case"right":r.x=r.x+g;break;case"up":r.y=r.y-g;break;case"down":r.y=r.y+g;break;case"rotate":r.rotate=r.rotate+g;break}return r},n)},zy={mixout:function(){return{parse:{transform:function(n){return dc(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-transform");return i&&(n.transform=dc(i)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,i=n.transform,h=n.containerWidth,f=n.iconWidth,g={transform:"translate(".concat(h/2," 256)")},s="translate(".concat(i.x*32,", ").concat(i.y*32,") "),p="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),o="rotate(".concat(i.rotate," 0 0)"),a={transform:"".concat(s," ").concat(p," ").concat(o)},c={transform:"translate(".concat(f/2*-1," -256)")},u={outer:g,inner:a,path:c};return{tag:"g",attributes:ae({},u.outer),children:[{tag:"g",attributes:ae({},u.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:ae(ae({},r.icon.attributes),u.path)}]}]}}}},fs={x:0,y:0,width:"100%",height:"100%"};function pc(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 Wy(e){return e.tag==="g"?e.children:[e]}var jy={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-mask"),h=i?Co(i.split(" ").map(function(f){return f.trim()})):gf();return h.prefix||(h.prefix=$n()),n.mask=h,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,i=n.attributes,h=n.main,f=n.mask,g=n.maskId,s=n.transform,p=h.width,o=h.icon,a=f.width,c=f.icon,u=Rv({transform:s,containerWidth:a,iconWidth:p}),l={tag:"rect",attributes:ae(ae({},fs),{},{fill:"white"})},d=o.children?{children:o.children.map(pc)}:{},m={tag:"g",attributes:ae({},u.inner),children:[pc(ae({tag:o.tag,attributes:ae(ae({},o.attributes),u.path)},d))]},v={tag:"g",attributes:ae({},u.outer),children:[m]},y="mask-".concat(g||Yl()),C="clip-".concat(g||Yl()),$={tag:"mask",attributes:ae(ae({},fs),{},{id:y,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[l,v]},S={tag:"defs",children:[{tag:"clipPath",attributes:{id:C},children:Wy(c)},$]};return r.push(S,{tag:"rect",attributes:ae({fill:"currentColor","clip-path":"url(#".concat(C,")"),mask:"url(#".concat(y,")")},fs)}),{children:r,attributes:i}}}},By={provides:function(t){var n=!1;Sn.matchMedia&&(n=Sn.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],i={fill:"currentColor"},h={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:ae(ae({},i),{},{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=ae(ae({},h),{},{attributeName:"opacity"}),g={tag:"circle",attributes:ae(ae({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||g.children.push({tag:"animate",attributes:ae(ae({},h),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:ae(ae({},f),{},{values:"1;0;1;1;0;1;"})}),r.push(g),r.push({tag:"path",attributes:ae(ae({},i),{},{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:ae(ae({},f),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:ae(ae({},i),{},{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:ae(ae({},f),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},Hy={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-symbol"),h=i===null?!1:i===""?!0:i;return n.symbol=h,n}}}},Uy=[Nv,xy,Ay,ky,Ey,Fy,Py,zy,jy,By,Hy];Qv(Uy,{mixoutsTo:Lt});Lt.noAuto;Lt.config;var Vy=Lt.library;Lt.dom;var na=Lt.parse;Lt.findIconDefinition;Lt.toHtml;var Gy=Lt.icon;Lt.layer;Lt.text;Lt.counter;/*!
562
+ * Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com
563
+ * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
564
+ * Copyright 2025 Fonticons, Inc.
565
+ */var Zy={prefix:"fas",iconName:"question",icon:[320,512,[10067,10068,61736],"3f","M64 160c0-53 43-96 96-96s96 43 96 96c0 42.7-27.9 78.9-66.5 91.4-28.4 9.2-61.5 35.3-61.5 76.6l0 24c0 17.7 14.3 32 32 32s32-14.3 32-32l0-24c0-1.7 .6-4.1 3.5-7.3 3-3.3 7.9-6.5 13.7-8.4 64.3-20.7 110.8-81 110.8-152.3 0-88.4-71.6-160-160-160S0 71.6 0 160c0 17.7 14.3 32 32 32s32-14.3 32-32zm96 352c22.1 0 40-17.9 40-40s-17.9-40-40-40-40 17.9-40 40 17.9 40 40 40z"]},Yy={prefix:"fas",iconName:"bell",icon:[448,512,[128276,61602],"f0f3","M224 0c-17.7 0-32 14.3-32 32l0 3.2C119 50 64 114.6 64 192l0 21.7c0 48.1-16.4 94.8-46.4 132.4L7.8 358.3C2.7 364.6 0 372.4 0 380.5 0 400.1 15.9 416 35.5 416l376.9 0c19.6 0 35.5-15.9 35.5-35.5 0-8.1-2.7-15.9-7.8-22.2l-9.8-12.2C400.4 308.5 384 261.8 384 213.7l0-21.7c0-77.4-55-142-128-156.8l0-3.2c0-17.7-14.3-32-32-32zM162 464c7.1 27.6 32.2 48 62 48s54.9-20.4 62-48l-124 0z"]},Ky={prefix:"fas",iconName:"exclamation",icon:[128,512,[10069,10071,61738],"21","M64 432c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40c0-22.1 17.9-40 40-40zM64 0c26.5 0 48 21.5 48 48 0 .6 0 1.1 0 1.7l-16 304c-.9 17-15 30.3-32 30.3S33 370.7 32 353.7L16 49.7c0-.6 0-1.1 0-1.7 0-26.5 21.5-48 48-48z"]},_f={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 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},Xy=_f,Qy={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 0L368 46.1 465.9 144 490.3 119.6c21.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.5L432 177.9 334.1 80 172.4 241.7zM96 64C43 64 0 107 0 160L0 416c0 53 43 96 96 96l256 0c53 0 96-43 96-96l0-96c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7-14.3 32-32 32L96 448c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L96 64z"]},Jy=Qy,qy={prefix:"fas",iconName:"sun",icon:[576,512,[9728],"f185","M178.2-10.1c7.4-3.1 15.8-2.2 22.5 2.2l87.8 58.2 87.8-58.2c6.7-4.4 15.1-5.2 22.5-2.2S411.4-.5 413 7.3l20.9 103.2 103.2 20.9c7.8 1.6 14.4 7 17.4 14.3s2.2 15.8-2.2 22.5l-58.2 87.8 58.2 87.8c4.4 6.7 5.2 15.1 2.2 22.5s-9.6 12.8-17.4 14.3L433.8 401.4 413 504.7c-1.6 7.8-7 14.4-14.3 17.4s-15.8 2.2-22.5-2.2l-87.8-58.2-87.8 58.2c-6.7 4.4-15.1 5.2-22.5 2.2s-12.8-9.6-14.3-17.4L143 401.4 39.7 380.5c-7.8-1.6-14.4-7-17.4-14.3s-2.2-15.8 2.2-22.5L82.7 256 24.5 168.2c-4.4-6.7-5.2-15.1-2.2-22.5s9.6-12.8 17.4-14.3L143 110.6 163.9 7.3c1.6-7.8 7-14.4 14.3-17.4zM207.6 256a80.4 80.4 0 1 1 160.8 0 80.4 80.4 0 1 1 -160.8 0zm208.8 0a128.4 128.4 0 1 0 -256.8 0 128.4 128.4 0 1 0 256.8 0z"]},e0={prefix:"fas",iconName:"lightbulb",icon:[384,512,[128161],"f0eb","M292.9 384c7.3-22.3 21.9-42.5 38.4-59.9 32.7-34.4 52.7-80.9 52.7-132.1 0-106-86-192-192-192S0 86 0 192c0 51.2 20 97.7 52.7 132.1 16.5 17.4 31.2 37.6 38.4 59.9l201.7 0zM288 432l-192 0 0 16c0 44.2 35.8 80 80 80l32 0c44.2 0 80-35.8 80-80l0-16zM184 112c-39.8 0-72 32.2-72 72 0 13.3-10.7 24-24 24s-24-10.7-24-24c0-66.3 53.7-120 120-120 13.3 0 24 10.7 24 24s-10.7 24-24 24z"]},t0={prefix:"fas",iconName:"file",icon:[384,512,[128196,128459,61462],"f15b","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-277.5c0-17-6.7-33.3-18.7-45.3L258.7 18.7C246.7 6.7 230.5 0 213.5 0L64 0zM325.5 176L232 176c-13.3 0-24-10.7-24-24L208 58.5 325.5 176z"]},n0={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M434.8 70.1c14.3 10.4 17.5 30.4 7.1 44.7l-256 352c-5.5 7.6-14 12.3-23.4 13.1s-18.5-2.7-25.1-9.3l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l101.5 101.5 234-321.7c10.4-14.3 30.4-17.5 44.7-7.1z"]},r0={prefix:"fas",iconName:"spinner",icon:[512,512,[],"f110","M208 48a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zm0 416a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM48 208a48 48 0 1 1 0 96 48 48 0 1 1 0-96zm368 48a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM75 369.1A48 48 0 1 1 142.9 437 48 48 0 1 1 75 369.1zM75 75A48 48 0 1 1 142.9 142.9 48 48 0 1 1 75 75zM437 369.1A48 48 0 1 1 369.1 437 48 48 0 1 1 437 369.1z"]},i0={prefix:"fas",iconName:"ticket",icon:[576,512,[127903],"f145","M64 64C28.7 64 0 92.7 0 128l0 64C0 200.8 7.4 207.7 15.7 210.6 34.5 217.1 48 235 48 256s-13.5 38.9-32.3 45.4C7.4 304.3 0 311.2 0 320l0 64c0 35.3 28.7 64 64 64l448 0c35.3 0 64-28.7 64-64l0-64c0-8.8-7.4-15.7-15.7-18.6-18.8-6.5-32.3-24.4-32.3-45.4s13.5-38.9 32.3-45.4c8.3-2.9 15.7-9.8 15.7-18.6l0-64c0-35.3-28.7-64-64-64L64 64zM416 336l0-160-256 0 0 160 256 0zM112 160c0-17.7 14.3-32 32-32l288 0c17.7 0 32 14.3 32 32l0 192c0 17.7-14.3 32-32 32l-288 0c-17.7 0-32-14.3-32-32l0-192z"]},o0={prefix:"fas",iconName:"barcode",icon:[448,512,[],"f02a","M32 32C14.3 32 0 46.3 0 64L0 448c0 17.7 14.3 32 32 32s32-14.3 32-32L64 64c0-17.7-14.3-32-32-32zm88 0c-13.3 0-24 10.7-24 24l0 400c0 13.3 10.7 24 24 24s24-10.7 24-24l0-400c0-13.3-10.7-24-24-24zm72 32l0 384c0 17.7 14.3 32 32 32s32-14.3 32-32l0-384c0-17.7-14.3-32-32-32s-32 14.3-32 32zm208-8l0 400c0 13.3 10.7 24 24 24s24-10.7 24-24l0-400c0-13.3-10.7-24-24-24s-24 10.7-24 24zm-96 0l0 400c0 13.3 10.7 24 24 24s24-10.7 24-24l0-400c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]},s0={prefix:"fas",iconName:"arrow-right",icon:[512,512,[8594],"f061","M502.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.3L402.7 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l370.7 0-105.4 105.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"]},a0={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z"]},l0=a0,c0={prefix:"fas",iconName:"moon",icon:[512,512,[127769,9214],"f186","M256 0C114.6 0 0 114.6 0 256S114.6 512 256 512c68.8 0 131.3-27.2 177.3-71.4 7.3-7 9.4-17.9 5.3-27.1s-13.7-14.9-23.8-14.1c-4.9 .4-9.8 .6-14.8 .6-101.6 0-184-82.4-184-184 0-72.1 41.5-134.6 102.1-164.8 9.1-4.5 14.3-14.3 13.1-24.4S322.6 8.5 312.7 6.3C294.4 2.2 275.4 0 256 0z"]},u0={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 0c14.7 0 28.2 8.1 35.2 21l216 400c6.7 12.4 6.4 27.4-.8 39.5S486.1 480 472 480L40 480c-14.1 0-27.2-7.4-34.4-19.5s-7.5-27.1-.8-39.5l216-400c7-12.9 20.5-21 35.2-21zm0 352a32 32 0 1 0 0 64 32 32 0 1 0 0-64zm0-192c-18.2 0-32.7 15.5-31.4 33.7l7.4 104c.9 12.5 11.4 22.3 23.9 22.3 12.6 0 23-9.7 23.9-22.3l7.4-104c1.3-18.2-13.1-33.7-31.4-33.7z"]},h0={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 160-160 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l160 0 0 160c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160 160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-160 0 0-160z"]},f0={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM224 160a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm-8 64l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},d0=f0;/**
566
+ * @vue/shared v3.5.22
567
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
568
+ * @license MIT
569
+ **/function Ga(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Pe={},rr=[],Qt=()=>{},Cf=()=>!1,Ao=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Za=e=>e.startsWith("onUpdate:"),pt=Object.assign,Ya=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},p0=Object.prototype.hasOwnProperty,Ie=(e,t)=>p0.call(e,t),Ae=Array.isArray,ir=e=>ko(e)==="[object Map]",xf=e=>ko(e)==="[object Set]",xe=e=>typeof e=="function",et=e=>typeof e=="string",An=e=>typeof e=="symbol",Be=e=>e!==null&&typeof e=="object",Af=e=>(Be(e)||xe(e))&&xe(e.then)&&xe(e.catch),kf=Object.prototype.toString,ko=e=>kf.call(e),g0=e=>ko(e).slice(8,-1),Ef=e=>ko(e)==="[object Object]",Ka=e=>et(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Or=Ga(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Eo=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},m0=/-\w/g,Nt=Eo(e=>e.replace(m0,t=>t.slice(1).toUpperCase())),v0=/\B([A-Z])/g,Vn=Eo(e=>e.replace(v0,"-$1").toLowerCase()),oi=Eo(e=>e.charAt(0).toUpperCase()+e.slice(1)),ds=Eo(e=>e?`on${oi(e)}`:""),wn=(e,t)=>!Object.is(e,t),Fi=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Mf=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},ra=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let gc;const Mo=()=>gc||(gc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Xa(e){if(Ae(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=et(r)?S0(r):Xa(r);if(i)for(const h in i)t[h]=i[h]}return t}else if(et(e)||Be(e))return e}const y0=/;(?![^(]*\))/g,b0=/:([^]+)/,w0=/\/\*[^]*?\*\//g;function S0(e){const t={};return e.replace(w0,"").split(y0).forEach(n=>{if(n){const r=n.split(b0);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function si(e){let t="";if(et(e))t=e;else if(Ae(e))for(let n=0;n<e.length;n++){const r=si(e[n]);r&&(t+=r+" ")}else if(Be(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const $0="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",_0=Ga($0);function Tf(e){return!!e||e===""}const Lf=e=>!!(e&&e.__v_isRef===!0),pe=e=>et(e)?e:e==null?"":Ae(e)||Be(e)&&(e.toString===kf||!xe(e.toString))?Lf(e)?pe(e.value):JSON.stringify(e,Rf,2):String(e),Rf=(e,t)=>Lf(t)?Rf(e,t.value):ir(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],h)=>(n[ps(r,h)+" =>"]=i,n),{})}:xf(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ps(n))}:An(t)?ps(t):Be(t)&&!Ae(t)&&!Ef(t)?String(t):t,ps=(e,t="")=>{var n;return An(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
570
+ * @vue/reactivity v3.5.22
571
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
572
+ * @license MIT
573
+ **/let ct;class If{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=ct,!t&&ct&&(this.index=(ct.scopes||(ct.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=ct;try{return ct=this,t()}finally{ct=n}}}on(){++this._on===1&&(this.prevScope=ct,ct=this)}off(){this._on>0&&--this._on===0&&(ct=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function C0(e){return new If(e)}function Of(){return ct}function x0(e,t=!1){ct&&ct.cleanups.push(e)}let We;const gs=new WeakSet;class Nf{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,ct&&ct.active&&ct.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,gs.has(this)&&(gs.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Ff(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,mc(this),Pf(this);const t=We,n=zt;We=this,zt=!0;try{return this.fn()}finally{zf(this),We=t,zt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)qa(t);this.deps=this.depsTail=void 0,mc(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?gs.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ia(this)&&this.run()}get dirty(){return ia(this)}}let Df=0,Nr,Dr;function Ff(e,t=!1){if(e.flags|=8,t){e.next=Dr,Dr=e;return}e.next=Nr,Nr=e}function Qa(){Df++}function Ja(){if(--Df>0)return;if(Dr){let t=Dr;for(Dr=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Nr;){let t=Nr;for(Nr=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function Pf(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function zf(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),qa(r),A0(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function ia(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Wf(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Wf(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ur)||(e.globalVersion=Ur,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ia(e))))return;e.flags|=2;const t=e.dep,n=We,r=zt;We=e,zt=!0;try{Pf(e);const i=e.fn(e._value);(t.version===0||wn(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{We=n,zt=r,zf(e),e.flags&=-3}}function qa(e,t=!1){const{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let h=n.computed.deps;h;h=h.nextDep)qa(h,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function A0(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let zt=!0;const jf=[];function cn(){jf.push(zt),zt=!1}function un(){const e=jf.pop();zt=e===void 0?!0:e}function mc(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=We;We=void 0;try{t()}finally{We=n}}}let Ur=0,k0=class{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}};class To{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!We||!zt||We===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==We)n=this.activeLink=new k0(We,this),We.deps?(n.prevDep=We.depsTail,We.depsTail.nextDep=n,We.depsTail=n):We.deps=We.depsTail=n,Bf(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=We.depsTail,n.nextDep=void 0,We.depsTail.nextDep=n,We.depsTail=n,We.deps===n&&(We.deps=r)}return n}trigger(t){this.version++,Ur++,this.notify(t)}notify(t){Qa();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Ja()}}}function Bf(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Bf(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const to=new WeakMap,Nn=Symbol(""),oa=Symbol(""),Vr=Symbol("");function ut(e,t,n){if(zt&&We){let r=to.get(e);r||to.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new To),i.map=r,i.key=n),i.track()}}function nn(e,t,n,r,i,h){const f=to.get(e);if(!f){Ur++;return}const g=s=>{s&&s.trigger()};if(Qa(),t==="clear")f.forEach(g);else{const s=Ae(e),p=s&&Ka(n);if(s&&n==="length"){const o=Number(r);f.forEach((a,c)=>{(c==="length"||c===Vr||!An(c)&&c>=o)&&g(a)})}else switch((n!==void 0||f.has(void 0))&&g(f.get(n)),p&&g(f.get(Vr)),t){case"add":s?p&&g(f.get("length")):(g(f.get(Nn)),ir(e)&&g(f.get(oa)));break;case"delete":s||(g(f.get(Nn)),ir(e)&&g(f.get(oa)));break;case"set":ir(e)&&g(f.get(Nn));break}}Ja()}function E0(e,t){const n=to.get(e);return n&&n.get(t)}function Kn(e){const t=Le(e);return t===e?t:(ut(t,"iterate",Vr),It(e)?t:t.map(it))}function Lo(e){return ut(e=Le(e),"iterate",Vr),e}const M0={__proto__:null,[Symbol.iterator](){return ms(this,Symbol.iterator,it)},concat(...e){return Kn(this).concat(...e.map(t=>Ae(t)?Kn(t):t))},entries(){return ms(this,"entries",e=>(e[1]=it(e[1]),e))},every(e,t){return qt(this,"every",e,t,void 0,arguments)},filter(e,t){return qt(this,"filter",e,t,n=>n.map(it),arguments)},find(e,t){return qt(this,"find",e,t,it,arguments)},findIndex(e,t){return qt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return qt(this,"findLast",e,t,it,arguments)},findLastIndex(e,t){return qt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return qt(this,"forEach",e,t,void 0,arguments)},includes(...e){return vs(this,"includes",e)},indexOf(...e){return vs(this,"indexOf",e)},join(e){return Kn(this).join(e)},lastIndexOf(...e){return vs(this,"lastIndexOf",e)},map(e,t){return qt(this,"map",e,t,void 0,arguments)},pop(){return xr(this,"pop")},push(...e){return xr(this,"push",e)},reduce(e,...t){return vc(this,"reduce",e,t)},reduceRight(e,...t){return vc(this,"reduceRight",e,t)},shift(){return xr(this,"shift")},some(e,t){return qt(this,"some",e,t,void 0,arguments)},splice(...e){return xr(this,"splice",e)},toReversed(){return Kn(this).toReversed()},toSorted(e){return Kn(this).toSorted(e)},toSpliced(...e){return Kn(this).toSpliced(...e)},unshift(...e){return xr(this,"unshift",e)},values(){return ms(this,"values",it)}};function ms(e,t,n){const r=Lo(e),i=r[t]();return r!==e&&!It(e)&&(i._next=i.next,i.next=()=>{const h=i._next();return h.done||(h.value=n(h.value)),h}),i}const T0=Array.prototype;function qt(e,t,n,r,i,h){const f=Lo(e),g=f!==e&&!It(e),s=f[t];if(s!==T0[t]){const a=s.apply(e,h);return g?it(a):a}let p=n;f!==e&&(g?p=function(a,c){return n.call(this,it(a),c,e)}:n.length>2&&(p=function(a,c){return n.call(this,a,c,e)}));const o=s.call(f,p,r);return g&&i?i(o):o}function vc(e,t,n,r){const i=Lo(e);let h=n;return i!==e&&(It(e)?n.length>3&&(h=function(f,g,s){return n.call(this,f,g,s,e)}):h=function(f,g,s){return n.call(this,f,it(g),s,e)}),i[t](h,...r)}function vs(e,t,n){const r=Le(e);ut(r,"iterate",Vr);const i=r[t](...n);return(i===-1||i===!1)&&nl(n[0])?(n[0]=Le(n[0]),r[t](...n)):i}function xr(e,t,n=[]){cn(),Qa();const r=Le(e)[t].apply(e,n);return Ja(),un(),r}const L0=Ga("__proto__,__v_isRef,__isVue"),Hf=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(An));function R0(e){An(e)||(e=String(e));const t=Le(this);return ut(t,"has",e),t.hasOwnProperty(e)}class Uf{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,h=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return h;if(n==="__v_raw")return r===(i?h?B0:Yf:h?Zf:Gf).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const f=Ae(t);if(!i){let s;if(f&&(s=M0[n]))return s;if(n==="hasOwnProperty")return R0}const g=Reflect.get(t,n,Je(t)?t:r);if((An(n)?Hf.has(n):L0(n))||(i||ut(t,"get",n),h))return g;if(Je(g)){const s=f&&Ka(n)?g:g.value;return i&&Be(s)?Gr(s):s}return Be(g)?i?Gr(g):yr(g):g}}class Vf extends Uf{constructor(t=!1){super(!1,t)}set(t,n,r,i){let h=t[n];if(!this._isShallow){const s=Cn(h);if(!It(r)&&!Cn(r)&&(h=Le(h),r=Le(r)),!Ae(t)&&Je(h)&&!Je(r))return s||(h.value=r),!0}const f=Ae(t)&&Ka(n)?Number(n)<t.length:Ie(t,n),g=Reflect.set(t,n,r,Je(t)?t:i);return t===Le(i)&&(f?wn(r,h)&&nn(t,"set",n,r):nn(t,"add",n,r)),g}deleteProperty(t,n){const r=Ie(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&r&&nn(t,"delete",n,void 0),i}has(t,n){const r=Reflect.has(t,n);return(!An(n)||!Hf.has(n))&&ut(t,"has",n),r}ownKeys(t){return ut(t,"iterate",Ae(t)?"length":Nn),Reflect.ownKeys(t)}}class I0 extends Uf{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const O0=new Vf,N0=new I0,D0=new Vf(!0);const sa=e=>e,Si=e=>Reflect.getPrototypeOf(e);function F0(e,t,n){return function(...r){const i=this.__v_raw,h=Le(i),f=ir(h),g=e==="entries"||e===Symbol.iterator&&f,s=e==="keys"&&f,p=i[e](...r),o=n?sa:t?no:it;return!t&&ut(h,"iterate",s?oa:Nn),{next(){const{value:a,done:c}=p.next();return c?{value:a,done:c}:{value:g?[o(a[0]),o(a[1])]:o(a),done:c}},[Symbol.iterator](){return this}}}}function $i(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function P0(e,t){const n={get(i){const h=this.__v_raw,f=Le(h),g=Le(i);e||(wn(i,g)&&ut(f,"get",i),ut(f,"get",g));const{has:s}=Si(f),p=t?sa:e?no:it;if(s.call(f,i))return p(h.get(i));if(s.call(f,g))return p(h.get(g));h!==f&&h.get(i)},get size(){const i=this.__v_raw;return!e&&ut(Le(i),"iterate",Nn),i.size},has(i){const h=this.__v_raw,f=Le(h),g=Le(i);return e||(wn(i,g)&&ut(f,"has",i),ut(f,"has",g)),i===g?h.has(i):h.has(i)||h.has(g)},forEach(i,h){const f=this,g=f.__v_raw,s=Le(g),p=t?sa:e?no:it;return!e&&ut(s,"iterate",Nn),g.forEach((o,a)=>i.call(h,p(o),p(a),f))}};return pt(n,e?{add:$i("add"),set:$i("set"),delete:$i("delete"),clear:$i("clear")}:{add(i){!t&&!It(i)&&!Cn(i)&&(i=Le(i));const h=Le(this);return Si(h).has.call(h,i)||(h.add(i),nn(h,"add",i,i)),this},set(i,h){!t&&!It(h)&&!Cn(h)&&(h=Le(h));const f=Le(this),{has:g,get:s}=Si(f);let p=g.call(f,i);p||(i=Le(i),p=g.call(f,i));const o=s.call(f,i);return f.set(i,h),p?wn(h,o)&&nn(f,"set",i,h):nn(f,"add",i,h),this},delete(i){const h=Le(this),{has:f,get:g}=Si(h);let s=f.call(h,i);s||(i=Le(i),s=f.call(h,i)),g&&g.call(h,i);const p=h.delete(i);return s&&nn(h,"delete",i,void 0),p},clear(){const i=Le(this),h=i.size!==0,f=i.clear();return h&&nn(i,"clear",void 0,void 0),f}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=F0(i,e,t)}),n}function el(e,t){const n=P0(e,t);return(r,i,h)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(Ie(n,i)&&i in r?n:r,i,h)}const z0={get:el(!1,!1)},W0={get:el(!1,!0)},j0={get:el(!0,!1)};const Gf=new WeakMap,Zf=new WeakMap,Yf=new WeakMap,B0=new WeakMap;function H0(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function U0(e){return e.__v_skip||!Object.isExtensible(e)?0:H0(g0(e))}function yr(e){return Cn(e)?e:tl(e,!1,O0,z0,Gf)}function Kf(e){return tl(e,!1,D0,W0,Zf)}function Gr(e){return tl(e,!0,N0,j0,Yf)}function tl(e,t,n,r,i){if(!Be(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const h=U0(e);if(h===0)return e;const f=i.get(e);if(f)return f;const g=new Proxy(e,h===2?r:n);return i.set(e,g),g}function or(e){return Cn(e)?or(e.__v_raw):!!(e&&e.__v_isReactive)}function Cn(e){return!!(e&&e.__v_isReadonly)}function It(e){return!!(e&&e.__v_isShallow)}function nl(e){return e?!!e.__v_raw:!1}function Le(e){const t=e&&e.__v_raw;return t?Le(t):e}function Xf(e){return!Ie(e,"__v_skip")&&Object.isExtensible(e)&&Mf(e,"__v_skip",!0),e}const it=e=>Be(e)?yr(e):e,no=e=>Be(e)?Gr(e):e;function Je(e){return e?e.__v_isRef===!0:!1}function Ne(e){return Qf(e,!1)}function Dn(e){return Qf(e,!0)}function Qf(e,t){return Je(e)?e:new V0(e,t)}class V0{constructor(t,n){this.dep=new To,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Le(t),this._value=n?t:it(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||It(t)||Cn(t);t=r?t:Le(t),wn(t,n)&&(this._rawValue=t,this._value=r?t:it(t),this.dep.trigger())}}function oe(e){return Je(e)?e.value:e}function dt(e){return xe(e)?e():oe(e)}const G0={get:(e,t,n)=>t==="__v_raw"?e:oe(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return Je(i)&&!Je(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Jf(e){return or(e)?e:new Proxy(e,G0)}class Z0{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new To,{get:r,set:i}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=i}get value(){return this._value=this._get()}set value(t){this._set(t)}}function qf(e){return new Z0(e)}class Y0{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return E0(Le(this._object),this._key)}}class K0{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function rl(e,t,n){return Je(e)?e:xe(e)?new K0(e):Be(e)&&arguments.length>1?X0(e,t,n):Ne(e)}function X0(e,t,n){const r=e[t];return Je(r)?r:new Y0(e,t,n)}class Q0{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new To(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ur-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&We!==this)return Ff(this,!0),!0}get value(){const t=this.dep.track();return Wf(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function J0(e,t,n=!1){let r,i;return xe(e)?r=e:(r=e.get,i=e.set),new Q0(r,i,n)}const _i={},ro=new WeakMap;let Tn;function q0(e,t=!1,n=Tn){if(n){let r=ro.get(n);r||ro.set(n,r=[]),r.push(e)}}function eb(e,t,n=Pe){const{immediate:r,deep:i,once:h,scheduler:f,augmentJob:g,call:s}=n,p=$=>i?$:It($)||i===!1||i===0?rn($,1):rn($);let o,a,c,u,l=!1,d=!1;if(Je(e)?(a=()=>e.value,l=It(e)):or(e)?(a=()=>p(e),l=!0):Ae(e)?(d=!0,l=e.some($=>or($)||It($)),a=()=>e.map($=>{if(Je($))return $.value;if(or($))return p($);if(xe($))return s?s($,2):$()})):xe(e)?t?a=s?()=>s(e,2):e:a=()=>{if(c){cn();try{c()}finally{un()}}const $=Tn;Tn=o;try{return s?s(e,3,[u]):e(u)}finally{Tn=$}}:a=Qt,t&&i){const $=a,S=i===!0?1/0:i;a=()=>rn($(),S)}const m=Of(),v=()=>{o.stop(),m&&m.active&&Ya(m.effects,o)};if(h&&t){const $=t;t=(...S)=>{$(...S),v()}}let y=d?new Array(e.length).fill(_i):_i;const C=$=>{if(!(!(o.flags&1)||!o.dirty&&!$))if(t){const S=o.run();if(i||l||(d?S.some((b,k)=>wn(b,y[k])):wn(S,y))){c&&c();const b=Tn;Tn=o;try{const k=[S,y===_i?void 0:d&&y[0]===_i?[]:y,u];y=S,s?s(t,3,k):t(...k)}finally{Tn=b}}}else o.run()};return g&&g(C),o=new Nf(a),o.scheduler=f?()=>f(C,!1):C,u=$=>q0($,!1,o),c=o.onStop=()=>{const $=ro.get(o);if($){if(s)s($,4);else for(const S of $)S();ro.delete(o)}},t?r?C(!0):y=o.run():f?f(C.bind(null,!0),!0):o.run(),v.pause=o.pause.bind(o),v.resume=o.resume.bind(o),v.stop=v,v}function rn(e,t=1/0,n){if(t<=0||!Be(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Je(e))rn(e.value,t,n);else if(Ae(e))for(let r=0;r<e.length;r++)rn(e[r],t,n);else if(xf(e)||ir(e))e.forEach(r=>{rn(r,t,n)});else if(Ef(e)){for(const r in e)rn(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&rn(e[r],t,n)}return e}/**
574
+ * @vue/runtime-core v3.5.22
575
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
576
+ * @license MIT
577
+ **/function ai(e,t,n,r){try{return r?e(...r):e()}catch(i){Ro(i,t,n)}}function Jt(e,t,n,r){if(xe(e)){const i=ai(e,t,n,r);return i&&Af(i)&&i.catch(h=>{Ro(h,t,n)}),i}if(Ae(e)){const i=[];for(let h=0;h<e.length;h++)i.push(Jt(e[h],t,n,r));return i}}function Ro(e,t,n,r=!0){const i=t?t.vnode:null,{errorHandler:h,throwUnhandledErrorInProduction:f}=t&&t.appContext.config||Pe;if(t){let g=t.parent;const s=t.proxy,p=`https://vuejs.org/error-reference/#runtime-${n}`;for(;g;){const o=g.ec;if(o){for(let a=0;a<o.length;a++)if(o[a](e,s,p)===!1)return}g=g.parent}if(h){cn(),ai(h,null,10,[e,s,p]),un();return}}tb(e,n,i,r,f)}function tb(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}const yt=[];let Yt=-1;const sr=[];let mn=null,Xn=0;const ed=Promise.resolve();let io=null;function li(e){const t=io||ed;return e?t.then(this?e.bind(this):e):t}function nb(e){let t=Yt+1,n=yt.length;for(;t<n;){const r=t+n>>>1,i=yt[r],h=Zr(i);h<e||h===e&&i.flags&2?t=r+1:n=r}return t}function il(e){if(!(e.flags&1)){const t=Zr(e),n=yt[yt.length-1];!n||!(e.flags&2)&&t>=Zr(n)?yt.push(e):yt.splice(nb(t),0,e),e.flags|=1,td()}}function td(){io||(io=ed.then(rd))}function rb(e){Ae(e)?sr.push(...e):mn&&e.id===-1?mn.splice(Xn+1,0,e):e.flags&1||(sr.push(e),e.flags|=1),td()}function yc(e,t,n=Yt+1){for(;n<yt.length;n++){const r=yt[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;yt.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function nd(e){if(sr.length){const t=[...new Set(sr)].sort((n,r)=>Zr(n)-Zr(r));if(sr.length=0,mn){mn.push(...t);return}for(mn=t,Xn=0;Xn<mn.length;Xn++){const n=mn[Xn];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}mn=null,Xn=0}}const Zr=e=>e.id==null?e.flags&2?-1:1/0:e.id;function rd(e){try{for(Yt=0;Yt<yt.length;Yt++){const t=yt[Yt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),ai(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Yt<yt.length;Yt++){const t=yt[Yt];t&&(t.flags&=-2)}Yt=-1,yt.length=0,nd(),io=null,(yt.length||sr.length)&&rd()}}let Et=null,id=null;function oo(e){const t=Et;return Et=e,id=e&&e.type.__scopeId||null,t}function Ge(e,t=Et,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&lo(-1);const h=oo(t);let f;try{f=e(...i)}finally{oo(h),r._d&&lo(1)}return f};return r._n=!0,r._c=!0,r._d=!0,r}function ol(e,t){if(Et===null)return e;const n=Do(Et),r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[h,f,g,s=Pe]=t[i];h&&(xe(h)&&(h={mounted:h,updated:h}),h.deep&&rn(f),r.push({dir:h,instance:n,value:f,oldValue:void 0,arg:g,modifiers:s}))}return e}function En(e,t,n,r){const i=e.dirs,h=t&&t.dirs;for(let f=0;f<i.length;f++){const g=i[f];h&&(g.oldValue=h[f].value);let s=g.dir[r];s&&(cn(),Jt(s,n,8,[e.el,g,e,t]),un())}}const ib=Symbol("_vte"),ob=e=>e.__isTeleport,sb=Symbol("_leaveCb");function sl(e,t){e.shapeFlag&6&&e.component?(e.transition=t,sl(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 ve(e,t){return xe(e)?pt({name:e.name},t,{setup:e}):e}function od(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const so=new WeakMap;function Fr(e,t,n,r,i=!1){if(Ae(e)){e.forEach((l,d)=>Fr(l,t&&(Ae(t)?t[d]:t),n,r,i));return}if(Pr(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Fr(e,t,n,r.component.subTree);return}const h=r.shapeFlag&4?Do(r.component):r.el,f=i?null:h,{i:g,r:s}=e,p=t&&t.r,o=g.refs===Pe?g.refs={}:g.refs,a=g.setupState,c=Le(a),u=a===Pe?Cf:l=>Ie(c,l);if(p!=null&&p!==s){if(bc(t),et(p))o[p]=null,u(p)&&(a[p]=null);else if(Je(p)){p.value=null;const l=t;l.k&&(o[l.k]=null)}}if(xe(s))ai(s,g,12,[f,o]);else{const l=et(s),d=Je(s);if(l||d){const m=()=>{if(e.f){const v=l?u(s)?a[s]:o[s]:s.value;if(i)Ae(v)&&Ya(v,h);else if(Ae(v))v.includes(h)||v.push(h);else if(l)o[s]=[h],u(s)&&(a[s]=o[s]);else{const y=[h];s.value=y,e.k&&(o[e.k]=y)}}else l?(o[s]=f,u(s)&&(a[s]=f)):d&&(s.value=f,e.k&&(o[e.k]=f))};if(f){const v=()=>{m(),so.delete(e)};v.id=-1,so.set(e,v),kt(v,n)}else bc(e),m()}}}function bc(e){const t=so.get(e);t&&(t.flags|=8,so.delete(e))}Mo().requestIdleCallback;Mo().cancelIdleCallback;const Pr=e=>!!e.type.__asyncLoader,sd=e=>e.type.__isKeepAlive;function ab(e,t){ad(e,"a",t)}function lb(e,t){ad(e,"da",t)}function ad(e,t,n=ht){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Io(t,r,n),n){let i=n.parent;for(;i&&i.parent;)sd(i.parent.vnode)&&cb(r,t,n,i),i=i.parent}}function cb(e,t,n,r){const i=Io(t,e,r,!0);cd(()=>{Ya(r[t],i)},n)}function Io(e,t,n=ht,r=!1){if(n){const i=n[e]||(n[e]=[]),h=t.__weh||(t.__weh=(...f)=>{cn();const g=ci(n),s=Jt(t,n,e,f);return g(),un(),s});return r?i.unshift(h):i.push(h),h}}const fn=e=>(t,n=ht)=>{(!Kr||e==="sp")&&Io(e,(...r)=>t(...r),n)},ub=fn("bm"),qe=fn("m"),hb=fn("bu"),fb=fn("u"),ld=fn("bum"),cd=fn("um"),db=fn("sp"),pb=fn("rtg"),gb=fn("rtc");function mb(e,t=ht){Io("ec",e,t)}const vb="components";function De(e,t){return bb(vb,e,!0,t)||e}const yb=Symbol.for("v-ndc");function bb(e,t,n=!0,r=!1){const i=Et||ht;if(i){const h=i.type;{const g=s1(h,!1);if(g&&(g===t||g===Nt(t)||g===oi(Nt(t))))return h}const f=wc(i[e]||h[e],t)||wc(i.appContext[e],t);return!f&&r?h:f}}function wc(e,t){return e&&(e[t]||e[Nt(t)]||e[oi(Nt(t))])}function Tt(e,t,n,r){let i;const h=n,f=Ae(e);if(f||et(e)){const g=f&&or(e);let s=!1,p=!1;g&&(s=!It(e),p=Cn(e),e=Lo(e)),i=new Array(e.length);for(let o=0,a=e.length;o<a;o++)i[o]=t(s?p?no(it(e[o])):it(e[o]):e[o],o,void 0,h)}else if(typeof e=="number"){i=new Array(e);for(let g=0;g<e;g++)i[g]=t(g+1,g,void 0,h)}else if(Be(e))if(e[Symbol.iterator])i=Array.from(e,(g,s)=>t(g,s,void 0,h));else{const g=Object.keys(e);i=new Array(g.length);for(let s=0,p=g.length;s<p;s++){const o=g[s];i[s]=t(e[o],o,s,h)}}else i=[];return i}const aa=e=>e?Md(e)?Do(e):aa(e.parent):null,zr=pt(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=>aa(e.parent),$root:e=>aa(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>hd(e),$forceUpdate:e=>e.f||(e.f=()=>{il(e.update)}),$nextTick:e=>e.n||(e.n=li.bind(e.proxy)),$watch:e=>Wb.bind(e)}),ys=(e,t)=>e!==Pe&&!e.__isScriptSetup&&Ie(e,t),wb={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:h,accessCache:f,type:g,appContext:s}=e;let p;if(t[0]!=="$"){const u=f[t];if(u!==void 0)switch(u){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return h[t]}else{if(ys(r,t))return f[t]=1,r[t];if(i!==Pe&&Ie(i,t))return f[t]=2,i[t];if((p=e.propsOptions[0])&&Ie(p,t))return f[t]=3,h[t];if(n!==Pe&&Ie(n,t))return f[t]=4,n[t];la&&(f[t]=0)}}const o=zr[t];let a,c;if(o)return t==="$attrs"&&ut(e.attrs,"get",""),o(e);if((a=g.__cssModules)&&(a=a[t]))return a;if(n!==Pe&&Ie(n,t))return f[t]=4,n[t];if(c=s.config.globalProperties,Ie(c,t))return c[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:h}=e;return ys(i,t)?(i[t]=n,!0):r!==Pe&&Ie(r,t)?(r[t]=n,!0):Ie(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(h[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:h,type:f}},g){let s,p;return!!(n[g]||e!==Pe&&g[0]!=="$"&&Ie(e,g)||ys(t,g)||(s=h[0])&&Ie(s,g)||Ie(r,g)||Ie(zr,g)||Ie(i.config.globalProperties,g)||(p=f.__cssModules)&&p[g])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ie(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Sc(e){return Ae(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let la=!0;function Sb(e){const t=hd(e),n=e.proxy,r=e.ctx;la=!1,t.beforeCreate&&$c(t.beforeCreate,e,"bc");const{data:i,computed:h,methods:f,watch:g,provide:s,inject:p,created:o,beforeMount:a,mounted:c,beforeUpdate:u,updated:l,activated:d,deactivated:m,beforeDestroy:v,beforeUnmount:y,destroyed:C,unmounted:$,render:S,renderTracked:b,renderTriggered:k,errorCaptured:R,serverPrefetch:E,expose:L,inheritAttrs:O,components:M,directives:x,filters:_}=t;if(p&&$b(p,r,null),f)for(const T in f){const I=f[T];xe(I)&&(r[T]=I.bind(n))}if(i){const T=i.call(n,n);Be(T)&&(e.data=yr(T))}if(la=!0,h)for(const T in h){const I=h[T],N=xe(I)?I.bind(n,n):xe(I.get)?I.get.bind(n,n):Qt,D=!xe(I)&&xe(I.set)?I.set.bind(n):Qt,F=ye({get:N,set:D});Object.defineProperty(r,T,{enumerable:!0,configurable:!0,get:()=>F.value,set:H=>F.value=H})}if(g)for(const T in g)ud(g[T],r,n,T);if(s){const T=xe(s)?s.call(n):s;Reflect.ownKeys(T).forEach(I=>{Pi(I,T[I])})}o&&$c(o,e,"c");function A(T,I){Ae(I)?I.forEach(N=>T(N.bind(n))):I&&T(I.bind(n))}if(A(ub,a),A(qe,c),A(hb,u),A(fb,l),A(ab,d),A(lb,m),A(mb,R),A(gb,b),A(pb,k),A(ld,y),A(cd,$),A(db,E),Ae(L))if(L.length){const T=e.exposed||(e.exposed={});L.forEach(I=>{Object.defineProperty(T,I,{get:()=>n[I],set:N=>n[I]=N,enumerable:!0})})}else e.exposed||(e.exposed={});S&&e.render===Qt&&(e.render=S),O!=null&&(e.inheritAttrs=O),M&&(e.components=M),x&&(e.directives=x),E&&od(e)}function $b(e,t,n=Qt){Ae(e)&&(e=ca(e));for(const r in e){const i=e[r];let h;Be(i)?"default"in i?h=Ot(i.from||r,i.default,!0):h=Ot(i.from||r):h=Ot(i),Je(h)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>h.value,set:f=>h.value=f}):t[r]=h}}function $c(e,t,n){Jt(Ae(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function ud(e,t,n,r){let i=r.includes(".")?Cd(n,r):()=>n[r];if(et(e)){const h=t[e];xe(h)&&Fe(i,h)}else if(xe(e))Fe(i,e.bind(n));else if(Be(e))if(Ae(e))e.forEach(h=>ud(h,t,n,r));else{const h=xe(e.handler)?e.handler.bind(n):t[e.handler];xe(h)&&Fe(i,h,e)}}function hd(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:h,config:{optionMergeStrategies:f}}=e.appContext,g=h.get(t);let s;return g?s=g:!i.length&&!n&&!r?s=t:(s={},i.length&&i.forEach(p=>ao(s,p,f,!0)),ao(s,t,f)),Be(t)&&h.set(t,s),s}function ao(e,t,n,r=!1){const{mixins:i,extends:h}=t;h&&ao(e,h,n,!0),i&&i.forEach(f=>ao(e,f,n,!0));for(const f in t)if(!(r&&f==="expose")){const g=_b[f]||n&&n[f];e[f]=g?g(e[f],t[f]):t[f]}return e}const _b={data:_c,props:Cc,emits:Cc,methods:Lr,computed:Lr,beforeCreate:vt,created:vt,beforeMount:vt,mounted:vt,beforeUpdate:vt,updated:vt,beforeDestroy:vt,beforeUnmount:vt,destroyed:vt,unmounted:vt,activated:vt,deactivated:vt,errorCaptured:vt,serverPrefetch:vt,components:Lr,directives:Lr,watch:xb,provide:_c,inject:Cb};function _c(e,t){return t?e?function(){return pt(xe(e)?e.call(this,this):e,xe(t)?t.call(this,this):t)}:t:e}function Cb(e,t){return Lr(ca(e),ca(t))}function ca(e){if(Ae(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function vt(e,t){return e?[...new Set([].concat(e,t))]:t}function Lr(e,t){return e?pt(Object.create(null),e,t):t}function Cc(e,t){return e?Ae(e)&&Ae(t)?[...new Set([...e,...t])]:pt(Object.create(null),Sc(e),Sc(t??{})):t}function xb(e,t){if(!e)return t;if(!t)return e;const n=pt(Object.create(null),e);for(const r in t)n[r]=vt(e[r],t[r]);return n}function fd(){return{app:null,config:{isNativeTag:Cf,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 Ab=0;function kb(e,t){return function(r,i=null){xe(r)||(r=pt({},r)),i!=null&&!Be(i)&&(i=null);const h=fd(),f=new WeakSet,g=[];let s=!1;const p=h.app={_uid:Ab++,_component:r,_props:i,_container:null,_context:h,_instance:null,version:l1,get config(){return h.config},set config(o){},use(o,...a){return f.has(o)||(o&&xe(o.install)?(f.add(o),o.install(p,...a)):xe(o)&&(f.add(o),o(p,...a))),p},mixin(o){return h.mixins.includes(o)||h.mixins.push(o),p},component(o,a){return a?(h.components[o]=a,p):h.components[o]},directive(o,a){return a?(h.directives[o]=a,p):h.directives[o]},mount(o,a,c){if(!s){const u=p._ceVNode||ie(r,i);return u.appContext=h,c===!0?c="svg":c===!1&&(c=void 0),e(u,o,c),s=!0,p._container=o,o.__vue_app__=p,Do(u.component)}},onUnmount(o){g.push(o)},unmount(){s&&(Jt(g,p._instance,16),e(null,p._container),delete p._container.__vue_app__)},provide(o,a){return h.provides[o]=a,p},runWithContext(o){const a=Fn;Fn=p;try{return o()}finally{Fn=a}}};return p}}let Fn=null;function Pi(e,t){if(ht){let n=ht.provides;const r=ht.parent&&ht.parent.provides;r===n&&(n=ht.provides=Object.create(r)),n[e]=t}}function Ot(e,t,n=!1){const r=br();if(r||Fn){let i=Fn?Fn._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&xe(t)?t.call(r&&r.proxy):t}}function dd(){return!!(br()||Fn)}const pd={},gd=()=>Object.create(pd),md=e=>Object.getPrototypeOf(e)===pd;function Eb(e,t,n,r=!1){const i={},h=gd();e.propsDefaults=Object.create(null),vd(e,t,i,h);for(const f in e.propsOptions[0])f in i||(i[f]=void 0);n?e.props=r?i:Kf(i):e.type.props?e.props=i:e.props=h,e.attrs=h}function Mb(e,t,n,r){const{props:i,attrs:h,vnode:{patchFlag:f}}=e,g=Le(i),[s]=e.propsOptions;let p=!1;if((r||f>0)&&!(f&16)){if(f&8){const o=e.vnode.dynamicProps;for(let a=0;a<o.length;a++){let c=o[a];if(Oo(e.emitsOptions,c))continue;const u=t[c];if(s)if(Ie(h,c))u!==h[c]&&(h[c]=u,p=!0);else{const l=Nt(c);i[l]=ua(s,g,l,u,e,!1)}else u!==h[c]&&(h[c]=u,p=!0)}}}else{vd(e,t,i,h)&&(p=!0);let o;for(const a in g)(!t||!Ie(t,a)&&((o=Vn(a))===a||!Ie(t,o)))&&(s?n&&(n[a]!==void 0||n[o]!==void 0)&&(i[a]=ua(s,g,a,void 0,e,!0)):delete i[a]);if(h!==g)for(const a in h)(!t||!Ie(t,a))&&(delete h[a],p=!0)}p&&nn(e.attrs,"set","")}function vd(e,t,n,r){const[i,h]=e.propsOptions;let f=!1,g;if(t)for(let s in t){if(Or(s))continue;const p=t[s];let o;i&&Ie(i,o=Nt(s))?!h||!h.includes(o)?n[o]=p:(g||(g={}))[o]=p:Oo(e.emitsOptions,s)||(!(s in r)||p!==r[s])&&(r[s]=p,f=!0)}if(h){const s=Le(n),p=g||Pe;for(let o=0;o<h.length;o++){const a=h[o];n[a]=ua(i,s,a,p[a],e,!Ie(p,a))}}return f}function ua(e,t,n,r,i,h){const f=e[n];if(f!=null){const g=Ie(f,"default");if(g&&r===void 0){const s=f.default;if(f.type!==Function&&!f.skipFactory&&xe(s)){const{propsDefaults:p}=i;if(n in p)r=p[n];else{const o=ci(i);r=p[n]=s.call(null,t),o()}}else r=s;i.ce&&i.ce._setProp(n,r)}f[0]&&(h&&!g?r=!1:f[1]&&(r===""||r===Vn(n))&&(r=!0))}return r}const Tb=new WeakMap;function yd(e,t,n=!1){const r=n?Tb:t.propsCache,i=r.get(e);if(i)return i;const h=e.props,f={},g=[];let s=!1;if(!xe(e)){const o=a=>{s=!0;const[c,u]=yd(a,t,!0);pt(f,c),u&&g.push(...u)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!h&&!s)return Be(e)&&r.set(e,rr),rr;if(Ae(h))for(let o=0;o<h.length;o++){const a=Nt(h[o]);xc(a)&&(f[a]=Pe)}else if(h)for(const o in h){const a=Nt(o);if(xc(a)){const c=h[o],u=f[a]=Ae(c)||xe(c)?{type:c}:pt({},c),l=u.type;let d=!1,m=!0;if(Ae(l))for(let v=0;v<l.length;++v){const y=l[v],C=xe(y)&&y.name;if(C==="Boolean"){d=!0;break}else C==="String"&&(m=!1)}else d=xe(l)&&l.name==="Boolean";u[0]=d,u[1]=m,(d||Ie(u,"default"))&&g.push(a)}}const p=[f,g];return Be(e)&&r.set(e,p),p}function xc(e){return e[0]!=="$"&&!Or(e)}const al=e=>e==="_"||e==="_ctx"||e==="$stable",ll=e=>Ae(e)?e.map(Kt):[Kt(e)],Lb=(e,t,n)=>{if(t._n)return t;const r=Ge((...i)=>ll(t(...i)),n);return r._c=!1,r},bd=(e,t,n)=>{const r=e._ctx;for(const i in e){if(al(i))continue;const h=e[i];if(xe(h))t[i]=Lb(i,h,r);else if(h!=null){const f=ll(h);t[i]=()=>f}}},wd=(e,t)=>{const n=ll(t);e.slots.default=()=>n},Sd=(e,t,n)=>{for(const r in t)(n||!al(r))&&(e[r]=t[r])},Rb=(e,t,n)=>{const r=e.slots=gd();if(e.vnode.shapeFlag&32){const i=t._;i?(Sd(r,t,n),n&&Mf(r,"_",i,!0)):bd(t,r)}else t&&wd(e,t)},Ib=(e,t,n)=>{const{vnode:r,slots:i}=e;let h=!0,f=Pe;if(r.shapeFlag&32){const g=t._;g?n&&g===1?h=!1:Sd(i,t,n):(h=!t.$stable,bd(t,i)),f=t}else t&&(wd(e,t),f={default:1});if(h)for(const g in i)!al(g)&&f[g]==null&&delete i[g]},kt=Yb;function Ob(e){return Nb(e)}function Nb(e,t){const n=Mo();n.__VUE__=!0;const{insert:r,remove:i,patchProp:h,createElement:f,createText:g,createComment:s,setText:p,setElementText:o,parentNode:a,nextSibling:c,setScopeId:u=Qt,insertStaticContent:l}=e,d=(z,B,Y,q=null,te=null,ne=null,ue=void 0,he=null,ce=!!B.dynamicChildren)=>{if(z===B)return;z&&!Ar(z,B)&&(q=j(z),H(z,te,ne,!0),z=null),B.patchFlag===-2&&(ce=!1,B.dynamicChildren=null);const{type:se,ref:$e,shapeFlag:de}=B;switch(se){case No:m(z,B,Y,q);break;case xn:v(z,B,Y,q);break;case zi:z==null&&y(B,Y,q,ue);break;case Me:M(z,B,Y,q,te,ne,ue,he,ce);break;default:de&1?S(z,B,Y,q,te,ne,ue,he,ce):de&6?x(z,B,Y,q,te,ne,ue,he,ce):(de&64||de&128)&&se.process(z,B,Y,q,te,ne,ue,he,ce,Q)}$e!=null&&te?Fr($e,z&&z.ref,ne,B||z,!B):$e==null&&z&&z.ref!=null&&Fr(z.ref,null,ne,z,!0)},m=(z,B,Y,q)=>{if(z==null)r(B.el=g(B.children),Y,q);else{const te=B.el=z.el;B.children!==z.children&&p(te,B.children)}},v=(z,B,Y,q)=>{z==null?r(B.el=s(B.children||""),Y,q):B.el=z.el},y=(z,B,Y,q)=>{[z.el,z.anchor]=l(z.children,B,Y,q,z.el,z.anchor)},C=({el:z,anchor:B},Y,q)=>{let te;for(;z&&z!==B;)te=c(z),r(z,Y,q),z=te;r(B,Y,q)},$=({el:z,anchor:B})=>{let Y;for(;z&&z!==B;)Y=c(z),i(z),z=Y;i(B)},S=(z,B,Y,q,te,ne,ue,he,ce)=>{B.type==="svg"?ue="svg":B.type==="math"&&(ue="mathml"),z==null?b(B,Y,q,te,ne,ue,he,ce):E(z,B,te,ne,ue,he,ce)},b=(z,B,Y,q,te,ne,ue,he)=>{let ce,se;const{props:$e,shapeFlag:de,transition:Se,dirs:Ce}=z;if(ce=z.el=f(z.type,ne,$e&&$e.is,$e),de&8?o(ce,z.children):de&16&&R(z.children,ce,null,q,te,bs(z,ne),ue,he),Ce&&En(z,null,q,"created"),k(ce,z,z.scopeId,ue,q),$e){for(const ze in $e)ze!=="value"&&!Or(ze)&&h(ce,ze,null,$e[ze],ne,q);"value"in $e&&h(ce,"value",null,$e.value,ne),(se=$e.onVnodeBeforeMount)&&Gt(se,q,z)}Ce&&En(z,null,q,"beforeMount");const Te=Db(te,Se);Te&&Se.beforeEnter(ce),r(ce,B,Y),((se=$e&&$e.onVnodeMounted)||Te||Ce)&&kt(()=>{se&&Gt(se,q,z),Te&&Se.enter(ce),Ce&&En(z,null,q,"mounted")},te)},k=(z,B,Y,q,te)=>{if(Y&&u(z,Y),q)for(let ne=0;ne<q.length;ne++)u(z,q[ne]);if(te){let ne=te.subTree;if(B===ne||Ad(ne.type)&&(ne.ssContent===B||ne.ssFallback===B)){const ue=te.vnode;k(z,ue,ue.scopeId,ue.slotScopeIds,te.parent)}}},R=(z,B,Y,q,te,ne,ue,he,ce=0)=>{for(let se=ce;se<z.length;se++){const $e=z[se]=he?vn(z[se]):Kt(z[se]);d(null,$e,B,Y,q,te,ne,ue,he)}},E=(z,B,Y,q,te,ne,ue)=>{const he=B.el=z.el;let{patchFlag:ce,dynamicChildren:se,dirs:$e}=B;ce|=z.patchFlag&16;const de=z.props||Pe,Se=B.props||Pe;let Ce;if(Y&&Mn(Y,!1),(Ce=Se.onVnodeBeforeUpdate)&&Gt(Ce,Y,B,z),$e&&En(B,z,Y,"beforeUpdate"),Y&&Mn(Y,!0),(de.innerHTML&&Se.innerHTML==null||de.textContent&&Se.textContent==null)&&o(he,""),se?L(z.dynamicChildren,se,he,Y,q,bs(B,te),ne):ue||I(z,B,he,null,Y,q,bs(B,te),ne,!1),ce>0){if(ce&16)O(he,de,Se,Y,te);else if(ce&2&&de.class!==Se.class&&h(he,"class",null,Se.class,te),ce&4&&h(he,"style",de.style,Se.style,te),ce&8){const Te=B.dynamicProps;for(let ze=0;ze<Te.length;ze++){const Oe=Te[ze],bt=de[Oe],wt=Se[Oe];(wt!==bt||Oe==="value")&&h(he,Oe,bt,wt,te,Y)}}ce&1&&z.children!==B.children&&o(he,B.children)}else!ue&&se==null&&O(he,de,Se,Y,te);((Ce=Se.onVnodeUpdated)||$e)&&kt(()=>{Ce&&Gt(Ce,Y,B,z),$e&&En(B,z,Y,"updated")},q)},L=(z,B,Y,q,te,ne,ue)=>{for(let he=0;he<B.length;he++){const ce=z[he],se=B[he],$e=ce.el&&(ce.type===Me||!Ar(ce,se)||ce.shapeFlag&198)?a(ce.el):Y;d(ce,se,$e,null,q,te,ne,ue,!0)}},O=(z,B,Y,q,te)=>{if(B!==Y){if(B!==Pe)for(const ne in B)!Or(ne)&&!(ne in Y)&&h(z,ne,B[ne],null,te,q);for(const ne in Y){if(Or(ne))continue;const ue=Y[ne],he=B[ne];ue!==he&&ne!=="value"&&h(z,ne,he,ue,te,q)}"value"in Y&&h(z,"value",B.value,Y.value,te)}},M=(z,B,Y,q,te,ne,ue,he,ce)=>{const se=B.el=z?z.el:g(""),$e=B.anchor=z?z.anchor:g("");let{patchFlag:de,dynamicChildren:Se,slotScopeIds:Ce}=B;Ce&&(he=he?he.concat(Ce):Ce),z==null?(r(se,Y,q),r($e,Y,q),R(B.children||[],Y,$e,te,ne,ue,he,ce)):de>0&&de&64&&Se&&z.dynamicChildren?(L(z.dynamicChildren,Se,Y,te,ne,ue,he),(B.key!=null||te&&B===te.subTree)&&$d(z,B,!0)):I(z,B,Y,$e,te,ne,ue,he,ce)},x=(z,B,Y,q,te,ne,ue,he,ce)=>{B.slotScopeIds=he,z==null?B.shapeFlag&512?te.ctx.activate(B,Y,q,ue,ce):_(B,Y,q,te,ne,ue,ce):w(z,B,ce)},_=(z,B,Y,q,te,ne,ue)=>{const he=z.component=t1(z,q,te);if(sd(z)&&(he.ctx.renderer=Q),n1(he,!1,ue),he.asyncDep){if(te&&te.registerDep(he,A,ue),!z.el){const ce=he.subTree=ie(xn);v(null,ce,B,Y),z.placeholder=ce.el}}else A(he,z,B,Y,te,ne,ue)},w=(z,B,Y)=>{const q=B.component=z.component;if(Gb(z,B,Y))if(q.asyncDep&&!q.asyncResolved){T(q,B,Y);return}else q.next=B,q.update();else B.el=z.el,q.vnode=B},A=(z,B,Y,q,te,ne,ue)=>{const he=()=>{if(z.isMounted){let{next:de,bu:Se,u:Ce,parent:Te,vnode:ze}=z;{const Ut=_d(z);if(Ut){de&&(de.el=ze.el,T(z,de,ue)),Ut.asyncDep.then(()=>{z.isUnmounted||he()});return}}let Oe=de,bt;Mn(z,!1),de?(de.el=ze.el,T(z,de,ue)):de=ze,Se&&Fi(Se),(bt=de.props&&de.props.onVnodeBeforeUpdate)&&Gt(bt,Te,de,ze),Mn(z,!0);const wt=kc(z),Ht=z.subTree;z.subTree=wt,d(Ht,wt,a(Ht.el),j(Ht),z,te,ne),de.el=wt.el,Oe===null&&Zb(z,wt.el),Ce&&kt(Ce,te),(bt=de.props&&de.props.onVnodeUpdated)&&kt(()=>Gt(bt,Te,de,ze),te)}else{let de;const{el:Se,props:Ce}=B,{bm:Te,m:ze,parent:Oe,root:bt,type:wt}=z,Ht=Pr(B);Mn(z,!1),Te&&Fi(Te),!Ht&&(de=Ce&&Ce.onVnodeBeforeMount)&&Gt(de,Oe,B),Mn(z,!0);{bt.ce&&bt.ce._def.shadowRoot!==!1&&bt.ce._injectChildStyle(wt);const Ut=z.subTree=kc(z);d(null,Ut,Y,q,z,te,ne),B.el=Ut.el}if(ze&&kt(ze,te),!Ht&&(de=Ce&&Ce.onVnodeMounted)){const Ut=B;kt(()=>Gt(de,Oe,Ut),te)}(B.shapeFlag&256||Oe&&Pr(Oe.vnode)&&Oe.vnode.shapeFlag&256)&&z.a&&kt(z.a,te),z.isMounted=!0,B=Y=q=null}};z.scope.on();const ce=z.effect=new Nf(he);z.scope.off();const se=z.update=ce.run.bind(ce),$e=z.job=ce.runIfDirty.bind(ce);$e.i=z,$e.id=z.uid,ce.scheduler=()=>il($e),Mn(z,!0),se()},T=(z,B,Y)=>{B.component=z;const q=z.vnode.props;z.vnode=B,z.next=null,Mb(z,B.props,q,Y),Ib(z,B.children,Y),cn(),yc(z),un()},I=(z,B,Y,q,te,ne,ue,he,ce=!1)=>{const se=z&&z.children,$e=z?z.shapeFlag:0,de=B.children,{patchFlag:Se,shapeFlag:Ce}=B;if(Se>0){if(Se&128){D(se,de,Y,q,te,ne,ue,he,ce);return}else if(Se&256){N(se,de,Y,q,te,ne,ue,he,ce);return}}Ce&8?($e&16&&G(se,te,ne),de!==se&&o(Y,de)):$e&16?Ce&16?D(se,de,Y,q,te,ne,ue,he,ce):G(se,te,ne,!0):($e&8&&o(Y,""),Ce&16&&R(de,Y,q,te,ne,ue,he,ce))},N=(z,B,Y,q,te,ne,ue,he,ce)=>{z=z||rr,B=B||rr;const se=z.length,$e=B.length,de=Math.min(se,$e);let Se;for(Se=0;Se<de;Se++){const Ce=B[Se]=ce?vn(B[Se]):Kt(B[Se]);d(z[Se],Ce,Y,null,te,ne,ue,he,ce)}se>$e?G(z,te,ne,!0,!1,de):R(B,Y,q,te,ne,ue,he,ce,de)},D=(z,B,Y,q,te,ne,ue,he,ce)=>{let se=0;const $e=B.length;let de=z.length-1,Se=$e-1;for(;se<=de&&se<=Se;){const Ce=z[se],Te=B[se]=ce?vn(B[se]):Kt(B[se]);if(Ar(Ce,Te))d(Ce,Te,Y,null,te,ne,ue,he,ce);else break;se++}for(;se<=de&&se<=Se;){const Ce=z[de],Te=B[Se]=ce?vn(B[Se]):Kt(B[Se]);if(Ar(Ce,Te))d(Ce,Te,Y,null,te,ne,ue,he,ce);else break;de--,Se--}if(se>de){if(se<=Se){const Ce=Se+1,Te=Ce<$e?B[Ce].el:q;for(;se<=Se;)d(null,B[se]=ce?vn(B[se]):Kt(B[se]),Y,Te,te,ne,ue,he,ce),se++}}else if(se>Se)for(;se<=de;)H(z[se],te,ne,!0),se++;else{const Ce=se,Te=se,ze=new Map;for(se=Te;se<=Se;se++){const xt=B[se]=ce?vn(B[se]):Kt(B[se]);xt.key!=null&&ze.set(xt.key,se)}let Oe,bt=0;const wt=Se-Te+1;let Ht=!1,Ut=0;const Cr=new Array(wt);for(se=0;se<wt;se++)Cr[se]=0;for(se=Ce;se<=de;se++){const xt=z[se];if(bt>=wt){H(xt,te,ne,!0);continue}let Vt;if(xt.key!=null)Vt=ze.get(xt.key);else for(Oe=Te;Oe<=Se;Oe++)if(Cr[Oe-Te]===0&&Ar(xt,B[Oe])){Vt=Oe;break}Vt===void 0?H(xt,te,ne,!0):(Cr[Vt-Te]=se+1,Vt>=Ut?Ut=Vt:Ht=!0,d(xt,B[Vt],Y,null,te,ne,ue,he,ce),bt++)}const Dl=Ht?Fb(Cr):rr;for(Oe=Dl.length-1,se=wt-1;se>=0;se--){const xt=Te+se,Vt=B[xt],Fl=B[xt+1],Pl=xt+1<$e?Fl.el||Fl.placeholder:q;Cr[se]===0?d(null,Vt,Y,Pl,te,ne,ue,he,ce):Ht&&(Oe<0||se!==Dl[Oe]?F(Vt,Y,Pl,2):Oe--)}}},F=(z,B,Y,q,te=null)=>{const{el:ne,type:ue,transition:he,children:ce,shapeFlag:se}=z;if(se&6){F(z.component.subTree,B,Y,q);return}if(se&128){z.suspense.move(B,Y,q);return}if(se&64){ue.move(z,B,Y,Q);return}if(ue===Me){r(ne,B,Y);for(let de=0;de<ce.length;de++)F(ce[de],B,Y,q);r(z.anchor,B,Y);return}if(ue===zi){C(z,B,Y);return}if(q!==2&&se&1&&he)if(q===0)he.beforeEnter(ne),r(ne,B,Y),kt(()=>he.enter(ne),te);else{const{leave:de,delayLeave:Se,afterLeave:Ce}=he,Te=()=>{z.ctx.isUnmounted?i(ne):r(ne,B,Y)},ze=()=>{ne._isLeaving&&ne[sb](!0),de(ne,()=>{Te(),Ce&&Ce()})};Se?Se(ne,Te,ze):ze()}else r(ne,B,Y)},H=(z,B,Y,q=!1,te=!1)=>{const{type:ne,props:ue,ref:he,children:ce,dynamicChildren:se,shapeFlag:$e,patchFlag:de,dirs:Se,cacheIndex:Ce}=z;if(de===-2&&(te=!1),he!=null&&(cn(),Fr(he,null,Y,z,!0),un()),Ce!=null&&(B.renderCache[Ce]=void 0),$e&256){B.ctx.deactivate(z);return}const Te=$e&1&&Se,ze=!Pr(z);let Oe;if(ze&&(Oe=ue&&ue.onVnodeBeforeUnmount)&&Gt(Oe,B,z),$e&6)V(z.component,Y,q);else{if($e&128){z.suspense.unmount(Y,q);return}Te&&En(z,null,B,"beforeUnmount"),$e&64?z.type.remove(z,B,Y,Q,q):se&&!se.hasOnce&&(ne!==Me||de>0&&de&64)?G(se,B,Y,!1,!0):(ne===Me&&de&384||!te&&$e&16)&&G(ce,B,Y),q&&W(z)}(ze&&(Oe=ue&&ue.onVnodeUnmounted)||Te)&&kt(()=>{Oe&&Gt(Oe,B,z),Te&&En(z,null,B,"unmounted")},Y)},W=z=>{const{type:B,el:Y,anchor:q,transition:te}=z;if(B===Me){U(Y,q);return}if(B===zi){$(z);return}const ne=()=>{i(Y),te&&!te.persisted&&te.afterLeave&&te.afterLeave()};if(z.shapeFlag&1&&te&&!te.persisted){const{leave:ue,delayLeave:he}=te,ce=()=>ue(Y,ne);he?he(z.el,ne,ce):ce()}else ne()},U=(z,B)=>{let Y;for(;z!==B;)Y=c(z),i(z),z=Y;i(B)},V=(z,B,Y)=>{const{bum:q,scope:te,job:ne,subTree:ue,um:he,m:ce,a:se}=z;Ac(ce),Ac(se),q&&Fi(q),te.stop(),ne&&(ne.flags|=8,H(ue,z,B,Y)),he&&kt(he,B),kt(()=>{z.isUnmounted=!0},B)},G=(z,B,Y,q=!1,te=!1,ne=0)=>{for(let ue=ne;ue<z.length;ue++)H(z[ue],B,Y,q,te)},j=z=>{if(z.shapeFlag&6)return j(z.component.subTree);if(z.shapeFlag&128)return z.suspense.next();const B=c(z.anchor||z.el),Y=B&&B[ib];return Y?c(Y):B};let Z=!1;const X=(z,B,Y)=>{z==null?B._vnode&&H(B._vnode,null,null,!0):d(B._vnode||null,z,B,null,null,null,Y),B._vnode=z,Z||(Z=!0,yc(),nd(),Z=!1)},Q={p:d,um:H,m:F,r:W,mt:_,mc:R,pc:I,pbc:L,n:j,o:e};return{render:X,hydrate:void 0,createApp:kb(X)}}function bs({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Mn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Db(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function $d(e,t,n=!1){const r=e.children,i=t.children;if(Ae(r)&&Ae(i))for(let h=0;h<r.length;h++){const f=r[h];let g=i[h];g.shapeFlag&1&&!g.dynamicChildren&&((g.patchFlag<=0||g.patchFlag===32)&&(g=i[h]=vn(i[h]),g.el=f.el),!n&&g.patchFlag!==-2&&$d(f,g)),g.type===No&&g.patchFlag!==-1&&(g.el=f.el),g.type===xn&&!g.el&&(g.el=f.el)}}function Fb(e){const t=e.slice(),n=[0];let r,i,h,f,g;const s=e.length;for(r=0;r<s;r++){const p=e[r];if(p!==0){if(i=n[n.length-1],e[i]<p){t[r]=i,n.push(r);continue}for(h=0,f=n.length-1;h<f;)g=h+f>>1,e[n[g]]<p?h=g+1:f=g;p<e[n[h]]&&(h>0&&(t[r]=n[h-1]),n[h]=r)}}for(h=n.length,f=n[h-1];h-- >0;)n[h]=f,f=t[f];return n}function _d(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:_d(t)}function Ac(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Pb=Symbol.for("v-scx"),zb=()=>Ot(Pb);function cl(e,t){return ul(e,null,t)}function Fe(e,t,n){return ul(e,t,n)}function ul(e,t,n=Pe){const{immediate:r,deep:i,flush:h,once:f}=n,g=pt({},n),s=t&&r||!t&&h!=="post";let p;if(Kr){if(h==="sync"){const u=zb();p=u.__watcherHandles||(u.__watcherHandles=[])}else if(!s){const u=()=>{};return u.stop=Qt,u.resume=Qt,u.pause=Qt,u}}const o=ht;g.call=(u,l,d)=>Jt(u,o,l,d);let a=!1;h==="post"?g.scheduler=u=>{kt(u,o&&o.suspense)}:h!=="sync"&&(a=!0,g.scheduler=(u,l)=>{l?u():il(u)}),g.augmentJob=u=>{t&&(u.flags|=4),a&&(u.flags|=2,o&&(u.id=o.uid,u.i=o))};const c=eb(e,t,g);return Kr&&(p?p.push(c):s&&c()),c}function Wb(e,t,n){const r=this.proxy,i=et(e)?e.includes(".")?Cd(r,e):()=>r[e]:e.bind(r,r);let h;xe(t)?h=t:(h=t.handler,n=t);const f=ci(this),g=ul(i,h.bind(r),n);return f(),g}function Cd(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}const jb=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Nt(t)}Modifiers`]||e[`${Vn(t)}Modifiers`];function Bb(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Pe;let i=n;const h=t.startsWith("update:"),f=h&&jb(r,t.slice(7));f&&(f.trim&&(i=n.map(o=>et(o)?o.trim():o)),f.number&&(i=n.map(ra)));let g,s=r[g=ds(t)]||r[g=ds(Nt(t))];!s&&h&&(s=r[g=ds(Vn(t))]),s&&Jt(s,e,6,i);const p=r[g+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[g])return;e.emitted[g]=!0,Jt(p,e,6,i)}}const Hb=new WeakMap;function xd(e,t,n=!1){const r=n?Hb:t.emitsCache,i=r.get(e);if(i!==void 0)return i;const h=e.emits;let f={},g=!1;if(!xe(e)){const s=p=>{const o=xd(p,t,!0);o&&(g=!0,pt(f,o))};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!h&&!g?(Be(e)&&r.set(e,null),null):(Ae(h)?h.forEach(s=>f[s]=null):pt(f,h),Be(e)&&r.set(e,f),f)}function Oo(e,t){return!e||!Ao(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ie(e,t[0].toLowerCase()+t.slice(1))||Ie(e,Vn(t))||Ie(e,t))}function kc(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[h],slots:f,attrs:g,emit:s,render:p,renderCache:o,props:a,data:c,setupState:u,ctx:l,inheritAttrs:d}=e,m=oo(e);let v,y;try{if(n.shapeFlag&4){const $=i||r,S=$;v=Kt(p.call(S,$,o,a,u,c,l)),y=g}else{const $=t;v=Kt($.length>1?$(a,{attrs:g,slots:f,emit:s}):$(a,null)),y=t.props?g:Ub(g)}}catch($){Wr.length=0,Ro($,e,1),v=ie(xn)}let C=v;if(y&&d!==!1){const $=Object.keys(y),{shapeFlag:S}=C;$.length&&S&7&&(h&&$.some(Za)&&(y=Vb(y,h)),C=cr(C,y,!1,!0))}return n.dirs&&(C=cr(C,null,!1,!0),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition&&sl(C,n.transition),v=C,oo(m),v}const Ub=e=>{let t;for(const n in e)(n==="class"||n==="style"||Ao(n))&&((t||(t={}))[n]=e[n]);return t},Vb=(e,t)=>{const n={};for(const r in e)(!Za(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Gb(e,t,n){const{props:r,children:i,component:h}=e,{props:f,children:g,patchFlag:s}=t,p=h.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&s>=0){if(s&1024)return!0;if(s&16)return r?Ec(r,f,p):!!f;if(s&8){const o=t.dynamicProps;for(let a=0;a<o.length;a++){const c=o[a];if(f[c]!==r[c]&&!Oo(p,c))return!0}}}else return(i||g)&&(!g||!g.$stable)?!0:r===f?!1:r?f?Ec(r,f,p):!0:!!f;return!1}function Ec(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const h=r[i];if(t[h]!==e[h]&&!Oo(n,h))return!0}return!1}function Zb({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const Ad=e=>e.__isSuspense;function Yb(e,t){t&&t.pendingBranch?Ae(e)?t.effects.push(...e):t.effects.push(e):rb(e)}const Me=Symbol.for("v-fgt"),No=Symbol.for("v-txt"),xn=Symbol.for("v-cmt"),zi=Symbol.for("v-stc"),Wr=[];let Mt=null;function K(e=!1){Wr.push(Mt=e?null:[])}function Kb(){Wr.pop(),Mt=Wr[Wr.length-1]||null}let Yr=1;function lo(e,t=!1){Yr+=e,e<0&&Mt&&t&&(Mt.hasOnce=!0)}function kd(e){return e.dynamicChildren=Yr>0?Mt||rr:null,Kb(),Yr>0&&Mt&&Mt.push(e),e}function re(e,t,n,r,i,h){return kd(P(e,t,n,r,i,h,!0))}function me(e,t,n,r,i){return kd(ie(e,t,n,r,i,!0))}function co(e){return e?e.__v_isVNode===!0:!1}function Ar(e,t){return e.type===t.type&&e.key===t.key}const Ed=({key:e})=>e??null,Wi=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?et(e)||Je(e)||xe(e)?{i:Et,r:e,k:t,f:!!n}:e:null);function P(e,t=null,n=null,r=0,i=null,h=e===Me?0:1,f=!1,g=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ed(t),ref:t&&Wi(t),scopeId:id,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:h,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Et};return g?(fl(s,n),h&128&&e.normalize(s)):n&&(s.shapeFlag|=et(n)?8:16),Yr>0&&!f&&Mt&&(s.patchFlag>0||h&6)&&s.patchFlag!==32&&Mt.push(s),s}const ie=Xb;function Xb(e,t=null,n=null,r=0,i=null,h=!1){if((!e||e===yb)&&(e=xn),co(e)){const g=cr(e,t,!0);return n&&fl(g,n),Yr>0&&!h&&Mt&&(g.shapeFlag&6?Mt[Mt.indexOf(e)]=g:Mt.push(g)),g.patchFlag=-2,g}if(a1(e)&&(e=e.__vccOpts),t){t=Qb(t);let{class:g,style:s}=t;g&&!et(g)&&(t.class=si(g)),Be(s)&&(nl(s)&&!Ae(s)&&(s=pt({},s)),t.style=Xa(s))}const f=et(e)?1:Ad(e)?128:ob(e)?64:Be(e)?4:xe(e)?2:0;return P(e,t,n,r,i,f,h,!0)}function Qb(e){return e?nl(e)||md(e)?pt({},e):e:null}function cr(e,t,n=!1,r=!1){const{props:i,ref:h,patchFlag:f,children:g,transition:s}=e,p=t?Jb(i||{},t):i,o={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&Ed(p),ref:t&&t.ref?n&&h?Ae(h)?h.concat(Wi(t)):[h,Wi(t)]:Wi(t):h,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:g,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Me?f===-1?16:f|16:f,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:s,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&cr(e.ssContent),ssFallback:e.ssFallback&&cr(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return s&&r&&sl(o,s.clone(o)),o}function Ze(e=" ",t=0){return ie(No,null,e,t)}function hl(e,t){const n=ie(zi,null,e);return n.staticCount=t,n}function fe(e="",t=!1){return t?(K(),me(xn,null,e)):ie(xn,null,e)}function Kt(e){return e==null||typeof e=="boolean"?ie(xn):Ae(e)?ie(Me,null,e.slice()):co(e)?vn(e):ie(No,null,String(e))}function vn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:cr(e)}function fl(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Ae(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),fl(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!md(t)?t._ctx=Et:i===3&&Et&&(Et.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else xe(t)?(t={default:t,_ctx:Et},n=32):(t=String(t),r&64?(n=16,t=[Ze(t)]):n=8);e.children=t,e.shapeFlag|=n}function Jb(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const i in r)if(i==="class")t.class!==r.class&&(t.class=si([t.class,r.class]));else if(i==="style")t.style=Xa([t.style,r.style]);else if(Ao(i)){const h=t[i],f=r[i];f&&h!==f&&!(Ae(h)&&h.includes(f))&&(t[i]=h?[].concat(h,f):f)}else i!==""&&(t[i]=r[i])}return t}function Gt(e,t,n,r=null){Jt(e,t,7,[n,r])}const qb=fd();let e1=0;function t1(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||qb,h={uid:e1++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new If(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:yd(r,i),emitsOptions:xd(r,i),emit:null,emitted:null,propsDefaults:Pe,inheritAttrs:r.inheritAttrs,ctx:Pe,data:Pe,props:Pe,attrs:Pe,slots:Pe,refs:Pe,setupState:Pe,setupContext: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 h.ctx={_:h},h.root=t?t.root:h,h.emit=Bb.bind(null,h),e.ce&&e.ce(h),h}let ht=null;const br=()=>ht||Et;let uo,ha;{const e=Mo(),t=(n,r)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(r),h=>{i.length>1?i.forEach(f=>f(h)):i[0](h)}};uo=t("__VUE_INSTANCE_SETTERS__",n=>ht=n),ha=t("__VUE_SSR_SETTERS__",n=>Kr=n)}const ci=e=>{const t=ht;return uo(e),e.scope.on(),()=>{e.scope.off(),uo(t)}},Mc=()=>{ht&&ht.scope.off(),uo(null)};function Md(e){return e.vnode.shapeFlag&4}let Kr=!1;function n1(e,t=!1,n=!1){t&&ha(t);const{props:r,children:i}=e.vnode,h=Md(e);Eb(e,r,h,t),Rb(e,i,n||t);const f=h?r1(e,t):void 0;return t&&ha(!1),f}function r1(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,wb);const{setup:r}=n;if(r){cn();const i=e.setupContext=r.length>1?o1(e):null,h=ci(e),f=ai(r,e,0,[e.props,i]),g=Af(f);if(un(),h(),(g||e.sp)&&!Pr(e)&&od(e),g){if(f.then(Mc,Mc),t)return f.then(s=>{Tc(e,s)}).catch(s=>{Ro(s,e,0)});e.asyncDep=f}else Tc(e,f)}else Td(e)}function Tc(e,t,n){xe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Be(t)&&(e.setupState=Jf(t)),Td(e)}function Td(e,t,n){const r=e.type;e.render||(e.render=r.render||Qt);{const i=ci(e);cn();try{Sb(e)}finally{un(),i()}}}const i1={get(e,t){return ut(e,"get",""),e[t]}};function o1(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,i1),slots:e.slots,emit:e.emit,expose:t}}function Do(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Jf(Xf(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in zr)return zr[n](e)},has(t,n){return n in t||n in zr}})):e.proxy}function s1(e,t=!0){return xe(e)?e.displayName||e.name:e.name||t&&e.__name}function a1(e){return xe(e)&&"__vccOpts"in e}const ye=(e,t)=>J0(e,t,Kr);function Fo(e,t,n){try{lo(-1);const r=arguments.length;return r===2?Be(t)&&!Ae(t)?co(t)?ie(e,null,[t]):ie(e,t):ie(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&co(n)&&(n=[n]),ie(e,t,n))}finally{lo(1)}}const l1="3.5.22";/**
578
+ * @vue/runtime-dom v3.5.22
579
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
580
+ * @license MIT
581
+ **/let fa;const Lc=typeof window<"u"&&window.trustedTypes;if(Lc)try{fa=Lc.createPolicy("vue",{createHTML:e=>e})}catch{}const Ld=fa?e=>fa.createHTML(e):e=>e,c1="http://www.w3.org/2000/svg",u1="http://www.w3.org/1998/Math/MathML",tn=typeof document<"u"?document:null,Rc=tn&&tn.createElement("template"),h1={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t==="svg"?tn.createElementNS(c1,e):t==="mathml"?tn.createElementNS(u1,e):n?tn.createElement(e,{is:n}):tn.createElement(e);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>tn.createTextNode(e),createComment:e=>tn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>tn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,h){const f=n?n.previousSibling:t.lastChild;if(i&&(i===h||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===h||!(i=i.nextSibling)););else{Rc.innerHTML=Ld(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const g=Rc.content;if(r==="svg"||r==="mathml"){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]}},f1=Symbol("_vtc");function d1(e,t,n){const r=e[f1];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ic=Symbol("_vod"),p1=Symbol("_vsh"),g1=Symbol(""),m1=/(?:^|;)\s*display\s*:/;function v1(e,t,n){const r=e.style,i=et(n);let h=!1;if(n&&!i){if(t)if(et(t))for(const f of t.split(";")){const g=f.slice(0,f.indexOf(":")).trim();n[g]==null&&ji(r,g,"")}else for(const f in t)n[f]==null&&ji(r,f,"");for(const f in n)f==="display"&&(h=!0),ji(r,f,n[f])}else if(i){if(t!==n){const f=r[g1];f&&(n+=";"+f),r.cssText=n,h=m1.test(n)}}else t&&e.removeAttribute("style");Ic in e&&(e[Ic]=h?r.display:"",e[p1]&&(r.display="none"))}const Oc=/\s*!important$/;function ji(e,t,n){if(Ae(n))n.forEach(r=>ji(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=y1(e,t);Oc.test(n)?e.setProperty(Vn(r),n.replace(Oc,""),"important"):e[r]=n}}const Nc=["Webkit","Moz","ms"],ws={};function y1(e,t){const n=ws[t];if(n)return n;let r=Nt(t);if(r!=="filter"&&r in e)return ws[t]=r;r=oi(r);for(let i=0;i<Nc.length;i++){const h=Nc[i]+r;if(h in e)return ws[t]=h}return t}const Dc="http://www.w3.org/1999/xlink";function Fc(e,t,n,r,i,h=_0(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Dc,t.slice(6,t.length)):e.setAttributeNS(Dc,t,n):n==null||h&&!Tf(n)?e.removeAttribute(t):e.setAttribute(t,h?"":An(n)?String(n):n)}function Pc(e,t,n,r,i){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Ld(n):n);return}const h=e.tagName;if(t==="value"&&h!=="PROGRESS"&&!h.includes("-")){const g=h==="OPTION"?e.getAttribute("value")||"":e.value,s=n==null?e.type==="checkbox"?"on":"":String(n);(g!==s||!("_value"in e))&&(e.value=s),n==null&&e.removeAttribute(t),e._value=n;return}let f=!1;if(n===""||n==null){const g=typeof e[t];g==="boolean"?n=Tf(n):n==null&&g==="string"?(n="",f=!0):g==="number"&&(n=0,f=!0)}try{e[t]=n}catch{}f&&e.removeAttribute(i||t)}function Qn(e,t,n,r){e.addEventListener(t,n,r)}function b1(e,t,n,r){e.removeEventListener(t,n,r)}const zc=Symbol("_vei");function w1(e,t,n,r,i=null){const h=e[zc]||(e[zc]={}),f=h[t];if(r&&f)f.value=r;else{const[g,s]=S1(t);if(r){const p=h[t]=C1(r,i);Qn(e,g,p,s)}else f&&(b1(e,g,f,s),h[t]=void 0)}}const Wc=/(?:Once|Passive|Capture)$/;function S1(e){let t;if(Wc.test(e)){t={};let r;for(;r=e.match(Wc);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Vn(e.slice(2)),t]}let Ss=0;const $1=Promise.resolve(),_1=()=>Ss||($1.then(()=>Ss=0),Ss=Date.now());function C1(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Jt(x1(r,n.value),t,5,[r])};return n.value=e,n.attached=_1(),n}function x1(e,t){if(Ae(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const jc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,A1=(e,t,n,r,i,h)=>{const f=i==="svg";t==="class"?d1(e,r,f):t==="style"?v1(e,n,r):Ao(t)?Za(t)||w1(e,t,n,r,h):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):k1(e,t,r,f))?(Pc(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Fc(e,t,r,f,h,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!et(r))?Pc(e,Nt(t),r,h,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Fc(e,t,r,f))};function k1(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&jc(t)&&xe(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return jc(t)&&et(n)?!1:t in e}const Bc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ae(t)?n=>Fi(t,n):t};function E1(e){e.target.composing=!0}function Hc(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const $s=Symbol("_assign"),dl={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[$s]=Bc(i);const h=r||i.props&&i.props.type==="number";Qn(e,t?"change":"input",f=>{if(f.target.composing)return;let g=e.value;n&&(g=g.trim()),h&&(g=ra(g)),e[$s](g)}),n&&Qn(e,"change",()=>{e.value=e.value.trim()}),t||(Qn(e,"compositionstart",E1),Qn(e,"compositionend",Hc),Qn(e,"change",Hc))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:h}},f){if(e[$s]=Bc(f),e.composing)return;const g=(h||e.type==="number")&&!/^0\d/.test(e.value)?ra(e.value):e.value,s=t??"";g!==s&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||i&&e.value.trim()===s)||(e.value=s))}},M1=pt({patchProp:A1},h1);let Uc;function T1(){return Uc||(Uc=Ob(M1))}const L1=(...e)=>{const t=T1().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=I1(r);if(!i)return;const h=t._component;!xe(h)&&!h.render&&!h.template&&(h.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const f=n(i,!1,R1(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),f},t};function R1(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function I1(e){return et(e)?document.querySelector(e):e}function lt(e,t,n){return(t=F1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function on(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Vc(Object(n),!0).forEach(function(r){lt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vc(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function O1(e,t){if(e==null)return{};var n,r,i=N1(e,t);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(e);for(r=0;r<h.length;r++)n=h[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function N1(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function D1(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function F1(e){var t=D1(e,"string");return typeof t=="symbol"?t:t+""}function ho(e){"@babel/helpers - typeof";return ho=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},ho(e)}function _s(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?lt({},e,t):{}}function P1(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"},lt(lt(lt(lt(lt(lt(lt(lt(lt(lt(t,"fa-".concat(e.size),e.size!==null),"fa-rotate-".concat(e.rotation),e.rotation!==null),"fa-rotate-by",e.rotateBy),"fa-pull-".concat(e.pull),e.pull!==null),"fa-swap-opacity",e.swapOpacity),"fa-bounce",e.bounce),"fa-shake",e.shake),"fa-beat",e.beat),"fa-fade",e.fade),"fa-beat-fade",e.beatFade),lt(lt(lt(lt(t,"fa-flash",e.flash),"fa-spin-pulse",e.spinPulse),"fa-spin-reverse",e.spinReverse),"fa-width-auto",e.widthAuto));return Object.keys(n).map(function(r){return n[r]?r:null}).filter(function(r){return r})}var z1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Rd={exports:{}};(function(e){(function(t){var n=function(v,y,C){if(!p(y)||a(y)||c(y)||u(y)||s(y))return y;var $,S=0,b=0;if(o(y))for($=[],b=y.length;S<b;S++)$.push(n(v,y[S],C));else{$={};for(var k in y)Object.prototype.hasOwnProperty.call(y,k)&&($[v(k,C)]=n(v,y[k],C))}return $},r=function(v,y){y=y||{};var C=y.separator||"_",$=y.split||/(?=[A-Z])/;return v.split($).join(C)},i=function(v){return l(v)?v:(v=v.replace(/[\-_\s]+(.)?/g,function(y,C){return C?C.toUpperCase():""}),v.substr(0,1).toLowerCase()+v.substr(1))},h=function(v){var y=i(v);return y.substr(0,1).toUpperCase()+y.substr(1)},f=function(v,y){return r(v,y).toLowerCase()},g=Object.prototype.toString,s=function(v){return typeof v=="function"},p=function(v){return v===Object(v)},o=function(v){return g.call(v)=="[object Array]"},a=function(v){return g.call(v)=="[object Date]"},c=function(v){return g.call(v)=="[object RegExp]"},u=function(v){return g.call(v)=="[object Boolean]"},l=function(v){return v=v-0,v===v},d=function(v,y){var C=y&&"process"in y?y.process:y;return typeof C!="function"?v:function($,S){return C($,v,S)}},m={camelize:i,decamelize:f,pascalize:h,depascalize:f,camelizeKeys:function(v,y){return n(d(i,y),v)},decamelizeKeys:function(v,y){return n(d(f,y),v,y)},pascalizeKeys:function(v,y){return n(d(h,y),v)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=m:t.humps=m})(z1)})(Rd);var W1=Rd.exports,j1=["class","style"];function B1(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),i=W1.camelize(n.slice(0,r)),h=n.slice(r+1).trim();return t[i]=h,t},{})}function H1(e){return e.split(/\s+/).reduce(function(t,n){return t[n]=!0,t},{})}function Id(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof e=="string")return e;var r=(e.children||[]).map(function(s){return Id(s)}),i=Object.keys(e.attributes||{}).reduce(function(s,p){var o=e.attributes[p];switch(p){case"class":s.class=H1(o);break;case"style":s.style=B1(o);break;default:s.attrs[p]=o}return s},{attrs:{},class:{},style:{}});n.class;var h=n.style,f=h===void 0?{}:h,g=O1(n,j1);return Fo(e.tag,on(on(on({},t),{},{class:i.class,style:on(on({},i.style),f)},i.attrs),g),r)}var Od=!1;try{Od=!0}catch{}function U1(){if(!Od&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Gc(e){if(e&&ho(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(na.icon)return na.icon(e);if(e===null)return null;if(ho(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 V1=ve({name:"FontAwesomeIcon",props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:[Boolean,String],default:!1,validator:function(t){return[!0,!1,"horizontal","vertical","both"].indexOf(t)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},maskId:{type:String,default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(t){return["right","left"].indexOf(t)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(t){return[90,180,270].indexOf(Number.parseInt(t,10))>-1}},rotateBy:{type:Boolean,default:!1},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(t){return["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(t)>-1}},spin:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},titleId:{type:String,default:null},inverse:{type:Boolean,default:!1},bounce:{type:Boolean,default:!1},shake:{type:Boolean,default:!1},beat:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},beatFade:{type:Boolean,default:!1},flash:{type:Boolean,default:!1},spinPulse:{type:Boolean,default:!1},spinReverse:{type:Boolean,default:!1},widthAuto:{type:Boolean,default:!1}},setup:function(t,n){var r=n.attrs,i=ye(function(){return Gc(t.icon)}),h=ye(function(){return _s("classes",P1(t))}),f=ye(function(){return _s("transform",typeof t.transform=="string"?na.transform(t.transform):t.transform)}),g=ye(function(){return _s("mask",Gc(t.mask))}),s=ye(function(){var o=on(on(on(on({},h.value),f.value),g.value),{},{symbol:t.symbol,maskId:t.maskId});return o.title=t.title,o.titleId=t.titleId,Gy(i.value,o)});Fe(s,function(o){if(!o)return U1("Could not find one or more icon(s)",i.value,g.value)},{immediate:!0});var p=ye(function(){return s.value?Id(s.value.abstract[0],{},r):null});return function(){return p.value}}});function Po(e){return Of()?(x0(e),!0):!1}const Cs=new WeakMap,G1=(...e)=>{var t;const n=e[0],r=(t=br())==null?void 0:t.proxy;if(r==null&&!dd())throw new Error("injectLocal must be called in setup");return r&&Cs.has(r)&&n in Cs.get(r)?Cs.get(r)[n]:Ot(...e)},Nd=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Z1=e=>e!=null,Y1=Object.prototype.toString,K1=e=>Y1.call(e)==="[object Object]",X1=()=>{};function pl(...e){if(e.length!==1)return rl(...e);const t=e[0];return typeof t=="function"?Gr(qf(()=>({get:t,set:X1}))):Ne(t)}function Q1(e,t){function n(...r){return new Promise((i,h)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(i).catch(h)})}return n}const Dd=e=>e();function J1(e=Dd,t={}){const{initialState:n="active"}=t,r=pl(n==="active");function i(){r.value=!1}function h(){r.value=!0}const f=(...g)=>{r.value&&e(...g)};return{isActive:Gr(r),pause:i,resume:h,eventFilter:f}}function Zc(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function Bi(e){return Array.isArray(e)?e:[e]}function q1(e){return br()}function ew(e,t,n={}){const{eventFilter:r=Dd,...i}=n;return Fe(e,Q1(r,t),i)}function tw(e,t,n={}){const{eventFilter:r,initialState:i="active",...h}=n,{eventFilter:f,pause:g,resume:s,isActive:p}=J1(r,{initialState:i});return{stop:ew(e,t,{...h,eventFilter:f}),pause:g,resume:s,isActive:p}}function Fd(e,t=!0,n){q1()?qe(e,n):t?e():li(e)}function ui(e=!1,t={}){const{truthyValue:n=!0,falsyValue:r=!1}=t,i=Je(e),h=Dn(e);function f(g){if(arguments.length)return h.value=g,h.value;{const s=dt(n);return h.value=h.value===s?dt(r):s,h.value}}return i?f:[h,f]}function nw(e,t,n){return Fe(e,t,{...n,immediate:!0})}const ur=Nd?window:void 0,rw=Nd?window.document:void 0;function gl(e){var t;const n=dt(e);return(t=n?.$el)!=null?t:n}function da(...e){const t=[],n=()=>{t.forEach(g=>g()),t.length=0},r=(g,s,p,o)=>(g.addEventListener(s,p,o),()=>g.removeEventListener(s,p,o)),i=ye(()=>{const g=Bi(dt(e[0])).filter(s=>s!=null);return g.every(s=>typeof s!="string")?g:void 0}),h=nw(()=>{var g,s;return[(s=(g=i.value)==null?void 0:g.map(p=>gl(p)))!=null?s:[ur].filter(p=>p!=null),Bi(dt(i.value?e[1]:e[0])),Bi(oe(i.value?e[2]:e[1])),dt(i.value?e[3]:e[2])]},([g,s,p,o])=>{if(n(),!g?.length||!s?.length||!p?.length)return;const a=K1(o)?{...o}:o;t.push(...g.flatMap(c=>s.flatMap(u=>p.map(l=>r(c,u,l,a)))))},{flush:"post"}),f=()=>{h(),n()};return Po(n),f}function iw(){const e=Dn(!1),t=br();return t&&qe(()=>{e.value=!0},t),e}function Pd(e){const t=iw();return ye(()=>(t.value,!!e()))}function ow(e,t,n={}){const{window:r=ur,...i}=n;let h;const f=Pd(()=>r&&"MutationObserver"in r),g=()=>{h&&(h.disconnect(),h=void 0)},s=ye(()=>{const c=dt(e),u=Bi(c).map(gl).filter(Z1);return new Set(u)}),p=Fe(s,c=>{g(),f.value&&c.size&&(h=new MutationObserver(t),c.forEach(u=>h.observe(u,i)))},{immediate:!0,flush:"post"}),o=()=>h?.takeRecords(),a=()=>{p(),g()};return Po(a),{isSupported:f,stop:a,takeRecords:o}}const sw=Symbol("vueuse-ssr-width");function aw(){const e=dd()?G1(sw,null):null;return typeof e=="number"?e:void 0}function lw(e,t={}){const{window:n=ur,ssrWidth:r=aw()}=t,i=Pd(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),h=Dn(typeof r=="number"),f=Dn(),g=Dn(!1),s=p=>{g.value=p.matches};return cl(()=>{if(h.value){h.value=!i.value;const p=dt(e).split(",");g.value=p.some(o=>{const a=o.includes("not all"),c=o.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),u=o.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let l=!!(c||u);return c&&l&&(l=r>=Zc(c[1])),u&&l&&(l=r<=Zc(u[1])),a?!l:l});return}i.value&&(f.value=n.matchMedia(dt(e)),g.value=f.value.matches)}),da(f,"change",s,{passive:!0}),ye(()=>g.value)}const Ci=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},xi="__vueuse_ssr_handlers__",cw=uw();function uw(){return xi in Ci||(Ci[xi]=Ci[xi]||{}),Ci[xi]}function zd(e,t){return cw[e]||t}function hw(e){return lw("(prefers-color-scheme: dark)",e)}function fw(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const dw={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Yc="vueuse-storage";function pw(e,t,n,r={}){var i;const{flush:h="pre",deep:f=!0,listenToStorageChanges:g=!0,writeDefaults:s=!0,mergeDefaults:p=!1,shallow:o,window:a=ur,eventFilter:c,onError:u=_=>{console.error(_)},initOnMounted:l}=r,d=(o?Dn:Ne)(typeof t=="function"?t():t),m=ye(()=>dt(e));if(!n)try{n=zd("getDefaultStorage",()=>{var _;return(_=ur)==null?void 0:_.localStorage})()}catch(_){u(_)}if(!n)return d;const v=dt(t),y=fw(v),C=(i=r.serializer)!=null?i:dw[y],{pause:$,resume:S}=tw(d,_=>L(_),{flush:h,deep:f,eventFilter:c});Fe(m,()=>M(),{flush:h});let b=!1;const k=_=>{l&&!b||M(_)},R=_=>{l&&!b||x(_)};a&&g&&(n instanceof Storage?da(a,"storage",k,{passive:!0}):da(a,Yc,R)),l?Fd(()=>{b=!0,M()}):M();function E(_,w){if(a){const A={key:m.value,oldValue:_,newValue:w,storageArea:n};a.dispatchEvent(n instanceof Storage?new StorageEvent("storage",A):new CustomEvent(Yc,{detail:A}))}}function L(_){try{const w=n.getItem(m.value);if(_==null)E(w,null),n.removeItem(m.value);else{const A=C.write(_);w!==A&&(n.setItem(m.value,A),E(w,A))}}catch(w){u(w)}}function O(_){const w=_?_.newValue:n.getItem(m.value);if(w==null)return s&&v!=null&&n.setItem(m.value,C.write(v)),v;if(!_&&p){const A=C.read(w);return typeof p=="function"?p(A,v):y==="object"&&!Array.isArray(A)?{...v,...A}:A}else return typeof w!="string"?w:C.read(w)}function M(_){if(!(_&&_.storageArea!==n)){if(_&&_.key==null){d.value=v;return}if(!(_&&_.key!==m.value)){$();try{const w=C.write(d.value);(_===void 0||_?.newValue!==w)&&(d.value=O(_))}catch(w){u(w)}finally{_?li(S):S()}}}}function x(_){M(_.detail)}return d}const gw="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function mw(e={}){const{selector:t="html",attribute:n="class",initialValue:r="auto",window:i=ur,storage:h,storageKey:f="vueuse-color-scheme",listenToStorageChanges:g=!0,storageRef:s,emitAuto:p,disableTransition:o=!0}=e,a={auto:"",light:"light",dark:"dark",...e.modes||{}},c=hw({window:i}),u=ye(()=>c.value?"dark":"light"),l=s||(f==null?pl(r):pw(f,r,h,{window:i,listenToStorageChanges:g})),d=ye(()=>l.value==="auto"?u.value:l.value),m=zd("updateHTMLAttrs",($,S,b)=>{const k=typeof $=="string"?i?.document.querySelector($):gl($);if(!k)return;const R=new Set,E=new Set;let L=null;if(S==="class"){const M=b.split(/\s/g);Object.values(a).flatMap(x=>(x||"").split(/\s/g)).filter(Boolean).forEach(x=>{M.includes(x)?R.add(x):E.add(x)})}else L={key:S,value:b};if(R.size===0&&E.size===0&&L===null)return;let O;o&&(O=i.document.createElement("style"),O.appendChild(document.createTextNode(gw)),i.document.head.appendChild(O));for(const M of R)k.classList.add(M);for(const M of E)k.classList.remove(M);L&&k.setAttribute(L.key,L.value),o&&(i.getComputedStyle(O).opacity,document.head.removeChild(O))});function v($){var S;m(t,n,(S=a[$])!=null?S:$)}function y($){e.onChanged?e.onChanged($,v):v($)}Fe(d,y,{flush:"post",immediate:!0}),Fd(()=>y(d.value));const C=ye({get(){return p?l.value:d.value},set($){l.value=$}});return Object.assign(C,{store:l,system:u,state:d})}function Wd(e={}){const{valueDark:t="dark",valueLight:n=""}=e,r=mw({...e,onChanged:(f,g)=>{var s;e.onChanged?(s=e.onChanged)==null||s.call(e,f==="dark",g,f):g(f)},modes:{dark:t,light:n}}),i=ye(()=>r.system.value);return ye({get(){return r.value==="dark"},set(f){const g=f?"dark":"light";i.value===g?r.value="auto":r.value=g}})}function dn(e=null,t={}){var n,r,i;const{document:h=rw,restoreOnUnmount:f=a=>a}=t,g=(n=h?.title)!=null?n:"",s=pl((r=e??h?.title)!=null?r:null),p=!!(e&&typeof e=="function");function o(a){if(!("titleTemplate"in t))return a;const c=t.titleTemplate||"%s";return typeof c=="function"?c(a):dt(c).replace(/%s/g,a)}return Fe(s,(a,c)=>{a!==c&&h&&(h.title=o(a??""))},{immediate:!0}),t.observe&&!t.titleTemplate&&h&&!p&&ow((i=h.head)==null?void 0:i.querySelector("title"),()=>{h&&h.title!==s.value&&(s.value=o(h.title))},{childList:!0}),Po(()=>{if(f){const a=f(g,s.value||"");a!=null&&h&&(h.title=a)}}),s}const vw={role:"navigation","aria-label":"main navigation",class:"navbar is-fixed-top"},yw={class:"navbar-menu"},bw={class:"navbar-start"},ww={class:"navbar-end"},Sw={class:"navbar-item"},$w=ve({__name:"NavbarItem",setup(e){const t=Wd({selector:"html",valueDark:"theme-dark",valueLight:"theme-light"}),n=ui(t);return(r,i)=>{const h=De("router-link"),f=De("font-awesome-icon");return K(),re("nav",vw,[i[8]||(i[8]=P("div",{class:"navbar-brand"},[P("a",{class:"navbar-item"},[P("h1",{class:"title"},"Mihari")])],-1)),P("div",yw,[P("div",bw,[ie(h,{class:"navbar-item",to:{name:"Alerts"}},{default:Ge(()=>[...i[1]||(i[1]=[Ze("Alerts",-1)])]),_:1}),ie(h,{class:"navbar-item",to:{name:"Artifacts"}},{default:Ge(()=>[...i[2]||(i[2]=[Ze("Artifacts",-1)])]),_:1}),ie(h,{class:"navbar-item",to:{name:"Rules"}},{default:Ge(()=>[...i[3]||(i[3]=[Ze("Rules",-1)])]),_:1}),ie(h,{class:"navbar-item",to:{name:"NewRule"}},{default:Ge(()=>[...i[4]||(i[4]=[Ze("New Rule",-1)])]),_:1}),ie(h,{class:"navbar-item",to:{name:"Config"}},{default:Ge(()=>[...i[5]||(i[5]=[Ze("Config",-1)])]),_:1}),i[6]||(i[6]=P("a",{class:"navbar-item"},[P("a",{href:"/redoc-static.html",target:"_blank",class:"navbar-item"},"API")],-1)),i[7]||(i[7]=P("a",{class:"navbar-item"},[P("a",{href:"https://github.com/ninoseki/mihari",target:"_blank",class:"navbar-item"},"GitHub")],-1))]),P("div",ww,[P("div",Sw,[P("span",{class:"icon",onClick:i[0]||(i[0]=g=>oe(n)())},[ie(f,{icon:oe(t)?"moon":"sun"},null,8,["icon"])])])])])])}}}),hi=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},_w=hi($w,[["__scopeId","data-v-a9b95eb0"]]),Cw={class:"section is-medium"},xw={class:"container"},Aw=ve({__name:"App",setup(e){return(t,n)=>{const r=De("router-view");return K(),re(Me,null,[ie(_w),P("section",Cw,[P("div",xw,[ie(r)])])],64)}}});/*!
582
+ * vue-router v4.5.1
583
+ * (c) 2025 Eduardo San Martin Morote
584
+ * @license MIT
585
+ */const Jn=typeof document<"u";function jd(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function kw(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&jd(e.default)}const Re=Object.assign;function xs(e,t){const n={};for(const r in t){const i=t[r];n[r]=jt(i)?i.map(e):e(i)}return n}const jr=()=>{},jt=Array.isArray,Bd=/#/g,Ew=/&/g,Mw=/\//g,Tw=/=/g,Lw=/\?/g,Hd=/\+/g,Rw=/%5B/g,Iw=/%5D/g,Ud=/%5E/g,Ow=/%60/g,Vd=/%7B/g,Nw=/%7C/g,Gd=/%7D/g,Dw=/%20/g;function ml(e){return encodeURI(""+e).replace(Nw,"|").replace(Rw,"[").replace(Iw,"]")}function Fw(e){return ml(e).replace(Vd,"{").replace(Gd,"}").replace(Ud,"^")}function pa(e){return ml(e).replace(Hd,"%2B").replace(Dw,"+").replace(Bd,"%23").replace(Ew,"%26").replace(Ow,"`").replace(Vd,"{").replace(Gd,"}").replace(Ud,"^")}function Pw(e){return pa(e).replace(Tw,"%3D")}function zw(e){return ml(e).replace(Bd,"%23").replace(Lw,"%3F")}function Ww(e){return e==null?"":zw(e).replace(Mw,"%2F")}function Xr(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const jw=/\/$/,Bw=e=>e.replace(jw,"");function As(e,t,n="/"){let r,i={},h="",f="";const g=t.indexOf("#");let s=t.indexOf("?");return g<s&&g>=0&&(s=-1),s>-1&&(r=t.slice(0,s),h=t.slice(s+1,g>-1?g:t.length),i=e(h)),g>-1&&(r=r||t.slice(0,g),f=t.slice(g,t.length)),r=Gw(r??t,n),{fullPath:r+(h&&"?")+h+f,path:r,query:i,hash:Xr(f)}}function Hw(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Kc(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Uw(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&hr(t.matched[r],n.matched[i])&&Zd(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function hr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Zd(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Vw(e[n],t[n]))return!1;return!0}function Vw(e,t){return jt(e)?Xc(e,t):jt(t)?Xc(t,e):e===t}function Xc(e,t){return jt(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Gw(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let h=n.length-1,f,g;for(f=0;f<r.length;f++)if(g=r[f],g!==".")if(g==="..")h>1&&h--;else break;return n.slice(0,h).join("/")+"/"+r.slice(f).join("/")}const gn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Qr;(function(e){e.pop="pop",e.push="push"})(Qr||(Qr={}));var Br;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Br||(Br={}));function Zw(e){if(!e)if(Jn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Bw(e)}const Yw=/^[^#]+#/;function Kw(e,t){return e.replace(Yw,"#")+t}function Xw(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const zo=()=>({left:window.scrollX,top:window.scrollY});function Qw(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=Xw(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Qc(e,t){return(history.state?history.state.position-t:-1)+e}const ga=new Map;function Jw(e,t){ga.set(e,t)}function qw(e){const t=ga.get(e);return ga.delete(e),t}let eS=()=>location.protocol+"//"+location.host;function Yd(e,t){const{pathname:n,search:r,hash:i}=t,h=e.indexOf("#");if(h>-1){let g=i.includes(e.slice(h))?e.slice(h).length:1,s=i.slice(g);return s[0]!=="/"&&(s="/"+s),Kc(s,"")}return Kc(n,e)+r+i}function tS(e,t,n,r){let i=[],h=[],f=null;const g=({state:c})=>{const u=Yd(e,location),l=n.value,d=t.value;let m=0;if(c){if(n.value=u,t.value=c,f&&f===l){f=null;return}m=d?c.position-d.position:0}else r(u);i.forEach(v=>{v(n.value,l,{delta:m,type:Qr.pop,direction:m?m>0?Br.forward:Br.back:Br.unknown})})};function s(){f=n.value}function p(c){i.push(c);const u=()=>{const l=i.indexOf(c);l>-1&&i.splice(l,1)};return h.push(u),u}function o(){const{history:c}=window;c.state&&c.replaceState(Re({},c.state,{scroll:zo()}),"")}function a(){for(const c of h)c();h=[],window.removeEventListener("popstate",g),window.removeEventListener("beforeunload",o)}return window.addEventListener("popstate",g),window.addEventListener("beforeunload",o,{passive:!0}),{pauseListeners:s,listen:p,destroy:a}}function Jc(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?zo():null}}function nS(e){const{history:t,location:n}=window,r={value:Yd(e,n)},i={value:t.state};i.value||h(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function h(s,p,o){const a=e.indexOf("#"),c=a>-1?(n.host&&document.querySelector("base")?e:e.slice(a))+s:eS()+e+s;try{t[o?"replaceState":"pushState"](p,"",c),i.value=p}catch(u){console.error(u),n[o?"replace":"assign"](c)}}function f(s,p){const o=Re({},t.state,Jc(i.value.back,s,i.value.forward,!0),p,{position:i.value.position});h(s,o,!0),r.value=s}function g(s,p){const o=Re({},i.value,t.state,{forward:s,scroll:zo()});h(o.current,o,!0);const a=Re({},Jc(r.value,s,null),{position:o.position+1},p);h(s,a,!1),r.value=s}return{location:r,state:i,push:g,replace:f}}function rS(e){e=Zw(e);const t=nS(e),n=tS(e,t.state,t.location,t.replace);function r(h,f=!0){f||n.pauseListeners(),history.go(h)}const i=Re({location:"",base:e,go:r,createHref:Kw.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function iS(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),rS(e)}function oS(e){return typeof e=="string"||e&&typeof e=="object"}function Kd(e){return typeof e=="string"||typeof e=="symbol"}const Xd=Symbol("");var qc;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(qc||(qc={}));function fr(e,t){return Re(new Error,{type:e,[Xd]:!0},t)}function en(e,t){return e instanceof Error&&Xd in e&&(t==null||!!(e.type&t))}const eu="[^/]+?",sS={sensitive:!1,strict:!1,start:!0,end:!0},aS=/[.+*?^${}()[\]/\\]/g;function lS(e,t){const n=Re({},sS,t),r=[];let i=n.start?"^":"";const h=[];for(const p of e){const o=p.length?[]:[90];n.strict&&!p.length&&(i+="/");for(let a=0;a<p.length;a++){const c=p[a];let u=40+(n.sensitive?.25:0);if(c.type===0)a||(i+="/"),i+=c.value.replace(aS,"\\$&"),u+=40;else if(c.type===1){const{value:l,repeatable:d,optional:m,regexp:v}=c;h.push({name:l,repeatable:d,optional:m});const y=v||eu;if(y!==eu){u+=10;try{new RegExp(`(${y})`)}catch($){throw new Error(`Invalid custom RegExp for param "${l}" (${y}): `+$.message)}}let C=d?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;a||(C=m&&p.length<2?`(?:/${C})`:"/"+C),m&&(C+="?"),i+=C,u+=20,m&&(u+=-8),d&&(u+=-20),y===".*"&&(u+=-50)}o.push(u)}r.push(o)}if(n.strict&&n.end){const p=r.length-1;r[p][r[p].length-1]+=.7000000000000001}n.strict||(i+="/?"),n.end?i+="$":n.strict&&!i.endsWith("/")&&(i+="(?:/|$)");const f=new RegExp(i,n.sensitive?"":"i");function g(p){const o=p.match(f),a={};if(!o)return null;for(let c=1;c<o.length;c++){const u=o[c]||"",l=h[c-1];a[l.name]=u&&l.repeatable?u.split("/"):u}return a}function s(p){let o="",a=!1;for(const c of e){(!a||!o.endsWith("/"))&&(o+="/"),a=!1;for(const u of c)if(u.type===0)o+=u.value;else if(u.type===1){const{value:l,repeatable:d,optional:m}=u,v=l in p?p[l]:"";if(jt(v)&&!d)throw new Error(`Provided param "${l}" is an array but it is not repeatable (* or + modifiers)`);const y=jt(v)?v.join("/"):v;if(!y)if(m)c.length<2&&(o.endsWith("/")?o=o.slice(0,-1):a=!0);else throw new Error(`Missing required param "${l}"`);o+=y}}return o||"/"}return{re:f,score:r,keys:h,parse:g,stringify:s}}function cS(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function Qd(e,t){let n=0;const r=e.score,i=t.score;for(;n<r.length&&n<i.length;){const h=cS(r[n],i[n]);if(h)return h;n++}if(Math.abs(i.length-r.length)===1){if(tu(r))return 1;if(tu(i))return-1}return i.length-r.length}function tu(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const uS={type:0,value:""},hS=/[a-zA-Z0-9_]/;function fS(e){if(!e)return[[]];if(e==="/")return[[uS]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(u){throw new Error(`ERR (${n})/"${p}": ${u}`)}let n=0,r=n;const i=[];let h;function f(){h&&i.push(h),h=[]}let g=0,s,p="",o="";function a(){p&&(n===0?h.push({type:0,value:p}):n===1||n===2||n===3?(h.length>1&&(s==="*"||s==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),h.push({type:1,value:p,regexp:o,repeatable:s==="*"||s==="+",optional:s==="*"||s==="?"})):t("Invalid state to consume buffer"),p="")}function c(){p+=s}for(;g<e.length;){if(s=e[g++],s==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:s==="/"?(p&&a(),f()):s===":"?(a(),n=1):c();break;case 4:c(),n=r;break;case 1:s==="("?n=2:hS.test(s)?c():(a(),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:a(),n=0,s!=="*"&&s!=="?"&&s!=="+"&&g--,o="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${p}"`),a(),f(),i}function dS(e,t,n){const r=lS(fS(e.path),n),i=Re(r,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function pS(e,t){const n=[],r=new Map;t=ou({strict:!1,end:!0,sensitive:!1},t);function i(a){return r.get(a)}function h(a,c,u){const l=!u,d=ru(a);d.aliasOf=u&&u.record;const m=ou(t,a),v=[d];if("alias"in a){const $=typeof a.alias=="string"?[a.alias]:a.alias;for(const S of $)v.push(ru(Re({},d,{components:u?u.record.components:d.components,path:S,aliasOf:u?u.record:d})))}let y,C;for(const $ of v){const{path:S}=$;if(c&&S[0]!=="/"){const b=c.record.path,k=b[b.length-1]==="/"?"":"/";$.path=c.record.path+(S&&k+S)}if(y=dS($,c,m),u?u.alias.push(y):(C=C||y,C!==y&&C.alias.push(y),l&&a.name&&!iu(y)&&f(a.name)),Jd(y)&&s(y),d.children){const b=d.children;for(let k=0;k<b.length;k++)h(b[k],y,u&&u.children[k])}u=u||y}return C?()=>{f(C)}:jr}function f(a){if(Kd(a)){const c=r.get(a);c&&(r.delete(a),n.splice(n.indexOf(c),1),c.children.forEach(f),c.alias.forEach(f))}else{const c=n.indexOf(a);c>-1&&(n.splice(c,1),a.record.name&&r.delete(a.record.name),a.children.forEach(f),a.alias.forEach(f))}}function g(){return n}function s(a){const c=vS(a,n);n.splice(c,0,a),a.record.name&&!iu(a)&&r.set(a.record.name,a)}function p(a,c){let u,l={},d,m;if("name"in a&&a.name){if(u=r.get(a.name),!u)throw fr(1,{location:a});m=u.record.name,l=Re(nu(c.params,u.keys.filter(C=>!C.optional).concat(u.parent?u.parent.keys.filter(C=>C.optional):[]).map(C=>C.name)),a.params&&nu(a.params,u.keys.map(C=>C.name))),d=u.stringify(l)}else if(a.path!=null)d=a.path,u=n.find(C=>C.re.test(d)),u&&(l=u.parse(d),m=u.record.name);else{if(u=c.name?r.get(c.name):n.find(C=>C.re.test(c.path)),!u)throw fr(1,{location:a,currentLocation:c});m=u.record.name,l=Re({},c.params,a.params),d=u.stringify(l)}const v=[];let y=u;for(;y;)v.unshift(y.record),y=y.parent;return{name:m,path:d,params:l,matched:v,meta:mS(v)}}e.forEach(a=>h(a));function o(){n.length=0,r.clear()}return{addRoute:h,resolve:p,removeRoute:f,clearRoutes:o,getRoutes:g,getRecordMatcher:i}}function nu(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function ru(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:gS(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function gS(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function iu(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function mS(e){return e.reduce((t,n)=>Re(t,n.meta),{})}function ou(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function vS(e,t){let n=0,r=t.length;for(;n!==r;){const h=n+r>>1;Qd(e,t[h])<0?r=h:n=h+1}const i=yS(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function yS(e){let t=e;for(;t=t.parent;)if(Jd(t)&&Qd(e,t)===0)return t}function Jd({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function bS(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;i<r.length;++i){const h=r[i].replace(Hd," "),f=h.indexOf("="),g=Xr(f<0?h:h.slice(0,f)),s=f<0?null:Xr(h.slice(f+1));if(g in t){let p=t[g];jt(p)||(p=t[g]=[p]),p.push(s)}else t[g]=s}return t}function su(e){let t="";for(let n in e){const r=e[n];if(n=Pw(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(jt(r)?r.map(h=>h&&pa(h)):[r&&pa(r)]).forEach(h=>{h!==void 0&&(t+=(t.length?"&":"")+n,h!=null&&(t+="="+h))})}return t}function wS(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=jt(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return t}const SS=Symbol(""),au=Symbol(""),Wo=Symbol(""),vl=Symbol(""),ma=Symbol("");function kr(){let e=[];function t(r){return e.push(r),()=>{const i=e.indexOf(r);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function yn(e,t,n,r,i,h=f=>f()){const f=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((g,s)=>{const p=c=>{c===!1?s(fr(4,{from:n,to:t})):c instanceof Error?s(c):oS(c)?s(fr(2,{from:t,to:c})):(f&&r.enterCallbacks[i]===f&&typeof c=="function"&&f.push(c),g())},o=h(()=>e.call(r&&r.instances[i],t,n,p));let a=Promise.resolve(o);e.length<3&&(a=a.then(p)),a.catch(c=>s(c))})}function ks(e,t,n,r,i=h=>h()){const h=[];for(const f of e)for(const g in f.components){let s=f.components[g];if(!(t!=="beforeRouteEnter"&&!f.instances[g]))if(jd(s)){const o=(s.__vccOpts||s)[t];o&&h.push(yn(o,n,r,f,g,i))}else{let p=s();h.push(()=>p.then(o=>{if(!o)throw new Error(`Couldn't resolve component "${g}" at "${f.path}"`);const a=kw(o)?o.default:o;f.mods[g]=o,f.components[g]=a;const u=(a.__vccOpts||a)[t];return u&&yn(u,n,r,f,g,i)()}))}}return h}function lu(e){const t=Ot(Wo),n=Ot(vl),r=ye(()=>{const s=oe(e.to);return t.resolve(s)}),i=ye(()=>{const{matched:s}=r.value,{length:p}=s,o=s[p-1],a=n.matched;if(!o||!a.length)return-1;const c=a.findIndex(hr.bind(null,o));if(c>-1)return c;const u=cu(s[p-2]);return p>1&&cu(o)===u&&a[a.length-1].path!==u?a.findIndex(hr.bind(null,s[p-2])):c}),h=ye(()=>i.value>-1&&AS(n.params,r.value.params)),f=ye(()=>i.value>-1&&i.value===n.matched.length-1&&Zd(n.params,r.value.params));function g(s={}){if(xS(s)){const p=t[oe(e.replace)?"replace":"push"](oe(e.to)).catch(jr);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>p),p}return Promise.resolve()}return{route:r,href:ye(()=>r.value.href),isActive:h,isExactActive:f,navigate:g}}function $S(e){return e.length===1?e[0]:e}const _S=ve({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"},viewTransition:Boolean},useLink:lu,setup(e,{slots:t}){const n=yr(lu(e)),{options:r}=Ot(Wo),i=ye(()=>({[uu(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[uu(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const h=t.default&&$S(t.default(n));return e.custom?h:Fo("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},h)}}}),CS=_S;function xS(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 AS(e,t){for(const n in t){const r=t[n],i=e[n];if(typeof r=="string"){if(r!==i)return!1}else if(!jt(i)||i.length!==r.length||r.some((h,f)=>h!==i[f]))return!1}return!0}function cu(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const uu=(e,t,n)=>e??t??n,kS=ve({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Ot(ma),i=ye(()=>e.route||r.value),h=Ot(au,0),f=ye(()=>{let p=oe(h);const{matched:o}=i.value;let a;for(;(a=o[p])&&!a.components;)p++;return p}),g=ye(()=>i.value.matched[f.value]);Pi(au,ye(()=>f.value+1)),Pi(SS,g),Pi(ma,i);const s=Ne();return Fe(()=>[s.value,g.value,e.name],([p,o,a],[c,u,l])=>{o&&(o.instances[a]=p,u&&u!==o&&p&&p===c&&(o.leaveGuards.size||(o.leaveGuards=u.leaveGuards),o.updateGuards.size||(o.updateGuards=u.updateGuards))),p&&o&&(!u||!hr(o,u)||!c)&&(o.enterCallbacks[a]||[]).forEach(d=>d(p))},{flush:"post"}),()=>{const p=i.value,o=e.name,a=g.value,c=a&&a.components[o];if(!c)return hu(n.default,{Component:c,route:p});const u=a.props[o],l=u?u===!0?p.params:typeof u=="function"?u(p):u:null,m=Fo(c,Re({},l,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(a.instances[o]=null)},ref:s}));return hu(n.default,{Component:m,route:p})||m}}});function hu(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const ES=kS;function MS(e){const t=pS(e.routes,e),n=e.parseQuery||bS,r=e.stringifyQuery||su,i=e.history,h=kr(),f=kr(),g=kr(),s=Dn(gn);let p=gn;Jn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const o=xs.bind(null,j=>""+j),a=xs.bind(null,Ww),c=xs.bind(null,Xr);function u(j,Z){let X,Q;return Kd(j)?(X=t.getRecordMatcher(j),Q=Z):Q=j,t.addRoute(Q,X)}function l(j){const Z=t.getRecordMatcher(j);Z&&t.removeRoute(Z)}function d(){return t.getRoutes().map(j=>j.record)}function m(j){return!!t.getRecordMatcher(j)}function v(j,Z){if(Z=Re({},Z||s.value),typeof j=="string"){const Y=As(n,j,Z.path),q=t.resolve({path:Y.path},Z),te=i.createHref(Y.fullPath);return Re(Y,q,{params:c(q.params),hash:Xr(Y.hash),redirectedFrom:void 0,href:te})}let X;if(j.path!=null)X=Re({},j,{path:As(n,j.path,Z.path).path});else{const Y=Re({},j.params);for(const q in Y)Y[q]==null&&delete Y[q];X=Re({},j,{params:a(Y)}),Z.params=a(Z.params)}const Q=t.resolve(X,Z),le=j.hash||"";Q.params=o(c(Q.params));const z=Hw(r,Re({},j,{hash:Fw(le),path:Q.path})),B=i.createHref(z);return Re({fullPath:z,hash:le,query:r===su?wS(j.query):j.query||{}},Q,{redirectedFrom:void 0,href:B})}function y(j){return typeof j=="string"?As(n,j,s.value.path):Re({},j)}function C(j,Z){if(p!==j)return fr(8,{from:Z,to:j})}function $(j){return k(j)}function S(j){return $(Re(y(j),{replace:!0}))}function b(j){const Z=j.matched[j.matched.length-1];if(Z&&Z.redirect){const{redirect:X}=Z;let Q=typeof X=="function"?X(j):X;return typeof Q=="string"&&(Q=Q.includes("?")||Q.includes("#")?Q=y(Q):{path:Q},Q.params={}),Re({query:j.query,hash:j.hash,params:Q.path!=null?{}:j.params},Q)}}function k(j,Z){const X=p=v(j),Q=s.value,le=j.state,z=j.force,B=j.replace===!0,Y=b(X);if(Y)return k(Re(y(Y),{state:typeof Y=="object"?Re({},le,Y.state):le,force:z,replace:B}),Z||X);const q=X;q.redirectedFrom=Z;let te;return!z&&Uw(r,Q,X)&&(te=fr(16,{to:q,from:Q}),F(Q,Q,!0,!1)),(te?Promise.resolve(te):L(q,Q)).catch(ne=>en(ne)?en(ne,2)?ne:D(ne):I(ne,q,Q)).then(ne=>{if(ne){if(en(ne,2))return k(Re({replace:B},y(ne.to),{state:typeof ne.to=="object"?Re({},le,ne.to.state):le,force:z}),Z||q)}else ne=M(q,Q,!0,B,le);return O(q,Q,ne),ne})}function R(j,Z){const X=C(j,Z);return X?Promise.reject(X):Promise.resolve()}function E(j){const Z=U.values().next().value;return Z&&typeof Z.runWithContext=="function"?Z.runWithContext(j):j()}function L(j,Z){let X;const[Q,le,z]=TS(j,Z);X=ks(Q.reverse(),"beforeRouteLeave",j,Z);for(const Y of Q)Y.leaveGuards.forEach(q=>{X.push(yn(q,j,Z))});const B=R.bind(null,j,Z);return X.push(B),G(X).then(()=>{X=[];for(const Y of h.list())X.push(yn(Y,j,Z));return X.push(B),G(X)}).then(()=>{X=ks(le,"beforeRouteUpdate",j,Z);for(const Y of le)Y.updateGuards.forEach(q=>{X.push(yn(q,j,Z))});return X.push(B),G(X)}).then(()=>{X=[];for(const Y of z)if(Y.beforeEnter)if(jt(Y.beforeEnter))for(const q of Y.beforeEnter)X.push(yn(q,j,Z));else X.push(yn(Y.beforeEnter,j,Z));return X.push(B),G(X)}).then(()=>(j.matched.forEach(Y=>Y.enterCallbacks={}),X=ks(z,"beforeRouteEnter",j,Z,E),X.push(B),G(X))).then(()=>{X=[];for(const Y of f.list())X.push(yn(Y,j,Z));return X.push(B),G(X)}).catch(Y=>en(Y,8)?Y:Promise.reject(Y))}function O(j,Z,X){g.list().forEach(Q=>E(()=>Q(j,Z,X)))}function M(j,Z,X,Q,le){const z=C(j,Z);if(z)return z;const B=Z===gn,Y=Jn?history.state:{};X&&(Q||B?i.replace(j.fullPath,Re({scroll:B&&Y&&Y.scroll},le)):i.push(j.fullPath,le)),s.value=j,F(j,Z,X,B),D()}let x;function _(){x||(x=i.listen((j,Z,X)=>{if(!V.listening)return;const Q=v(j),le=b(Q);if(le){k(Re(le,{replace:!0,force:!0}),Q).catch(jr);return}p=Q;const z=s.value;Jn&&Jw(Qc(z.fullPath,X.delta),zo()),L(Q,z).catch(B=>en(B,12)?B:en(B,2)?(k(Re(y(B.to),{force:!0}),Q).then(Y=>{en(Y,20)&&!X.delta&&X.type===Qr.pop&&i.go(-1,!1)}).catch(jr),Promise.reject()):(X.delta&&i.go(-X.delta,!1),I(B,Q,z))).then(B=>{B=B||M(Q,z,!1),B&&(X.delta&&!en(B,8)?i.go(-X.delta,!1):X.type===Qr.pop&&en(B,20)&&i.go(-1,!1)),O(Q,z,B)}).catch(jr)}))}let w=kr(),A=kr(),T;function I(j,Z,X){D(j);const Q=A.list();return Q.length?Q.forEach(le=>le(j,Z,X)):console.error(j),Promise.reject(j)}function N(){return T&&s.value!==gn?Promise.resolve():new Promise((j,Z)=>{w.add([j,Z])})}function D(j){return T||(T=!j,_(),w.list().forEach(([Z,X])=>j?X(j):Z()),w.reset()),j}function F(j,Z,X,Q){const{scrollBehavior:le}=e;if(!Jn||!le)return Promise.resolve();const z=!X&&qw(Qc(j.fullPath,0))||(Q||!X)&&history.state&&history.state.scroll||null;return li().then(()=>le(j,Z,z)).then(B=>B&&Qw(B)).catch(B=>I(B,j,Z))}const H=j=>i.go(j);let W;const U=new Set,V={currentRoute:s,listening:!0,addRoute:u,removeRoute:l,clearRoutes:t.clearRoutes,hasRoute:m,getRoutes:d,resolve:v,options:e,push:$,replace:S,go:H,back:()=>H(-1),forward:()=>H(1),beforeEach:h.add,beforeResolve:f.add,afterEach:g.add,onError:A.add,isReady:N,install(j){const Z=this;j.component("RouterLink",CS),j.component("RouterView",ES),j.config.globalProperties.$router=Z,Object.defineProperty(j.config.globalProperties,"$route",{enumerable:!0,get:()=>oe(s)}),Jn&&!W&&s.value===gn&&(W=!0,$(i.location).catch(le=>{}));const X={};for(const le in gn)Object.defineProperty(X,le,{get:()=>s.value[le],enumerable:!0});j.provide(Wo,Z),j.provide(vl,Kf(X)),j.provide(ma,s);const Q=j.unmount;U.add(j),j.unmount=function(){U.delete(j),U.size<1&&(p=gn,x&&x(),x=null,s.value=gn,W=!1,T=!1),Q()}}};function G(j){return j.reduce((Z,X)=>Z.then(()=>E(X)),Promise.resolve())}return V}function TS(e,t){const n=[],r=[],i=[],h=Math.max(t.matched.length,e.matched.length);for(let f=0;f<h;f++){const g=t.matched[f];g&&(e.matched.find(p=>hr(p,g))?r.push(g):n.push(g));const s=e.matched[f];s&&(t.matched.find(p=>hr(p,s))||i.push(s))}return[n,r,i]}function wr(){return Ot(Wo)}function LS(e){return Ot(vl)}const Es=new WeakMap;function dr(e,t,n={}){const{mode:r="replace",route:i=LS(),router:h=wr(),transform:f}=n;let g=u=>u,s=u=>u;typeof f=="function"?g=f:f&&(f.get&&(g=f.get),f.set&&(s=f.set)),Es.has(h)||Es.set(h,new Map);const p=Es.get(h);let o=i.query[e];Po(()=>{o=void 0});let a;const c=qf((u,l)=>(a=l,{get(){return u(),g(o!==void 0?o:dt(t))},set(d){d=s(d),o!==d&&(o=d===dt(t)?void 0:d,p.set(e,d===dt(t)?void 0:d),l(),li(()=>{if(p.size===0)return;const m=Object.fromEntries(p.entries());p.clear();const{params:v,query:y,hash:C}=i;h[dt(r)]({params:v,query:{...y,...m},hash:C})}))}}));return Fe(()=>i.query[e],u=>{o!==g(u)&&(o=u,a())},{flush:"sync"}),c}/*! CAF: shared.mjs
586
+ v15.0.1 (c) 2022 Kyle Simpson
587
+ MIT License: http://getify.mit-license.org
588
+ */const sn=Symbol("Cleanup Function"),yl=Symbol("Timeout Token"),er=Symbol("Signal Reason"),ot=Symbol("Unset"),[Hi,RS]=function(){var t=new AbortController,n=!!Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t.signal),"reason");try{t.abort()}catch{}return[n,wl(t.signal.reason)]}();class jn{constructor(t=new AbortController){var n;this.controller=t,this.signal=t.signal,this.signal[er]=ot;var r=(i,h)=>{var f=()=>{if(h&&this.signal){let g=fi(this.signal);this._trackSignalReason(g),h(g!==ot?g:void 0)}h=null};this.signal.addEventListener("abort",f,!1),n=()=>{this.signal&&(this.signal.removeEventListener("abort",f,!1),this.signal.pr&&(this.signal.pr[sn]=null)),f=null}};this.signal.pr=new Promise(r),this.signal.pr[sn]=n,this.signal.pr.catch(n),r=n=null}abort(...t){var n=t.length>0?t[0]:ot;this._trackSignalReason(n),this.controller&&(Hi&&n!==ot?this.controller.abort(n):this.controller.abort())}discard(){this.signal&&(this.signal.pr&&(this.signal.pr[sn]&&this.signal.pr[sn](),this.signal.pr=null),delete this.signal[er],Hi||(this.signal.reason=null),this.signal=null),this.controller=null}_trackSignalReason(t){this.signal&&t!==ot&&(Hi||"reason"in this.signal||(this.signal.reason=t),this.signal[er]===ot&&(this.signal[er]=t))}}function fi(e){return e&&e.aborted?Hi&&RS?wl(e.reason)?ot:e.reason:er in e?e[er]:ot:ot}function qd(e){if(e.pr)return e.pr;var t,n=new Promise(function(i,h){t=()=>{if(h&&e){let f=fi(e);h(f!==ot?f:void 0)}h=null},e.addEventListener("abort",t,!1)});return n[sn]=function(){e&&(e.removeEventListener("abort",t,!1),e=null),n&&(n=n[sn]=t=null)},n.catch(n[sn]),n}function bl(e){e instanceof AbortController&&(e=new jn(e));var t=e&&e instanceof jn?e.signal:e;return{tokenOrSignal:e,signal:t,signalPr:qd(t)}}function va(){var e;return{pr:new Promise(t=>e=t),resolve:e}}function Ln(e){return typeof e=="function"}function IS(e){return e&&typeof e=="object"&&typeof e.then=="function"}function wl(e){return typeof e=="object"&&e instanceof Error&&e.name=="AbortError"}function jo(e,t){wl(t)||t===ot?e.abort():e.abort(t)}/*! CAF: caf.mjs
589
+ v15.0.1 (c) 2022 Kyle Simpson
590
+ MIT License: http://getify.mit-license.org
591
+ */const ya=Object.assign(OS,{cancelToken:jn,delay:ep,timeout:NS,signalRace:DS,signalAll:FS,tokenCycle:PS});function OS(e){return function(n,...r){var i,h;if({tokenOrSignal:n,signal:i,signalPr:h}=bl(n),i.aborted)return h;var f=h.catch(function(a){var c=fi(i);c=c!==ot?c:a;try{var u=g.return();throw u.value!==void 0?u.value:c!==ot?c:void 0}finally{g=s=f=p=null}}),{it:g,result:s}=zS.call(this,e,i,...r),p=Promise.race([s,f]);if(n!==i&&n[yl]){let o=function(c){jo(n,c),Ln(n.discard)&&n.discard(),n=o=null};p.then(o,o)}else p.catch(()=>{}),n=null;return r=null,p}}function ep(e,t){var n,r;return typeof e=="number"&&typeof t!="number"&&([t,e]=[e,t]),e&&({tokenOrSignal:e,signal:n,signalPr:r}=bl(e)),n&&n.aborted?r:new Promise(function(h,f){n&&(r.catch(function(){if(f&&n&&g){let p=fi(n);clearTimeout(g),f(p!==ot?p:`delay (${t}) interrupted`),h=f=g=n=null}}),r=null);var g=setTimeout(function(){h(`delayed: ${t}`),h=f=g=n=null},t)})}function NS(e,t="Timeout"){e=Number(e)||0;var n=new jn;return ep(n.signal,e).then(()=>r(t),r),Object.defineProperty(n,yl,{value:!0,writable:!1,enumerable:!1,configurable:!1}),n;function r(...i){jo(n,i.length>0?i[0]:ot),n.discard(),n=null}}function tp(e){return e.reduce(function(n,r){var i=qd(r);return n[0].push(i),r.pr||n[1].push(i),n},[[],[]])}function np(e,t,n){e.then(function(i){jo(t,i),t.discard(),t=null}).then(function(){for(let i of n)i[sn]&&i[sn]();n=null})}function rp(e){return e.catch(t=>t)}function DS(e){var t=new jn,[n,r]=tp(e);return np(rp(Promise.race(n)),t,r),t.signal}function FS(e){var t=new jn,[n,r]=tp(e);return np(Promise.all(n.map(rp)),t,r),t.signal}function PS(){var e;return function(...n){return e&&(jo(e,n.length>0?n[0]:ot),e.discard()),e=new jn}}function zS(e,...t){var n=e.apply(this,t);return e=t=null,{it:n,result:function r(i){try{var h=n.next(i);i=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(r,function(o){return Promise.resolve(n.throw(o)).then(f)})).catch(function(){n=null}),g=null,s}(h)}()}}/*! CAF: cag.mjs
592
+ v15.0.1 (c) 2022 Kyle Simpson
593
+ MIT License: http://getify.mit-license.org
594
+ */wa=ya(wa);Object.assign(op,{onEvent:sp,onceEvent:wa});var ba=new WeakSet;const Ms=Symbol("unset"),ip=Symbol("returned"),fu=Symbol("canceled");function op(e){return function(n,...r){var i,h;if({tokenOrSignal:n,signal:i,signalPr:h}=bl(n),i.aborted){let a=fi(i);throw a=a!==ot?a:"Aborted",a}var f=va(),{it:g,ait:s}=jS(e,f.pr,o,i,...r),p=s.return;return s.return=function(c){try{return f.pr.resolved=!0,f.resolve(ip),Promise.resolve(g.return(c))}finally{p.call(s),o()}},s;function o(){n&&n!==i&&n[yl]&&n.abort(),s&&(s.return=p,n=f=g=s=p=null)}}}function sp(e,t,n,r=!1){var i,h,f=!1,g=op(function*({pwait:a}){f||s();try{for(;;){if(i.length==0){let{pr:c,resolve:u}=va();i.push(c),h.push(u)}yield yield a(i.shift())}}finally{Ln(t.removeEventListener)?t.removeEventListener(n,p,r):Ln(t.removeListener)?t.removeListener(n,p):Ln(t.off)&&t.off(n,p),i.length=h.length=0}})(e,t,n,r);return g.start=s,g;function s(){f||(f=!0,i=[],h=[],Ln(t.addEventListener)?t.addEventListener(n,p,r):Ln(t.addListener)?t.addListener(n,p):Ln(t.on)&&t.on(n,p))}function p(o){if(h.length>0)h.shift()(o);else{let{pr:a,resolve:c}=va();i.push(a),c(o)}}}function*wa(e,t,n,r=!1){try{var i=sp(e,t,n,r);return(yield i.next()).value}finally{i.return()}}function WS(e){var t=Promise.resolve(e);return ba.add(t),t}function jS(e,t,n,r,...i){var h=e.call(this,{signal:r,pwait:WS},...i);e=i=null;var f=r.pr.catch(g=>{throw{[fu]:!0,reason:g}});return f.catch(()=>{}),{it:h,ait:async function*(){var s,p=Ms;try{for(;!t.resolved;)if(p!==Ms?(s=p,p=Ms,s=h.throw(s)):s=h.next(s),IS(s.value))if(ba.has(s.value)){ba.delete(s.value);try{if((s=await Promise.race([t,f,s.value]))===ip)return}catch(o){if(o[fu]){let a=h.return();throw a.value!==void 0?a.value:o.reason}p=o}}else s=yield s.value;else{if(s.done)return s.value;s=yield s.value}}finally{h=t=null,n()}}()}}const BS=e=>e._runningInstances.length>=e._maxConcurrency,HS=e=>{const t=e._activeInstances[0];t&&t.cancel()},US=e=>{e._enqueuedInstances.forEach(t=>{t.isEnqueued=!1,t.isDropped=!0})};function Er(e,t){return t?VS(()=>e()._instances,t):ye(()=>[])}function VS(e,t,n){return ye(()=>e().filter(r=>r[t]))}function GS(e){return ye(()=>e().length)}function du(e){return ye(()=>{const t=e();return t[t.length-1]})}function ZS(e){return ye(()=>e()[0])}const ap=e=>e;function lp(e){return yr(e)}function YS(){const e={},t=new Promise((n,r)=>{e.resolve=n,e.reject=r});return e.promise=t,e}function gt(e){return QS(function*(t,...n){return e(t,...n)})}function KS(e,t,n){const r=ap({id:n.id,isDropped:!1,isEnqueued:!1,hasStarted:!1,isRunning:!1,isFinished:!1,isCanceling:!1,isCanceled:ye(()=>i.isCanceling&&i.isFinished),isActive:ye(()=>i.isRunning&&!i.isCanceling),isSuccessful:!1,isNotDropped:ye(()=>!i.isDropped),isError:ye(()=>!!i.error),status:ye(()=>{const f=i,g=[[f.isRunning,"running"],[f.isEnqueued,"enqueued"],[f.isCanceled,"canceled"],[f.isCanceling,"canceling"],[f.isDropped,"dropped"],[f.isError,"error"],[f.isSuccessful,"success"]].find(([s])=>s);return g&&g[1]}),error:null,value:null,cancel({force:f}={force:!1}){if(f||(i.isCanceling=!0,i.isEnqueued&&(i.isFinished=!0),i.isEnqueued=!1),i.token&&i._canAbort){i.token.abort("cancel");try{i.token.discard()}catch{}i.token=void 0,i._canAbort=!1}},canceledOn(f){return f.pr.catch(()=>{i.cancel()}),i},_run(){XS(i,e,t,n)},_handled:!0,_deferredObject:YS(),_shouldThrow:!1,_canAbort:!0,then(f,g){return i._shouldThrow=!0,i._deferredObject.promise.then(f,g)},catch(f,g=!0){return i._shouldThrow=g,i._deferredObject.promise.catch(f)},finally(f){return i._shouldThrow=!0,i._deferredObject.promise.finally(f)}}),i=lp(r),{modifiers:h}=n;return h.drop?i.isDropped=!0:h.enqueue?i.isEnqueued=!0:i._run(),i}function XS(e,t,n,r){const i=new ya.cancelToken,h=ya(t,i);e.token=i,e.hasStarted=!0,e.isRunning=!0,e.isEnqueued=!1;function f(){e.isRunning=!1,e.isFinished=!0}h.call(e,i,...n).then(g=>{e.value=g,e.isSuccessful=!0,f(),e._deferredObject.resolve(g),e._canAbort=!1,r.onFinish(e)}).catch(g=>{g!=="cancel"&&(e.error=g),f(),e._shouldThrow&&e._deferredObject.reject(g),r.onFinish(e)})}function QS(e,t={cancelOnUnmount:!0}){const n=C0(),r=ap({_isRestartable:!1,_isDropping:!1,_isEnqueuing:!1,_isKeepingLatest:!1,_maxConcurrency:1,_hasConcurrency:ye(()=>i._isRestartable||i._isDropping||i._isEnqueuing||i._isKeepingLatest),isIdle:ye(()=>!i.isRunning),isRunning:ye(()=>!!i._instances.find(h=>h.isRunning)),isError:ye(()=>!!(i.last&&i.last.isError)),_instances:[],_successfulInstances:Er(()=>i,"isSuccessful"),_runningInstances:Er(()=>i,"isRunning"),_enqueuedInstances:Er(()=>i,"isEnqueued"),_notDroppedInstances:Er(()=>i,"isNotDropped"),_activeInstances:Er(()=>i,"isActive"),performCount:GS(()=>i._instances),last:du(()=>i._notDroppedInstances),lastSuccessful:du(()=>i._successfulInstances),firstEnqueued:ZS(()=>i._enqueuedInstances),cancelAll({force:h}={force:!1}){i._instances.forEach(f=>{try{(h||!f.isDropped&&!f.isFinished)&&f.cancel({force:h})}catch(g){if(g!=="cancel")throw g}})},perform(...h){const f={enqueue:!1,drop:!1};i._hasConcurrency&&BS(i)&&(i._isDropping&&(f.drop=!0),i._isRestartable&&HS(i),i._isKeepingLatest&&US(i),(i._isEnqueuing||i._isKeepingLatest)&&(f.enqueue=!0));const g=()=>JS(i),s=()=>KS(e,h,{modifiers:f,onFinish:g,scope:n,id:i._instances.length+1}),p=n.active?n.run(s):s();return i._instances=[...i._instances,p],p},clear(){this.cancelAll({force:!0}),this._instances=[]},destroy(){n.stop(),this.clear()},restartable(){return i._resetModifierFlags(),i._isRestartable=!0,i},drop(){return i._resetModifierFlags(),i._isDropping=!0,i},enqueue(){return i._resetModifierFlags(),i._isEnqueuing=!0,i},keepLatest(){return i._resetModifierFlags(),i._isKeepingLatest=!0,i},_resetModifierFlags(){i._isKeepingLatest=!1,i._isRestartable=!1,i._isEnqueuing=!1,i._isDropping=!1},maxConcurrency(h){return i._maxConcurrency=h,i}}),i=lp(r);return t.cancelOnUnmount&&br()&&ld(()=>{i._instances&&i.destroy()}),i}function JS(e){if(e._isEnqueuing||e._isKeepingLatest){const{firstEnqueued:t}=e;t&&t._run()}}function cp(e,t){return function(){return e.apply(t,arguments)}}const{toString:qS}=Object.prototype,{getPrototypeOf:Sl}=Object,{iterator:Bo,toStringTag:up}=Symbol,Ho=(e=>t=>{const n=qS.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Bt=e=>(e=e.toLowerCase(),t=>Ho(t)===e),Uo=e=>t=>typeof t===e,{isArray:Sr}=Array,pr=Uo("undefined");function di(e){return e!==null&&!pr(e)&&e.constructor!==null&&!pr(e.constructor)&&St(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const hp=Bt("ArrayBuffer");function e$(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&hp(e.buffer),t}const t$=Uo("string"),St=Uo("function"),fp=Uo("number"),pi=e=>e!==null&&typeof e=="object",n$=e=>e===!0||e===!1,Ui=e=>{if(Ho(e)!=="object")return!1;const t=Sl(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(up in e)&&!(Bo in e)},r$=e=>{if(!pi(e)||di(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},i$=Bt("Date"),o$=Bt("File"),s$=Bt("Blob"),a$=Bt("FileList"),l$=e=>pi(e)&&St(e.pipe),c$=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||St(e.append)&&((t=Ho(e))==="formdata"||t==="object"&&St(e.toString)&&e.toString()==="[object FormData]"))},u$=Bt("URLSearchParams"),[h$,f$,d$,p$]=["ReadableStream","Request","Response","Headers"].map(Bt),g$=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function gi(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Sr(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(di(e))return;const h=n?Object.getOwnPropertyNames(e):Object.keys(e),f=h.length;let g;for(r=0;r<f;r++)g=h[r],t.call(null,e[g],g,e)}}function dp(e,t){if(di(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const On=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,pp=e=>!pr(e)&&e!==On;function Sa(){const{caseless:e,skipUndefined:t}=pp(this)&&this||{},n={},r=(i,h)=>{const f=e&&dp(n,h)||h;Ui(n[f])&&Ui(i)?n[f]=Sa(n[f],i):Ui(i)?n[f]=Sa({},i):Sr(i)?n[f]=i.slice():(!t||!pr(i))&&(n[f]=i)};for(let i=0,h=arguments.length;i<h;i++)arguments[i]&&gi(arguments[i],r);return n}const m$=(e,t,n,{allOwnKeys:r}={})=>(gi(t,(i,h)=>{n&&St(i)?e[h]=cp(i,n):e[h]=i},{allOwnKeys:r}),e),v$=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),y$=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},b$=(e,t,n,r)=>{let i,h,f;const g={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),h=i.length;h-- >0;)f=i[h],(!r||r(f,e,t))&&!g[f]&&(t[f]=e[f],g[f]=!0);e=n!==!1&&Sl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},w$=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},S$=e=>{if(!e)return null;if(Sr(e))return e;let t=e.length;if(!fp(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},$$=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Sl(Uint8Array)),_$=(e,t)=>{const r=(e&&e[Bo]).call(e);let i;for(;(i=r.next())&&!i.done;){const h=i.value;t.call(e,h[0],h[1])}},C$=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},x$=Bt("HTMLFormElement"),A$=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),pu=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),k$=Bt("RegExp"),gp=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};gi(n,(i,h)=>{let f;(f=t(i,h,e))!==!1&&(r[h]=f||i)}),Object.defineProperties(e,r)},E$=e=>{gp(e,(t,n)=>{if(St(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(St(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},M$=(e,t)=>{const n={},r=i=>{i.forEach(h=>{n[h]=!0})};return Sr(e)?r(e):r(String(e).split(t)),n},T$=()=>{},L$=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function R$(e){return!!(e&&St(e.append)&&e[up]==="FormData"&&e[Bo])}const I$=e=>{const t=new Array(10),n=(r,i)=>{if(pi(r)){if(t.indexOf(r)>=0)return;if(di(r))return r;if(!("toJSON"in r)){t[i]=r;const h=Sr(r)?[]:{};return gi(r,(f,g)=>{const s=n(f,i+1);!pr(s)&&(h[g]=s)}),t[i]=void 0,h}}return r};return n(e,0)},O$=Bt("AsyncFunction"),N$=e=>e&&(pi(e)||St(e))&&St(e.then)&&St(e.catch),mp=((e,t)=>e?setImmediate:t?((n,r)=>(On.addEventListener("message",({source:i,data:h})=>{i===On&&h===n&&r.length&&r.shift()()},!1),i=>{r.push(i),On.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",St(On.postMessage)),D$=typeof queueMicrotask<"u"?queueMicrotask.bind(On):typeof process<"u"&&process.nextTick||mp,F$=e=>e!=null&&St(e[Bo]),J={isArray:Sr,isArrayBuffer:hp,isBuffer:di,isFormData:c$,isArrayBufferView:e$,isString:t$,isNumber:fp,isBoolean:n$,isObject:pi,isPlainObject:Ui,isEmptyObject:r$,isReadableStream:h$,isRequest:f$,isResponse:d$,isHeaders:p$,isUndefined:pr,isDate:i$,isFile:o$,isBlob:s$,isRegExp:k$,isFunction:St,isStream:l$,isURLSearchParams:u$,isTypedArray:$$,isFileList:a$,forEach:gi,merge:Sa,extend:m$,trim:g$,stripBOM:v$,inherits:y$,toFlatObject:b$,kindOf:Ho,kindOfTest:Bt,endsWith:w$,toArray:S$,forEachEntry:_$,matchAll:C$,isHTMLForm:x$,hasOwnProperty:pu,hasOwnProp:pu,reduceDescriptors:gp,freezeMethods:E$,toObjectSet:M$,toCamelCase:A$,noop:T$,toFiniteNumber:L$,findKey:dp,global:On,isContextDefined:pp,isSpecCompliantForm:R$,toJSONObject:I$,isAsyncFn:O$,isThenable:N$,setImmediate:mp,asap:D$,isIterable:F$};function ke(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}J.inherits(ke,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:J.toJSONObject(this.config),code:this.code,status:this.status}}});const vp=ke.prototype,yp={};["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=>{yp[e]={value:e}});Object.defineProperties(ke,yp);Object.defineProperty(vp,"isAxiosError",{value:!0});ke.from=(e,t,n,r,i,h)=>{const f=Object.create(vp);J.toFlatObject(e,f,function(o){return o!==Error.prototype},p=>p!=="isAxiosError");const g=e&&e.message?e.message:"Error",s=t==null&&e?e.code:t;return ke.call(f,g,s,n,r,i),e&&f.cause==null&&Object.defineProperty(f,"cause",{value:e,configurable:!0}),f.name=e&&e.name||"Error",h&&Object.assign(f,h),f};const P$=null;function $a(e){return J.isPlainObject(e)||J.isArray(e)}function bp(e){return J.endsWith(e,"[]")?e.slice(0,-2):e}function gu(e,t,n){return e?e.concat(t).map(function(i,h){return i=bp(i),!n&&h?"["+i+"]":i}).join(n?".":""):t}function z$(e){return J.isArray(e)&&!e.some($a)}const W$=J.toFlatObject(J,{},null,function(t){return/^is[A-Z]/.test(t)});function Vo(e,t,n){if(!J.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=J.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,m){return!J.isUndefined(m[d])});const r=n.metaTokens,i=n.visitor||o,h=n.dots,f=n.indexes,s=(n.Blob||typeof Blob<"u"&&Blob)&&J.isSpecCompliantForm(t);if(!J.isFunction(i))throw new TypeError("visitor must be a function");function p(l){if(l===null)return"";if(J.isDate(l))return l.toISOString();if(J.isBoolean(l))return l.toString();if(!s&&J.isBlob(l))throw new ke("Blob is not supported. Use a Buffer instead.");return J.isArrayBuffer(l)||J.isTypedArray(l)?s&&typeof Blob=="function"?new Blob([l]):Buffer.from(l):l}function o(l,d,m){let v=l;if(l&&!m&&typeof l=="object"){if(J.endsWith(d,"{}"))d=r?d:d.slice(0,-2),l=JSON.stringify(l);else if(J.isArray(l)&&z$(l)||(J.isFileList(l)||J.endsWith(d,"[]"))&&(v=J.toArray(l)))return d=bp(d),v.forEach(function(C,$){!(J.isUndefined(C)||C===null)&&t.append(f===!0?gu([d],$,h):f===null?d:d+"[]",p(C))}),!1}return $a(l)?!0:(t.append(gu(m,d,h),p(l)),!1)}const a=[],c=Object.assign(W$,{defaultVisitor:o,convertValue:p,isVisitable:$a});function u(l,d){if(!J.isUndefined(l)){if(a.indexOf(l)!==-1)throw Error("Circular reference detected in "+d.join("."));a.push(l),J.forEach(l,function(v,y){(!(J.isUndefined(v)||v===null)&&i.call(t,v,J.isString(y)?y.trim():y,d,c))===!0&&u(v,d?d.concat(y):[y])}),a.pop()}}if(!J.isObject(e))throw new TypeError("data must be an object");return u(e),t}function mu(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function $l(e,t){this._pairs=[],e&&Vo(e,this,t)}const wp=$l.prototype;wp.append=function(t,n){this._pairs.push([t,n])};wp.toString=function(t){const n=t?function(r){return t.call(this,r,mu)}:mu;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function j$(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Sp(e,t,n){if(!t)return e;const r=n&&n.encode||j$;J.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let h;if(i?h=i(t,n):h=J.isURLSearchParams(t)?t.toString():new $l(t,n).toString(r),h){const f=e.indexOf("#");f!==-1&&(e=e.slice(0,f)),e+=(e.indexOf("?")===-1?"?":"&")+h}return e}class vu{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){J.forEach(this.handlers,function(r){r!==null&&t(r)})}}const $p={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},B$=typeof URLSearchParams<"u"?URLSearchParams:$l,H$=typeof FormData<"u"?FormData:null,U$=typeof Blob<"u"?Blob:null,V$={isBrowser:!0,classes:{URLSearchParams:B$,FormData:H$,Blob:U$},protocols:["http","https","file","blob","url","data"]},_l=typeof window<"u"&&typeof document<"u",_a=typeof navigator=="object"&&navigator||void 0,G$=_l&&(!_a||["ReactNative","NativeScript","NS"].indexOf(_a.product)<0),Z$=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Y$=_l&&window.location.href||"http://localhost",K$=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:_l,hasStandardBrowserEnv:G$,hasStandardBrowserWebWorkerEnv:Z$,navigator:_a,origin:Y$},Symbol.toStringTag,{value:"Module"})),ft={...K$,...V$};function X$(e,t){return Vo(e,new ft.classes.URLSearchParams,{visitor:function(n,r,i,h){return ft.isNode&&J.isBuffer(n)?(this.append(r,n.toString("base64")),!1):h.defaultVisitor.apply(this,arguments)},...t})}function Q$(e){return J.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function J$(e){const t={},n=Object.keys(e);let r;const i=n.length;let h;for(r=0;r<i;r++)h=n[r],t[h]=e[h];return t}function _p(e){function t(n,r,i,h){let f=n[h++];if(f==="__proto__")return!0;const g=Number.isFinite(+f),s=h>=n.length;return f=!f&&J.isArray(i)?i.length:f,s?(J.hasOwnProp(i,f)?i[f]=[i[f],r]:i[f]=r,!g):((!i[f]||!J.isObject(i[f]))&&(i[f]=[]),t(n,r,i[f],h)&&J.isArray(i[f])&&(i[f]=J$(i[f])),!g)}if(J.isFormData(e)&&J.isFunction(e.entries)){const n={};return J.forEachEntry(e,(r,i)=>{t(Q$(r),i,n,0)}),n}return null}function q$(e,t,n){if(J.isString(e))try{return(t||JSON.parse)(e),J.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const mi={transitional:$p,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,h=J.isObject(t);if(h&&J.isHTMLForm(t)&&(t=new FormData(t)),J.isFormData(t))return i?JSON.stringify(_p(t)):t;if(J.isArrayBuffer(t)||J.isBuffer(t)||J.isStream(t)||J.isFile(t)||J.isBlob(t)||J.isReadableStream(t))return t;if(J.isArrayBufferView(t))return t.buffer;if(J.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let g;if(h){if(r.indexOf("application/x-www-form-urlencoded")>-1)return X$(t,this.formSerializer).toString();if((g=J.isFileList(t))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Vo(g?{"files[]":t}:t,s&&new s,this.formSerializer)}}return h||i?(n.setContentType("application/json",!1),q$(t)):t}],transformResponse:[function(t){const n=this.transitional||mi.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(J.isResponse(t)||J.isReadableStream(t))return t;if(t&&J.isString(t)&&(r&&!this.responseType||i)){const f=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(g){if(f)throw g.name==="SyntaxError"?ke.from(g,ke.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}}};J.forEach(["delete","get","head","post","put","patch"],e=>{mi.headers[e]={}});const e_=J.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),t_=e=>{const t={};let n,r,i;return e&&e.split(`
595
+ `).forEach(function(f){i=f.indexOf(":"),n=f.substring(0,i).trim().toLowerCase(),r=f.substring(i+1).trim(),!(!n||t[n]&&e_[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},yu=Symbol("internals");function Mr(e){return e&&String(e).trim().toLowerCase()}function Vi(e){return e===!1||e==null?e:J.isArray(e)?e.map(Vi):String(e)}function n_(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const r_=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ts(e,t,n,r,i){if(J.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!J.isString(t)){if(J.isString(r))return t.indexOf(r)!==-1;if(J.isRegExp(r))return r.test(t)}}function i_(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function o_(e,t){const n=J.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,h,f){return this[r].call(this,t,i,h,f)},configurable:!0})})}let $t=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function h(g,s,p){const o=Mr(s);if(!o)throw new Error("header name must be a non-empty string");const a=J.findKey(i,o);(!a||i[a]===void 0||p===!0||p===void 0&&i[a]!==!1)&&(i[a||s]=Vi(g))}const f=(g,s)=>J.forEach(g,(p,o)=>h(p,o,s));if(J.isPlainObject(t)||t instanceof this.constructor)f(t,n);else if(J.isString(t)&&(t=t.trim())&&!r_(t))f(t_(t),n);else if(J.isObject(t)&&J.isIterable(t)){let g={},s,p;for(const o of t){if(!J.isArray(o))throw TypeError("Object iterator must return a key-value pair");g[p=o[0]]=(s=g[p])?J.isArray(s)?[...s,o[1]]:[s,o[1]]:o[1]}f(g,n)}else t!=null&&h(n,t,r);return this}get(t,n){if(t=Mr(t),t){const r=J.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return n_(i);if(J.isFunction(n))return n.call(this,i,r);if(J.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Mr(t),t){const r=J.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Ts(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function h(f){if(f=Mr(f),f){const g=J.findKey(r,f);g&&(!n||Ts(r,r[g],g,n))&&(delete r[g],i=!0)}}return J.isArray(t)?t.forEach(h):h(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const h=n[r];(!t||Ts(this,this[h],h,t,!0))&&(delete this[h],i=!0)}return i}normalize(t){const n=this,r={};return J.forEach(this,(i,h)=>{const f=J.findKey(r,h);if(f){n[f]=Vi(i),delete n[h];return}const g=t?i_(h):String(h).trim();g!==h&&delete n[h],n[g]=Vi(i),r[g]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return J.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&J.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
596
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[yu]=this[yu]={accessors:{}}).accessors,i=this.prototype;function h(f){const g=Mr(f);r[g]||(o_(i,f),r[g]=!0)}return J.isArray(t)?t.forEach(h):h(t),this}};$t.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);J.reduceDescriptors($t.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});J.freezeMethods($t);function Ls(e,t){const n=this||mi,r=t||n,i=$t.from(r.headers);let h=r.data;return J.forEach(e,function(g){h=g.call(n,h,i.normalize(),t?t.status:void 0)}),i.normalize(),h}function Cp(e){return!!(e&&e.__CANCEL__)}function $r(e,t,n){ke.call(this,e??"canceled",ke.ERR_CANCELED,t,n),this.name="CanceledError"}J.inherits($r,ke,{__CANCEL__:!0});function xp(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ke("Request failed with status code "+n.status,[ke.ERR_BAD_REQUEST,ke.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function s_(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function a_(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,h=0,f;return t=t!==void 0?t:1e3,function(s){const p=Date.now(),o=r[h];f||(f=p),n[i]=s,r[i]=p;let a=h,c=0;for(;a!==i;)c+=n[a++],a=a%e;if(i=(i+1)%e,i===h&&(h=(h+1)%e),p-f<t)return;const u=o&&p-o;return u?Math.round(c*1e3/u):void 0}}function l_(e,t){let n=0,r=1e3/t,i,h;const f=(p,o=Date.now())=>{n=o,i=null,h&&(clearTimeout(h),h=null),e(...p)};return[(...p)=>{const o=Date.now(),a=o-n;a>=r?f(p,o):(i=p,h||(h=setTimeout(()=>{h=null,f(i)},r-a)))},()=>i&&f(i)]}const fo=(e,t,n=3)=>{let r=0;const i=a_(50,250);return l_(h=>{const f=h.loaded,g=h.lengthComputable?h.total:void 0,s=f-r,p=i(s),o=f<=g;r=f;const a={loaded:f,total:g,progress:g?f/g:void 0,bytes:s,rate:p||void 0,estimated:p&&g&&o?(g-f)/p:void 0,event:h,lengthComputable:g!=null,[t?"download":"upload"]:!0};e(a)},n)},bu=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},wu=e=>(...t)=>J.asap(()=>e(...t)),c_=ft.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ft.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ft.origin),ft.navigator&&/(msie|trident)/i.test(ft.navigator.userAgent)):()=>!0,u_=ft.hasStandardBrowserEnv?{write(e,t,n,r,i,h){const f=[e+"="+encodeURIComponent(t)];J.isNumber(n)&&f.push("expires="+new Date(n).toGMTString()),J.isString(r)&&f.push("path="+r),J.isString(i)&&f.push("domain="+i),h===!0&&f.push("secure"),document.cookie=f.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function h_(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function f_(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ap(e,t,n){let r=!h_(t);return e&&(r||n==!1)?f_(e,t):t}const Su=e=>e instanceof $t?{...e}:e;function Bn(e,t){t=t||{};const n={};function r(p,o,a,c){return J.isPlainObject(p)&&J.isPlainObject(o)?J.merge.call({caseless:c},p,o):J.isPlainObject(o)?J.merge({},o):J.isArray(o)?o.slice():o}function i(p,o,a,c){if(J.isUndefined(o)){if(!J.isUndefined(p))return r(void 0,p,a,c)}else return r(p,o,a,c)}function h(p,o){if(!J.isUndefined(o))return r(void 0,o)}function f(p,o){if(J.isUndefined(o)){if(!J.isUndefined(p))return r(void 0,p)}else return r(void 0,o)}function g(p,o,a){if(a in t)return r(p,o);if(a in e)return r(void 0,p)}const s={url:h,method:h,data:h,baseURL:f,transformRequest:f,transformResponse:f,paramsSerializer:f,timeout:f,timeoutMessage:f,withCredentials:f,withXSRFToken: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:(p,o,a)=>i(Su(p),Su(o),a,!0)};return J.forEach(Object.keys({...e,...t}),function(o){const a=s[o]||i,c=a(e[o],t[o],o);J.isUndefined(c)&&a!==g||(n[o]=c)}),n}const kp=e=>{const t=Bn({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:h,headers:f,auth:g}=t;if(t.headers=f=$t.from(f),t.url=Sp(Ap(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),g&&f.set("Authorization","Basic "+btoa((g.username||"")+":"+(g.password?unescape(encodeURIComponent(g.password)):""))),J.isFormData(n)){if(ft.hasStandardBrowserEnv||ft.hasStandardBrowserWebWorkerEnv)f.setContentType(void 0);else if(J.isFunction(n.getHeaders)){const s=n.getHeaders(),p=["content-type","content-length"];Object.entries(s).forEach(([o,a])=>{p.includes(o.toLowerCase())&&f.set(o,a)})}}if(ft.hasStandardBrowserEnv&&(r&&J.isFunction(r)&&(r=r(t)),r||r!==!1&&c_(t.url))){const s=i&&h&&u_.read(h);s&&f.set(i,s)}return t},d_=typeof XMLHttpRequest<"u",p_=d_&&function(e){return new Promise(function(n,r){const i=kp(e);let h=i.data;const f=$t.from(i.headers).normalize();let{responseType:g,onUploadProgress:s,onDownloadProgress:p}=i,o,a,c,u,l;function d(){u&&u(),l&&l(),i.cancelToken&&i.cancelToken.unsubscribe(o),i.signal&&i.signal.removeEventListener("abort",o)}let m=new XMLHttpRequest;m.open(i.method.toUpperCase(),i.url,!0),m.timeout=i.timeout;function v(){if(!m)return;const C=$t.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),S={data:!g||g==="text"||g==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:C,config:e,request:m};xp(function(k){n(k),d()},function(k){r(k),d()},S),m=null}"onloadend"in m?m.onloadend=v:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(v)},m.onabort=function(){m&&(r(new ke("Request aborted",ke.ECONNABORTED,e,m)),m=null)},m.onerror=function($){const S=$&&$.message?$.message:"Network Error",b=new ke(S,ke.ERR_NETWORK,e,m);b.event=$||null,r(b),m=null},m.ontimeout=function(){let $=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const S=i.transitional||$p;i.timeoutErrorMessage&&($=i.timeoutErrorMessage),r(new ke($,S.clarifyTimeoutError?ke.ETIMEDOUT:ke.ECONNABORTED,e,m)),m=null},h===void 0&&f.setContentType(null),"setRequestHeader"in m&&J.forEach(f.toJSON(),function($,S){m.setRequestHeader(S,$)}),J.isUndefined(i.withCredentials)||(m.withCredentials=!!i.withCredentials),g&&g!=="json"&&(m.responseType=i.responseType),p&&([c,l]=fo(p,!0),m.addEventListener("progress",c)),s&&m.upload&&([a,u]=fo(s),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",u)),(i.cancelToken||i.signal)&&(o=C=>{m&&(r(!C||C.type?new $r(null,e,m):C),m.abort(),m=null)},i.cancelToken&&i.cancelToken.subscribe(o),i.signal&&(i.signal.aborted?o():i.signal.addEventListener("abort",o)));const y=s_(i.url);if(y&&ft.protocols.indexOf(y)===-1){r(new ke("Unsupported protocol "+y+":",ke.ERR_BAD_REQUEST,e));return}m.send(h||null)})},g_=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const h=function(p){if(!i){i=!0,g();const o=p instanceof Error?p:this.reason;r.abort(o instanceof ke?o:new $r(o instanceof Error?o.message:o))}};let f=t&&setTimeout(()=>{f=null,h(new ke(`timeout ${t} of ms exceeded`,ke.ETIMEDOUT))},t);const g=()=>{e&&(f&&clearTimeout(f),f=null,e.forEach(p=>{p.unsubscribe?p.unsubscribe(h):p.removeEventListener("abort",h)}),e=null)};e.forEach(p=>p.addEventListener("abort",h));const{signal:s}=r;return s.unsubscribe=()=>J.asap(g),s}},m_=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},v_=async function*(e,t){for await(const n of y_(e))yield*m_(n,t)},y_=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},$u=(e,t,n,r)=>{const i=v_(e,t);let h=0,f,g=s=>{f||(f=!0,r&&r(s))};return new ReadableStream({async pull(s){try{const{done:p,value:o}=await i.next();if(p){g(),s.close();return}let a=o.byteLength;if(n){let c=h+=a;n(c)}s.enqueue(new Uint8Array(o))}catch(p){throw g(p),p}},cancel(s){return g(s),i.return()}},{highWaterMark:2})},_u=64*1024,{isFunction:Ai}=J,b_=(({Request:e,Response:t})=>({Request:e,Response:t}))(J.global),{ReadableStream:Cu,TextEncoder:xu}=J.global,Au=(e,...t)=>{try{return!!e(...t)}catch{return!1}},w_=e=>{e=J.merge.call({skipUndefined:!0},b_,e);const{fetch:t,Request:n,Response:r}=e,i=t?Ai(t):typeof fetch=="function",h=Ai(n),f=Ai(r);if(!i)return!1;const g=i&&Ai(Cu),s=i&&(typeof xu=="function"?(l=>d=>l.encode(d))(new xu):async l=>new Uint8Array(await new n(l).arrayBuffer())),p=h&&g&&Au(()=>{let l=!1;const d=new n(ft.origin,{body:new Cu,method:"POST",get duplex(){return l=!0,"half"}}).headers.has("Content-Type");return l&&!d}),o=f&&g&&Au(()=>J.isReadableStream(new r("").body)),a={stream:o&&(l=>l.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(l=>{!a[l]&&(a[l]=(d,m)=>{let v=d&&d[l];if(v)return v.call(d);throw new ke(`Response type '${l}' is not supported`,ke.ERR_NOT_SUPPORT,m)})});const c=async l=>{if(l==null)return 0;if(J.isBlob(l))return l.size;if(J.isSpecCompliantForm(l))return(await new n(ft.origin,{method:"POST",body:l}).arrayBuffer()).byteLength;if(J.isArrayBufferView(l)||J.isArrayBuffer(l))return l.byteLength;if(J.isURLSearchParams(l)&&(l=l+""),J.isString(l))return(await s(l)).byteLength},u=async(l,d)=>{const m=J.toFiniteNumber(l.getContentLength());return m??c(d)};return async l=>{let{url:d,method:m,data:v,signal:y,cancelToken:C,timeout:$,onDownloadProgress:S,onUploadProgress:b,responseType:k,headers:R,withCredentials:E="same-origin",fetchOptions:L}=kp(l),O=t||fetch;k=k?(k+"").toLowerCase():"text";let M=g_([y,C&&C.toAbortSignal()],$),x=null;const _=M&&M.unsubscribe&&(()=>{M.unsubscribe()});let w;try{if(b&&p&&m!=="get"&&m!=="head"&&(w=await u(R,v))!==0){let F=new n(d,{method:"POST",body:v,duplex:"half"}),H;if(J.isFormData(v)&&(H=F.headers.get("content-type"))&&R.setContentType(H),F.body){const[W,U]=bu(w,fo(wu(b)));v=$u(F.body,_u,W,U)}}J.isString(E)||(E=E?"include":"omit");const A=h&&"credentials"in n.prototype,T={...L,signal:M,method:m.toUpperCase(),headers:R.normalize().toJSON(),body:v,duplex:"half",credentials:A?E:void 0};x=h&&new n(d,T);let I=await(h?O(x,L):O(d,T));const N=o&&(k==="stream"||k==="response");if(o&&(S||N&&_)){const F={};["status","statusText","headers"].forEach(V=>{F[V]=I[V]});const H=J.toFiniteNumber(I.headers.get("content-length")),[W,U]=S&&bu(H,fo(wu(S),!0))||[];I=new r($u(I.body,_u,W,()=>{U&&U(),_&&_()}),F)}k=k||"text";let D=await a[J.findKey(a,k)||"text"](I,l);return!N&&_&&_(),await new Promise((F,H)=>{xp(F,H,{data:D,headers:$t.from(I.headers),status:I.status,statusText:I.statusText,config:l,request:x})})}catch(A){throw _&&_(),A&&A.name==="TypeError"&&/Load failed|fetch/i.test(A.message)?Object.assign(new ke("Network Error",ke.ERR_NETWORK,l,x),{cause:A.cause||A}):ke.from(A,A&&A.code,l,x)}}},S_=new Map,Ep=e=>{let t=e?e.env:{};const{fetch:n,Request:r,Response:i}=t,h=[r,i,n];let f=h.length,g=f,s,p,o=S_;for(;g--;)s=h[g],p=o.get(s),p===void 0&&o.set(s,p=g?new Map:w_(t)),o=p;return p};Ep();const Ca={http:P$,xhr:p_,fetch:{get:Ep}};J.forEach(Ca,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ku=e=>`- ${e}`,$_=e=>J.isFunction(e)||e===null||e===!1,Mp={getAdapter:(e,t)=>{e=J.isArray(e)?e:[e];const{length:n}=e;let r,i;const h={};for(let f=0;f<n;f++){r=e[f];let g;if(i=r,!$_(r)&&(i=Ca[(g=String(r)).toLowerCase()],i===void 0))throw new ke(`Unknown adapter '${g}'`);if(i&&(J.isFunction(i)||(i=i.get(t))))break;h[g||"#"+f]=i}if(!i){const f=Object.entries(h).map(([s,p])=>`adapter ${s} `+(p===!1?"is not supported by the environment":"is not available in the build"));let g=n?f.length>1?`since :
597
+ `+f.map(ku).join(`
598
+ `):" "+ku(f[0]):"as no adapter specified";throw new ke("There is no suitable adapter to dispatch the request "+g,"ERR_NOT_SUPPORT")}return i},adapters:Ca};function Rs(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new $r(null,e)}function Eu(e){return Rs(e),e.headers=$t.from(e.headers),e.data=Ls.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Mp.getAdapter(e.adapter||mi.adapter,e)(e).then(function(r){return Rs(e),r.data=Ls.call(e,e.transformResponse,r),r.headers=$t.from(r.headers),r},function(r){return Cp(r)||(Rs(e),r&&r.response&&(r.response.data=Ls.call(e,e.transformResponse,r.response),r.response.headers=$t.from(r.response.headers))),Promise.reject(r)})}const Tp="1.12.2",Go={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Go[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Mu={};Go.transitional=function(t,n,r){function i(h,f){return"[Axios v"+Tp+"] Transitional option '"+h+"'"+f+(r?". "+r:"")}return(h,f,g)=>{if(t===!1)throw new ke(i(f," has been removed"+(n?" in "+n:"")),ke.ERR_DEPRECATED);return n&&!Mu[f]&&(Mu[f]=!0,console.warn(i(f," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(h,f,g):!0}};Go.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function __(e,t,n){if(typeof e!="object")throw new ke("options must be an object",ke.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const h=r[i],f=t[h];if(f){const g=e[h],s=g===void 0||f(g,h,e);if(s!==!0)throw new ke("option "+h+" must be "+s,ke.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ke("Unknown option "+h,ke.ERR_BAD_OPTION)}}const Gi={assertOptions:__,validators:Go},Zt=Gi.validators;let Pn=class{constructor(t){this.defaults=t||{},this.interceptors={request:new vu,response:new vu}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const h=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?h&&!String(r.stack).endsWith(h.replace(/^.+\n.+\n/,""))&&(r.stack+=`
599
+ `+h):r.stack=h}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Bn(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:h}=n;r!==void 0&&Gi.assertOptions(r,{silentJSONParsing:Zt.transitional(Zt.boolean),forcedJSONParsing:Zt.transitional(Zt.boolean),clarifyTimeoutError:Zt.transitional(Zt.boolean)},!1),i!=null&&(J.isFunction(i)?n.paramsSerializer={serialize:i}:Gi.assertOptions(i,{encode:Zt.function,serialize:Zt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Gi.assertOptions(n,{baseUrl:Zt.spelling("baseURL"),withXsrfToken:Zt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let f=h&&J.merge(h.common,h[n.method]);h&&J.forEach(["delete","get","head","post","put","patch","common"],l=>{delete h[l]}),n.headers=$t.concat(f,h);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 p=[];this.interceptors.response.forEach(function(d){p.push(d.fulfilled,d.rejected)});let o,a=0,c;if(!s){const l=[Eu.bind(this),void 0];for(l.unshift(...g),l.push(...p),c=l.length,o=Promise.resolve(n);a<c;)o=o.then(l[a++],l[a++]);return o}c=g.length;let u=n;for(;a<c;){const l=g[a++],d=g[a++];try{u=l(u)}catch(m){d.call(this,m);break}}try{o=Eu.call(this,u)}catch(l){return Promise.reject(l)}for(a=0,c=p.length;a<c;)o=o.then(p[a++],p[a++]);return o}getUri(t){t=Bn(this.defaults,t);const n=Ap(t.baseURL,t.url,t.allowAbsoluteUrls);return Sp(n,t.params,t.paramsSerializer)}};J.forEach(["delete","get","head","options"],function(t){Pn.prototype[t]=function(n,r){return this.request(Bn(r||{},{method:t,url:n,data:(r||{}).data}))}});J.forEach(["post","put","patch"],function(t){function n(r){return function(h,f,g){return this.request(Bn(g||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:h,data:f}))}}Pn.prototype[t]=n(),Pn.prototype[t+"Form"]=n(!0)});let C_=class Lp{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(h){n=h});const r=this;this.promise.then(i=>{if(!r._listeners)return;let h=r._listeners.length;for(;h-- >0;)r._listeners[h](i);r._listeners=null}),this.promise.then=i=>{let h;const f=new Promise(g=>{r.subscribe(g),h=g}).then(i);return f.cancel=function(){r.unsubscribe(h)},f},t(function(h,f,g){r.reason||(r.reason=new $r(h,f,g),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Lp(function(i){t=i}),cancel:t}}};function x_(e){return function(n){return e.apply(null,n)}}function A_(e){return J.isObject(e)&&e.isAxiosError===!0}const xa={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(xa).forEach(([e,t])=>{xa[t]=e});function Rp(e){const t=new Pn(e),n=cp(Pn.prototype.request,t);return J.extend(n,Pn.prototype,t,{allOwnKeys:!0}),J.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Rp(Bn(e,i))},n}const He=Rp(mi);He.Axios=Pn;He.CanceledError=$r;He.CancelToken=C_;He.isCancel=Cp;He.VERSION=Tp;He.toFormData=Vo;He.AxiosError=ke;He.Cancel=He.CanceledError;He.all=function(t){return Promise.all(t)};He.spread=x_;He.isAxiosError=A_;He.mergeConfig=Bn;He.AxiosHeaders=$t;He.formToJSON=e=>_p(J.isHTMLForm(e)?new FormData(e):e);He.getAdapter=Mp.getAdapter;He.HttpStatusCode=xa;He.default=He;const{Axios:T4,AxiosError:k_,CanceledError:L4,isCancel:R4,CancelToken:I4,VERSION:O4,all:N4,Cancel:D4,isAxiosError:F4,spread:P4,toFormData:z4,AxiosHeaders:W4,HttpStatusCode:j4,formToJSON:B4,getAdapter:H4,mergeConfig:U4}=He;function ee(e,t,n){function r(g,s){var p;Object.defineProperty(g,"_zod",{value:g._zod??{},enumerable:!1}),(p=g._zod).traits??(p.traits=new Set),g._zod.traits.add(e),t(g,s);for(const o in f.prototype)o in g||Object.defineProperty(g,o,{value:f.prototype[o].bind(g)});g._zod.constr=f,g._zod.def=s}const i=n?.Parent??Object;class h extends i{}Object.defineProperty(h,"name",{value:e});function f(g){var s;const p=n?.Parent?new h:this;r(p,g),(s=p._zod).deferred??(s.deferred=[]);for(const o of p._zod.deferred)o();return p}return Object.defineProperty(f,"init",{value:r}),Object.defineProperty(f,Symbol.hasInstance,{value:g=>n?.Parent&&g instanceof n.Parent?!0:g?._zod?.traits?.has(e)}),Object.defineProperty(f,"name",{value:e}),f}class ar extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Ip extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const Op={};function Hn(e){return Op}function E_(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,i])=>t.indexOf(+r)===-1).map(([r,i])=>i)}function Aa(e,t){return typeof t=="bigint"?t.toString():t}function Cl(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function xl(e){return e==null}function Al(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function M_(e,t){const n=(e.toString().split(".")[1]||"").length,r=t.toString();let i=(r.split(".")[1]||"").length;if(i===0&&/\d?e-\d?/.test(r)){const s=r.match(/\d?e-(\d?)/);s?.[1]&&(i=Number.parseInt(s[1]))}const h=n>i?n:i,f=Number.parseInt(e.toFixed(h).replace(".","")),g=Number.parseInt(t.toFixed(h).replace(".",""));return f%g/10**h}const Tu=Symbol("evaluating");function je(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Tu)return r===void 0&&(r=Tu,r=n()),r},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function Gn(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Zn(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function Lu(e){return JSON.stringify(e)}const Np="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function po(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const T_=Cl(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Jr(e){if(po(e)===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(po(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Dp(e){return Jr(e)?{...e}:Array.isArray(e)?[...e]:e}const L_=new Set(["string","number","symbol"]);function gr(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function kn(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function be(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function R_(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const I_={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function O_(e,t){const n=e._zod.def,r=Zn(e._zod.def,{get shape(){const i={};for(const h in t){if(!(h in n.shape))throw new Error(`Unrecognized key: "${h}"`);t[h]&&(i[h]=n.shape[h])}return Gn(this,"shape",i),i},checks:[]});return kn(e,r)}function N_(e,t){const n=e._zod.def,r=Zn(e._zod.def,{get shape(){const i={...e._zod.def.shape};for(const h in t){if(!(h in n.shape))throw new Error(`Unrecognized key: "${h}"`);t[h]&&delete i[h]}return Gn(this,"shape",i),i},checks:[]});return kn(e,r)}function D_(e,t){if(!Jr(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const i=Zn(e._zod.def,{get shape(){const h={...e._zod.def.shape,...t};return Gn(this,"shape",h),h},checks:[]});return kn(e,i)}function F_(e,t){if(!Jr(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n={...e._zod.def,get shape(){const r={...e._zod.def.shape,...t};return Gn(this,"shape",r),r},checks:e._zod.def.checks};return kn(e,n)}function P_(e,t){const n=Zn(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return Gn(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return kn(e,n)}function z_(e,t,n){const r=Zn(t._zod.def,{get shape(){const i=t._zod.def.shape,h={...i};if(n)for(const f in n){if(!(f in i))throw new Error(`Unrecognized key: "${f}"`);n[f]&&(h[f]=e?new e({type:"optional",innerType:i[f]}):i[f])}else for(const f in i)h[f]=e?new e({type:"optional",innerType:i[f]}):i[f];return Gn(this,"shape",h),h},checks:[]});return kn(t,r)}function W_(e,t,n){const r=Zn(t._zod.def,{get shape(){const i=t._zod.def.shape,h={...i};if(n)for(const f in n){if(!(f in h))throw new Error(`Unrecognized key: "${f}"`);n[f]&&(h[f]=new e({type:"nonoptional",innerType:i[f]}))}else for(const f in i)h[f]=new e({type:"nonoptional",innerType:i[f]});return Gn(this,"shape",h),h},checks:[]});return kn(t,r)}function tr(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function kl(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function ki(e){return typeof e=="string"?e:e?.message}function Un(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const i=ki(e.inst?._zod.def?.error?.(e))??ki(t?.error?.(e))??ki(n.customError?.(e))??ki(n.localeError?.(e))??"Invalid input";r.message=i}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function El(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function qr(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const Fp=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Aa,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Pp=ee("$ZodError",Fp),Zo=ee("$ZodError",Fp,{Parent:Error});function j_(e,t=n=>n.message){const n={},r=[];for(const i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function B_(e,t=n=>n.message){const n={_errors:[]},r=i=>{for(const h of i.issues)if(h.code==="invalid_union"&&h.errors.length)h.errors.map(f=>r({issues:f}));else if(h.code==="invalid_key")r({issues:h.issues});else if(h.code==="invalid_element")r({issues:h.issues});else if(h.path.length===0)n._errors.push(t(h));else{let f=n,g=0;for(;g<h.path.length;){const s=h.path[g];g===h.path.length-1?(f[s]=f[s]||{_errors:[]},f[s]._errors.push(t(h))):f[s]=f[s]||{_errors:[]},f=f[s],g++}}};return r(e),n}const Yo=e=>(t,n,r,i)=>{const h=r?Object.assign(r,{async:!1}):{async:!1},f=t._zod.run({value:n,issues:[]},h);if(f instanceof Promise)throw new ar;if(f.issues.length){const g=new(i?.Err??e)(f.issues.map(s=>Un(s,h,Hn())));throw Np(g,i?.callee),g}return f.value},Ru=Yo(Zo),Ko=e=>async(t,n,r,i)=>{const h=r?Object.assign(r,{async:!0}):{async:!0};let f=t._zod.run({value:n,issues:[]},h);if(f instanceof Promise&&(f=await f),f.issues.length){const g=new(i?.Err??e)(f.issues.map(s=>Un(s,h,Hn())));throw Np(g,i?.callee),g}return f.value},Iu=Ko(Zo),Xo=e=>(t,n,r)=>{const i=r?{...r,async:!1}:{async:!1},h=t._zod.run({value:n,issues:[]},i);if(h instanceof Promise)throw new ar;return h.issues.length?{success:!1,error:new(e??Pp)(h.issues.map(f=>Un(f,i,Hn())))}:{success:!0,data:h.value}},H_=Xo(Zo),Qo=e=>async(t,n,r)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let h=t._zod.run({value:n,issues:[]},i);return h instanceof Promise&&(h=await h),h.issues.length?{success:!1,error:new e(h.issues.map(f=>Un(f,i,Hn())))}:{success:!0,data:h.value}},U_=Qo(Zo),V_=e=>(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Yo(e)(t,n,i)},G_=e=>(t,n,r)=>Yo(e)(t,n,r),Z_=e=>async(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Ko(e)(t,n,i)},Y_=e=>async(t,n,r)=>Ko(e)(t,n,r),K_=e=>(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Xo(e)(t,n,i)},X_=e=>(t,n,r)=>Xo(e)(t,n,r),Q_=e=>async(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Qo(e)(t,n,i)},J_=e=>async(t,n,r)=>Qo(e)(t,n,r),q_=/^[cC][^\s-]{8,}$/,eC=/^[0-9a-z]+$/,tC=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,nC=/^[0-9a-vA-V]{20}$/,rC=/^[A-Za-z0-9]{27}$/,iC=/^[a-zA-Z0-9_-]{21}$/,oC=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,sC=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Ou=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,aC=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,lC="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function cC(){return new RegExp(lC,"u")}const uC=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,hC=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,fC=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,dC=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,pC=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,zp=/^[A-Za-z0-9_-]*$/,gC=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,mC=/^\+(?:[0-9]){6,14}[0-9]$/,Wp="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",vC=new RegExp(`^${Wp}$`);function jp(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function yC(e){return new RegExp(`^${jp(e)}$`)}function bC(e){const t=jp({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${Wp}T(?:${r})$`)}const wC=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},SC=/^-?\d+$/,$C=/^-?\d+(?:\.\d+)?/,_C=/^(?:true|false)$/i,CC=/^[^A-Z]*$/,xC=/^[^a-z]*$/,Ct=ee("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Bp={number:"number",bigint:"bigint",object:"date"},Hp=ee("$ZodCheckLessThan",(e,t)=>{Ct.init(e,t);const n=Bp[typeof t.value];e._zod.onattach.push(r=>{const i=r._zod.bag,h=(t.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<h&&(t.inclusive?i.maximum=t.value:i.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Up=ee("$ZodCheckGreaterThan",(e,t)=>{Ct.init(e,t);const n=Bp[typeof t.value];e._zod.onattach.push(r=>{const i=r._zod.bag,h=(t.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>h&&(t.inclusive?i.minimum=t.value:i.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),AC=ee("$ZodCheckMultipleOf",(e,t)=>{Ct.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):M_(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),kC=ee("$ZodCheckNumberFormat",(e,t)=>{Ct.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),r=n?"int":"number",[i,h]=I_[t.format];e._zod.onattach.push(f=>{const g=f._zod.bag;g.format=t.format,g.minimum=i,g.maximum=h,n&&(g.pattern=SC)}),e._zod.check=f=>{const g=f.value;if(n){if(!Number.isInteger(g)){f.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:g,inst:e});return}if(!Number.isSafeInteger(g)){g>0?f.issues.push({input:g,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!t.abort}):f.issues.push({input:g,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!t.abort});return}}g<i&&f.issues.push({origin:"number",input:g,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),g>h&&f.issues.push({origin:"number",input:g,code:"too_big",maximum:h,inst:e})}}),EC=ee("$ZodCheckMaxLength",(e,t)=>{var n;Ct.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!xl(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const i=r.value;if(i.length<=t.maximum)return;const f=El(i);r.issues.push({origin:f,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),MC=ee("$ZodCheckMinLength",(e,t)=>{var n;Ct.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!xl(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const i=r.value;if(i.length>=t.minimum)return;const f=El(i);r.issues.push({origin:f,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),TC=ee("$ZodCheckLengthEquals",(e,t)=>{var n;Ct.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!xl(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag;i.minimum=t.length,i.maximum=t.length,i.length=t.length}),e._zod.check=r=>{const i=r.value,h=i.length;if(h===t.length)return;const f=El(i),g=h>t.length;r.issues.push({origin:f,...g?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),Jo=ee("$ZodCheckStringFormat",(e,t)=>{var n,r;Ct.init(e,t),e._zod.onattach.push(i=>{const h=i._zod.bag;h.format=t.format,t.pattern&&(h.patterns??(h.patterns=new Set),h.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),LC=ee("$ZodCheckRegex",(e,t)=>{Jo.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),RC=ee("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=CC),Jo.init(e,t)}),IC=ee("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=xC),Jo.init(e,t)}),OC=ee("$ZodCheckIncludes",(e,t)=>{Ct.init(e,t);const n=gr(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(i=>{const h=i._zod.bag;h.patterns??(h.patterns=new Set),h.patterns.add(r)}),e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort})}}),NC=ee("$ZodCheckStartsWith",(e,t)=>{Ct.init(e,t);const n=new RegExp(`^${gr(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),DC=ee("$ZodCheckEndsWith",(e,t)=>{Ct.init(e,t);const n=new RegExp(`.*${gr(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),FC=ee("$ZodCheckOverwrite",(e,t)=>{Ct.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class PC{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(`
600
+ `).filter(f=>f),i=Math.min(...r.map(f=>f.length-f.trimStart().length)),h=r.map(f=>f.slice(i)).map(f=>" ".repeat(this.indent*2)+f);for(const f of h)this.content.push(f)}compile(){const t=Function,n=this?.args,i=[...(this?.content??[""]).map(h=>` ${h}`)];return new t(...n,i.join(`
601
+ `))}}const zC={major:4,minor:1,patch:12},Ue=ee("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=zC;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const i of r)for(const h of i._zod.onattach)h(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const i=(f,g,s)=>{let p=tr(f),o;for(const a of g){if(a._zod.def.when){if(!a._zod.def.when(f))continue}else if(p)continue;const c=f.issues.length,u=a._zod.check(f);if(u instanceof Promise&&s?.async===!1)throw new ar;if(o||u instanceof Promise)o=(o??Promise.resolve()).then(async()=>{await u,f.issues.length!==c&&(p||(p=tr(f,c)))});else{if(f.issues.length===c)continue;p||(p=tr(f,c))}}return o?o.then(()=>f):f},h=(f,g,s)=>{if(tr(f))return f.aborted=!0,f;const p=i(g,r,s);if(p instanceof Promise){if(s.async===!1)throw new ar;return p.then(o=>e._zod.parse(o,s))}return e._zod.parse(p,s)};e._zod.run=(f,g)=>{if(g.skipChecks)return e._zod.parse(f,g);if(g.direction==="backward"){const p=e._zod.parse({value:f.value,issues:[]},{...g,skipChecks:!0});return p instanceof Promise?p.then(o=>h(o,f,g)):h(p,f,g)}const s=e._zod.parse(f,g);if(s instanceof Promise){if(g.async===!1)throw new ar;return s.then(p=>i(p,r,g))}return i(s,r,g)}}e["~standard"]={validate:i=>{try{const h=H_(e,i);return h.success?{value:h.data}:{issues:h.error?.issues}}catch{return U_(e,i).then(f=>f.success?{value:f.data}:{issues:f.error?.issues})}},vendor:"zod",version:1}}),Ml=ee("$ZodString",(e,t)=>{Ue.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??wC(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),Ke=ee("$ZodStringFormat",(e,t)=>{Jo.init(e,t),Ml.init(e,t)}),WC=ee("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=sC),Ke.init(e,t)}),jC=ee("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Ou(r))}else t.pattern??(t.pattern=Ou());Ke.init(e,t)}),BC=ee("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=aC),Ke.init(e,t)}),HC=ee("$ZodURL",(e,t)=>{Ke.init(e,t),e._zod.check=n=>{try{const r=n.value.trim(),i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:gC.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),UC=ee("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=cC()),Ke.init(e,t)}),VC=ee("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=iC),Ke.init(e,t)}),GC=ee("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=q_),Ke.init(e,t)}),ZC=ee("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=eC),Ke.init(e,t)}),YC=ee("$ZodULID",(e,t)=>{t.pattern??(t.pattern=tC),Ke.init(e,t)}),KC=ee("$ZodXID",(e,t)=>{t.pattern??(t.pattern=nC),Ke.init(e,t)}),XC=ee("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=rC),Ke.init(e,t)}),QC=ee("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=bC(t)),Ke.init(e,t)}),JC=ee("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=vC),Ke.init(e,t)}),qC=ee("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=yC(t)),Ke.init(e,t)}),ex=ee("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=oC),Ke.init(e,t)}),tx=ee("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=uC),Ke.init(e,t),e._zod.onattach.push(n=>{const r=n._zod.bag;r.format="ipv4"})}),nx=ee("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=hC),Ke.init(e,t),e._zod.onattach.push(n=>{const r=n._zod.bag;r.format="ipv6"}),e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),rx=ee("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=fC),Ke.init(e,t)}),ix=ee("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=dC),Ke.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[i,h]=r;if(!h)throw new Error;const f=Number(h);if(`${f}`!==h)throw new Error;if(f<0||f>128)throw new Error;new URL(`http://[${i}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function Vp(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const ox=ee("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=pC),Ke.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64"}),e._zod.check=n=>{Vp(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function sx(e){if(!zp.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return Vp(n)}const ax=ee("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=zp),Ke.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64url"}),e._zod.check=n=>{sx(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),lx=ee("$ZodE164",(e,t)=>{t.pattern??(t.pattern=mC),Ke.init(e,t)});function cx(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const i=JSON.parse(atob(r));return!("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch{return!1}}const ux=ee("$ZodJWT",(e,t)=>{Ke.init(e,t),e._zod.check=n=>{cx(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Gp=ee("$ZodNumber",(e,t)=>{Ue.init(e,t),e._zod.pattern=e._zod.bag.pattern??$C,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const i=n.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return n;const h=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...h?{received:h}:{}}),n}}),hx=ee("$ZodNumber",(e,t)=>{kC.init(e,t),Gp.init(e,t)}),fx=ee("$ZodBoolean",(e,t)=>{Ue.init(e,t),e._zod.pattern=_C,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}const i=n.value;return typeof i=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),n}}),dx=ee("$ZodAny",(e,t)=>{Ue.init(e,t),e._zod.parse=n=>n}),px=ee("$ZodUnknown",(e,t)=>{Ue.init(e,t),e._zod.parse=n=>n}),gx=ee("$ZodNever",(e,t)=>{Ue.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function Nu(e,t,n){e.issues.length&&t.issues.push(...kl(n,e.issues)),t.value[n]=e.value}const mx=ee("$ZodArray",(e,t)=>{Ue.init(e,t),e._zod.parse=(n,r)=>{const i=n.value;if(!Array.isArray(i))return n.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),n;n.value=Array(i.length);const h=[];for(let f=0;f<i.length;f++){const g=i[f],s=t.element._zod.run({value:g,issues:[]},r);s instanceof Promise?h.push(s.then(p=>Nu(p,n,f))):Nu(s,n,f)}return h.length?Promise.all(h).then(()=>n):n}});function go(e,t,n,r){e.issues.length&&t.issues.push(...kl(n,e.issues)),e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function Zp(e){const t=Object.keys(e.shape);for(const r of t)if(!e.shape?.[r]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${r}": expected a Zod schema`);const n=R_(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Yp(e,t,n,r,i,h){const f=[],g=i.keySet,s=i.catchall._zod,p=s.def.type;for(const o of Object.keys(t)){if(g.has(o))continue;if(p==="never"){f.push(o);continue}const a=s.run({value:t[o],issues:[]},r);a instanceof Promise?e.push(a.then(c=>go(c,n,o,t))):go(a,n,o,t)}return f.length&&n.issues.push({code:"unrecognized_keys",keys:f,input:t,inst:h}),e.length?Promise.all(e).then(()=>n):n}const vx=ee("$ZodObject",(e,t)=>{if(Ue.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const g=t.shape;Object.defineProperty(t,"shape",{get:()=>{const s={...g};return Object.defineProperty(t,"shape",{value:s}),s}})}const r=Cl(()=>Zp(t));je(e._zod,"propValues",()=>{const g=t.shape,s={};for(const p in g){const o=g[p]._zod;if(o.values){s[p]??(s[p]=new Set);for(const a of o.values)s[p].add(a)}}return s});const i=po,h=t.catchall;let f;e._zod.parse=(g,s)=>{f??(f=r.value);const p=g.value;if(!i(p))return g.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),g;g.value={};const o=[],a=f.shape;for(const c of f.keys){const l=a[c]._zod.run({value:p[c],issues:[]},s);l instanceof Promise?o.push(l.then(d=>go(d,g,c,p))):go(l,g,c,p)}return h?Yp(o,p,g,s,r.value,e):o.length?Promise.all(o).then(()=>g):g}}),yx=ee("$ZodObjectJIT",(e,t)=>{vx.init(e,t);const n=e._zod.parse,r=Cl(()=>Zp(t)),i=c=>{const u=new PC(["shape","payload","ctx"]),l=r.value,d=C=>{const $=Lu(C);return`shape[${$}]._zod.run({ value: input[${$}], issues: [] }, ctx)`};u.write("const input = payload.value;");const m=Object.create(null);let v=0;for(const C of l.keys)m[C]=`key_${v++}`;u.write("const newResult = {};");for(const C of l.keys){const $=m[C],S=Lu(C);u.write(`const ${$} = ${d(C)};`),u.write(`
602
+ if (${$}.issues.length) {
603
+ payload.issues = payload.issues.concat(${$}.issues.map(iss => ({
604
+ ...iss,
605
+ path: iss.path ? [${S}, ...iss.path] : [${S}]
606
+ })));
607
+ }
608
+
609
+
610
+ if (${$}.value === undefined) {
611
+ if (${S} in input) {
612
+ newResult[${S}] = undefined;
613
+ }
614
+ } else {
615
+ newResult[${S}] = ${$}.value;
616
+ }
617
+
618
+ `)}u.write("payload.value = newResult;"),u.write("return payload;");const y=u.compile();return(C,$)=>y(c,C,$)};let h;const f=po,g=!Op.jitless,p=g&&T_.value,o=t.catchall;let a;e._zod.parse=(c,u)=>{a??(a=r.value);const l=c.value;return f(l)?g&&p&&u?.async===!1&&u.jitless!==!0?(h||(h=i(t.shape)),c=h(c,u),o?Yp([],l,c,u,a,e):c):n(c,u):(c.issues.push({expected:"object",code:"invalid_type",input:l,inst:e}),c)}});function Du(e,t,n,r){for(const h of e)if(h.issues.length===0)return t.value=h.value,t;const i=e.filter(h=>!tr(h));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(h=>h.issues.map(f=>Un(f,r,Hn())))}),t)}const bx=ee("$ZodUnion",(e,t)=>{Ue.init(e,t),je(e._zod,"optin",()=>t.options.some(i=>i._zod.optin==="optional")?"optional":void 0),je(e._zod,"optout",()=>t.options.some(i=>i._zod.optout==="optional")?"optional":void 0),je(e._zod,"values",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),je(e._zod,"pattern",()=>{if(t.options.every(i=>i._zod.pattern)){const i=t.options.map(h=>h._zod.pattern);return new RegExp(`^(${i.map(h=>Al(h.source)).join("|")})$`)}});const n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,h)=>{if(n)return r(i,h);let f=!1;const g=[];for(const s of t.options){const p=s._zod.run({value:i.value,issues:[]},h);if(p instanceof Promise)g.push(p),f=!0;else{if(p.issues.length===0)return p;g.push(p)}}return f?Promise.all(g).then(s=>Du(s,i,e,h)):Du(g,i,e,h)}}),wx=ee("$ZodIntersection",(e,t)=>{Ue.init(e,t),e._zod.parse=(n,r)=>{const i=n.value,h=t.left._zod.run({value:i,issues:[]},r),f=t.right._zod.run({value:i,issues:[]},r);return h instanceof Promise||f instanceof Promise?Promise.all([h,f]).then(([s,p])=>Fu(n,s,p)):Fu(n,h,f)}});function ka(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Jr(e)&&Jr(t)){const n=Object.keys(t),r=Object.keys(e).filter(h=>n.indexOf(h)!==-1),i={...e,...t};for(const h of r){const f=ka(e[h],t[h]);if(!f.valid)return{valid:!1,mergeErrorPath:[h,...f.mergeErrorPath]};i[h]=f.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const i=e[r],h=t[r],f=ka(i,h);if(!f.valid)return{valid:!1,mergeErrorPath:[r,...f.mergeErrorPath]};n.push(f.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Fu(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),tr(e))return e;const r=ka(t.value,n.value);if(!r.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}const Kp=ee("$ZodTuple",(e,t)=>{Ue.init(e,t);const n=t.items,r=n.length-[...n].reverse().findIndex(i=>i._zod.optin!=="optional");e._zod.parse=(i,h)=>{const f=i.value;if(!Array.isArray(f))return i.issues.push({input:f,inst:e,expected:"tuple",code:"invalid_type"}),i;i.value=[];const g=[];if(!t.rest){const p=f.length>n.length,o=f.length<r-1;if(p||o)return i.issues.push({...p?{code:"too_big",maximum:n.length}:{code:"too_small",minimum:n.length},input:f,inst:e,origin:"array"}),i}let s=-1;for(const p of n){if(s++,s>=f.length&&s>=r)continue;const o=p._zod.run({value:f[s],issues:[]},h);o instanceof Promise?g.push(o.then(a=>Ei(a,i,s))):Ei(o,i,s)}if(t.rest){const p=f.slice(n.length);for(const o of p){s++;const a=t.rest._zod.run({value:o,issues:[]},h);a instanceof Promise?g.push(a.then(c=>Ei(c,i,s))):Ei(a,i,s)}}return g.length?Promise.all(g).then(()=>i):i}});function Ei(e,t,n){e.issues.length&&t.issues.push(...kl(n,e.issues)),t.value[n]=e.value}const Sx=ee("$ZodEnum",(e,t)=>{Ue.init(e,t);const n=E_(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(i=>L_.has(typeof i)).map(i=>typeof i=="string"?gr(i):i.toString()).join("|")})$`),e._zod.parse=(i,h)=>{const f=i.value;return r.has(f)||i.issues.push({code:"invalid_value",values:n,input:f,inst:e}),i}}),$x=ee("$ZodLiteral",(e,t)=>{if(Ue.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");e._zod.values=new Set(t.values),e._zod.pattern=new RegExp(`^(${t.values.map(n=>typeof n=="string"?gr(n):n?gr(n.toString()):String(n)).join("|")})$`),e._zod.parse=(n,r)=>{const i=n.value;return e._zod.values.has(i)||n.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),n}}),_x=ee("$ZodTransform",(e,t)=>{Ue.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Ip(e.constructor.name);const i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(f=>(n.value=f,n));if(i instanceof Promise)throw new ar;return n.value=i,n}});function Pu(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const Cx=ee("$ZodOptional",(e,t)=>{Ue.init(e,t),e._zod.optin="optional",e._zod.optout="optional",je(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),je(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Al(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(h=>Pu(h,n.value)):Pu(i,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),xx=ee("$ZodNullable",(e,t)=>{Ue.init(e,t),je(e._zod,"optin",()=>t.innerType._zod.optin),je(e._zod,"optout",()=>t.innerType._zod.optout),je(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Al(n.source)}|null)$`):void 0}),je(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),Ax=ee("$ZodDefault",(e,t)=>{Ue.init(e,t),e._zod.optin="optional",je(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(h=>zu(h,t)):zu(i,t)}});function zu(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const kx=ee("$ZodPrefault",(e,t)=>{Ue.init(e,t),e._zod.optin="optional",je(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),Ex=ee("$ZodNonOptional",(e,t)=>{Ue.init(e,t),je(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(h=>Wu(h,e)):Wu(i,e)}});function Wu(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const Mx=ee("$ZodCatch",(e,t)=>{Ue.init(e,t),je(e._zod,"optin",()=>t.innerType._zod.optin),je(e._zod,"optout",()=>t.innerType._zod.optout),je(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(h=>(n.value=h.value,h.issues.length&&(n.value=t.catchValue({...n,error:{issues:h.issues.map(f=>Un(f,r,Hn()))},input:n.value}),n.issues=[]),n)):(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(h=>Un(h,r,Hn()))},input:n.value}),n.issues=[]),n)}}),Tx=ee("$ZodPipe",(e,t)=>{Ue.init(e,t),je(e._zod,"values",()=>t.in._zod.values),je(e._zod,"optin",()=>t.in._zod.optin),je(e._zod,"optout",()=>t.out._zod.optout),je(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const h=t.out._zod.run(n,r);return h instanceof Promise?h.then(f=>Mi(f,t.in,r)):Mi(h,t.in,r)}const i=t.in._zod.run(n,r);return i instanceof Promise?i.then(h=>Mi(h,t.out,r)):Mi(i,t.out,r)}});function Mi(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const Lx=ee("$ZodReadonly",(e,t)=>{Ue.init(e,t),je(e._zod,"propValues",()=>t.innerType._zod.propValues),je(e._zod,"values",()=>t.innerType._zod.values),je(e._zod,"optin",()=>t.innerType._zod.optin),je(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(ju):ju(i)}});function ju(e){return e.value=Object.freeze(e.value),e}const Rx=ee("$ZodFunction",(e,t)=>(Ue.init(e,t),e._def=t,e._zod.def=t,e.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return function(...r){const i=e._def.input?Ru(e._def.input,r):r,h=Reflect.apply(n,this,i);return e._def.output?Ru(e._def.output,h):h}},e.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return async function(...r){const i=e._def.input?await Iu(e._def.input,r):r,h=await Reflect.apply(n,this,i);return e._def.output?await Iu(e._def.output,h):h}},e._zod.parse=(n,r)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:e}),n):(e._def.output&&e._def.output._zod.def.type==="promise"?n.value=e.implementAsync(n.value):n.value=e.implement(n.value),n),e.input=(...n)=>{const r=e.constructor;return Array.isArray(n[0])?new r({type:"function",input:new Kp({type:"tuple",items:n[0],rest:n[1]}),output:e._def.output}):new r({type:"function",input:n[0],output:e._def.output})},e.output=n=>{const r=e.constructor;return new r({type:"function",input:e._def.input,output:n})},e)),Ix=ee("$ZodCustom",(e,t)=>{Ct.init(e,t),Ue.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(h=>Bu(h,n,r,e));Bu(i,n,r,e)}});function Bu(e,t,n,r){if(!e){const i={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(i.params=r._zod.def.params),t.issues.push(qr(i))}}class Ox{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];if(this._map.set(t,r),r&&typeof r=="object"&&"id"in r){if(this._idmap.has(r.id))throw new Error(`ID ${r.id} already exists in the registry`);this._idmap.set(r.id,t)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const i={...r,...this._map.get(t)};return Object.keys(i).length?i:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function Nx(){return new Ox}const Ti=Nx();function Dx(e,t){return new e({type:"string",...be(t)})}function Fx(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...be(t)})}function Hu(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...be(t)})}function Px(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...be(t)})}function zx(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...be(t)})}function Wx(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...be(t)})}function jx(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...be(t)})}function Bx(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...be(t)})}function Hx(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...be(t)})}function Ux(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...be(t)})}function Vx(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...be(t)})}function Gx(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...be(t)})}function Zx(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...be(t)})}function Yx(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...be(t)})}function Kx(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...be(t)})}function Xx(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...be(t)})}function Qx(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...be(t)})}function Jx(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...be(t)})}function qx(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...be(t)})}function eA(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...be(t)})}function tA(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...be(t)})}function nA(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...be(t)})}function rA(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...be(t)})}function iA(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...be(t)})}function oA(e,t){return new e({type:"string",format:"date",check:"string_format",...be(t)})}function sA(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...be(t)})}function aA(e,t){return new e({type:"string",format:"duration",check:"string_format",...be(t)})}function lA(e,t){return new e({type:"number",checks:[],...be(t)})}function cA(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...be(t)})}function uA(e,t){return new e({type:"boolean",...be(t)})}function hA(e){return new e({type:"any"})}function fA(e){return new e({type:"unknown"})}function dA(e,t){return new e({type:"never",...be(t)})}function Uu(e,t){return new Hp({check:"less_than",...be(t),value:e,inclusive:!1})}function Is(e,t){return new Hp({check:"less_than",...be(t),value:e,inclusive:!0})}function Vu(e,t){return new Up({check:"greater_than",...be(t),value:e,inclusive:!1})}function Os(e,t){return new Up({check:"greater_than",...be(t),value:e,inclusive:!0})}function Gu(e,t){return new AC({check:"multiple_of",...be(t),value:e})}function Xp(e,t){return new EC({check:"max_length",...be(t),maximum:e})}function mo(e,t){return new MC({check:"min_length",...be(t),minimum:e})}function Qp(e,t){return new TC({check:"length_equals",...be(t),length:e})}function pA(e,t){return new LC({check:"string_format",format:"regex",...be(t),pattern:e})}function gA(e){return new RC({check:"string_format",format:"lowercase",...be(e)})}function mA(e){return new IC({check:"string_format",format:"uppercase",...be(e)})}function vA(e,t){return new OC({check:"string_format",format:"includes",...be(t),includes:e})}function yA(e,t){return new NC({check:"string_format",format:"starts_with",...be(t),prefix:e})}function bA(e,t){return new DC({check:"string_format",format:"ends_with",...be(t),suffix:e})}function vi(e){return new FC({check:"overwrite",tx:e})}function wA(e){return vi(t=>t.normalize(e))}function SA(){return vi(e=>e.trim())}function $A(){return vi(e=>e.toLowerCase())}function _A(){return vi(e=>e.toUpperCase())}function CA(e,t,n){return new e({type:"array",element:t,...be(n)})}function xA(e,t,n){return new e({type:"custom",check:"custom",fn:t,...be(n)})}function AA(e){const t=kA(n=>(n.addIssue=r=>{if(typeof r=="string")n.issues.push(qr(r,n.value,t._zod.def));else{const i=r;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=t),i.continue??(i.continue=!t._zod.def.abort),n.issues.push(qr(i))}},e(n.value,n)));return t}function kA(e,t){const n=new Ct({check:"custom",...be(t)});return n._zod.check=e,n}const EA=ee("ZodISODateTime",(e,t)=>{QC.init(e,t),Qe.init(e,t)});function MA(e){return iA(EA,e)}const TA=ee("ZodISODate",(e,t)=>{JC.init(e,t),Qe.init(e,t)});function LA(e){return oA(TA,e)}const RA=ee("ZodISOTime",(e,t)=>{qC.init(e,t),Qe.init(e,t)});function IA(e){return sA(RA,e)}const OA=ee("ZodISODuration",(e,t)=>{ex.init(e,t),Qe.init(e,t)});function NA(e){return aA(OA,e)}const DA=(e,t)=>{Pp.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>B_(e,n)},flatten:{value:n=>j_(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,Aa,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,Aa,2)}},isEmpty:{get(){return e.issues.length===0}}})},Dt=ee("ZodError",DA,{Parent:Error}),FA=Yo(Dt),PA=Ko(Dt),zA=Xo(Dt),WA=Qo(Dt),jA=V_(Dt),BA=G_(Dt),HA=Z_(Dt),UA=Y_(Dt),VA=K_(Dt),GA=X_(Dt),ZA=Q_(Dt),YA=J_(Dt),Xe=ee("ZodType",(e,t)=>(Ue.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(Zn(t,{checks:[...t.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]})),e.clone=(n,r)=>kn(e,n,r),e.brand=()=>e,e.register=(n,r)=>(n.add(e,r),e),e.parse=(n,r)=>FA(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>zA(e,n,r),e.parseAsync=async(n,r)=>PA(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>WA(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>jA(e,n,r),e.decode=(n,r)=>BA(e,n,r),e.encodeAsync=async(n,r)=>HA(e,n,r),e.decodeAsync=async(n,r)=>UA(e,n,r),e.safeEncode=(n,r)=>VA(e,n,r),e.safeDecode=(n,r)=>GA(e,n,r),e.safeEncodeAsync=async(n,r)=>ZA(e,n,r),e.safeDecodeAsync=async(n,r)=>YA(e,n,r),e.refine=(n,r)=>e.check(H2(n,r)),e.superRefine=n=>e.check(U2(n)),e.overwrite=n=>e.check(vi(n)),e.optional=()=>Ku(e),e.nullable=()=>Xu(e),e.nullish=()=>Ku(Xu(e)),e.nonoptional=n=>N2(e,n),e.array=()=>tt(e),e.or=n=>Tl([e,n]),e.and=n=>_2(e,n),e.transform=n=>Qu(e,M2(n)),e.default=n=>R2(e,n),e.prefault=n=>O2(e,n),e.catch=n=>F2(e,n),e.pipe=n=>Qu(e,n),e.readonly=()=>W2(e),e.describe=n=>{const r=e.clone();return Ti.add(r,{description:n}),r},Object.defineProperty(e,"description",{get(){return Ti.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return Ti.get(e);const r=e.clone();return Ti.add(r,n[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),Jp=ee("_ZodString",(e,t)=>{Ml.init(e,t),Xe.init(e,t);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...r)=>e.check(pA(...r)),e.includes=(...r)=>e.check(vA(...r)),e.startsWith=(...r)=>e.check(yA(...r)),e.endsWith=(...r)=>e.check(bA(...r)),e.min=(...r)=>e.check(mo(...r)),e.max=(...r)=>e.check(Xp(...r)),e.length=(...r)=>e.check(Qp(...r)),e.nonempty=(...r)=>e.check(mo(1,...r)),e.lowercase=r=>e.check(gA(r)),e.uppercase=r=>e.check(mA(r)),e.trim=()=>e.check(SA()),e.normalize=(...r)=>e.check(wA(...r)),e.toLowerCase=()=>e.check($A()),e.toUpperCase=()=>e.check(_A())}),KA=ee("ZodString",(e,t)=>{Ml.init(e,t),Jp.init(e,t),e.email=n=>e.check(Fx(XA,n)),e.url=n=>e.check(Bx(QA,n)),e.jwt=n=>e.check(rA(f2,n)),e.emoji=n=>e.check(Hx(JA,n)),e.guid=n=>e.check(Hu(Zu,n)),e.uuid=n=>e.check(Px(Li,n)),e.uuidv4=n=>e.check(zx(Li,n)),e.uuidv6=n=>e.check(Wx(Li,n)),e.uuidv7=n=>e.check(jx(Li,n)),e.nanoid=n=>e.check(Ux(qA,n)),e.guid=n=>e.check(Hu(Zu,n)),e.cuid=n=>e.check(Vx(e2,n)),e.cuid2=n=>e.check(Gx(t2,n)),e.ulid=n=>e.check(Zx(n2,n)),e.base64=n=>e.check(eA(c2,n)),e.base64url=n=>e.check(tA(u2,n)),e.xid=n=>e.check(Yx(r2,n)),e.ksuid=n=>e.check(Kx(i2,n)),e.ipv4=n=>e.check(Xx(o2,n)),e.ipv6=n=>e.check(Qx(s2,n)),e.cidrv4=n=>e.check(Jx(a2,n)),e.cidrv6=n=>e.check(qx(l2,n)),e.e164=n=>e.check(nA(h2,n)),e.datetime=n=>e.check(MA(n)),e.date=n=>e.check(LA(n)),e.time=n=>e.check(IA(n)),e.duration=n=>e.check(NA(n))});function _e(e){return Dx(KA,e)}const Qe=ee("ZodStringFormat",(e,t)=>{Ke.init(e,t),Jp.init(e,t)}),XA=ee("ZodEmail",(e,t)=>{BC.init(e,t),Qe.init(e,t)}),Zu=ee("ZodGUID",(e,t)=>{WC.init(e,t),Qe.init(e,t)}),Li=ee("ZodUUID",(e,t)=>{jC.init(e,t),Qe.init(e,t)}),QA=ee("ZodURL",(e,t)=>{HC.init(e,t),Qe.init(e,t)}),JA=ee("ZodEmoji",(e,t)=>{UC.init(e,t),Qe.init(e,t)}),qA=ee("ZodNanoID",(e,t)=>{VC.init(e,t),Qe.init(e,t)}),e2=ee("ZodCUID",(e,t)=>{GC.init(e,t),Qe.init(e,t)}),t2=ee("ZodCUID2",(e,t)=>{ZC.init(e,t),Qe.init(e,t)}),n2=ee("ZodULID",(e,t)=>{YC.init(e,t),Qe.init(e,t)}),r2=ee("ZodXID",(e,t)=>{KC.init(e,t),Qe.init(e,t)}),i2=ee("ZodKSUID",(e,t)=>{XC.init(e,t),Qe.init(e,t)}),o2=ee("ZodIPv4",(e,t)=>{tx.init(e,t),Qe.init(e,t)}),s2=ee("ZodIPv6",(e,t)=>{nx.init(e,t),Qe.init(e,t)}),a2=ee("ZodCIDRv4",(e,t)=>{rx.init(e,t),Qe.init(e,t)}),l2=ee("ZodCIDRv6",(e,t)=>{ix.init(e,t),Qe.init(e,t)}),c2=ee("ZodBase64",(e,t)=>{ox.init(e,t),Qe.init(e,t)}),u2=ee("ZodBase64URL",(e,t)=>{ax.init(e,t),Qe.init(e,t)}),h2=ee("ZodE164",(e,t)=>{lx.init(e,t),Qe.init(e,t)}),f2=ee("ZodJWT",(e,t)=>{ux.init(e,t),Qe.init(e,t)}),qp=ee("ZodNumber",(e,t)=>{Gp.init(e,t),Xe.init(e,t),e.gt=(r,i)=>e.check(Vu(r,i)),e.gte=(r,i)=>e.check(Os(r,i)),e.min=(r,i)=>e.check(Os(r,i)),e.lt=(r,i)=>e.check(Uu(r,i)),e.lte=(r,i)=>e.check(Is(r,i)),e.max=(r,i)=>e.check(Is(r,i)),e.int=r=>e.check(Yu(r)),e.safe=r=>e.check(Yu(r)),e.positive=r=>e.check(Vu(0,r)),e.nonnegative=r=>e.check(Os(0,r)),e.negative=r=>e.check(Uu(0,r)),e.nonpositive=r=>e.check(Is(0,r)),e.multipleOf=(r,i)=>e.check(Gu(r,i)),e.step=(r,i)=>e.check(Gu(r,i)),e.finite=()=>e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function _t(e){return lA(qp,e)}const d2=ee("ZodNumberFormat",(e,t)=>{hx.init(e,t),qp.init(e,t)});function Yu(e){return cA(d2,e)}const p2=ee("ZodBoolean",(e,t)=>{fx.init(e,t),Xe.init(e,t)});function eg(e){return uA(p2,e)}const g2=ee("ZodAny",(e,t)=>{dx.init(e,t),Xe.init(e,t)});function tg(){return hA(g2)}const m2=ee("ZodUnknown",(e,t)=>{px.init(e,t),Xe.init(e,t)});function vo(){return fA(m2)}const v2=ee("ZodNever",(e,t)=>{gx.init(e,t),Xe.init(e,t)});function y2(e){return dA(v2,e)}const b2=ee("ZodArray",(e,t)=>{mx.init(e,t),Xe.init(e,t),e.element=t.element,e.min=(n,r)=>e.check(mo(n,r)),e.nonempty=n=>e.check(mo(1,n)),e.max=(n,r)=>e.check(Xp(n,r)),e.length=(n,r)=>e.check(Qp(n,r)),e.unwrap=()=>e.element});function tt(e,t){return CA(b2,e,t)}const w2=ee("ZodObject",(e,t)=>{yx.init(e,t),Xe.init(e,t),je(e,"shape",()=>t.shape),e.keyof=()=>A2(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:vo()}),e.loose=()=>e.clone({...e._zod.def,catchall:vo()}),e.strict=()=>e.clone({...e._zod.def,catchall:y2()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>D_(e,n),e.safeExtend=n=>F_(e,n),e.merge=n=>P_(e,n),e.pick=n=>O_(e,n),e.omit=n=>N_(e,n),e.partial=(...n)=>z_(ng,e,n[0]),e.required=(...n)=>W_(rg,e,n[0])});function Ve(e,t){const n={type:"object",shape:e??{},...be(t)};return new w2(n)}const S2=ee("ZodUnion",(e,t)=>{bx.init(e,t),Xe.init(e,t),e.options=t.options});function Tl(e,t){return new S2({type:"union",options:e,...be(t)})}const $2=ee("ZodIntersection",(e,t)=>{wx.init(e,t),Xe.init(e,t)});function _2(e,t){return new $2({type:"intersection",left:e,right:t})}const C2=ee("ZodTuple",(e,t)=>{Kp.init(e,t),Xe.init(e,t),e.rest=n=>e.clone({...e._zod.def,rest:n})});function x2(e,t,n){const r=t instanceof Ue,i=r?n:t,h=r?t:null;return new C2({type:"tuple",items:e,rest:h,...be(i)})}const Ea=ee("ZodEnum",(e,t)=>{Sx.init(e,t),Xe.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,i)=>{const h={};for(const f of r)if(n.has(f))h[f]=t.entries[f];else throw new Error(`Key ${f} not found in enum`);return new Ea({...t,checks:[],...be(i),entries:h})},e.exclude=(r,i)=>{const h={...t.entries};for(const f of r)if(n.has(f))delete h[f];else throw new Error(`Key ${f} not found in enum`);return new Ea({...t,checks:[],...be(i),entries:h})}});function A2(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new Ea({type:"enum",entries:n,...be(t)})}const k2=ee("ZodLiteral",(e,t)=>{$x.init(e,t),Xe.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function bn(e,t){return new k2({type:"literal",values:Array.isArray(e)?e:[e],...be(t)})}const E2=ee("ZodTransform",(e,t)=>{_x.init(e,t),Xe.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Ip(e.constructor.name);n.addIssue=h=>{if(typeof h=="string")n.issues.push(qr(h,n.value,t));else{const f=h;f.fatal&&(f.continue=!1),f.code??(f.code="custom"),f.input??(f.input=n.value),f.inst??(f.inst=e),n.issues.push(qr(f))}};const i=t.transform(n.value,n);return i instanceof Promise?i.then(h=>(n.value=h,n)):(n.value=i,n)}});function M2(e){return new E2({type:"transform",transform:e})}const ng=ee("ZodOptional",(e,t)=>{Cx.init(e,t),Xe.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Ku(e){return new ng({type:"optional",innerType:e})}const T2=ee("ZodNullable",(e,t)=>{xx.init(e,t),Xe.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Xu(e){return new T2({type:"nullable",innerType:e})}const L2=ee("ZodDefault",(e,t)=>{Ax.init(e,t),Xe.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function R2(e,t){return new L2({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Dp(t)}})}const I2=ee("ZodPrefault",(e,t)=>{kx.init(e,t),Xe.init(e,t),e.unwrap=()=>e._zod.def.innerType});function O2(e,t){return new I2({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Dp(t)}})}const rg=ee("ZodNonOptional",(e,t)=>{Ex.init(e,t),Xe.init(e,t),e.unwrap=()=>e._zod.def.innerType});function N2(e,t){return new rg({type:"nonoptional",innerType:e,...be(t)})}const D2=ee("ZodCatch",(e,t)=>{Mx.init(e,t),Xe.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function F2(e,t){return new D2({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const P2=ee("ZodPipe",(e,t)=>{Tx.init(e,t),Xe.init(e,t),e.in=t.in,e.out=t.out});function Qu(e,t){return new P2({type:"pipe",in:e,out:t})}const z2=ee("ZodReadonly",(e,t)=>{Lx.init(e,t),Xe.init(e,t),e.unwrap=()=>e._zod.def.innerType});function W2(e){return new z2({type:"readonly",innerType:e})}const j2=ee("ZodFunction",(e,t)=>{Rx.init(e,t),Xe.init(e,t)});function Ju(e){return new j2({type:"function",input:Array.isArray(e?.input)?x2(e?.input):e?.input??tt(vo()),output:e?.output??vo()})}const B2=ee("ZodCustom",(e,t)=>{Ix.init(e,t),Xe.init(e,t)});function H2(e,t={}){return xA(B2,e,t)}function U2(e){return AA(e)}const qo=Ve({total:_t(),currentPage:_t(),pageSize:_t()}),V2=Ve({key:_e(),value:_e().nullish()}),G2=Ve({name:_e(),configured:eg(),items:tt(V2).nullish(),type:_e()}),Z2=Ve({results:tt(G2)}),es=Ve({id:_t(),name:_e()}),Y2=qo.extend({results:tt(es)}),K2=Ve({resource:_e(),value:_e()}),qu=Ve({name:_e().nullish()}),X2=Ve({createdOn:_e().nullish(),updatedOn:_e().nullish(),expiresOn:_e().nullish(),registrar:qu.nullish(),contacts:tt(qu)}),Q2=Ve({number:_t()}),J2=Ve({country:_e(),countryCode:_e()}),q2=Ve({name:_e()}),ek=Ve({name:_e()}),tk=Ve({name:_e()}),nk=Ve({number:_t()}),Ll=Ve({id:_t(),data:_e(),dataType:_e(),source:_e(),query:_e().nullish(),metadata:tg().nullish(),createdAt:_e(),autonomousSystem:Q2.nullish(),whoisRecord:X2.nullish(),geolocation:J2.nullish(),dnsRecords:tt(K2).nullish(),reverseDnsNames:tt(q2).nullish(),cpes:tt(ek).nullish(),ports:tt(nk).nullish(),vulnerabilities:tt(tk).nullish(),tags:tt(es)}),ig=Ve({id:_t(),ruleId:_e(),createdAt:_e(),tags:tt(es),artifacts:tt(Ll)}),rk=qo.extend({results:tt(ig)});Ve({q:_e(),page:_t().nullish(),limit:_t().nullish()});Ve({countryCode:_e(),asn:_e().nullish(),loc:_e().nullish()});Ve({lat:_t(),long:_t()});Ve({name:_e(),code:_e(),lat:_t(),long:_t()});Tl([bn("ip"),bn("domain"),bn("url"),bn("hash"),bn("mail")]);Ve({name:_e(),type:_e(),baseURL:_e(),favicon:Ju({output:_e()}),href:Ju({input:[_e()],output:_e()})});const Zi=Ve({id:_e(),title:_e(),description:_e(),yaml:_e(),createdAt:_e(),updatedAt:_e(),tags:tt(es)});Ve({yaml:_e()});Ve({yaml:_e()});Ve({analyzer:_e(),query:_e()});const ik=qo.extend({results:tt(Zi)}),ok=qo.extend({results:tt(Ll)}),og=Ve({message:_e()});og.extend({detail:tg().nullish()});const eh=og.extend({queued:eg()});Tl([bn("Alerts"),bn("Rules"),bn("Artifacts")]);const nt=He.create(),mt={async getConfigs(){const e=await nt.get("/api/configs");return Z2.parse(e.data)},async getAlerts(e){e.page=e.page||1;const t=await nt.get("/api/alerts",{params:e});return rk.parse(t.data)},async getAlert(e){const t=await nt.get(`/api/alerts/${e}`);return ig.parse(t.data)},async getTags(){const e=await nt.get("/api/tags");return Y2.parse(e.data)},async deleteAlert(e){await nt.delete(`/api/alerts/${e}`)},async getArtifact(e){const t=await nt.get(`/api/artifacts/${e}`);return Ll.parse(t.data)},async getArtifacts(e){e.page=e.page||1;const t=await nt.get("/api/artifacts",{params:e});return ok.parse(t.data)},async enrichArtifact(e){const t=await nt.post(`/api/artifacts/${e}/enrich`);return eh.parse(t.data)},async deleteArtifact(e){await nt.delete(`/api/artifacts/${e}`)},async getRules(e){e.page=e.page||1;const t=await nt.get("/api/rules",{params:e});return ik.parse(t.data)},async getRule(e){const t=await nt.get(`/api/rules/${e}`);return Zi.parse(t.data)},async searchRule(e){const t=await nt.post(`/api/rules/${e}/search`);return eh.parse(t.data)},async createRule(e){const t=await nt.post("/api/rules/",e);return Zi.parse(t.data)},async updateRule(e){const t=await nt.put("/api/rules/",e);return Zi.parse(t.data)},async deleteRule(e){await nt.delete(`/api/rules/${e}`)},async deleteTag(e){await nt.delete(`/api/tags/${e}`)},async getIpInfo(e){return(await nt.get(`/api/ip_addresses/${e}`)).data}};function ts(){return gt(async(e,t)=>await mt.getAlerts(t))}function sk(){return gt(async(e,t)=>await mt.deleteAlert(t))}function ak(){return gt(async(e,t)=>await mt.deleteTag(t))}function lk(){return gt(async(e,t)=>await mt.getArtifact(t))}function sg(){return gt(async(e,t)=>await mt.deleteArtifact(t))}function ck(){return gt(async(e,t)=>await mt.enrichArtifact(t))}function uk(){return gt(async()=>await mt.getConfigs())}function hk(){return gt(async(e,t)=>await mt.getIpInfo(t))}function ag(){return gt(async(e,t)=>await mt.getRules(t))}function lg(){return gt(async(e,t)=>await mt.getRule(t))}function fk(){return gt(async(e,t)=>await mt.deleteRule(t))}function dk(){return gt(async(e,t)=>await mt.searchRule(t))}function pk(){return gt(async(e,t)=>await mt.createRule(t))}function gk(){return gt(async(e,t)=>await mt.updateRule(t))}function Rl(){return gt(async(e,t)=>await mt.getArtifacts(t))}function mk(){return gt(async(e,t)=>await mt.getAlert(t))}const vk={class:"buttons is-pulled-right"},yk=["href"],bk={class:"icon is-small"},wk={class:"icon is-small"},cg=ve({__name:"ActionButtons",props:{alert:{type:Object,required:!0}},emits:["delete","set-error"],setup(e,{emit:t}){const n=e,r=t,i=ye(()=>`/api/alerts/${n.alert.id}`),h=sk(),f=async()=>{if(window.confirm(`Are you sure you want to delete ${n.alert.id}?`))try{await h.perform(n.alert.id),r("delete")}catch(s){He.isAxiosError(s)&&r("set-error",s)}};return(g,s)=>{const p=De("font-awesome-icon");return K(),re("span",vk,[P("a",{class:"button is-link is-light is-small",href:i.value,target:"_blank"},[s[0]||(s[0]=P("span",null,"JSON",-1)),P("span",bk,[ie(p,{icon:"barcode"})])],8,yk),P("button",{class:"button is-light is-small",onClick:f},[s[1]||(s[1]=P("span",null,"Delete",-1)),P("span",wk,[ie(p,{icon:"times"})])])])}}});var ei=Sk;function Sk(e,t,n){return t==null||t>=e.length?e:(n==null&&(n="..."),e.slice(0,Math.max(0,t-n.length))+n)}const $k={key:0,class:"control"},_k=ve({__name:"ArtifactTag",props:{artifact:{type:Object,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=e,r=t,i=Ne(!1),h=Ne(!1),f=sg(),g=async()=>{window.confirm(`Are you sure you want to delete ${n.artifact.data}?`)&&(await f.perform(n.artifact.id),i.value=!0,r("delete"))},s=()=>{h.value=!0},p=()=>{h.value=!1};return(o,a)=>{const c=De("router-link");return i.value?fe("",!0):(K(),re("div",$k,[P("div",{class:"tags has-addons are-medium",onMouseover:s,onMouseleave:p},[ie(c,{class:"tag is-link is-light",to:{name:"Artifact",params:{id:e.artifact.id}}},{default:Ge(()=>[Ze(pe(oe(ei)(e.artifact.data,32)),1)]),_:1},8,["to"]),h.value?(K(),re("span",{key:0,class:"tag is-delete",onClick:g})):fe("",!0)],32)]))}}}),Ck={class:"field is-grouped is-grouped-multiline"},ug=ve({__name:"ArtifactTags",props:{artifacts:{type:Array,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=e,r=t,i=Ne(0),h=()=>{i.value+=1};return Fe(i,()=>{i.value>=n.artifacts.length&&r("delete")}),(f,g)=>(K(),re("div",Ck,[(K(!0),re(Me,null,Tt(e.artifacts,s=>(K(),me(_k,{key:s.id,artifact:s,onDelete:h},null,8,["artifact"]))),128))]))}});var xk={207:(e,t,n)=>{e.exports=n(452)},452:e=>{var t=function(n){var r,i=Object.prototype,h=i.hasOwnProperty,f=typeof Symbol=="function"?Symbol:{},g=f.iterator||"@@iterator",s=f.asyncIterator||"@@asyncIterator",p=f.toStringTag||"@@toStringTag";function o(T,I,N){return Object.defineProperty(T,I,{value:N,enumerable:!0,configurable:!0,writable:!0}),T[I]}try{o({},"")}catch{o=function(I,N,D){return I[N]=D}}function a(T,I,N,D){var F=I&&I.prototype instanceof y?I:y,H=Object.create(F.prototype),W=new _(D||[]);return H._invoke=function(U,V,G){var j=u;return function(Z,X){if(j===d)throw new Error("Generator is already running");if(j===m){if(Z==="throw")throw X;return A()}for(G.method=Z,G.arg=X;;){var Q=G.delegate;if(Q){var le=O(Q,G);if(le){if(le===v)continue;return le}}if(G.method==="next")G.sent=G._sent=G.arg;else if(G.method==="throw"){if(j===u)throw j=m,G.arg;G.dispatchException(G.arg)}else G.method==="return"&&G.abrupt("return",G.arg);j=d;var z=c(U,V,G);if(z.type==="normal"){if(j=G.done?m:l,z.arg===v)continue;return{value:z.arg,done:G.done}}z.type==="throw"&&(j=m,G.method="throw",G.arg=z.arg)}}}(T,N,W),H}function c(T,I,N){try{return{type:"normal",arg:T.call(I,N)}}catch(D){return{type:"throw",arg:D}}}n.wrap=a;var u="suspendedStart",l="suspendedYield",d="executing",m="completed",v={};function y(){}function C(){}function $(){}var S={};o(S,g,function(){return this});var b=Object.getPrototypeOf,k=b&&b(b(w([])));k&&k!==i&&h.call(k,g)&&(S=k);var R=$.prototype=y.prototype=Object.create(S);function E(T){["next","throw","return"].forEach(function(I){o(T,I,function(N){return this._invoke(I,N)})})}function L(T,I){function N(F,H,W,U){var V=c(T[F],T,H);if(V.type!=="throw"){var G=V.arg,j=G.value;return j&&typeof j=="object"&&h.call(j,"__await")?I.resolve(j.__await).then(function(Z){N("next",Z,W,U)},function(Z){N("throw",Z,W,U)}):I.resolve(j).then(function(Z){G.value=Z,W(G)},function(Z){return N("throw",Z,W,U)})}U(V.arg)}var D;this._invoke=function(F,H){function W(){return new I(function(U,V){N(F,H,U,V)})}return D=D?D.then(W,W):W()}}function O(T,I){var N=T.iterator[I.method];if(N===r){if(I.delegate=null,I.method==="throw"){if(T.iterator.return&&(I.method="return",I.arg=r,O(T,I),I.method==="throw"))return v;I.method="throw",I.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var D=c(N,T.iterator,I.arg);if(D.type==="throw")return I.method="throw",I.arg=D.arg,I.delegate=null,v;var F=D.arg;return F?F.done?(I[T.resultName]=F.value,I.next=T.nextLoc,I.method!=="return"&&(I.method="next",I.arg=r),I.delegate=null,v):F:(I.method="throw",I.arg=new TypeError("iterator result is not an object"),I.delegate=null,v)}function M(T){var I={tryLoc:T[0]};1 in T&&(I.catchLoc=T[1]),2 in T&&(I.finallyLoc=T[2],I.afterLoc=T[3]),this.tryEntries.push(I)}function x(T){var I=T.completion||{};I.type="normal",delete I.arg,T.completion=I}function _(T){this.tryEntries=[{tryLoc:"root"}],T.forEach(M,this),this.reset(!0)}function w(T){if(T){var I=T[g];if(I)return I.call(T);if(typeof T.next=="function")return T;if(!isNaN(T.length)){var N=-1,D=function F(){for(;++N<T.length;)if(h.call(T,N))return F.value=T[N],F.done=!1,F;return F.value=r,F.done=!0,F};return D.next=D}}return{next:A}}function A(){return{value:r,done:!0}}return C.prototype=$,o(R,"constructor",$),o($,"constructor",C),C.displayName=o($,p,"GeneratorFunction"),n.isGeneratorFunction=function(T){var I=typeof T=="function"&&T.constructor;return!!I&&(I===C||(I.displayName||I.name)==="GeneratorFunction")},n.mark=function(T){return Object.setPrototypeOf?Object.setPrototypeOf(T,$):(T.__proto__=$,o(T,p,"GeneratorFunction")),T.prototype=Object.create(R),T},n.awrap=function(T){return{__await:T}},E(L.prototype),o(L.prototype,s,function(){return this}),n.AsyncIterator=L,n.async=function(T,I,N,D,F){F===void 0&&(F=Promise);var H=new L(a(T,I,N,D),F);return n.isGeneratorFunction(I)?H:H.next().then(function(W){return W.done?W.value:H.next()})},E(R),o(R,p,"Generator"),o(R,g,function(){return this}),o(R,"toString",function(){return"[object Generator]"}),n.keys=function(T){var I=[];for(var N in T)I.push(N);return I.reverse(),function D(){for(;I.length;){var F=I.pop();if(F in T)return D.value=F,D.done=!1,D}return D.done=!0,D}},n.values=w,_.prototype={constructor:_,reset:function(T){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(x),!T)for(var I in this)I.charAt(0)==="t"&&h.call(this,I)&&!isNaN(+I.slice(1))&&(this[I]=r)},stop:function(){this.done=!0;var T=this.tryEntries[0].completion;if(T.type==="throw")throw T.arg;return this.rval},dispatchException:function(T){if(this.done)throw T;var I=this;function N(V,G){return H.type="throw",H.arg=T,I.next=V,G&&(I.method="next",I.arg=r),!!G}for(var D=this.tryEntries.length-1;D>=0;--D){var F=this.tryEntries[D],H=F.completion;if(F.tryLoc==="root")return N("end");if(F.tryLoc<=this.prev){var W=h.call(F,"catchLoc"),U=h.call(F,"finallyLoc");if(W&&U){if(this.prev<F.catchLoc)return N(F.catchLoc,!0);if(this.prev<F.finallyLoc)return N(F.finallyLoc)}else if(W){if(this.prev<F.catchLoc)return N(F.catchLoc,!0)}else{if(!U)throw new Error("try statement without catch or finally");if(this.prev<F.finallyLoc)return N(F.finallyLoc)}}}},abrupt:function(T,I){for(var N=this.tryEntries.length-1;N>=0;--N){var D=this.tryEntries[N];if(D.tryLoc<=this.prev&&h.call(D,"finallyLoc")&&this.prev<D.finallyLoc){var F=D;break}}F&&(T==="break"||T==="continue")&&F.tryLoc<=I&&I<=F.finallyLoc&&(F=null);var H=F?F.completion:{};return H.type=T,H.arg=I,F?(this.method="next",this.next=F.finallyLoc,v):this.complete(H)},complete:function(T,I){if(T.type==="throw")throw T.arg;return T.type==="break"||T.type==="continue"?this.next=T.arg:T.type==="return"?(this.rval=this.arg=T.arg,this.method="return",this.next="end"):T.type==="normal"&&I&&(this.next=I),v},finish:function(T){for(var I=this.tryEntries.length-1;I>=0;--I){var N=this.tryEntries[I];if(N.finallyLoc===T)return this.complete(N.completion,N.afterLoc),x(N),v}},catch:function(T){for(var I=this.tryEntries.length-1;I>=0;--I){var N=this.tryEntries[I];if(N.tryLoc===T){var D=N.completion;if(D.type==="throw"){var F=D.arg;x(N)}return F}}throw new Error("illegal catch attempt")},delegateYield:function(T,I,N){return this.delegate={iterator:w(T),resultName:I,nextLoc:N},this.method==="next"&&(this.arg=r),v}},n}(e.exports);try{regeneratorRuntime=t}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}},th={};function Ft(e){var t=th[e];if(t!==void 0)return t.exports;var n=th[e]={exports:{}};return xk[e](n,n.exports,Ft),n.exports}Ft.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return Ft.d(t,{a:t}),t},Ft.d=(e,t)=>{for(var n in t)Ft.o(t,n)&&!Ft.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},Ft.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var hg={};function Ma(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fg(e,t){if(e){if(typeof e=="string")return Ma(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ma(e,t):void 0}}function yo(e){return function(t){if(Array.isArray(t))return Ma(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||fg(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
619
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function ti(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Ft.d(hg,{A:()=>Lk});const ge=(nh={Fragment:()=>Me,computed:()=>ye,createTextVNode:()=>Ze,createVNode:()=>ie,defineComponent:()=>ve,reactive:()=>yr,ref:()=>Ne,watch:()=>Fe,watchEffect:()=>cl},Ns={},Ft.d(Ns,nh),Ns),Ak=(0,ge.defineComponent)({props:{data:{required:!0,type:String},onClick:Function},render:function(){var e=this.data,t=this.onClick;return(0,ge.createVNode)("span",{class:"vjs-tree-brackets",onClick:t},[e])}}),kk=(0,ge.defineComponent)({emits:["change","update:modelValue"],props:{checked:{type:Boolean,default:!1},isMultiple:Boolean,onChange:Function},setup:function(e,t){var n=t.emit;return{uiType:(0,ge.computed)(function(){return e.isMultiple?"checkbox":"radio"}),model:(0,ge.computed)({get:function(){return e.checked},set:function(r){return n("update:modelValue",r)}})}},render:function(){var e=this.uiType,t=this.model,n=this.$emit;return(0,ge.createVNode)("label",{class:["vjs-check-controller",t?"is-checked":""],onClick:function(r){return r.stopPropagation()}},[(0,ge.createVNode)("span",{class:"vjs-check-controller-inner is-".concat(e)},null),(0,ge.createVNode)("input",{checked:t,class:"vjs-check-controller-original is-".concat(e),type:e,onChange:function(){return n("change",t)}},null)])}}),Ek=(0,ge.defineComponent)({props:{nodeType:{required:!0,type:String},onClick:Function},render:function(){var e=this.nodeType,t=this.onClick,n=e==="objectStart"||e==="arrayStart";return n||e==="objectCollapsed"||e==="arrayCollapsed"?(0,ge.createVNode)("span",{class:"vjs-carets vjs-carets-".concat(n?"open":"close"),onClick:t},[(0,ge.createVNode)("svg",{viewBox:"0 0 1024 1024",focusable:"false","data-icon":"caret-down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[(0,ge.createVNode)("path",{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"},null)])]):null}});var nh,Ns;function Ta(e){return Ta=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ta(e)}function dg(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Rn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"root",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=(arguments.length>3?arguments[3]:void 0)||{},i=r.key,h=r.index,f=r.type,g=f===void 0?"content":f,s=r.showComma,p=s!==void 0&&s,o=r.length,a=o===void 0?1:o,c=dg(e);if(c==="array"){var u=rh(e.map(function(m,v,y){return Rn(m,"".concat(t,"[").concat(v,"]"),n+1,{index:v,showComma:v!==y.length-1,length:a,type:g})}));return[Rn("[",t,n,{showComma:!1,key:i,length:e.length,type:"arrayStart"})[0]].concat(u,Rn("]",t,n,{showComma:p,length:e.length,type:"arrayEnd"})[0])}if(c==="object"){var l=Object.keys(e),d=rh(l.map(function(m,v,y){return Rn(e[m],/^[a-zA-Z_]\w*$/.test(m)?"".concat(t,".").concat(m):"".concat(t,'["').concat(m,'"]'),n+1,{key:m,showComma:v!==y.length-1,length:a,type:g})}));return[Rn("{",t,n,{showComma:!1,key:i,index:h,length:l.length,type:"objectStart"})[0]].concat(d,Rn("}",t,n,{showComma:p,length:l.length,type:"objectEnd"})[0])}return[{content:e,level:n,key:i,index:h,path:t,showComma:p,length:a,type:g}]}function rh(e){if(typeof Array.prototype.flat=="function")return e.flat();for(var t=yo(e),n=[];t.length;){var r=t.shift();Array.isArray(r)?t.unshift.apply(t,yo(r)):n.push(r)}return n}function La(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new WeakMap;if(e==null)return e;if(e instanceof Date)return new Date(e);if(e instanceof RegExp)return new RegExp(e);if(Ta(e)!=="object")return e;if(t.get(e))return t.get(e);if(Array.isArray(e)){var n=e.map(function(h){return La(h,t)});return t.set(e,n),n}var r={};for(var i in e)r[i]=La(e[i],t);return t.set(e,r),r}function ih(e,t,n,r,i,h,f){try{var g=e[h](f),s=g.value}catch(p){return void n(p)}g.done?t(s):Promise.resolve(s).then(r,i)}var Mk=Ft(207),oh=Ft.n(Mk);function sh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ah(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sh(Object(n),!0).forEach(function(r){ti(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var pg={data:{type:[String,Number,Boolean,Array,Object],default:null},rootPath:{type:String,default:"root"},indent:{type:Number,default:2},showLength:{type:Boolean,default:!1},showDoubleQuotes:{type:Boolean,default:!0},renderNodeKey:Function,renderNodeValue:Function,renderNodeActions:{type:[Boolean,Function],default:void 0},selectableType:String,showSelectController:{type:Boolean,default:!1},showLine:{type:Boolean,default:!0},showLineNumber:{type:Boolean,default:!1},selectOnClickNode:{type:Boolean,default:!0},nodeSelectable:{type:Function,default:function(){return!0}},highlightSelectedNode:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!1},theme:{type:String,default:"light"},showKeyValueSpace:{type:Boolean,default:!0},editable:{type:Boolean,default:!1},editableTrigger:{type:String,default:"click"},onNodeClick:{type:Function},onNodeMouseover:{type:Function},onBracketsClick:{type:Function},onIconClick:{type:Function},onValueChange:{type:Function}};const Tk=(0,ge.defineComponent)({name:"TreeNode",props:ah(ah({},pg),{},{node:{type:Object,required:!0},collapsed:Boolean,checked:Boolean,style:Object,onSelectedChange:{type:Function}}),emits:["nodeClick","nodeMouseover","bracketsClick","iconClick","selectedChange","valueChange"],setup:function(e,t){var n=t.emit,r=(0,ge.computed)(function(){return dg(e.node.content)}),i=(0,ge.computed)(function(){return"vjs-value vjs-value-".concat(r.value)}),h=(0,ge.computed)(function(){return e.showDoubleQuotes?'"'.concat(e.node.key,'"'):e.node.key}),f=(0,ge.computed)(function(){return e.selectableType==="multiple"}),g=(0,ge.computed)(function(){return e.selectableType==="single"}),s=(0,ge.computed)(function(){return e.nodeSelectable(e.node)&&(f.value||g.value)}),p=(0,ge.reactive)({editing:!1}),o=function(b){var k,R,E=(R=(k=b.target)===null||k===void 0?void 0:k.value)==="null"?null:R==="undefined"?void 0:R==="true"||R!=="false"&&(R[0]+R[R.length-1]==='""'||R[0]+R[R.length-1]==="''"?R.slice(1,-1):typeof Number(R)=="number"&&!isNaN(Number(R))||R==="NaN"?Number(R):R);n("valueChange",E,e.node.path)},a=(0,ge.computed)(function(){var b,k=(b=e.node)===null||b===void 0?void 0:b.content;return k===null?k="null":k===void 0&&(k="undefined"),r.value==="string"?'"'.concat(k,'"'):k+""}),c=function(){var b=e.renderNodeValue;return b?b({node:e.node,defaultValue:a.value}):a.value},u=function(){n("bracketsClick",!e.collapsed,e.node)},l=function(){n("iconClick",!e.collapsed,e.node)},d=function(){n("selectedChange",e.node)},m=function(){n("nodeClick",e.node),s.value&&e.selectOnClickNode&&n("selectedChange",e.node)},v=function(){n("nodeMouseover",e.node)},y=function(b){if(e.editable&&!p.editing){p.editing=!0;var k=function R(E){var L;E.target!==b.target&&((L=E.target)===null||L===void 0?void 0:L.parentElement)!==b.target&&(p.editing=!1,document.removeEventListener("click",R))};document.removeEventListener("click",k),document.addEventListener("click",k)}},C=function(){var b=(0,ge.ref)(!1),k=function(){var R,E=(R=oh().mark(function L(O){return oh().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.prev=0,M.next=3,navigator.clipboard.writeText(O);case 3:b.value=!0,setTimeout(function(){b.value=!1},300),M.next=10;break;case 7:M.prev=7,M.t0=M.catch(0),console.error("[vue-json-pretty] Copy failed: ",M.t0);case 10:case"end":return M.stop()}},L,null,[[0,7]])}),function(){var L=this,O=arguments;return new Promise(function(M,x){var _=R.apply(L,O);function w(T){ih(_,M,x,w,A,"next",T)}function A(T){ih(_,M,x,w,A,"throw",T)}w(void 0)})});return function(L){return E.apply(this,arguments)}}();return{copy:k}}().copy,$=function(){var b=e.node,k=b.key,R=b.path,E=e.rootPath,L=new Function("data","return data".concat(R.slice(E.length)))(e.data),O=JSON.stringify(k?ti({},k,L):L,null,2);C(O)},S=function(){var b=e.renderNodeActions;if(!b)return null;var k={copy:$};return typeof b=="function"?b({node:e.node,defaultActions:k}):(0,ge.createVNode)("span",{onClick:$,class:"vjs-tree-node-actions-item"},[(0,ge.createTextVNode)("copy")])};return function(){var b,k=e.node;return(0,ge.createVNode)("div",{class:{"vjs-tree-node":!0,"has-selector":e.showSelectController,"has-carets":e.showIcon,"is-highlight":e.highlightSelectedNode&&e.checked,dark:e.theme==="dark"},onClick:m,onMouseover:v,style:e.style},[e.showLineNumber&&(0,ge.createVNode)("span",{class:"vjs-node-index"},[k.id+1]),e.showSelectController&&s.value&&k.type!=="objectEnd"&&k.type!=="arrayEnd"&&(0,ge.createVNode)(kk,{isMultiple:f.value,checked:e.checked,onChange:d},null),(0,ge.createVNode)("div",{class:"vjs-indent"},[Array.from(Array(k.level)).map(function(R,E){return(0,ge.createVNode)("div",{key:E,class:{"vjs-indent-unit":!0,"has-line":e.showLine}},[Array.from(Array(e.indent)).map(function(){return(0,ge.createVNode)(ge.Fragment,null,[(0,ge.createTextVNode)(" ")])})])}),e.showIcon&&(0,ge.createVNode)(Ek,{nodeType:k.type,onClick:l},null)]),k.key&&(0,ge.createVNode)("span",{class:"vjs-key"},[(b=e.renderNodeKey,b?b({node:e.node,defaultKey:h.value||""}):h.value),(0,ge.createVNode)("span",{class:"vjs-colon"},[":".concat(e.showKeyValueSpace?" ":"")])]),(0,ge.createVNode)("span",null,[k.type!=="content"&&k.content?(0,ge.createVNode)(Ak,{data:k.content.toString(),onClick:u},null):(0,ge.createVNode)("span",{class:i.value,onClick:!e.editable||e.editableTrigger&&e.editableTrigger!=="click"?void 0:y,onDblclick:e.editable&&e.editableTrigger==="dblclick"?y:void 0},[e.editable&&p.editing?(0,ge.createVNode)("input",{value:a.value,onChange:o,style:{padding:"3px 8px",border:"1px solid #eee",boxShadow:"none",boxSizing:"border-box",borderRadius:5,fontFamily:"inherit"}},null):c()]),k.showComma&&(0,ge.createVNode)("span",null,[","]),e.showLength&&e.collapsed&&(0,ge.createVNode)("span",{class:"vjs-comment"},[(0,ge.createTextVNode)(" // "),k.length,(0,ge.createTextVNode)(" items ")])]),e.renderNodeActions&&(0,ge.createVNode)("span",{class:"vjs-tree-node-actions"},[S()])])}}});function lh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function At(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lh(Object(n),!0).forEach(function(r){ti(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const Lk=(0,ge.defineComponent)({name:"Tree",props:At(At({},pg),{},{collapsedNodeLength:{type:Number,default:1/0},deep:{type:Number,default:1/0},pathCollapsible:{type:Function,default:function(){return!1}},virtual:{type:Boolean,default:!1},height:{type:Number,default:400},itemHeight:{type:Number,default:20},selectedValue:{type:[String,Array],default:function(){return""}},collapsedOnClickBrackets:{type:Boolean,default:!0},style:Object,onSelectedChange:{type:Function},theme:{type:String,default:"light"}}),slots:["renderNodeKey","renderNodeValue","renderNodeActions"],emits:["nodeClick","nodeMouseover","bracketsClick","iconClick","selectedChange","update:selectedValue","update:data"],setup:function(e,t){var n=t.emit,r=t.slots,i=(0,ge.ref)(),h=(0,ge.computed)(function(){return Rn(e.data,e.rootPath)}),f=function($,S){return h.value.reduce(function(b,k){var R,E=k.level>=$||k.length>=S,L=(R=e.pathCollapsible)===null||R===void 0?void 0:R.call(e,k);return k.type!=="objectStart"&&k.type!=="arrayStart"||!E&&!L?b:At(At({},b),{},ti({},k.path,1))},{})},g=(0,ge.reactive)({translateY:0,visibleData:null,hiddenPaths:f(e.deep,e.collapsedNodeLength)}),s=(0,ge.computed)(function(){for(var $=null,S=[],b=h.value.length,k=0;k<b;k++){var R=At(At({},h.value[k]),{},{id:k}),E=g.hiddenPaths[R.path];if($&&$.path===R.path){var L=$.type==="objectStart",O=At(At(At({},R),$),{},{showComma:R.showComma,content:L?"{...}":"[...]",type:L?"objectCollapsed":"arrayCollapsed"});$=null,S.push(O)}else{if(E&&!$){$=R;continue}if($)continue;S.push(R)}}return S}),p=(0,ge.computed)(function(){var $=e.selectedValue;return $&&e.selectableType==="multiple"&&Array.isArray($)?$:[$]}),o=(0,ge.computed)(function(){return!e.selectableType||e.selectOnClickNode||e.showSelectController?"":"When selectableType is not null, selectOnClickNode and showSelectController cannot be false at the same time, because this will cause the selection to fail."}),a=function(){var $=s.value;if(e.virtual){var S,b=e.height/e.itemHeight,k=((S=i.value)===null||S===void 0?void 0:S.scrollTop)||0,R=Math.floor(k/e.itemHeight),E=R<0?0:R+b>$.length?$.length-b:R;E<0&&(E=0);var L=E+b;g.translateY=E*e.itemHeight,g.visibleData=$.filter(function(O,M){return M>=E&&M<L})}else g.visibleData=$},c=function(){a()},u=function($){var S,b,k=$.path,R=e.selectableType;if(R==="multiple"){var E=p.value.findIndex(function(x){return x===k}),L=yo(p.value);E!==-1?L.splice(E,1):L.push(k),n("update:selectedValue",L),n("selectedChange",L,yo(p.value))}else if(R==="single"&&p.value[0]!==k){var O=(S=p.value,b=1,function(x){if(Array.isArray(x))return x}(S)||function(x,_){var w=x==null?null:typeof Symbol<"u"&&x[Symbol.iterator]||x["@@iterator"];if(w!=null){var A,T,I=[],N=!0,D=!1;try{for(w=w.call(x);!(N=(A=w.next()).done)&&(I.push(A.value),!_||I.length!==_);N=!0);}catch(F){D=!0,T=F}finally{try{N||w.return==null||w.return()}finally{if(D)throw T}}return I}}(S,b)||fg(S,b)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
620
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}())[0],M=k;n("update:selectedValue",M),n("selectedChange",M,O)}},l=function($){n("nodeClick",$)},d=function($){n("nodeMouseover",$)},m=function($,S){if($)g.hiddenPaths=At(At({},g.hiddenPaths),{},ti({},S,1));else{var b=At({},g.hiddenPaths);delete b[S],g.hiddenPaths=b}},v=function($,S){e.collapsedOnClickBrackets&&m($,S.path),n("bracketsClick",$,S)},y=function($,S){m($,S.path),n("iconClick",$,S)},C=function($,S){var b=La(e.data),k=e.rootPath;new Function("data","val","data".concat(S.slice(k.length),"=val"))(b,$),n("update:data",b)};return(0,ge.watchEffect)(function(){o.value&&function($){throw new Error("[VueJSONPretty] ".concat($))}(o.value)}),(0,ge.watchEffect)(function(){s.value&&a()}),(0,ge.watch)(function(){return e.deep},function($){$&&(g.hiddenPaths=f($,e.collapsedNodeLength))}),(0,ge.watch)(function(){return e.collapsedNodeLength},function($){$&&(g.hiddenPaths=f(e.deep,$))}),function(){var $,S,b,k,R=($=e.renderNodeKey)!==null&&$!==void 0?$:r.renderNodeKey,E=(S=e.renderNodeValue)!==null&&S!==void 0?S:r.renderNodeValue,L=(b=(k=e.renderNodeActions)!==null&&k!==void 0?k:r.renderNodeActions)!==null&&b!==void 0&&b,O=g.visibleData&&g.visibleData.map(function(M){return(0,ge.createVNode)(Tk,{key:M.id,data:e.data,rootPath:e.rootPath,indent:e.indent,node:M,collapsed:!!g.hiddenPaths[M.path],theme:e.theme,showDoubleQuotes:e.showDoubleQuotes,showLength:e.showLength,checked:p.value.includes(M.path),selectableType:e.selectableType,showLine:e.showLine,showLineNumber:e.showLineNumber,showSelectController:e.showSelectController,selectOnClickNode:e.selectOnClickNode,nodeSelectable:e.nodeSelectable,highlightSelectedNode:e.highlightSelectedNode,editable:e.editable,editableTrigger:e.editableTrigger,showIcon:e.showIcon,showKeyValueSpace:e.showKeyValueSpace,renderNodeKey:R,renderNodeValue:E,renderNodeActions:L,onNodeClick:l,onNodeMouseover:d,onBracketsClick:v,onIconClick:y,onSelectedChange:u,onValueChange:C,style:e.itemHeight&&e.itemHeight!==20?{lineHeight:"".concat(e.itemHeight,"px")}:{}},null)});return(0,ge.createVNode)("div",{ref:i,class:{"vjs-tree":!0,"is-virtual":e.virtual,dark:e.theme==="dark"},onScroll:e.virtual?c:void 0,style:e.showLineNumber?At({paddingLeft:"".concat(12*Number(h.value.length.toString().length),"px")},e.style):e.style},[e.virtual?(0,ge.createVNode)("div",{class:"vjs-tree-list",style:{height:"".concat(e.height,"px")}},[(0,ge.createVNode)("div",{class:"vjs-tree-list-holder",style:{height:"".concat(s.value.length*e.itemHeight,"px")}},[(0,ge.createVNode)("div",{class:"vjs-tree-list-holder-inner",style:{transform:"translateY(".concat(g.translateY,"px)")}},[O])])]):O])}}});var gg=hg.A;const Rk={class:"notification is-danger is-light"},Ik={key:1},Ok={key:2},Nk={key:0,class:"message"},Dk={class:"message-body"},at=ve({__name:"ErrorMessage",props:{error:{type:k_,required:!0},disposable:{type:Boolean,default:!1}},emits:["dispose"],setup(e,{emit:t}){const n=e,r=t,i=ye(()=>{if(n.error.response)return n.error.response?.data}),h=()=>{r("dispose")};return(f,g)=>(K(),re(Me,null,[P("div",Rk,[e.disposable?(K(),re("button",{key:0,class:"delete",onClick:h})):fe("",!0),i.value?(K(),re("p",Ik,pe(i.value.message),1)):(K(),re("p",Ok,pe(e.error),1))]),i.value?.detail?(K(),re("article",Nk,[P("div",Dk,[ie(oe(gg),{data:i.value.detail},null,8,["data"])])])):fe("",!0)],64))}}),Fk={key:0,class:"control"},Pk=ve({__name:"TagItem",props:{tag:{type:Object,required:!0},deletable:{type:Boolean,default:!1},navigateTo:{type:String,required:!0}},setup(e){const t=e,n=Ne(!1),r=Ne(!1),i=ak(),h=async()=>{window.confirm(`Are you sure you want to delete ${t.tag.name} (ID: ${t.tag.id})?`)&&(await i.perform(t.tag.id),n.value=!0)},f=()=>{r.value=!0},g=()=>{r.value=!1},s=p=>`tag:"${p}"`;return(p,o)=>{const a=De("router-link");return n.value?fe("",!0):(K(),re("div",Fk,[P("div",{class:"tags has-addons are-medium",onMouseover:f,onMouseleave:g},[ie(a,{class:"tag is-info is-light",to:{name:e.navigateTo,query:{q:s(e.tag.name)}}},{default:Ge(()=>[Ze(pe(e.tag.name),1)]),_:1},8,["to"]),r.value&&e.deletable?(K(),re("a",{key:0,class:"tag is-delete",onClick:h})):fe("",!0)],32)]))}}}),zk={class:"field is-grouped is-grouped-multiline"},yi=ve({__name:"TagsItem",props:{tags:{type:Array,required:!0},deletable:{type:Boolean,default:!1},navigateTo:{type:String,required:!0}},setup(e){return(t,n)=>(K(),re("div",zk,[(K(!0),re(Me,null,Tt(e.tags,r=>(K(),me(Pk,{tag:r,key:r.name,deletable:e.deletable,"navigate-to":e.navigateTo},null,8,["tag","deletable","navigate-to"]))),128))]))}}),Wk={key:0,class:"box"},jk={class:"table is-fullwidth is-completely-borderless"},Bk={key:0},Hk={class:"help"},Uk=ve({__name:"AlertItem",props:{alert:{type:Object,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=t,r=Ne(!1),i=Ne(),h=p=>{i.value=p},f=()=>{i.value=void 0},g=()=>{n("delete")},s=()=>{r.value=!0};return(p,o)=>{const a=De("router-link");return r.value?fe("",!0):(K(),re("div",Wk,[i.value?(K(),me(at,{key:0,class:"block",error:i.value,disposable:!0,onDispose:f},null,8,["error"])):fe("",!0),P("p",null,[ie(cg,{alert:e.alert,onDelete:g,onSetError:h},null,8,["alert"])]),ie(a,{class:"is-size-4",to:{name:"Alert",params:{id:e.alert.id}}},{default:Ge(()=>[Ze(pe(e.alert.id),1)]),_:1},8,["to"]),P("table",jk,[P("tr",null,[o[0]||(o[0]=P("th",null,"Rule",-1)),P("td",null,[ie(a,{to:{name:"Rule",params:{id:e.alert.ruleId}}},{default:Ge(()=>[Ze(pe(e.alert.ruleId),1)]),_:1},8,["to"])])]),P("tr",null,[o[1]||(o[1]=P("th",null,"Artifacts",-1)),P("td",null,[ie(ug,{artifacts:e.alert.artifacts,onDelete:s},null,8,["artifacts"])])]),e.alert.tags.length>0?(K(),re("tr",Bk,[o[2]||(o[2]=P("th",null,"Tags",-1)),P("td",null,[ie(yi,{tags:e.alert.tags,"navigate-to":"Alerts"},null,8,["tags"])])])):fe("",!0)]),P("p",Hk,"Created at: "+pe(e.alert.createdAt),1)]))}}}),Vk={key:0,class:"message is-warning"},Gk={key:1,class:"pagination",role:"navigation","aria-label":"pagination"},Zk={key:0,class:"pagination-list"},Yk={key:1,class:"pagination-list"},Kk={key:0},Xk={key:1},Qk={key:2},Jk={key:3},qk={key:4},eE={key:5},Il=ve({__name:"PaginationItem",props:{currentPage:{type:Number,required:!0},pageSize:{type:Number,required:!0},total:{type:Number,required:!0}},emits:["update-page"],setup(e,{emit:t}){const n=e,r=t,i=c=>c===n.currentPage+1||c===n.currentPage-1,h=ye(()=>Math.ceil(n.total/n.pageSize)),f=ye(()=>h.value===1),g=ye(()=>n.currentPage>1),s=ye(()=>n.currentPage-1===1),p=ye(()=>n.currentPage<h.value),o=ye(()=>n.currentPage+1===h.value),a=c=>{r("update-page",c)};return(c,u)=>e.total===0?(K(),re("article",Vk,[...u[6]||(u[6]=[P("div",{class:"message-body"},"There is no result to show.",-1)])])):(K(),re("nav",Gk,[f.value?(K(),re("ul",Zk,[P("li",null,[P("a",{class:"pagination-link mt-2 is-current",onClick:u[0]||(u[0]=l=>a(1))},"1")])])):(K(),re("ul",Yk,[g.value&&!s.value?(K(),re("li",Kk,[P("a",{class:"pagination-link mt-2",onClick:u[1]||(u[1]=l=>a(1))}," 1")])):fe("",!0),g.value&&!s.value&&!i(2)?(K(),re("li",Xk,[...u[7]||(u[7]=[P("span",{class:"pagination-ellipsis"},"…",-1)])])):fe("",!0),g.value?(K(),re("li",Qk,[P("a",{class:"pagination-link mt-2",onClick:u[2]||(u[2]=l=>a(e.currentPage-1))},pe(e.currentPage-1),1)])):fe("",!0),P("li",null,[P("a",{class:"pagination-link mt-2 is-current",onClick:u[3]||(u[3]=l=>a(e.currentPage))},pe(e.currentPage),1)]),p.value?(K(),re("li",Jk,[P("a",{class:"pagination-link mt-2",onClick:u[4]||(u[4]=l=>a(e.currentPage+1))},pe(e.currentPage+1),1)])):fe("",!0),p.value&&!o.value&&!i(h.value-1)?(K(),re("li",qk,[...u[8]||(u[8]=[P("span",{class:"pagination-ellipsis"},"…",-1)])])):fe("",!0),p.value&&!o.value?(K(),re("li",eE,[P("a",{class:"pagination-link mt-2",onClick:u[5]||(u[5]=l=>a(h.value))},pe(h.value),1)])):fe("",!0)]))]))}}),tE={key:0},nE={class:"help"},rE={key:1},mg=ve({__name:"AlertsItem",props:{page:{type:String,required:!0},alerts:{type:Object,required:!0}},emits:["refresh","update-page"],setup(e,{emit:t}){const n=e,r=t,i=g=>{r("update-page",g)},h=()=>{r("refresh")},f=ye(()=>n.alerts.results.length>0);return(g,s)=>f.value?(K(),re("div",tE,[(K(!0),re(Me,null,Tt(e.alerts.results,p=>(K(),me(Uk,{alert:p,key:p.id,onDelete:h},null,8,["alert"]))),128)),ie(Il,{total:e.alerts.total,currentPage:e.alerts.currentPage,pageSize:e.alerts.pageSize,onUpdatePage:i},null,8,["total","currentPage","pageSize"]),P("p",nE,"("+pe(e.alerts.total)+" results in total, "+pe(e.alerts.results.length)+" shown)",1)])):(K(),re("div",rE,[...s[0]||(s[0]=[P("div",{class:"notification is-warning is-light"},"There is no alert to show",-1)])]))}}),iE=ve({name:"LoadingItem"}),oE={class:"has-text-centered"},sE={class:"fa-3x"};function aE(e,t,n,r,i,h){const f=De("font-awesome-icon");return K(),re("div",oE,[P("div",sE,[ie(f,{icon:"spinner",spin:""})])])}const pn=hi(iE,[["render",aE]]),lE={class:"block"},cE={class:"field has-addons"},uE={class:"control is-expanded"},hE={class:"control"},fE={class:"icon is-small"},dE={class:"control"},pE={class:"icon is-small"},gE={key:0,class:"content"},mE={key:0,class:"block"},vE=ve({__name:"AlertsWrapper",setup(e){const t=dr("page","1"),n=dr("q",""),r=Ne(!1),i=ts(),h=async()=>{const o={q:n.value,page:parseInt(t.value)};return await i.perform(o)},f=o=>{t.value=o.toString()},g=async()=>{t.value="1",await h()},s=g,p=ui(r);return qe(async()=>{await h()}),Fe(t,async()=>{await h()}),Fe(n,async()=>{window.scrollTo({top:0,behavior:"smooth"})}),(o,a)=>{const c=De("font-awesome-icon"),u=De("router-link");return K(),re(Me,null,[P("div",lE,[P("div",cE,[P("p",uE,[ol(P("input",{class:"input",type:"text","onUpdate:modelValue":a[0]||(a[0]=l=>Je(n)?n.value=l:null)},null,512),[[dl,oe(n)]])]),P("p",hE,[P("a",{class:"button is-primary",onClick:g},[P("span",fE,[ie(c,{icon:"search"})]),a[2]||(a[2]=P("span",null,"Search",-1))])]),P("p",dE,[P("a",{class:"button is-info",onClick:a[1]||(a[1]=l=>oe(p)())},[P("span",pE,[ie(c,{icon:"question"})]),a[3]||(a[3]=P("span",null,"Help",-1))])])]),r.value?(K(),re("div",gE,[a[6]||(a[6]=hl('<h4 class="is-size-4">Help</h4><ul><li> Search query supports <code>AND</code>, <code>OR</code>, <code>:</code>, <code>=</code>, <code>!=</code>, <code>&lt;</code>, <code>&lt;=</code>, <code>&gt;</code>, <code>&gt;=</code>, <code>NOT</code> and <code>()</code>. </li><li> Searchable fields are <code>id</code>, <code>tag</code>, <code>created_at</code>, <code>rule.id</code>, <code>rule.title</code>, <code>rule.description</code>, <code>artifact.data</code>, <code>artifact.data_type</code>, <code>artifact.source</code> and <code>artifact.query</code>. </li></ul><h4 class="is-size-4">Examples</h4>',3)),P("ul",null,[P("li",null,[ie(u,{to:{name:"Alerts",query:{q:"rule.id:foo AND artifact.data:example.com"}}},{default:Ge(()=>[...a[4]||(a[4]=[Ze("rule.id:foo AND artifact.data:example.com",-1)])]),_:1})]),P("li",null,[ie(u,{to:{name:"Alerts",query:{q:"tag:foo AND created_at >= 2020-01-01"}}},{default:Ge(()=>[...a[5]||(a[5]=[Ze("tag:foo AND created_at >= 2020-01-01",-1)])]),_:1})])])])):fe("",!0)]),oe(i).performCount>0?(K(),re("div",mE,[oe(i).isRunning?(K(),me(pn,{key:0})):fe("",!0),oe(i).isError?(K(),me(at,{key:1,error:oe(i).last?.error},null,8,["error"])):fe("",!0),oe(i).last?.value?(K(),me(mg,{key:2,alerts:oe(i).last.value,page:oe(t),onUpdatePage:f,onRefresh:oe(s)},null,8,["alerts","page","onRefresh"])):fe("",!0)])):fe("",!0)],64)}}}),yE={class:"columns"},bE={class:"column is-one-third"},wE={class:"card"},SE={class:"card-content"},$E={class:"level is-mobile"},_E={class:"level-item"},CE={class:"title"},xE={class:"level-item"},AE={class:"icon"},kE={class:"column is-one-third"},EE={class:"card"},ME={class:"card-content"},TE={class:"level is-mobile"},LE={class:"level-item"},RE={class:"title"},IE={class:"level-item"},OE={class:"icon"},NE={class:"column is-one-third"},DE={class:"card"},FE={class:"card-content"},PE={class:"level is-mobile"},zE={class:"level-item"},WE={class:"title"},jE={class:"level-item"},BE={class:"icon"},HE=ve({__name:"OverviewCards",setup(e){const t=ts(),n=ag(),r=Rl();return qe(()=>{t.perform({q:"",page:1,limit:0}),n.perform({q:"",page:1,limit:0}),r.perform({q:"",page:1,limit:0})}),(i,h)=>{const f=De("font-awesome-icon");return K(),re("div",yE,[P("div",bE,[P("div",wE,[P("div",SE,[P("div",$E,[P("div",_E,[P("div",null,[h[0]||(h[0]=P("h3",{class:"subtitle is-spaced"},"Rules",-1)),P("h1",CE,pe(oe(n).last?.value?.total??"N/A"),1)])]),P("div",xE,[P("span",AE,[ie(f,{icon:"file",size:"2x"})])])])])])]),P("div",kE,[P("div",EE,[P("div",ME,[P("div",TE,[P("div",LE,[P("div",null,[h[1]||(h[1]=P("h3",{class:"subtitle is-spaced"},"Alerts",-1)),P("h1",RE,pe(oe(t).last?.value?.total??"N/A"),1)])]),P("div",IE,[P("span",OE,[ie(f,{icon:"bell",size:"2x"})])])])])])]),P("div",NE,[P("div",DE,[P("div",FE,[P("div",PE,[P("div",zE,[P("div",null,[h[2]||(h[2]=P("h3",{class:"subtitle is-spaced"},"Artifacts",-1)),P("h1",WE,pe(oe(r).last?.value?.total??"N/A"),1)])]),P("div",jE,[P("span",BE,[ie(f,{icon:"ticket",size:"2x"})])])])])])])])}}}),UE=ve({__name:"AlertsView",setup(e){return dn("Alerts - Mihari"),(t,n)=>(K(),re(Me,null,[ie(HE),n[0]||(n[0]=P("hr",null,null,-1)),ie(vE)],64))}}),vg=ve({__name:"AlertsWithPagination",props:{ruleId:{type:String,required:!0},excludeAlertId:{type:Number,required:!1}},setup(e){const t=e,n=Ne(1),r=ye(()=>t.excludeAlertId?`rule.id:"${t.ruleId}" AND NOT id:${t.excludeAlertId}`:`rule.id:"${t.ruleId}"`),i=ts(),h=async()=>{const g={q:r.value,page:n.value};return await i.perform(g)},f=g=>{n.value=g};return qe(async()=>{await h()}),Fe([t,n],async()=>{await h()}),(g,s)=>(K(),re(Me,null,[oe(i).isRunning?(K(),me(pn,{key:0})):fe("",!0),oe(i).isError?(K(),me(at,{key:1,error:oe(i).last?.error},null,8,["error"])):fe("",!0),oe(i).last?.value?(K(),me(mg,{key:2,page:n.value.toString(),alerts:oe(i).last.value,onUpdatePage:f},null,8,["page","alerts"])):fe("",!0)],64))}}),VE={class:"block"},GE={class:"is-size-2"},ZE={class:"is-clearfix"},YE={class:"table is-fullwidth is-completely-borderless"},KE={key:0},XE={class:"help"},QE={class:"block"},JE=ve({__name:"AlertDetail",props:{alert:{type:Object,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=t,r=Ne(),i=s=>{r.value=s},h=()=>{r.value=void 0},f=()=>{n("delete")},g=f;return(s,p)=>{const o=De("router-link");return K(),re(Me,null,[r.value?(K(),me(at,{key:0,class:"block",error:r.value,disposable:!0,onDispose:h},null,8,["error"])):fe("",!0),P("div",VE,[P("h2",GE,pe(e.alert.id),1),P("p",ZE,[ie(cg,{alert:e.alert,onDelete:f,onSetError:i},null,8,["alert"])]),P("table",YE,[P("tr",null,[p[0]||(p[0]=P("th",null,"Rule",-1)),P("td",null,[ie(o,{to:{name:"Rule",params:{id:e.alert.ruleId}}},{default:Ge(()=>[Ze(pe(e.alert.ruleId),1)]),_:1},8,["to"])])]),P("tr",null,[p[1]||(p[1]=P("th",null,"Artifacts",-1)),P("td",null,[ie(ug,{artifacts:e.alert.artifacts,onDelete:oe(g)},null,8,["artifacts","onDelete"])])]),e.alert.tags.length>0?(K(),re("tr",KE,[p[2]||(p[2]=P("th",null,"Tags",-1)),P("td",null,[ie(yi,{tags:e.alert.tags,"navigate-to":"Alerts"},null,8,["tags"])])])):fe("",!0)]),P("p",XE,"Created at: "+pe(e.alert.createdAt),1)]),p[4]||(p[4]=P("hr",null,null,-1)),P("div",QE,[p[3]||(p[3]=P("h2",{class:"is-size-2 block"},"Related Alerts",-1)),ie(vg,{"rule-id":e.alert.ruleId,"exclude-alert-id":e.alert.id},null,8,["rule-id","exclude-alert-id"])])],64)}}}),qE=ve({__name:"AlertDetailWrapper",props:{id:{type:Number,required:!0}},setup(e){const t=e,n=wr(),r=mk(),i=()=>{n.push("/")};return qe(async()=>{await r.perform(t.id)}),(h,f)=>(K(),re(Me,null,[oe(r).isRunning?(K(),me(pn,{key:0})):fe("",!0),oe(r).isError?(K(),me(at,{key:1,error:oe(r).last?.error},null,8,["error"])):fe("",!0),oe(r).last?.value?(K(),me(JE,{key:2,alert:oe(r).last.value,onDelete:i},null,8,["alert"])):fe("",!0)],64))}}),eM=ve({__name:"AlertView",props:{id:{type:String,required:!0}},setup(e){const t=e,n=()=>{dn(`Alert:${t.id} - Mihari`)};return qe(()=>{n()}),Fe(()=>t.id,()=>{n()}),(r,i)=>(K(),me(qE,{id:parseInt(e.id)},null,8,["id"]))}}),tM={class:"buttons is-pulled-right"},nM=["href"],rM={class:"icon is-small"},iM={class:"icon is-small"},oM={class:"icon is-small"},sM={class:"icon is-small"},aM={key:0},lM={class:"modal is-active"},cM={class:"modal-card"},uM={class:"modal-card-head"},hM={class:"modal-card-body"},fM=ve({__name:"ActionButtons",props:{artifact:{type:Object,required:!0}},emits:["delete","set-error","set-message"],setup(e,{emit:t}){const n=e,r=t,i=ye(()=>`/api/artifacts/${n.artifact.id}`),h=Ne(!1),f=sg(),g=ck(),s=async()=>{if(window.confirm(`Are you sure you want to delete ${n.artifact.data}?`))try{await f.perform(n.artifact.id),r("delete")}catch(c){He.isAxiosError(c)&&r("set-error",c)}},p=async()=>{try{const a=await g.perform(n.artifact.id);r("set-message",a)}catch(a){He.isAxiosError(a)&&r("set-error",a)}},o=ui(h);return(a,c)=>{const u=De("font-awesome-icon");return K(),re(Me,null,[P("span",tM,[P("a",{class:"button is-link is-light is-small",href:i.value,target:"_blank"},[c[3]||(c[3]=P("span",null,"JSON",-1)),P("span",rM,[ie(u,{icon:"barcode"})])],8,nM),e.artifact.metadata?(K(),re("button",{key:0,class:"button is-info is-light is-small",onClick:c[0]||(c[0]=l=>oe(o)())},[c[4]||(c[4]=P("span",null,"Metadata",-1)),P("span",iM,[ie(u,{icon:"info-circle"})])])):fe("",!0),P("button",{class:"button is-primary is-light is-small",onClick:p},[c[5]||(c[5]=P("span",null,"Enrich",-1)),P("span",oM,[oe(g).isRunning?(K(),me(u,{key:0,icon:"spinner",spin:""})):(K(),me(u,{key:1,icon:"lightbulb"}))])]),P("button",{class:"button is-light is-small",onClick:s},[c[6]||(c[6]=P("span",null,"Delete",-1)),P("span",sM,[ie(u,{icon:"times"})])])]),e.artifact.metadata&&h.value?(K(),re("div",aM,[P("div",lM,[P("div",{class:"modal-background",onClick:c[1]||(c[1]=l=>oe(o)())}),P("div",cM,[P("header",uM,[c[7]||(c[7]=P("p",{class:"modal-card-title"},"Metadata",-1)),P("button",{class:"delete","aria-label":"close",onClick:c[2]||(c[2]=l=>oe(o)())})]),P("section",hM,[ie(oe(gg),{data:e.artifact.metadata},null,8,["data"])])])])])):fe("",!0)],64)}}}),yg=hi(fM,[["__scopeId","data-v-dac610f8"]]),dM={class:"notification is-info is-light"},ns=ve({__name:"MessageItem",props:{message:{type:Object,required:!0},disposable:{type:Boolean,default:!1}},emits:["dispose"],setup(e,{emit:t}){const n=t,r=()=>{n("dispose")};return(i,h)=>(K(),re("div",dM,[e.disposable?(K(),re("button",{key:0,class:"delete",onClick:r})):fe("",!0),P("p",null,pe(e.message.message),1)]))}}),pM={class:"box"},gM={class:"block"},mM={class:"table is-fullwidth is-completely-borderless"},vM={key:0},yM={class:"help"},bM=ve({__name:"ArtifactItem",props:{artifact:{type:Object,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=t,r=Ne(),i=Ne(),h=o=>{r.value=o},f=()=>{r.value=void 0},g=()=>{n("delete")},s=o=>{o.queued&&(i.value=o)},p=()=>{i.value=void 0};return(o,a)=>{const c=De("router-link");return K(),re("div",pM,[r.value?(K(),me(at,{key:0,class:"block",error:r.value,disposable:!0,onDispose:f},null,8,["error"])):fe("",!0),i.value?(K(),me(ns,{key:1,class:"block",message:i.value,disposable:!0,onDispose:p},null,8,["message"])):fe("",!0),P("div",gM,[P("p",null,[ie(yg,{artifact:e.artifact,onDelete:g,onSetError:h,onSetMessage:s},null,8,["artifact"])]),ie(c,{class:"is-size-4",to:{name:"Artifact",params:{id:e.artifact.id}}},{default:Ge(()=>[Ze(pe(e.artifact.id),1)]),_:1},8,["to"])]),P("table",mM,[P("tr",null,[a[0]||(a[0]=P("th",null,"Data",-1)),P("td",null,pe(e.artifact.data),1)]),P("tr",null,[a[1]||(a[1]=P("th",null,"Data Type",-1)),P("td",null,pe(e.artifact.dataType),1)]),P("tr",null,[a[2]||(a[2]=P("th",null,"Source",-1)),P("td",null,pe(e.artifact.source),1)]),P("tr",null,[a[3]||(a[3]=P("th",null,"Query",-1)),P("td",null,pe(oe(ei)(e.artifact.query||"N/A",64)),1)]),e.artifact.tags.length>0?(K(),re("tr",vM,[a[4]||(a[4]=P("th",null,"Tags",-1)),P("td",null,[ie(yi,{tags:e.artifact.tags,"navigate-to":"Artifacts"},null,8,["tags"])])])):fe("",!0)]),a[5]||(a[5]=P("p",{class:"block is-clearfix"},null,-1)),P("p",yM,"Created at: "+pe(e.artifact.createdAt),1)])}}}),wM={key:0},SM={class:"help"},$M={key:1},_M=ve({__name:"ArtifactsItem",props:{artifacts:{type:Object,required:!0}},emits:["refresh","update-page"],setup(e,{emit:t}){const n=e,r=t,i=ye(()=>n.artifacts.results.length>0),h=g=>{r("update-page",g)},f=()=>{r("refresh")};return(g,s)=>i.value?(K(),re("div",wM,[(K(!0),re(Me,null,Tt(e.artifacts.results,p=>(K(),me(bM,{artifact:p,key:p.id,onDelete:f},null,8,["artifact"]))),128)),ie(Il,{total:e.artifacts.total,currentPage:e.artifacts.currentPage,pageSize:e.artifacts.pageSize,onUpdatePage:h},null,8,["total","currentPage","pageSize"]),P("p",SM," ("+pe(e.artifacts.total)+" results in total, "+pe(e.artifacts.results.length)+" shown) ",1)])):(K(),re("div",$M,[...s[0]||(s[0]=[P("div",{class:"notification is-warning is-light"},"There is no artifact to show",-1)])]))}}),CM={class:"block"},xM={class:"field has-addons"},AM={class:"control is-expanded"},kM={class:"control"},EM={class:"icon is-small"},MM={class:"control"},TM={class:"icon is-small"},LM={key:0,class:"content mt-3"},RM={key:0,class:"block"},IM=ve({__name:"ArtifactsWrapper",setup(e){const t=dr("page","1"),n=dr("q",""),r=Ne(!1),i=Rl(),h=async()=>{const o={q:n.value,page:parseInt(t.value)};return await i.perform(o)},f=o=>{t.value=o.toString()},g=async()=>{t.value="1",await h()},s=g,p=ui(r);return qe(async()=>{await h()}),Fe(t,async()=>{await h()}),Fe(n,async()=>{window.scrollTo({top:0,behavior:"smooth"})}),(o,a)=>{const c=De("font-awesome-icon");return K(),re(Me,null,[P("div",CM,[P("div",xM,[P("p",AM,[ol(P("input",{class:"input",type:"text","onUpdate:modelValue":a[0]||(a[0]=u=>Je(n)?n.value=u:null)},null,512),[[dl,oe(n)]])]),P("p",kM,[P("a",{class:"button is-primary",onClick:g},[P("span",EM,[ie(c,{icon:"search"})]),a[2]||(a[2]=P("span",null,"Search",-1))])]),P("p",MM,[P("a",{class:"button is-info",onClick:a[1]||(a[1]=u=>oe(p)())},[P("span",TM,[ie(c,{icon:"question"})]),a[3]||(a[3]=P("span",null,"Help",-1))])])]),r.value?(K(),re("div",LM,[...a[4]||(a[4]=[hl('<h4 class="is-size-4">Help</h4><ul><li> Search query supports <code>AND</code>, <code>OR</code>, <code>:</code>, <code>=</code>, <code>!=</code>, <code>&lt;</code>, <code>&lt;=</code>, <code>&gt;</code>, <code>&gt;=</code>, <code>NOT</code> and <code>()</code>. </li><li><code>id</code>, <code>data</code>, <code>data_type</code>, <code>source</code>, <code>query</code>, <code>tag</code>, <code>rule.id</code>, <code>rule.title</code>, <code>rule.description</code>, <code>tag</code>,<code>created_at</code>, <code>asn</code>, <code>country_code</code>, <code>dns_record.value</code>, <code>dns_record.resource</code>, <code>reverse_dns_name</code>, <code>cpe</code>, <code>vuln</code> and <code>port</code>. </li></ul>',2)])])):fe("",!0)]),oe(i).performCount>0?(K(),re("div",RM,[oe(i).isRunning?(K(),me(pn,{key:0})):fe("",!0),oe(i).isError?(K(),me(at,{key:1,error:oe(i).last?.error},null,8,["error"])):fe("",!0),oe(i).last?.value?(K(),me(_M,{key:2,artifacts:oe(i).last.value,onUpdatePage:f,onRefresh:oe(s)},null,8,["artifacts","onRefresh"])):fe("",!0)])):fe("",!0)],64)}}}),OM=ve({__name:"ArtifactsView",setup(e){const t=()=>{dn("Artifacts - Mihari")};return qe(()=>{t()}),(n,r)=>(K(),me(IM))}}),NM={class:"tags are-medium"},DM=ve({__name:"AsItem",props:{autonomousSystem:{type:Object,required:!0}},setup(e){const t=n=>`asn:${n}`;return(n,r)=>{const i=De("router-link");return K(),re("div",NM,[ie(i,{class:"tag",to:{name:"Artifacts",query:{q:t(e.autonomousSystem.number)}}},{default:Ge(()=>[Ze(pe(e.autonomousSystem.number),1)]),_:1},8,["to"])])}}}),FM={class:"tags are-medium"},PM=ve({__name:"CpesItem",props:{cpes:{type:Array,required:!0}},setup(e){const t=n=>`cpe:"${n}"`;return(n,r)=>{const i=De("router-link");return K(),re("div",FM,[(K(!0),re(Me,null,Tt(e.cpes,h=>(K(),me(i,{class:"tag",key:h.name,to:{name:"Artifacts",query:{q:t(h.name)}}},{default:Ge(()=>[Ze(pe(h.name),1)]),_:2},1032,["to"]))),128))])}}}),zM={class:"field is-grouped is-grouped-multiline"},WM={class:"tags has-addons are-medium"},jM={class:"tag is-dark"},BM=ve({__name:"DnsRecordsItem",props:{dnsRecords:{type:Array,required:!0}},setup(e){const t=({resource:n,value:r})=>`dns_record.value:"${r}" AND dns_record.resource:"${n}"`;return(n,r)=>{const i=De("router-link");return K(),re("div",zM,[(K(!0),re(Me,null,Tt(e.dnsRecords,(h,f)=>(K(),re("div",{class:"control",key:f},[P("div",WM,[P("span",jM,pe(h.resource),1),ie(i,{class:"tag",to:{name:"Artifacts",query:{q:t({resource:h.resource,value:h.value})}}},{default:Ge(()=>[Ze(pe(oe(ei)(h.value,50)),1)]),_:2},1032,["to"])])]))),128))])}}}),HM={class:"tags are-medium"},UM=ve({__name:"PortsItem",props:{ports:{type:Array,required:!0}},setup(e){const t=n=>`port:${n}`;return(n,r)=>{const i=De("router-link");return K(),re("div",HM,[(K(!0),re(Me,null,Tt(e.ports,h=>(K(),me(i,{class:"tag",key:h.number,to:{name:"Artifacts",query:{q:t(h.number)}}},{default:Ge(()=>[Ze(pe(h.number),1)]),_:2},1032,["to"]))),128))])}}}),VM={class:"tags are-medium"},GM=ve({__name:"ReverseDnsNames",props:{reverseDnsNames:{type:Array,required:!0}},setup(e){const t=n=>`reverse_dns_name:"${n}"`;return(n,r)=>{const i=De("router-link");return K(),re("div",VM,[(K(!0),re(Me,null,Tt(e.reverseDnsNames,h=>(K(),me(i,{class:"tag",key:h.name,to:{name:"Artifacts",query:{q:t(h.name)}}},{default:Ge(()=>[Ze(pe(h.name),1)]),_:2},1032,["to"]))),128))])}}}),ZM={class:"tags are-medium"},YM=ve({__name:"VulnerabilitiesItem",props:{vulnerabilities:{type:Array,required:!0}},setup(e){const t=n=>`vuln:"${n}"`;return(n,r)=>{const i=De("router-link");return K(),re("div",ZM,[(K(!0),re(Me,null,Tt(e.vulnerabilities,h=>(K(),me(i,{class:"tag",key:h.name,to:{name:"Artifacts",query:{q:t(h.name)}}},{default:Ge(()=>[Ze(pe(h.name),1)]),_:2},1032,["to"]))),128))])}}}),KM={class:"field is-grouped is-grouped-multiline"},XM={class:"control"},QM={class:"tags has-addons are-medium"},JM={class:"tag"},qM={class:"control"},eT={class:"tags has-addons are-medium"},tT={class:"tag"},nT={class:"control"},rT={class:"tags has-addons are-medium"},iT={class:"tag"},oT={class:"control"},sT={class:"tags has-addons are-medium"},aT={class:"tag"},lT=ve({__name:"WhoisRecord",props:{whoisRecord:{type:Object,required:!0}},setup(e){return(t,n)=>(K(),re("div",KM,[P("div",XM,[P("div",QM,[n[0]||(n[0]=P("span",{class:"tag is-dark"},"Registrar",-1)),P("span",JM,pe(e.whoisRecord.registrar?.name||"N/A"),1)])]),P("div",qM,[P("div",eT,[n[1]||(n[1]=P("span",{class:"tag is-dark"},"Created on",-1)),P("span",tT,pe(e.whoisRecord.createdOn||"N/A"),1)])]),P("div",nT,[P("div",rT,[n[2]||(n[2]=P("span",{class:"tag is-dark"},"Updated on",-1)),P("span",iT,pe(e.whoisRecord.updatedOn||"N/A"),1)])]),P("div",oT,[P("div",sT,[n[3]||(n[3]=P("span",{class:"tag is-dark"},"Expires on",-1)),P("span",aT,pe(e.whoisRecord.expiresOn||"N/A"),1)])])]))}}),cT=["href"],uT=["src"],hT=ve({__name:"LinkItem",props:{data:{type:String,required:!0},link:{type:Object,required:!0}},setup(e){const t=Wd();return(n,r)=>(K(),re("a",{href:e.link.href(e.data),class:si(["tag",oe(t)?"":"is-white"]),target:"_blank"},[P("img",{src:e.link.favicon(),alt:"favicon"},null,8,uT),P("span",null,pe(e.link.name),1)],10,cT))}}),fT=hi(hT,[["__scopeId","data-v-d0b695fc"]]);class Rt{baseURL;constructor(){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 dT extends Rt{baseURL;name;type;constructor(){super(),this.baseURL="https://app.any.run",this.name="ANY.RUN",this.type="hash"}href(t){return this.baseURL+`/submissions/#filehash:${t}`}}class pT extends Rt{baseURL;name;type;constructor(){super(),this.baseURL="https://search.censys.io",this.name="Censys",this.type="ip"}href(t){return this.baseURL+`/hosts/${t}`}}class gT extends Rt{baseURL;name;type;constructor(){super(),this.baseURL="https://crt.sh",this.name="crt.sh",this.type="domain"}href(t){return this.baseURL+`/?q=${t}`}}class mT extends Rt{baseURL;name;type;constructor(){super(),this.baseURL="https://dnslytics.com",this.name="DNSlytics",this.type="ip"}href(t){return this.baseURL+`/ip/${t}`}}class vT extends Rt{baseURL;name;type;constructor(){super(),this.baseURL="https://dnslytics.com",this.name="DNSlytics",this.type="domain"}href(t){return this.baseURL+`/domain/${t}`}}class yT extends Rt{baseURL;name;type;constructor(){super(),this.baseURL="https://emailrep.io",this.name="EmailRep",this.type="mail"}href(t){return this.baseURL+`/${t}`}}class bT extends Rt{baseURL;name;type;constructor(){super(),this.baseURL="https://viz.greynoise.io",this.name="GreyNoise",this.type="ip"}href(t){return this.baseURL+`/ip/${t}`}}class wT extends Rt{baseURL;name;type;constructor(){super(),this.baseURL="https://analyze.intezer.com",this.name="Intezer",this.type="hash"}href(t){return this.baseURL+`/#/files/${t}`}}class bg extends Rt{baseURL;name;type;constructor(){super(),this.baseURL="https://otx.alienvault.com",this.name="OTX",this.type="ip"}href(t){return this.baseURL+`/indicator/ip/${t}`}}class ST extends bg{type;constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/indicator/domain/${t}`}}class wg extends Rt{baseURL;name;type;constructor(){super(),this.baseURL="https://securitytrails.com",this.name="SecurityTrails",this.type="domain"}}class $T extends wg{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/domain/${t}/dns`}}class _T extends wg{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/list/ip/${t}`}}class CT extends Rt{baseURL;name;type;constructor(){super(),this.baseURL="https://www.shodan.io",this.name="Shodan",this.type="ip"}href(t){return this.baseURL+`/host/${t}`}}class Ol extends Rt{baseURL;name;type;constructor(){super(),this.baseURL="https://urlscan.io",this.name="urlscan.io",this.type="domain"}}class xT extends Ol{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/domain/${t}`}}class AT extends Ol{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/ip/${t}`}}class kT extends Ol{constructor(){super(),this.type="url"}href(t){const n=encodeURIComponent(`page.url:"${t}" OR task.url:"${t}"`);return this.baseURL+`/search/#${n}`}}var Ra=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ET(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var i=!1;try{i=this instanceof r}catch{}return 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(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Ds={exports:{}};const MT={},TT=Object.freeze(Object.defineProperty({__proto__:null,default:MT},Symbol.toStringTag,{value:"Module"})),ch=ET(TT);/**
621
+ * [js-sha256]{@link https://github.com/emn178/js-sha256}
622
+ *
623
+ * @version 0.11.1
624
+ * @author Chen, Yi-Cyuan [emn178@gmail.com]
625
+ * @copyright Chen, Yi-Cyuan 2014-2025
626
+ * @license MIT
627
+ */var uh;function LT(){return uh||(uh=1,function(e){(function(){var t="input is invalid type",n=typeof window=="object",r=n?window:{};r.JS_SHA256_NO_WINDOW&&(n=!1);var i=!n&&typeof self=="object",h=!r.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node&&process.type!="renderer";h?r=Ra:i&&(r=self);var f=!r.JS_SHA256_NO_COMMON_JS&&!0&&e.exports,g=!r.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",s="0123456789abcdef".split(""),p=[-2147483648,8388608,32768,128],o=[24,16,8,0],a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],c=["hex","array","digest","arrayBuffer"],u=[];(r.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(b){return Object.prototype.toString.call(b)==="[object Array]"}),g&&(r.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(b){return typeof b=="object"&&b.buffer&&b.buffer.constructor===ArrayBuffer});var l=function(b,k){return function(R){return new C(k,!0).update(R)[b]()}},d=function(b){var k=l("hex",b);h&&(k=m(k,b)),k.create=function(){return new C(b)},k.update=function(L){return k.create().update(L)};for(var R=0;R<c.length;++R){var E=c[R];k[E]=l(E,b)}return k},m=function(b,k){var R=ch,E=ch.Buffer,L=k?"sha224":"sha256",O;E.from&&!r.JS_SHA256_NO_BUFFER_FROM?O=E.from:O=function(x){return new E(x)};var M=function(x){if(typeof x=="string")return R.createHash(L).update(x,"utf8").digest("hex");if(x==null)throw new Error(t);return x.constructor===ArrayBuffer&&(x=new Uint8Array(x)),Array.isArray(x)||ArrayBuffer.isView(x)||x.constructor===E?R.createHash(L).update(O(x)).digest("hex"):b(x)};return M},v=function(b,k){return function(R,E){return new $(R,k,!0).update(E)[b]()}},y=function(b){var k=v("hex",b);k.create=function(L){return new $(L,b)},k.update=function(L,O){return k.create(L).update(O)};for(var R=0;R<c.length;++R){var E=c[R];k[E]=v(E,b)}return k};function C(b,k){k?(u[0]=u[16]=u[1]=u[2]=u[3]=u[4]=u[5]=u[6]=u[7]=u[8]=u[9]=u[10]=u[11]=u[12]=u[13]=u[14]=u[15]=0,this.blocks=u):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],b?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=b}C.prototype.update=function(b){if(!this.finalized){var k,R=typeof b;if(R!=="string"){if(R==="object"){if(b===null)throw new Error(t);if(g&&b.constructor===ArrayBuffer)b=new Uint8Array(b);else if(!Array.isArray(b)&&(!g||!ArrayBuffer.isView(b)))throw new Error(t)}else throw new Error(t);k=!0}for(var E,L=0,O,M=b.length,x=this.blocks;L<M;){if(this.hashed&&(this.hashed=!1,x[0]=this.block,this.block=x[16]=x[1]=x[2]=x[3]=x[4]=x[5]=x[6]=x[7]=x[8]=x[9]=x[10]=x[11]=x[12]=x[13]=x[14]=x[15]=0),k)for(O=this.start;L<M&&O<64;++L)x[O>>>2]|=b[L]<<o[O++&3];else for(O=this.start;L<M&&O<64;++L)E=b.charCodeAt(L),E<128?x[O>>>2]|=E<<o[O++&3]:E<2048?(x[O>>>2]|=(192|E>>>6)<<o[O++&3],x[O>>>2]|=(128|E&63)<<o[O++&3]):E<55296||E>=57344?(x[O>>>2]|=(224|E>>>12)<<o[O++&3],x[O>>>2]|=(128|E>>>6&63)<<o[O++&3],x[O>>>2]|=(128|E&63)<<o[O++&3]):(E=65536+((E&1023)<<10|b.charCodeAt(++L)&1023),x[O>>>2]|=(240|E>>>18)<<o[O++&3],x[O>>>2]|=(128|E>>>12&63)<<o[O++&3],x[O>>>2]|=(128|E>>>6&63)<<o[O++&3],x[O>>>2]|=(128|E&63)<<o[O++&3]);this.lastByteIndex=O,this.bytes+=O-this.start,O>=64?(this.block=x[16],this.start=O-64,this.hash(),this.hashed=!0):this.start=O}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},C.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var b=this.blocks,k=this.lastByteIndex;b[16]=this.block,b[k>>>2]|=p[k&3],this.block=b[16],k>=56&&(this.hashed||this.hash(),b[0]=this.block,b[16]=b[1]=b[2]=b[3]=b[4]=b[5]=b[6]=b[7]=b[8]=b[9]=b[10]=b[11]=b[12]=b[13]=b[14]=b[15]=0),b[14]=this.hBytes<<3|this.bytes>>>29,b[15]=this.bytes<<3,this.hash()}},C.prototype.hash=function(){var b=this.h0,k=this.h1,R=this.h2,E=this.h3,L=this.h4,O=this.h5,M=this.h6,x=this.h7,_=this.blocks,w,A,T,I,N,D,F,H,W,U,V;for(w=16;w<64;++w)N=_[w-15],A=(N>>>7|N<<25)^(N>>>18|N<<14)^N>>>3,N=_[w-2],T=(N>>>17|N<<15)^(N>>>19|N<<13)^N>>>10,_[w]=_[w-16]+A+_[w-7]+T<<0;for(V=k&R,w=0;w<64;w+=4)this.first?(this.is224?(H=300032,N=_[0]-1413257819,x=N-150054599<<0,E=N+24177077<<0):(H=704751109,N=_[0]-210244248,x=N-1521486534<<0,E=N+143694565<<0),this.first=!1):(A=(b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10),T=(L>>>6|L<<26)^(L>>>11|L<<21)^(L>>>25|L<<7),H=b&k,I=H^b&R^V,F=L&O^~L&M,N=x+T+F+a[w]+_[w],D=A+I,x=E+N<<0,E=N+D<<0),A=(E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10),T=(x>>>6|x<<26)^(x>>>11|x<<21)^(x>>>25|x<<7),W=E&b,I=W^E&k^H,F=x&L^~x&O,N=M+T+F+a[w+1]+_[w+1],D=A+I,M=R+N<<0,R=N+D<<0,A=(R>>>2|R<<30)^(R>>>13|R<<19)^(R>>>22|R<<10),T=(M>>>6|M<<26)^(M>>>11|M<<21)^(M>>>25|M<<7),U=R&E,I=U^R&b^W,F=M&x^~M&L,N=O+T+F+a[w+2]+_[w+2],D=A+I,O=k+N<<0,k=N+D<<0,A=(k>>>2|k<<30)^(k>>>13|k<<19)^(k>>>22|k<<10),T=(O>>>6|O<<26)^(O>>>11|O<<21)^(O>>>25|O<<7),V=k&R,I=V^k&E^U,F=O&M^~O&x,N=L+T+F+a[w+3]+_[w+3],D=A+I,L=b+N<<0,b=N+D<<0,this.chromeBugWorkAround=!0;this.h0=this.h0+b<<0,this.h1=this.h1+k<<0,this.h2=this.h2+R<<0,this.h3=this.h3+E<<0,this.h4=this.h4+L<<0,this.h5=this.h5+O<<0,this.h6=this.h6+M<<0,this.h7=this.h7+x<<0},C.prototype.hex=function(){this.finalize();var b=this.h0,k=this.h1,R=this.h2,E=this.h3,L=this.h4,O=this.h5,M=this.h6,x=this.h7,_=s[b>>>28&15]+s[b>>>24&15]+s[b>>>20&15]+s[b>>>16&15]+s[b>>>12&15]+s[b>>>8&15]+s[b>>>4&15]+s[b&15]+s[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[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[E>>>28&15]+s[E>>>24&15]+s[E>>>20&15]+s[E>>>16&15]+s[E>>>12&15]+s[E>>>8&15]+s[E>>>4&15]+s[E&15]+s[L>>>28&15]+s[L>>>24&15]+s[L>>>20&15]+s[L>>>16&15]+s[L>>>12&15]+s[L>>>8&15]+s[L>>>4&15]+s[L&15]+s[O>>>28&15]+s[O>>>24&15]+s[O>>>20&15]+s[O>>>16&15]+s[O>>>12&15]+s[O>>>8&15]+s[O>>>4&15]+s[O&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||(_+=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]),_},C.prototype.toString=C.prototype.hex,C.prototype.digest=function(){this.finalize();var b=this.h0,k=this.h1,R=this.h2,E=this.h3,L=this.h4,O=this.h5,M=this.h6,x=this.h7,_=[b>>>24&255,b>>>16&255,b>>>8&255,b&255,k>>>24&255,k>>>16&255,k>>>8&255,k&255,R>>>24&255,R>>>16&255,R>>>8&255,R&255,E>>>24&255,E>>>16&255,E>>>8&255,E&255,L>>>24&255,L>>>16&255,L>>>8&255,L&255,O>>>24&255,O>>>16&255,O>>>8&255,O&255,M>>>24&255,M>>>16&255,M>>>8&255,M&255];return this.is224||_.push(x>>>24&255,x>>>16&255,x>>>8&255,x&255),_},C.prototype.array=C.prototype.digest,C.prototype.arrayBuffer=function(){this.finalize();var b=new ArrayBuffer(this.is224?28:32),k=new DataView(b);return k.setUint32(0,this.h0),k.setUint32(4,this.h1),k.setUint32(8,this.h2),k.setUint32(12,this.h3),k.setUint32(16,this.h4),k.setUint32(20,this.h5),k.setUint32(24,this.h6),this.is224||k.setUint32(28,this.h7),b};function $(b,k,R){var E,L=typeof b;if(L==="string"){var O=[],M=b.length,x=0,_;for(E=0;E<M;++E)_=b.charCodeAt(E),_<128?O[x++]=_:_<2048?(O[x++]=192|_>>>6,O[x++]=128|_&63):_<55296||_>=57344?(O[x++]=224|_>>>12,O[x++]=128|_>>>6&63,O[x++]=128|_&63):(_=65536+((_&1023)<<10|b.charCodeAt(++E)&1023),O[x++]=240|_>>>18,O[x++]=128|_>>>12&63,O[x++]=128|_>>>6&63,O[x++]=128|_&63);b=O}else if(L==="object"){if(b===null)throw new Error(t);if(g&&b.constructor===ArrayBuffer)b=new Uint8Array(b);else if(!Array.isArray(b)&&(!g||!ArrayBuffer.isView(b)))throw new Error(t)}else throw new Error(t);b.length>64&&(b=new C(k,!0).update(b).array());var w=[],A=[];for(E=0;E<64;++E){var T=b[E]||0;w[E]=92^T,A[E]=54^T}C.call(this,k,R),this.update(A),this.oKeyPad=w,this.inner=!0,this.sharedMemory=R}$.prototype=new C,$.prototype.finalize=function(){if(C.prototype.finalize.call(this),this.inner){this.inner=!1;var b=this.array();C.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(b),C.prototype.finalize.call(this)}};var S=d();S.sha256=S,S.sha224=d(!0),S.sha256.hmac=y(),S.sha224.hmac=y(!0),f?e.exports=S:(r.sha256=S.sha256,r.sha224=S.sha224)})()}(Ds)),Ds.exports}var RT=LT(),Fs,hh;function IT(){return hh||(hh=1,Fs=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}),Fs}var Ri={},fh;function OT(){if(fh)return Ri;fh=1;var e=Object.prototype.hasOwnProperty,t;function n(f){try{return decodeURIComponent(f.replace(/\+/g," "))}catch{return null}}function r(f){try{return encodeURIComponent(f)}catch{return null}}function i(f){for(var g=/([^=?#&]+)=?([^&]*)/g,s={},p;p=g.exec(f);){var o=n(p[1]),a=n(p[2]);o===null||a===null||o in s||(s[o]=a)}return s}function h(f,g){g=g||"";var s=[],p,o;typeof g!="string"&&(g="?");for(o in f)if(e.call(f,o)){if(p=f[o],!p&&(p===null||p===t||isNaN(p))&&(p=""),o=r(o),p=r(p),o===null||p===null)continue;s.push(o+"="+p)}return s.length?g+s.join("&"):""}return Ri.stringify=h,Ri.parse=i,Ri}var Ps,dh;function NT(){if(dh)return Ps;dh=1;var e=IT(),t=OT(),n=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,r=/[\n\r\t]/g,i=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,h=/:\d+$/,f=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,g=/^[a-zA-Z]:/;function s(y){return(y||"").toString().replace(n,"")}var p=[["#","hash"],["?","query"],function(C,$){return c($.protocol)?C.replace(/\\/g,"/"):C},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],o={hash:1,query:1};function a(y){var C;typeof window<"u"?C=window:typeof Ra<"u"?C=Ra:typeof self<"u"?C=self:C={};var $=C.location||{};y=y||$;var S={},b=typeof y,k;if(y.protocol==="blob:")S=new d(unescape(y.pathname),{});else if(b==="string"){S=new d(y,{});for(k in o)delete S[k]}else if(b==="object"){for(k in y)k in o||(S[k]=y[k]);S.slashes===void 0&&(S.slashes=i.test(y.href))}return S}function c(y){return y==="file:"||y==="ftp:"||y==="http:"||y==="https:"||y==="ws:"||y==="wss:"}function u(y,C){y=s(y),y=y.replace(r,""),C=C||{};var $=f.exec(y),S=$[1]?$[1].toLowerCase():"",b=!!$[2],k=!!$[3],R=0,E;return b?k?(E=$[2]+$[3]+$[4],R=$[2].length+$[3].length):(E=$[2]+$[4],R=$[2].length):k?(E=$[3]+$[4],R=$[3].length):E=$[4],S==="file:"?R>=2&&(E=E.slice(2)):c(S)?E=$[4]:S?b&&(E=E.slice(2)):R>=2&&c(C.protocol)&&(E=$[4]),{protocol:S,slashes:b||c(S),slashesCount:R,rest:E}}function l(y,C){if(y==="")return C;for(var $=(C||"/").split("/").slice(0,-1).concat(y.split("/")),S=$.length,b=$[S-1],k=!1,R=0;S--;)$[S]==="."?$.splice(S,1):$[S]===".."?($.splice(S,1),R++):R&&(S===0&&(k=!0),$.splice(S,1),R--);return k&&$.unshift(""),(b==="."||b==="..")&&$.push(""),$.join("/")}function d(y,C,$){if(y=s(y),y=y.replace(r,""),!(this instanceof d))return new d(y,C,$);var S,b,k,R,E,L,O=p.slice(),M=typeof C,x=this,_=0;for(M!=="object"&&M!=="string"&&($=C,C=null),$&&typeof $!="function"&&($=t.parse),C=a(C),b=u(y||"",C),S=!b.protocol&&!b.slashes,x.slashes=b.slashes||S&&C.slashes,x.protocol=b.protocol||C.protocol||"",y=b.rest,(b.protocol==="file:"&&(b.slashesCount!==2||g.test(y))||!b.slashes&&(b.protocol||b.slashesCount<2||!c(x.protocol)))&&(O[3]=[/(.*)/,"pathname"]);_<O.length;_++){if(R=O[_],typeof R=="function"){y=R(y,x);continue}k=R[0],L=R[1],k!==k?x[L]=y:typeof k=="string"?(E=k==="@"?y.lastIndexOf(k):y.indexOf(k),~E&&(typeof R[2]=="number"?(x[L]=y.slice(0,E),y=y.slice(E+R[2])):(x[L]=y.slice(E),y=y.slice(0,E)))):(E=k.exec(y))&&(x[L]=E[1],y=y.slice(0,E.index)),x[L]=x[L]||S&&R[3]&&C[L]||"",R[4]&&(x[L]=x[L].toLowerCase())}$&&(x.query=$(x.query)),S&&C.slashes&&x.pathname.charAt(0)!=="/"&&(x.pathname!==""||C.pathname!=="")&&(x.pathname=l(x.pathname,C.pathname)),x.pathname.charAt(0)!=="/"&&c(x.protocol)&&(x.pathname="/"+x.pathname),e(x.port,x.protocol)||(x.host=x.hostname,x.port=""),x.username=x.password="",x.auth&&(E=x.auth.indexOf(":"),~E?(x.username=x.auth.slice(0,E),x.username=encodeURIComponent(decodeURIComponent(x.username)),x.password=x.auth.slice(E+1),x.password=encodeURIComponent(decodeURIComponent(x.password))):x.username=encodeURIComponent(decodeURIComponent(x.auth)),x.auth=x.password?x.username+":"+x.password:x.username),x.origin=x.protocol!=="file:"&&c(x.protocol)&&x.host?x.protocol+"//"+x.host:"null",x.href=x.toString()}function m(y,C,$){var S=this;switch(y){case"query":typeof C=="string"&&C.length&&(C=($||t.parse)(C)),S[y]=C;break;case"port":S[y]=C,e(C,S.protocol)?C&&(S.host=S.hostname+":"+C):(S.host=S.hostname,S[y]="");break;case"hostname":S[y]=C,S.port&&(C+=":"+S.port),S.host=C;break;case"host":S[y]=C,h.test(C)?(C=C.split(":"),S.port=C.pop(),S.hostname=C.join(":")):(S.hostname=C,S.port="");break;case"protocol":S.protocol=C.toLowerCase(),S.slashes=!$;break;case"pathname":case"hash":if(C){var b=y==="pathname"?"/":"#";S[y]=C.charAt(0)!==b?b+C:C}else S[y]=C;break;case"username":case"password":S[y]=encodeURIComponent(C);break;case"auth":var k=C.indexOf(":");~k?(S.username=C.slice(0,k),S.username=encodeURIComponent(decodeURIComponent(S.username)),S.password=C.slice(k+1),S.password=encodeURIComponent(decodeURIComponent(S.password))):S.username=encodeURIComponent(decodeURIComponent(C))}for(var R=0;R<p.length;R++){var E=p[R];E[4]&&(S[E[1]]=S[E[1]].toLowerCase())}return S.auth=S.password?S.username+":"+S.password:S.username,S.origin=S.protocol!=="file:"&&c(S.protocol)&&S.host?S.protocol+"//"+S.host:"null",S.href=S.toString(),S}function v(y){(!y||typeof y!="function")&&(y=t.stringify);var C,$=this,S=$.host,b=$.protocol;b&&b.charAt(b.length-1)!==":"&&(b+=":");var k=b+($.protocol&&$.slashes||c($.protocol)?"//":"");return $.username?(k+=$.username,$.password&&(k+=":"+$.password),k+="@"):$.password?(k+=":"+$.password,k+="@"):$.protocol!=="file:"&&c($.protocol)&&!S&&$.pathname!=="/"&&(k+="@"),(S[S.length-1]===":"||h.test($.hostname)&&!$.port)&&(S+=":"),k+=S+$.pathname,C=typeof $.query=="object"?y($.query):$.query,C&&(k+=C.charAt(0)!=="?"?"?"+C:C),$.hash&&(k+=$.hash),k}return d.prototype={set:m,toString:v},d.extractProtocol=u,d.location=a,d.trimLeft=s,d.qs=t,Ps=d,Ps}var DT=NT();const FT=_r(DT);class rs extends Rt{baseURL;name;type;constructor(){super(),this.name="VirusTotal",this.baseURL="https://www.virustotal.com",this.type="domain"}}class PT extends rs{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/gui/domain/${t}/detection`}}class zT extends rs{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/gui/ip-address/${t}/details`}}class WT extends rs{constructor(){super(),this.type="url"}href(t){const n=RT.sha256(this.normalizeURL(t));return this.baseURL+`/gui/url/${n}/details`}normalizeURL(t){return new FT(t).pathname==="/"&&!t.endsWith("/")?`${t}/`:t}}class jT extends rs{constructor(){super(),this.type="hash"}href(t){return this.baseURL+`/gui/file/${t}/details`}}const BT=[new dT,new pT,new gT,new vT,new mT,new yT,new bT,new wT,new ST,new bg,new $T,new _T,new CT,new xT,new AT,new kT,new PT,new jT,new zT,new WT],HT={class:"tags are-medium"},UT=ve({__name:"LinksItem",props:{data:{type:String,required:!0},type:{type:String,required:!0}},setup(e){const t=e,n=ye(()=>BT.filter(r=>r.type===t.type));return(r,i)=>(K(),re("div",HT,[(K(!0),re(Me,null,Tt(n.value,h=>(K(),me(fT,{data:e.data,link:h,key:h.name},null,8,["data","link"]))),128))]))}});var Yi={exports:{}},VT=Yi.exports,ph;function GT(){return ph||(ph=1,function(e,t){(function(n,r){e.exports=r()})(VT,function(){var n=1e3,r=6e4,i=36e5,h="millisecond",f="second",g="minute",s="hour",p="day",o="week",a="month",c="quarter",u="year",l="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+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(_){var w=["th","st","nd","rd"],A=_%100;return"["+_+(w[(A-20)%10]||w[A]||w[0])+"]"}},C=function(_,w,A){var T=String(_);return!T||T.length>=w?_:""+Array(w+1-T.length).join(A)+_},$={s:C,z:function(_){var w=-_.utcOffset(),A=Math.abs(w),T=Math.floor(A/60),I=A%60;return(w<=0?"+":"-")+C(T,2,"0")+":"+C(I,2,"0")},m:function _(w,A){if(w.date()<A.date())return-_(A,w);var T=12*(A.year()-w.year())+(A.month()-w.month()),I=w.clone().add(T,a),N=A-I<0,D=w.clone().add(T+(N?-1:1),a);return+(-(T+(A-I)/(N?I-D:D-I))||0)},a:function(_){return _<0?Math.ceil(_)||0:Math.floor(_)},p:function(_){return{M:a,y:u,w:o,d:p,D:l,h:s,m:g,s:f,ms:h,Q:c}[_]||String(_||"").toLowerCase().replace(/s$/,"")},u:function(_){return _===void 0}},S="en",b={};b[S]=y;var k="$isDayjsObject",R=function(_){return _ instanceof M||!(!_||!_[k])},E=function _(w,A,T){var I;if(!w)return S;if(typeof w=="string"){var N=w.toLowerCase();b[N]&&(I=N),A&&(b[N]=A,I=N);var D=w.split("-");if(!I&&D.length>1)return _(D[0])}else{var F=w.name;b[F]=w,I=F}return!T&&I&&(S=I),I||!T&&S},L=function(_,w){if(R(_))return _.clone();var A=typeof w=="object"?w:{};return A.date=_,A.args=arguments,new M(A)},O=$;O.l=E,O.i=R,O.w=function(_,w){return L(_,{locale:w.$L,utc:w.$u,x:w.$x,$offset:w.$offset})};var M=function(){function _(A){this.$L=E(A.locale,null,!0),this.parse(A),this.$x=this.$x||A.x||{},this[k]=!0}var w=_.prototype;return w.parse=function(A){this.$d=function(T){var I=T.date,N=T.utc;if(I===null)return new Date(NaN);if(O.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 F=D[2]-1||0,H=(D[7]||"0").substring(0,3);return N?new Date(Date.UTC(D[1],F,D[3]||1,D[4]||0,D[5]||0,D[6]||0,H)):new Date(D[1],F,D[3]||1,D[4]||0,D[5]||0,D[6]||0,H)}}return new Date(I)}(A),this.init()},w.init=function(){var A=this.$d;this.$y=A.getFullYear(),this.$M=A.getMonth(),this.$D=A.getDate(),this.$W=A.getDay(),this.$H=A.getHours(),this.$m=A.getMinutes(),this.$s=A.getSeconds(),this.$ms=A.getMilliseconds()},w.$utils=function(){return O},w.isValid=function(){return this.$d.toString()!==d},w.isSame=function(A,T){var I=L(A);return this.startOf(T)<=I&&I<=this.endOf(T)},w.isAfter=function(A,T){return L(A)<this.startOf(T)},w.isBefore=function(A,T){return this.endOf(T)<L(A)},w.$g=function(A,T,I){return O.u(A)?this[T]:this.set(I,A)},w.unix=function(){return Math.floor(this.valueOf()/1e3)},w.valueOf=function(){return this.$d.getTime()},w.startOf=function(A,T){var I=this,N=!!O.u(T)||T,D=O.p(A),F=function(X,Q){var le=O.w(I.$u?Date.UTC(I.$y,Q,X):new Date(I.$y,Q,X),I);return N?le:le.endOf(p)},H=function(X,Q){return O.w(I.toDate()[X].apply(I.toDate("s"),(N?[0,0,0,0]:[23,59,59,999]).slice(Q)),I)},W=this.$W,U=this.$M,V=this.$D,G="set"+(this.$u?"UTC":"");switch(D){case u:return N?F(1,0):F(31,11);case a:return N?F(1,U):F(0,U+1);case o:var j=this.$locale().weekStart||0,Z=(W<j?W+7:W)-j;return F(N?V-Z:V+(6-Z),U);case p:case l:return H(G+"Hours",0);case s:return H(G+"Minutes",1);case g:return H(G+"Seconds",2);case f:return H(G+"Milliseconds",3);default:return this.clone()}},w.endOf=function(A){return this.startOf(A,!1)},w.$set=function(A,T){var I,N=O.p(A),D="set"+(this.$u?"UTC":""),F=(I={},I[p]=D+"Date",I[l]=D+"Date",I[a]=D+"Month",I[u]=D+"FullYear",I[s]=D+"Hours",I[g]=D+"Minutes",I[f]=D+"Seconds",I[h]=D+"Milliseconds",I)[N],H=N===p?this.$D+(T-this.$W):T;if(N===a||N===u){var W=this.clone().set(l,1);W.$d[F](H),W.init(),this.$d=W.set(l,Math.min(this.$D,W.daysInMonth())).$d}else F&&this.$d[F](H);return this.init(),this},w.set=function(A,T){return this.clone().$set(A,T)},w.get=function(A){return this[O.p(A)]()},w.add=function(A,T){var I,N=this;A=Number(A);var D=O.p(T),F=function(U){var V=L(N);return O.w(V.date(V.date()+Math.round(U*A)),N)};if(D===a)return this.set(a,this.$M+A);if(D===u)return this.set(u,this.$y+A);if(D===p)return F(1);if(D===o)return F(7);var H=(I={},I[g]=r,I[s]=i,I[f]=n,I)[D]||1,W=this.$d.getTime()+A*H;return O.w(W,this)},w.subtract=function(A,T){return this.add(-1*A,T)},w.format=function(A){var T=this,I=this.$locale();if(!this.isValid())return I.invalidDate||d;var N=A||"YYYY-MM-DDTHH:mm:ssZ",D=O.z(this),F=this.$H,H=this.$m,W=this.$M,U=I.weekdays,V=I.months,G=I.meridiem,j=function(Q,le,z,B){return Q&&(Q[le]||Q(T,N))||z[le].slice(0,B)},Z=function(Q){return O.s(F%12||12,Q,"0")},X=G||function(Q,le,z){var B=Q<12?"AM":"PM";return z?B.toLowerCase():B};return N.replace(v,function(Q,le){return le||function(z){switch(z){case"YY":return String(T.$y).slice(-2);case"YYYY":return O.s(T.$y,4,"0");case"M":return W+1;case"MM":return O.s(W+1,2,"0");case"MMM":return j(I.monthsShort,W,V,3);case"MMMM":return j(V,W);case"D":return T.$D;case"DD":return O.s(T.$D,2,"0");case"d":return String(T.$W);case"dd":return j(I.weekdaysMin,T.$W,U,2);case"ddd":return j(I.weekdaysShort,T.$W,U,3);case"dddd":return U[T.$W];case"H":return String(F);case"HH":return O.s(F,2,"0");case"h":return Z(1);case"hh":return Z(2);case"a":return X(F,H,!0);case"A":return X(F,H,!1);case"m":return String(H);case"mm":return O.s(H,2,"0");case"s":return String(T.$s);case"ss":return O.s(T.$s,2,"0");case"SSS":return O.s(T.$ms,3,"0");case"Z":return D}return null}(Q)||D.replace(":","")})},w.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},w.diff=function(A,T,I){var N,D=this,F=O.p(T),H=L(A),W=(H.utcOffset()-this.utcOffset())*r,U=this-H,V=function(){return O.m(D,H)};switch(F){case u:N=V()/12;break;case a:N=V();break;case c:N=V()/3;break;case o:N=(U-W)/6048e5;break;case p:N=(U-W)/864e5;break;case s:N=U/i;break;case g:N=U/r;break;case f:N=U/n;break;default:N=U}return I?N:O.a(N)},w.daysInMonth=function(){return this.endOf(a).$D},w.$locale=function(){return b[this.$L]},w.locale=function(A,T){if(!A)return this.$L;var I=this.clone(),N=E(A,T,!0);return N&&(I.$L=N),I},w.clone=function(){return O.w(this.$d,this)},w.toDate=function(){return new Date(this.valueOf())},w.toJSON=function(){return this.isValid()?this.toISOString():null},w.toISOString=function(){return this.$d.toISOString()},w.toString=function(){return this.$d.toUTCString()},_}(),x=M.prototype;return L.prototype=x,[["$ms",h],["$s",f],["$m",g],["$H",s],["$W",p],["$M",a],["$y",u],["$D",l]].forEach(function(_){x[_[1]]=function(w){return this.$g(w,_[0],_[1])}}),L.extend=function(_,w){return _.$i||(_(w,M,L),_.$i=!0),L},L.locale=E,L.isDayjs=R,L.unix=function(_){return L(1e3*_)},L.en=b[S],L.Ls=b,L.p={},L})}(Yi)),Yi.exports}var ZT=GT();const is=_r(ZT);var Ki={exports:{}},YT=Ki.exports,gh;function KT(){return gh||(gh=1,function(e,t){(function(n,r){e.exports=r()})(YT,function(){return function(n,r,i){n=n||{};var h=r.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(p,o,a,c){return h.fromToBase(p,o,a,c)}i.en.relativeTime=f,h.fromToBase=function(p,o,a,c,u){for(var l,d,m,v=a.$locale().relativeTime||f,y=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],C=y.length,$=0;$<C;$+=1){var S=y[$];S.d&&(l=c?i(p).diff(a,S.d,!0):a.diff(p,S.d,!0));var b=(n.rounding||Math.round)(Math.abs(l));if(m=l>0,b<=S.r||!S.r){b<=1&&$>0&&(S=y[$-1]);var k=v[S.l];u&&(b=u(""+b)),d=typeof k=="string"?k.replace("%d",b):k(b,o,S.l,m);break}}if(o)return d;var R=m?v.future:v.past;return typeof R=="function"?R(d):R.replace("%s",d)},h.to=function(p,o){return g(p,o,this,!0)},h.from=function(p,o){return g(p,o,this)};var s=function(p){return p.$u?i.utc():i()};h.toNow=function(p){return this.to(s(this),p)},h.fromNow=function(p){return this.from(s(this),p)}}})}(Ki)),Ki.exports}var XT=KT();const QT=_r(XT);var Xi={exports:{}},JT=Xi.exports,mh;function qT(){return mh||(mh=1,function(e,t){(function(n,r){e.exports=r()})(JT,function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},r={};return function(i,h,f){var g,s=function(c,u,l){l===void 0&&(l={});var d=new Date(c),m=function(v,y){y===void 0&&(y={});var C=y.timeZoneName||"short",$=v+"|"+C,S=r[$];return S||(S=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:v,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:C}),r[$]=S),S}(u,l);return m.formatToParts(d)},p=function(c,u){for(var l=s(c,u),d=[],m=0;m<l.length;m+=1){var v=l[m],y=v.type,C=v.value,$=n[y];$>=0&&(d[$]=parseInt(C,10))}var S=d[3],b=S===24?0:S,k=d[0]+"-"+d[1]+"-"+d[2]+" "+b+":"+d[4]+":"+d[5]+":000",R=+c;return(f.utc(k).valueOf()-(R-=R%1e3))/6e4},o=h.prototype;o.tz=function(c,u){c===void 0&&(c=g);var l,d=this.utcOffset(),m=this.toDate(),v=m.toLocaleString("en-US",{timeZone:c}),y=Math.round((m-new Date(v))/1e3/60),C=15*-Math.round(m.getTimezoneOffset()/15)-y;if(!Number(C))l=this.utcOffset(0,u);else if(l=f(v,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(C,!0),u){var $=l.utcOffset();l=l.add(d-$,"minute")}return l.$x.$timezone=c,l},o.offsetName=function(c){var u=this.$x.$timezone||f.tz.guess(),l=s(this.valueOf(),u,{timeZoneName:c}).find(function(d){return d.type.toLowerCase()==="timezonename"});return l&&l.value};var a=o.startOf;o.startOf=function(c,u){if(!this.$x||!this.$x.$timezone)return a.call(this,c,u);var l=f(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return a.call(l,c,u).tz(this.$x.$timezone,!0)},f.tz=function(c,u,l){var d=l&&u,m=l||u||g,v=p(+f(),m);if(typeof c!="string")return f(c).tz(m);var y=function(b,k,R){var E=b-60*k*1e3,L=p(E,R);if(k===L)return[E,k];var O=p(E-=60*(L-k)*1e3,R);return L===O?[E,L]:[b-60*Math.min(L,O)*1e3,Math.max(L,O)]}(f.utc(c,d).valueOf(),v,m),C=y[0],$=y[1],S=f(C).utcOffset($);return S.$x.$timezone=m,S},f.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},f.tz.setDefault=function(c){g=c}}})}(Xi)),Xi.exports}var eL=qT();const tL=_r(eL);var Qi={exports:{}},nL=Qi.exports,vh;function rL(){return vh||(vh=1,function(e,t){(function(n,r){e.exports=r()})(nL,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(h,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 p=s.parse;s.parse=function(d){d.utc&&(this.$u=!0),this.$utils().u(d.$offset)||(this.$offset=d.$offset),p.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 a=s.utcOffset;s.utcOffset=function(d,m){var v=this.$utils().u;if(v(d))return this.$u?0:v(this.$offset)?a.call(this):this.$offset;if(typeof d=="string"&&(d=function(S){S===void 0&&(S="");var b=S.match(r);if(!b)return null;var k=(""+b[0]).match(i)||["-",0,0],R=k[0],E=60*+k[1]+ +k[2];return E===0?0:R==="+"?E:-E}(d),d===null))return this;var y=Math.abs(d)<=16?60*d:d;if(y===0)return this.utc(m);var C=this.clone();if(m)return C.$offset=y,C.$u=!1,C;var $=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(C=this.local().add(y+$,n)).$offset=y,C.$x.$localOffset=$,C};var c=s.format;s.format=function(d){var m=d||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.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 u=s.toDate;s.toDate=function(d){return d==="s"&&this.$offset?g(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():u.call(this)};var l=s.diff;s.diff=function(d,m,v){if(d&&this.$u===d.$u)return l.call(this,d,m,v);var y=this.local(),C=g(d).local();return l.call(y,C,m,v)}}})}(Qi)),Qi.exports}var iL=rL();const oL=_r(iL),sL=[{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 aL(e){return sL.find(n=>n.code===e)}is.extend(QT);is.extend(tL);is.extend(oL);function Sg(e){const t=aL(e);if(t)return{lat:t.lat,long:t.long}}function lL(e){if(e.loc){const t=e.loc.split(",");if(t.length===2){const n=t[0],r=t[1];return!n||!r?void 0:{lat:parseFloat(n),long:parseFloat(r)}}}return Sg(e.countryCode)}const cL={class:"block"},uL={class:"is-size-2"},hL={class:"is-clearfix"},fL={class:"columns"},dL={key:0,class:"column is-half"},pL={key:0},gL={class:"is-size-4"},mL={class:"has-text-grey"},vL=["src"],yL={key:1},bL=["src"],wL={class:"column"},SL={class:"table is-fullwidth is-completely-borderless"},$L={key:0},_L={class:"help"},CL={class:"block"},xL={class:"block"},AL={key:0,class:"block"},kL={key:1,class:"block"},EL={key:2,class:"block"},ML={key:3,class:"block"},TL={key:4,class:"block"},LL={key:5,class:"block"},RL={key:6,class:"block"},IL=ve({__name:"ArtifactDetail",props:{artifact:{type:Object,required:!0}},emits:["delete","refresh"],setup(e,{emit:t}){const n=e,r=t,i=Ne(),h=Ne(),f=Ne(),g=Ne(),s=m=>{f.value=m},p=()=>{f.value=void 0},o=()=>{r("delete")},a=m=>{m.queued?g.value=m:r("refresh")},c=()=>{g.value=void 0},u=ye(()=>{if(n.artifact.dataType==="domain")return`https://urlscan.io/liveshot/?url=${`http://${n.artifact.data}`}`;if(n.artifact.dataType==="url")return`https://urlscan.io/liveshot/?url=${n.artifact.data}`}),l=m=>{if(m)return`https://maps.google.co.jp/maps?output=embed&q=${m.lat},${m.long}&z=3`},d=hk();return qe(async()=>{if(n.artifact.dataType==="ip"){let m;if(n.artifact.geolocation)m=Sg(n.artifact.geolocation.countryCode);else{const v=await d.perform(n.artifact.data);m=lL(v),h.value=v.countryCode}i.value=l(m)}}),(m,v)=>(K(),re(Me,null,[f.value?(K(),me(at,{key:0,class:"block",error:f.value,disposable:!0,onDispose:p},null,8,["error"])):fe("",!0),g.value?(K(),me(ns,{key:1,class:"block",message:g.value,disposable:!0,onDispose:c},null,8,["message"])):fe("",!0),P("div",cL,[P("h2",uL,pe(e.artifact.id),1),P("p",hL,[ie(yg,{artifact:e.artifact,onDelete:o,onSetError:s,onSetMessage:a},null,8,["artifact"])])]),P("div",fL,[i.value||u.value?(K(),re("div",dL,[i.value?(K(),re("div",pL,[P("h4",gL,[v[0]||(v[0]=Ze(" Geolocation ",-1)),P("span",mL,pe(h.value||e.artifact.geolocation?.countryCode),1)]),P("iframe",{class:"mb-4",src:i.value,width:"100%",height:"240px"},null,8,vL)])):fe("",!0),u.value?(K(),re("div",yL,[v[1]||(v[1]=P("h4",{class:"is-size-4"},"Live screenshot",-1)),v[2]||(v[2]=P("p",{class:"help"},"Hover to expand",-1)),P("img",{src:u.value,class:"liveshot",alt:"liveshot"},null,8,bL)])):fe("",!0)])):fe("",!0),P("div",wL,[v[9]||(v[9]=P("h4",{class:"is-size-4"},"Information",-1)),P("table",SL,[P("tr",null,[v[3]||(v[3]=P("th",null,"Data",-1)),P("td",null,pe(oe(ei)(e.artifact.data,64)),1)]),P("tr",null,[v[4]||(v[4]=P("th",null,"Data type",-1)),P("td",null,pe(e.artifact.dataType),1)]),P("tr",null,[v[5]||(v[5]=P("th",null,"Source",-1)),P("td",null,pe(e.artifact.source),1)]),P("tr",null,[v[6]||(v[6]=P("th",null,"Query",-1)),P("td",null,pe(oe(ei)(e.artifact.query||"N/A",64)),1)]),e.artifact.tags.length>0?(K(),re("tr",$L,[v[8]||(v[8]=P("th",null,"Tags",-1)),P("td",null,[ie(yi,{tags:e.artifact.tags,"navigate-to":"Artifacts"},null,8,["tags"]),v[7]||(v[7]=Ze("/td>",-1))])])):fe("",!0)]),P("p",_L,"Created at: "+pe(e.artifact.createdAt),1)])]),P("div",CL,[ie(UT,{data:e.artifact.data,type:e.artifact.dataType},null,8,["data","type"])]),P("div",xL,[e.artifact.autonomousSystem?(K(),re("div",AL,[v[10]||(v[10]=P("h4",{class:"is-size-4 mb-2"},"AS",-1)),ie(DM,{autonomousSystem:e.artifact.autonomousSystem},null,8,["autonomousSystem"])])):fe("",!0),e.artifact.reverseDnsNames?(K(),re("div",kL,[v[11]||(v[11]=P("h4",{class:"is-size-4 mb-2"},"Reverse DNS",-1)),ie(GM,{reverseDnsNames:e.artifact.reverseDnsNames},null,8,["reverseDnsNames"])])):fe("",!0),e.artifact.dnsRecords?(K(),re("div",EL,[v[12]||(v[12]=P("h4",{class:"is-size-4 mb-2"},"DNS records",-1)),ie(BM,{dnsRecords:e.artifact.dnsRecords},null,8,["dnsRecords"])])):fe("",!0),e.artifact.cpes?(K(),re("div",ML,[v[13]||(v[13]=P("h4",{class:"is-size-4 mb-2"},"CPEs",-1)),ie(PM,{cpes:e.artifact.cpes},null,8,["cpes"])])):fe("",!0),e.artifact.vulnerabilities?(K(),re("div",TL,[v[14]||(v[14]=P("h4",{class:"is-size-4 mb-2"},"Vulnerabilities",-1)),ie(YM,{vulnerabilities:e.artifact.vulnerabilities},null,8,["vulnerabilities"])])):fe("",!0),e.artifact.ports?(K(),re("div",LL,[v[15]||(v[15]=P("h4",{class:"is-size-4 mb-2"},"Ports",-1)),ie(UM,{ports:e.artifact.ports},null,8,["ports"])])):fe("",!0),e.artifact.whoisRecord?(K(),re("div",RL,[v[16]||(v[16]=P("h4",{class:"is-size-4 mb-2"},"Whois record",-1)),ie(lT,{whoisRecord:e.artifact.whoisRecord},null,8,["whoisRecord"])])):fe("",!0)])],64))}}),OL=hi(IL,[["__scopeId","data-v-aadb0460"]]),NL=ve({__name:"ArtifactDetailWrapper",props:{id:{type:Number,required:!0}},setup(e){const t=e,n=lk(),r=wr(),i=async()=>{await n.perform(t.id)},h=async()=>{await i()},f=async()=>{r.push("/")};return qe(async()=>{await i()}),Fe(t,async()=>{await i()}),(g,s)=>(K(),re(Me,null,[oe(n).isRunning?(K(),me(pn,{key:0})):fe("",!0),oe(n).isError?(K(),me(at,{key:1,error:oe(n).last?.error},null,8,["error"])):fe("",!0),oe(n).last?.value?(K(),me(OL,{key:2,artifact:oe(n).last.value,onRefresh:h,onDelete:f},null,8,["artifact"])):fe("",!0)],64))}}),DL=ve({__name:"ArtifactView",props:{id:{type:String,required:!0}},setup(e){const t=e,n=()=>{dn(`Artifact:${t.id} - Mihari`)};return qe(()=>{n()}),Fe(()=>t.id,()=>{n()}),(r,i)=>(K(),me(NL,{id:parseInt(e.id)},null,8,["id"]))}}),FL={class:"box"},PL={class:"table-container"},zL={class:"table is-fullwidth"},WL={key:0,class:"button is-success is-small ml-1"},jL={class:"icon is-small"},BL={key:1,class:"button is-warning is-small ml-1"},HL={class:"icon is-small"},UL={class:"field is-grouped is-grouped-multiline"},VL={class:"tags has-addons"},GL={class:"tag is-dark"},ZL=ve({__name:"ConfigsItem",props:{configs:{type:Object,required:!0}},setup(e){return(t,n)=>{const r=De("font-awesome-icon");return K(),re("div",FL,[P("div",PL,[P("table",zL,[n[2]||(n[2]=P("thead",null,[P("tr",null,[P("th",null,"Name"),P("th",null,"Type"),P("th",null,"Configured?"),P("th",null,"Items")])],-1)),P("tbody",null,[(K(!0),re(Me,null,Tt(e.configs.results,i=>(K(),re("tr",{key:i.name},[P("td",null,pe(i.name),1),P("td",null,pe(i.type),1),P("td",null,[i.configured?(K(),re("button",WL,[P("span",jL,[ie(r,{icon:"check"})]),n[0]||(n[0]=P("span",null,"Yes",-1))])):(K(),re("button",BL,[P("span",HL,[ie(r,{icon:"exclamation"})]),n[1]||(n[1]=P("span",null,"No",-1))]))]),P("td",null,[P("div",UL,[(K(!0),re(Me,null,Tt(i.items,(h,f)=>(K(),re("div",{class:"control",key:f},[P("div",VL,[P("span",GL,pe(h.key),1),P("span",{class:si(["tag",{"is-success":h.value,"is-warning":!h.value}])},pe(h.value||"N/A"),3)])]))),128))])])]))),128))])])])])}}}),YL=ve({__name:"ConfigsWrapper",setup(e){const t=uk();return qe(async()=>{await t.perform()}),(n,r)=>(K(),re(Me,null,[oe(t).isRunning?(K(),me(pn,{key:0})):fe("",!0),oe(t).isError?(K(),me(at,{key:1,error:oe(t).last?.error},null,8,["error"])):fe("",!0),oe(t).last?.value?(K(),me(ZL,{key:2,configs:oe(t).last.value},null,8,["configs"])):fe("",!0)],64))}}),KL=ve({__name:"ConfigView",setup(e){return dn("Configuration - Mihari"),(t,n)=>(K(),me(YL))}});var zs={exports:{}},yh;function XL(){return yh||(yh=1,function(e,t){(function(){var n="ace",r=function(){return this}();!r&&typeof window<"u"&&(r=window);var i=function(o,a,c){if(typeof o!="string"){i.original?i.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(c=a),i.modules[o]||(i.payloads[o]=c,i.modules[o]=null)};i.modules={},i.payloads={};var h=function(o,a,c){if(typeof a=="string"){var u=s(o,a);if(u!=null)return c&&c(),u}else if(Object.prototype.toString.call(a)==="[object Array]"){for(var l=[],d=0,m=a.length;d<m;++d){var v=s(o,a[d]);if(v==null&&f.original)return;l.push(v)}return c&&c.apply(null,l)||!0}},f=function(o,a){var c=h("",o,a);return c==null&&f.original?f.original.apply(this,arguments):c},g=function(o,a){if(a.indexOf("!")!==-1){var c=a.split("!");return g(o,c[0])+"!"+g(o,c[1])}if(a.charAt(0)=="."){var u=o.split("/").slice(0,-1).join("/");for(a=u+"/"+a;a.indexOf(".")!==-1&&l!=a;){var l=a;a=a.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return a},s=function(o,a){a=g(o,a);var c=i.modules[a];if(!c){if(c=i.payloads[a],typeof c=="function"){var u={},l={id:a,uri:"",exports:u,packaged:!0},d=function(v,y){return h(a,v,y)},m=c(d,u,l);u=m||l.exports,i.modules[a]=u,delete i.payloads[a]}c=i.modules[a]=u||c}return c};function p(o){var a=r;r[o]||(r[o]={}),a=r[o],(!a.define||!a.define.packaged)&&(i.original=a.define,a.define=i,a.define.packaged=!0),(!a.require||!a.require.packaged)&&(f.original=a.require,a.require=f,a.require.packaged=!0)}p(n)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(n,r,i){function h(f,g,s){Object.defineProperty(f,g,{value:s,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||h(String.prototype,"startsWith",function(f,g){return g=g||0,this.lastIndexOf(f,g)===g}),String.prototype.endsWith||h(String.prototype,"endsWith",function(f,g){var s=this;(g===void 0||g>s.length)&&(g=s.length),g-=f.length;var p=s.indexOf(f,g);return p!==-1&&p===g}),String.prototype.repeat||h(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||h(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 p=arguments[s];p!=null&&Object.keys(p).forEach(function(o){g[o]=p[o]})}return g}),Object.values||(Object.values=function(f){return Object.keys(f).map(function(g){return f[g]})}),Array.prototype.find||h(Array.prototype,"find",function(f){for(var g=this.length,s=arguments[1],p=0;p<g;p++){var o=this[p];if(f.call(s,o,p,this))return o}}),Array.prototype.findIndex||h(Array.prototype,"findIndex",function(f){for(var g=this.length,s=arguments[1],p=0;p<g;p++){var o=this[p];if(f.call(s,o,p,this))return p}}),Array.prototype.includes||h(Array.prototype,"includes",function(f,g){return this.indexOf(f,g)!=-1}),Array.prototype.fill||h(Array.prototype,"fill",function(f){for(var g=this,s=g.length>>>0,p=arguments[1],o=p>>0,a=o<0?Math.max(s+o,0):Math.min(o,s),c=arguments[2],u=c===void 0?s:c>>0,l=u<0?Math.max(s+u,0):Math.min(u,s);a<l;)g[a]=f,a++;return g}),Array.of||h(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(n,r,i){n("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(n,r,i){r.deepCopy=function h(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]=h(f[s]);return g}if(Object.prototype.toString.call(f)!=="[object Object]")return f;g={};for(var s in f)g[s]=h(f[s]);return g}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(n,r,i){r.last=function(g){return g[g.length-1]},r.stringReverse=function(g){return g.split("").reverse().join("")},r.stringRepeat=function(g,s){for(var p="";s>0;)s&1&&(p+=g),(s>>=1)&&(g+=g);return p};var h=/^\s\s*/,f=/\s\s*$/;r.stringTrimLeft=function(g){return g.replace(h,"")},r.stringTrimRight=function(g){return g.replace(f,"")},r.copyObject=function(g){var s={};for(var p in g)s[p]=g[p];return s},r.copyArray=function(g){for(var s=[],p=0,o=g.length;p<o;p++)g[p]&&typeof g[p]=="object"?s[p]=this.copyObject(g[p]):s[p]=g[p];return s},r.deepCopy=n("./deep_copy").deepCopy,r.arrayToMap=function(g){for(var s={},p=0;p<g.length;p++)s[g[p]]=1;return s},r.createMap=function(g){var s=Object.create(null);for(var p in g)s[p]=g[p];return s},r.arrayRemove=function(g,s){for(var p=0;p<=g.length;p++)s===g[p]&&g.splice(p,1)},r.escapeRegExp=function(g){return g.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},r.escapeHTML=function(g){return(""+g).replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},r.getMatchOffsets=function(g,s){var p=[];return g.replace(s,function(o){p.push({offset:arguments[arguments.length-2],length:o.length})}),p},r.deferredCall=function(g){var s=null,p=function(){s=null,g()},o=function(a){return o.cancel(),s=setTimeout(p,a||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},r.delayedCall=function(g,s){var p=null,o=function(){p=null,g()},a=function(c){p==null&&(p=setTimeout(o,c||s))};return a.delay=function(c){p&&clearTimeout(p),p=setTimeout(o,c||s)},a.schedule=a,a.call=function(){this.cancel(),g()},a.cancel=function(){p&&clearTimeout(p),p=null},a.isPending=function(){return p},a},r.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},r.skipEmptyMatch=function(g,s,p){return p&&g.codePointAt(s)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(n,r,i){r.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},r.getOS=function(){return r.isMac?r.OS.MAC:r.isLinux?r.OS.LINUX:r.OS.WINDOWS};var h=typeof navigator=="object"?navigator:{},f=(/mac|win|linux/i.exec(h.platform)||["other"])[0].toLowerCase(),g=h.userAgent||"",s=h.appName||"";r.isWin=f=="win",r.isMac=f=="mac",r.isLinux=f=="linux",r.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]),r.isOldIE=r.isIE&&r.isIE<9,r.isGecko=r.isMozilla=g.match(/ Gecko\/\d+/),r.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",r.isWebKit=parseFloat(g.split("WebKit/")[1])||void 0,r.isChrome=parseFloat(g.split(" Chrome/")[1])||void 0,r.isSafari=parseFloat(g.split(" Safari/")[1])&&!r.isChrome||void 0,r.isEdge=parseFloat(g.split(" Edge/")[1])||void 0,r.isAIR=g.indexOf("AdobeAIR")>=0,r.isAndroid=g.indexOf("Android")>=0,r.isChromeOS=g.indexOf(" CrOS ")>=0,r.isIOS=/iPad|iPhone|iPod/.test(g)&&!window.MSStream,r.isIOS&&(r.isMac=!0),r.isMobile=r.isIOS||r.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(n,r,i){var h=n("./useragent"),f="http://www.w3.org/1999/xhtml";r.buildDom=function c(u,l,d){if(typeof u=="string"&&u){var m=document.createTextNode(u);return l&&l.appendChild(m),m}if(!Array.isArray(u))return u&&u.appendChild&&l&&l.appendChild(u),u;if(typeof u[0]!="string"||!u[0]){for(var v=[],y=0;y<u.length;y++){var C=c(u[y],l,d);C&&v.push(C)}return v}var $=document.createElement(u[0]),S=u[1],b=1;S&&typeof S=="object"&&!Array.isArray(S)&&(b=2);for(var y=b;y<u.length;y++)c(u[y],$,d);return b==2&&Object.keys(S).forEach(function(k){var R=S[k];k==="class"?$.className=Array.isArray(R)?R.join(" "):R:typeof R=="function"||k=="value"||k[0]=="$"?$[k]=R:k==="ref"?d&&(d[R]=$):k==="style"?typeof R=="string"&&($.style.cssText=R):R!=null&&$.setAttribute(k,R)}),l&&l.appendChild($),$},r.getDocumentHead=function(c){return c||(c=document),c.head||c.getElementsByTagName("head")[0]||c.documentElement},r.createElement=function(c,u){return document.createElementNS?document.createElementNS(u||f,c):document.createElement(c)},r.removeChildren=function(c){c.innerHTML=""},r.createTextNode=function(c,u){var l=u?u.ownerDocument:document;return l.createTextNode(c)},r.createFragment=function(c){var u=c?c.ownerDocument:document;return u.createDocumentFragment()},r.hasCssClass=function(c,u){var l=(c.className+"").split(/\s+/g);return l.indexOf(u)!==-1},r.addCssClass=function(c,u){r.hasCssClass(c,u)||(c.className+=" "+u)},r.removeCssClass=function(c,u){for(var l=c.className.split(/\s+/g);;){var d=l.indexOf(u);if(d==-1)break;l.splice(d,1)}c.className=l.join(" ")},r.toggleCssClass=function(c,u){for(var l=c.className.split(/\s+/g),d=!0;;){var m=l.indexOf(u);if(m==-1)break;d=!1,l.splice(m,1)}return d&&l.push(u),c.className=l.join(" "),d},r.setCssClass=function(c,u,l){l?r.addCssClass(c,u):r.removeCssClass(c,u)},r.hasCssString=function(c,u){var l=0,d;if(u=u||document,d=u.querySelectorAll("style")){for(;l<d.length;)if(d[l++].id===c)return!0}},r.removeElementById=function(c,u){u=u||document,u.getElementById(c)&&u.getElementById(c).remove()};var g,s=[];r.useStrictCSP=function(c){g=c,c==!1?p():s||(s=[])};function p(){var c=s;s=null,c&&c.forEach(function(u){o(u[0],u[1])})}function o(c,u,l){if(!(typeof document>"u")){if(s){if(l)p();else if(l===!1)return s.push([c,u])}if(!g){var d=l;!l||!l.getRootNode?d=document:(d=l.getRootNode(),(!d||d==l)&&(d=document));var m=d.ownerDocument||d;if(u&&r.hasCssString(u,d))return null;u&&(c+=`
628
+ /*# sourceURL=ace/css/`+u+" */");var v=r.createElement("style");v.appendChild(m.createTextNode(c)),u&&(v.id=u),d==m&&(d=r.getDocumentHead(m)),d.insertBefore(v,d.firstChild)}}}if(r.importCssString=o,r.importCssStylsheet=function(c,u){r.buildDom(["link",{rel:"stylesheet",href:c}],r.getDocumentHead(u))},r.scrollbarWidth=function(c){var u=r.createElement("ace_inner");u.style.width="100%",u.style.minWidth="0px",u.style.height="200px",u.style.display="block";var l=r.createElement("ace_outer"),d=l.style;d.position="absolute",d.left="-10000px",d.overflow="hidden",d.width="200px",d.minWidth="0px",d.height="150px",d.display="block",l.appendChild(u);var m=c&&c.documentElement||document&&document.documentElement;if(!m)return 0;m.appendChild(l);var v=u.offsetWidth;d.overflow="scroll";var y=u.offsetWidth;return v===y&&(y=l.clientWidth),m.removeChild(l),v-y},r.computedStyle=function(c,u){return window.getComputedStyle(c,"")||{}},r.setStyle=function(c,u,l){c[u]!==l&&(c[u]=l)},r.HAS_CSS_ANIMATION=!1,r.HAS_CSS_TRANSFORMS=!1,r.HI_DPI=h.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,h.isChromeOS&&(r.HI_DPI=!1),typeof document<"u"){var a=document.createElement("div");r.HI_DPI&&a.style.transform!==void 0&&(r.HAS_CSS_TRANSFORMS=!0),!h.isEdge&&typeof a.style.animationName<"u"&&(r.HAS_CSS_ANIMATION=!0),a=null}r.HAS_CSS_TRANSFORMS?r.translate=function(c,u,l){c.style.transform="translate("+Math.round(u)+"px, "+Math.round(l)+"px)"}:r.translate=function(c,u,l){c.style.top=Math.round(l)+"px",c.style.left=Math.round(u)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(n,r,i){/*
629
+ * based on code from:
630
+ *
631
+ * @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
632
+ * Available via the MIT or new BSD license.
633
+ * see: http://github.com/jrburke/requirejs for details
634
+ */var h=n("./dom");r.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)},r.loadScript=function(f,g){var s=h.getDocumentHead(),p=document.createElement("script");p.src=f,s.appendChild(p),p.onload=p.onreadystatechange=function(o,a){(a||!p.readyState||p.readyState=="loaded"||p.readyState=="complete")&&(p=p.onload=p.onreadystatechange=null,a||g())}},r.qualifyURL=function(f){var g=document.createElement("a");return g.href=f,g.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(n,r,i){r.inherits=function(h,f){h.super_=f,h.prototype=Object.create(f.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}})},r.mixin=function(h,f){for(var g in f)h[g]=f[g];return h},r.implement=function(h,f){r.mixin(h,f)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(n,r,i){var h={},f=function(){this.propagationStopped=!0},g=function(){this.defaultPrevented=!0};h._emit=h._dispatchEvent=function(s,p){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var o=this._eventRegistry[s]||[],a=this._defaultHandlers[s];if(!(!o.length&&!a)){(typeof p!="object"||!p)&&(p={}),p.type||(p.type=s),p.stopPropagation||(p.stopPropagation=f),p.preventDefault||(p.preventDefault=g),o=o.slice();for(var c=0;c<o.length&&(o[c](p,this),!p.propagationStopped);c++);if(a&&!p.defaultPrevented)return a(p,this)}},h._signal=function(s,p){var o=(this._eventRegistry||{})[s];if(o){o=o.slice();for(var a=0;a<o.length;a++)o[a](p,this)}},h.once=function(s,p){var o=this;if(this.on(s,function a(){o.off(s,a),p.apply(null,arguments)}),!p)return new Promise(function(a){p=a})},h.setDefaultHandler=function(s,p){var o=this._defaultHandlers;if(o||(o=this._defaultHandlers={_disabled_:{}}),o[s]){var a=o[s],c=o._disabled_[s];c||(o._disabled_[s]=c=[]),c.push(a);var u=c.indexOf(p);u!=-1&&c.splice(u,1)}o[s]=p},h.removeDefaultHandler=function(s,p){var o=this._defaultHandlers;if(o){var a=o._disabled_[s];if(o[s]==p)a&&this.setDefaultHandler(s,a.pop());else if(a){var c=a.indexOf(p);c!=-1&&a.splice(c,1)}}},h.on=h.addEventListener=function(s,p,o){this._eventRegistry=this._eventRegistry||{};var a=this._eventRegistry[s];return a||(a=this._eventRegistry[s]=[]),a.indexOf(p)==-1&&a[o?"unshift":"push"](p),p},h.off=h.removeListener=h.removeEventListener=function(s,p){this._eventRegistry=this._eventRegistry||{};var o=this._eventRegistry[s];if(o){var a=o.indexOf(p);a!==-1&&o.splice(a,1)}},h.removeAllListeners=function(s){s||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[s]=void 0),this._defaultHandlers&&(this._defaultHandlers[s]=void 0)},r.EventEmitter=h}),ace.define("ace/lib/report_error",["require","exports","module"],function(n,r,i){r.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/default_english_messages",["require","exports","module"],function(n,r,i){var h={"autocomplete.popup.aria-roledescription":"Autocomplete suggestions","autocomplete.popup.aria-label":"Autocomplete suggestions","autocomplete.popup.item.aria-roledescription":"item","autocomplete.loading":"Loading...","editor.scroller.aria-roledescription":"editor","editor.scroller.aria-label":"Editor content, press Enter to start editing, press Escape to exit","editor.gutter.aria-roledescription":"editor gutter","editor.gutter.aria-label":"Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit","error-marker.good-state":"Looks good!","prompt.recently-used":"Recently used","prompt.other-commands":"Other commands","prompt.no-matching-commands":"No matching commands","search-box.find.placeholder":"Search for","search-box.find-all.text":"All","search-box.replace.placeholder":"Replace with","search-box.replace-next.text":"Replace","search-box.replace-all.text":"All","search-box.toggle-replace.title":"Toggle Replace mode","search-box.toggle-regexp.title":"RegExp Search","search-box.toggle-case.title":"CaseSensitive Search","search-box.toggle-whole-word.title":"Whole Word Search","search-box.toggle-in-selection.title":"Search In Selection","search-box.search-counter":"$0 of $1","text-input.aria-roledescription":"editor","text-input.aria-label":"Cursor at row $0","gutter.code-folding.range.aria-label":"Toggle code folding, rows $0 through $1","gutter.code-folding.closed.aria-label":"Toggle code folding, rows $0 through $1","gutter.code-folding.open.aria-label":"Toggle code folding, row $0","gutter.code-folding.closed.title":"Unfold code","gutter.code-folding.open.title":"Fold code","gutter.annotation.aria-label.error":"Error, read annotations row $0","gutter.annotation.aria-label.warning":"Warning, read annotations row $0","gutter.annotation.aria-label.info":"Info, read annotations row $0","inline-fold.closed.title":"Unfold code","gutter-tooltip.aria-label.error.singular":"error","gutter-tooltip.aria-label.error.plural":"errors","gutter-tooltip.aria-label.warning.singular":"warning","gutter-tooltip.aria-label.warning.plural":"warnings","gutter-tooltip.aria-label.info.singular":"information message","gutter-tooltip.aria-label.info.plural":"information messages","gutter.annotation.aria-label.security":"Security finding, read annotations row $0","gutter.annotation.aria-label.hint":"Suggestion, read annotations row $0","gutter-tooltip.aria-label.security.singular":"security finding","gutter-tooltip.aria-label.security.plural":"security findings","gutter-tooltip.aria-label.hint.singular":"suggestion","gutter-tooltip.aria-label.hint.plural":"suggestions","editor.tooltip.disable-editing":"Editing is disabled"};r.defaultEnglishMessages=h}),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/report_error","ace/lib/default_english_messages"],function(n,r,i){"no use strict";var h=n("./oop"),f=n("./event_emitter").EventEmitter,g=n("./report_error").reportError,s=n("./default_english_messages").defaultEnglishMessages,p={setOptions:function(l){Object.keys(l).forEach(function(d){this.setOption(d,l[d])},this)},getOptions:function(l){var d={};if(l)Array.isArray(l)||(l=Object.keys(l));else{var m=this.$options;l=Object.keys(m).filter(function(v){return!m[v].hidden})}return l.forEach(function(v){d[v]=this.getOption(v)},this),d},setOption:function(l,d){if(this["$"+l]!==d){var m=this.$options[l];if(!m)return o('misspelled option "'+l+'"');if(m.forwardTo)return this[m.forwardTo]&&this[m.forwardTo].setOption(l,d);m.handlesSet||(this["$"+l]=d),m&&m.set&&m.set.call(this,d)}},getOption:function(l){var d=this.$options[l];return d?d.forwardTo?this[d.forwardTo]&&this[d.forwardTo].getOption(l):d&&d.get?d.get.call(this):this["$"+l]:o('misspelled option "'+l+'"')}};function o(l){typeof console<"u"&&console.warn&&console.warn.apply(console,arguments)}var a,c,u=function(){function l(){this.$defaultOptions={},a=s,c="dollarSigns"}return l.prototype.defineOptions=function(d,m,v){return d.$options||(this.$defaultOptions[m]=d.$options={}),Object.keys(v).forEach(function(y){var C=v[y];typeof C=="string"&&(C={forwardTo:C}),C.name||(C.name=y),d.$options[C.name]=C,"initialValue"in C&&(d["$"+C.name]=C.initialValue)}),h.implement(d,p),this},l.prototype.resetOptions=function(d){Object.keys(d.$options).forEach(function(m){var v=d.$options[m];"value"in v&&d.setOption(m,v.value)})},l.prototype.setDefaultValue=function(d,m,v){if(!d){for(d in this.$defaultOptions)if(this.$defaultOptions[d][m])break;if(!this.$defaultOptions[d][m])return!1}var y=this.$defaultOptions[d]||(this.$defaultOptions[d]={});y[m]&&(y.forwardTo?this.setDefaultValue(y.forwardTo,m,v):y[m].value=v)},l.prototype.setDefaultValues=function(d,m){Object.keys(m).forEach(function(v){this.setDefaultValue(d,v,m[v])},this)},l.prototype.setMessages=function(d,m){a=d,m&&m.placeholders&&(c=m.placeholders)},l.prototype.nls=function(d,m,v){a[d]||(o("No message found for the key '"+d+"' in messages with id "+a.$id+", trying to find a translation for the default string '"+m+"'."),a[m]||o("No message found for the default string '"+m+"' in the provided messages. Falling back to the default English message."));var y=a[d]||a[m]||m;return v&&(c==="dollarSigns"&&(y=y.replace(/\$(\$|[\d]+)/g,function(C,$){return $=="$"?"$":v[$]})),c==="curlyBrackets"&&(y=y.replace(/\{([^\}]+)\}/g,function(C,$){return v[$]}))),y},l}();u.prototype.warn=o,u.prototype.reportError=g,h.implement(u.prototype,f),r.AppConfig=u}),ace.define("ace/theme/textmate-css",["require","exports","module"],function(n,r,i){i.exports=`.ace-tm .ace_gutter {
635
+ background: #f0f0f0;
636
+ color: #333;
637
+ }
638
+
639
+ .ace-tm .ace_print-margin {
640
+ width: 1px;
641
+ background: #e8e8e8;
642
+ }
643
+
644
+ .ace-tm .ace_fold {
645
+ background-color: #6B72E6;
646
+ }
647
+
648
+ .ace-tm {
649
+ background-color: #FFFFFF;
650
+ color: black;
651
+ }
652
+
653
+ .ace-tm .ace_cursor {
654
+ color: black;
655
+ }
656
+
657
+ .ace-tm .ace_invisible {
658
+ color: rgb(191, 191, 191);
659
+ }
660
+
661
+ .ace-tm .ace_storage,
662
+ .ace-tm .ace_keyword {
663
+ color: blue;
664
+ }
665
+
666
+ .ace-tm .ace_constant {
667
+ color: rgb(197, 6, 11);
668
+ }
669
+
670
+ .ace-tm .ace_constant.ace_buildin {
671
+ color: rgb(88, 72, 246);
672
+ }
673
+
674
+ .ace-tm .ace_constant.ace_language {
675
+ color: rgb(88, 92, 246);
676
+ }
677
+
678
+ .ace-tm .ace_constant.ace_library {
679
+ color: rgb(6, 150, 14);
680
+ }
681
+
682
+ .ace-tm .ace_invalid {
683
+ background-color: rgba(255, 0, 0, 0.1);
684
+ color: red;
685
+ }
686
+
687
+ .ace-tm .ace_support.ace_function {
688
+ color: rgb(60, 76, 114);
689
+ }
690
+
691
+ .ace-tm .ace_support.ace_constant {
692
+ color: rgb(6, 150, 14);
693
+ }
694
+
695
+ .ace-tm .ace_support.ace_type,
696
+ .ace-tm .ace_support.ace_class {
697
+ color: rgb(109, 121, 222);
698
+ }
699
+
700
+ .ace-tm .ace_keyword.ace_operator {
701
+ color: rgb(104, 118, 135);
702
+ }
703
+
704
+ .ace-tm .ace_string {
705
+ color: rgb(3, 106, 7);
706
+ }
707
+
708
+ .ace-tm .ace_comment {
709
+ color: rgb(76, 136, 107);
710
+ }
711
+
712
+ .ace-tm .ace_comment.ace_doc {
713
+ color: rgb(0, 102, 255);
714
+ }
715
+
716
+ .ace-tm .ace_comment.ace_doc.ace_tag {
717
+ color: rgb(128, 159, 191);
718
+ }
719
+
720
+ .ace-tm .ace_constant.ace_numeric {
721
+ color: rgb(0, 0, 205);
722
+ }
723
+
724
+ .ace-tm .ace_variable {
725
+ color: rgb(49, 132, 149);
726
+ }
727
+
728
+ .ace-tm .ace_xml-pe {
729
+ color: rgb(104, 104, 91);
730
+ }
731
+
732
+ .ace-tm .ace_entity.ace_name.ace_function {
733
+ color: #0000A2;
734
+ }
735
+
736
+
737
+ .ace-tm .ace_heading {
738
+ color: rgb(12, 7, 255);
739
+ }
740
+
741
+ .ace-tm .ace_list {
742
+ color:rgb(185, 6, 144);
743
+ }
744
+
745
+ .ace-tm .ace_meta.ace_tag {
746
+ color:rgb(0, 22, 142);
747
+ }
748
+
749
+ .ace-tm .ace_string.ace_regex {
750
+ color: rgb(255, 0, 0)
751
+ }
752
+
753
+ .ace-tm .ace_marker-layer .ace_selection {
754
+ background: rgb(181, 213, 255);
755
+ }
756
+ .ace-tm.ace_multiselect .ace_selection.ace_start {
757
+ box-shadow: 0 0 3px 0px white;
758
+ }
759
+ .ace-tm .ace_marker-layer .ace_step {
760
+ background: rgb(252, 255, 0);
761
+ }
762
+
763
+ .ace-tm .ace_marker-layer .ace_stack {
764
+ background: rgb(164, 229, 101);
765
+ }
766
+
767
+ .ace-tm .ace_marker-layer .ace_bracket {
768
+ margin: -1px 0 0 -1px;
769
+ border: 1px solid rgb(192, 192, 192);
770
+ }
771
+
772
+ .ace-tm .ace_marker-layer .ace_active-line {
773
+ background: rgba(0, 0, 0, 0.07);
774
+ }
775
+
776
+ .ace-tm .ace_gutter-active-line {
777
+ background-color : #dcdcdc;
778
+ }
779
+
780
+ .ace-tm .ace_marker-layer .ace_selected-word {
781
+ background: rgb(250, 250, 255);
782
+ border: 1px solid rgb(200, 200, 250);
783
+ }
784
+
785
+ .ace-tm .ace_indent-guide {
786
+ background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
787
+ }
788
+
789
+ .ace-tm .ace_indent-guide-active {
790
+ background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
791
+ }
792
+ `}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(n,r,i){r.isDark=!1,r.cssClass="ace-tm",r.cssText=n("./textmate-css"),r.$id="ace/theme/textmate";var h=n("../lib/dom");h.importCssString(r.cssText,r.cssClass,!1)}),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/net","ace/lib/dom","ace/lib/app_config","ace/theme/textmate"],function(n,r,i){"no use strict";var h=n("./lib/lang"),f=n("./lib/net"),g=n("./lib/dom"),s=n("./lib/app_config").AppConfig;i.exports=r=new s;var p={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};r.get=function(u){if(!p.hasOwnProperty(u))throw new Error("Unknown config key: "+u);return p[u]},r.set=function(u,l){if(p.hasOwnProperty(u))p[u]=l;else if(this.setDefaultValue("",u,l)==!1)throw new Error("Unknown config key: "+u);u=="useStrictCSP"&&g.useStrictCSP(l)},r.all=function(){return h.copyObject(p)},r.$modes={},r.moduleUrl=function(u,l){if(p.$moduleUrls[u])return p.$moduleUrls[u];var d=u.split("/");l=l||d[d.length-2]||"";var m=l=="snippets"?"/":"-",v=d[d.length-1];if(l=="worker"&&m=="-"){var y=new RegExp("^"+l+"[\\-_]|[\\-_]"+l+"$","g");v=v.replace(y,"")}(!v||v==l)&&d.length>1&&(v=d[d.length-2]);var C=p[l+"Path"];return C==null?C=p.basePath:m=="/"&&(l=m=""),C&&C.slice(-1)!="/"&&(C+="/"),C+l+m+v+this.get("suffix")},r.setModuleUrl=function(u,l){return p.$moduleUrls[u]=l};var o=function(u,l){if(u==="ace/theme/textmate"||u==="./theme/textmate")return l(null,n("./theme/textmate"));if(a)return a(u,l);console.error("loader is not configured")},a;r.setLoader=function(u){a=u},r.dynamicModules=Object.create(null),r.$loading={},r.$loaded={},r.loadModule=function(u,l){var d;if(Array.isArray(u))var m=u[0],v=u[1];else if(typeof u=="string")var v=u;var y=function(C){if(C&&!r.$loading[v])return l&&l(C);if(r.$loading[v]||(r.$loading[v]=[]),r.$loading[v].push(l),!(r.$loading[v].length>1)){var $=function(){o(v,function(S,b){b&&(r.$loaded[v]=b),r._emit("load.module",{name:v,module:b});var k=r.$loading[v];r.$loading[v]=null,k.forEach(function(R){R&&R(b)})})};if(!r.get("packaged"))return $();f.loadScript(r.moduleUrl(v,m),$),c()}};if(r.dynamicModules[v])r.dynamicModules[v]().then(function(C){C.default?y(C.default):y(C)});else{try{d=this.$require(v)}catch{}y(d||r.$loaded[v])}},r.$require=function(u){if(typeof i.require=="function"){var l="require";return i[l](u)}},r.setModuleLoader=function(u,l){r.dynamicModules[u]=l};var c=function(){!p.basePath&&!p.workerPath&&!p.modePath&&!p.themePath&&!Object.keys(p.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),c=function(){})};r.version="1.43.3"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(n,r,i){n("./lib/fixoldbrowsers");var h=n("./config");h.setLoader(function(p,o){n([p],function(a){o(null,a)})});var f=function(){return this||typeof window<"u"&&window}();i.exports=function(p){h.init=g,h.$require=n,p.require=n},g(!0);function g(p){if(!(!f||!f.document)){h.set("packaged",p||n.packaged||i.packaged||f.define&&(void 0).packaged);var o={},a="",c=document.currentScript||document._currentScript,u=c&&c.ownerDocument||document;c&&c.src&&(a=c.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var l=u.getElementsByTagName("script"),d=0;d<l.length;d++){var m=l[d],v=m.src||m.getAttribute("src");if(v){for(var y=m.attributes,C=0,$=y.length;C<$;C++){var S=y[C];S.name.indexOf("data-ace-")===0&&(o[s(S.name.replace(/^data-ace-/,""))]=S.value)}var b=v.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);b&&(a=b[1])}}a&&(o.base=o.base||a,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 k in o)typeof o[k]<"u"&&h.set(k,o[k])}}function s(p){return p.replace(/-(.)/g,function(o,a){return a.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(n,r,i){var h=function(){function f(g,s,p,o){this.start={row:g,column:s},this.end={row:p,column:o}}return f.prototype.isEqual=function(g){return this.start.row===g.start.row&&this.end.row===g.end.row&&this.start.column===g.start.column&&this.end.column===g.end.column},f.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},f.prototype.contains=function(g,s){return this.compare(g,s)==0},f.prototype.compareRange=function(g){var s,p=g.end,o=g.start;return s=this.compare(p.row,p.column),s==1?(s=this.compare(o.row,o.column),s==1?2:s==0?1:0):s==-1?-2:(s=this.compare(o.row,o.column),s==-1?-1:s==1?42:0)},f.prototype.comparePoint=function(g){return this.compare(g.row,g.column)},f.prototype.containsRange=function(g){return this.comparePoint(g.start)==0&&this.comparePoint(g.end)==0},f.prototype.intersects=function(g){var s=this.compareRange(g);return s==-1||s==0||s==1},f.prototype.isEnd=function(g,s){return this.end.row==g&&this.end.column==s},f.prototype.isStart=function(g,s){return this.start.row==g&&this.start.column==s},f.prototype.setStart=function(g,s){typeof g=="object"?(this.start.column=g.column,this.start.row=g.row):(this.start.row=g,this.start.column=s)},f.prototype.setEnd=function(g,s){typeof g=="object"?(this.end.column=g.column,this.end.row=g.row):(this.end.row=g,this.end.column=s)},f.prototype.inside=function(g,s){return this.compare(g,s)==0?!(this.isEnd(g,s)||this.isStart(g,s)):!1},f.prototype.insideStart=function(g,s){return this.compare(g,s)==0?!this.isEnd(g,s):!1},f.prototype.insideEnd=function(g,s){return this.compare(g,s)==0?!this.isStart(g,s):!1},f.prototype.compare=function(g,s){return!this.isMultiLine()&&g===this.start.row?s<this.start.column?-1:s>this.end.column?1:0:g<this.start.row?-1:g>this.end.row?1:this.start.row===g?s>=this.start.column?0:-1:this.end.row===g?s<=this.end.column?0:1:0},f.prototype.compareStart=function(g,s){return this.start.row==g&&this.start.column==s?-1:this.compare(g,s)},f.prototype.compareEnd=function(g,s){return this.end.row==g&&this.end.column==s?1:this.compare(g,s)},f.prototype.compareInside=function(g,s){return this.end.row==g&&this.end.column==s?1:this.start.row==g&&this.start.column==s?-1:this.compare(g,s)},f.prototype.clipRows=function(g,s){if(this.end.row>s)var p={row:s+1,column:0};else if(this.end.row<g)var p={row:g,column:0};if(this.start.row>s)var o={row:s+1,column:0};else if(this.start.row<g)var o={row:g,column:0};return f.fromPoints(o||this.start,p||this.end)},f.prototype.extend=function(g,s){var p=this.compare(g,s);if(p==0)return this;if(p==-1)var o={row:g,column:s};else var a={row:g,column:s};return f.fromPoints(o||this.start,a||this.end)},f.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},f.prototype.isMultiLine=function(){return this.start.row!==this.end.row},f.prototype.clone=function(){return f.fromPoints(this.start,this.end)},f.prototype.collapseRows=function(){return this.end.column==0?new f(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new f(this.start.row,0,this.end.row,0)},f.prototype.toScreenRange=function(g){var s=g.documentToScreenPosition(this.start),p=g.documentToScreenPosition(this.end);return new f(s.row,s.column,p.row,p.column)},f.prototype.moveBy=function(g,s){this.start.row+=g,this.start.column+=s,this.end.row+=g,this.end.column+=s},f}();h.fromPoints=function(f,g){return new h(f.row,f.column,g.row,g.column)},h.comparePoints=function(f,g){return f.row-g.row||f.column-g.column},r.Range=h}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(n,r,i){for(var h=n("./oop"),f={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete","-13":"NumpadEnter",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",59:";",61:"=",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}},g={Command:224,Backspace:8,Tab:9,Return:13,Enter:13,Pause:19,Escape:27,PageUp:33,PageDown:34,End:35,Home:36,Insert:45,Delete:46,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Backquote:192,Minus:189,Equal:187,BracketLeft:219,Backslash:220,BracketRight:221,Semicolon:186,Quote:222,Comma:188,Period:190,Slash:191,Space:32,NumpadAdd:107,NumpadDecimal:110,NumpadSubtract:109,NumpadDivide:111,NumpadMultiply:106},s=0;s<10;s++)g["Digit"+s]=48+s,g["Numpad"+s]=96+s,f.PRINTABLE_KEYS[48+s]=""+s,f.FUNCTION_KEYS[96+s]="Numpad"+s;for(var s=65;s<91;s++){var p=String.fromCharCode(s+32);g["Key"+p.toUpperCase()]=s,f.PRINTABLE_KEYS[s]=p}for(var s=1;s<13;s++)g["F"+s]=111+s,f.FUNCTION_KEYS[111+s]="F"+s;var o={Shift:16,Control:17,Alt:18,Meta:224};for(var a in o)g[a]=g[a+"Left"]=g[a+"Right"]=o[a];r.$codeToKeyCode=g,f.PRINTABLE_KEYS[173]="-";for(var c in f.FUNCTION_KEYS){var u=f.FUNCTION_KEYS[c].toLowerCase();f[u]=parseInt(c,10)}for(var c in f.PRINTABLE_KEYS){var u=f.PRINTABLE_KEYS[c].toLowerCase();f[u]=parseInt(c,10)}h.mixin(f,f.MODIFIER_KEYS),h.mixin(f,f.PRINTABLE_KEYS),h.mixin(f,f.FUNCTION_KEYS),f.enter=f.return,f.escape=f.esc,f.del=f.delete,function(){for(var l=["cmd","ctrl","alt","shift"],d=Math.pow(2,l.length);d--;)f.KEY_MODS[d]=l.filter(function(m){return d&f.KEY_MODS[m]}).join("-")+"-"}(),f.KEY_MODS[0]="",f.KEY_MODS[-1]="input-",h.mixin(r,f),r.default=r,r.keyCodeToString=function(l){var d=f[l];return typeof d!="string"&&(d=String.fromCharCode(l)),d.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(n,r,i){var h=n("./keys"),f=n("./useragent"),g=null,s=0,p;function o(){p=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return p={passive:!1},!0}})}catch{}}function a(){return p==null&&o(),p}function c(C,$,S){this.elem=C,this.type=$,this.callback=S}c.prototype.destroy=function(){l(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var u=r.addListener=function(C,$,S,b){C.addEventListener($,S,a()),b&&b.$toDestroy.push(new c(C,$,S))},l=r.removeListener=function(C,$,S){C.removeEventListener($,S,a())};r.stopEvent=function(C){return r.stopPropagation(C),r.preventDefault(C),!1},r.stopPropagation=function(C){C.stopPropagation&&C.stopPropagation()},r.preventDefault=function(C){C.preventDefault&&C.preventDefault()},r.getButton=function(C){return C.type=="dblclick"?0:C.type=="contextmenu"||f.isMac&&C.ctrlKey&&!C.altKey&&!C.shiftKey?2:C.button},r.capture=function(C,$,S){var b=C&&C.ownerDocument||document;function k(R){$&&$(R),S&&S(R),l(b,"mousemove",$),l(b,"mouseup",k),l(b,"dragstart",k)}return u(b,"mousemove",$),u(b,"mouseup",k),u(b,"dragstart",k),k},r.addMouseWheelListener=function(C,$,S){u(C,"wheel",function(b){var k=.15,R=b.deltaX||0,E=b.deltaY||0;switch(b.deltaMode){case b.DOM_DELTA_PIXEL:b.wheelX=R*k,b.wheelY=E*k;break;case b.DOM_DELTA_LINE:var L=15;b.wheelX=R*L,b.wheelY=E*L;break;case b.DOM_DELTA_PAGE:var O=150;b.wheelX=R*O,b.wheelY=E*O;break}$(b)},S)},r.addMultiMouseDownListener=function(C,$,S,b,k){var R=0,E,L,O,M={2:"dblclick",3:"tripleclick",4:"quadclick"};function x(_){if(r.getButton(_)!==0?R=0:_.detail>1?(R++,R>4&&(R=1)):R=1,f.isIE){var w=Math.abs(_.clientX-E)>5||Math.abs(_.clientY-L)>5;(!O||w)&&(R=1),O&&clearTimeout(O),O=setTimeout(function(){O=null},$[R-1]||600),R==1&&(E=_.clientX,L=_.clientY)}if(_._clicks=R,S[b]("mousedown",_),R>4)R=0;else if(R>1)return S[b](M[R],_)}Array.isArray(C)||(C=[C]),C.forEach(function(_){u(_,"mousedown",x,k)})};function d(C){return 0|(C.ctrlKey?1:0)|(C.altKey?2:0)|(C.shiftKey?4:0)|(C.metaKey?8:0)}r.getModifierString=function(C){return h.KEY_MODS[d(C)]};function m(C,$,S){var b=d($);if(!S&&$.code&&(S=h.$codeToKeyCode[$.code]||S),!f.isMac&&g){if($.getModifierState&&($.getModifierState("OS")||$.getModifierState("Win"))&&(b|=8),g.altGr)if((3&b)!=3)g.altGr=0;else return;if(S===18||S===17){var k=$.location;if(S===17&&k===1)g[S]==1&&(s=$.timeStamp);else if(S===18&&b===3&&k===2){var R=$.timeStamp-s;R<50&&(g.altGr=!0)}}}if(S in h.MODIFIER_KEYS&&(S=-1),!(!b&&S===13&&$.location===3&&(C($,b,-S),$.defaultPrevented))){if(f.isChromeOS&&b&8){if(C($,b,S),$.defaultPrevented)return;b&=-9}return!b&&!(S in h.FUNCTION_KEYS)&&!(S in h.PRINTABLE_KEYS)?!1:C($,b,S)}}r.addCommandKeyListener=function(C,$,S){var b=null;u(C,"keydown",function(k){g[k.keyCode]=(g[k.keyCode]||0)+1;var R=m($,k,k.keyCode);return b=k.defaultPrevented,R},S),u(C,"keypress",function(k){b&&(k.ctrlKey||k.altKey||k.shiftKey||k.metaKey)&&(r.stopEvent(k),b=null)},S),u(C,"keyup",function(k){g[k.keyCode]=null},S),g||(v(),u(window,"focus",v))};function v(){g=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!f.isOldIE){var y=1;r.nextTick=function(C,$){$=$||window;var S="zero-timeout-message-"+y++,b=function(k){k.data==S&&(r.stopPropagation(k),l($,"message",b),C())};u($,"message",b),$.postMessage(S,"*")}}r.$idleBlocked=!1,r.onIdle=function(C,$){return setTimeout(function S(){r.$idleBlocked?setTimeout(S,100):C()},$)},r.$idleBlockId=null,r.blockIdle=function(C){r.$idleBlockId&&clearTimeout(r.$idleBlockId),r.$idleBlocked=!0,r.$idleBlockId=setTimeout(function(){r.$idleBlocked=!1},C||100)},r.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),r.nextFrame?r.nextFrame=r.nextFrame.bind(window):r.nextFrame=function(C){setTimeout(C,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(n,r,i){var h;i.exports={lineMode:!1,pasteCancelled:function(){return h&&h>Date.now()-50?!0:h=!1},cancel:function(){h=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/config","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(n,r,i){var h=n("../lib/event"),f=n("../config").nls,g=n("../lib/useragent"),s=n("../lib/dom"),p=n("../lib/lang"),o=n("../clipboard"),a=g.isChrome<18,c=g.isIE,u=g.isChrome>63,l=400,d=n("../lib/keys"),m=d.KEY_MODS,v=g.isIOS,y=v?/\s/:/\n/,C=g.isMobile,$=function(){function S(b,k){var R=this;this.host=k,this.text=s.createElement("textarea"),this.text.className="ace_text-input",this.text.setAttribute("wrap","off"),this.text.setAttribute("autocomplete","off"),this.text.setAttribute("autocorrect","off"),this.text.setAttribute("autocapitalize","off"),this.text.setAttribute("spellcheck","false"),this.text.style.opacity="0",b.insertBefore(this.text,b.firstChild),this.copied=!1,this.pasted=!1,this.inComposition=!1,this.sendingText=!1,this.tempStyle="",C||(this.text.style.fontSize="1px"),this.commandMode=!1,this.ignoreFocusEvents=!1,this.lastValue="",this.lastSelectionStart=0,this.lastSelectionEnd=0,this.lastRestoreEnd=0,this.rowStart=Number.MAX_SAFE_INTEGER,this.rowEnd=Number.MIN_SAFE_INTEGER,this.numberOfExtraLines=0;try{this.$isFocused=document.activeElement===this.text}catch{}this.cancelComposition=this.cancelComposition.bind(this),this.setAriaOptions({role:"textbox"}),h.addListener(this.text,"blur",function(E){R.ignoreFocusEvents||(k.onBlur(E),R.$isFocused=!1)},k),h.addListener(this.text,"focus",function(E){if(!R.ignoreFocusEvents){if(R.$isFocused=!0,g.isEdge)try{if(!document.hasFocus())return}catch{}k.onFocus(E),g.isEdge?setTimeout(R.resetSelection.bind(R)):R.resetSelection()}},k),this.$focusScroll=!1,k.on("beforeEndOperation",function(){var E=k.curOp,L=E&&E.command&&E.command.name;if(L!="insertstring"){var O=L&&(E.docChanged||E.selectionChanged);R.inComposition&&O&&(R.lastValue=R.text.value="",R.onCompositionEnd()),R.resetSelection()}}),k.on("changeSelection",this.setAriaLabel.bind(this)),this.resetSelection=v?this.$resetSelectionIOS:this.$resetSelection,this.$isFocused&&k.onFocus(),this.inputHandler=null,this.afterContextMenu=!1,h.addCommandKeyListener(this.text,function(E,L,O){if(!R.inComposition)return k.onCommandKey(E,L,O)},k),h.addListener(this.text,"select",this.onSelect.bind(this),k),h.addListener(this.text,"input",this.onInput.bind(this),k),h.addListener(this.text,"cut",this.onCut.bind(this),k),h.addListener(this.text,"copy",this.onCopy.bind(this),k),h.addListener(this.text,"paste",this.onPaste.bind(this),k),(!("oncut"in this.text)||!("oncopy"in this.text)||!("onpaste"in this.text))&&h.addListener(b,"keydown",function(E){if(!(g.isMac&&!E.metaKey||!E.ctrlKey))switch(E.keyCode){case 67:R.onCopy(E);break;case 86:R.onPaste(E);break;case 88:R.onCut(E);break}},k),this.syncComposition=p.delayedCall(this.onCompositionUpdate.bind(this),50).schedule.bind(null,null),h.addListener(this.text,"compositionstart",this.onCompositionStart.bind(this),k),h.addListener(this.text,"compositionupdate",this.onCompositionUpdate.bind(this),k),h.addListener(this.text,"keyup",this.onKeyup.bind(this),k),h.addListener(this.text,"keydown",this.syncComposition.bind(this),k),h.addListener(this.text,"compositionend",this.onCompositionEnd.bind(this),k),this.closeTimeout,h.addListener(this.text,"mouseup",this.$onContextMenu.bind(this),k),h.addListener(this.text,"mousedown",function(E){E.preventDefault(),R.onContextMenuClose()},k),h.addListener(k.renderer.scroller,"contextmenu",this.$onContextMenu.bind(this),k),h.addListener(this.text,"contextmenu",this.$onContextMenu.bind(this),k),v&&this.addIosSelectionHandler(b,k,this.text)}return S.prototype.addIosSelectionHandler=function(b,k,R){var E=this,L=null,O=!1;R.addEventListener("keydown",function(x){L&&clearTimeout(L),O=!0},!0),R.addEventListener("keyup",function(x){L=setTimeout(function(){O=!1},100)},!0);var M=function(x){if(document.activeElement===R&&!(O||E.inComposition||k.$mouseHandler.isMousePressed)&&!E.copied){var _=R.selectionStart,w=R.selectionEnd,A=null,T=0;if(_==0?A=d.up:_==1?A=d.home:w>E.lastSelectionEnd&&E.lastValue[w]==`
793
+ `?A=d.end:_<E.lastSelectionStart&&E.lastValue[_-1]==" "?(A=d.left,T=m.option):_<E.lastSelectionStart||_==E.lastSelectionStart&&E.lastSelectionEnd!=E.lastSelectionStart&&_==w?A=d.left:w>E.lastSelectionEnd&&E.lastValue.slice(0,w).split(`
794
+ `).length>2?A=d.down:w>E.lastSelectionEnd&&E.lastValue[w-1]==" "?(A=d.right,T=m.option):(w>E.lastSelectionEnd||w==E.lastSelectionEnd&&E.lastSelectionEnd!=E.lastSelectionStart&&_==w)&&(A=d.right),_!==w&&(T|=m.shift),A){var I=k.onCommandKey({},T,A);if(!I&&k.commands){A=d.keyCodeToString(A);var N=k.commands.findKeyCommand(T,A);N&&k.execCommand(N)}E.lastSelectionStart=_,E.lastSelectionEnd=w,E.resetSelection("")}}};document.addEventListener("selectionchange",M),k.on("destroy",function(){document.removeEventListener("selectionchange",M)})},S.prototype.onContextMenuClose=function(){var b=this;clearTimeout(this.closeTimeout),this.closeTimeout=setTimeout(function(){b.tempStyle&&(b.text.style.cssText=b.tempStyle,b.tempStyle=""),b.host.renderer.$isMousePressed=!1,b.host.renderer.$keepTextAreaAtCursor&&b.host.renderer.$moveTextAreaToCursor()},0)},S.prototype.$onContextMenu=function(b){this.host.textInput.onContextMenu(b),this.onContextMenuClose()},S.prototype.onKeyup=function(b){b.keyCode==27&&this.text.value.length<this.text.selectionStart&&(this.inComposition||(this.lastValue=this.text.value),this.lastSelectionStart=this.lastSelectionEnd=-1,this.resetSelection()),this.syncComposition()},S.prototype.cancelComposition=function(){this.ignoreFocusEvents=!0,this.text.blur(),this.text.focus(),this.ignoreFocusEvents=!1},S.prototype.onCompositionStart=function(b){if(!(this.inComposition||!this.host.onCompositionStart||this.host.$readOnly)&&(this.inComposition={},!this.commandMode)){b.data&&(this.inComposition.useTextareaForIME=!1),setTimeout(this.onCompositionUpdate.bind(this),0),this.host._signal("compositionStart"),this.host.on("mousedown",this.cancelComposition);var k=this.host.getSelectionRange();k.end.row=k.start.row,k.end.column=k.start.column,this.inComposition.markerRange=k,this.inComposition.selectionStart=this.lastSelectionStart,this.host.onCompositionStart(this.inComposition),this.inComposition.useTextareaForIME?(this.lastValue=this.text.value="",this.lastSelectionStart=0,this.lastSelectionEnd=0):(this.text.msGetInputContext&&(this.inComposition.context=this.text.msGetInputContext()),this.text.getInputContext&&(this.inComposition.context=this.text.getInputContext()))}},S.prototype.onCompositionUpdate=function(){if(!(!this.inComposition||!this.host.onCompositionUpdate||this.host.$readOnly)){if(this.commandMode)return this.cancelComposition();if(this.inComposition.useTextareaForIME)this.host.onCompositionUpdate(this.text.value);else{var b=this.text.value;this.sendText(b),this.inComposition.markerRange&&(this.inComposition.context&&(this.inComposition.markerRange.start.column=this.inComposition.selectionStart=this.inComposition.context.compositionStartOffset),this.inComposition.markerRange.end.column=this.inComposition.markerRange.start.column+this.lastSelectionEnd-this.inComposition.selectionStart+this.lastRestoreEnd)}}},S.prototype.onCompositionEnd=function(b){!this.host.onCompositionEnd||this.host.$readOnly||(this.inComposition=!1,this.host.onCompositionEnd(),this.host.off("mousedown",this.cancelComposition),b&&this.onInput())},S.prototype.onCut=function(b){this.doCopy(b,!0)},S.prototype.onCopy=function(b){this.doCopy(b,!1)},S.prototype.onPaste=function(b){var k=this.handleClipboardData(b);o.pasteCancelled()||(typeof k=="string"?(k&&this.host.onPaste(k,b),g.isIE&&setTimeout(this.resetSelection),h.preventDefault(b)):(this.text.value="",this.pasted=!0))},S.prototype.doCopy=function(b,k){var R=this,E=this.host.getCopyText();if(!E)return h.preventDefault(b);this.handleClipboardData(b,E)?(v&&(this.resetSelection(E),this.copied=E,setTimeout(function(){R.copied=!1},10)),k?this.host.onCut():this.host.onCopy(),h.preventDefault(b)):(this.copied=!0,this.text.value=E,this.text.select(),setTimeout(function(){R.copied=!1,R.resetSelection(),k?R.host.onCut():R.host.onCopy()}))},S.prototype.handleClipboardData=function(b,k,R){var E=b.clipboardData||window.clipboardData;if(!(!E||a)){var L=c||R?"Text":"text/plain";try{return k?E.setData(L,k)!==!1:E.getData(L)}catch(O){if(!R)return this.handleClipboardData(O,k,!0)}}},S.prototype.onInput=function(b){if(this.inComposition)return this.onCompositionUpdate();if(b&&b.inputType){if(b.inputType=="historyUndo")return this.host.execCommand("undo");if(b.inputType=="historyRedo")return this.host.execCommand("redo")}var k=this.text.value,R=this.sendText(k,!0);(k.length>l+100||y.test(R)||C&&this.lastSelectionStart<1&&this.lastSelectionStart==this.lastSelectionEnd)&&this.resetSelection()},S.prototype.sendText=function(b,k){if(this.afterContextMenu&&(this.afterContextMenu=!1),this.pasted)return this.resetSelection(),b&&this.host.onPaste(b),this.pasted=!1,"";for(var R=this.text.selectionStart,E=this.text.selectionEnd,L=this.lastSelectionStart,O=this.lastValue.length-this.lastSelectionEnd,M=b,x=b.length-R,_=b.length-E,w=0;L>0&&this.lastValue[w]==b[w];)w++,L--;for(M=M.slice(w),w=1;O>0&&this.lastValue.length-w>this.lastSelectionStart-1&&this.lastValue[this.lastValue.length-w]==b[b.length-w];)w++,O--;x-=w-1,_-=w-1;var A=M.length-w+1;if(A<0&&(L=-A,A=0),M=M.slice(0,A),!k&&!M&&!x&&!L&&!O&&!_)return"";this.sendingText=!0;var T=!1;return g.isAndroid&&M==". "&&(M=" ",T=!0),M&&!L&&!O&&!x&&!_||this.commandMode?this.host.onTextInput(M):this.host.onTextInput(M,{extendLeft:L,extendRight:O,restoreStart:x,restoreEnd:_}),this.sendingText=!1,this.lastValue=b,this.lastSelectionStart=R,this.lastSelectionEnd=E,this.lastRestoreEnd=_,T?`
795
+ `:M},S.prototype.onSelect=function(b){var k=this;if(!this.inComposition){var R=function(E){return E.selectionStart===0&&E.selectionEnd>=k.lastValue.length&&E.value===k.lastValue&&k.lastValue&&E.selectionEnd!==k.lastSelectionEnd};this.copied?this.copied=!1:R(this.text)?(this.host.selectAll(),this.resetSelection()):C&&this.text.selectionStart!=this.lastSelectionStart&&this.resetSelection()}},S.prototype.$resetSelectionIOS=function(b){if(!(!this.$isFocused||this.copied&&!b||this.sendingText)){b||(b="");var k=`
796
+ ab`+b+`cde fg
797
+ `;k!=this.text.value&&(this.text.value=this.lastValue=k);var R=4,E=4+(b.length||(this.host.selection.isEmpty()?0:1));(this.lastSelectionStart!=R||this.lastSelectionEnd!=E)&&this.text.setSelectionRange(R,E),this.lastSelectionStart=R,this.lastSelectionEnd=E}},S.prototype.$resetSelection=function(){var b=this;if(!(this.inComposition||this.sendingText)&&!(!this.$isFocused&&!this.afterContextMenu)){this.inComposition=!0;var k=0,R=0,E="",L=function(N,D){for(var F=D,H=1;H<=N-b.rowStart&&H<2*b.numberOfExtraLines+1;H++)F+=b.host.session.getLine(N-H).length+1;return F};if(this.host.session){var O=this.host.selection,M=O.getRange(),x=O.cursor.row;x===this.rowEnd+1?(this.rowStart=this.rowEnd+1,this.rowEnd=this.rowStart+2*this.numberOfExtraLines):x===this.rowStart-1?(this.rowEnd=this.rowStart-1,this.rowStart=this.rowEnd-2*this.numberOfExtraLines):(x<this.rowStart-1||x>this.rowEnd+1)&&(this.rowStart=x>this.numberOfExtraLines?x-this.numberOfExtraLines:0,this.rowEnd=x>this.numberOfExtraLines?x+this.numberOfExtraLines:2*this.numberOfExtraLines);for(var _=[],w=this.rowStart;w<=this.rowEnd;w++)_.push(this.host.session.getLine(w));if(E=_.join(`
798
+ `),k=L(M.start.row,M.start.column),R=L(M.end.row,M.end.column),M.start.row<this.rowStart){var A=this.host.session.getLine(this.rowStart-1);k=M.start.row<this.rowStart-1?0:k,R+=A.length+1,E=A+`
799
+ `+E}else if(M.end.row>this.rowEnd){var T=this.host.session.getLine(this.rowEnd+1);R=M.end.row>this.rowEnd+1?T.length:M.end.column,R+=E.length+1,E=E+`
800
+ `+T}else C&&x>0&&(E=`
801
+ `+E,R+=1,k+=1);E.length>l&&(k<l&&R<l?E=E.slice(0,l):(E=`
802
+ `,k==R?k=R=0:(k=0,R=1)));var I=E+`
803
+
804
+ `;I!=this.lastValue&&(this.text.value=this.lastValue=I,this.lastSelectionStart=this.lastSelectionEnd=I.length)}if(this.afterContextMenu&&(this.lastSelectionStart=this.text.selectionStart,this.lastSelectionEnd=this.text.selectionEnd),this.lastSelectionEnd!=R||this.lastSelectionStart!=k||this.text.selectionEnd!=this.lastSelectionEnd)try{this.text.setSelectionRange(k,R),this.lastSelectionStart=k,this.lastSelectionEnd=R}catch{}this.inComposition=!1}},S.prototype.setHost=function(b){this.host=b},S.prototype.setNumberOfExtraLines=function(b){if(this.rowStart=Number.MAX_SAFE_INTEGER,this.rowEnd=Number.MIN_SAFE_INTEGER,b<0){this.numberOfExtraLines=0;return}this.numberOfExtraLines=b},S.prototype.setAriaLabel=function(){var b="";if(this.host.$textInputAriaLabel&&(b+="".concat(this.host.$textInputAriaLabel,", ")),this.host.session){var k=this.host.session.selection.cursor.row;b+=f("text-input.aria-label","Cursor at row $0",[k+1])}this.text.setAttribute("aria-label",b)},S.prototype.setAriaOptions=function(b){b.activeDescendant?(this.text.setAttribute("aria-haspopup","true"),this.text.setAttribute("aria-autocomplete",b.inline?"both":"list"),this.text.setAttribute("aria-activedescendant",b.activeDescendant)):(this.text.setAttribute("aria-haspopup","false"),this.text.setAttribute("aria-autocomplete","both"),this.text.removeAttribute("aria-activedescendant")),b.role&&this.text.setAttribute("role",b.role),b.setLabel&&(this.text.setAttribute("aria-roledescription",f("text-input.aria-roledescription","editor")),this.setAriaLabel())},S.prototype.focus=function(){var b=this;if(this.setAriaOptions({setLabel:this.host.renderer.enableKeyboardAccessibility}),this.tempStyle||u||this.$focusScroll=="browser")return this.text.focus({preventScroll:!0});var k=this.text.style.top;this.text.style.position="fixed",this.text.style.top="0px";try{var R=this.text.getBoundingClientRect().top!=0}catch{return}var E=[];if(R)for(var L=this.text.parentElement;L&&L.nodeType==1;)E.push(L),L.setAttribute("ace_nocontext","true"),!L.parentElement&&L.getRootNode?L=L.getRootNode().host:L=L.parentElement;this.text.focus({preventScroll:!0}),R&&E.forEach(function(O){O.removeAttribute("ace_nocontext")}),setTimeout(function(){b.text.style.position="",b.text.style.top=="0px"&&(b.text.style.top=k)},0)},S.prototype.blur=function(){this.text.blur()},S.prototype.isFocused=function(){return this.$isFocused},S.prototype.setInputHandler=function(b){this.inputHandler=b},S.prototype.getInputHandler=function(){return this.inputHandler},S.prototype.getElement=function(){return this.text},S.prototype.setCommandMode=function(b){this.commandMode=b,this.text.readOnly=!1},S.prototype.setReadOnly=function(b){this.commandMode||(this.text.readOnly=b)},S.prototype.setCopyWithEmptySelection=function(b){},S.prototype.onContextMenu=function(b){this.afterContextMenu=!0,this.resetSelection(),this.host._emit("nativecontextmenu",{target:this.host,domEvent:b}),this.moveToMouse(b,!0)},S.prototype.moveToMouse=function(b,k){var R=this;this.tempStyle||(this.tempStyle=this.text.style.cssText),this.text.style.cssText=(k?"z-index:100000;":"")+(g.isIE?"opacity:0.1;":"")+"text-indent: -"+(this.lastSelectionStart+this.lastSelectionEnd)*this.host.renderer.characterWidth*.5+"px;";var E=this.host.container.getBoundingClientRect(),L=s.computedStyle(this.host.container),O=E.top+(parseInt(L.borderTopWidth)||0),M=E.left+(parseInt(L.borderLeftWidth)||0),x=E.bottom-O-this.text.clientHeight-2,_=function(w){s.translate(R.text,w.clientX-M-2,Math.min(w.clientY-O-2,x))};_(b),b.type=="mousedown"&&(this.host.renderer.$isMousePressed=!0,clearTimeout(this.closeTimeout),g.isWin&&h.capture(this.host.container,_,this.onContextMenuClose.bind(this)))},S.prototype.destroy=function(){this.text.parentElement&&this.text.parentElement.removeChild(this.text)},S}();r.TextInput=$,r.$setUserAgentForTests=function(S,b){C=S,v=b}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(n,r,i){var h=n("../lib/useragent"),f=0,g=550,s=function(){function a(c){c.$clickSelection=null;var u=c.editor;u.setDefaultHandler("mousedown",this.onMouseDown.bind(c)),u.setDefaultHandler("dblclick",this.onDoubleClick.bind(c)),u.setDefaultHandler("tripleclick",this.onTripleClick.bind(c)),u.setDefaultHandler("quadclick",this.onQuadClick.bind(c)),u.setDefaultHandler("mousewheel",this.onMouseWheel.bind(c));var l=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];l.forEach(function(d){c[d]=this[d]},this),c.selectByLines=this.extendSelectionBy.bind(c,"getLineRange"),c.selectByWords=this.extendSelectionBy.bind(c,"getWordRange")}return a.prototype.onMouseDown=function(c){var u=c.inSelection(),l=c.getDocumentPosition();this.mousedownEvent=c;var d=this.editor,m=c.getButton();if(m!==0){var v=d.getSelectionRange(),y=v.isEmpty();(y||m==1)&&d.selection.moveToPosition(l),m==2&&(d.textInput.onContextMenu(c.domEvent),h.isMozilla||c.preventDefault());return}if(this.mousedownEvent.time=Date.now(),u&&!d.isFocused()&&(d.focus(),this.$focusTimeout&&!this.$clickSelection&&!d.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(c);return}return this.captureMouse(c),this.startSelect(l,c.domEvent._clicks>1),c.preventDefault()},a.prototype.startSelect=function(c,u){c=c||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var l=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?l.selection.selectToPosition(c):u||l.selection.moveToPosition(c),u||this.select(),l.setStyle("ace_selecting"),this.setState("select"))},a.prototype.select=function(){var c,u=this.editor,l=u.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var d=this.$clickSelection.comparePoint(l);if(d==-1)c=this.$clickSelection.end;else if(d==1)c=this.$clickSelection.start;else{var m=o(this.$clickSelection,l);l=m.cursor,c=m.anchor}u.selection.setSelectionAnchor(c.row,c.column)}u.selection.selectToPosition(l),u.renderer.scrollCursorIntoView()},a.prototype.extendSelectionBy=function(c){var u,l=this.editor,d=l.renderer.screenToTextCoordinates(this.x,this.y),m=l.selection[c](d.row,d.column);if(this.$clickSelection){var v=this.$clickSelection.comparePoint(m.start),y=this.$clickSelection.comparePoint(m.end);if(v==-1&&y<=0)u=this.$clickSelection.end,(m.end.row!=d.row||m.end.column!=d.column)&&(d=m.start);else if(y==1&&v>=0)u=this.$clickSelection.start,(m.start.row!=d.row||m.start.column!=d.column)&&(d=m.end);else if(v==-1&&y==1)d=m.end,u=m.start;else{var C=o(this.$clickSelection,d);d=C.cursor,u=C.anchor}l.selection.setSelectionAnchor(u.row,u.column)}l.selection.selectToPosition(d),l.renderer.scrollCursorIntoView()},a.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},a.prototype.focusWait=function(){var c=p(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),u=Date.now();(c>f||u-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},a.prototype.onDoubleClick=function(c){var u=c.getDocumentPosition(),l=this.editor,d=l.session,m=d.getBracketRange(u);m?(m.isEmpty()&&(m.start.column--,m.end.column++),this.setState("select")):(m=l.selection.getWordRange(u.row,u.column),this.setState("selectByWords")),this.$clickSelection=m,this.select()},a.prototype.onTripleClick=function(c){var u=c.getDocumentPosition(),l=this.editor;this.setState("selectByLines");var d=l.getSelectionRange();d.isMultiLine()&&d.contains(u.row,u.column)?(this.$clickSelection=l.selection.getLineRange(d.start.row),this.$clickSelection.end=l.selection.getLineRange(d.end.row).end):this.$clickSelection=l.selection.getLineRange(u.row),this.select()},a.prototype.onQuadClick=function(c){var u=this.editor;u.selectAll(),this.$clickSelection=u.getSelectionRange(),this.setState("selectAll")},a.prototype.onMouseWheel=function(c){if(!c.getAccelKey()){c.getShiftKey()&&c.wheelY&&!c.wheelX&&(c.wheelX=c.wheelY,c.wheelY=0);var u=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var l=this.$lastScroll,d=c.domEvent.timeStamp,m=d-l.t,v=m?c.wheelX/m:l.vx,y=m?c.wheelY/m:l.vy;m<g&&(v=(v+l.vx)/2,y=(y+l.vy)/2);var C=Math.abs(v/y),$=!1;if(C>=1&&u.renderer.isScrollableBy(c.wheelX*c.speed,0)&&($=!0),C<=1&&u.renderer.isScrollableBy(0,c.wheelY*c.speed)&&($=!0),$)l.allowed=d;else if(d-l.allowed<g){var S=Math.abs(v)<=1.5*Math.abs(l.vx)&&Math.abs(y)<=1.5*Math.abs(l.vy);S?($=!0,l.allowed=d):l.allowed=0}if(l.t=d,l.vx=v,l.vy=y,$)return u.renderer.scrollBy(c.wheelX*c.speed,c.wheelY*c.speed),c.stop()}},a}();s.prototype.selectEnd=s.prototype.selectByLinesEnd,s.prototype.selectAllEnd=s.prototype.selectByLinesEnd,s.prototype.selectByWordsEnd=s.prototype.selectByLinesEnd,r.DefaultHandlers=s;function p(a,c,u,l){return Math.sqrt(Math.pow(u-a,2)+Math.pow(l-c,2))}function o(a,c){if(a.start.row==a.end.row)var u=2*c.column-a.start.column-a.end.column;else if(a.start.row==a.end.row-1&&!a.start.column&&!a.end.column)var u=c.column-4;else var u=2*c.row-a.start.row-a.end.row;return u<0?{cursor:a.start,anchor:a.end}:{cursor:a.end,anchor:a.start}}}),ace.define("ace/lib/scroll",["require","exports","module"],function(n,r,i){r.preventParentScroll=function(f){f.stopPropagation();var g=f.currentTarget,s=g.scrollHeight>g.clientHeight;s||f.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(n,r,i){var h=this&&this.__extends||function(){var d=function(m,v){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,C){y.__proto__=C}||function(y,C){for(var $ in C)Object.prototype.hasOwnProperty.call(C,$)&&(y[$]=C[$])},d(m,v)};return function(m,v){if(typeof v!="function"&&v!==null)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");d(m,v);function y(){this.constructor=m}m.prototype=v===null?Object.create(v):(y.prototype=v.prototype,new y)}}(),f=this&&this.__values||function(d){var m=typeof Symbol=="function"&&Symbol.iterator,v=m&&d[m],y=0;if(v)return v.call(d);if(d&&typeof d.length=="number")return{next:function(){return d&&y>=d.length&&(d=void 0),{value:d&&d[y++],done:!d}}};throw new TypeError(m?"Object is not iterable.":"Symbol.iterator is not defined.")},g=n("./lib/dom");n("./lib/event");var s=n("./range").Range,p=n("./lib/scroll").preventParentScroll,o="ace_tooltip",a=function(){function d(m){this.isOpen=!1,this.$element=null,this.$parentNode=m}return d.prototype.$init=function(){return this.$element=g.createElement("div"),this.$element.className=o,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},d.prototype.getElement=function(){return this.$element||this.$init()},d.prototype.setText=function(m){this.getElement().textContent=m},d.prototype.setHtml=function(m){this.getElement().innerHTML=m},d.prototype.setPosition=function(m,v){var y=this.getElement(),C=y.offsetParent&&y.offsetParent.getBoundingClientRect();y.style.left=m-(C?C.left:0)+"px",y.style.top=v-(C?C.top:0)+"px"},d.prototype.setClassName=function(m){g.addCssClass(this.getElement(),m)},d.prototype.setTheme=function(m){this.$element.className=o+" "+(m.isDark?"ace_dark ":"")+(m.cssClass||"")},d.prototype.show=function(m,v,y){m!=null&&this.setText(m),v!=null&&y!=null&&this.setPosition(v,y),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},d.prototype.hide=function(m){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=o,this.isOpen=!1)},d.prototype.getHeight=function(){return this.getElement().offsetHeight},d.prototype.getWidth=function(){return this.getElement().offsetWidth},d.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},d}(),c=function(){function d(){this.popups=[]}return d.prototype.addPopup=function(m){this.popups.push(m),this.updatePopups()},d.prototype.removePopup=function(m){var v=this.popups.indexOf(m);v!==-1&&(this.popups.splice(v,1),this.updatePopups())},d.prototype.updatePopups=function(){var m,v,y,C;this.popups.sort(function(M,x){return x.priority-M.priority});var $=[];try{for(var S=f(this.popups),b=S.next();!b.done;b=S.next()){var k=b.value,R=!0;try{for(var E=(y=void 0,f($)),L=E.next();!L.done;L=E.next()){var O=L.value;if(this.doPopupsOverlap(O,k)){R=!1;break}}}catch(M){y={error:M}}finally{try{L&&!L.done&&(C=E.return)&&C.call(E)}finally{if(y)throw y.error}}R?$.push(k):k.hide()}}catch(M){m={error:M}}finally{try{b&&!b.done&&(v=S.return)&&v.call(S)}finally{if(m)throw m.error}}},d.prototype.doPopupsOverlap=function(m,v){var y=m.getElement().getBoundingClientRect(),C=v.getElement().getBoundingClientRect();return y.left<C.right&&y.right>C.left&&y.top<C.bottom&&y.bottom>C.top},d}(),u=new c;r.popupManager=u,r.Tooltip=a;var l=function(d){h(m,d);function m(v){v===void 0&&(v=document.body);var y=d.call(this,v)||this;y.timeout=void 0,y.lastT=0,y.idleTime=350,y.lastEvent=void 0,y.onMouseOut=y.onMouseOut.bind(y),y.onMouseMove=y.onMouseMove.bind(y),y.waitForHover=y.waitForHover.bind(y),y.hide=y.hide.bind(y);var C=y.getElement();return C.style.whiteSpace="pre-wrap",C.style.pointerEvents="auto",C.addEventListener("mouseout",y.onMouseOut),C.tabIndex=-1,C.addEventListener("blur",(function(){C.contains(document.activeElement)||this.hide()}).bind(y)),C.addEventListener("wheel",p),y}return m.prototype.addToEditor=function(v){v.on("mousemove",this.onMouseMove),v.on("mousedown",this.hide),v.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},m.prototype.removeFromEditor=function(v){v.off("mousemove",this.onMouseMove),v.off("mousedown",this.hide),v.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},m.prototype.onMouseMove=function(v,y){this.lastEvent=v,this.lastT=Date.now();var C=y.$mouseHandler.isMousePressed;if(this.isOpen){var $=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains($.row,$.column)||C||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||C||(this.lastEvent=v,this.timeout=setTimeout(this.waitForHover,this.idleTime))},m.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var v=Date.now()-this.lastT;if(this.idleTime-v>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-v);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},m.prototype.isOutsideOfText=function(v){var y=v.editor,C=v.getDocumentPosition(),$=y.session.getLine(C.row);if(C.column==$.length){var S=y.renderer.pixelToScreenCoordinates(v.clientX,v.clientY),b=y.session.documentToScreenPosition(C.row,C.column);if(b.column!=S.column||b.row!=S.row)return!0}return!1},m.prototype.setDataProvider=function(v){this.$gatherData=v},m.prototype.showForRange=function(v,y,C,$){var S=10;if(!($&&$!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var b=v.renderer;this.isOpen||(u.addPopup(this),this.$registerCloseEvents(),this.setTheme(b.theme)),this.isOpen=!0,this.addMarker(y,v.session),this.range=s.fromPoints(y.start,y.end);var k=b.textToScreenCoordinates(y.start.row,y.start.column),R=b.scroller.getBoundingClientRect();k.pageX<R.left&&(k.pageX=R.left);var E=this.getElement();E.innerHTML="",E.appendChild(C),E.style.maxHeight="",E.style.display="block";var L=E.clientHeight,O=E.clientWidth,M=window.innerHeight-k.pageY-b.lineHeight,x=!0;k.pageY-L<0&&k.pageY<M&&(x=!1),E.style.maxHeight=(x?k.pageY:M)-S+"px",E.style.top=x?"":k.pageY+b.lineHeight+"px",E.style.bottom=x?window.innerHeight-k.pageY+"px":"",E.style.left=Math.min(k.pageX,window.innerWidth-O-S)+"px"}},m.prototype.addMarker=function(v,y){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=y,this.marker=y&&y.addMarker(v,"ace_highlight-marker","text")},m.prototype.hide=function(v){!v&&document.activeElement==this.getElement()||v&&v.target&&(v.type!="keydown"||v.ctrlKey||v.metaKey)&&this.$element.contains(v.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,u.removePopup(this)))},m.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("wheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},m.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("wheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},m.prototype.onMouseOut=function(v){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!v.relatedTarget||this.getElement().contains(v.relatedTarget)||v&&v.currentTarget.contains(v.relatedTarget)||v.relatedTarget.classList.contains("ace_content")||this.hide())},m}(a);r.HoverTooltip=l}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config"],function(n,r,i){var h=this&&this.__extends||function(){var d=function(m,v){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,C){y.__proto__=C}||function(y,C){for(var $ in C)Object.prototype.hasOwnProperty.call(C,$)&&(y[$]=C[$])},d(m,v)};return function(m,v){if(typeof v!="function"&&v!==null)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");d(m,v);function y(){this.constructor=m}m.prototype=v===null?Object.create(v):(y.prototype=v.prototype,new y)}}(),f=this&&this.__values||function(d){var m=typeof Symbol=="function"&&Symbol.iterator,v=m&&d[m],y=0;if(v)return v.call(d);if(d&&typeof d.length=="number")return{next:function(){return d&&y>=d.length&&(d=void 0),{value:d&&d[y++],done:!d}}};throw new TypeError(m?"Object is not iterable.":"Symbol.iterator is not defined.")},g=n("../lib/dom"),s=n("../lib/event"),p=n("../tooltip").Tooltip,o=n("../config").nls,a=5,c=3;r.GUTTER_TOOLTIP_LEFT_OFFSET=a,r.GUTTER_TOOLTIP_TOP_OFFSET=c;function u(d){var m=d.editor,v=m.renderer.$gutterLayer,y=new l(m,!0);d.editor.setDefaultHandler("guttermousedown",function(R){if(!(!m.isFocused()||R.getButton()!=0)){var E=v.getRegion(R);if(E!="foldWidgets"){var L=R.getDocumentPosition().row,O=m.session.selection;if(R.getShiftKey())O.selectTo(L,0);else{if(R.domEvent.detail==2)return m.selectAll(),R.preventDefault();d.$clickSelection=m.selection.getLineRange(L)}return d.setState("selectByLines"),d.captureMouse(R),R.preventDefault()}}});var C,$;function S(){var R=$.getDocumentPosition().row,E=m.session.getLength();if(R==E){var L=m.renderer.pixelToScreenCoordinates(0,$.y).row,O=$.$pos;if(L>m.session.documentToScreenRow(O.row,O.column))return b()}if(y.showTooltip(R),!!y.isOpen)if(m.on("mousewheel",b),m.on("changeSession",b),window.addEventListener("keydown",b,!0),d.$tooltipFollowsMouse)k($);else{var M=$.getGutterRow(),x=v.$lines.get(M);if(x){var _=x.element.querySelector(".ace_gutter_annotation"),w=_.getBoundingClientRect(),A=y.getElement().style;A.left=w.right-a+"px",A.top=w.bottom-c+"px"}else k($)}}function b(R){R&&R.type==="keydown"&&(R.ctrlKey||R.metaKey)||R&&R.type==="mouseout"&&(!R.relatedTarget||y.getElement().contains(R.relatedTarget))||(C&&(C=clearTimeout(C)),y.isOpen&&(y.hideTooltip(),m.off("mousewheel",b),m.off("changeSession",b),window.removeEventListener("keydown",b,!0)))}function k(R){y.setPosition(R.x,R.y)}d.editor.setDefaultHandler("guttermousemove",function(R){var E=R.domEvent.target||R.domEvent.srcElement;if(g.hasCssClass(E,"ace_fold-widget")||g.hasCssClass(E,"ace_custom-widget"))return b();y.isOpen&&d.$tooltipFollowsMouse&&k(R),$=R,!C&&(C=setTimeout(function(){C=null,$&&!d.isMousePressed&&S()},50))}),s.addListener(m.renderer.$gutter,"mouseout",function(R){$=null,y.isOpen&&(C=setTimeout(function(){C=null,b(R)},50))},m)}r.GutterHandler=u;var l=function(d){h(m,d);function m(v,y){y===void 0&&(y=!1);var C=d.call(this,v.container)||this;C.id="gt"+ ++m.$uid,C.editor=v,C.visibleTooltipRow;var $=C.getElement();return $.setAttribute("role","tooltip"),$.setAttribute("id",C.id),$.style.pointerEvents="auto",y&&(C.onMouseOut=C.onMouseOut.bind(C),$.addEventListener("mouseout",C.onMouseOut)),C}return m.prototype.onMouseOut=function(v){this.isOpen&&(!v.relatedTarget||this.getElement().contains(v.relatedTarget)||v&&v.currentTarget.contains(v.relatedTarget)||this.hideTooltip())},m.prototype.setPosition=function(v,y){var C=window.innerWidth||document.documentElement.clientWidth,$=window.innerHeight||document.documentElement.clientHeight,S=this.getWidth(),b=this.getHeight();v+=15,y+=15,v+S>C&&(v-=v+S-C),y+b>$&&(y-=20+b),p.prototype.setPosition.call(this,v,y)},Object.defineProperty(m,"annotationLabels",{get:function(){return{error:{singular:o("gutter-tooltip.aria-label.error.singular","error"),plural:o("gutter-tooltip.aria-label.error.plural","errors")},security:{singular:o("gutter-tooltip.aria-label.security.singular","security finding"),plural:o("gutter-tooltip.aria-label.security.plural","security findings")},warning:{singular:o("gutter-tooltip.aria-label.warning.singular","warning"),plural:o("gutter-tooltip.aria-label.warning.plural","warnings")},info:{singular:o("gutter-tooltip.aria-label.info.singular","information message"),plural:o("gutter-tooltip.aria-label.info.plural","information messages")},hint:{singular:o("gutter-tooltip.aria-label.hint.singular","suggestion"),plural:o("gutter-tooltip.aria-label.hint.plural","suggestions")}}},enumerable:!1,configurable:!0}),m.prototype.showTooltip=function(v){var y,C=this.editor.renderer.$gutterLayer,$=C.$annotations[v],S;$?S={displayText:Array.from($.displayText),type:Array.from($.type)}:S={displayText:[],type:[]};var b=C.session.getFoldLine(v);if(b&&C.$showFoldedAnnotations){for(var k={error:[],security:[],warning:[],info:[],hint:[]},R={error:1,security:2,warning:3,info:4,hint:5},E,L=v+1;L<=b.end.row;L++)if(C.$annotations[L])for(var O=0;O<C.$annotations[L].text.length;O++){var M=C.$annotations[L].type[O];k[M].push(C.$annotations[L].text[O]),(!E||R[M]<R[E])&&(E=M)}if(["error","security","warning"].includes(E)){var x="".concat(m.annotationsToSummaryString(k)," in folded code.");S.displayText.push(x),S.type.push(E+"_fold")}}if(S.displayText.length===0)return this.hideTooltip();for(var _={error:[],security:[],warning:[],info:[],hint:[]},w=C.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",L=0;L<S.displayText.length;L++){var A=g.createElement("span"),T=g.createElement("span");(y=T.classList).add.apply(y,["ace_".concat(S.type[L]),w]),T.setAttribute("aria-label","".concat(m.annotationLabels[S.type[L].replace("_fold","")].singular)),T.setAttribute("role","img"),T.appendChild(g.createTextNode(" ")),A.appendChild(T),A.appendChild(g.createTextNode(S.displayText[L])),A.appendChild(g.createElement("br")),_[S.type[L].replace("_fold","")].push(A)}var I=this.getElement();g.removeChildren(I),_.error.forEach(function(D){return I.appendChild(D)}),_.security.forEach(function(D){return I.appendChild(D)}),_.warning.forEach(function(D){return I.appendChild(D)}),_.info.forEach(function(D){return I.appendChild(D)}),_.hint.forEach(function(D){return I.appendChild(D)}),I.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip"));var N=this.$findLinkedAnnotationNode(v);N&&N.setAttribute("aria-describedby",this.id),this.show(),this.visibleTooltipRow=v,this.editor._signal("showGutterTooltip",this)},m.prototype.$findLinkedAnnotationNode=function(v){var y=this.$findCellByRow(v);if(y){var C=y.element;if(C.childNodes.length>2)return C.childNodes[2]}},m.prototype.$findCellByRow=function(v){return this.editor.renderer.$gutterLayer.$lines.cells.find(function(y){return y.row===v})},m.prototype.hideTooltip=function(){if(this.isOpen){if(this.$element.removeAttribute("aria-live"),this.hide(),this.visibleTooltipRow!=null){var v=this.$findLinkedAnnotationNode(this.visibleTooltipRow);v&&v.removeAttribute("aria-describedby")}this.visibleTooltipRow=void 0,this.editor._signal("hideGutterTooltip",this)}},m.annotationsToSummaryString=function(v){var y,C,$=[],S=["error","security","warning","info","hint"];try{for(var b=f(S),k=b.next();!k.done;k=b.next()){var R=k.value;if(v[R].length){var E=v[R].length===1?m.annotationLabels[R].singular:m.annotationLabels[R].plural;$.push("".concat(v[R].length," ").concat(E))}}}catch(L){y={error:L}}finally{try{k&&!k.done&&(C=b.return)&&C.call(b)}finally{if(y)throw y.error}}return $.join(", ")},m}(p);l.$uid=0,r.GutterTooltip=l}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(n,r,i){var h=n("../lib/event"),f=n("../lib/useragent"),g=function(){function s(p,o){this.speed,this.wheelX,this.wheelY,this.domEvent=p,this.editor=o,this.x=this.clientX=p.clientX,this.y=this.clientY=p.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return s.prototype.stopPropagation=function(){h.stopPropagation(this.domEvent),this.propagationStopped=!0},s.prototype.preventDefault=function(){h.preventDefault(this.domEvent),this.defaultPrevented=!0},s.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},s.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},s.prototype.getGutterRow=function(){var p=this.getDocumentPosition().row,o=this.editor.session.documentToScreenRow(p,0),a=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return o-a},s.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var p=this.editor,o=p.getSelectionRange();if(o.isEmpty())this.$inSelection=!1;else{var a=this.getDocumentPosition();this.$inSelection=o.contains(a.row,a.column)}return this.$inSelection},s.prototype.getButton=function(){return h.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}();r.MouseEvent=g}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(n,r,i){var h=n("../lib/dom"),f=n("../lib/event"),g=n("../lib/useragent"),s=200,p=200,o=5;function a(u){var l=u.editor,d=h.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(W){u[W]=this[W]},this),l.on("mousedown",this.onMouseDown.bind(u));var v=l.container,y,C,$,S,b,k,R=0,E,L,O,M,x;this.onDragStart=function(W){if(this.cancelDrag||!v.draggable){var U=this;return setTimeout(function(){U.startSelect(),U.captureMouse(W)},0),W.preventDefault()}b=l.getSelectionRange();var V=W.dataTransfer;V.effectAllowed=l.getReadOnly()?"copy":"copyMove",l.container.appendChild(d),V.setDragImage&&V.setDragImage(d,0,0),setTimeout(function(){l.container.removeChild(d)}),V.clearData(),V.setData("Text",l.session.getTextRange()),L=!0,this.setState("drag")},this.onDragEnd=function(W){if(v.draggable=!1,L=!1,this.setState(null),!l.getReadOnly()){var U=W.dataTransfer.dropEffect;!E&&U=="move"&&l.session.remove(l.getSelectionRange()),l.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(W){if(!(l.getReadOnly()||!F(W.dataTransfer)))return C=W.clientX,$=W.clientY,y||T(),R++,W.dataTransfer.dropEffect=E=H(W),f.preventDefault(W)},this.onDragOver=function(W){if(!(l.getReadOnly()||!F(W.dataTransfer)))return C=W.clientX,$=W.clientY,y||(T(),R++),N!==null&&(N=null),W.dataTransfer.dropEffect=E=H(W),f.preventDefault(W)},this.onDragLeave=function(W){if(R--,R<=0&&y)return I(),E=null,f.preventDefault(W)},this.onDrop=function(W){if(k){var U=W.dataTransfer;if(L)switch(E){case"move":b.contains(k.row,k.column)?b={start:k,end:k}:b=l.moveText(b,k);break;case"copy":b=l.moveText(b,k,!0);break}else{var V=U.getData("Text");b={start:k,end:l.session.insert(k,V)},l.focus(),E=null}return I(),f.preventDefault(W)}},f.addListener(v,"dragstart",this.onDragStart.bind(u),l),f.addListener(v,"dragend",this.onDragEnd.bind(u),l),f.addListener(v,"dragenter",this.onDragEnter.bind(u),l),f.addListener(v,"dragover",this.onDragOver.bind(u),l),f.addListener(v,"dragleave",this.onDragLeave.bind(u),l),f.addListener(v,"drop",this.onDrop.bind(u),l);function _(W,U){var V=Date.now(),G=!U||W.row!=U.row,j=!U||W.column!=U.column;if(!M||G||j)l.moveCursorToPosition(W),M=V,x={x:C,y:$};else{var Z=c(x.x,x.y,C,$);Z>o?M=null:V-M>=p&&(l.renderer.scrollCursorIntoView(),M=null)}}function w(W,U){var V=Date.now(),G=l.renderer.layerConfig.lineHeight,j=l.renderer.layerConfig.characterWidth,Z=l.renderer.scroller.getBoundingClientRect(),X={x:{left:C-Z.left,right:Z.right-C},y:{top:$-Z.top,bottom:Z.bottom-$}},Q=Math.min(X.x.left,X.x.right),le=Math.min(X.y.top,X.y.bottom),z={row:W.row,column:W.column};Q/j<=2&&(z.column+=X.x.left<X.x.right?-3:2),le/G<=1&&(z.row+=X.y.top<X.y.bottom?-1:1);var B=W.row!=z.row,Y=W.column!=z.column,q=!U||W.row!=U.row;B||Y&&!q?O?V-O>=s&&l.renderer.scrollCursorIntoView(z):O=V:O=null}function A(){var W=k;k=l.renderer.screenToTextCoordinates(C,$),_(k,W),w(k,W)}function T(){b=l.selection.toOrientedRange(),y=l.session.addMarker(b,"ace_selection",l.getSelectionStyle()),l.clearSelection(),l.isFocused()&&l.renderer.$cursorLayer.setBlinking(!1),clearInterval(S),A(),S=setInterval(A,20),R=0,f.addListener(document,"mousemove",D)}function I(){clearInterval(S),l.session.removeMarker(y),y=null,l.selection.fromOrientedRange(b),l.isFocused()&&!L&&l.$resetCursorStyle(),b=null,k=null,R=0,O=null,M=null,f.removeListener(document,"mousemove",D)}var N=null;function D(){N==null&&(N=setTimeout(function(){N!=null&&y&&I()},20))}function F(W){var U=W.types;return!U||Array.prototype.some.call(U,function(V){return V=="text/plain"||V=="Text"})}function H(W){var U=["copy","copymove","all","uninitialized"],V=["move","copymove","linkmove","all","uninitialized"],G=g.isMac?W.altKey:W.ctrlKey,j="uninitialized";try{j=W.dataTransfer.effectAllowed.toLowerCase()}catch{}var Z="none";return G&&U.indexOf(j)>=0?Z="copy":V.indexOf(j)>=0?Z="move":U.indexOf(j)>=0&&(Z="copy"),Z}}(function(){this.dragWait=function(){var u=Date.now()-this.mousedownEvent.time;u>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var u=this.editor.container;u.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(u){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var u=this.editor,l=u.container;l.draggable=!0,u.renderer.$cursorLayer.setBlinking(!1),u.setStyle("ace_dragging");var d=g.isWin?"default":"move";u.renderer.setCursorStyle(d),this.setState("dragReady")},this.onMouseDrag=function(u){var l=this.editor.container;if(g.isIE&&this.state=="dragReady"){var d=c(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);d>3&&l.dragDrop()}if(this.state==="dragWait"){var d=c(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);d>0&&(l.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(u){if(this.$dragEnabled){this.mousedownEvent=u;var l=this.editor,d=u.inSelection(),m=u.getButton(),v=u.domEvent.detail||1;if(v===1&&m===0&&d){if(u.editor.inMultiSelectMode&&(u.getAccelKey()||u.getShiftKey()))return;this.mousedownEvent.time=Date.now();var y=u.domEvent.target||u.domEvent.srcElement;if("unselectable"in y&&(y.unselectable="on"),l.getDragDelay()){if(g.isWebKit){this.cancelDrag=!0;var C=l.container;C.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(u,this.onMouseDrag.bind(this)),u.defaultPrevented=!0}}}}).call(a.prototype);function c(u,l,d,m){return Math.sqrt(Math.pow(d-u,2)+Math.pow(m-l,2))}r.DragdropHandler=a}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(n,r,i){var h=n("./mouse_event").MouseEvent,f=n("../lib/event"),g=n("../lib/dom");r.addTouchListeners=function(s,p){var o="scroll",a,c,u,l,d,m,v=0,y,C=0,$=0,S=0,b,k;function R(){var _=window.navigator&&window.navigator.clipboard,w=!1,A=function(){var N=p.getCopyText(),D=p.session.getUndoManager().hasUndo();k.replaceChild(g.buildDom(w?["span",!N&&T("selectall")&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],N&&T("copy")&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],N&&T("cut")&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],_&&T("paste")&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],D&&T("undo")&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],T("find")&&["span",{class:"ace_mobile-button",action:"find"},"Find"],T("openCommandPalette")&&["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),k.firstChild)},T=function(N){return p.commands.canExecute(N,p)},I=function(N){var D=N.target.getAttribute("action");if(D=="more"||!w)return w=!w,A();D=="paste"?_.readText().then(function(F){p.execCommand(D,F)}):D&&((D=="cut"||D=="copy")&&(_?_.writeText(p.getCopyText()):document.execCommand("copy")),p.execCommand(D)),k.firstChild.style.display="none",w=!1,D!="openCommandPalette"&&p.focus()};k=g.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(N){o="menu",N.stopPropagation(),N.preventDefault(),p.textInput.focus()},ontouchend:function(N){N.stopPropagation(),N.preventDefault(),I(N)},onclick:I},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],p.container)}function E(){if(!p.getOption("enableMobileMenu")){k&&L();return}k||R();var _=p.selection.cursor,w=p.renderer.textToScreenCoordinates(_.row,_.column),A=p.renderer.textToScreenCoordinates(0,0).pageX,T=p.renderer.scrollLeft,I=p.container.getBoundingClientRect();k.style.top=w.pageY-I.top-3+"px",w.pageX-I.left<I.width-70?(k.style.left="",k.style.right="10px"):(k.style.right="",k.style.left=A+T-I.left+"px"),k.style.display="",k.firstChild.style.display="none",p.on("input",L)}function L(_){k&&(k.style.display="none"),p.off("input",L)}function O(){d=null,clearTimeout(d);var _=p.selection.getRange(),w=_.contains(y.row,y.column);(_.isEmpty()||!w)&&(p.selection.moveToPosition(y),p.selection.selectWord()),o="wait",E()}function M(){d=null,clearTimeout(d),p.selection.moveToPosition(y);var _=C>=2?p.selection.getLineRange(y.row):p.session.getBracketRange(y);_&&!_.isEmpty()?p.selection.setRange(_):p.selection.selectWord(),o="wait"}f.addListener(s,"contextmenu",function(_){if(b){var w=p.textInput.getElement();w.focus()}},p),f.addListener(s,"touchstart",function(_){var w=_.touches;if(d||w.length>1){clearTimeout(d),d=null,u=-1,o="zoom";return}b=p.$mouseHandler.isMousePressed=!0;var A=p.renderer.layerConfig.lineHeight,T=p.renderer.layerConfig.lineHeight,I=_.timeStamp;l=I;var N=w[0],D=N.clientX,F=N.clientY;Math.abs(a-D)+Math.abs(c-F)>A&&(u=-1),a=_.clientX=D,c=_.clientY=F,$=S=0;var H=new h(_,p);if(y=H.getDocumentPosition(),I-u<500&&w.length==1&&!v)C++,_.preventDefault(),_.button=0,M();else{C=0;var W=p.selection.cursor,U=p.selection.isEmpty()?W:p.selection.anchor,V=p.renderer.$cursorLayer.getPixelPosition(W,!0),G=p.renderer.$cursorLayer.getPixelPosition(U,!0),j=p.renderer.scroller.getBoundingClientRect(),Z=p.renderer.layerConfig.offset,X=p.renderer.scrollLeft,Q=function(B,Y){return B=B/T,Y=Y/A-.75,B*B+Y*Y};if(_.clientX<j.left){o="zoom";return}var le=Q(_.clientX-j.left-V.left+X,_.clientY-j.top-V.top+Z),z=Q(_.clientX-j.left-G.left+X,_.clientY-j.top-G.top+Z);le<3.5&&z<3.5&&(o=le>z?"cursor":"anchor"),z<3.5?o="anchor":le<3.5?o="cursor":o="scroll",d=setTimeout(O,450)}u=I},p),f.addListener(s,"touchend",function(_){b=p.$mouseHandler.isMousePressed=!1,m&&clearInterval(m),o=="zoom"?(o="",v=0):d?(p.selection.moveToPosition(y),v=0,E()):o=="scroll"?(x(),L()):E(),clearTimeout(d),d=null},p),f.addListener(s,"touchmove",function(_){d&&(clearTimeout(d),d=null);var w=_.touches;if(!(w.length>1||o=="zoom")){var A=w[0],T=a-A.clientX,I=c-A.clientY;if(o=="wait")if(T*T+I*I>4)o="cursor";else return _.preventDefault();a=A.clientX,c=A.clientY,_.clientX=A.clientX,_.clientY=A.clientY;var N=_.timeStamp,D=N-l;if(l=N,o=="scroll"){var F=new h(_,p);F.speed=1,F.wheelX=T,F.wheelY=I,10*Math.abs(T)<Math.abs(I)&&(T=0),10*Math.abs(I)<Math.abs(T)&&(I=0),D!=0&&($=T/D,S=I/D),p._emit("mousewheel",F),F.propagationStopped||($=S=0)}else{var H=new h(_,p),W=H.getDocumentPosition();o=="cursor"?p.selection.moveCursorToPosition(W):o=="anchor"&&p.selection.setSelectionAnchor(W.row,W.column),p.renderer.scrollCursorIntoView(W),_.preventDefault()}}},p);function x(){v+=60,m=setInterval(function(){v--<=0&&(clearInterval(m),m=null),Math.abs($)<.01&&($=0),Math.abs(S)<.01&&(S=0),v<20&&($=.9*$),v<20&&(S=.9*S);var _=p.session.getScrollTop();p.renderer.scrollBy(10*$,10*S),_==p.session.getScrollTop()&&(v=0)},10)}}}),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],function(n,r,i){var h=n("../lib/event"),f=n("../lib/useragent"),g=n("./default_handlers").DefaultHandlers,s=n("./default_gutter_handler").GutterHandler,p=n("./mouse_event").MouseEvent,o=n("./dragdrop_handler").DragdropHandler,a=n("./touch_handler").addTouchListeners,c=n("../config"),u=function(){function l(d){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var m=this;this.editor=d,new g(this),new s(this),new o(this);var v=function($){var S=!document.hasFocus||!document.hasFocus()||!d.isFocused()&&document.activeElement==(d.textInput&&d.textInput.getElement());S&&window.focus(),d.focus(),setTimeout(function(){d.isFocused()||d.focus()})},y=d.renderer.getMouseEventTarget();h.addListener(y,"click",this.onMouseEvent.bind(this,"click"),d),h.addListener(y,"mousemove",this.onMouseMove.bind(this,"mousemove"),d),h.addMultiMouseDownListener([y,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),h.addMouseWheelListener(d.container,this.onMouseWheel.bind(this,"mousewheel"),d),a(d.container,d);var C=d.renderer.$gutter;h.addListener(C,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),d),h.addListener(C,"click",this.onMouseEvent.bind(this,"gutterclick"),d),h.addListener(C,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),d),h.addListener(C,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),d),h.addListener(y,"mousedown",v,d),h.addListener(C,"mousedown",v,d),f.isIE&&d.renderer.scrollBarV&&(h.addListener(d.renderer.scrollBarV.element,"mousedown",v,d),h.addListener(d.renderer.scrollBarH.element,"mousedown",v,d)),d.on("mousemove",function($){if(!(m.state||m.$dragDelay||!m.$dragEnabled)){var S=d.renderer.screenToTextCoordinates($.x,$.y),b=d.session.selection.getRange(),k=d.renderer;!b.isEmpty()&&b.insideStart(S.row,S.column)?k.setCursorStyle("default"):k.setCursorStyle("")}},d)}return l.prototype.onMouseEvent=function(d,m){this.editor.session&&this.editor._emit(d,new p(m,this.editor))},l.prototype.onMouseMove=function(d,m){var v=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!v||!v.length||this.editor._emit(d,new p(m,this.editor))},l.prototype.onMouseWheel=function(d,m){var v=new p(m,this.editor);v.speed=this.$scrollSpeed*2,v.wheelX=m.wheelX,v.wheelY=m.wheelY,this.editor._emit(d,v)},l.prototype.setState=function(d){this.state=d},l.prototype.captureMouse=function(d,m){this.x=d.x,this.y=d.y,this.isMousePressed=!0;var v=this.editor,y=this.editor.renderer;y.$isMousePressed=!0;var C=this,$=!0,S=function(L){if(L){if(f.isWebKit&&!L.which&&C.releaseMouse)return C.releaseMouse();C.x=L.clientX,C.y=L.clientY,m&&m(L),C.mouseEvent=new p(L,C.editor),C.$mouseMoved=!0}},b=function(L){v.off("beforeEndOperation",E),$=!1,v.session&&k(),C[C.state+"End"]&&C[C.state+"End"](L),C.state="",C.isMousePressed=y.$isMousePressed=!1,y.$keepTextAreaAtCursor&&y.$moveTextAreaToCursor(),C.$onCaptureMouseMove=C.releaseMouse=null,L&&C.onMouseEvent("mouseup",L),v.endOperation()},k=function(){C[C.state]&&C[C.state](),C.$mouseMoved=!1},R=function(){$&&(k(),h.nextFrame(R))};if(f.isOldIE&&d.domEvent.type=="dblclick")return setTimeout(function(){b(d)});var E=function(L){C.releaseMouse&&v.curOp.command.name&&v.curOp.selectionChanged&&(C[C.state+"End"]&&C[C.state+"End"](),C.state="",C.releaseMouse())};v.on("beforeEndOperation",E),v.startOperation({command:{name:"mouse"}}),C.$onCaptureMouseMove=S,C.releaseMouse=h.capture(this.editor.container,S,b),R()},l.prototype.cancelContextMenu=function(){var d=(function(m){m&&m.domEvent&&m.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",d),m&&m.domEvent&&h.stopEvent(m.domEvent))}).bind(this);setTimeout(d,10),this.editor.on("nativecontextmenu",d)},l.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},l}();u.prototype.releaseMouse=null,c.defineOptions(u.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:f.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),r.MouseHandler=u}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(n,r,i){var h=n("../lib/dom"),f=function(){function g(s){s.on("click",function(p){var o=p.getDocumentPosition(),a=s.session,c=a.getFoldAt(o.row,o.column,1);c&&(p.getAccelKey()?a.removeFold(c):a.expandFold(c),p.stop());var u=p.domEvent&&p.domEvent.target;u&&h.hasCssClass(u,"ace_inline_button")&&h.hasCssClass(u,"ace_toggle_wrap")&&(a.setOption("wrap",!a.getUseWrapMode()),s.renderer.scrollCursorIntoView())}),s.on("gutterclick",function(p){var o=s.renderer.$gutterLayer.getRegion(p);if(o=="foldWidgets"){var a=p.getDocumentPosition().row,c=s.session;c.foldWidgets&&c.foldWidgets[a]&&s.session.onFoldWidgetClick(a,p),s.isFocused()||s.focus(),p.stop()}}),s.on("gutterdblclick",function(p){var o=s.renderer.$gutterLayer.getRegion(p);if(o=="foldWidgets"){var a=p.getDocumentPosition().row,c=s.session,u=c.getParentFoldRangeData(a,!0),l=u.range||u.firstRange;if(l){a=l.start.row;var d=c.getFoldAt(a,c.getLine(a).length,1);d?c.removeFold(d):(c.addFold("...",l),s.renderer.scrollCursorIntoView({row:l.start.row,column:0}))}p.stop()}})}return g}();r.FoldHandler=f}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(n,r,i){var h=n("../lib/keys"),f=n("../lib/event"),g=function(){function s(p){this.$editor=p,this.$data={editor:p},this.$handlers=[],this.setDefaultHandler(p.commands)}return s.prototype.setDefaultHandler=function(p){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=p,this.addKeyboardHandler(p,0)},s.prototype.setKeyboardHandler=function(p){var o=this.$handlers;if(o[o.length-1]!=p){for(;o[o.length-1]&&o[o.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(o[o.length-1]);this.addKeyboardHandler(p,1)}},s.prototype.addKeyboardHandler=function(p,o){if(p){typeof p=="function"&&!p.handleKeyboard&&(p.handleKeyboard=p);var a=this.$handlers.indexOf(p);a!=-1&&this.$handlers.splice(a,1),o==null?this.$handlers.push(p):this.$handlers.splice(o,0,p),a==-1&&p.attach&&p.attach(this.$editor)}},s.prototype.removeKeyboardHandler=function(p){var o=this.$handlers.indexOf(p);return o==-1?!1:(this.$handlers.splice(o,1),p.detach&&p.detach(this.$editor),!0)},s.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},s.prototype.getStatusText=function(){var p=this.$data,o=p.editor;return this.$handlers.map(function(a){return a.getStatusText&&a.getStatusText(o,p)||""}).filter(Boolean).join(" ")},s.prototype.$callKeyboardHandlers=function(p,o,a,c){for(var u,l=!1,d=this.$editor.commands,m=this.$handlers.length;m--&&(u=this.$handlers[m].handleKeyboard(this.$data,p,o,a,c),!(!(!u||!u.command)&&(u.command=="null"?l=!0:l=d.exec(u.command,this.$editor,u.args,c),l&&c&&p!=-1&&u.passEvent!=!0&&u.command.passEvent!=!0&&f.stopEvent(c),l))););return!l&&p==-1&&(u={command:"insertstring"},l=d.exec("insertstring",this.$editor,o)),l&&this.$editor._signal&&this.$editor._signal("keyboardActivity",u),l},s.prototype.onCommandKey=function(p,o,a){var c=h.keyCodeToString(a);return this.$callKeyboardHandlers(o,c,a,p)},s.prototype.onTextInput=function(p){return this.$callKeyboardHandlers(-1,p)},s}();r.KeyBinding=g}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(n,r,i){var h=0,f=0,g=!1,s=!1,p=!1,o=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],a=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],c=0,u=1,l=0,d=1,m=2,v=3,y=4,C=5,$=6,S=7,b=8,k=9,R=10,E=11,L=12,O=13,M=14,x=15,_=16,w=17,A=18,T=[A,A,A,A,A,A,A,A,A,$,C,$,b,C,A,A,A,A,A,A,A,A,A,A,A,A,A,A,C,C,C,$,b,y,y,E,E,E,y,y,y,y,y,R,k,R,k,k,m,m,m,m,m,m,m,m,m,m,k,y,y,y,y,y,y,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,y,y,y,y,y,y,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,y,y,y,y,A,A,A,A,A,A,C,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,k,y,E,E,E,E,y,y,y,y,l,y,y,A,y,y,E,E,m,m,y,l,y,y,y,m,l,y,y,y,y,y],I=[b,b,b,b,b,b,b,b,b,b,b,A,A,A,l,d,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,b,C,O,M,x,_,w,k,E,E,E,E,E,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,k,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,b];function N(W,U,V,G){var j=h?a:o,Z=null,X=null,Q=null,le=0,z=null,B=null,Y=-1,q=null,te=null,ne=[];if(!G)for(q=0,G=[];q<V;q++)G[q]=H(W[q]);for(f=h,g=!1,s=!1,p=!1,te=0;te<V;te++){if(Z=le,ne[te]=X=F(W,G,ne,te),le=j[Z][X],z=le&240,le&=15,U[te]=Q=j[le][5],z>0)if(z==16){for(q=Y;q<te;q++)U[q]=1;Y=-1}else Y=-1;if(B=j[le][6],B)Y==-1&&(Y=te);else if(Y>-1){for(q=Y;q<te;q++)U[q]=Q;Y=-1}G[te]==C&&(U[te]=0),f|=Q}if(p){for(q=0;q<V;q++)if(G[q]==$){U[q]=h;for(var ue=q-1;ue>=0&&G[ue]==b;ue--)U[ue]=h}}}function D(W,U,V){if(!(f<W)){if(W==1&&h==u&&!s){V.reverse();return}for(var G=V.length,j=0,Z,X,Q,le;j<G;){if(U[j]>=W){for(Z=j+1;Z<G&&U[Z]>=W;)Z++;for(X=j,Q=Z-1;X<Q;X++,Q--)le=V[X],V[X]=V[Q],V[Q]=le;j=Z}j++}}}function F(W,U,V,G){var j=U[G],Z,X,Q,le;switch(j){case l:case d:g=!1;case y:case v:return j;case m:return g?v:m;case S:return g=!0,d;case b:return y;case k:return G<1||G+1>=U.length||(Z=V[G-1])!=m&&Z!=v||(X=U[G+1])!=m&&X!=v?y:(g&&(X=v),X==Z?X:y);case R:return Z=G>0?V[G-1]:C,Z==m&&G+1<U.length&&U[G+1]==m?m:y;case E:if(G>0&&V[G-1]==m)return m;if(g)return y;for(le=G+1,Q=U.length;le<Q&&U[le]==E;)le++;return le<Q&&U[le]==m?m:y;case L:for(Q=U.length,le=G+1;le<Q&&U[le]==L;)le++;if(le<Q){var z=W[G],B=z>=1425&&z<=2303||z==64286;if(Z=U[le],B&&(Z==d||Z==S))return d}return G<1||(Z=U[G-1])==C?y:V[G-1];case C:return g=!1,s=!0,h;case $:return p=!0,y;case O:case M:case _:case w:case x:g=!1;case A:return y}}function H(W){var U=W.charCodeAt(0),V=U>>8;return V==0?U>191?l:T[U]:V==5?/[\u0591-\u05f4]/.test(W)?d:l:V==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(W)?L:/[\u0660-\u0669\u066b-\u066c]/.test(W)?v:U==1642?E:/[\u06f0-\u06f9]/.test(W)?m:S:V==32&&U<=8287?I[U&255]:V==254&&U>=65136?S:y}r.L=l,r.R=d,r.EN=m,r.ON_R=3,r.AN=4,r.R_H=5,r.B=6,r.RLE=7,r.DOT="·",r.doBidiReorder=function(W,U,V){if(W.length<2)return{};var G=W.split(""),j=new Array(G.length),Z=new Array(G.length),X=[];h=V?u:c,N(G,X,G.length,U);for(var Q=0;Q<j.length;j[Q]=Q,Q++);D(2,X,j),D(1,X,j);for(var Q=0;Q<j.length-1;Q++)U[Q]===v?X[Q]=r.AN:X[Q]===d&&(U[Q]>S&&U[Q]<O||U[Q]===y||U[Q]===A)?X[Q]=r.ON_R:Q>0&&G[Q-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(G[Q])&&(X[Q-1]=X[Q]=r.R_H,Q++);G[G.length-1]===r.DOT&&(X[G.length-1]=r.B),G[0]==="‫"&&(X[0]=r.RLE);for(var Q=0;Q<j.length;Q++)Z[Q]=X[j[Q]];return{logicalFromVisual:j,bidiLevels:Z}},r.hasBidiCharacters=function(W,U){for(var V=!1,G=0;G<W.length;G++)U[G]=H(W.charAt(G)),!V&&(U[G]==d||U[G]==S||U[G]==v)&&(V=!0);return V},r.getVisualFromLogicalIdx=function(W,U){for(var V=0;V<U.logicalFromVisual.length;V++)if(U.logicalFromVisual[V]==W)return V;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(n,r,i){var h=n("./lib/bidiutil"),f=n("./lib/lang"),g=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,s=function(){function p(o){this.session=o,this.bidiMap={},this.currentRow=null,this.bidiUtil=h,this.charWidths=[],this.EOL="¬",this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line="",this.wrapIndent=0,this.EOF="¶",this.RLE="‫",this.contentWidth=0,this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=g.test(o.getValue())}return p.prototype.isBidiRow=function(o,a,c){return this.seenBidi?(o!==this.currentRow&&(this.currentRow=o,this.updateRowLine(a,c),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},p.prototype.onChange=function(o){this.seenBidi?this.currentRow=null:o.action=="insert"&&g.test(o.lines.join(`
805
+ `))&&(this.seenBidi=!0,this.currentRow=null)},p.prototype.getDocumentRow=function(){var o=0,a=this.session.$screenRowCache;if(a.length){var c=this.session.$getRowCacheIndex(a,this.currentRow);c>=0&&(o=this.session.$docRowCache[c])}return o},p.prototype.getSplitIndex=function(){var o=0,a=this.session.$screenRowCache;if(a.length)for(var c,u=this.session.$getRowCacheIndex(a,this.currentRow);this.currentRow-o>0&&(c=this.session.$getRowCacheIndex(a,this.currentRow-o-1),c===u);)u=c,o++;else o=this.currentRow;return o},p.prototype.updateRowLine=function(o,a){o===void 0&&(o=this.getDocumentRow());var c=o===this.session.getLength()-1,u=c?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(o),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var l=this.session.$wrapData[o];l&&(a===void 0&&(a=this.getSplitIndex()),a>0&&l.length?(this.wrapIndent=l.indent,this.wrapOffset=this.wrapIndent*this.charWidths[h.L],this.line=a<l.length?this.line.substring(l[a-1],l[a]):this.line.substring(l[l.length-1])):this.line=this.line.substring(0,l[a]),a==l.length&&(this.line+=this.showInvisibles?u:h.DOT))}else this.line+=this.showInvisibles?u:h.DOT;var d=this.session,m=0,v;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(y,C){return y===" "||d.isFullWidth(y.charCodeAt(0))?(v=y===" "?d.getScreenTabSize(C+m):2,m+=v-1,f.stringRepeat(h.DOT,v)):y}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==h.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},p.prototype.updateBidiMap=function(){var o=[];h.hasBidiCharacters(this.line,o)||this.isRtlDir?this.bidiMap=h.doBidiReorder(this.line,o,this.isRtlDir):this.bidiMap={}},p.prototype.markAsDirty=function(){this.currentRow=null},p.prototype.updateCharacterWidths=function(o){if(this.characterWidth!==o.$characterSize.width){this.fontMetrics=o;var a=this.characterWidth=o.$characterSize.width,c=o.$measureCharWidth("ה");this.charWidths[h.L]=this.charWidths[h.EN]=this.charWidths[h.ON_R]=a,this.charWidths[h.R]=this.charWidths[h.AN]=c,this.charWidths[h.R_H]=c*.45,this.charWidths[h.B]=this.charWidths[h.RLE]=0,this.currentRow=null}},p.prototype.setShowInvisibles=function(o){this.showInvisibles=o,this.currentRow=null},p.prototype.setEolChar=function(o){this.EOL=o},p.prototype.setContentWidth=function(o){this.contentWidth=o},p.prototype.isRtlLine=function(o){return this.$isRtl?!0:o!=null?this.session.getLine(o).charAt(0)==this.RLE:this.isRtlDir},p.prototype.setRtlDirection=function(o,a){for(var c=o.getCursorPosition(),u=o.selection.getSelectionAnchor().row;u<=c.row;u++)!a&&o.session.getLine(u).charAt(0)===o.session.$bidiHandler.RLE?o.session.doc.removeInLine(u,0,1):a&&o.session.getLine(u).charAt(0)!==o.session.$bidiHandler.RLE&&o.session.doc.insert({column:0,row:u},o.session.$bidiHandler.RLE)},p.prototype.getPosLeft=function(o){o-=this.wrapIndent;var a=this.line.charAt(0)===this.RLE?1:0,c=o>a?this.session.getOverwrite()?o:o-1:a,u=h.getVisualFromLogicalIdx(c,this.bidiMap),l=this.bidiMap.bidiLevels,d=0;!this.session.getOverwrite()&&o<=a&&l[u]%2!==0&&u++;for(var m=0;m<u;m++)d+=this.charWidths[l[m]];return!this.session.getOverwrite()&&o>a&&l[u]%2===0&&(d+=this.charWidths[l[u]]),this.wrapIndent&&(d+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(d+=this.rtlLineOffset),d},p.prototype.getSelections=function(o,a){var c=this.bidiMap,u=c.bidiLevels,l,d=[],m=0,v=Math.min(o,a)-this.wrapIndent,y=Math.max(o,a)-this.wrapIndent,C=!1,$=!1,S=0;this.wrapIndent&&(m+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var b,k=0;k<u.length;k++)b=c.logicalFromVisual[k],l=u[k],C=b>=v&&b<y,C&&!$?S=m:!C&&$&&d.push({left:S,width:m-S}),m+=this.charWidths[l],$=C;if(C&&k===u.length&&d.push({left:S,width:m-S}),this.isRtlDir)for(var R=0;R<d.length;R++)d[R].left+=this.rtlLineOffset;return d},p.prototype.offsetToCol=function(c){this.isRtlDir&&(c-=this.rtlLineOffset);var a=0,c=Math.max(c,0),u=0,l=0,d=this.bidiMap.bidiLevels,m=this.charWidths[d[l]];for(this.wrapIndent&&(c-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);c>u+m/2;){if(u+=m,l===d.length-1){m=0;break}m=this.charWidths[d[++l]]}return l>0&&d[l-1]%2!==0&&d[l]%2===0?(c<u&&l--,a=this.bidiMap.logicalFromVisual[l]):l>0&&d[l-1]%2===0&&d[l]%2!==0?a=1+(c>u?this.bidiMap.logicalFromVisual[l]:this.bidiMap.logicalFromVisual[l-1]):this.isRtlDir&&l===d.length-1&&m===0&&d[l-1]%2===0||!this.isRtlDir&&l===0&&d[l]%2!==0?a=1+this.bidiMap.logicalFromVisual[l]:(l>0&&d[l-1]%2!==0&&m!==0&&l--,a=this.bidiMap.logicalFromVisual[l]),a===0&&this.isRtlDir&&a++,a+this.wrapIndent},p}();r.BidiHandler=s}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(n,r,i){var h=n("./lib/oop"),f=n("./lib/lang"),g=n("./lib/event_emitter").EventEmitter,s=n("./range").Range,p=function(){function o(a){this.session=a,this.doc=a.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var c=this;this.cursor.on("change",function(u){c.$cursorChanged=!0,c.$silent||c._emit("changeCursor"),!c.$isEmpty&&!c.$silent&&c._emit("changeSelection"),!c.$keepDesiredColumnOnChange&&u.old.column!=u.value.column&&(c.$desiredColumn=null)}),this.anchor.on("change",function(){c.$anchorChanged=!0,!c.$isEmpty&&!c.$silent&&c._emit("changeSelection")})}return 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(a,c){this.$isEmpty=!1,this.anchor.setPosition(a,c)},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 a=this.anchor,c=this.lead;return a.row>c.row||a.row==c.row&&a.column>c.column},o.prototype.getRange=function(){var a=this.anchor,c=this.lead;return this.$isEmpty?s.fromPoints(c,c):this.isBackwards()?s.fromPoints(c,a):s.fromPoints(a,c)},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(a,c){var u=c?a.end:a.start,l=c?a.start:a.end;this.$setSelection(u.row,u.column,l.row,l.column)},o.prototype.$setSelection=function(a,c,u,l){if(!this.$silent){var d=this.$isEmpty,m=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(a,c),this.cursor.setPosition(u,l),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(a){var c=this.lead;this.$isEmpty&&this.setSelectionAnchor(c.row,c.column),a.call(this)},o.prototype.selectTo=function(a,c){this.$moveSelection(function(){this.moveCursorTo(a,c)})},o.prototype.selectToPosition=function(a){this.$moveSelection(function(){this.moveCursorToPosition(a)})},o.prototype.moveTo=function(a,c){this.clearSelection(),this.moveCursorTo(a,c)},o.prototype.moveToPosition=function(a){this.clearSelection(),this.moveCursorToPosition(a)},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(a,c){if(typeof c>"u"){var u=a||this.lead;a=u.row,c=u.column}return this.session.getWordRange(a,c)},o.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},o.prototype.selectAWord=function(){var a=this.getCursor(),c=this.session.getAWordRange(a.row,a.column);this.setSelectionRange(c)},o.prototype.getLineRange=function(a,c){var u=typeof a=="number"?a:this.lead.row,l,d=this.session.getFoldLine(u);return d?(u=d.start.row,l=d.end.row):l=u,c===!0?new s(u,0,l,this.session.getLine(l).length):new s(u,0,l+1,0)},o.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},o.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},o.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},o.prototype.wouldMoveIntoSoftTab=function(a,c,u){var l=a.column,d=a.column+c;return u<0&&(l=a.column-c,d=a.column),this.session.isTabStop(a)&&this.doc.getLine(a.row).slice(l,d).split(" ").length-1==c},o.prototype.moveCursorLeft=function(){var a=this.lead.getPosition(),c;if(c=this.session.getFoldAt(a.row,a.column,-1))this.moveCursorTo(c.start.row,c.start.column);else if(a.column===0)a.row>0&&this.moveCursorTo(a.row-1,this.doc.getLine(a.row-1).length);else{var u=this.session.getTabSize();this.wouldMoveIntoSoftTab(a,u,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-u):this.moveCursorBy(0,-1)}},o.prototype.moveCursorRight=function(){var a=this.lead.getPosition(),c;if(c=this.session.getFoldAt(a.row,a.column,1))this.moveCursorTo(c.end.row,c.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var u=this.session.getTabSize(),a=this.lead;this.wouldMoveIntoSoftTab(a,u,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,u):this.moveCursorBy(0,1)}},o.prototype.moveCursorLineStart=function(){var a=this.lead.row,c=this.lead.column,u=this.session.documentToScreenRow(a,c),l=this.session.screenToDocumentPosition(u,0),d=this.session.getDisplayLine(a,null,l.row,l.column),m=d.match(/^\s*/);m[0].length!=c&&!this.session.$useEmacsStyleLineStart&&(l.column+=m[0].length),this.moveCursorToPosition(l)},o.prototype.moveCursorLineEnd=function(){var a=this.lead,c=this.session.getDocumentLastRowColumnPosition(a.row,a.column);if(this.lead.column==c.column){var u=this.session.getLine(c.row);if(c.column==u.length){var l=u.search(/\s+$/);l>0&&(c.column=l)}}this.moveCursorTo(c.row,c.column)},o.prototype.moveCursorFileEnd=function(){var a=this.doc.getLength()-1,c=this.doc.getLine(a).length;this.moveCursorTo(a,c)},o.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},o.prototype.moveCursorLongWordRight=function(){var a=this.lead.row,c=this.lead.column,u=this.doc.getLine(a),l=u.substring(c);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var d=this.session.getFoldAt(a,c,1);if(d){this.moveCursorTo(d.end.row,d.end.column);return}if(this.session.nonTokenRe.exec(l)&&(c+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,l=u.substring(c)),c>=u.length){this.moveCursorTo(a,u.length),this.moveCursorRight(),a<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(l)&&(c+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(a,c)},o.prototype.moveCursorLongWordLeft=function(){var a=this.lead.row,c=this.lead.column,u;if(u=this.session.getFoldAt(a,c,-1)){this.moveCursorTo(u.start.row,u.start.column);return}var l=this.session.getFoldStringAt(a,c,-1);l==null&&(l=this.doc.getLine(a).substring(0,c));var d=f.stringReverse(l);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(d)&&(c-=this.session.nonTokenRe.lastIndex,d=d.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),c<=0){this.moveCursorTo(a,0),this.moveCursorLeft(),a>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(d)&&(c-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(a,c)},o.prototype.$shortWordEndIndex=function(a){var c=0,u,l=/\s/,d=this.session.tokenRe;if(d.lastIndex=0,this.session.tokenRe.exec(a))c=this.session.tokenRe.lastIndex;else{for(;(u=a[c])&&l.test(u);)c++;if(c<1){for(d.lastIndex=0;(u=a[c])&&!d.test(u);)if(d.lastIndex=0,c++,l.test(u))if(c>2){c--;break}else{for(;(u=a[c])&&l.test(u);)c++;if(c>2)break}}}return d.lastIndex=0,c},o.prototype.moveCursorShortWordRight=function(){var a=this.lead.row,c=this.lead.column,u=this.doc.getLine(a),l=u.substring(c),d=this.session.getFoldAt(a,c,1);if(d)return this.moveCursorTo(d.end.row,d.end.column);if(c==u.length){var m=this.doc.getLength();do a++,l=this.doc.getLine(a);while(a<m&&/^\s*$/.test(l));/^\s+/.test(l)||(l=""),c=0}var v=this.$shortWordEndIndex(l);this.moveCursorTo(a,c+v)},o.prototype.moveCursorShortWordLeft=function(){var a=this.lead.row,c=this.lead.column,u;if(u=this.session.getFoldAt(a,c,-1))return this.moveCursorTo(u.start.row,u.start.column);var l=this.session.getLine(a).substring(0,c);if(c===0){do a--,l=this.doc.getLine(a);while(a>0&&/^\s*$/.test(l));c=l.length,/\s+$/.test(l)||(l="")}var d=f.stringReverse(l),m=this.$shortWordEndIndex(d);return this.moveCursorTo(a,c-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(a,c){var u=this.session.documentToScreenPosition(this.lead.row,this.lead.column),l;if(c===0&&(a!==0&&(this.session.$bidiHandler.isBidiRow(u.row,this.lead.row)?(l=this.session.$bidiHandler.getPosLeft(u.column),u.column=Math.round(l/this.session.$bidiHandler.charWidths[0])):l=u.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?u.column=this.$desiredColumn:this.$desiredColumn=u.column),a!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var d=this.session.lineWidgets[this.lead.row];a<0?a-=d.rowsAbove||0:a>0&&(a+=d.rowCount-(d.rowsAbove||0))}var m=this.session.screenToDocumentPosition(u.row+a,u.column,l);a!==0&&c===0&&m.row===this.lead.row&&(m.column,this.lead.column),this.moveCursorTo(m.row,m.column+c,c===0)},o.prototype.moveCursorToPosition=function(a){this.moveCursorTo(a.row,a.column)},o.prototype.moveCursorTo=function(a,c,u){var l=this.session.getFoldAt(a,c,1);l&&(a=l.start.row,c=l.start.column),this.$keepDesiredColumnOnChange=!0;var d=this.session.getLine(a);/[\uDC00-\uDFFF]/.test(d.charAt(c))&&d.charAt(c-1)&&(this.lead.row==a&&this.lead.column==c+1?c=c-1:c=c+1),this.lead.setPosition(a,c),this.$keepDesiredColumnOnChange=!1,u||(this.$desiredColumn=null)},o.prototype.moveCursorToScreen=function(a,c,u){var l=this.session.screenToDocumentPosition(a,c);this.moveCursorTo(l.row,l.column,u)},o.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},o.prototype.fromOrientedRange=function(a){this.setSelectionRange(a,a.cursor==a.start),this.$desiredColumn=a.desiredColumn||this.$desiredColumn},o.prototype.toOrientedRange=function(a){var c=this.getRange();return a?(a.start.column=c.start.column,a.start.row=c.start.row,a.end.column=c.end.column,a.end.row=c.end.row):a=c,a.cursor=this.isBackwards()?a.start:a.end,a.desiredColumn=this.$desiredColumn,a},o.prototype.getRangeOfMovements=function(a){var c=this.getCursor();try{a(this);var u=this.getCursor();return s.fromPoints(c,u)}catch{return s.fromPoints(c,c)}finally{this.moveCursorToPosition(c)}},o.prototype.toJSON=function(){if(this.rangeCount)var a=this.ranges.map(function(c){var u=c.clone();return u.isBackwards=c.cursor==c.start,u});else{var a=this.getRange();a.isBackwards=this.isBackwards()}return a},o.prototype.fromJSON=function(a){if(a.start==null)if(this.rangeList&&a.length>1){this.toSingleRange(a[0]);for(var c=a.length;c--;){var u=s.fromPoints(a[c].start,a[c].end);a[c].isBackwards&&(u.cursor=u.start),this.addRange(u,!0)}return}else a=a[0];this.rangeList&&this.toSingleRange(a),this.setSelectionRange(a,a.isBackwards)},o.prototype.isEqual=function(a){if((a.length||this.rangeCount)&&a.length!=this.rangeCount)return!1;if(!a.length||!this.ranges)return this.getRange().isEqual(a);for(var c=this.ranges.length;c--;)if(!this.ranges[c].isEqual(a[c]))return!1;return!0},o}();p.prototype.setSelectionAnchor=p.prototype.setAnchor,p.prototype.getSelectionAnchor=p.prototype.getAnchor,p.prototype.setSelectionRange=p.prototype.setRange,h.implement(p.prototype,g),r.Selection=p}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(n,r,i){var h=n("./lib/report_error").reportError,f=2e3,g=function(){function s(p){this.splitRegex,this.states=p,this.regExps={},this.matchMappings={};for(var o in this.states){for(var a=this.states[o],c=[],u=0,l=this.matchMappings[o]={defaultToken:"text"},d="g",m=[],v=0;v<a.length;v++){var y=a[v];if(y.defaultToken&&(l.defaultToken=y.defaultToken),y.caseInsensitive&&d.indexOf("i")===-1&&(d+="i"),y.unicode&&d.indexOf("u")===-1&&(d+="u"),y.regex!=null){y.regex instanceof RegExp&&(y.regex=y.regex.toString().slice(1,-1));var C=y.regex,$=new RegExp("(?:("+C+")|(.))").exec("a").length-2;Array.isArray(y.token)?y.token.length==1||$==1?y.token=y.token[0]:$-1!=y.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:y,groupCount:$-1}),y.token=y.token[0]):(y.tokenArray=y.token,y.token=null,y.onMatch=this.$arrayTokens):typeof y.token=="function"&&!y.onMatch&&($>1?y.onMatch=this.$applyToken:y.onMatch=y.token),$>1&&(/\\\d/.test(y.regex)?C=y.regex.replace(/\\([0-9]+)/g,function(S,b){return"\\"+(parseInt(b,10)+u+1)}):($=1,C=this.removeCapturingGroups(y.regex)),!y.splitRegex&&typeof y.token!="string"&&m.push(y)),l[u]=v,u+=$,c.push(C),y.onMatch||(y.onMatch=null)}}c.length||(l[0]=0,c.push("$")),m.forEach(function(S){S.splitRegex=this.createSplitterRegexp(S.regex,d)},this),this.regExps[o]=new RegExp("("+c.join(")|(")+")|($)",d)}}return s.prototype.$setMaxTokenCount=function(p){f=p|0},s.prototype.$applyToken=function(p){var o=this.splitRegex.exec(p).slice(1),a=this.token.apply(this,o);if(typeof a=="string")return[{type:a,value:p}];for(var c=[],u=0,l=a.length;u<l;u++)o[u]&&(c[c.length]={type:a[u],value:o[u]});return c},s.prototype.$arrayTokens=function(p){if(!p)return[];var o=this.splitRegex.exec(p);if(!o)return"text";for(var a=[],c=this.tokenArray,u=0,l=c.length;u<l;u++)o[u+1]&&(a[a.length]={type:c[u],value:o[u+1]});return a},s.prototype.removeCapturingGroups=function(p){var o=p.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(a,c){return c?"(?:":a});return o},s.prototype.createSplitterRegexp=function(p,o){if(p.indexOf("(?=")!=-1){var a=0,c=!1,u={};p.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(l,d,m,v,y,C){return c?c=y!="]":y?c=!0:v?(a==u.stack&&(u.end=C+1,u.stack=-1),a--):m&&(a++,m.length!=1&&(u.stack=a,u.start=C)),l}),u.end!=null&&/^\)*$/.test(p.substr(u.end))&&(p=p.substring(0,u.start)+p.substr(u.end))}return p.charAt(0)!="^"&&(p="^"+p),p.charAt(p.length-1)!="$"&&(p+="$"),new RegExp(p,(o||"").replace("g",""))},s.prototype.getLineTokens=function(p,o){if(o&&typeof o!="string"){var a=o.slice(0);o=a[0],o==="#tmp"&&(a.shift(),o=a.shift())}else var a=[];var c=o||"start",u=this.states[c];u||(c="start",u=this.states[c]);var l=this.matchMappings[c],d=this.regExps[c];d.lastIndex=0;for(var m,v=[],y=0,C=0,$={type:null,value:""};m=d.exec(p);){var S=l.defaultToken,b=null,k=m[0],R=d.lastIndex;if(R-k.length>y){var E=p.substring(y,R-k.length);$.type==S?$.value+=E:($.type&&v.push($),$={type:S,value:E})}for(var L=0;L<m.length-2;L++)if(m[L+1]!==void 0){b=u[l[L]],b.onMatch?S=b.onMatch(k,c,a,p):S=b.token,b.next&&(typeof b.next=="string"?c=b.next:c=b.next(c,a),u=this.states[c],u||(this.reportError("state doesn't exist",c),c="start",u=this.states[c]),l=this.matchMappings[c],y=R,d=this.regExps[c],d.lastIndex=R),b.consumeLineEnd&&(y=R);break}if(k){if(typeof S=="string")(!b||b.merge!==!1)&&$.type===S?$.value+=k:($.type&&v.push($),$={type:S,value:k});else if(S){$.type&&v.push($),$={type:null,value:""};for(var L=0;L<S.length;L++)v.push(S[L])}}if(y==p.length)break;if(y=R,C++>f){for(C>2*p.length&&this.reportError("infinite loop with in ace tokenizer",{startState:o,line:p});y<p.length;)$.type&&v.push($),$={value:p.substring(y,y+=500),type:"overflow"};c="start",a=[];break}}return $.type&&v.push($),a.length>1&&a[0]!==c&&a.unshift("#tmp",c),{tokens:v,state:a.length?a:c}},s}();g.prototype.reportError=h,r.Tokenizer=g}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(n,r,i){var h=n("../lib/deep_copy").deepCopy,f;f=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},(function(){this.addRules=function(p,o){if(!o){for(var a in p)this.$rules[a]=p[a];return}for(var a in p){for(var c=p[a],u=0;u<c.length;u++){var l=c[u];(l.next||l.onMatch)&&(typeof l.next=="string"&&l.next.indexOf(o)!==0&&(l.next=o+l.next),l.nextState&&l.nextState.indexOf(o)!==0&&(l.nextState=o+l.nextState))}this.$rules[o+a]=c}},this.getRules=function(){return this.$rules},this.embedRules=function(p,o,a,c,u){var l=typeof p=="function"?new p().getRules():p;if(c)for(var d=0;d<c.length;d++)c[d]=o+c[d];else{c=[];for(var m in l)c.push(o+m)}if(this.addRules(l,o),a)for(var v=Array.prototype[u?"push":"unshift"],d=0;d<c.length;d++)v.apply(this.$rules[c[d]],h(a));this.$embeds||(this.$embeds=[]),this.$embeds.push(o)},this.getEmbeds=function(){return this.$embeds};var g=function(p,o){return(p!="start"||o.length)&&o.unshift(this.nextState,p),this.nextState},s=function(p,o){return o.shift(),o.shift()||"start"};this.normalizeRules=function(){var p=0,o=this.$rules;function a(c){var u=o[c];u.processed=!0;for(var l=0;l<u.length;l++){var d=u[l],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 v=d.next||d.push;if(v&&Array.isArray(v)){var y=d.stateName;y||(y=d.token,typeof y!="string"&&(y=y[0]||""),o[y]&&(y+=p++)),o[y]=v,d.next=y,a(y)}else v=="pop"&&(d.next=s);if(d.push&&(d.nextState=d.next||d.push,d.next=g,delete d.push),d.rules)for(var C in d.rules)o[C]?o[C].push&&o[C].push.apply(o[C],d.rules[C]):o[C]=d.rules[C];var $=typeof d=="string"?d:d.include;if($&&($==="$self"&&($="start"),Array.isArray($)?m=$.map(function(b){return o[b]}):m=o[$]),m){var S=[l,1].concat(m);d.noEscape&&(S=S.filter(function(b){return!b.next})),u.splice.apply(u,S),l--}d.keywordMap&&(d.token=this.createKeywordMapper(d.keywordMap,d.defaultToken||"text",d.caseInsensitive),delete d.defaultToken)}}Object.keys(o).forEach(a,this)},this.createKeywordMapper=function(p,o,a,c){var u=Object.create(null);return this.$keywordList=[],Object.keys(p).forEach(function(l){for(var d=p[l],m=d.split(c||"|"),v=m.length;v--;){var y=m[v];this.$keywordList.push(y),a&&(y=y.toLowerCase()),u[y]=l}},this),p=null,a?function(l){return u[l.toLowerCase()]||o}:function(l){return u[l]||o}},this.getKeywords=function(){return this.$keywords}}).call(f.prototype),r.TextHighlightRules=f}),ace.define("ace/mode/behaviour",["require","exports","module"],function(n,r,i){var h;h=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(h.prototype),r.Behaviour=h}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(n,r,i){var h=n("./range").Range,f=function(){function g(s,p,o){this.$session=s,this.$row=p,this.$rowTokens=s.getTokens(p);var a=s.getTokenAt(p,o);this.$tokenIndex=a?a.index:-1}return g.prototype.stepBackward=function(){for(this.$tokenIndex-=1;this.$tokenIndex<0;){if(this.$row-=1,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},g.prototype.stepForward=function(){this.$tokenIndex+=1;for(var s;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,s||(s=this.$session.getLength()),this.$row>=s)return this.$row=s-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},g.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},g.prototype.getCurrentTokenRow=function(){return this.$row},g.prototype.getCurrentTokenColumn=function(){var s=this.$rowTokens,p=this.$tokenIndex,o=s[p].start;if(o!==void 0)return o;for(o=0;p>0;)p-=1,o+=s[p].value.length;return o},g.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},g.prototype.getCurrentTokenRange=function(){var s=this.$rowTokens[this.$tokenIndex],p=this.getCurrentTokenColumn();return new h(this.$row,p,this.$row,p+s.value.length)},g}();r.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,r,i){var h=n("../../lib/oop"),f=n("../behaviour").Behaviour,g=n("../../token_iterator").TokenIterator,s=n("../../lib/lang"),p=["text","paren.rparen","rparen","paren","punctuation.operator"],o=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],a,c={},u={'"':'"',"'":"'"},l=function(v){var y=-1;if(v.multiSelect&&(y=v.selection.index,c.rangeCount!=v.multiSelect.rangeCount&&(c={rangeCount:v.multiSelect.rangeCount})),c[y])return a=c[y];a=c[y]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},d=function(v,y,C,$){var S=v.end.row-v.start.row;return{text:C+y+$,selection:[0,v.start.column+1,S,v.end.column+(S?0:1)]}},m;m=function(v){v=v||{},this.add("braces","insertion",function(y,C,$,S,b){var k=$.getCursorPosition(),R=S.doc.getLine(k.row);if(b=="{"){l($);var E=$.getSelectionRange(),L=S.doc.getTextRange(E),O=S.getTokenAt(k.row,k.column);if(L!==""&&L!=="{"&&$.getWrapBehavioursEnabled())return d(E,L,"{","}");if(O&&/(?:string)\.quasi|\.xml/.test(O.type)){var M=[/tag\-(?:open|name)/,/attribute\-name/];return M.some(function(N){return N.test(O.type)})||/(string)\.quasi/.test(O.type)&&O.value[k.column-O.start-1]!=="$"?void 0:(m.recordAutoInsert($,S,"}"),{text:"{}",selection:[1,1]})}else if(m.isSaneInsertion($,S))return/[\]\}\)]/.test(R[k.column])||$.inMultiSelectMode||v.braces?(m.recordAutoInsert($,S,"}"),{text:"{}",selection:[1,1]}):(m.recordMaybeInsert($,S,"{"),{text:"{",selection:[1,1]})}else if(b=="}"){l($);var x=R.substring(k.column,k.column+1);if(x=="}"){var _=S.$findOpeningBracket("}",{column:k.column+1,row:k.row});if(_!==null&&m.isAutoInsertedClosing(k,R,b))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(b==`
806
+ `||b==`\r
807
+ `){l($);var w="";m.isMaybeInsertedClosing(k,R)&&(w=s.stringRepeat("}",a.maybeInsertedBrackets),m.clearMaybeInsertedClosing());var x=R.substring(k.column,k.column+1);if(x==="}"){var A=S.findMatchingBracket({row:k.row,column:k.column+1},"}");if(!A)return null;var T=this.$getIndent(S.getLine(A.row))}else if(w)var T=this.$getIndent(R);else{m.clearMaybeInsertedClosing();return}var I=T+S.getTabString();return{text:`
808
+ `+I+`
809
+ `+T+w,selection:[1,I.length,1,I.length]}}else m.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(y,C,$,S,b){var k=S.doc.getTextRange(b);if(!b.isMultiLine()&&k=="{"){l($);var R=S.doc.getLine(b.start.row),E=R.substring(b.end.column,b.end.column+1);if(E=="}")return b.end.column++,b;a.maybeInsertedBrackets--}}),this.add("parens","insertion",function(y,C,$,S,b){if(b=="("){l($);var k=$.getSelectionRange(),R=S.doc.getTextRange(k);if(R!==""&&$.getWrapBehavioursEnabled())return d(k,R,"(",")");if(m.isSaneInsertion($,S))return m.recordAutoInsert($,S,")"),{text:"()",selection:[1,1]}}else if(b==")"){l($);var E=$.getCursorPosition(),L=S.doc.getLine(E.row),O=L.substring(E.column,E.column+1);if(O==")"){var M=S.$findOpeningBracket(")",{column:E.column+1,row:E.row});if(M!==null&&m.isAutoInsertedClosing(E,L,b))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(y,C,$,S,b){var k=S.doc.getTextRange(b);if(!b.isMultiLine()&&k=="("){l($);var R=S.doc.getLine(b.start.row),E=R.substring(b.start.column+1,b.start.column+2);if(E==")")return b.end.column++,b}}),this.add("brackets","insertion",function(y,C,$,S,b){if(b=="["){l($);var k=$.getSelectionRange(),R=S.doc.getTextRange(k);if(R!==""&&$.getWrapBehavioursEnabled())return d(k,R,"[","]");if(m.isSaneInsertion($,S))return m.recordAutoInsert($,S,"]"),{text:"[]",selection:[1,1]}}else if(b=="]"){l($);var E=$.getCursorPosition(),L=S.doc.getLine(E.row),O=L.substring(E.column,E.column+1);if(O=="]"){var M=S.$findOpeningBracket("]",{column:E.column+1,row:E.row});if(M!==null&&m.isAutoInsertedClosing(E,L,b))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(y,C,$,S,b){var k=S.doc.getTextRange(b);if(!b.isMultiLine()&&k=="["){l($);var R=S.doc.getLine(b.start.row),E=R.substring(b.start.column+1,b.start.column+2);if(E=="]")return b.end.column++,b}}),this.add("string_dquotes","insertion",function(y,C,$,S,b){var k=S.$mode.$quotes||u;if(b.length==1&&k[b]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(b)!=-1)return;l($);var R=b,E=$.getSelectionRange(),L=S.doc.getTextRange(E);if(L!==""&&(L.length!=1||!k[L])&&$.getWrapBehavioursEnabled())return d(E,L,R,R);if(!L){var O=$.getCursorPosition(),M=S.doc.getLine(O.row),x=M.substring(O.column-1,O.column),_=M.substring(O.column,O.column+1),w=S.getTokenAt(O.row,O.column),A=S.getTokenAt(O.row,O.column+1);if(x=="\\"&&w&&/escape/.test(w.type))return null;var T=w&&/string|escape/.test(w.type),I=!A||/string|escape/.test(A.type),N;if(_==R)N=T!==I,N&&/string\.end/.test(A.type)&&(N=!1);else{if(T&&!I||T&&I)return null;var D=S.$mode.tokenRe;D.lastIndex=0;var F=D.test(x);D.lastIndex=0;var H=D.test(_),W=S.$mode.$pairQuotesAfter,U=W&&W[R]&&W[R].test(x);if(!U&&F||H||_&&!/[\s;,.})\]\\]/.test(_))return null;var V=M[O.column-2];if(x==R&&(V==R||D.test(V)))return null;N=!0}return{text:N?R+R:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(y,C,$,S,b){var k=S.$mode.$quotes||u,R=S.doc.getTextRange(b);if(!b.isMultiLine()&&k.hasOwnProperty(R)){l($);var E=S.doc.getLine(b.start.row),L=E.substring(b.start.column+1,b.start.column+2);if(L==R)return b.end.column++,b}}),v.closeDocComment!==!1&&this.add("doc comment end","insertion",function(y,C,$,S,b){if(y==="doc-start"&&(b===`
810
+ `||b===`\r
811
+ `)&&$.selection.isEmpty()){var k=$.getCursorPosition();if(k.column===0)return;for(var R=S.doc.getLine(k.row),E=S.doc.getLine(k.row+1),L=S.getTokens(k.row),O=0,M=0;M<L.length;M++){O+=L[M].value.length;var x=L[M];if(O>=k.column){if(O===k.column){if(!/\.doc/.test(x.type))return;if(/\*\//.test(x.value)){var _=L[M+1];if(!_||!/\.doc/.test(_.type))return}}var w=k.column-(O-x.value.length),A=x.value.indexOf("*/"),T=x.value.indexOf("/**",A>-1?A+2:0);if(T!==-1&&w>T&&w<T+3||A!==-1&&T!==-1&&w>=A&&w<=T||!/\.doc/.test(x.type))return;break}}var I=this.$getIndent(R);if(/\s*\*/.test(E))return/^\s*\*/.test(R)?{text:b+I+"* ",selection:[1,2+I.length,1,2+I.length]}:{text:b+I+" * ",selection:[1,3+I.length,1,3+I.length]};if(/\/\*\*/.test(R.substring(0,k.column)))return{text:b+I+" * "+b+" "+I+"*/",selection:[1,4+I.length,1,4+I.length]}}})},m.isSaneInsertion=function(v,y){var C=v.getCursorPosition(),$=new g(y,C.row,C.column);if(!this.$matchTokenType($.getCurrentToken()||"text",p)){if(/[)}\]]/.test(v.session.getLine(C.row)[C.column]))return!0;var S=new g(y,C.row,C.column+1);if(!this.$matchTokenType(S.getCurrentToken()||"text",p))return!1}return $.stepForward(),$.getCurrentTokenRow()!==C.row||this.$matchTokenType($.getCurrentToken()||"text",o)},m.$matchTokenType=function(v,y){return y.indexOf(v.type||v)>-1},m.recordAutoInsert=function(v,y,C){var $=v.getCursorPosition(),S=y.doc.getLine($.row);this.isAutoInsertedClosing($,S,a.autoInsertedLineEnd[0])||(a.autoInsertedBrackets=0),a.autoInsertedRow=$.row,a.autoInsertedLineEnd=C+S.substr($.column),a.autoInsertedBrackets++},m.recordMaybeInsert=function(v,y,C){var $=v.getCursorPosition(),S=y.doc.getLine($.row);this.isMaybeInsertedClosing($,S)||(a.maybeInsertedBrackets=0),a.maybeInsertedRow=$.row,a.maybeInsertedLineStart=S.substr(0,$.column)+C,a.maybeInsertedLineEnd=S.substr($.column),a.maybeInsertedBrackets++},m.isAutoInsertedClosing=function(v,y,C){return a.autoInsertedBrackets>0&&v.row===a.autoInsertedRow&&C===a.autoInsertedLineEnd[0]&&y.substr(v.column)===a.autoInsertedLineEnd},m.isMaybeInsertedClosing=function(v,y){return a.maybeInsertedBrackets>0&&v.row===a.maybeInsertedRow&&y.substr(v.column)===a.maybeInsertedLineEnd&&y.substr(0,v.column)==a.maybeInsertedLineStart},m.popAutoInsertedClosing=function(){a.autoInsertedLineEnd=a.autoInsertedLineEnd.substr(1),a.autoInsertedBrackets--},m.clearMaybeInsertedClosing=function(){a&&(a.maybeInsertedBrackets=0,a.maybeInsertedRow=-1)},h.inherits(m,f),r.CstyleBehaviour=m}),ace.define("ace/unicode",["require","exports","module"],function(n,r,i){for(var h=[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<h.length;s+=2)g.push(f+=h[s]),h[s+1]&&g.push(45,f+=h[s+1]);r.wordChars=String.fromCharCode.apply(null,g)}),ace.define("ace/mode/text",["require","exports","module","ace/config","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],function(n,r,i){var h=n("../config"),f=n("../tokenizer").Tokenizer,g=n("./text_highlight_rules").TextHighlightRules,s=n("./behaviour/cstyle").CstyleBehaviour,p=n("../unicode"),o=n("../lib/lang"),a=n("../token_iterator").TokenIterator,c=n("../range").Range,u;u=function(){this.HighlightRules=g},(function(){this.$defaultBehaviour=new s,this.tokenRe=new RegExp("^["+p.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+p.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new f(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(l,d,m,v){var y=d.doc,C=!0,$=!0,S=1/0,b=d.getTabSize(),k=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var L=this.lineCommentStart.map(o.escapeRegExp).join("|"),R=this.lineCommentStart[0];else var L=o.escapeRegExp(this.lineCommentStart),R=this.lineCommentStart;L=new RegExp("^(\\s*)(?:"+L+") ?"),k=d.getUseSoftTabs();var x=function(H,W){var U=H.match(L);if(U){var V=U[1].length,G=U[0].length;!A(H,V,G)&&U[0][G-1]==" "&&G--,y.removeInLine(W,V,G)}},w=R+" ",M=function(H,W){(!C||/\S/.test(H))&&(A(H,S,S)?y.insertInLine({row:W,column:S},w):y.insertInLine({row:W,column:S},R))},_=function(H,W){return L.test(H)},A=function(H,W,U){for(var V=0;W--&&H.charAt(W)==" ";)V++;if(V%b!=0)return!1;for(var V=0;H.charAt(U++)==" ";)V++;return b>2?V%b!=b-1:V%b==0}}else{if(!this.blockComment)return!1;var R=this.blockComment.start,E=this.blockComment.end,L=new RegExp("^(\\s*)(?:"+o.escapeRegExp(R)+")"),O=new RegExp("(?:"+o.escapeRegExp(E)+")\\s*$"),M=function(N,D){_(N,D)||(!C||/\S/.test(N))&&(y.insertInLine({row:D,column:N.length},E),y.insertInLine({row:D,column:S},R))},x=function(N,D){var F;(F=N.match(O))&&y.removeInLine(D,N.length-F[0].length,N.length),(F=N.match(L))&&y.removeInLine(D,F[1].length,F[0].length)},_=function(N,D){if(L.test(N))return!0;for(var F=d.getTokens(D),H=0;H<F.length;H++)if(F[H].type==="comment")return!0}}function T(N){for(var D=m;D<=v;D++)N(y.getLine(D),D)}var I=1/0;T(function(N,D){var F=N.search(/\S/);F!==-1?(F<S&&(S=F),$&&!_(N,D)&&($=!1)):I>N.length&&(I=N.length)}),S==1/0&&(S=I,C=!1,$=!1),k&&S%b!=0&&(S=Math.floor(S/b)*b),T($?x:M)},this.toggleBlockComment=function(l,d,m,v){var y=this.blockComment;if(y){!y.start&&y[0]&&(y=y[0]);var C=new a(d,v.row,v.column),$=C.getCurrentToken();d.selection;var S=d.selection.toOrientedRange(),b,k;if($&&/comment/.test($.type)){for(var R,E;$&&/comment/.test($.type);){var L=$.value.indexOf(y.start);if(L!=-1){var O=C.getCurrentTokenRow(),M=C.getCurrentTokenColumn()+L;R=new c(O,M,O,M+y.start.length);break}$=C.stepBackward()}for(var C=new a(d,v.row,v.column),$=C.getCurrentToken();$&&/comment/.test($.type);){var L=$.value.indexOf(y.end);if(L!=-1){var O=C.getCurrentTokenRow(),M=C.getCurrentTokenColumn()+L;E=new c(O,M,O,M+y.end.length);break}$=C.stepForward()}E&&d.remove(E),R&&(d.remove(R),b=R.start.row,k=-y.start.length)}else k=y.start.length,b=m.start.row,d.insert(m.end,y.end),d.insert(m.start,y.start);S.start.row==b&&(S.start.column+=k),S.end.row==b&&(S.end.column+=k),d.selection.fromOrientedRange(S)}},this.getNextLineIndent=function(l,d,m){return this.$getIndent(d)},this.checkOutdent=function(l,d,m){return!1},this.autoOutdent=function(l,d,m){},this.$getIndent=function(l){return l.match(/^\s*/)[0]},this.createWorker=function(l){return null},this.createModeDelegates=function(l){this.$embeds=[],this.$modes={};for(var d in l)if(l[d]){var m=l[d],v=m.prototype.$id,y=h.$modes[v];y||(h.$modes[v]=y=new m),h.$modes[d]||(h.$modes[d]=y),this.$embeds.push(d),this.$modes[d]=y}for(var C=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],$=function(b){(function(k){var R=C[b],E=k[R];k[C[b]]=function(){return this.$delegator(R,arguments,E)}})(S)},S=this,d=0;d<C.length;d++)$(d)},this.$delegator=function(l,d,m){var v=d[0]||"start";if(typeof v!="string"){if(Array.isArray(v[2])){var y=v[2][v[2].length-1],C=this.$modes[y];if(C)return C[l].apply(C,[v[1]].concat([].slice.call(d,1)))}v=v[0]||"start"}for(var $=0;$<this.$embeds.length;$++)if(this.$modes[this.$embeds[$]]){var S=v.split(this.$embeds[$]);if(!S[0]&&S[1]){d[0]=S[1];var C=this.$modes[this.$embeds[$]];return C[l].apply(C,d)}}var b=m.apply(this,d);return m?b:void 0},this.transformAction=function(l,d,m,v,y){if(this.$behaviour){var C=this.$behaviour.getBehaviours();for(var $ in C)if(C[$][d]){var S=C[$][d].apply(this,arguments);if(S)return S}}},this.getKeywords=function(l){if(!this.completionKeywords){var d=this.$tokenizer.rules,m=[];for(var v in d)for(var y=d[v],C=0,$=y.length;C<$;C++)if(typeof y[C].token=="string")/keyword|support|storage/.test(y[C].token)&&m.push(y[C].regex);else if(typeof y[C].token=="object"){for(var S=0,b=y[C].token.length;S<b;S++)if(/keyword|support|storage/.test(y[C].token[S])){var v=y[C].regex.match(/\(.+?\)/g)[S];m.push(v.substr(1,v.length-2))}}this.completionKeywords=m}return l?m.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(l,d,m,v){var y=this.$keywordList||this.$createKeywordList();return y.map(function(C){return{name:C,value:C,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call(u.prototype),r.Mode=u}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(n,r,i){var h=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 p;return this.lineWidgets?p=this.lineWidgets[s]&&this.lineWidgets[s].rowCount||0:p=0,!this.$useWrapMode||!this.$wrapData[s]?1+p:this.$wrapData[s].length+1+p},g.prototype.$getWidgetScreenLength=function(){var s=0;return this.lineWidgets.forEach(function(p){p&&p.rowCount&&!p.hidden&&(s+=p.rowCount)}),s},g.prototype.$onChangeEditor=function(s){this.attach(s.editor)},g.prototype.attach=function(s){s&&s.widgetManager&&s.widgetManager!=this&&s.widgetManager.detach(),this.editor!=s&&(this.detach(),this.editor=s,s&&(s.widgetManager=this,s.renderer.on("beforeRender",this.measureWidgets),s.renderer.on("afterRender",this.renderWidgets)))},g.prototype.detach=function(s){var p=this.editor;if(p){this.editor=null,p.widgetManager=null,p.renderer.off("beforeRender",this.measureWidgets),p.renderer.off("afterRender",this.renderWidgets);var o=this.session.lineWidgets;o&&o.forEach(function(a){a&&a.el&&a.el.parentNode&&(a._inDocument=!1,a.el.parentNode.removeChild(a.el))})}},g.prototype.updateOnFold=function(s,p){var o=p.lineWidgets;if(!(!o||!s.action)){for(var a=s.data,c=a.start.row,u=a.end.row,l=s.action=="add",d=c+1;d<u;d++)o[d]&&(o[d].hidden=l);o[u]&&(l?o[c]?o[u].hidden=l:o[c]=o[u]:(o[c]==o[u]&&(o[c]=void 0),o[u].hidden=l))}},g.prototype.updateOnChange=function(s){var p=this.session.lineWidgets;if(p){var o=s.start.row,a=s.end.row-o;if(a!==0)if(s.action=="remove"){var c=p.splice(o+1,a);!p[o]&&c[c.length-1]&&(p[o]=c.pop()),c.forEach(function(l){l&&this.removeLineWidget(l)},this),this.$updateRows()}else{var u=new Array(a);p[o]&&p[o].column!=null&&s.start.column>p[o].column&&o++,u.unshift(o,0),p.splice.apply(p,u),this.$updateRows()}}},g.prototype.$updateRows=function(){var s=this.session.lineWidgets;if(s){var p=!0;s.forEach(function(o,a){if(o)for(p=!1,o.row=a;o.$oldWidget;)o.$oldWidget.row=a,o=o.$oldWidget}),p&&(this.session.lineWidgets=null)}},g.prototype.$registerLineWidget=function(s){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var p=this.session.lineWidgets[s.row];return p&&(s.$oldWidget=p,p.el&&p.el.parentNode&&(p.el.parentNode.removeChild(p.el),p._inDocument=!1)),this.session.lineWidgets[s.row]=s,s},g.prototype.addLineWidget=function(s){if(this.$registerLineWidget(s),s.session=this.session,!this.editor)return s;var p=this.editor.renderer;s.html&&!s.el&&(s.el=h.createElement("div"),s.el.innerHTML=s.html),s.text&&!s.el&&(s.el=h.createElement("div"),s.el.textContent=s.text),s.el&&(h.addCssClass(s.el,"ace_lineWidgetContainer"),s.className&&h.addCssClass(s.el,s.className),s.el.style.position="absolute",s.el.style.zIndex="5",p.container.appendChild(s.el),s._inDocument=!0,s.coverGutter||(s.el.style.zIndex="3"),s.pixelHeight==null&&(s.pixelHeight=s.el.offsetHeight)),s.rowCount==null&&(s.rowCount=s.pixelHeight/p.layerConfig.lineHeight);var o=this.session.getFoldAt(s.row,0);if(s.$fold=o,o){var a=this.session.lineWidgets;s.row==o.end.row&&!a[o.start.row]?a[o.start.row]=s:s.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:s.row}}}),this.$updateRows(),this.renderWidgets(null,p),this.onWidgetChanged(s),s},g.prototype.removeLineWidget=function(s){if(s._inDocument=!1,s.session=null,s.el&&s.el.parentNode&&s.el.parentNode.removeChild(s.el),s.editor&&s.editor.destroy)try{s.editor.destroy()}catch{}if(this.session.lineWidgets){var p=this.session.lineWidgets[s.row];if(p==s)this.session.lineWidgets[s.row]=s.$oldWidget,s.$oldWidget&&this.onWidgetChanged(s.$oldWidget);else for(;p;){if(p.$oldWidget==s){p.$oldWidget=s.$oldWidget;break}p=p.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:s.row}}}),this.$updateRows()},g.prototype.getWidgetsAtRow=function(s){for(var p=this.session.lineWidgets,o=p&&p[s],a=[];o;)a.push(o),o=o.$oldWidget;return a},g.prototype.onWidgetChanged=function(s){this.session._changedWidgets.push(s),this.editor&&this.editor.renderer.updateFull()},g.prototype.measureWidgets=function(s,p){var o=this.session._changedWidgets,a=p.layerConfig;if(!(!o||!o.length)){for(var c=1/0,u=0;u<o.length;u++){var l=o[u];if(!(!l||!l.el)&&l.session==this.session){if(!l._inDocument){if(this.session.lineWidgets[l.row]!=l)continue;l._inDocument=!0,p.container.appendChild(l.el)}l.h=l.el.offsetHeight,l.fixedWidth||(l.w=l.el.offsetWidth,l.screenWidth=Math.ceil(l.w/a.characterWidth));var d=l.h/a.lineHeight;l.coverLine&&(d-=this.session.getRowLineCount(l.row),d<0&&(d=0)),l.rowCount!=d&&(l.rowCount=d,l.row<c&&(c=l.row))}}c!=1/0&&(this.session._emit("changeFold",{data:{start:{row:c}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},g.prototype.renderWidgets=function(s,p){var o=p.layerConfig,a=this.session.lineWidgets;if(a){for(var c=Math.min(this.firstRow,o.firstRow),u=Math.max(this.lastRow,o.lastRow,a.length);c>0&&!a[c];)c--;this.firstRow=o.firstRow,this.lastRow=o.lastRow,p.$cursorLayer.config=o;for(var l=c;l<=u;l++){var d=a[l];if(!(!d||!d.el)){if(d.hidden){d.el.style.top=-100-(d.pixelHeight||0)+"px";continue}d._inDocument||(d._inDocument=!0,p.container.appendChild(d.el));var m=p.$cursorLayer.getPixelPosition({row:l,column:0},!0).top;d.coverLine||(m+=o.lineHeight*this.session.getRowLineCount(d.row)),d.el.style.top=m-o.offset+"px";var v=d.coverGutter?0:p.gutterWidth;d.fixedWidth||(v-=p.scrollLeft),d.el.style.left=v+"px",d.fullWidth&&d.screenWidth&&(d.el.style.minWidth=o.width+2*o.padding+"px"),d.fixedWidth?d.el.style.right=p.scrollBar.getWidth()+"px":d.el.style.right=""}}}},g}();r.LineWidgets=f}),ace.define("ace/apply_delta",["require","exports","module"],function(n,r,i){r.applyDelta=function(h,f,g){var s=f.start.row,p=f.start.column,o=h[s]||"";switch(f.action){case"insert":var a=f.lines;if(a.length===1)h[s]=o.substring(0,p)+f.lines[0]+o.substring(p);else{var c=[s,1].concat(f.lines);h.splice.apply(h,c),h[s]=o.substring(0,p)+h[s],h[s+f.lines.length-1]+=o.substring(p)}break;case"remove":var u=f.end.column,l=f.end.row;s===l?h[s]=o.substring(0,p)+o.substring(u):h.splice(s,l-s+1,o.substring(0,p)+h[l].substring(u));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(n,r,i){var h=n("./lib/oop"),f=n("./lib/event_emitter").EventEmitter,g=function(){function o(a,c,u){this.$onChange=this.onChange.bind(this),this.attach(a),typeof c!="number"?this.setPosition(c.row,c.column):this.setPosition(c,u)}return o.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},o.prototype.getDocument=function(){return this.document},o.prototype.onChange=function(a){if(!(a.start.row==a.end.row&&a.start.row!=this.row)&&!(a.start.row>this.row)){var c=p(a,{row:this.row,column:this.column},this.$insertRight);this.setPosition(c.row,c.column,!0)}},o.prototype.setPosition=function(a,c,u){var l;if(u?l={row:a,column:c}:l=this.$clipPositionToDocument(a,c),!(this.row==l.row&&this.column==l.column)){var d={row:this.row,column:this.column};this.row=l.row,this.column=l.column,this._signal("change",{old:d,value:l})}},o.prototype.detach=function(){this.document.off("change",this.$onChange)},o.prototype.attach=function(a){this.document=a||this.document,this.document.on("change",this.$onChange)},o.prototype.$clipPositionToDocument=function(a,c){var u={};return a>=this.document.getLength()?(u.row=Math.max(0,this.document.getLength()-1),u.column=this.document.getLine(u.row).length):a<0?(u.row=0,u.column=0):(u.row=a,u.column=Math.min(this.document.getLine(u.row).length,Math.max(0,c))),c<0&&(u.column=0),u},o}();g.prototype.$insertRight=!1,h.implement(g.prototype,f);function s(o,a,c){var u=c?o.column<=a.column:o.column<a.column;return o.row<a.row||o.row==a.row&&u}function p(o,a,c){var u=o.action=="insert",l=(u?1:-1)*(o.end.row-o.start.row),d=(u?1:-1)*(o.end.column-o.start.column),m=o.start,v=u?m:o.end;return s(a,m,c)?{row:a.row,column:a.column}:s(v,a,!c)?{row:a.row+l,column:a.column+(a.row==v.row?d:0)}:{row:m.row,column:m.column}}r.Anchor=g}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(n,r,i){var h=n("./lib/oop"),f=n("./apply_delta").applyDelta,g=n("./lib/event_emitter").EventEmitter,s=n("./range").Range,p=n("./anchor").Anchor,o=function(){function a(c){this.$lines=[""],c.length===0?this.$lines=[""]:Array.isArray(c)?this.insertMergedLines({row:0,column:0},c):this.insert({row:0,column:0},c)}return a.prototype.setValue=function(c){var u=this.getLength()-1;this.remove(new s(0,0,u,this.getLine(u).length)),this.insert({row:0,column:0},c||"")},a.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},a.prototype.createAnchor=function(c,u){return new p(this,c,u)},a.prototype.$detectNewLine=function(c){var u=c.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=u?u[1]:`
812
+ `,this._signal("changeNewLineMode")},a.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
813
+ `;case"unix":return`
814
+ `;default:return this.$autoNewLine||`
815
+ `}},a.prototype.setNewLineMode=function(c){this.$newLineMode!==c&&(this.$newLineMode=c,this._signal("changeNewLineMode"))},a.prototype.getNewLineMode=function(){return this.$newLineMode},a.prototype.isNewLine=function(c){return c==`\r
816
+ `||c=="\r"||c==`
817
+ `},a.prototype.getLine=function(c){return this.$lines[c]||""},a.prototype.getLines=function(c,u){return this.$lines.slice(c,u+1)},a.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},a.prototype.getLength=function(){return this.$lines.length},a.prototype.getTextRange=function(c){return this.getLinesForRange(c).join(this.getNewLineCharacter())},a.prototype.getLinesForRange=function(c){var u;if(c.start.row===c.end.row)u=[this.getLine(c.start.row).substring(c.start.column,c.end.column)];else{u=this.getLines(c.start.row,c.end.row),u[0]=(u[0]||"").substring(c.start.column);var l=u.length-1;c.end.row-c.start.row==l&&(u[l]=u[l].substring(0,c.end.column))}return u},a.prototype.insertLines=function(c,u){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(c,u)},a.prototype.removeLines=function(c,u){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(c,u)},a.prototype.insertNewLine=function(c){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(c,["",""])},a.prototype.insert=function(c,u){return this.getLength()<=1&&this.$detectNewLine(u),this.insertMergedLines(c,this.$split(u))},a.prototype.insertInLine=function(c,u){var l=this.clippedPos(c.row,c.column),d=this.pos(c.row,c.column+u.length);return this.applyDelta({start:l,end:d,action:"insert",lines:[u]},!0),this.clonePos(d)},a.prototype.clippedPos=function(c,u){var l=this.getLength();c===void 0?c=l:c<0?c=0:c>=l&&(c=l-1,u=void 0);var d=this.getLine(c);return u==null&&(u=d.length),u=Math.min(Math.max(u,0),d.length),{row:c,column:u}},a.prototype.clonePos=function(c){return{row:c.row,column:c.column}},a.prototype.pos=function(c,u){return{row:c,column:u}},a.prototype.$clipPosition=function(c){var u=this.getLength();return c.row>=u?(c.row=Math.max(0,u-1),c.column=this.getLine(u-1).length):(c.row=Math.max(0,c.row),c.column=Math.min(Math.max(c.column,0),this.getLine(c.row).length)),c},a.prototype.insertFullLines=function(c,u){c=Math.min(Math.max(c,0),this.getLength());var l=0;c<this.getLength()?(u=u.concat([""]),l=0):(u=[""].concat(u),c--,l=this.$lines[c].length),this.insertMergedLines({row:c,column:l},u)},a.prototype.insertMergedLines=function(c,u){var l=this.clippedPos(c.row,c.column),d={row:l.row+u.length-1,column:(u.length==1?l.column:0)+u[u.length-1].length};return this.applyDelta({start:l,end:d,action:"insert",lines:u}),this.clonePos(d)},a.prototype.remove=function(c){var u=this.clippedPos(c.start.row,c.start.column),l=this.clippedPos(c.end.row,c.end.column);return this.applyDelta({start:u,end:l,action:"remove",lines:this.getLinesForRange({start:u,end:l})}),this.clonePos(u)},a.prototype.removeInLine=function(c,u,l){var d=this.clippedPos(c,u),m=this.clippedPos(c,l);return this.applyDelta({start:d,end:m,action:"remove",lines:this.getLinesForRange({start:d,end:m})},!0),this.clonePos(d)},a.prototype.removeFullLines=function(c,u){c=Math.min(Math.max(0,c),this.getLength()-1),u=Math.min(Math.max(0,u),this.getLength()-1);var l=u==this.getLength()-1&&c>0,d=u<this.getLength()-1,m=l?c-1:c,v=l?this.getLine(m).length:0,y=d?u+1:u,C=d?0:this.getLine(y).length,$=new s(m,v,y,C),S=this.$lines.slice(c,u+1);return this.applyDelta({start:$.start,end:$.end,action:"remove",lines:this.getLinesForRange($)}),S},a.prototype.removeNewLine=function(c){c<this.getLength()-1&&c>=0&&this.applyDelta({start:this.pos(c,this.getLine(c).length),end:this.pos(c+1,0),action:"remove",lines:["",""]})},a.prototype.replace=function(c,u){if(c instanceof s||(c=s.fromPoints(c.start,c.end)),u.length===0&&c.isEmpty())return c.start;if(u==this.getTextRange(c))return c.end;this.remove(c);var l;return u?l=this.insert(c.start,u):l=c.start,l},a.prototype.applyDeltas=function(c){for(var u=0;u<c.length;u++)this.applyDelta(c[u])},a.prototype.revertDeltas=function(c){for(var u=c.length-1;u>=0;u--)this.revertDelta(c[u])},a.prototype.applyDelta=function(c,u){var l=c.action=="insert";(l?c.lines.length<=1&&!c.lines[0]:!s.comparePoints(c.start,c.end))||(l&&c.lines.length>2e4?this.$splitAndapplyLargeDelta(c,2e4):(f(this.$lines,c,u),this._signal("change",c)))},a.prototype.$safeApplyDelta=function(c){var u=this.$lines.length;(c.action=="remove"&&c.start.row<u&&c.end.row<u||c.action=="insert"&&c.start.row<=u)&&this.applyDelta(c)},a.prototype.$splitAndapplyLargeDelta=function(c,u){for(var l=c.lines,d=l.length-u+1,m=c.start.row,v=c.start.column,y=0,C=0;y<d;y=C){C+=u-1;var $=l.slice(y,C);$.push(""),this.applyDelta({start:this.pos(m+y,v),end:this.pos(m+C,v=0),action:c.action,lines:$},!0)}c.lines=l.slice(y),c.start.row=m+y,c.start.column=v,this.applyDelta(c,!0)},a.prototype.revertDelta=function(c){this.$safeApplyDelta({start:this.clonePos(c.start),end:this.clonePos(c.end),action:c.action=="insert"?"remove":"insert",lines:c.lines.slice()})},a.prototype.indexToPosition=function(c,u){for(var l=this.$lines||this.getAllLines(),d=this.getNewLineCharacter().length,m=u||0,v=l.length;m<v;m++)if(c-=l[m].length+d,c<0)return{row:m,column:c+l[m].length+d};return{row:v-1,column:c+l[v-1].length+d}},a.prototype.positionToIndex=function(c,u){for(var l=this.$lines||this.getAllLines(),d=this.getNewLineCharacter().length,m=0,v=Math.min(c.row,l.length),y=u||0;y<v;++y)m+=l[y].length+d;return m+c.column},a.prototype.$split=function(c){return c.split(/\r\n|\r|\n/)},a}();o.prototype.$autoNewLine="",o.prototype.$newLineMode="auto",h.implement(o.prototype,g),r.Document=o}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(n,r,i){var h=n("./lib/oop"),f=n("./lib/event_emitter").EventEmitter,g=function(){function s(p,o){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=p;var a=this;this.$worker=function(){if(a.running){for(var c=new Date,u=a.currentLine,l=-1,d=a.doc,m=u;a.lines[u];)u++;var v=d.getLength(),y=0;for(a.running=!1;u<v;){a.$tokenizeRow(u),l=u;do u++;while(a.lines[u]);if(y++,y%5===0&&new Date-c>20){a.running=setTimeout(a.$worker,20);break}}a.currentLine=u,l==-1&&(l=u),m<=l&&a.fireUpdateEvent(m,l)}}}return s.prototype.setTokenizer=function(p){this.tokenizer=p,this.lines=[],this.states=[],this.start(0)},s.prototype.setDocument=function(p){this.doc=p,this.lines=[],this.states=[],this.stop()},s.prototype.fireUpdateEvent=function(p,o){var a={first:p,last:o};this._signal("update",{data:a})},s.prototype.start=function(p){this.currentLine=Math.min(p||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},s.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},s.prototype.$updateOnChange=function(p){var o=p.start.row,a=p.end.row-o;if(a===0)this.lines[o]=null;else if(p.action=="remove")this.lines.splice(o,a+1,null),this.states.splice(o,a+1,null);else{var c=Array(a+1);c.unshift(o,1),this.lines.splice.apply(this.lines,c),this.states.splice.apply(this.states,c)}this.currentLine=Math.min(o,this.currentLine,this.doc.getLength()),this.stop()},s.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},s.prototype.getTokens=function(p){return this.lines[p]||this.$tokenizeRow(p)},s.prototype.getState=function(p){return this.currentLine==p&&this.$tokenizeRow(p),this.states[p]||"start"},s.prototype.$tokenizeRow=function(p){var o=this.doc.getLine(p),a=this.states[p-1],c=this.tokenizer.getLineTokens(o,a,p);return this.states[p]+""!=c.state+""?(this.states[p]=c.state,this.lines[p+1]=null,this.currentLine>p+1&&(this.currentLine=p+1)):this.currentLine==p&&(this.currentLine=p+1),this.lines[p]=c.tokens},s.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},s}();h.implement(g.prototype,f),r.BackgroundTokenizer=g}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(n,r,i){var h=n("./lib/lang"),f=n("./range").Range,g=function(){function s(p,o,a){a===void 0&&(a="text"),this.setRegexp(p),this.clazz=o,this.type=a,this.docLen=0}return s.prototype.setRegexp=function(p){this.regExp+""!=p+""&&(this.regExp=p,this.cache=[])},s.prototype.update=function(p,o,a,c){if(this.regExp){for(var u=c.firstRow,l=c.lastRow,d={},m=a.$editor&&a.$editor.$search,v=m&&m.$isMultilineSearch(a.$editor.getLastSearchOptions()),y=u;y<=l;y++){var C=this.cache[y];if(C==null||a.getValue().length!=this.docLen){if(v){C=[];var $=m.$multiLineForward(a,this.regExp,y,l);if($){var S=$.endRow<=l?$.endRow-1:l;S>y&&(y=S),C.push(new f($.startRow,$.startCol,$.endRow,$.endCol))}C.length>this.MAX_RANGES&&(C=C.slice(0,this.MAX_RANGES))}else C=h.getMatchOffsets(a.getLine(y),this.regExp),C.length>this.MAX_RANGES&&(C=C.slice(0,this.MAX_RANGES)),C=C.map(function(E){return new f(y,E.offset,y,E.offset+E.length)});this.cache[y]=C.length?C:""}if(C.length!==0)for(var b=C.length;b--;){var k=C[b].toScreenRange(a),R=k.toString();d[R]||(d[R]=!0,o.drawSingleLineMarker(p,k,this.clazz,c))}}this.docLen=a.getValue().length}},s}();g.prototype.MAX_RANGES=500,r.SearchHighlight=g}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(n,r,i){var h=function(){function S(){this.$keepRedoStack,this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return S.prototype.addSession=function(b){this.$session=b},S.prototype.add=function(b,k,R){if(!this.$fromUndo&&b!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),k===!1||!this.lastDeltas){this.lastDeltas=[];var E=this.$undoStack.length;E>this.$undoDepth-1&&this.$undoStack.splice(0,E-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),b.id=this.$rev=++this.$maxRev}(b.action=="remove"||b.action=="insert")&&(this.$lastDelta=b),this.lastDeltas.push(b)}},S.prototype.addSelection=function(b,k){this.selections.push({value:b,rev:k||this.$rev})},S.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},S.prototype.markIgnored=function(b,k){k==null&&(k=this.$rev+1);for(var R=this.$undoStack,E=R.length;E--;){var L=R[E][0];if(L.id<=b)break;L.id<k&&(L.ignore=!0)}this.lastDeltas=null},S.prototype.getSelection=function(b,k){for(var R=this.selections,E=R.length;E--;){var L=R[E];if(L.rev<b)return k&&(L=R[E+1]),L}},S.prototype.getRevision=function(){return this.$rev},S.prototype.getDeltas=function(b,k){k==null&&(k=this.$rev+1);for(var R=this.$undoStack,E=null,L=0,O=R.length;O--;){var M=R[O][0];if(M.id<k&&!E&&(E=O+1),M.id<=b){L=O+1;break}}return R.slice(L,E)},S.prototype.getChangedRanges=function(b,k){k==null&&(k=this.$rev+1)},S.prototype.getChangedLines=function(b,k){k==null&&(k=this.$rev+1)},S.prototype.undo=function(b,k){this.lastDeltas=null;var R=this.$undoStack;if(f(R,R.length)){b||(b=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var E=R.pop(),L=null;return E&&(L=b.undoChanges(E,k),this.$redoStack.push(E),this.$syncRev()),this.$fromUndo=!1,L}},S.prototype.redo=function(b,k){if(this.lastDeltas=null,b||(b=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var R=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);$(this.$redoStack,R),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(O){O[0].id=++this.$maxRev},this)}var E=this.$redoStack.pop(),L=null;return E&&(L=b.redoChanges(E,k),this.$undoStack.push(E),this.$syncRev()),this.$fromUndo=!1,L},S.prototype.$syncRev=function(){var b=this.$undoStack,k=b[b.length-1],R=k&&k[0].id||0;this.$redoStackBaseRev=R,this.$rev=R},S.prototype.reset=function(){this.lastDeltas=null,this.$lastDelta=null,this.$undoStack=[],this.$redoStack=[],this.$rev=0,this.mark=0,this.$redoStackBaseRev=this.$rev,this.selections=[]},S.prototype.canUndo=function(){return this.$undoStack.length>0},S.prototype.canRedo=function(){return this.$redoStack.length>0},S.prototype.bookmark=function(b){b==null&&(b=this.$rev),this.mark=b},S.prototype.isAtBookmark=function(){return this.$rev===this.mark},S.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},S.prototype.fromJSON=function(b){this.reset(),this.$undoStack=b.$undoStack,this.$redoStack=b.$redoStack},S.prototype.$prettyPrint=function(b){return b?a(b):a(this.$undoStack)+`
818
+ ---
819
+ `+a(this.$redoStack)},S}();h.prototype.hasUndo=h.prototype.canUndo,h.prototype.hasRedo=h.prototype.canRedo,h.prototype.isClean=h.prototype.isAtBookmark,h.prototype.markClean=h.prototype.bookmark;function f(S,b){for(var k=b;k--;){var R=S[k];if(R&&!R[0].ignore){for(;k<b-1;){var E=l(S[k],S[k+1]);S[k]=E[0],S[k+1]=E[1],k++}return!0}}}var g=n("./range").Range,s=g.comparePoints;g.comparePoints;function p(S){return{row:S.row,column:S.column}}function o(S){return{start:p(S.start),end:p(S.end),action:S.action,lines:S.lines.slice()}}function a(S){if(S=S||this,Array.isArray(S))return S.map(a).join(`
820
+ `);var b="";return S.action?(b=S.action=="insert"?"+":"-",b+="["+S.lines+"]"):S.value&&(Array.isArray(S.value)?b=S.value.map(c).join(`
821
+ `):b=c(S.value)),S.start&&(b+=c(S)),(S.id||S.rev)&&(b+=" ("+(S.id||S.rev)+")"),b}function c(S){return S.start.row+":"+S.start.column+"=>"+S.end.row+":"+S.end.column}function u(S,b){var k=S.action=="insert",R=b.action=="insert";if(k&&R)if(s(b.start,S.end)>=0)m(b,S,-1);else if(s(b.start,S.start)<=0)m(S,b,1);else return null;else if(k&&!R)if(s(b.start,S.end)>=0)m(b,S,-1);else if(s(b.end,S.start)<=0)m(S,b,-1);else return null;else if(!k&&R)if(s(b.start,S.start)>=0)m(b,S,1);else if(s(b.start,S.start)<=0)m(S,b,1);else return null;else if(!k&&!R)if(s(b.start,S.start)>=0)m(b,S,1);else if(s(b.end,S.start)<=0)m(S,b,-1);else return null;return[b,S]}function l(S,b){for(var k=S.length;k--;)for(var R=0;R<b.length;R++)if(!u(S[k],b[R])){for(;k<S.length;){for(;R--;)u(b[R],S[k]);R=b.length,k++}return[S,b]}return S.selectionBefore=b.selectionBefore=S.selectionAfter=b.selectionAfter=null,[b,S]}function d(S,b){var k=S.action=="insert",R=b.action=="insert";if(k&&R)s(S.start,b.start)<0?m(b,S,1):m(S,b,1);else if(k&&!R)s(S.start,b.end)>=0?m(S,b,-1):(s(S.start,b.start)<=0||m(S,g.fromPoints(b.start,S.start),-1),m(b,S,1));else if(!k&&R)s(b.start,S.end)>=0?m(b,S,-1):(s(b.start,S.start)<=0||m(b,g.fromPoints(S.start,b.start),-1),m(S,b,1));else if(!k&&!R)if(s(b.start,S.end)>=0)m(b,S,-1);else if(s(b.end,S.start)<=0)m(S,b,-1);else{var E,L;return s(S.start,b.start)<0&&(E=S,S=y(S,b.start)),s(S.end,b.end)>0&&(L=y(S,b.end)),v(b.end,S.start,S.end,-1),L&&!E&&(S.lines=L.lines,S.start=L.start,S.end=L.end,L=S),[b,E,L].filter(Boolean)}return[b,S]}function m(S,b,k){v(S.start,b.start,b.end,k),v(S.end,b.start,b.end,k)}function v(S,b,k,R){S.row==(R==1?b:k).row&&(S.column+=R*(k.column-b.column)),S.row+=R*(k.row-b.row)}function y(S,b){var k=S.lines,R=S.end;S.end=p(b);var E=S.end.row-S.start.row,L=k.splice(E,k.length),O=E?b.column:b.column-S.start.column;k.push(L[0].substring(0,O)),L[0]=L[0].substr(O);var M={start:p(b),end:R,lines:L,action:S.action};return M}function C(S,b){b=o(b);for(var k=S.length;k--;){for(var R=S[k],E=0;E<R.length;E++){var L=R[E],O=d(L,b);b=O[0],O.length!=2&&(O[2]?(R.splice(E+1,1,O[1],O[2]),E++):O[1]||(R.splice(E,1),E--))}R.length||S.splice(k,1)}return S}function $(S,b){for(var k=0;k<b.length;k++)for(var R=b[k],E=0;E<R.length;E++)C(S,R[E])}r.UndoManager=h}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(n,r,i){var h=n("../range").Range,f=function(){function g(s,p){this.foldData=s,Array.isArray(p)?this.folds=p:p=this.folds=[p];var o=p[p.length-1];this.range=new h(p[0].start.row,p[0].start.column,o.end.row,o.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(a){a.setFoldLine(this)},this)}return g.prototype.shiftRow=function(s){this.start.row+=s,this.end.row+=s,this.folds.forEach(function(p){p.start.row+=s,p.end.row+=s})},g.prototype.addFold=function(s){if(s.sameRow){if(s.start.row<this.startRow||s.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(s),this.folds.sort(function(p,o){return-p.range.compareEnd(o.start.row,o.start.column)}),this.range.compareEnd(s.start.row,s.start.column)>0?(this.end.row=s.end.row,this.end.column=s.end.column):this.range.compareStart(s.end.row,s.end.column)<0&&(this.start.row=s.start.row,this.start.column=s.start.column)}else if(s.start.row==this.end.row)this.folds.push(s),this.end.row=s.end.row,this.end.column=s.end.column;else if(s.end.row==this.start.row)this.folds.unshift(s),this.start.row=s.start.row,this.start.column=s.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");s.foldLine=this},g.prototype.containsRow=function(s){return s>=this.start.row&&s<=this.end.row},g.prototype.walk=function(s,p,o){var a=0,c=this.folds,u,l,d,m=!0;p==null&&(p=this.end.row,o=this.end.column);for(var v=0;v<c.length;v++){if(u=c[v],l=u.range.compareStart(p,o),l==-1){s(null,p,o,a,m);return}if(d=s(null,u.start.row,u.start.column,a,m),d=!d&&s(u.placeholder,u.start.row,u.start.column,a),d||l===0)return;m=!u.sameRow,a=u.end.column}s(null,p,o,a,m)},g.prototype.getNextFoldTo=function(s,p){for(var o,a,c=0;c<this.folds.length;c++){if(o=this.folds[c],a=o.range.compareEnd(s,p),a==-1)return{fold:o,kind:"after"};if(a===0)return{fold:o,kind:"inside"}}return null},g.prototype.addRemoveChars=function(s,p,o){var a=this.getNextFoldTo(s,p),c,u;if(a){if(c=a.fold,a.kind=="inside"&&c.start.column!=p&&c.start.row!=s)window.console&&window.console.log(s,p,c);else if(c.start.row==s){u=this.folds;var l=u.indexOf(c);for(l===0&&(this.start.column+=o),l;l<u.length;l++){if(c=u[l],c.start.column+=o,!c.sameRow)return;c.end.column+=o}this.end.column+=o}}},g.prototype.split=function(s,p){var o=this.getNextFoldTo(s,p);if(!o||o.kind=="inside")return null;var a=o.fold,c=this.folds,u=this.foldData,l=c.indexOf(a),d=c[l-1];this.end.row=d.end.row,this.end.column=d.end.column,c=c.splice(l,c.length-l);var m=new g(u,c);return u.splice(u.indexOf(this)+1,0,m),m},g.prototype.merge=function(s){for(var p=s.folds,o=0;o<p.length;o++)this.addFold(p[o]);var a=this.foldData;a.splice(a.indexOf(s),1)},g.prototype.toString=function(){var s=[this.range.toString()+": ["];return this.folds.forEach(function(p){s.push(" "+p.toString())}),s.push("]"),s.join(`
822
+ `)},g.prototype.idxToPosition=function(s){for(var p=0,o=0;o<this.folds.length;o++){var a=this.folds[o];if(s-=a.start.column-p,s<0)return{row:a.start.row,column:a.start.column+s};if(s-=a.placeholder.length,s<0)return a.start;p=a.end.column}return{row:this.end.row,column:this.end.column+s}},g}();r.FoldLine=f}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(n,r,i){var h=n("./range").Range,f=h.comparePoints,g=function(){function s(){this.ranges=[],this.$bias=1}return s.prototype.pointIndex=function(p,o,a){for(var c=this.ranges,u=a||0;u<c.length;u++){var l=c[u],d=f(p,l.end);if(!(d>0)){var m=f(p,l.start);return d===0?o&&m!==0?-u-2:u:m>0||m===0&&!o?u:-u-1}}return-u-1},s.prototype.add=function(p){var o=!p.isEmpty(),a=this.pointIndex(p.start,o);a<0&&(a=-a-1);var c=this.pointIndex(p.end,o,a);return c<0?c=-c-1:c++,this.ranges.splice(a,c-a,p)},s.prototype.addList=function(p){for(var o=[],a=p.length;a--;)o.push.apply(o,this.add(p[a]));return o},s.prototype.substractPoint=function(p){var o=this.pointIndex(p);if(o>=0)return this.ranges.splice(o,1)},s.prototype.merge=function(){var p=[],o=this.ranges;o=o.sort(function(d,m){return f(d.start,m.start)});for(var a=o[0],c,u=1;u<o.length;u++){c=a,a=o[u];var l=f(c.end,a.start);l<0||l==0&&!c.isEmpty()&&!a.isEmpty()||(f(c.end,a.end)<0&&(c.end.row=a.end.row,c.end.column=a.end.column),o.splice(u,1),p.push(a),a=c,u--)}return this.ranges=o,p},s.prototype.contains=function(p,o){return this.pointIndex({row:p,column:o})>=0},s.prototype.containsPoint=function(p){return this.pointIndex(p)>=0},s.prototype.rangeAtPoint=function(p){var o=this.pointIndex(p);if(o>=0)return this.ranges[o]},s.prototype.clipRows=function(p,o){var a=this.ranges;if(a[0].start.row>o||a[a.length-1].start.row<p)return[];var c=this.pointIndex({row:p,column:0});c<0&&(c=-c-1);var u=this.pointIndex({row:o,column:0},c);u<0&&(u=-u-1);for(var l=[],d=c;d<u;d++)l.push(a[d]);return l},s.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},s.prototype.attach=function(p){this.session&&this.detach(),this.session=p,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},s.prototype.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},s.prototype.$onChange=function(p){for(var o=p.start,a=p.end,c=o.row,u=a.row,l=this.ranges,d=0,m=l.length;d<m;d++){var v=l[d];if(v.end.row>=c)break}if(p.action=="insert")for(var y=u-c,C=-o.column+a.column;d<m;d++){var v=l[d];if(v.start.row>c)break;if(v.start.row==c&&v.start.column>=o.column&&(v.start.column==o.column&&this.$bias<=0||(v.start.column+=C,v.start.row+=y)),v.end.row==c&&v.end.column>=o.column){if(v.end.column==o.column&&this.$bias<0)continue;v.end.column==o.column&&C>0&&d<m-1&&v.end.column>v.start.column&&v.end.column==l[d+1].start.column&&(v.end.column-=C),v.end.column+=C,v.end.row+=y}}else for(var y=c-u,C=o.column-a.column;d<m;d++){var v=l[d];if(v.start.row>u)break;v.end.row<u&&(c<v.end.row||c==v.end.row&&o.column<v.end.column)?(v.end.row=c,v.end.column=o.column):v.end.row==u?v.end.column<=a.column?(y||v.end.column>o.column)&&(v.end.column=o.column,v.end.row=o.row):(v.end.column+=C,v.end.row+=y):v.end.row>u&&(v.end.row+=y),v.start.row<u&&(c<v.start.row||c==v.start.row&&o.column<v.start.column)?(v.start.row=c,v.start.column=o.column):v.start.row==u?v.start.column<=a.column?(y||v.start.column>o.column)&&(v.start.column=o.column,v.start.row=o.row):(v.start.column+=C,v.start.row+=y):v.start.row>u&&(v.start.row+=y)}if(y!=0&&d<m)for(;d<m;d++){var v=l[d];v.start.row+=y,v.end.row+=y}},s}();g.prototype.comparePoints=f,r.RangeList=g}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(n,r,i){var h=this&&this.__extends||function(){var c=function(u,l){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,m){d.__proto__=m}||function(d,m){for(var v in m)Object.prototype.hasOwnProperty.call(m,v)&&(d[v]=m[v])},c(u,l)};return function(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");c(u,l);function d(){this.constructor=u}u.prototype=l===null?Object.create(l):(d.prototype=l.prototype,new d)}}(),f=n("../range_list").RangeList,g=function(c){h(u,c);function u(l,d){var m=c.call(this)||this;return m.foldLine=null,m.placeholder=d,m.range=l,m.start=l.start,m.end=l.end,m.sameRow=l.start.row==l.end.row,m.subFolds=m.ranges=[],m}return u.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},u.prototype.setFoldLine=function(l){this.foldLine=l,this.subFolds.forEach(function(d){d.setFoldLine(l)})},u.prototype.clone=function(){var l=this.range.clone(),d=new u(l,this.placeholder);return this.subFolds.forEach(function(m){d.subFolds.push(m.clone())}),d.collapseChildren=this.collapseChildren,d},u.prototype.addSubFold=function(l){if(!this.range.isEqual(l)){p(l,this.start);for(var C=l.start.row,$=l.start.column,d=0,m=-1;d<this.subFolds.length&&(m=this.subFolds[d].range.compare(C,$),m==1);d++);var v=this.subFolds[d],y=0;if(m==0){if(v.range.containsRange(l))return v.addSubFold(l);y=1}for(var C=l.range.end.row,$=l.range.end.column,S=d,m=-1;S<this.subFolds.length&&(m=this.subFolds[S].range.compare(C,$),m==1);S++);m==0&&S++;for(var b=this.subFolds.splice(d,S-d,l),k=m==0?b.length-1:b.length,R=y;R<k;R++)l.addSubFold(b[R]);return l.setFoldLine(this.foldLine),l}},u.prototype.restoreRange=function(l){return a(l,this.start)},u}(f);function s(c,u){c.row-=u.row,c.row==0&&(c.column-=u.column)}function p(c,u){s(c.start,u),s(c.end,u)}function o(c,u){c.row==0&&(c.column+=u.column),c.row+=u.row}function a(c,u){o(c.start,u),o(c.end,u)}r.Fold=g}),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator","ace/mouse/mouse_event"],function(n,r,i){var h=n("../range").Range,f=n("./fold_line").FoldLine,g=n("./fold").Fold,s=n("../token_iterator").TokenIterator,p=n("../mouse/mouse_event").MouseEvent;function o(){this.getFoldAt=function(a,c,u){var l=this.getFoldLine(a);if(!l)return null;for(var d=l.folds,m=0;m<d.length;m++){var v=d[m].range;if(v.contains(a,c)){if(u==1&&v.isEnd(a,c)&&!v.isEmpty())continue;if(u==-1&&v.isStart(a,c)&&!v.isEmpty())continue;return d[m]}}},this.getFoldsInRange=function(a){var c=a.start,u=a.end,l=this.$foldData,d=[];c.column+=1,u.column-=1;for(var m=0;m<l.length;m++){var v=l[m].range.compareRange(a);if(v!=2){if(v==-2)break;for(var y=l[m].folds,C=0;C<y.length;C++){var $=y[C];if(v=$.range.compareRange(a),v==-2)break;if(v==2)continue;if(v==42)break;d.push($)}}}return c.column-=1,u.column+=1,d},this.getFoldsInRangeList=function(a){if(Array.isArray(a)){var c=[];a.forEach(function(u){c=c.concat(this.getFoldsInRange(u))},this)}else var c=this.getFoldsInRange(a);return c},this.getAllFolds=function(){for(var a=[],c=this.$foldData,u=0;u<c.length;u++)for(var l=0;l<c[u].folds.length;l++)a.push(c[u].folds[l]);return a},this.getFoldStringAt=function(a,c,u,l){if(l=l||this.getFoldLine(a),!l)return null;for(var d={end:{column:0}},m,v,y=0;y<l.folds.length;y++){v=l.folds[y];var C=v.range.compareEnd(a,c);if(C==-1){m=this.getLine(v.start.row).substring(d.end.column,v.start.column);break}else if(C===0)return null;d=v}return m||(m=this.getLine(v.start.row).substring(d.end.column)),u==-1?m.substring(0,c-d.end.column):u==1?m.substring(c-d.end.column):m},this.getFoldLine=function(a,c){var u=this.$foldData,l=0;for(c&&(l=u.indexOf(c)),l==-1&&(l=0),l;l<u.length;l++){var d=u[l];if(d.start.row<=a&&d.end.row>=a)return d;if(d.end.row>a)return null}return null},this.getNextFoldLine=function(a,c){var u=this.$foldData,l=0;for(c&&(l=u.indexOf(c)),l==-1&&(l=0),l;l<u.length;l++){var d=u[l];if(d.end.row>=a)return d}return null},this.getFoldedRowCount=function(a,c){for(var u=this.$foldData,l=c-a+1,d=0;d<u.length;d++){var m=u[d],v=m.end.row,y=m.start.row;if(v>=c){y<c&&(y>=a?l-=c-y:l=0);break}else v>=a&&(y>=a?l-=v-y:l-=v-a+1)}return l},this.$addFoldLine=function(a){return this.$foldData.push(a),this.$foldData.sort(function(c,u){return c.start.row-u.start.row}),a},this.addFold=function(a,c){var u=this.$foldData,l=!1,d;a instanceof g?d=a:(d=new g(c,a),d.collapseChildren=c.collapseChildren),this.$clipRangeToDocument(d.range);var m=d.start.row,v=d.start.column,y=d.end.row,C=d.end.column,$=this.getFoldAt(m,v,1),S=this.getFoldAt(y,C,-1);if($&&S==$)return $.addSubFold(d);$&&!$.range.isStart(m,v)&&this.removeFold($),S&&!S.range.isEnd(y,C)&&this.removeFold(S);var b=this.getFoldsInRange(d.range);b.length>0&&(this.removeFolds(b),d.collapseChildren||b.forEach(function(L){d.addSubFold(L)}));for(var k=0;k<u.length;k++){var R=u[k];if(y==R.start.row){R.addFold(d),l=!0;break}else if(m==R.end.row){if(R.addFold(d),l=!0,!d.sameRow){var E=u[k+1];if(E&&E.start.row==y){R.merge(E);break}}break}else if(y<=R.start.row)break}return l||(R=this.$addFoldLine(new f(this.$foldData,d))),this.$useWrapMode?this.$updateWrapData(R.start.row,R.start.row):this.$updateRowLengthCache(R.start.row,R.start.row),this.$modified=!0,this._signal("changeFold",{data:d,action:"add"}),d},this.addFolds=function(a){a.forEach(function(c){this.addFold(c)},this)},this.removeFold=function(a){var c=a.foldLine,u=c.start.row,l=c.end.row,d=this.$foldData,m=c.folds;if(m.length==1)d.splice(d.indexOf(c),1);else if(c.range.isEnd(a.end.row,a.end.column))m.pop(),c.end.row=m[m.length-1].end.row,c.end.column=m[m.length-1].end.column;else if(c.range.isStart(a.start.row,a.start.column))m.shift(),c.start.row=m[0].start.row,c.start.column=m[0].start.column;else if(a.sameRow)m.splice(m.indexOf(a),1);else{var v=c.split(a.start.row,a.start.column);m=v.folds,m.shift(),v.start.row=m[0].start.row,v.start.column=m[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(u,l):this.$updateRowLengthCache(u,l)),this.$modified=!0,this._signal("changeFold",{data:a,action:"remove"})},this.removeFolds=function(a){for(var c=[],u=0;u<a.length;u++)c.push(a[u]);c.forEach(function(l){this.removeFold(l)},this),this.$modified=!0},this.expandFold=function(a){this.removeFold(a),a.subFolds.forEach(function(c){a.restoreRange(c),this.addFold(c)},this),a.collapseChildren>0&&this.foldAll(a.start.row+1,a.end.row,a.collapseChildren-1),a.subFolds=[]},this.expandFolds=function(a){a.forEach(function(c){this.expandFold(c)},this)},this.unfold=function(a,c){var u,l;if(a==null)u=new h(0,0,this.getLength(),0),c==null&&(c=!0);else if(typeof a=="number")u=new h(a,0,a,this.getLine(a).length);else if("row"in a)u=h.fromPoints(a,a);else{if(Array.isArray(a))return l=[],a.forEach(function(m){l=l.concat(this.unfold(m))},this),l;u=a}l=this.getFoldsInRangeList(u);for(var d=l;l.length==1&&h.comparePoints(l[0].start,u.start)<0&&h.comparePoints(l[0].end,u.end)>0;)this.expandFolds(l),l=this.getFoldsInRangeList(u);if(c!=!1?this.removeFolds(l):this.expandFolds(l),d.length)return d},this.isRowFolded=function(a,c){return!!this.getFoldLine(a,c)},this.getRowFoldEnd=function(a,c){var u=this.getFoldLine(a,c);return u?u.end.row:a},this.getRowFoldStart=function(a,c){var u=this.getFoldLine(a,c);return u?u.start.row:a},this.getFoldDisplayLine=function(a,c,u,l,d){l==null&&(l=a.start.row),d==null&&(d=0),c==null&&(c=a.end.row),u==null&&(u=this.getLine(c).length);var m=this.doc,v="";return a.walk(function(y,C,$,S){if(!(C<l)){if(C==l){if($<d)return;S=Math.max(d,S)}y!=null?v+=y:v+=m.getLine(C).substring(S,$)}},c,u),v},this.getDisplayLine=function(a,c,u,l){var d=this.getFoldLine(a);if(d)return this.getFoldDisplayLine(d,a,c,u,l);var m;return m=this.doc.getLine(a),m.substring(l||0,c||m.length)},this.$cloneFoldData=function(){var a=[];return a=this.$foldData.map(function(c){var u=c.folds.map(function(l){return l.clone()});return new f(a,u)}),a},this.toggleFold=function(a){var c=this.selection,u=c.getRange(),l,d;if(u.isEmpty()){var m=u.start;if(l=this.getFoldAt(m.row,m.column),l){this.expandFold(l);return}else if(a){var v=this.getFoldLine(m.row);v&&this.expandFolds(v.folds);return}else(d=this.findMatchingBracket(m))?u.comparePoint(d)==1?u.end=d:(u.start=d,u.start.column++,u.end.column--):(d=this.findMatchingBracket({row:m.row,column:m.column+1}))?(u.comparePoint(d)==1?u.end=d:u.start=d,u.start.column++):u=this.getCommentFoldRange(m.row,m.column)||u}else{var y=this.getFoldsInRange(u);if(a&&y.length){this.expandFolds(y);return}else y.length==1&&(l=y[0])}if(l||(l=this.getFoldAt(u.start.row,u.start.column)),l&&l.range.toString()==u.toString()){this.expandFold(l);return}var C="...";if(!u.isMultiLine()){if(C=this.getTextRange(u),C.length<4)return;C=C.trim().substring(0,2)+".."}this.addFold(C,u)},this.getCommentFoldRange=function(a,c,u){var l=new s(this,a,c),d=l.getCurrentToken(),m=d&&d.type;if(d&&/^comment|string/.test(m)){m=m.match(/comment|string/)[0],m=="comment"&&(m+="|doc-start|\\.doc");var v=new RegExp(m),y=new h;if(u!=1){do d=l.stepBackward();while(d&&v.test(d.type));d=l.stepForward()}y.start.row=l.getCurrentTokenRow(),y.start.column=l.getCurrentTokenColumn()+d.value.length,l=new s(this,a,c);var C=this.getState(l.$row);if(u!=-1){var $=-1;do if(d=l.stepForward(),$==-1){var S=this.getState(l.$row);C.toString()!==S.toString()&&($=l.$row)}else if(l.$row>$)break;while(d&&v.test(d.type));d=l.stepBackward()}else d=l.getCurrentToken();return y.end.row=l.getCurrentTokenRow(),y.end.column=l.getCurrentTokenColumn(),y.start.row==y.end.row&&y.start.column>y.end.column?void 0:y}},this.foldAll=function(a,c,u,l){u==null&&(u=1e5);var d=this.foldWidgets;if(d){c=c||this.getLength(),a=a||0;for(var m=a;m<c;m++)if(d[m]==null&&(d[m]=this.getFoldWidget(m)),d[m]=="start"&&!(l&&!l(m))){var v=this.getFoldWidgetRange(m);v&&v.isMultiLine()&&v.end.row<=c&&v.start.row>=a&&(m=v.end.row,v.collapseChildren=u,this.addFold("...",v))}}},this.foldToLevel=function(a){for(this.foldAll();a-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var a=this;this.foldAll(null,null,null,function(c){for(var u=a.getTokens(c),l=0;l<u.length;l++){var d=u[l];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(a){if(!this.$foldStyles[a])throw new Error("invalid fold style: "+a+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=a){this.$foldStyle=a,a=="manual"&&this.unfold();var c=this.$foldMode;this.$setFolding(null),this.$setFolding(c)}},this.$setFolding=function(a){if(this.$foldMode!=a){if(this.$foldMode=a,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),!a||this.$foldStyle=="manual"){this.foldWidgets=null;return}this.foldWidgets=[],this.getFoldWidget=a.getFoldWidget.bind(a,this,this.$foldStyle),this.getFoldWidgetRange=a.getFoldWidgetRange.bind(a,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(a,c){var u=this.foldWidgets;if(!u||c&&u[a])return{};for(var l=a-1,d;l>=0;){var m=u[l];if(m==null&&(m=u[l]=this.getFoldWidget(l)),m=="start"){var v=this.getFoldWidgetRange(l);if(d||(d=v),v&&v.end.row>=a)break}l--}return{range:l!==-1&&v,firstRange:d}},this.onFoldWidgetClick=function(a,c){c instanceof p&&(c=c.domEvent);var u={children:c.shiftKey,all:c.ctrlKey||c.metaKey,siblings:c.altKey},l=this.$toggleFoldWidget(a,u);if(!l){var d=c.target||c.srcElement;d&&/ace_fold-widget/.test(d.className)&&(d.className+=" ace_invalid")}},this.$toggleFoldWidget=function(a,c){if(this.getFoldWidget){var u=this.getFoldWidget(a),l=this.getLine(a),d=u==="end"?-1:1,m=this.getFoldAt(a,d===-1?0:l.length,d);if(m)return c.children||c.all?this.removeFold(m):this.expandFold(m),m;var v=this.getFoldWidgetRange(a,!0);if(v&&!v.isMultiLine()&&(m=this.getFoldAt(v.start.row,v.start.column,1),m&&v.isEqual(m.range)))return this.removeFold(m),m;if(c.siblings){var y=this.getParentFoldRangeData(a);if(y.range)var C=y.range.start.row+1,$=y.range.end.row;this.foldAll(C,$,c.all?1e4:0)}else c.children?($=v?v.end.row:this.getLength(),this.foldAll(a+1,$,c.all?1e4:0)):v&&(c.all&&(v.collapseChildren=1e4),this.addFold("...",v));return v}},this.toggleFoldWidget=function(a){var c=this.selection.getCursor().row;c=this.getRowFoldStart(c);var u=this.$toggleFoldWidget(c,{});if(!u){var l=this.getParentFoldRangeData(c,!0);if(u=l.range||l.firstRange,u){c=u.start.row;var d=this.getFoldAt(c,this.getLine(c).length,1);d?this.removeFold(d):this.addFold("...",u)}}},this.updateFoldWidgets=function(a){var c=a.start.row,u=a.end.row-c;if(u===0)this.foldWidgets[c]=null;else if(a.action=="remove")this.foldWidgets.splice(c,u+1,null);else{var l=Array(u+1);l.unshift(c,1),this.foldWidgets.splice.apply(this.foldWidgets,l)}},this.tokenizerUpdateFoldWidgets=function(a){var c=a.data;c.first!=c.last&&this.foldWidgets.length>c.first&&this.foldWidgets.splice(c.first,this.foldWidgets.length)}}r.Folding=o}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(n,r,i){var h=n("../token_iterator").TokenIterator,f=n("../range").Range;function g(){this.findMatchingBracket=function(s,p){if(s.column==0)return null;var o=p||this.getLine(s.row).charAt(s.column-1);if(o=="")return null;var a=o.match(/([\(\[\{])|([\)\]\}])/);return a?a[1]?this.$findClosingBracket(a[1],s):this.$findOpeningBracket(a[2],s):null},this.getBracketRange=function(s){var p=this.getLine(s.row),o=!0,a,c=p.charAt(s.column-1),u=c&&c.match(/([\(\[\{])|([\)\]\}])/);if(u||(c=p.charAt(s.column),s={row:s.row,column:s.column+1},u=c&&c.match(/([\(\[\{])|([\)\]\}])/),o=!1),!u)return null;if(u[1]){var l=this.$findClosingBracket(u[1],s);if(!l)return null;a=f.fromPoints(s,l),o||(a.end.column++,a.start.column--),a.cursor=a.end}else{var l=this.$findOpeningBracket(u[2],s);if(!l)return null;a=f.fromPoints(l,s),o||(a.start.column++,a.end.column--),a.cursor=a.start}return a},this.getMatchingBracketRanges=function(s,p){var o=this.getLine(s.row),a=/([\(\[\{])|([\)\]\}])/,c=!p&&o.charAt(s.column-1),u=c&&c.match(a);if(u||(c=(p===void 0||p)&&o.charAt(s.column),s={row:s.row,column:s.column+1},u=c&&c.match(a)),!u)return null;var l=new f(s.row,s.column-1,s.row,s.column),d=u[1]?this.$findClosingBracket(u[1],s):this.$findOpeningBracket(u[2],s);if(!d)return[l];var m=new f(d.row,d.column,d.row,d.column+1);return[l,m]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(s,p,o){var a=this.$brackets[s],c=1,u=new h(this,p.row,p.column),l=u.getCurrentToken();if(l||(l=u.stepForward()),!!l){o||(o=new RegExp("(\\.?"+l.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var d=p.column-u.getCurrentTokenColumn()-2,m=l.value;;){for(;d>=0;){var v=m.charAt(d);if(v==a){if(c-=1,c==0)return{row:u.getCurrentTokenRow(),column:d+u.getCurrentTokenColumn()}}else v==s&&(c+=1);d-=1}do l=u.stepBackward();while(l&&!o.test(l.type));if(l==null)break;m=l.value,d=m.length-1}return null}},this.$findClosingBracket=function(s,p,o){var a=this.$brackets[s],c=1,u=new h(this,p.row,p.column),l=u.getCurrentToken();if(l||(l=u.stepForward()),!!l){o||(o=new RegExp("(\\.?"+l.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var d=p.column-u.getCurrentTokenColumn();;){for(var m=l.value,v=m.length;d<v;){var y=m.charAt(d);if(y==a){if(c-=1,c==0)return{row:u.getCurrentTokenRow(),column:d+u.getCurrentTokenColumn()}}else y==s&&(c+=1);d+=1}do l=u.stepForward();while(l&&!o.test(l.type));if(l==null)break;d=0}return null}},this.getMatchingTags=function(s){var p=new h(this,s.row,s.column),o=this.$findTagName(p);if(o){var a=p.stepBackward();return a.value==="<"?this.$findClosingTag(p,o):this.$findOpeningTag(p,o)}},this.$findTagName=function(s){var p=s.getCurrentToken(),o=!1,a=!1;if(p&&p.type.indexOf("tag-name")===-1)do a?p=s.stepBackward():p=s.stepForward(),p&&(p.value==="/>"?a=!0:p.type.indexOf("tag-name")!==-1&&(o=!0));while(p&&!o);return p},this.$findClosingTag=function(s,p){var o,a=p.value,c=p.value,u=0,l=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);p=s.stepForward();var d=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+p.value.length),m=!1;do{if(o=p,o.type.indexOf("tag-close")!==-1&&!m){var v=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);m=!0}if(p=s.stepForward(),p){if(p.value===">"&&!m){var v=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);m=!0}if(p.type.indexOf("tag-name")!==-1){if(a=p.value,c===a){if(o.value==="<")u++;else if(o.value==="</"&&(u--,u<0)){s.stepBackward();var y=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+2);p=s.stepForward();var C=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+p.value.length);if(p.type.indexOf("tag-close")===-1&&(p=s.stepForward()),p&&p.value===">")var $=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);else return}}}else if(c===a&&p.value==="/>"&&(u--,u<0))var y=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+2),C=y,$=C,v=new f(d.end.row,d.end.column,d.end.row,d.end.column+1)}}while(p&&u>=0);if(l&&v&&y&&$&&d&&C)return{openTag:new f(l.start.row,l.start.column,v.end.row,v.end.column),closeTag:new f(y.start.row,y.start.column,$.end.row,$.end.column),openTagName:d,closeTagName:C}},this.$findOpeningTag=function(s,p){var o=s.getCurrentToken(),a=p.value,c=0,u=s.getCurrentTokenRow(),l=s.getCurrentTokenColumn(),d=l+2,m=new f(u,l,u,d);s.stepForward();var v=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+p.value.length);if(p.type.indexOf("tag-close")===-1&&(p=s.stepForward()),!(!p||p.value!==">")){var y=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);s.stepBackward(),s.stepBackward();do if(p=o,u=s.getCurrentTokenRow(),l=s.getCurrentTokenColumn(),d=l+p.value.length,o=s.stepBackward(),p){if(p.type.indexOf("tag-name")!==-1){if(a===p.value)if(o.value==="<"){if(c++,c>0){var C=new f(u,l,u,d),$=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);do p=s.stepForward();while(p&&p.value!==">");var S=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1)}}else o.value==="</"&&c--}else if(p.value==="/>"){for(var b=0,k=o;k;){if(k.type.indexOf("tag-name")!==-1&&k.value===a){c--;break}else if(k.value==="<")break;k=s.stepBackward(),b++}for(var R=0;R<b;R++)s.stepForward()}}while(o&&c<=0);if($&&S&&m&&y&&C&&v)return{openTag:new f($.start.row,$.start.column,S.end.row,S.end.column),closeTag:new f(m.start.row,m.start.column,y.end.row,y.end.column),openTagName:C,closeTagName:v}}}}r.BracketMatch=g}),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/bidihandler","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/line_widgets","ace/document","ace/background_tokenizer","ace/search_highlight","ace/undomanager","ace/edit_session/folding","ace/edit_session/bracket_match"],function(n,r,i){var h=n("./lib/oop"),f=n("./lib/lang"),g=n("./bidihandler").BidiHandler,s=n("./config"),p=n("./lib/event_emitter").EventEmitter,o=n("./selection").Selection,a=n("./mode/text").Mode,c=n("./range").Range,u=n("./line_widgets").LineWidgets,l=n("./document").Document,d=n("./background_tokenizer").BackgroundTokenizer,m=n("./search_highlight").SearchHighlight,v=n("./undomanager").UndoManager,y=function(){function M(x,_){this.doc,this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$editor=null,this.prevOp={},this.$foldData=[],this.id="session"+ ++M.$uid,this.$foldData.toString=function(){return this.join(`
823
+ `)},this.$gutterCustomWidgets={},this.bgTokenizer=new d(new a().getTokenizer(),this);var w=this;this.bgTokenizer.on("update",function(A){w._signal("tokenizerUpdate",A)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof x!="object"||!x.getLine)&&(x=new l(x)),this.setDocument(x),this.selection=new o(this),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.selection.on("changeCursor",this.$onSelectionChange),this.$bidiHandler=new g(this),s.resetOptions(this),this.setMode(_),s._signal("session",this),this.destroyed=!1,this.$initOperationListeners()}return M.prototype.$initOperationListeners=function(){var x=this;this.curOp=null,this.on("change",function(){x.curOp||(x.startOperation(),x.curOp.selectionBefore=x.$lastSel),x.curOp.docChanged=!0},!0),this.on("changeSelection",function(){x.curOp||(x.startOperation(),x.curOp.selectionBefore=x.$lastSel),x.curOp.selectionChanged=!0},!0),this.$operationResetTimer=f.delayedCall(this.endOperation.bind(this,!0))},M.prototype.startOperation=function(x){if(this.curOp){if(!x||this.curOp.command)return;this.prevOp=this.curOp}x||(x={}),this.$operationResetTimer.schedule(),this.curOp={command:x.command||{},args:x.args},this.curOp.selectionBefore=this.selection.toJSON(),this._signal("startOperation",x)},M.prototype.endOperation=function(x){if(this.curOp){if(x&&x.returnValue===!1){this.curOp=null,this._signal("endOperation",x);return}if(x==!0&&this.curOp.command&&this.curOp.command.name=="mouse")return;var _=this.selection.toJSON();this.curOp.selectionAfter=_,this.$lastSel=this.selection.toJSON(),this.getUndoManager().addSelection(_),this._signal("beforeEndOperation"),this.prevOp=this.curOp,this.curOp=null,this._signal("endOperation",x)}},M.prototype.setDocument=function(x){this.doc&&this.doc.off("change",this.$onChange),this.doc=x,x.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},M.prototype.getDocument=function(){return this.doc},Object.defineProperty(M.prototype,"widgetManager",{get:function(){var x=new u(this);return this.widgetManager=x,this.$editor&&x.attach(this.$editor),x},set:function(x){Object.defineProperty(this,"widgetManager",{writable:!0,enumerable:!0,configurable:!0,value:x})},enumerable:!1,configurable:!0}),M.prototype.$resetRowCache=function(x){if(!x){this.$docRowCache=[],this.$screenRowCache=[];return}var _=this.$docRowCache.length,w=this.$getRowCacheIndex(this.$docRowCache,x)+1;_>w&&(this.$docRowCache.splice(w,_),this.$screenRowCache.splice(w,_))},M.prototype.$getRowCacheIndex=function(x,_){for(var w=0,A=x.length-1;w<=A;){var T=w+A>>1,I=x[T];if(_>I)w=T+1;else if(_<I)A=T-1;else return T}return w-1},M.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},M.prototype.onChangeFold=function(x){var _=x.data;this.$resetRowCache(_.start.row)},M.prototype.onChange=function(x){this.$modified=!0,this.$bidiHandler.onChange(x),this.$resetRowCache(x.start.row);var _=this.$updateInternalDataOnChange(x);!this.$fromUndo&&this.$undoManager&&(_&&_.length&&(this.$undoManager.add({action:"removeFolds",folds:_},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(x,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(x),this._signal("change",x)},M.prototype.onSelectionChange=function(){this._signal("changeSelection")},M.prototype.setValue=function(x){this.doc.setValue(x),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},M.fromJSON=function(x){typeof x=="string"&&(x=JSON.parse(x));var _=new v;_.$undoStack=x.history.undo,_.$redoStack=x.history.redo,_.mark=x.history.mark,_.$rev=x.history.rev;var w=new M(x.value);return x.folds.forEach(function(A){w.addFold("...",c.fromPoints(A.start,A.end))}),w.setAnnotations(x.annotations),w.setBreakpoints(x.breakpoints),w.setMode(x.mode),w.setScrollLeft(x.scrollLeft),w.setScrollTop(x.scrollTop),w.setUndoManager(_),w.selection.fromJSON(x.selection),w},M.prototype.toJSON=function(){return{annotations:this.$annotations,breakpoints:this.$breakpoints,folds:this.getAllFolds().map(function(x){return x.range}),history:this.getUndoManager(),mode:this.$mode.$id,scrollLeft:this.$scrollLeft,scrollTop:this.$scrollTop,selection:this.selection.toJSON(),value:this.doc.getValue()}},M.prototype.toString=function(){return this.doc.getValue()},M.prototype.getSelection=function(){return this.selection},M.prototype.getState=function(x){return this.bgTokenizer.getState(x)},M.prototype.getTokens=function(x){return this.bgTokenizer.getTokens(x)},M.prototype.getTokenAt=function(x,_){var w=this.bgTokenizer.getTokens(x),A,T=0;if(_==null){var I=w.length-1;T=this.getLine(x).length}else for(var I=0;I<w.length&&(T+=w[I].value.length,!(T>=_));I++);return A=w[I],A?(A.index=I,A.start=T-A.value.length,A):null},M.prototype.setUndoManager=function(x){if(this.$undoManager=x,this.$informUndoManager&&this.$informUndoManager.cancel(),x){var _=this;x.addSession(this),this.$syncInformUndoManager=function(){_.$informUndoManager.cancel(),_.mergeUndoDeltas=!1},this.$informUndoManager=f.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},M.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},M.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},M.prototype.getTabString=function(){return this.getUseSoftTabs()?f.stringRepeat(" ",this.getTabSize()):" "},M.prototype.setUseSoftTabs=function(x){this.setOption("useSoftTabs",x)},M.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},M.prototype.setTabSize=function(x){this.setOption("tabSize",x)},M.prototype.getTabSize=function(){return this.$tabSize},M.prototype.isTabStop=function(x){return this.$useSoftTabs&&x.column%this.$tabSize===0},M.prototype.setNavigateWithinSoftTabs=function(x){this.setOption("navigateWithinSoftTabs",x)},M.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},M.prototype.setOverwrite=function(x){this.setOption("overwrite",x)},M.prototype.getOverwrite=function(){return this.$overwrite},M.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},M.prototype.addGutterDecoration=function(x,_){this.$decorations[x]||(this.$decorations[x]=""),this.$decorations[x]+=" "+_,this._signal("changeBreakpoint",{})},M.prototype.removeGutterCustomWidget=function(x){this.$editor&&this.$editor.renderer.$gutterLayer.$removeCustomWidget(x)},M.prototype.addGutterCustomWidget=function(x,_){this.$editor&&this.$editor.renderer.$gutterLayer.$addCustomWidget(x,_)},M.prototype.removeGutterDecoration=function(x,_){this.$decorations[x]=(this.$decorations[x]||"").replace(" "+_,""),this._signal("changeBreakpoint",{})},M.prototype.getBreakpoints=function(){return this.$breakpoints},M.prototype.setBreakpoints=function(x){this.$breakpoints=[];for(var _=0;_<x.length;_++)this.$breakpoints[x[_]]="ace_breakpoint";this._signal("changeBreakpoint",{})},M.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},M.prototype.setBreakpoint=function(x,_){_===void 0&&(_="ace_breakpoint"),_?this.$breakpoints[x]=_:delete this.$breakpoints[x],this._signal("changeBreakpoint",{})},M.prototype.clearBreakpoint=function(x){delete this.$breakpoints[x],this._signal("changeBreakpoint",{})},M.prototype.addMarker=function(x,_,w,A){var T=this.$markerId++,I={range:x,type:w||"line",renderer:typeof w=="function"?w:null,clazz:_,inFront:!!A,id:T};return A?(this.$frontMarkers[T]=I,this._signal("changeFrontMarker")):(this.$backMarkers[T]=I,this._signal("changeBackMarker")),T},M.prototype.addDynamicMarker=function(x,_){if(x.update){var w=this.$markerId++;return x.id=w,x.inFront=!!_,_?(this.$frontMarkers[w]=x,this._signal("changeFrontMarker")):(this.$backMarkers[w]=x,this._signal("changeBackMarker")),x}},M.prototype.removeMarker=function(x){var _=this.$frontMarkers[x]||this.$backMarkers[x];if(_){var w=_.inFront?this.$frontMarkers:this.$backMarkers;delete w[x],this._signal(_.inFront?"changeFrontMarker":"changeBackMarker")}},M.prototype.getMarkers=function(x){return x?this.$frontMarkers:this.$backMarkers},M.prototype.highlight=function(x){if(!this.$searchHighlight){var _=new m(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(_)}this.$searchHighlight.setRegexp(x)},M.prototype.highlightLines=function(x,_,w,A){typeof _!="number"&&(w=_,_=x),w||(w="ace_step");var T=new c(x,0,_,1/0);return T.id=this.addMarker(T,w,"fullLine",A),T},M.prototype.setAnnotations=function(x){this.$annotations=x,this._signal("changeAnnotation",{})},M.prototype.getAnnotations=function(){return this.$annotations||[]},M.prototype.clearAnnotations=function(){this.setAnnotations([])},M.prototype.$detectNewLine=function(x){var _=x.match(/^.*?(\r?\n)/m);_?this.$autoNewLine=_[1]:this.$autoNewLine=`
824
+ `},M.prototype.getWordRange=function(x,_){var w=this.getLine(x),A=!1;if(_>0&&(A=!!w.charAt(_-1).match(this.tokenRe)),A||(A=!!w.charAt(_).match(this.tokenRe)),A)var T=this.tokenRe;else if(/^\s+$/.test(w.slice(_-1,_+1)))var T=/\s/;else var T=this.nonTokenRe;var I=_;if(I>0){do I--;while(I>=0&&w.charAt(I).match(T));I++}for(var N=_;N<w.length&&w.charAt(N).match(T);)N++;return new c(x,I,x,N)},M.prototype.getAWordRange=function(x,_){for(var w=this.getWordRange(x,_),A=this.getLine(w.end.row);A.charAt(w.end.column).match(/[ \t]/);)w.end.column+=1;return w},M.prototype.setNewLineMode=function(x){this.doc.setNewLineMode(x)},M.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},M.prototype.setUseWorker=function(x){this.setOption("useWorker",x)},M.prototype.getUseWorker=function(){return this.$useWorker},M.prototype.onReloadTokenizer=function(x){var _=x.data;this.bgTokenizer.start(_.first),this._signal("tokenizerUpdate",x)},M.prototype.setMode=function(x,_){if(x&&typeof x=="object"){if(x.getTokenizer)return this.$onChangeMode(x);var w=x,A=w.path}else A=x||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new a),this.$modes[A]&&!w){this.$onChangeMode(this.$modes[A]),_&&_();return}this.$modeId=A,s.loadModule(["mode",A],(function(T){if(!this.destroyed){if(this.$modeId!==A)return _&&_();this.$modes[A]&&!w?this.$onChangeMode(this.$modes[A]):T&&T.Mode&&(T=new T.Mode(w),w||(this.$modes[A]=T,T.$id=A),this.$onChangeMode(T)),_&&_()}}).bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},M.prototype.$onChangeMode=function(x,_){if(_||(this.$modeId=x.$id),this.$mode!==x){var w=this.$mode;this.$mode=x,this.$stopWorker(),this.$useWorker&&this.$startWorker();var A=x.getTokenizer();if(A.on!==void 0){var T=this.onReloadTokenizer.bind(this);A.on("update",T)}this.bgTokenizer.setTokenizer(A),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=x.tokenRe,this.nonTokenRe=x.nonTokenRe,_||(x.attachToSession&&x.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(x.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:w,mode:x}))}},M.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},M.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(x){s.warn("Could not load worker",x),this.$worker=null}},M.prototype.getMode=function(){return this.$mode},M.prototype.setScrollTop=function(x){this.$scrollTop===x||isNaN(x)||(this.$scrollTop=x,this._signal("changeScrollTop",x))},M.prototype.getScrollTop=function(){return this.$scrollTop},M.prototype.setScrollLeft=function(x){this.$scrollLeft===x||isNaN(x)||(this.$scrollLeft=x,this._signal("changeScrollLeft",x))},M.prototype.getScrollLeft=function(){return this.$scrollLeft},M.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},M.prototype.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var x=0;return this.lineWidgets.forEach(function(_){_&&_.screenWidth>x&&(x=_.screenWidth)}),this.lineWidgetWidth=x},M.prototype.$computeWidth=function(x){if(this.$modified||x){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var _=this.doc.getAllLines(),w=this.$rowLengthCache,A=0,T=0,I=this.$foldData[T],N=I?I.start.row:1/0,D=_.length,F=0;F<D;F++){if(F>N){if(F=I.end.row+1,F>=D)break;I=this.$foldData[T++],N=I?I.start.row:1/0}w[F]==null&&(w[F]=this.$getStringScreenWidth(_[F])[0]),w[F]>A&&(A=w[F])}this.screenWidth=A}},M.prototype.getLine=function(x){return this.doc.getLine(x)},M.prototype.getLines=function(x,_){return this.doc.getLines(x,_)},M.prototype.getLength=function(){return this.doc.getLength()},M.prototype.getTextRange=function(x){return this.doc.getTextRange(x||this.selection.getRange())},M.prototype.insert=function(x,_){return this.doc.insert(x,_)},M.prototype.remove=function(x){return this.doc.remove(x)},M.prototype.removeFullLines=function(x,_){return this.doc.removeFullLines(x,_)},M.prototype.undoChanges=function(x,_){if(x.length){this.$fromUndo=!0;for(var w=x.length-1;w!=-1;w--){var A=x[w];A.action=="insert"||A.action=="remove"?this.doc.revertDelta(A):A.folds&&this.addFolds(A.folds)}!_&&this.$undoSelect&&(x.selectionBefore?this.selection.fromJSON(x.selectionBefore):this.selection.setRange(this.$getUndoSelection(x,!0))),this.$fromUndo=!1}},M.prototype.redoChanges=function(x,_){if(x.length){this.$fromUndo=!0;for(var w=0;w<x.length;w++){var A=x[w];(A.action=="insert"||A.action=="remove")&&this.doc.$safeApplyDelta(A)}!_&&this.$undoSelect&&(x.selectionAfter?this.selection.fromJSON(x.selectionAfter):this.selection.setRange(this.$getUndoSelection(x,!1))),this.$fromUndo=!1}},M.prototype.setUndoSelect=function(x){this.$undoSelect=x},M.prototype.$getUndoSelection=function(x,_){function w(D){return _?D.action!=="insert":D.action==="insert"}for(var A,T,I=0;I<x.length;I++){var N=x[I];if(N.start){if(!A){w(N)?A=c.fromPoints(N.start,N.end):A=c.fromPoints(N.start,N.start);continue}w(N)?(T=N.start,A.compare(T.row,T.column)==-1&&A.setStart(T),T=N.end,A.compare(T.row,T.column)==1&&A.setEnd(T)):(T=N.start,A.compare(T.row,T.column)==-1&&(A=c.fromPoints(N.start,N.start)))}}return A},M.prototype.replace=function(x,_){return this.doc.replace(x,_)},M.prototype.moveText=function(x,_,w){var A=this.getTextRange(x),T=this.getFoldsInRange(x),I=c.fromPoints(_,_);if(!w){this.remove(x);var N=x.start.row-x.end.row,D=N?-x.end.column:x.start.column-x.end.column;D&&(I.start.row==x.end.row&&I.start.column>x.end.column&&(I.start.column+=D),I.end.row==x.end.row&&I.end.column>x.end.column&&(I.end.column+=D)),N&&I.start.row>=x.end.row&&(I.start.row+=N,I.end.row+=N)}if(I.end=this.insert(I.start,A),T.length){var F=x.start,H=I.start,N=H.row-F.row,D=H.column-F.column;this.addFolds(T.map(function(V){return V=V.clone(),V.start.row==F.row&&(V.start.column+=D),V.end.row==F.row&&(V.end.column+=D),V.start.row+=N,V.end.row+=N,V}))}return I},M.prototype.indentRows=function(x,_,w){w=w.replace(/\t/g,this.getTabString());for(var A=x;A<=_;A++)this.doc.insertInLine({row:A,column:0},w)},M.prototype.outdentRows=function(x){for(var _=x.collapseRows(),w=new c(0,0,0,0),A=this.getTabSize(),T=_.start.row;T<=_.end.row;++T){var I=this.getLine(T);w.start.row=T,w.end.row=T;for(var N=0;N<A&&I.charAt(N)==" ";++N);N<A&&I.charAt(N)==" "?(w.start.column=N,w.end.column=N+1):(w.start.column=0,w.end.column=N),this.remove(w)}},M.prototype.$moveLines=function(x,_,w){if(x=this.getRowFoldStart(x),_=this.getRowFoldEnd(_),w<0){var A=this.getRowFoldStart(x+w);if(A<0)return 0;var T=A-x}else if(w>0){var A=this.getRowFoldEnd(_+w);if(A>this.doc.getLength()-1)return 0;var T=A-_}else{x=this.$clipRowToDocument(x),_=this.$clipRowToDocument(_);var T=_-x+1}var I=new c(x,0,_,Number.MAX_VALUE),N=this.getFoldsInRange(I).map(function(F){return F=F.clone(),F.start.row+=T,F.end.row+=T,F}),D=w==0?this.doc.getLines(x,_):this.doc.removeFullLines(x,_);return this.doc.insertFullLines(x+T,D),N.length&&this.addFolds(N),T},M.prototype.moveLinesUp=function(x,_){return this.$moveLines(x,_,-1)},M.prototype.moveLinesDown=function(x,_){return this.$moveLines(x,_,1)},M.prototype.duplicateLines=function(x,_){return this.$moveLines(x,_,0)},M.prototype.$clipRowToDocument=function(x){return Math.max(0,Math.min(x,this.doc.getLength()-1))},M.prototype.$clipColumnToRow=function(x,_){return _<0?0:Math.min(this.doc.getLine(x).length,_)},M.prototype.$clipPositionToDocument=function(x,_){if(_=Math.max(0,_),x<0)x=0,_=0;else{var w=this.doc.getLength();x>=w?(x=w-1,_=this.doc.getLine(w-1).length):_=Math.min(this.doc.getLine(x).length,_)}return{row:x,column:_}},M.prototype.$clipRangeToDocument=function(x){x.start.row<0?(x.start.row=0,x.start.column=0):x.start.column=this.$clipColumnToRow(x.start.row,x.start.column);var _=this.doc.getLength()-1;return x.end.row>_?(x.end.row=_,x.end.column=this.doc.getLine(_).length):x.end.column=this.$clipColumnToRow(x.end.row,x.end.column),x},M.prototype.setUseWrapMode=function(x){if(x!=this.$useWrapMode){if(this.$useWrapMode=x,this.$modified=!0,this.$resetRowCache(0),x){var _=this.getLength();this.$wrapData=Array(_),this.$updateWrapData(0,_-1)}this._signal("changeWrapMode")}},M.prototype.getUseWrapMode=function(){return this.$useWrapMode},M.prototype.setWrapLimitRange=function(x,_){(this.$wrapLimitRange.min!==x||this.$wrapLimitRange.max!==_)&&(this.$wrapLimitRange={min:x,max:_},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},M.prototype.adjustWrapLimit=function(x,_){var w=this.$wrapLimitRange;w.max<0&&(w={min:_,max:_});var A=this.$constrainWrapLimit(x,w.min,w.max);return A!=this.$wrapLimit&&A>1?(this.$wrapLimit=A,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},M.prototype.$constrainWrapLimit=function(x,_,w){return _&&(x=Math.max(_,x)),w&&(x=Math.min(w,x)),x},M.prototype.getWrapLimit=function(){return this.$wrapLimit},M.prototype.setWrapLimit=function(x){this.setWrapLimitRange(x,x)},M.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},M.prototype.$updateInternalDataOnChange=function(x){var _=this.$useWrapMode,w=x.action,A=x.start,T=x.end,I=A.row,N=T.row,D=N-I,F=null;if(this.$updating=!0,D!=0)if(w==="remove"){this[_?"$wrapData":"$rowLengthCache"].splice(I,D);var H=this.$foldData;F=this.getFoldsInRange(x),this.removeFolds(F);var W=this.getFoldLine(T.row),U=0;if(W){W.addRemoveChars(T.row,T.column,A.column-T.column),W.shiftRow(-D);var V=this.getFoldLine(I);V&&V!==W&&(V.merge(W),W=V),U=H.indexOf(W)+1}for(U;U<H.length;U++){var W=H[U];W.start.row>=T.row&&W.shiftRow(-D)}N=I}else{var G=Array(D);G.unshift(I,0);var j=_?this.$wrapData:this.$rowLengthCache;j.splice.apply(j,G);var H=this.$foldData,W=this.getFoldLine(I),U=0;if(W){var Z=W.range.compareInside(A.row,A.column);Z==0?(W=W.split(A.row,A.column),W&&(W.shiftRow(D),W.addRemoveChars(N,0,T.column-A.column))):Z==-1&&(W.addRemoveChars(I,0,T.column-A.column),W.shiftRow(D)),U=H.indexOf(W)+1}for(U;U<H.length;U++){var W=H[U];W.start.row>=I&&W.shiftRow(D)}}else{D=Math.abs(x.start.column-x.end.column),w==="remove"&&(F=this.getFoldsInRange(x),this.removeFolds(F),D=-D);var W=this.getFoldLine(I);W&&W.addRemoveChars(I,A.column,D)}return _&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,_?this.$updateWrapData(I,N):this.$updateRowLengthCache(I,N),F},M.prototype.$updateRowLengthCache=function(x,_){this.$rowLengthCache[x]=null,this.$rowLengthCache[_]=null},M.prototype.$updateWrapData=function(x,_){var w=this.doc.getAllLines(),A=this.getTabSize(),T=this.$wrapData,I=this.$wrapLimit,N,D,F=x;for(_=Math.min(_,w.length-1);F<=_;)D=this.getFoldLine(F,D),D?(N=[],D.walk((function(H,W,U,V){var G;if(H!=null){G=this.$getDisplayTokens(H,N.length),G[0]=S;for(var j=1;j<G.length;j++)G[j]=b}else G=this.$getDisplayTokens(w[W].substring(V,U),N.length);N=N.concat(G)}).bind(this),D.end.row,w[D.end.row].length+1),T[D.start.row]=this.$computeWrapSplits(N,I,A),F=D.end.row+1):(N=this.$getDisplayTokens(w[F]),T[F]=this.$computeWrapSplits(N,I,A),F++)},M.prototype.$computeWrapSplits=function(x,_,w){if(x.length==0)return[];var A=[],T=x.length,I=0,N=0,D=this.$wrapAsCode,F=this.$indentedSoftWrap,H=_<=Math.max(2*w,8)||F===!1?0:Math.floor(_/2);function W(){var Z=0;if(H===0)return Z;if(F)for(var X=0;X<x.length;X++){var Q=x[X];if(Q==R)Z+=1;else if(Q==E)Z+=w;else{if(Q==L)continue;break}}return D&&F!==!1&&(Z+=w),Math.min(Z,H)}function U(Z){for(var X=Z-I,Q=I;Q<Z;Q++){var le=x[Q];(le===12||le===2)&&(X-=1)}A.length||(V=W(),A.indent=V),N+=X,A.push(N),I=Z}for(var V=0;T-I>_-V;){var G=I+_-V;if(x[G-1]>=R&&x[G]>=R){U(G);continue}if(x[G]==S||x[G]==b){for(G;G!=I-1&&x[G]!=S;G--);if(G>I){U(G);continue}for(G=I+_,G;G<x.length&&x[G]==b;G++);if(G==x.length)break;U(G);continue}for(var j=Math.max(G-(_-(_>>2)),I-1);G>j&&x[G]<S;)G--;if(D){for(;G>j&&x[G]<S;)G--;for(;G>j&&x[G]==k;)G--}else for(;G>j&&x[G]<R;)G--;if(G>j){U(++G);continue}G=I+_,x[G]==$&&G--,U(G-V)}return A},M.prototype.$getDisplayTokens=function(x,_){var w=[],A;_=_||0;for(var T=0;T<x.length;T++){var I=x.charCodeAt(T);if(I==9){A=this.getScreenTabSize(w.length+_),w.push(E);for(var N=1;N<A;N++)w.push(L)}else I==32?w.push(R):I>39&&I<48||I>57&&I<64?w.push(k):I>=4352&&O(I)?w.push(C,$):w.push(C)}return w},M.prototype.$getStringScreenWidth=function(x,_,w){if(_==0)return[0,0];_==null&&(_=1/0),w=w||0;var A,T;for(T=0;T<x.length&&(A=x.charCodeAt(T),A==9?w+=this.getScreenTabSize(w):A>=4352&&O(A)?w+=2:w+=1,!(w>_));T++);return[w,T]},M.prototype.getRowLength=function(x){var _=1;return this.lineWidgets&&(_+=this.lineWidgets[x]&&this.lineWidgets[x].rowCount||0),!this.$useWrapMode||!this.$wrapData[x]?_:this.$wrapData[x].length+_},M.prototype.getRowLineCount=function(x){return!this.$useWrapMode||!this.$wrapData[x]?1:this.$wrapData[x].length+1},M.prototype.getRowWrapIndent=function(x){if(this.$useWrapMode){var _=this.screenToDocumentPosition(x,Number.MAX_VALUE),w=this.$wrapData[_.row];return w.length&&w[0]<_.column?w.indent:0}else return 0},M.prototype.getScreenLastRowColumn=function(x){var _=this.screenToDocumentPosition(x,Number.MAX_VALUE);return this.documentToScreenColumn(_.row,_.column)},M.prototype.getDocumentLastRowColumn=function(x,_){var w=this.documentToScreenRow(x,_);return this.getScreenLastRowColumn(w)},M.prototype.getDocumentLastRowColumnPosition=function(x,_){var w=this.documentToScreenRow(x,_);return this.screenToDocumentPosition(w,Number.MAX_VALUE/10)},M.prototype.getRowSplitData=function(x){if(this.$useWrapMode)return this.$wrapData[x]},M.prototype.getScreenTabSize=function(x){return this.$tabSize-(x%this.$tabSize|0)},M.prototype.screenToDocumentRow=function(x,_){return this.screenToDocumentPosition(x,_).row},M.prototype.screenToDocumentColumn=function(x,_){return this.screenToDocumentPosition(x,_).column},M.prototype.screenToDocumentPosition=function(x,_,w){if(x<0)return{row:0,column:0};var A,T=0,I=0,N,D=0,F=0,H=this.$screenRowCache,W=this.$getRowCacheIndex(H,x),U=H.length;if(U&&W>=0)var D=H[W],T=this.$docRowCache[W],V=x>H[U-1];else var V=!U;for(var G=this.getLength()-1,j=this.getNextFoldLine(T),Z=j?j.start.row:1/0;D<=x&&(F=this.getRowLength(T),!(D+F>x||T>=G));)D+=F,T++,T>Z&&(T=j.end.row+1,j=this.getNextFoldLine(T,j),Z=j?j.start.row:1/0),V&&(this.$docRowCache.push(T),this.$screenRowCache.push(D));if(j&&j.start.row<=T)A=this.getFoldDisplayLine(j),T=j.start.row;else{if(D+F<=x||T>G)return{row:G,column:this.getLine(G).length};A=this.getLine(T),j=null}var X=0,Q=Math.floor(x-D);if(this.$useWrapMode){var le=this.$wrapData[T];le&&(N=le[Q],Q>0&&le.length&&(X=le.indent,I=le[Q-1]||le[le.length-1],A=A.substring(I)))}return w!==void 0&&this.$bidiHandler.isBidiRow(D+Q,T,Q)&&(_=this.$bidiHandler.offsetToCol(w)),I+=this.$getStringScreenWidth(A,_-X)[1],this.$useWrapMode&&I>=N&&(I=N-1),j?j.idxToPosition(I):{row:T,column:I}},M.prototype.documentToScreenPosition=function(x,_){if(typeof _>"u")var w=this.$clipPositionToDocument(x.row,x.column);else w=this.$clipPositionToDocument(x,_);x=w.row,_=w.column;var A=0,T=null,I=null;I=this.getFoldAt(x,_,1),I&&(x=I.start.row,_=I.start.column);var N,D=0,F=this.$docRowCache,H=this.$getRowCacheIndex(F,x),W=F.length;if(W&&H>=0)var D=F[H],A=this.$screenRowCache[H],U=x>F[W-1];else var U=!W;for(var V=this.getNextFoldLine(D),G=V?V.start.row:1/0;D<x;){if(D>=G){if(N=V.end.row+1,N>x)break;V=this.getNextFoldLine(N,V),G=V?V.start.row:1/0}else N=D+1;A+=this.getRowLength(D),D=N,U&&(this.$docRowCache.push(D),this.$screenRowCache.push(A))}var j="";V&&D>=G?(j=this.getFoldDisplayLine(V,x,_),T=V.start.row):(j=this.getLine(x).substring(0,_),T=x);var Z=0;if(this.$useWrapMode){var X=this.$wrapData[T];if(X){for(var Q=0;j.length>=X[Q];)A++,Q++;j=j.substring(X[Q-1]||0,j.length),Z=Q>0?X.indent:0}}return this.lineWidgets&&this.lineWidgets[D]&&this.lineWidgets[D].rowsAbove&&(A+=this.lineWidgets[D].rowsAbove),{row:A,column:Z+this.$getStringScreenWidth(j)[0]}},M.prototype.documentToScreenColumn=function(x,_){return this.documentToScreenPosition(x,_).column},M.prototype.documentToScreenRow=function(x,_){return this.documentToScreenPosition(x,_).row},M.prototype.getScreenLength=function(){var x=0,_=null;if(this.$useWrapMode)for(var T=this.$wrapData.length,I=0,A=0,_=this.$foldData[A++],N=_?_.start.row:1/0;I<T;){var D=this.$wrapData[I];x+=D?D.length+1:1,I++,I>N&&(I=_.end.row+1,_=this.$foldData[A++],N=_?_.start.row:1/0)}else{x=this.getLength();for(var w=this.$foldData,A=0;A<w.length;A++)_=w[A],x-=_.end.row-_.start.row}return this.lineWidgets&&(x+=this.$getWidgetScreenLength()),x},M.prototype.$setFontMetrics=function(x){this.$enableVarChar&&(this.$getStringScreenWidth=function(_,w,A){if(w===0)return[0,0];w||(w=1/0),A=A||0;var T,I;for(I=0;I<_.length&&(T=_.charAt(I),T===" "?A+=this.getScreenTabSize(A):A+=x.getCharacterWidth(T),!(A>w));I++);return[A,I]})},M.prototype.getPrecedingCharacter=function(){var x=this.selection.getCursor();if(x.column===0)return x.row===0?"":this.doc.getNewLineCharacter();var _=this.getLine(x.row);return _[x.column-1]},M.prototype.destroy=function(){this.destroyed||(this.bgTokenizer.setDocument(null),this.bgTokenizer.cleanup(),this.destroyed=!0),this.endOperation(),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection&&(this.selection.off("changeCursor",this.$onSelectionChange),this.selection.off("changeSelection",this.$onSelectionChange)),this.selection.detach()},M}();y.$uid=0,y.prototype.$modes=s.$modes,y.prototype.getValue=y.prototype.toString,y.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},y.prototype.$overwrite=!1,y.prototype.$mode=null,y.prototype.$modeId=null,y.prototype.$scrollTop=0,y.prototype.$scrollLeft=0,y.prototype.$wrapLimit=80,y.prototype.$useWrapMode=!1,y.prototype.$wrapLimitRange={min:null,max:null},y.prototype.lineWidgets=null,y.prototype.isFullWidth=O,h.implement(y.prototype,p);var C=1,$=2,S=3,b=4,k=9,R=10,E=11,L=12;function O(M){return M<4352?!1:M>=4352&&M<=4447||M>=4515&&M<=4519||M>=4602&&M<=4607||M>=9001&&M<=9002||M>=11904&&M<=11929||M>=11931&&M<=12019||M>=12032&&M<=12245||M>=12272&&M<=12283||M>=12288&&M<=12350||M>=12353&&M<=12438||M>=12441&&M<=12543||M>=12549&&M<=12589||M>=12593&&M<=12686||M>=12688&&M<=12730||M>=12736&&M<=12771||M>=12784&&M<=12830||M>=12832&&M<=12871||M>=12880&&M<=13054||M>=13056&&M<=19903||M>=19968&&M<=42124||M>=42128&&M<=42182||M>=43360&&M<=43388||M>=44032&&M<=55203||M>=55216&&M<=55238||M>=55243&&M<=55291||M>=63744&&M<=64255||M>=65040&&M<=65049||M>=65072&&M<=65106||M>=65108&&M<=65126||M>=65128&&M<=65131||M>=65281&&M<=65376||M>=65504&&M<=65510}n("./edit_session/folding").Folding.call(y.prototype),n("./edit_session/bracket_match").BracketMatch.call(y.prototype),s.defineOptions(y.prototype,"session",{wrap:{set:function(M){if(!M||M=="off"?M=!1:M=="free"?M=!0:M=="printMargin"?M=-1:typeof M=="string"&&(M=parseInt(M,10)||!1),this.$wrap!=M)if(this.$wrap=M,!M)this.setUseWrapMode(!1);else{var x=typeof M=="number"?M:null;this.setWrapLimitRange(x,x),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(M){M=M=="auto"?this.$mode.type!="text":M!="text",M!=this.$wrapAsCode&&(this.$wrapAsCode=M,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(M){this.$useWorker=M,this.$stopWorker(),M&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(M){M=parseInt(M),M>0&&this.$tabSize!==M&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=M,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(M){this.setFoldStyle(M)},handlesSet:!0},overwrite:{set:function(M){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(M){this.doc.setNewLineMode(M)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(M){this.setMode(M)},get:function(){return this.$modeId},handlesSet:!0}}),r.EditSession=y}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(n,r,i){var h=n("./lib/lang"),f=n("./lib/oop"),g=n("./range").Range,s=function(){function c(){this.$options={}}return c.prototype.set=function(u){return f.mixin(this.$options,u),this},c.prototype.getOptions=function(){return h.copyObject(this.$options)},c.prototype.setOptions=function(u){this.$options=u},c.prototype.find=function(u){var l=this.$options,d=this.$matchIterator(u,l);if(!d)return!1;var m=null;return d.forEach(function(v,y,C,$){return m=new g(v,y,C,$),y==$&&l.start&&l.start.start&&l.skipCurrent!=!1&&m.isEqual(l.start)?(m=null,!1):!0}),m},c.prototype.findAll=function(u){var l=this.$options;if(!l.needle)return[];this.$assembleRegExp(l);var d=l.range,m=d?u.getLines(d.start.row,d.end.row):u.doc.getAllLines(),v=[],y=l.re;if(l.$isMultiLine){var C=y.length,$=m.length-C,S;e:for(var b=y.offset||0;b<=$;b++){for(var k=0;k<C;k++)if(m[b+k].search(y[k])==-1)continue e;var R=m[b],E=m[b+C-1],L=R.length-R.match(y[0])[0].length,O=E.match(y[C-1])[0].length;S&&S.end.row===b&&S.end.column>L||(v.push(S=new g(b,L,b+C-1,O)),C>2&&(b=b+C-2))}}else for(var M,x=0;x<m.length;x++)if(this.$isMultilineSearch(l)){var _=m.length-1;if(M=this.$multiLineForward(u,y,x,_),M){var w=M.endRow<=_?M.endRow-1:_;w>x&&(x=w),v.push(new g(M.startRow,M.startCol,M.endRow,M.endCol))}}else{M=h.getMatchOffsets(m[x],y);for(var k=0;k<M.length;k++){var A=M[k];v.push(new g(x,A.offset,x,A.offset+A.length))}}if(d){for(var T=d.start.column,I=d.end.column,x=0,k=v.length-1;x<k&&v[x].start.column<T&&v[x].start.row==0;)x++;for(var N=d.end.row-d.start.row;x<k&&v[k].end.column>I&&v[k].end.row==N;)k--;for(v=v.slice(x,k+1),x=0,k=v.length;x<k;x++)v[x].start.row+=d.start.row,v[x].end.row+=d.start.row}return v},c.prototype.parseReplaceString=function(u){for(var l={DollarSign:36,Ampersand:38,Digit0:48,Digit1:49,Digit9:57,Backslash:92,n:110,t:116},d="",m=0,v=u.length;m<v;m++){var y=u.charCodeAt(m);if(y===l.Backslash){if(m++,m>=v){d+="\\";break}var C=u.charCodeAt(m);switch(C){case l.Backslash:d+="\\";break;case l.n:d+=`
825
+ `;break;case l.t:d+=" ";break}continue}if(y===l.DollarSign){if(m++,m>=v){d+="$";break}var $=u.charCodeAt(m);if($===l.DollarSign){d+="$$";continue}if($===l.Digit0||$===l.Ampersand){d+="$&";continue}if(l.Digit1<=$&&$<=l.Digit9){d+="$"+u[m];continue}}d+=u[m]}return d||u},c.prototype.replace=function(u,l){var d=this.$options,m=this.$assembleRegExp(d);if(d.$isMultiLine)return l;if(m){var v=this.$isMultilineSearch(d);v&&(u=u.replace(/\r\n|\r|\n/g,`
826
+ `));var y=m.exec(u);if(!y||!v&&y[0].length!=u.length)return null;if(l=d.regExp?this.parseReplaceString(l):l.replace(/\$/g,"$$$$"),l=u.replace(m,l),d.preserveCase){l=l.split("");for(var C=Math.min(u.length,u.length);C--;){var $=u[C];$&&$.toLowerCase()!=$?l[C]=l[C].toUpperCase():l[C]=l[C].toLowerCase()}l=l.join("")}return l}},c.prototype.$assembleRegExp=function(u,l){if(u.needle instanceof RegExp)return u.re=u.needle;var d=u.needle;if(!u.needle)return u.re=!1;u.regExp||(d=h.escapeRegExp(d));var m=u.caseSensitive?"gm":"gmi";try{new RegExp(d,"u"),u.$supportsUnicodeFlag=!0,m+="u"}catch{u.$supportsUnicodeFlag=!1}if(u.wholeWord&&(d=p(d,u)),u.$isMultiLine=!l&&/[\n\r]/.test(d),u.$isMultiLine)return u.re=this.$assembleMultilineRegExp(d,m);try{var v=new RegExp(d,m)}catch{v=!1}return u.re=v},c.prototype.$assembleMultilineRegExp=function(u,l){for(var d=u.replace(/\r\n|\r|\n/g,`$
827
+ ^`).split(`
828
+ `),m=[],v=0;v<d.length;v++)try{m.push(new RegExp(d[v],l))}catch{return!1}return m},c.prototype.$isMultilineSearch=function(u){return u.re&&/\\r\\n|\\r|\\n/.test(u.re.source)&&u.regExp&&!u.$isMultiLine},c.prototype.$multiLineForward=function(u,l,d,m){for(var v,y=a(u,d),C=d;C<=m;){for(var $=0;$<y&&!(C>m);$++){var S=u.getLine(C++);v=v==null?S:v+`
829
+ `+S}var b=l.exec(v);if(l.lastIndex=0,b){var k=v.slice(0,b.index).split(`
830
+ `),R=b[0].split(`
831
+ `),E=d+k.length-1,L=k[k.length-1].length,O=E+R.length-1,M=R.length==1?L+R[0].length:R[R.length-1].length;return{startRow:E,startCol:L,endRow:O,endCol:M}}}return null},c.prototype.$multiLineBackward=function(u,l,d,m,v){for(var y,C=a(u,m),$=u.getLine(m).length-d,S=m;S>=v;){for(var b=0;b<C&&S>=v;b++){var k=u.getLine(S--);y=y==null?k:k+`
832
+ `+y}var R=o(y,l,$);if(R){var E=y.slice(0,R.index).split(`
833
+ `),L=R[0].split(`
834
+ `),O=S+E.length,M=E[E.length-1].length,x=O+L.length-1,_=L.length==1?M+L[0].length:L[L.length-1].length;return{startRow:O,startCol:M,endRow:x,endCol:_}}}return null},c.prototype.$matchIterator=function(u,l){var d=this.$assembleRegExp(l);if(!d)return!1;var m=this.$isMultilineSearch(l),v=this.$multiLineForward,y=this.$multiLineBackward,C=l.backwards==!0,$=l.skipCurrent!=!1,S=d.unicode,b=l.range,k=l.start;k||(k=b?b[C?"end":"start"]:u.selection.getRange()),k.start&&(k=k[$!=C?"end":"start"]);var R=b?b.start.row:0,E=b?b.end.row:u.getLength()-1;if(C)var L=function(x){var _=k.row;if(!M(_,k.column,x)){for(_--;_>=R;_--)if(M(_,Number.MAX_VALUE,x))return;if(l.wrap!=!1){for(_=E,R=k.row;_>=R;_--)if(M(_,Number.MAX_VALUE,x))return}}};else var L=function(_){var w=k.row;if(!M(w,k.column,_)){for(w=w+1;w<=E;w++)if(M(w,0,_))return;if(l.wrap!=!1){for(w=R,E=k.row;w<=E;w++)if(M(w,0,_))return}}};if(l.$isMultiLine)var O=d.length,M=function(x,_,w){var A=C?x-O+1:x;if(!(A<0||A+O>u.getLength())){var T=u.getLine(A),I=T.search(d[0]);if(!(!C&&I<_||I===-1)){for(var N=1;N<O;N++)if(T=u.getLine(A+N),T.search(d[N])==-1)return;var D=T.match(d[O-1])[0].length;if(!(C&&D>_)&&w(A,I,A+O-1,D))return!0}}};else if(C)var M=function(_,w,A){if(m){var T=y(u,d,w,_,R);if(!T)return!1;if(A(T.startRow,T.startCol,T.endRow,T.endCol))return!0}else{var I=u.getLine(_),N=[],D,F=0;for(d.lastIndex=0;D=d.exec(I);){var H=D[0].length;if(F=D.index,!H){if(F>=I.length)break;d.lastIndex=F+=h.skipEmptyMatch(I,F,S)}if(D.index+H>w)break;N.push(D.index,H)}for(var W=N.length-1;W>=0;W-=2){var U=N[W-1],H=N[W];if(A(_,U,_,U+H))return!0}}};else var M=function(_,w,A){if(d.lastIndex=w,m){var T=v(u,d,_,E);if(T){var I=T.endRow<=E?T.endRow-1:E;I>_&&(_=I)}if(!T)return!1;if(A(T.startRow,T.startCol,T.endRow,T.endCol))return!0}else for(var N=u.getLine(_),D,F;F=d.exec(N);){var H=F[0].length;if(D=F.index,A(_,D,_,D+H))return!0;if(!H&&(d.lastIndex=D+=h.skipEmptyMatch(N,D,S),D>=N.length))return!1}};return{forEach:L}},c}();function p(c,u){var l=h.supportsLookbehind();function d(C,$){$===void 0&&($=!0);var S=l&&u.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return S.test(C)||u.regExp?l&&u.$supportsUnicodeFlag?$?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var m=Array.from(c),v=m[0],y=m[m.length-1];return d(v)+c+d(y,!1)}function o(c,u,l){for(var d=null,m=0;m<=c.length;){u.lastIndex=m;var v=u.exec(c);if(!v)break;var y=v.index+v[0].length;if(y>c.length-l)break;(!d||y>d.index+d[0].length)&&(d=v),m=v.index+1}return d}function a(c,u){var l=5e3,d={row:u,column:0},m=c.doc.positionToIndex(d),v=m+l,y=c.doc.indexToPosition(v),C=y.row;return C+1}r.Search=s}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(n,r,i){var h=this&&this.__extends||function(){var c=function(u,l){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,m){d.__proto__=m}||function(d,m){for(var v in m)Object.prototype.hasOwnProperty.call(m,v)&&(d[v]=m[v])},c(u,l)};return function(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");c(u,l);function d(){this.constructor=u}u.prototype=l===null?Object.create(l):(d.prototype=l.prototype,new d)}}(),f=n("../lib/keys"),g=n("../lib/useragent"),s=f.KEY_MODS,p=function(){function c(u,l){this.$init(u,l,!1)}return c.prototype.$init=function(u,l,d){this.platform=l||(g.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(u),this.$singleCommand=d},c.prototype.addCommand=function(u){this.commands[u.name]&&this.removeCommand(u),this.commands[u.name]=u,u.bindKey&&this._buildKeyHash(u)},c.prototype.removeCommand=function(u,l){var d=u&&(typeof u=="string"?u:u.name);u=this.commands[d],l||delete this.commands[d];var m=this.commandKeyBinding;for(var v in m){var y=m[v];if(y==u)delete m[v];else if(Array.isArray(y)){var C=y.indexOf(u);C!=-1&&(y.splice(C,1),y.length==1&&(m[v]=y[0]))}}},c.prototype.bindKey=function(u,l,d){if(typeof u=="object"&&u&&(d==null&&(d=u.position),u=u[this.platform]),!!u){if(typeof l=="function")return this.addCommand({exec:l,bindKey:u,name:l.name||u});u.split("|").forEach(function(m){var v="";if(m.indexOf(" ")!=-1){var y=m.split(/\s+/);m=y.pop(),y.forEach(function(S){var b=this.parseKeys(S),k=s[b.hashId]+b.key;v+=(v?" ":"")+k,this._addCommandToBinding(v,"chainKeys")},this),v+=" "}var C=this.parseKeys(m),$=s[C.hashId]+C.key;this._addCommandToBinding(v+$,l,d)},this)}},c.prototype._addCommandToBinding=function(u,l,d){var m=this.commandKeyBinding,v;if(!l)delete m[u];else if(!m[u]||this.$singleCommand)m[u]=l;else{Array.isArray(m[u])?(v=m[u].indexOf(l))!=-1&&m[u].splice(v,1):m[u]=[m[u]],typeof d!="number"&&(d=o(l));var y=m[u];for(v=0;v<y.length;v++){var C=y[v],$=o(C);if($>d)break}y.splice(v,0,l)}},c.prototype.addCommands=function(u){u&&Object.keys(u).forEach(function(l){var d=u[l];if(d){if(typeof d=="string")return this.bindKey(d,l);typeof d=="function"&&(d={exec:d}),typeof d=="object"&&(d.name||(d.name=l),this.addCommand(d))}},this)},c.prototype.removeCommands=function(u){Object.keys(u).forEach(function(l){this.removeCommand(u[l])},this)},c.prototype.bindKeys=function(u){Object.keys(u).forEach(function(l){this.bindKey(l,u[l])},this)},c.prototype._buildKeyHash=function(u){this.bindKey(u.bindKey,u)},c.prototype.parseKeys=function(u){var l=u.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function($){return $}),d=l.pop(),m=f[d];if(f.FUNCTION_KEYS[m])d=f.FUNCTION_KEYS[m].toLowerCase();else if(l.length){if(l.length==1&&l[0]=="shift")return{key:d.toUpperCase(),hashId:-1}}else return{key:d,hashId:-1};for(var v=0,y=l.length;y--;){var C=f.KEY_MODS[l[y]];if(C==null)return typeof console<"u"&&console.error("invalid modifier "+l[y]+" in "+u),!1;v|=C}return{key:d,hashId:v}},c.prototype.findKeyCommand=function(u,l){var d=s[u]+l;return this.commandKeyBinding[d]},c.prototype.handleKeyboard=function(u,l,d,m){if(!(m<0)){var v=s[l]+d,y=this.commandKeyBinding[v];return u.$keyChain&&(u.$keyChain+=" "+v,y=this.commandKeyBinding[u.$keyChain]||y),y&&(y=="chainKeys"||y[y.length-1]=="chainKeys")?(u.$keyChain=u.$keyChain||v,{command:"null"}):(u.$keyChain&&((!l||l==4)&&d.length==1?u.$keyChain=u.$keyChain.slice(0,-v.length-1):(l==-1||m>0)&&(u.$keyChain="")),{command:y})}},c.prototype.getStatusText=function(u,l){return l.$keyChain||""},c}();function o(c){return typeof c=="object"&&c.bindKey&&c.bindKey.position||(c.isDefault?-100:0)}var a=function(c){h(u,c);function u(l,d){var m=c.call(this,l,d)||this;return m.$singleCommand=!0,m}return u}(p);a.call=function(c,u,l){p.prototype.$init.call(c,u,l,!0)},p.call=function(c,u,l){p.prototype.$init.call(c,u,l,!1)},r.HashHandler=a,r.MultiHashHandler=p}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(n,r,i){var h=this&&this.__extends||function(){var o=function(a,c){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,l){u.__proto__=l}||function(u,l){for(var d in l)Object.prototype.hasOwnProperty.call(l,d)&&(u[d]=l[d])},o(a,c)};return function(a,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");o(a,c);function u(){this.constructor=a}a.prototype=c===null?Object.create(c):(u.prototype=c.prototype,new u)}}(),f=n("../lib/oop"),g=n("../keyboard/hash_handler").MultiHashHandler,s=n("../lib/event_emitter").EventEmitter,p=function(o){h(a,o);function a(c,u){var l=o.call(this,u,c)||this;return l.byName=l.commands,l.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)}),l}return a.prototype.exec=function(c,u,l){if(Array.isArray(c)){for(var d=c.length;d--;)if(this.exec(c[d],u,l))return!0;return!1}typeof c=="string"&&(c=this.commands[c]);var m={editor:u,command:c,args:l};return this.canExecute(c,u)?(m.returnValue=this._emit("exec",m),this._signal("afterExec",m),m.returnValue!==!1):(this._signal("commandUnavailable",m),!1)},a.prototype.canExecute=function(c,u){return typeof c=="string"&&(c=this.commands[c]),!(!c||u&&u.$readOnly&&!c.readOnly||this.$checkCommandState!=!1&&c.isAvailable&&!c.isAvailable(u))},a.prototype.toggleRecording=function(c){if(!this.$inReplay)return c&&c._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=(function(u){this.macro.push([u.command,u.args])}).bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},a.prototype.replay=function(c){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(c);try{this.$inReplay=!0,this.macro.forEach(function(u){typeof u=="string"?this.exec(u,c):this.exec(u[0],c,u[1])},this)}finally{this.$inReplay=!1}}},a.prototype.trimMacro=function(c){return c.map(function(u){return typeof u[0]!="string"&&(u[0]=u[0].name),u[1]||(u=u[0]),u})},a}(g);f.implement(p.prototype,s),r.CommandManager=p}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(n,r,i){var h=n("../lib/lang"),f=n("../config"),g=n("../range").Range;function s(o,a){return{win:o,mac:a}}r.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:s("Ctrl-,","Command-,"),exec:function(o){f.loadModule("ace/ext/settings_menu",function(a){a.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(a){a.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(a){a.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,a){typeof a=="number"&&!isNaN(a)&&o.gotoLine(a),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(a){a.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,a){o.navigateUp(a.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,a){o.navigateDown(a.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,a){o.navigateLeft(a.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,a){o.navigateRight(a.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 a=o.$copyWithEmptySelection&&o.selection.isEmpty(),c=a?o.selection.getLineRange():o.selection.getRange();o._emit("cut",c),c.isEmpty()||o.session.remove(c),o.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(o,a){o.$handlePaste(a)},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(a){a.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 a=o.selection.getRange();a.start.column=0,o.session.remove(a)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:s("Ctrl-Shift-Delete",null),exec:function(o){var a=o.selection.getRange();a.end.column=Number.MAX_VALUE,o.session.remove(a)},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,a){o.insert(a)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(o,a){o.insert(h.stringRepeat(a.text||"",a.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()},scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:s("Ctrl-Shift-L","Command-Shift-L"),exec:function(o){var a=o.selection.getRange();a.start.column=a.end.column=0,a.end.row++,o.selection.setRange(a,!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 a=o.selection.isBackwards(),c=a?o.selection.getSelectionLead():o.selection.getSelectionAnchor(),u=a?o.selection.getSelectionAnchor():o.selection.getSelectionLead(),l=o.session.doc.getLine(c.row).length,d=o.session.doc.getTextRange(o.selection.getRange()),m=d.replace(/\n\s*/," ").length,v=o.session.doc.getLine(c.row),y=c.row+1;y<=u.row+1;y++){var C=h.stringTrimLeft(h.stringTrimRight(o.session.doc.getLine(y)));C.length!==0&&(C=" "+C),v+=C}u.row+1<o.session.doc.getLength()-1&&(v+=o.session.doc.getNewLineCharacter()),o.clearSelection(),o.session.doc.replace(new g(c.row,0,u.row+2,0),v),m>0?(o.selection.moveCursorTo(c.row,c.column),o.selection.selectTo(c.row,c.column+m)):(l=o.session.doc.getLine(c.row).length>l?l+1:l,o.selection.moveCursorTo(c.row,l))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:s(null,null),exec:function(o){var a=o.session.doc.getLength()-1,c=o.session.doc.getLine(a).length,u=o.selection.rangeList.ranges,l=[];u.length<1&&(u=[o.selection.getRange()]);for(var d=0;d<u.length;d++)d==u.length-1&&(u[d].end.row===a&&u[d].end.column===c||l.push(new g(u[d].end.row,u[d].end.column,a,c))),d===0?u[d].start.row===0&&u[d].start.column===0||l.push(new g(0,0,u[d].start.row,u[d].start.column)):l.push(new g(u[d-1].end.row,u[d-1].end.column,u[d].start.row,u[d].start.column));o.exitMultiSelectMode(),o.clearSelection();for(var d=0;d<l.length;d++)o.selection.addRange(l[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(`
835
+ `)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(o){o.selection.clearSelection();var a=o.getCursorPosition();o.selection.moveTo(a.row-1,Number.MAX_VALUE),o.insert(`
836
+ `),a.row===0&&o.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",exec:function(o){console.warn("This is an obsolete command. Please use `openCommandPalette` instead."),o.prompt({$type:"commands"})},readOnly:!0},{name:"openCommandPalette",description:"Open command palette",bindKey:s("F1","F1"),exec:function(o){o.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:s(null,null),exec:function(o){o.prompt({$type:"modes"})},readOnly:!0}];for(var p=1;p<9;p++)r.commands.push({name:"foldToLevel"+p,description:"Fold To Level "+p,level:p,exec:function(o){o.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})}),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys","ace/mouse/default_gutter_handler"],function(n,r,i){var h=n("../lib/keys"),f=n("../mouse/default_gutter_handler").GutterTooltip,g=function(){function p(o){this.editor=o,this.gutterLayer=o.renderer.$gutterLayer,this.element=o.renderer.$gutter,this.lines=o.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=new f(this.editor)}return p.prototype.addListener=function(){this.element.addEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.addEventListener("focusout",this.$blurGutter.bind(this)),this.editor.on("mousewheel",this.$blurGutter.bind(this))},p.prototype.removeListener=function(){this.element.removeEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.removeEventListener("focusout",this.$blurGutter.bind(this)),this.editor.off("mousewheel",this.$blurGutter.bind(this))},p.prototype.$onGutterKeyDown=function(o){if(this.annotationTooltip.isOpen){o.preventDefault(),o.keyCode===h.escape&&this.annotationTooltip.hideTooltip();return}if(o.target===this.element){if(o.keyCode!=h.enter)return;o.preventDefault();var a=this.editor.getCursorPosition().row;this.editor.isRowVisible(a)||this.editor.scrollToLine(a,!0,!0),setTimeout((function(){var c=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),u=this.$findNearestFoldLaneWidget(c),l=this.$findNearestAnnotation(c);if(!(u===null&&l===null)){var d=this.$findClosestNumber(u,l,c);if(d===u)if(this.activeLane="fold",this.activeRowIndex=u,this.$isCustomWidgetVisible(u)){this.$focusCustomWidget(this.activeRowIndex);return}else{this.$focusFoldWidget(this.activeRowIndex);return}else{this.activeRowIndex=l,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}}}).bind(this),10);return}this.$handleGutterKeyboardInteraction(o),setTimeout((function(){this.editor._signal("gutterkeydown",new s(o,this))}).bind(this),10)},p.prototype.$handleGutterKeyboardInteraction=function(o){if(o.keyCode===h.tab){o.preventDefault();return}if(o.keyCode===h.escape){o.preventDefault(),this.$blurGutter(),this.element.focus(),this.lane=null;return}if(o.keyCode===h.up){switch(o.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetUp();break;case"annotation":this.$moveAnnotationUp();break}return}if(o.keyCode===h.down){switch(o.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetDown();break;case"annotation":this.$moveAnnotationDown();break}return}if(o.keyCode===h.left){o.preventDefault(),this.$switchLane("annotation");return}if(o.keyCode===h.right){o.preventDefault(),this.$switchLane("fold");return}if(o.keyCode===h.enter||o.keyCode===h.space){switch(o.preventDefault(),this.activeLane){case"fold":var a=this.$rowIndexToRow(this.activeRowIndex),c=this.editor.session.$gutterCustomWidgets[a];if(c)c.callbacks&&c.callbacks.onClick&&c.callbacks.onClick(o,a);else if(this.gutterLayer.session.foldWidgets[a]==="start"){this.editor.session.onFoldWidgetClick(this.$rowIndexToRow(this.activeRowIndex),o),setTimeout((function(){this.$rowIndexToRow(this.activeRowIndex)!==a&&(this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=this.$rowToRowIndex(a),this.$focusFoldWidget(this.activeRowIndex))}).bind(this),10);break}else if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="end")break;return;case"annotation":var u=this.lines.cells[this.activeRowIndex].element.childNodes[2],l=u.getBoundingClientRect(),d=this.annotationTooltip.getElement().style;d.left=l.right+"px",d.top=l.bottom+"px",this.annotationTooltip.showTooltip(this.$rowIndexToRow(this.activeRowIndex));break}return}},p.prototype.$blurGutter=function(){if(this.activeRowIndex!==null)switch(this.activeLane){case"fold":this.$blurFoldWidget(this.activeRowIndex),this.$blurCustomWidget(this.activeRowIndex);break;case"annotation":this.$blurAnnotation(this.activeRowIndex);break}this.annotationTooltip.isOpen&&this.annotationTooltip.hideTooltip()},p.prototype.$isFoldWidgetVisible=function(o){var a=this.editor.isRowFullyVisible(this.$rowIndexToRow(o)),c=this.$getFoldWidget(o).style.display!=="none";return a&&c},p.prototype.$isCustomWidgetVisible=function(o){var a=this.editor.isRowFullyVisible(this.$rowIndexToRow(o)),c=!!this.$getCustomWidget(o);return a&&c},p.prototype.$isAnnotationVisible=function(o){var a=this.editor.isRowFullyVisible(this.$rowIndexToRow(o)),c=this.$getAnnotation(o).style.display!=="none";return a&&c},p.prototype.$getFoldWidget=function(o){var a=this.lines.get(o),c=a.element;return c.childNodes[1]},p.prototype.$getCustomWidget=function(o){var a=this.lines.get(o),c=a.element;return c.childNodes[3]},p.prototype.$getAnnotation=function(o){var a=this.lines.get(o),c=a.element;return c.childNodes[2]},p.prototype.$findNearestFoldLaneWidget=function(o){if(this.$isCustomWidgetVisible(o)||this.$isFoldWidgetVisible(o))return o;for(var a=0;o-a>0||o+a<this.lines.getLength()-1;){if(a++,o-a>=0&&this.$isCustomWidgetVisible(o-a))return o-a;if(o+a<=this.lines.getLength()-1&&this.$isCustomWidgetVisible(o+a))return o+a;if(o-a>=0&&this.$isFoldWidgetVisible(o-a))return o-a;if(o+a<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(o+a))return o+a}return null},p.prototype.$findNearestAnnotation=function(o){if(this.$isAnnotationVisible(o))return o;for(var a=0;o-a>0||o+a<this.lines.getLength()-1;){if(a++,o-a>=0&&this.$isAnnotationVisible(o-a))return o-a;if(o+a<=this.lines.getLength()-1&&this.$isAnnotationVisible(o+a))return o+a}return null},p.prototype.$focusFoldWidget=function(o){if(o!=null){var a=this.$getFoldWidget(o);a.classList.add(this.editor.renderer.keyboardFocusClassName),a.focus()}},p.prototype.$focusCustomWidget=function(o){if(o!=null){var a=this.$getCustomWidget(o);a&&(a.classList.add(this.editor.renderer.keyboardFocusClassName),a.focus())}},p.prototype.$focusAnnotation=function(o){if(o!=null){var a=this.$getAnnotation(o);a.classList.add(this.editor.renderer.keyboardFocusClassName),a.focus()}},p.prototype.$blurFoldWidget=function(o){var a=this.$getFoldWidget(o);a.classList.remove(this.editor.renderer.keyboardFocusClassName),a.blur()},p.prototype.$blurCustomWidget=function(o){var a=this.$getCustomWidget(o);a&&(a.classList.remove(this.editor.renderer.keyboardFocusClassName),a.blur())},p.prototype.$blurAnnotation=function(o){var a=this.$getAnnotation(o);a.classList.remove(this.editor.renderer.keyboardFocusClassName),a.blur()},p.prototype.$moveFoldWidgetUp=function(){for(var o=this.activeRowIndex;o>0;)if(o--,this.$isFoldWidgetVisible(o)||this.$isCustomWidgetVisible(o)){this.$blurFoldWidget(this.activeRowIndex),this.$blurCustomWidget(this.activeRowIndex),this.activeRowIndex=o,this.$isFoldWidgetVisible(o)?this.$focusFoldWidget(this.activeRowIndex):this.$focusCustomWidget(this.activeRowIndex);return}},p.prototype.$moveFoldWidgetDown=function(){for(var o=this.activeRowIndex;o<this.lines.getLength()-1;)if(o++,this.$isFoldWidgetVisible(o)||this.$isCustomWidgetVisible(o)){this.$blurFoldWidget(this.activeRowIndex),this.$blurCustomWidget(this.activeRowIndex),this.activeRowIndex=o,this.$isFoldWidgetVisible(o)?this.$focusFoldWidget(this.activeRowIndex):this.$focusCustomWidget(this.activeRowIndex);return}},p.prototype.$moveAnnotationUp=function(){for(var o=this.activeRowIndex;o>0;)if(o--,this.$isAnnotationVisible(o)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=o,this.$focusAnnotation(this.activeRowIndex);return}},p.prototype.$moveAnnotationDown=function(){for(var o=this.activeRowIndex;o<this.lines.getLength()-1;)if(o++,this.$isAnnotationVisible(o)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=o,this.$focusAnnotation(this.activeRowIndex);return}},p.prototype.$findClosestNumber=function(o,a,c){return o===null?a:a===null||Math.abs(c-o)<=Math.abs(c-a)?o:a},p.prototype.$switchLane=function(o){switch(o){case"annotation":if(this.activeLane==="annotation")break;var a=this.$findNearestAnnotation(this.activeRowIndex);if(a==null)break;this.activeLane="annotation",this.$blurFoldWidget(this.activeRowIndex),this.$blurCustomWidget(this.activeRowIndex),this.activeRowIndex=a,this.$focusAnnotation(this.activeRowIndex);break;case"fold":if(this.activeLane==="fold")break;var c=this.$findNearestFoldLaneWidget(this.activeRowIndex);if(c===null)break;this.activeLane="fold",this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=c,this.$isCustomWidgetVisible(c)?this.$focusCustomWidget(this.activeRowIndex):this.$focusFoldWidget(this.activeRowIndex);break}},p.prototype.$rowIndexToRow=function(o){var a=this.lines.get(o);return a?a.row:null},p.prototype.$rowToRowIndex=function(o){for(var a=0;a<this.lines.getLength();a++){var c=this.lines.get(a);if(c.row==o)return a}return null},p}();r.GutterKeyboardHandler=g;var s=function(){function p(o,a){this.gutterKeyboardHandler=a,this.domEvent=o}return p.prototype.getKey=function(){return h.keyCodeToString(this.domEvent.keyCode)},p.prototype.getRow=function(){return this.gutterKeyboardHandler.$rowIndexToRow(this.gutterKeyboardHandler.activeRowIndex)},p.prototype.isInAnnotationLane=function(){return this.gutterKeyboardHandler.activeLane==="annotation"},p.prototype.isInFoldLane=function(){return this.gutterKeyboardHandler.activeLane==="fold"},p}();r.GutterKeyboardEvent=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/keyboard/gutter_handler","ace/config","ace/clipboard","ace/lib/keys","ace/lib/event","ace/tooltip"],function(n,r,i){var h=this&&this.__values||function(_){var w=typeof Symbol=="function"&&Symbol.iterator,A=w&&_[w],T=0;if(A)return A.call(_);if(_&&typeof _.length=="number")return{next:function(){return _&&T>=_.length&&(_=void 0),{value:_&&_[T++],done:!_}}};throw new TypeError(w?"Object is not iterable.":"Symbol.iterator is not defined.")},f=n("./lib/oop"),g=n("./lib/dom"),s=n("./lib/lang"),p=n("./lib/useragent"),o=n("./keyboard/textinput").TextInput,a=n("./mouse/mouse_handler").MouseHandler,c=n("./mouse/fold_handler").FoldHandler,u=n("./keyboard/keybinding").KeyBinding,l=n("./edit_session").EditSession,d=n("./search").Search,m=n("./range").Range,v=n("./lib/event_emitter").EventEmitter,y=n("./commands/command_manager").CommandManager,C=n("./commands/default_commands").commands,$=n("./config"),S=n("./token_iterator").TokenIterator,b=n("./keyboard/gutter_handler").GutterKeyboardHandler,k=n("./config").nls,R=n("./clipboard"),E=n("./lib/keys"),L=n("./lib/event"),O=n("./tooltip").HoverTooltip,M=function(){function _(w,A,T){this.id="editor"+ ++_.$uid,this.session,this.$toDestroy=[];var I=w.getContainerElement();this.container=I,this.renderer=w,this.commands=new y(p.isMac?"mac":"win",C),typeof document=="object"&&(this.textInput=new o(w.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new a(this),new c(this)),this.keyBinding=new u(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(N,D){D._$emitInputEvent.schedule(31)}),this.setSession(A||T&&T.session||new l("")),$.resetOptions(this),T&&this.setOptions(T),$._signal("editor",this)}return _.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0)},_.prototype.startOperation=function(w){this.session.startOperation(w)},_.prototype.endOperation=function(w){this.session.endOperation(w)},_.prototype.onStartOperation=function(w){this.curOp=this.session.curOp,this.curOp.scrollTop=this.renderer.scrollTop,this.prevOp=this.session.prevOp,w||(this.previousCommand=null)},_.prototype.onEndOperation=function(w){if(this.curOp&&this.session){if(w&&w.returnValue===!1){this.curOp=null;return}if(this._signal("beforeEndOperation"),!this.curOp)return;var A=this.curOp.command,T=A&&A.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 I=this.selection.getRange(),N=this.renderer.layerConfig;(I.start.row>=N.lastRow||I.end.row<=N.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}T=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.$lastSel=this.session.selection.toJSON(),this.prevOp=this.curOp,this.curOp=null}},_.prototype.$historyTracker=function(w){if(this.$mergeUndoDeltas){var A=this.prevOp,T=this.$mergeableCommands,I=A.command&&w.command.name==A.command.name;if(w.command.name=="insertstring"){var N=w.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),I=I&&this.mergeNextCommand&&(!/\s/.test(N)||/\s/.test(A.args)),this.mergeNextCommand=!0}else I=I&&T.indexOf(w.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(I=!1),I?this.session.mergeUndoDeltas=!0:T.indexOf(w.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},_.prototype.setKeyboardHandler=function(w,A){if(w&&typeof w=="string"&&w!="ace"){this.$keybindingId=w;var T=this;$.loadModule(["keybinding",w],function(I){T.$keybindingId==w&&T.keyBinding.setKeyboardHandler(I&&I.handler),A&&A()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(w),A&&A()},_.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},_.prototype.setSession=function(w){if(this.session!=w){this.curOp&&this.endOperation(),this.curOp={};var A=this.session;if(A){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),this.session.off("startOperation",this.$onStartOperation),this.session.off("endOperation",this.$onEndOperation);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.$onStartOperation=this.onStartOperation.bind(this),this.session.on("startOperation",this.$onStartOperation),this.$onEndOperation=this.onEndOperation.bind(this),this.session.on("endOperation",this.$onEndOperation),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:A}),this.curOp=null,A&&A._signal("changeEditor",{oldEditor:this}),A&&(A.$editor=null),w&&w._signal("changeEditor",{editor:this}),w&&(w.$editor=this),w&&!w.destroyed&&w.bgTokenizer.scheduleStart()}},_.prototype.getSession=function(){return this.session},_.prototype.setValue=function(w,A){return this.session.doc.setValue(w),A?A==1?this.navigateFileEnd():A==-1&&this.navigateFileStart():this.selectAll(),w},_.prototype.getValue=function(){return this.session.getValue()},_.prototype.getSelection=function(){return this.selection},_.prototype.resize=function(w){this.renderer.onResize(w)},_.prototype.setTheme=function(w,A){this.renderer.setTheme(w,A)},_.prototype.getTheme=function(){return this.renderer.getTheme()},_.prototype.setStyle=function(w,A){this.renderer.setStyle(w,A)},_.prototype.unsetStyle=function(w){this.renderer.unsetStyle(w)},_.prototype.getFontSize=function(){return this.getOption("fontSize")||g.computedStyle(this.container).fontSize},_.prototype.setFontSize=function(w){this.setOption("fontSize",w)},_.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var w=this;this.$highlightPending=!0,setTimeout(function(){w.$highlightPending=!1;var A=w.session;if(!(!A||A.destroyed)){A.$bracketHighlight&&(A.$bracketHighlight.markerIds.forEach(function(V){A.removeMarker(V)}),A.$bracketHighlight=null);var T=w.getCursorPosition(),I=w.getKeyboardHandler(),N=I&&I.$getDirectionForHighlight&&I.$getDirectionForHighlight(w),D=A.getMatchingBracketRanges(T,N);if(!D){var F=new S(A,T.row,T.column),H=F.getCurrentToken();if(H&&/\b(?:tag-open|tag-name)/.test(H.type)){var W=A.getMatchingTags(T);W&&(D=[W.openTagName.isEmpty()?W.openTag:W.openTagName,W.closeTagName.isEmpty()?W.closeTag:W.closeTagName])}}if(!D&&A.$mode.getMatching&&(D=A.$mode.getMatching(w.session)),!D){w.getHighlightIndentGuides()&&w.renderer.$textLayer.$highlightIndentGuide();return}var U="ace_bracket";Array.isArray(D)?D.length==1&&(U="ace_error_bracket"):D=[D],D.length==2&&(m.comparePoints(D[0].end,D[1].start)==0?D=[m.fromPoints(D[0].start,D[1].end)]:m.comparePoints(D[0].start,D[1].end)==0&&(D=[m.fromPoints(D[1].start,D[0].end)])),A.$bracketHighlight={ranges:D,markerIds:D.map(function(V){return A.addMarker(V,U,"text")})},w.getHighlightIndentGuides()&&w.renderer.$textLayer.$highlightIndentGuide()}},50)}},_.prototype.focus=function(){this.textInput.focus()},_.prototype.isFocused=function(){return this.textInput.isFocused()},_.prototype.blur=function(){this.textInput.blur()},_.prototype.onFocus=function(w){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",w))},_.prototype.onBlur=function(w){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",w))},_.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},_.prototype.onDocumentChange=function(w){var A=this.session.$useWrapMode,T=w.start.row==w.end.row?w.end.row:1/0;this.renderer.updateLines(w.start.row,T,A),this._signal("change",w),this.$cursorChange()},_.prototype.onTokenizerUpdate=function(w){var A=w.data;this.renderer.updateLines(A.first,A.last)},_.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},_.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},_.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},_.prototype.$updateHighlightActiveLine=function(){var w=this.getSession(),A;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(A=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(A=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(A=!1)),w.$highlightLineMarker&&!A)w.removeMarker(w.$highlightLineMarker.id),w.$highlightLineMarker=null;else if(!w.$highlightLineMarker&&A){var T=new m(A.row,A.column,A.row,1/0);T.id=w.addMarker(T,"ace_active-line","screenLine"),w.$highlightLineMarker=T}else A&&(w.$highlightLineMarker.start.row=A.row,w.$highlightLineMarker.end.row=A.row,w.$highlightLineMarker.start.column=A.column,w._signal("changeBackMarker"))},_.prototype.onSelectionChange=function(w){var A=this.session;if(A.$selectionMarker&&A.removeMarker(A.$selectionMarker),A.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var T=this.selection.getRange(),I=this.getSelectionStyle();A.$selectionMarker=A.addMarker(T,"ace_selection",I)}var N=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(N),this._signal("changeSelection")},_.prototype.$getSelectionHighLightRegexp=function(){var w=this.session,A=this.getSelectionRange();if(!(A.isEmpty()||A.isMultiLine())){var T=A.start.column,I=A.end.column,N=w.getLine(A.start.row),D=N.substring(T,I);if(!(D.length>5e3||!/[\w\d]/.test(D))){var F=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:D}),H=N.substring(T-1,I+1);if(F.test(H))return F}}},_.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},_.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},_.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},_.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},_.prototype.onChangeMode=function(w){this.renderer.updateText(),this._emit("changeMode",w)},_.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},_.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},_.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},_.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},_.prototype.getCopyText=function(){var w=this.getSelectedText(),A=this.session.doc.getNewLineCharacter(),T=!1;if(!w&&this.$copyWithEmptySelection){T=!0;for(var I=this.selection.getAllRanges(),N=0;N<I.length;N++){var D=I[N];N&&I[N-1].start.row==D.start.row||(w+=this.session.getLine(D.start.row)+A)}}var F={text:w};return this._signal("copy",F),R.lineMode=T?F.text:!1,F.text},_.prototype.onCopy=function(){this.commands.exec("copy",this)},_.prototype.onCut=function(){this.commands.exec("cut",this)},_.prototype.onPaste=function(w,A){var T={text:w,event:A};this.commands.exec("paste",this,T)},_.prototype.$handlePaste=function(w){typeof w=="string"&&(w={text:w}),this._signal("paste",w);var A=w.text,T=A===R.lineMode,I=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)T?I.insert({row:this.selection.lead.row,column:0},A):this.insert(A);else if(T)this.selection.rangeList.ranges.forEach(function(U){I.insert({row:U.start.row,column:0},A)});else{var N=A.split(/\r\n|\r|\n/),D=this.selection.rangeList.ranges,F=N.length==2&&(!N[0]||!N[1]);if(N.length!=D.length||F)return this.commands.exec("insertstring",this,A);for(var H=D.length;H--;){var W=D[H];W.isEmpty()||I.remove(W),I.insert(W.start,N[H])}}},_.prototype.execCommand=function(w,A){return this.commands.exec(w,this,A)},_.prototype.insert=function(w,A){var T=this.session,I=T.getMode(),N=this.getCursorPosition();if(this.getBehavioursEnabled()&&!A){var D=I.transformAction(T.getState(N.row),"insertion",this,T,w);D&&(w!==D.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),w=D.text)}if(w==" "&&(w=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&w.indexOf(`
837
+ `)==-1){var F=m.fromPoints(N,N);F.end.column+=w.length,this.session.remove(F)}}else{var F=this.getSelectionRange();N=this.session.remove(F),this.clearSelection()}if(w==`
838
+ `||w==`\r
839
+ `){var V=T.getLine(N.row);if(N.column>V.search(/\S|$/)){var H=V.substr(N.column).search(/\S|$/);T.doc.removeInLine(N.row,N.column,N.column+H)}}this.clearSelection();var W=N.column,U=T.getState(N.row),V=T.getLine(N.row),G=I.checkOutdent(U,V,w);if(T.insert(N,w),D&&D.selection&&(D.selection.length==2?this.selection.setSelectionRange(new m(N.row,W+D.selection[0],N.row,W+D.selection[1])):this.selection.setSelectionRange(new m(N.row+D.selection[0],D.selection[1],N.row+D.selection[2],D.selection[3]))),this.$enableAutoIndent){if(T.getDocument().isNewLine(w)){var j=I.getNextLineIndent(U,V.slice(0,N.column),T.getTabString());T.insert({row:N.row+1,column:0},j)}G&&I.autoOutdent(U,T,N.row)}},_.prototype.autoIndent=function(){for(var w=this.session,A=w.getMode(),T=this.selection.isEmpty()?[new m(0,0,w.doc.getLength()-1,0)]:this.selection.getAllRanges(),I="",N="",D="",F=w.getTabString(),H=0;H<T.length;H++)for(var W=T[H].start.row,U=T[H].end.row,V=W;V<=U;V++){V>0&&(I=w.getState(V-1),N=w.getLine(V-1),D=A.getNextLineIndent(I,N,F));var G=w.getLine(V),j=A.$getIndent(G);if(D!==j){if(j.length>0){var Z=new m(V,0,V,j.length);w.remove(Z)}D.length>0&&w.insert({row:V,column:0},D)}A.autoOutdent(I,w,V)}},_.prototype.onTextInput=function(w,A){if(!A)return this.keyBinding.onTextInput(w);this.startOperation({command:{name:"insertstring"}});var T=this.applyComposition.bind(this,w,A);this.selection.rangeCount?this.forEachSelection(T):T(),this.endOperation()},_.prototype.applyComposition=function(w,A){if(A.extendLeft||A.extendRight){var T=this.selection.getRange();T.start.column-=A.extendLeft,T.end.column+=A.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),A.restoreStart||A.restoreEnd){var T=this.selection.getRange();T.start.column-=A.restoreStart,T.end.column-=A.restoreEnd,this.selection.setRange(T)}},_.prototype.onCommandKey=function(w,A,T){return this.keyBinding.onCommandKey(w,A,T)},_.prototype.setOverwrite=function(w){this.session.setOverwrite(w)},_.prototype.getOverwrite=function(){return this.session.getOverwrite()},_.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},_.prototype.setScrollSpeed=function(w){this.setOption("scrollSpeed",w)},_.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},_.prototype.setDragDelay=function(w){this.setOption("dragDelay",w)},_.prototype.getDragDelay=function(){return this.getOption("dragDelay")},_.prototype.setSelectionStyle=function(w){this.setOption("selectionStyle",w)},_.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},_.prototype.setHighlightActiveLine=function(w){this.setOption("highlightActiveLine",w)},_.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},_.prototype.setHighlightGutterLine=function(w){this.setOption("highlightGutterLine",w)},_.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},_.prototype.setHighlightSelectedWord=function(w){this.setOption("highlightSelectedWord",w)},_.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},_.prototype.setAnimatedScroll=function(w){this.renderer.setAnimatedScroll(w)},_.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},_.prototype.setShowInvisibles=function(w){this.renderer.setShowInvisibles(w)},_.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},_.prototype.setDisplayIndentGuides=function(w){this.renderer.setDisplayIndentGuides(w)},_.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},_.prototype.setHighlightIndentGuides=function(w){this.renderer.setHighlightIndentGuides(w)},_.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},_.prototype.setShowPrintMargin=function(w){this.renderer.setShowPrintMargin(w)},_.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},_.prototype.setPrintMarginColumn=function(w){this.renderer.setPrintMarginColumn(w)},_.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},_.prototype.setReadOnly=function(w){this.setOption("readOnly",w)},_.prototype.getReadOnly=function(){return this.getOption("readOnly")},_.prototype.setBehavioursEnabled=function(w){this.setOption("behavioursEnabled",w)},_.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},_.prototype.setWrapBehavioursEnabled=function(w){this.setOption("wrapBehavioursEnabled",w)},_.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},_.prototype.setShowFoldWidgets=function(w){this.setOption("showFoldWidgets",w)},_.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},_.prototype.setFadeFoldWidgets=function(w){this.setOption("fadeFoldWidgets",w)},_.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},_.prototype.remove=function(w){this.selection.isEmpty()&&(w=="left"?this.selection.selectLeft():this.selection.selectRight());var A=this.getSelectionRange();if(this.getBehavioursEnabled()){var T=this.session,I=T.getState(A.start.row),N=T.getMode().transformAction(I,"deletion",this,T,A);if(A.end.column===0){var D=T.getTextRange(A);if(D[D.length-1]==`
840
+ `){var F=T.getLine(A.end.row);/^\s+$/.test(F)&&(A.end.column=F.length)}}N&&(A=N)}this.session.remove(A),this.clearSelection()},_.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},_.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},_.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},_.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var w=this.getSelectionRange();w.start.column==w.end.column&&w.start.row==w.end.row&&(w.end.column=0,w.end.row++),this.session.remove(w),this.clearSelection()},_.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var w=this.getCursorPosition();this.insert(`
841
+ `),this.moveCursorToPosition(w)},_.prototype.setGhostText=function(w,A){this.renderer.setGhostText(w,A)},_.prototype.removeGhostText=function(){this.renderer.removeGhostText()},_.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var w=this.getCursorPosition(),A=w.column;if(A!==0){var T=this.session.getLine(w.row),I,N;A<T.length?(I=T.charAt(A)+T.charAt(A-1),N=new m(w.row,A-1,w.row,A+1)):(I=T.charAt(A-1)+T.charAt(A-2),N=new m(w.row,A-2,w.row,A)),this.session.replace(N,I),this.session.selection.moveToPosition(N.end)}}},_.prototype.toLowerCase=function(){var w=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var A=this.getSelectionRange(),T=this.session.getTextRange(A);this.session.replace(A,T.toLowerCase()),this.selection.setSelectionRange(w)},_.prototype.toUpperCase=function(){var w=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var A=this.getSelectionRange(),T=this.session.getTextRange(A);this.session.replace(A,T.toUpperCase()),this.selection.setSelectionRange(w)},_.prototype.indent=function(){var w=this.session,A=this.getSelectionRange();if(A.start.row<A.end.row){var T=this.$getSelectedRows();w.indentRows(T.first,T.last," ");return}else if(A.start.column<A.end.column){var I=w.getTextRange(A);if(!/^\s+$/.test(I)){var T=this.$getSelectedRows();w.indentRows(T.first,T.last," ");return}}var N=w.getLine(A.start.row),D=A.start,F=w.getTabSize(),H=w.documentToScreenColumn(D.row,D.column);if(this.session.getUseSoftTabs())var W=F-H%F,U=s.stringRepeat(" ",W);else{for(var W=H%F;N[A.start.column-1]==" "&&W;)A.start.column--,W--;this.selection.setSelectionRange(A),U=" "}return this.insert(U)},_.prototype.blockIndent=function(){var w=this.$getSelectedRows();this.session.indentRows(w.first,w.last," ")},_.prototype.blockOutdent=function(){var w=this.session.getSelection();this.session.outdentRows(w.getRange())},_.prototype.sortLines=function(){for(var w=this.$getSelectedRows(),A=this.session,T=[],I=w.first;I<=w.last;I++)T.push(A.getLine(I));T.sort(function(F,H){return F.toLowerCase()<H.toLowerCase()?-1:F.toLowerCase()>H.toLowerCase()?1:0});for(var N=new m(0,0,0,0),I=w.first;I<=w.last;I++){var D=A.getLine(I);N.start.row=I,N.end.row=I,N.end.column=D.length,A.replace(N,T[I-w.first])}},_.prototype.toggleCommentLines=function(){var w=this.session.getState(this.getCursorPosition().row),A=this.$getSelectedRows();this.session.getMode().toggleCommentLines(w,this.session,A.first,A.last)},_.prototype.toggleBlockComment=function(){var w=this.getCursorPosition(),A=this.session.getState(w.row),T=this.getSelectionRange();this.session.getMode().toggleBlockComment(A,this.session,T,w)},_.prototype.getNumberAt=function(w,A){var T=/[\-]?[0-9]+(?:\.[0-9]+)?/g;T.lastIndex=0;for(var I=this.session.getLine(w);T.lastIndex<A;){var N=T.exec(I);if(N.index<=A&&N.index+N[0].length>=A){var D={value:N[0],start:N.index,end:N.index+N[0].length};return D}}return null},_.prototype.modifyNumber=function(w){var A=this.selection.getCursor().row,T=this.selection.getCursor().column,I=new m(A,T-1,A,T),N=this.session.getTextRange(I);if(!isNaN(parseFloat(N))&&isFinite(N)){var D=this.getNumberAt(A,T);if(D){var F=D.value.indexOf(".")>=0?D.start+D.value.indexOf(".")+1:D.end,H=D.start+D.value.length-F,W=parseFloat(D.value);W*=Math.pow(10,H),F!==D.end&&T<F?w*=Math.pow(10,D.end-T-1):w*=Math.pow(10,D.end-T),W+=w,W/=Math.pow(10,H);var U=W.toFixed(H),V=new m(A,D.start,A,D.end);this.session.replace(V,U),this.moveCursorTo(A,Math.max(D.start+1,T+U.length-D.value.length))}}else this.toggleWord()},_.prototype.toggleWord=function(){var w=this.selection.getCursor().row,A=this.selection.getCursor().column;this.selection.selectWord();var T=this.getSelectedText(),I=this.selection.getWordRange().start.column,N=T.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),D=A-I-1;D<0&&(D=0);var F=0,H=0,W=this;T.match(/[A-Za-z0-9_]+/)&&N.forEach(function(z,B){H=F+z.length,D>=F&&D<=H&&(T=z,W.selection.clearSelection(),W.moveCursorTo(w,F+I),W.selection.selectTo(w,H+I)),F=H});for(var U=this.$toggleWordPairs,V,G=0;G<U.length;G++)for(var j=U[G],Z=0;Z<=1;Z++){var X=+!Z,Q=T.match(new RegExp("^\\s?_?("+s.escapeRegExp(j[Z])+")\\s?$","i"));if(Q){var le=T.match(new RegExp("([_]|^|\\s)("+s.escapeRegExp(Q[1])+")($|\\s)","g"));le&&(V=T.replace(new RegExp(s.escapeRegExp(j[Z]),"i"),function(z){var B=j[X];return z.toUpperCase()==z?B=B.toUpperCase():z.charAt(0).toUpperCase()==z.charAt(0)&&(B=B.substr(0,0)+j[X].charAt(0).toUpperCase()+B.substr(1)),B}),this.insert(V),V="")}}},_.prototype.findLinkAt=function(w,A){var T,I,N=this.session.getLine(w),D=N.split(/((?:https?|ftp):\/\/[\S]+)/),F=A;F<0&&(F=0);var H=0,W=0,U;try{for(var V=h(D),G=V.next();!G.done;G=V.next()){var j=G.value;if(W=H+j.length,F>=H&&F<=W&&j.match(/((?:https?|ftp):\/\/[\S]+)/)){U=j.replace(/[\s:.,'";}\]]+$/,"");break}H=W}}catch(Z){T={error:Z}}finally{try{G&&!G.done&&(I=V.return)&&I.call(V)}finally{if(T)throw T.error}}return U},_.prototype.openLink=function(){var w=this.selection.getCursor(),A=this.findLinkAt(w.row,w.column);return A&&window.open(A,"_blank"),A!=null},_.prototype.removeLines=function(){var w=this.$getSelectedRows();this.session.removeFullLines(w.first,w.last),this.clearSelection()},_.prototype.duplicateSelection=function(){var w=this.selection,A=this.session,T=w.getRange(),I=w.isBackwards();if(T.isEmpty()){var N=T.start.row;A.duplicateLines(N,N)}else{var D=I?T.start:T.end,F=A.insert(D,A.getTextRange(T));T.start=D,T.end=F,w.setSelectionRange(T,I)}},_.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},_.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},_.prototype.moveText=function(w,A,T){return this.session.moveText(w,A,T)},_.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},_.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},_.prototype.$moveLines=function(w,A){var T,I,N=this.selection;if(!N.inMultiSelectMode||this.inVirtualSelectionMode){var D=N.toOrientedRange();T=this.$getSelectedRows(D),I=this.session.$moveLines(T.first,T.last,A?0:w),A&&w==-1&&(I=0),D.moveBy(I,0),N.fromOrientedRange(D)}else{var F=N.rangeList.ranges;N.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var H=0,W=0,U=F.length,V=0;V<U;V++){var G=V;F[V].moveBy(H,0),T=this.$getSelectedRows(F[V]);for(var j=T.first,Z=T.last;++V<U;){W&&F[V].moveBy(W,0);var X=this.$getSelectedRows(F[V]);if(A&&X.first!=Z)break;if(!A&&X.first>Z+1)break;Z=X.last}for(V--,H=this.session.$moveLines(j,Z,A?0:w),A&&w==-1&&(G=V+1);G<=V;)F[G].moveBy(H,0),G++;A||(H=0),W+=H}N.fromOrientedRange(N.ranges[0]),N.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},_.prototype.$getSelectedRows=function(w){return w=(w||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(w.start.row),last:this.session.getRowFoldEnd(w.end.row)}},_.prototype.onCompositionStart=function(w){this.renderer.showComposition(w)},_.prototype.onCompositionUpdate=function(w){this.renderer.setCompositionText(w)},_.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},_.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},_.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},_.prototype.isRowVisible=function(w){return w>=this.getFirstVisibleRow()&&w<=this.getLastVisibleRow()},_.prototype.isRowFullyVisible=function(w){return w>=this.renderer.getFirstFullyVisibleRow()&&w<=this.renderer.getLastFullyVisibleRow()},_.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},_.prototype.$moveByPage=function(w,A){var T=this.renderer,I=this.renderer.layerConfig,N=w*Math.floor(I.height/I.lineHeight);A===!0?this.selection.$moveSelection(function(){this.moveCursorBy(N,0)}):A===!1&&(this.selection.moveCursorBy(N,0),this.selection.clearSelection());var D=T.scrollTop;T.scrollBy(0,N*I.lineHeight),A!=null&&T.scrollCursorIntoView(null,.5),T.animateScrolling(D)},_.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},_.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},_.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},_.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},_.prototype.scrollPageDown=function(){this.$moveByPage(1)},_.prototype.scrollPageUp=function(){this.$moveByPage(-1)},_.prototype.scrollToRow=function(w){this.renderer.scrollToRow(w)},_.prototype.scrollToLine=function(w,A,T,I){this.renderer.scrollToLine(w,A,T,I)},_.prototype.centerSelection=function(){var w=this.getSelectionRange(),A={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(A,.5)},_.prototype.getCursorPosition=function(){return this.selection.getCursor()},_.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},_.prototype.getSelectionRange=function(){return this.selection.getRange()},_.prototype.selectAll=function(){this.selection.selectAll()},_.prototype.clearSelection=function(){this.selection.clearSelection()},_.prototype.moveCursorTo=function(w,A){this.selection.moveCursorTo(w,A)},_.prototype.moveCursorToPosition=function(w){this.selection.moveCursorToPosition(w)},_.prototype.jumpToMatching=function(w,A){var T=this.getCursorPosition(),I=new S(this.session,T.row,T.column),N=I.getCurrentToken(),D=0;N&&N.type.indexOf("tag-name")!==-1&&(N=I.stepBackward());var F=N||I.stepForward();if(F){var H,W=!1,U={},V=T.column-F.start,G,j={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(F.value.match(/[{}()\[\]]/g)){for(;V<F.value.length&&!W;V++)if(j[F.value[V]])switch(G=j[F.value[V]]+"."+F.type.replace("rparen","lparen"),isNaN(U[G])&&(U[G]=0),F.value[V]){case"(":case"[":case"{":U[G]++;break;case")":case"]":case"}":U[G]--,U[G]===-1&&(H="bracket",W=!0);break}}else F.type.indexOf("tag-name")!==-1&&(isNaN(U[F.value])&&(U[F.value]=0),N.value==="<"&&D>1?U[F.value]++:N.value==="</"&&U[F.value]--,U[F.value]===-1&&(H="tag",W=!0));W||(N=F,D++,F=I.stepForward(),V=0)}while(F&&!W);if(H){var Z,X;if(H==="bracket")Z=this.session.getBracketRange(T),Z||(Z=new m(I.getCurrentTokenRow(),I.getCurrentTokenColumn()+V-1,I.getCurrentTokenRow(),I.getCurrentTokenColumn()+V-1),X=Z.start,(A||X.row===T.row&&Math.abs(X.column-T.column)<2)&&(Z=this.session.getBracketRange(X)));else if(H==="tag"){if(!F||F.type.indexOf("tag-name")===-1)return;if(Z=new m(I.getCurrentTokenRow(),I.getCurrentTokenColumn()-2,I.getCurrentTokenRow(),I.getCurrentTokenColumn()-2),Z.compare(T.row,T.column)===0){var Q=this.session.getMatchingTags(T);Q&&(Q.openTag.contains(T.row,T.column)?(Z=Q.closeTag,X=Z.start):(Z=Q.openTag,Q.closeTag.start.row===T.row&&Q.closeTag.start.column===T.column?X=Z.end:X=Z.start))}X=X||Z.start}X=Z&&Z.cursor||X,X&&(w?Z&&A?this.selection.setRange(Z):Z&&Z.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(X.row,X.column):this.selection.moveTo(X.row,X.column))}}},_.prototype.gotoLine=function(w,A,T){this.selection.clearSelection(),this.session.unfold({row:w-1,column:A||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(w-1,A||0),this.isRowFullyVisible(w-1)||this.scrollToLine(w-1,!0,T)},_.prototype.navigateTo=function(w,A){this.selection.moveTo(w,A)},_.prototype.navigateUp=function(w){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var A=this.selection.anchor.getPosition();return this.moveCursorToPosition(A)}this.selection.clearSelection(),this.selection.moveCursorBy(-w||-1,0)},_.prototype.navigateDown=function(w){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var A=this.selection.anchor.getPosition();return this.moveCursorToPosition(A)}this.selection.clearSelection(),this.selection.moveCursorBy(w||1,0)},_.prototype.navigateLeft=function(w){if(this.selection.isEmpty())for(w=w||1;w--;)this.selection.moveCursorLeft();else{var A=this.getSelectionRange().start;this.moveCursorToPosition(A)}this.clearSelection()},_.prototype.navigateRight=function(w){if(this.selection.isEmpty())for(w=w||1;w--;)this.selection.moveCursorRight();else{var A=this.getSelectionRange().end;this.moveCursorToPosition(A)}this.clearSelection()},_.prototype.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},_.prototype.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},_.prototype.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},_.prototype.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},_.prototype.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},_.prototype.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},_.prototype.replace=function(w,A){A&&this.$search.set(A);var T=this.$search.find(this.session),I=0;return T&&(this.$tryReplace(T,w)&&(I=1),this.selection.setSelectionRange(T),this.renderer.scrollSelectionIntoView(T.start,T.end)),I},_.prototype.replaceAll=function(w,A){A&&this.$search.set(A);var T=this.$search.findAll(this.session),I=0;if(!T.length)return I;var N=this.getSelectionRange();this.selection.moveTo(0,0);for(var D=T.length-1;D>=0;--D)this.$tryReplace(T[D],w)&&I++;return this.selection.setSelectionRange(N),I},_.prototype.$tryReplace=function(w,A){var T=this.session.getTextRange(w);return A=this.$search.replace(T,A),A!==null?(w.end=this.session.replace(w,A),w):null},_.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},_.prototype.find=function(w,A,T){A||(A={}),typeof w=="string"||w instanceof RegExp?A.needle=w:typeof w=="object"&&f.mixin(A,w);var I=this.selection.getRange();A.needle==null&&(w=this.session.getTextRange(I)||this.$search.$options.needle,w||(I=this.session.getWordRange(I.start.row,I.start.column),w=this.session.getTextRange(I)),this.$search.set({needle:w})),this.$search.set(A),A.start||this.$search.set({start:I});var N=this.$search.find(this.session);if(A.preventScroll)return N;if(N)return this.revealRange(N,T),N;A.backwards?I.start=I.end:I.end=I.start,this.selection.setRange(I)},_.prototype.findNext=function(w,A){this.find({skipCurrent:!0,backwards:!1},w,A)},_.prototype.findPrevious=function(w,A){this.find(w,{skipCurrent:!0,backwards:!0},A)},_.prototype.revealRange=function(w,A){this.session.unfold(w),this.selection.setSelectionRange(w);var T=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(w.start,w.end,.5),A!==!1&&this.renderer.animateScrolling(T)},_.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},_.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},_.prototype.destroy=function(){this.destroyed=!0,this.$toDestroy&&(this.$toDestroy.forEach(function(w){w.destroy()}),this.$toDestroy=[]),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},_.prototype.setAutoScrollEditorIntoView=function(w){if(w){var A,T=this,I=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var N=this.$scrollAnchor;N.style.cssText="position:absolute",this.container.insertBefore(N,this.container.firstChild);var D=this.on("changeSelection",function(){I=!0}),F=this.renderer.on("beforeRender",function(){I&&(A=T.renderer.container.getBoundingClientRect())}),H=this.renderer.on("afterRender",function(){if(I&&A&&(T.isFocused()||T.searchBox&&T.searchBox.isFocused())){var W=T.renderer,U=W.$cursorLayer.$pixelPos,V=W.layerConfig,G=U.top-V.offset;U.top>=0&&G+A.top<0?I=!0:U.top<V.height&&U.top+A.top+V.lineHeight>window.innerHeight?I=!1:I=null,I!=null&&(N.style.top=G+"px",N.style.left=U.left+"px",N.style.height=V.lineHeight+"px",N.scrollIntoView(I)),I=A=null}});this.setAutoScrollEditorIntoView=function(W){W||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",D),this.renderer.off("afterRender",H),this.renderer.off("beforeRender",F))}}},_.prototype.$resetCursorStyle=function(){var w=this.$cursorStyle||"ace",A=this.renderer.$cursorLayer;A&&(A.setSmoothBlinking(/smooth/.test(w)),A.isBlinking=!this.$readOnly&&w!="wide",g.setCssClass(A.element,"ace_slim-cursors",/slim/.test(w)))},_.prototype.prompt=function(w,A,T){var I=this;$.loadModule("ace/ext/prompt",function(N){N.prompt(I,w,A,T)})},_}();M.$uid=0,M.prototype.curOp=null,M.prototype.prevOp={},M.prototype.$mergeableCommands=["backspace","del","insertstring"],M.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(M.prototype,v),$.defineOptions(M.prototype,"editor",{selectionStyle:{set:function(_){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:_})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(_){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(_){var w=this;if(this.textInput.setReadOnly(_),!this.destroyed){this.$resetCursorStyle(),this.$readOnlyCallback||(this.$readOnlyCallback=function(T){var I=!1;if(T&&T.type=="keydown"){if(T&&T.key&&!T.ctrlKey&&!T.metaKey&&(T.key==" "&&T.preventDefault(),I=T.key.length==1),!I)return}else T&&T.type!=="exec"&&(I=!0);if(I){w.hoverTooltip||(w.hoverTooltip=new O);var N=g.createElement("div");N.textContent=k("editor.tooltip.disable-editing","Editing is disabled"),w.hoverTooltip.isOpen||w.hoverTooltip.showForRange(w,w.getSelectionRange(),N)}else w.hoverTooltip&&w.hoverTooltip.isOpen&&w.hoverTooltip.hide()});var A=this.textInput.getElement();_?(L.addListener(A,"keydown",this.$readOnlyCallback,this),this.commands.on("exec",this.$readOnlyCallback),this.commands.on("commandUnavailable",this.$readOnlyCallback)):(L.removeListener(A,"keydown",this.$readOnlyCallback),this.commands.off("exec",this.$readOnlyCallback),this.commands.off("commandUnavailable",this.$readOnlyCallback),this.hoverTooltip&&(this.hoverTooltip.destroy(),this.hoverTooltip=null))}},initialValue:!1},copyWithEmptySelection:{set:function(_){this.textInput.setCopyWithEmptySelection(_)},initialValue:!1},cursorStyle:{set:function(_){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(_){this.setAutoScrollEditorIntoView(_)}},keyboardHandler:{set:function(_){this.setKeyboardHandler(_)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(_){this.session.setValue(_)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(_){this.setSession(_)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(_){this.renderer.$gutterLayer.setShowLineNumbers(_),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),_&&this.$relativeLineNumbers?x.attach(this):x.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(_){this.$showLineNumbers&&_?x.attach(this):x.detach(this)}},placeholder:{set:function(_){this.$updatePlaceholder||(this.$updatePlaceholder=(function(){var w=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(w&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),g.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(!w&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),g.addCssClass(this.container,"ace_hasPlaceholder");var A=g.createElement("div");A.className="ace_placeholder",A.textContent=this.$placeholder||"",this.renderer.placeholderNode=A,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!w&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}).bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(_){var w={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(I){I.blur(),I.renderer.scroller.focus()},readOnly:!0},A=function(I){if(I.target==this.renderer.scroller&&I.keyCode===E.enter){I.preventDefault();var N=this.getCursorPosition().row;this.isRowVisible(N)||this.scrollToLine(N,!0,!0),this.focus()}},T;_?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(p.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",k("editor.scroller.aria-roledescription","editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",k("editor.scroller.aria-label","Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",A.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",k("editor.gutter.aria-roledescription","editor gutter")),this.renderer.$gutter.setAttribute("aria-label",k("editor.gutter.aria-label","Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit")),this.renderer.$gutter.classList.add(this.renderer.keyboardFocusClassName),this.renderer.content.setAttribute("aria-hidden",!0),T||(T=new b(this)),T.addListener(),this.textInput.setAriaOptions({setLabel:!0})):(this.renderer.enableKeyboardAccessibility=!1,this.textInput.getElement().setAttribute("tabindex",0),this.textInput.setNumberOfExtraLines(0),this.renderer.scroller.setAttribute("tabindex",-1),this.renderer.scroller.removeAttribute("role"),this.renderer.scroller.removeAttribute("aria-roledescription"),this.renderer.scroller.classList.remove(this.renderer.keyboardFocusClassName),this.renderer.scroller.removeAttribute("aria-label"),this.renderer.scroller.removeEventListener("keyup",A.bind(this)),this.commands.removeCommand(w),this.renderer.content.removeAttribute("aria-hidden"),this.renderer.$gutter.setAttribute("tabindex",-1),this.renderer.$gutter.setAttribute("aria-hidden",!0),this.renderer.$gutter.removeAttribute("role"),this.renderer.$gutter.removeAttribute("aria-roledescription"),this.renderer.$gutter.removeAttribute("aria-label"),this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName),T&&T.removeListener())},initialValue:!1},textInputAriaLabel:{set:function(_){this.$textInputAriaLabel=_},initialValue:""},enableMobileMenu:{set:function(_){this.$enableMobileMenu=_},initialValue:!0},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",useResizeObserver:"renderer",useSvgGutterIcons:"renderer",showFoldedAnnotations:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var x={getText:function(_,w){return(Math.abs(_.selection.lead.row-w)||w+1+(w<9?"·":""))+""},getWidth:function(_,w,A){return Math.max(w.toString().length,(A.lastRow+1).toString().length,2)*A.characterWidth},update:function(_,w){w.renderer.$loop.schedule(w.renderer.CHANGE_GUTTER)},attach:function(_){_.renderer.$gutterLayer.$renderer=this,_.on("changeSelection",this.update),this.update(null,_)},detach:function(_){_.renderer.$gutterLayer.$renderer==this&&(_.renderer.$gutterLayer.$renderer=null),_.off("changeSelection",this.update),this.update(null,_)}};r.Editor=M}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(n,r,i){var h=n("../lib/dom"),f=function(){function g(s,p){this.element=s,this.canvasHeight=p||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return g.prototype.moveContainer=function(s){h.translate(this.element,0,-(s.firstRowScreen*s.lineHeight%this.canvasHeight)-s.offset*this.$offsetCoefficient)},g.prototype.pageChanged=function(s,p){return Math.floor(s.firstRowScreen*s.lineHeight/this.canvasHeight)!==Math.floor(p.firstRowScreen*p.lineHeight/this.canvasHeight)},g.prototype.computeLineTop=function(s,p,o){var a=p.firstRowScreen*p.lineHeight,c=Math.floor(a/this.canvasHeight),u=o.documentToScreenRow(s,0)*p.lineHeight;return u-c*this.canvasHeight},g.prototype.computeLineHeight=function(s,p,o){return p.lineHeight*o.getRowLineCount(s)},g.prototype.getLength=function(){return this.cells.length},g.prototype.get=function(s){return this.cells[s]},g.prototype.shift=function(){this.$cacheCell(this.cells.shift())},g.prototype.pop=function(){this.$cacheCell(this.cells.pop())},g.prototype.push=function(s){if(Array.isArray(s)){this.cells.push.apply(this.cells,s);for(var p=h.createFragment(this.element),o=0;o<s.length;o++)p.appendChild(s[o].element);this.element.appendChild(p)}else this.cells.push(s),this.element.appendChild(s.element)},g.prototype.unshift=function(s){if(Array.isArray(s)){this.cells.unshift.apply(this.cells,s);for(var p=h.createFragment(this.element),o=0;o<s.length;o++)p.appendChild(s[o].element);this.element.firstChild?this.element.insertBefore(p,this.element.firstChild):this.element.appendChild(p)}else this.cells.unshift(s),this.element.insertAdjacentElement("afterbegin",s.element)},g.prototype.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},g.prototype.$cacheCell=function(s){s&&(s.element.remove(),this.cellCache.push(s))},g.prototype.createCell=function(s,p,o,a){var c=this.cellCache.pop();if(!c){var u=h.createElement("div");a&&a(u),this.element.appendChild(u),c={element:u,text:"",row:s}}return c.row=s,c},g}();r.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,r,i){var h=n("../lib/dom"),f=n("../lib/oop"),g=n("../lib/lang"),s=n("../lib/event_emitter").EventEmitter,p=n("./lines").Lines,o=n("../config").nls,a=function(){function u(l){this.element=h.createElement("div"),this.element.className="ace_layer ace_gutter-layer",l.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new p(this.element),this.$lines.$offsetCoefficient=1}return u.prototype.setSession=function(l){this.session&&this.session.off("change",this.$updateAnnotations),this.session=l,l&&l.on("change",this.$updateAnnotations)},u.prototype.addGutterDecoration=function(l,d){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(l,d)},u.prototype.removeGutterDecoration=function(l,d){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(l,d)},u.prototype.setAnnotations=function(l){this.$annotations=[];for(var d=0;d<l.length;d++){var m=l[d],v=m.row,y=this.$annotations[v];y||(y=this.$annotations[v]={text:[],type:[],displayText:[]});var C=m.text,$=m.text,S=m.type;C=C?g.escapeHTML(C):m.html||"",$=$||m.html||"",y.text.indexOf(C)===-1&&(y.text.push(C),y.type.push(S),y.displayText.push($));var b=m.className;b?y.className=b:S==="error"?y.className=" ace_error":S==="security"&&!/\bace_error\b/.test(y.className)?y.className=" ace_security":S==="warning"&&!/\bace_(error|security)\b/.test(y.className)?y.className=" ace_warning":S==="info"&&!y.className?y.className=" ace_info":S==="hint"&&!y.className&&(y.className=" ace_hint")}},u.prototype.$updateAnnotations=function(l){if(this.$annotations.length){var d=l.start.row,m=l.end.row-d;if(m!==0)if(l.action=="remove")this.$annotations.splice(d,m+1,null);else{var v=new Array(m+1);v.unshift(d,1),this.$annotations.splice.apply(this.$annotations,v)}}},u.prototype.update=function(l){this.config=l;var d=this.session,m=l.firstRow,v=Math.min(l.lastRow+l.gutterOffset,d.getLength()-1);this.oldLastRow=v,this.config=l,this.$lines.moveContainer(l),this.$updateCursorRow();for(var y=d.getNextFoldLine(m),C=y?y.start.row:1/0,$=null,S=-1,b=m;;){if(b>C&&(b=y.end.row+1,y=d.getNextFoldLine(b,y),C=y?y.start.row:1/0),b>v){for(;this.$lines.getLength()>S+1;)this.$lines.pop();break}$=this.$lines.get(++S),$?$.row=b:($=this.$lines.createCell(b,l,this.session,c),this.$lines.push($)),this.$renderCell($,l,y,b),b++}this._signal("afterRender"),this.$updateGutterWidth(l)},u.prototype.$updateGutterWidth=function(l){var d=this.session,m=d.gutterRenderer||this.$renderer,v=d.$firstLineNumber,y=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||d.$useWrapMode)&&(y=d.getLength()+v-1);var C=m?m.getWidth(d,y,l):y.toString().length*l.characterWidth,$=this.$padding||this.$computePadding();C+=$.left+$.right,C!==this.gutterWidth&&!isNaN(C)&&(this.gutterWidth=C,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",C))},u.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var l=this.session.selection.getCursor();this.$cursorRow!==l.row&&(this.$cursorRow=l.row)}},u.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var l=this.session.selection.cursor.row;if(this.$cursorRow=l,!(this.$cursorCell&&this.$cursorCell.row==l)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var d=this.$lines.cells;this.$cursorCell=null;for(var m=0;m<d.length;m++){var v=d[m];if(v.row>=this.$cursorRow){if(v.row>this.$cursorRow){var y=this.session.getFoldLine(this.$cursorRow);if(m>0&&y&&y.start.row==d[m-1].row)v=d[m-1];else break}v.element.className="ace_gutter-active-line "+v.element.className,this.$cursorCell=v;break}}}}},u.prototype.scrollLines=function(l){var d=this.config;if(this.config=l,this.$updateCursorRow(),this.$lines.pageChanged(d,l))return this.update(l);this.$lines.moveContainer(l);var m=Math.min(l.lastRow+l.gutterOffset,this.session.getLength()-1),v=this.oldLastRow;if(this.oldLastRow=m,!d||v<l.firstRow)return this.update(l);if(m<d.firstRow)return this.update(l);if(d.firstRow<l.firstRow)for(var y=this.session.getFoldedRowCount(d.firstRow,l.firstRow-1);y>0;y--)this.$lines.shift();if(v>m)for(var y=this.session.getFoldedRowCount(m+1,v);y>0;y--)this.$lines.pop();l.firstRow<d.firstRow&&this.$lines.unshift(this.$renderLines(l,l.firstRow,d.firstRow-1)),m>v&&this.$lines.push(this.$renderLines(l,v+1,m)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(l)},u.prototype.$renderLines=function(l,d,m){for(var v=[],y=d,C=this.session.getNextFoldLine(y),$=C?C.start.row:1/0;y>$&&(y=C.end.row+1,C=this.session.getNextFoldLine(y,C),$=C?C.start.row:1/0),!(y>m);){var S=this.$lines.createCell(y,l,this.session,c);this.$renderCell(S,l,C,y),v.push(S),y++}return v},u.prototype.$renderCell=function(l,d,m,v){var y=l.element,C=this.session,$=y.childNodes[0],S=y.childNodes[1],b=y.childNodes[2],k=y.childNodes[3],R=b.firstChild,E=C.$firstLineNumber,L=C.$breakpoints,O=C.$decorations,M=C.gutterRenderer||this.$renderer,x=this.$showFoldWidgets&&C.foldWidgets,_=m?m.start.row:Number.MAX_VALUE,w=d.lineHeight+"px",A=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",T=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",I=(M?M.getText(C,v):v+E).toString();if(this.$highlightGutterLine&&(v==this.$cursorRow||m&&v<this.$cursorRow&&v>=_&&this.$cursorRow<=m.end.row)&&(A+="ace_gutter-active-line ",this.$cursorCell!=l&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=l)),L[v]&&(A+=L[v]),O[v]&&(A+=O[v]),this.$annotations[v]&&v!==_&&(A+=this.$annotations[v].className),x){var N=x[v];N==null&&(N=x[v]=C.getFoldWidget(v))}if(N){var D="ace_fold-widget ace_"+N,F=N=="start"&&v==_&&v<m.end.row;if(F){D+=" ace_closed";for(var H="",W=!1,U=v+1;U<=m.end.row;U++)if(this.$annotations[U]){if(this.$annotations[U].className===" ace_error"){W=!0,H=" ace_error_fold";break}this.$annotations[U].className===" ace_security"?(W=!0,H=" ace_security_fold"):this.$annotations[U].className===" ace_warning"&&H!==" ace_security_fold"&&(W=!0,H=" ace_warning_fold")}A+=H}else D+=" ace_open";S.className!=D&&(S.className=D),h.setStyle(S.style,"height",w),h.setStyle(S.style,"display","inline-block"),S.setAttribute("role","button"),S.setAttribute("tabindex","-1");var V=C.getFoldWidgetRange(v);V?S.setAttribute("aria-label",o("gutter.code-folding.range.aria-label","Toggle code folding, rows $0 through $1",[V.start.row+1,V.end.row+1])):m?S.setAttribute("aria-label",o("gutter.code-folding.closed.aria-label","Toggle code folding, rows $0 through $1",[m.start.row+1,m.end.row+1])):S.setAttribute("aria-label",o("gutter.code-folding.open.aria-label","Toggle code folding, row $0",[v+1])),F?(S.setAttribute("aria-expanded","false"),S.setAttribute("title",o("gutter.code-folding.closed.title","Unfold code"))):(S.setAttribute("aria-expanded","true"),S.setAttribute("title",o("gutter.code-folding.open.title","Fold code")))}else S&&(h.setStyle(S.style,"display","none"),S.setAttribute("tabindex","0"),S.removeAttribute("role"),S.removeAttribute("aria-label"));var G=this.session.$gutterCustomWidgets[v];if(G?this.$addCustomWidget(v,G,l):k&&this.$removeCustomWidget(v,l),W&&this.$showFoldedAnnotations){b.className="ace_gutter_annotation",R.className=T,R.className+=H,h.setStyle(R.style,"height",w),h.setStyle(b.style,"display","block"),h.setStyle(b.style,"height",w);var j;switch(H){case" ace_error_fold":j=o("gutter.annotation.aria-label.error","Error, read annotations row $0",[I]);break;case" ace_security_fold":j=o("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[I]);break;case" ace_warning_fold":j=o("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[I]);break}b.setAttribute("aria-label",j),b.setAttribute("tabindex","-1"),b.setAttribute("role","button")}else if(this.$annotations[v]){b.className="ace_gutter_annotation",R.className=T,this.$useSvgGutterIcons?R.className+=this.$annotations[v].className:y.classList.add(this.$annotations[v].className.replace(" ","")),h.setStyle(R.style,"height",w),h.setStyle(b.style,"display","block"),h.setStyle(b.style,"height",w);var j;switch(this.$annotations[v].className){case" ace_error":j=o("gutter.annotation.aria-label.error","Error, read annotations row $0",[I]);break;case" ace_security":j=o("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[I]);break;case" ace_warning":j=o("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[I]);break;case" ace_info":j=o("gutter.annotation.aria-label.info","Info, read annotations row $0",[I]);break;case" ace_hint":j=o("gutter.annotation.aria-label.hint","Suggestion, read annotations row $0",[I]);break}b.setAttribute("aria-label",j),b.setAttribute("tabindex","-1"),b.setAttribute("role","button")}else h.setStyle(b.style,"display","none"),b.removeAttribute("aria-label"),b.removeAttribute("role"),b.setAttribute("tabindex","0");return I!==$.data&&($.data=I),y.className!=A&&(y.className=A),h.setStyle(l.element.style,"height",this.$lines.computeLineHeight(v,d,C)+"px"),h.setStyle(l.element.style,"top",this.$lines.computeLineTop(v,d,C)+"px"),l.text=I,b.style.display==="none"&&S.style.display==="none"&&!G?l.element.setAttribute("aria-hidden",!0):l.element.setAttribute("aria-hidden",!1),l},u.prototype.setHighlightGutterLine=function(l){this.$highlightGutterLine=l},u.prototype.setShowLineNumbers=function(l){this.$renderer=!l&&{getWidth:function(){return 0},getText:function(){return""}}},u.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},u.prototype.setShowFoldWidgets=function(l){l?h.addCssClass(this.element,"ace_folding-enabled"):h.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=l,this.$padding=null},u.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},u.prototype.$hideFoldWidget=function(l,d){var m=d||this.$getGutterCell(l);if(m&&m.element){var v=m.element.childNodes[1];v&&h.setStyle(v.style,"display","none")}},u.prototype.$showFoldWidget=function(l,d){var m=d||this.$getGutterCell(l);if(m&&m.element){var v=m.element.childNodes[1];v&&this.session.foldWidgets&&this.session.foldWidgets[m.row]&&h.setStyle(v.style,"display","inline-block")}},u.prototype.$getGutterCell=function(l){var d=this.$lines.cells,m=this.session.documentToScreenRow(l,0);return d[l-this.config.firstRowScreen-(l-m)]},u.prototype.$addCustomWidget=function(l,d,m){var v=d.className,y=d.label,C=d.title,$=d.callbacks;this.session.$gutterCustomWidgets[l]={className:v,label:y,title:C,callbacks:$},this.$hideFoldWidget(l,m);var S=m||this.$getGutterCell(l);if(S&&S.element){var b=S.element.querySelector(".ace_custom-widget");b&&b.remove(),b=h.createElement("span"),b.className="ace_custom-widget ".concat(v),b.setAttribute("tabindex","-1"),b.setAttribute("role","button"),b.setAttribute("aria-label",y),b.setAttribute("title",C),h.setStyle(b.style,"display","inline-block"),h.setStyle(b.style,"height","inherit"),$&&$.onClick&&b.addEventListener("click",function(k){$.onClick(k,l),k.stopPropagation()}),S.element.appendChild(b)}},u.prototype.$removeCustomWidget=function(l,d){delete this.session.$gutterCustomWidgets[l],this.$showFoldWidget(l,d);var m=d||this.$getGutterCell(l);if(m&&m.element){var v=m.element.querySelector(".ace_custom-widget");v&&m.element.removeChild(v)}},u.prototype.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var l=h.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(l.borderLeftWidth)||0)+(parseInt(l.paddingLeft)||0)+1,this.$padding.right=(parseInt(l.borderRightWidth)||0)+(parseInt(l.paddingRight)||0),this.$padding},u.prototype.getRegion=function(l){var d=this.$padding||this.$computePadding(),m=this.element.getBoundingClientRect();if(l.x<d.left+m.left)return"markers";if(this.$showFoldWidgets&&l.x>m.right-d.right)return"foldWidgets"},u}();a.prototype.$fixedWidth=!1,a.prototype.$highlightGutterLine=!0,a.prototype.$renderer="",a.prototype.$showLineNumbers=!0,a.prototype.$showFoldWidgets=!0,f.implement(a.prototype,s);function c(u){var l=document.createTextNode("");u.appendChild(l);var d=h.createElement("span");u.appendChild(d);var m=h.createElement("span");u.appendChild(m);var v=h.createElement("span");return m.appendChild(v),u}r.Gutter=a}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(n,r,i){var h=n("../range").Range,f=n("../lib/dom"),g=function(){function p(o){this.element=f.createElement("div"),this.element.className="ace_layer ace_marker-layer",o.appendChild(this.element)}return p.prototype.setPadding=function(o){this.$padding=o},p.prototype.setSession=function(o){this.session=o},p.prototype.setMarkers=function(o){this.markers=o},p.prototype.elt=function(o,a){var c=this.i!=-1&&this.element.childNodes[this.i];c?this.i++:(c=document.createElement("div"),this.element.appendChild(c),this.i=-1),c.style.cssText=a,c.className=o},p.prototype.update=function(o){if(o){this.config=o,this.i=0;var a;for(var c in this.markers){var u=this.markers[c];if(!u.range){u.update(a,this,this.session,o);continue}var l=u.range.clipRows(o.firstRow,o.lastRow);if(!l.isEmpty())if(l=l.toScreenRange(this.session),u.renderer){var d=this.$getTop(l.start.row,o),m=this.$padding+l.start.column*o.characterWidth;u.renderer(a,l,m,d,o)}else u.type=="fullLine"?this.drawFullLineMarker(a,l,u.clazz,o):u.type=="screenLine"?this.drawScreenLineMarker(a,l,u.clazz,o):l.isMultiLine()?u.type=="text"?this.drawTextMarker(a,l,u.clazz,o):this.drawMultiLineMarker(a,l,u.clazz,o):this.drawSingleLineMarker(a,l,u.clazz+" ace_start ace_br15",o)}if(this.i!=-1)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},p.prototype.$getTop=function(o,a){return(o-a.firstRowScreen)*a.lineHeight},p.prototype.drawTextMarker=function(o,a,c,u,l){for(var d=this.session,m=a.start.row,v=a.end.row,y=m,C=0,$=0,S=d.getScreenLastRowColumn(y),b=new h(y,a.start.column,y,$);y<=v;y++)b.start.row=b.end.row=y,b.start.column=y==m?a.start.column:d.getRowWrapIndent(y),b.end.column=S,C=$,$=S,S=y+1<v?d.getScreenLastRowColumn(y+1):y==v?0:a.end.column,this.drawSingleLineMarker(o,b,c+(y==m?" ace_start":"")+" ace_br"+s(y==m||y==m+1&&a.start.column,C<$,$>S,y==v),u,y==v?0:1,l)},p.prototype.drawMultiLineMarker=function(o,a,c,u,l){var d=this.$padding,m=u.lineHeight,v=this.$getTop(a.start.row,u),y=d+a.start.column*u.characterWidth;if(l=l||"",this.session.$bidiHandler.isBidiRow(a.start.row)){var C=a.clone();C.end.row=C.start.row,C.end.column=this.session.getLine(C.start.row).length,this.drawBidiSingleLineMarker(o,C,c+" ace_br1 ace_start",u,null,l)}else this.elt(c+" ace_br1 ace_start","height:"+m+"px;right:"+d+"px;top:"+v+"px;left:"+y+"px;"+(l||""));if(this.session.$bidiHandler.isBidiRow(a.end.row)){var C=a.clone();C.start.row=C.end.row,C.start.column=0,this.drawBidiSingleLineMarker(o,C,c+" ace_br12",u,null,l)}else{v=this.$getTop(a.end.row,u);var $=a.end.column*u.characterWidth;this.elt(c+" ace_br12","height:"+m+"px;width:"+$+"px;top:"+v+"px;left:"+d+"px;"+(l||""))}if(m=(a.end.row-a.start.row-1)*u.lineHeight,!(m<=0)){v=this.$getTop(a.start.row+1,u);var S=(a.start.column?1:0)|(a.end.column?0:8);this.elt(c+(S?" ace_br"+S:""),"height:"+m+"px;right:"+d+"px;top:"+v+"px;left:"+d+"px;"+(l||""))}},p.prototype.drawSingleLineMarker=function(o,a,c,u,l,d){if(this.session.$bidiHandler.isBidiRow(a.start.row))return this.drawBidiSingleLineMarker(o,a,c,u,l,d);var m=u.lineHeight,v=(a.end.column+(l||0)-a.start.column)*u.characterWidth,y=this.$getTop(a.start.row,u),C=this.$padding+a.start.column*u.characterWidth;this.elt(c,"height:"+m+"px;width:"+v+"px;top:"+y+"px;left:"+C+"px;"+(d||""))},p.prototype.drawBidiSingleLineMarker=function(o,a,c,u,l,d){var m=u.lineHeight,v=this.$getTop(a.start.row,u),y=this.$padding,C=this.session.$bidiHandler.getSelections(a.start.column,a.end.column);C.forEach(function($){this.elt(c,"height:"+m+"px;width:"+($.width+(l||0))+"px;top:"+v+"px;left:"+(y+$.left)+"px;"+(d||""))},this)},p.prototype.drawFullLineMarker=function(o,a,c,u,l){var d=this.$getTop(a.start.row,u),m=u.lineHeight;a.start.row!=a.end.row&&(m+=this.$getTop(a.end.row,u)-d),this.elt(c,"height:"+m+"px;top:"+d+"px;left:0;right:0;"+(l||""))},p.prototype.drawScreenLineMarker=function(o,a,c,u,l){var d=this.$getTop(a.start.row,u),m=u.lineHeight;this.elt(c,"height:"+m+"px;top:"+d+"px;left:0;right:0;"+(l||""))},p}();g.prototype.$padding=0;function s(p,o,a,c){return(p?1:0)|(o?2:0)|(a?4:0)|(c?8:0)}r.Marker=g}),ace.define("ace/layer/text_util",["require","exports","module"],function(n,r,i){var h=new Set(["text","rparen","lparen"]);r.isTextToken=function(f){return h.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,r,i){var h=n("../lib/oop"),f=n("../lib/dom"),g=n("../lib/lang"),s=n("./lines").Lines,p=n("../lib/event_emitter").EventEmitter,o=n("../config").nls,a=n("./text_util").isTextToken,c=function(){function u(l){this.dom=f,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",l.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new s(this.element)}return u.prototype.$updateEolChar=function(){var l=this.session.doc,d=l.getNewLineCharacter()==`
842
+ `&&l.getNewLineMode()!="windows",m=d?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=m)return this.EOL_CHAR=m,!0},u.prototype.setPadding=function(l){this.$padding=l,this.element.style.margin="0 "+l+"px"},u.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},u.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},u.prototype.$setFontMetrics=function(l){this.$fontMetrics=l,this.$fontMetrics.on("changeCharacterSize",(function(d){this._signal("changeCharacterSize",d)}).bind(this)),this.$pollSizeChanges()},u.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},u.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},u.prototype.setSession=function(l){this.session=l,l&&this.$computeTabString()},u.prototype.setShowInvisibles=function(l){return this.showInvisibles==l?!1:(this.showInvisibles=l,typeof l=="string"?(this.showSpaces=/tab/i.test(l),this.showTabs=/space/i.test(l),this.showEOL=/eol/i.test(l)):this.showSpaces=this.showTabs=this.showEOL=l,this.$computeTabString(),!0)},u.prototype.setDisplayIndentGuides=function(l){return this.displayIndentGuides==l?!1:(this.displayIndentGuides=l,this.$computeTabString(),!0)},u.prototype.setHighlightIndentGuides=function(l){return this.$highlightIndentGuides===l?!1:(this.$highlightIndentGuides=l,l)},u.prototype.$computeTabString=function(){var l=this.session.getTabSize();this.tabSize=l;for(var d=this.$tabStrings=[0],m=1;m<l+1;m++)if(this.showTabs){var v=this.dom.createElement("span");v.className="ace_invisible ace_invisible_tab",v.textContent=g.stringRepeat(this.TAB_CHAR,m),d.push(v)}else d.push(this.dom.createTextNode(g.stringRepeat(" ",m),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var y="ace_indent-guide",C=this.showSpaces?" ace_invisible ace_invisible_space":"",$=this.showSpaces?g.stringRepeat(this.SPACE_CHAR,this.tabSize):g.stringRepeat(" ",this.tabSize),S=this.showTabs?" ace_invisible ace_invisible_tab":"",b=this.showTabs?g.stringRepeat(this.TAB_CHAR,this.tabSize):$,v=this.dom.createElement("span");v.className=y+C,v.textContent=$,this.$tabStrings[" "]=v;var v=this.dom.createElement("span");v.className=y+S,v.textContent=b,this.$tabStrings[" "]=v}},u.prototype.updateLines=function(l,d,m){if(this.config.lastRow!=l.lastRow||this.config.firstRow!=l.firstRow)return this.update(l);this.config=l;for(var v=Math.max(d,l.firstRow),y=Math.min(m,l.lastRow),C=this.element.childNodes,$=0,b=l.firstRow;b<v;b++){var k=this.session.getFoldLine(b);if(k)if(k.containsRow(v)){v=k.start.row;break}else b=k.end.row;$++}for(var S=!1,b=v,k=this.session.getNextFoldLine(b),R=k?k.start.row:1/0;b>R&&(b=k.end.row+1,k=this.session.getNextFoldLine(b,k),R=k?k.start.row:1/0),!(b>y);){var E=C[$++];if(E){this.dom.removeChildren(E),this.$renderLine(E,b,b==R?k:!1),S&&(E.style.top=this.$lines.computeLineTop(b,l,this.session)+"px");var L=l.lineHeight*this.session.getRowLength(b)+"px";E.style.height!=L&&(S=!0,E.style.height=L)}b++}if(S)for(;$<this.$lines.cells.length;){var O=this.$lines.cells[$++];O.element.style.top=this.$lines.computeLineTop(O.row,l,this.session)+"px"}},u.prototype.scrollLines=function(l){var d=this.config;if(this.config=l,this.$lines.pageChanged(d,l))return this.update(l);this.$lines.moveContainer(l);var m=l.lastRow,v=d?d.lastRow:-1;if(!d||v<l.firstRow)return this.update(l);if(m<d.firstRow)return this.update(l);if(!d||d.lastRow<l.firstRow)return this.update(l);if(l.lastRow<d.firstRow)return this.update(l);if(d.firstRow<l.firstRow)for(var y=this.session.getFoldedRowCount(d.firstRow,l.firstRow-1);y>0;y--)this.$lines.shift();if(d.lastRow>l.lastRow)for(var y=this.session.getFoldedRowCount(l.lastRow+1,d.lastRow);y>0;y--)this.$lines.pop();l.firstRow<d.firstRow&&this.$lines.unshift(this.$renderLinesFragment(l,l.firstRow,d.firstRow-1)),l.lastRow>d.lastRow&&this.$lines.push(this.$renderLinesFragment(l,d.lastRow+1,l.lastRow)),this.$highlightIndentGuide()},u.prototype.$renderLinesFragment=function(l,d,m){for(var v=[],y=d,C=this.session.getNextFoldLine(y),$=C?C.start.row:1/0;y>$&&(y=C.end.row+1,C=this.session.getNextFoldLine(y,C),$=C?C.start.row:1/0),!(y>m);){var S=this.$lines.createCell(y,l,this.session),b=S.element;this.dom.removeChildren(b),f.setStyle(b.style,"height",this.$lines.computeLineHeight(y,l,this.session)+"px"),f.setStyle(b.style,"top",this.$lines.computeLineTop(y,l,this.session)+"px"),this.$renderLine(b,y,y==$?C:!1),this.$useLineGroups()?b.className="ace_line_group":b.className="ace_line",v.push(S),y++}return v},u.prototype.update=function(l){this.$lines.moveContainer(l),this.config=l;for(var d=l.firstRow,m=l.lastRow,v=this.$lines;v.getLength();)v.pop();v.push(this.$renderLinesFragment(l,d,m))},u.prototype.$renderToken=function(l,d,m,v){for(var y=this,C=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069\u2060\u2061\u2062\u2063\u2064\u206A\u206B\u206B\u206C\u206D\u206E\u206F]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,$=this.dom.createFragment(this.element),S,b=0;S=C.exec(v);){var k=S[1],R=S[2],E=S[3],L=S[4],O=S[5];if(!(!y.showSpaces&&R)){var M=b!=S.index?v.slice(b,S.index):"";if(b=S.index+S[0].length,M&&$.appendChild(this.dom.createTextNode(M,this.element)),k){var x=y.session.getScreenTabSize(d+S.index),_=y.$tabStrings[x].cloneNode(!0);_.charCount=1,$.appendChild(_),d+=x-1}else if(R)if(y.showSpaces){var w=this.dom.createElement("span");w.className="ace_invisible ace_invisible_space",w.textContent=g.stringRepeat(y.SPACE_CHAR,R.length),$.appendChild(w)}else $.appendChild(this.dom.createTextNode(R,this.element));else if(E){var w=this.dom.createElement("span");w.className="ace_invisible ace_invisible_space ace_invalid",w.textContent=g.stringRepeat(y.SPACE_CHAR,E.length),$.appendChild(w)}else if(L){d+=1;var w=this.dom.createElement("span");w.style.width=y.config.characterWidth*2+"px",w.className=y.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",w.textContent=y.showSpaces?y.SPACE_CHAR:L,$.appendChild(w)}else if(O){d+=1;var w=this.dom.createElement("span");w.style.width=y.config.characterWidth*2+"px",w.className="ace_cjk",w.textContent=O,$.appendChild(w)}}}if($.appendChild(this.dom.createTextNode(b?v.slice(b):v,this.element)),a(m.type))l.appendChild($);else{var A="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("inline-fold.closed.title","Unfold code"))),w.className=A,w.appendChild($),l.appendChild(w)}return d+v.length},u.prototype.renderIndentGuide=function(l,d,m){var v=d.search(this.$indentGuideRe);if(v<=0||v>=m)return d;if(d[0]==" "){v-=v%this.tabSize;for(var y=v/this.tabSize,C=0;C<y;C++)l.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),d.substr(v)}else if(d[0]==" "){for(var C=0;C<v;C++)l.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),d.substr(v)}return this.$highlightIndentGuide(),d},u.prototype.$highlightIndentGuide=function(){if(!(!this.$highlightIndentGuides||!this.displayIndentGuides)){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var l=this.session.doc.$lines;if(l){var d=this.session.selection.getCursor(),m=/^\s*/.exec(this.session.doc.getLine(d.row))[0].length,v=Math.floor(m/this.tabSize);this.$highlightIndentGuideMarker={indentLevel:v,start:d.row};var y=this.session.$bracketHighlight;if(y){for(var C=this.session.$bracketHighlight.ranges,$=0;$<C.length;$++)if(d.row!==C[$].start.row){this.$highlightIndentGuideMarker.end=C[$].start.row+1,d.row>C[$].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&l[d.row]!==""&&d.column===l[d.row].length){this.$highlightIndentGuideMarker.dir=1;for(var $=d.row+1;$<l.length;$++){var S=l[$],b=/^\s*/.exec(S)[0].length;if(S!==""&&(this.$highlightIndentGuideMarker.end=$,b<=m))break}}this.$renderHighlightIndentGuide()}}},u.prototype.$clearActiveIndentGuide=function(){for(var l=this.element.querySelectorAll(".ace_indent-guide-active"),d=0;d<l.length;d++)l[d].classList.remove("ace_indent-guide-active")},u.prototype.$setIndentGuideActive=function(l,d){var m=this.session.doc.getLine(l.row);if(m!==""){var v=l.element;if(l.element.classList&&l.element.classList.contains("ace_line_group"))if(l.element.childNodes.length>0)v=l.element.childNodes[0];else return;var y=v.childNodes;if(y){var C=y[d-1];C&&C.classList&&C.classList.contains("ace_indent-guide")&&C.classList.add("ace_indent-guide-active")}}},u.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var l=this.$lines.cells;this.$clearActiveIndentGuide();var d=this.$highlightIndentGuideMarker.indentLevel;if(d!==0)if(this.$highlightIndentGuideMarker.dir===1)for(var m=0;m<l.length;m++){var v=l[m];if(this.$highlightIndentGuideMarker.end&&v.row>=this.$highlightIndentGuideMarker.start+1){if(v.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(v,d)}}else for(var m=l.length-1;m>=0;m--){var v=l[m];if(this.$highlightIndentGuideMarker.end&&v.row<this.$highlightIndentGuideMarker.start){if(v.row<this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(v,d)}}}},u.prototype.$createLineElement=function(l){var d=this.dom.createElement("div");return d.className="ace_line",d.style.height=this.config.lineHeight+"px",d},u.prototype.$renderWrappedLine=function(l,d,m){var v=0,y=0,C=m[0],$=0,S=this.$createLineElement();l.appendChild(S);for(var b=0;b<d.length;b++){var k=d[b],R=k.value;if(b==0&&this.displayIndentGuides){if(v=R.length,R=this.renderIndentGuide(S,R,C),!R)continue;v-=R.length}if(v+R.length<C)$=this.$renderToken(S,$,k,R),v+=R.length;else{for(;v+R.length>=C;){$=this.$renderToken(S,$,k,R.substring(0,C-v)),R=R.substring(C-v),v=C,S=this.$createLineElement(),l.appendChild(S);var E=this.dom.createTextNode(g.stringRepeat(" ",m.indent),this.element);E.charCount=0,S.appendChild(E),y++,$=0,C=m[y]||Number.MAX_VALUE}R.length!=0&&(v+=R.length,$=this.$renderToken(S,$,k,R))}}m[m.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(S,$,null,"",!0)},u.prototype.$renderSimpleLine=function(l,d){for(var m=0,v=0;v<d.length;v++){var y=d[v],C=y.value;if(!(v==0&&this.displayIndentGuides&&(C=this.renderIndentGuide(l,C),!C))){if(m+C.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(l,m,y,C);m=this.$renderToken(l,m,y,C)}}},u.prototype.$renderOverflowMessage=function(l,d,m,v,y){m&&this.$renderToken(l,d,m,v.slice(0,this.MAX_LINE_LENGTH-d));var C=this.dom.createElement("span");C.className="ace_inline_button ace_keyword ace_toggle_wrap",C.textContent=y?"<hide>":"<click to see more...>",l.appendChild(C)},u.prototype.$renderLine=function(l,d,m){if(!m&&m!=!1&&(m=this.session.getFoldLine(d)),m)var v=this.$getFoldLineTokens(d,m);else var v=this.session.getTokens(d);var y=l;if(v.length){var C=this.session.getRowSplitData(d);if(C&&C.length){this.$renderWrappedLine(l,v,C);var y=l.lastChild}else{var y=l;this.$useLineGroups()&&(y=this.$createLineElement(),l.appendChild(y)),this.$renderSimpleLine(y,v)}}else this.$useLineGroups()&&(y=this.$createLineElement(),l.appendChild(y));if(this.showEOL&&y){m&&(d=m.end.row);var $=this.dom.createElement("span");$.className="ace_invisible ace_invisible_eol",$.textContent=d==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,y.appendChild($)}},u.prototype.$getFoldLineTokens=function(l,d){var m=this.session,v=[];function y($,S,b){for(var k=0,R=0;R+$[k].value.length<S;)if(R+=$[k].value.length,k++,k==$.length)return;if(R!=S){var E=$[k].value.substring(S-R);E.length>b-S&&(E=E.substring(0,b-S)),v.push({type:$[k].type,value:E}),R=S+E.length,k+=1}for(;R<b&&k<$.length;){var E=$[k].value;E.length+R>b?v.push({type:$[k].type,value:E.substring(0,b-R)}):v.push($[k]),R+=E.length,k+=1}}var C=m.getTokens(l);return d.walk(function($,S,b,k,R){$!=null?v.push({type:"fold",value:$}):(R&&(C=m.getTokens(S)),C.length&&y(C,k,b))},d.end.row,this.session.getLine(d.end.row).length),v},u.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},u}();c.prototype.EOF_CHAR="¶",c.prototype.EOL_CHAR_LF="¬",c.prototype.EOL_CHAR_CRLF="¤",c.prototype.EOL_CHAR=c.prototype.EOL_CHAR_LF,c.prototype.TAB_CHAR="—",c.prototype.SPACE_CHAR="·",c.prototype.$padding=0,c.prototype.MAX_LINE_LENGTH=1e4,c.prototype.showInvisibles=!1,c.prototype.showSpaces=!1,c.prototype.showTabs=!1,c.prototype.showEOL=!1,c.prototype.displayIndentGuides=!0,c.prototype.$highlightIndentGuides=!0,c.prototype.$tabStrings=[],c.prototype.destroy={},c.prototype.onChangeTabSize=c.prototype.$computeTabString,h.implement(c.prototype,p),r.Text=c}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(n,r,i){var h=n("../lib/dom"),f=function(){function g(s){this.element=h.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(),h.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return g.prototype.$updateOpacity=function(s){for(var p=this.cursors,o=p.length;o--;)h.setStyle(p[o].style,"opacity",s?"":"0")},g.prototype.$startCssAnimation=function(){for(var s=this.cursors,p=s.length;p--;)s[p].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout((function(){this.$isAnimating&&h.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},g.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,h.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,h.setCssClass(this.element,"ace_smooth-blinking",s),this.$updateCursors(!0),this.restartTimer())},g.prototype.addCursor=function(){var s=h.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,h.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},g.prototype.showCursor=function(){this.isVisible=!0,h.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,h.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&&h.addCssClass(this.element,"ace_smooth-blinking")}).bind(this))),h.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var p=(function(){this.timeoutId=setTimeout(function(){s(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){s(!0),p()},this.blinkInterval),p()}},g.prototype.getPixelPosition=function(s,p){if(!this.config||!this.session)return{left:0,top:0};s||(s=this.session.selection.getCursor());var o=this.session.documentToScreenPosition(s),a=this.$padding+(this.session.$bidiHandler.isBidiRow(o.row,s.row)?this.session.$bidiHandler.getPosLeft(o.column):o.column*this.config.characterWidth),c=(o.row-(p?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:a,top:c}},g.prototype.isCursorInView=function(s,p){return s.top>=0&&s.top<p.maxHeight},g.prototype.update=function(s){this.config=s;var p=this.session.$selectionMarkers,o=0,a=0;(p===void 0||p.length===0)&&(p=[{cursor:null}]);for(var o=0,c=p.length;o<c;o++){var u=this.getPixelPosition(p[o].cursor,!0);if(!((u.top>s.height+s.offset||u.top<0)&&o>1)){var l=this.cursors[a++]||this.addCursor(),d=l.style;this.drawCursor?this.drawCursor(l,u,s,p[o],this.session):this.isCursorInView(u,s)?(h.setStyle(d,"display","block"),h.translate(l,u.left,u.top),h.setStyle(d,"width",Math.round(s.characterWidth)+"px"),h.setStyle(d,"height",s.lineHeight+"px")):h.setStyle(d,"display","none")}}for(;this.cursors.length>a;)this.removeCursor();var m=this.session.getOverwrite();this.$setOverwrite(m),this.$pixelPos=u,this.restartTimer()},g.prototype.$setOverwrite=function(s){s!=this.overwrite&&(this.overwrite=s,s?h.addCssClass(this.element,"ace_overwrite-cursors"):h.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,r.Cursor=f}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(n,r,i){var h=this&&this.__extends||function(){var l=function(d,m){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,y){v.__proto__=y}||function(v,y){for(var C in y)Object.prototype.hasOwnProperty.call(y,C)&&(v[C]=y[C])},l(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");l(d,m);function v(){this.constructor=d}d.prototype=m===null?Object.create(m):(v.prototype=m.prototype,new v)}}(),f=n("./lib/oop"),g=n("./lib/dom"),s=n("./lib/event"),p=n("./lib/event_emitter").EventEmitter,o=32768,a=function(){function l(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 l.prototype.setVisible=function(d){this.element.style.display=d?"":"none",this.isVisible=d,this.coeff=1},l}();f.implement(a.prototype,p);var c=function(l){h(d,l);function d(m,v){var y=l.call(this,m,"-v")||this;return y.scrollTop=0,y.scrollHeight=0,v.$scrollbarWidth=y.width=g.scrollbarWidth(m.ownerDocument),y.inner.style.width=y.element.style.width=(y.width||15)+5+"px",y.$minWidth=0,y}return 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}(a);c.prototype.setInnerHeight=c.prototype.setScrollHeight;var u=function(l){h(d,l);function d(m,v){var y=l.call(this,m,"-h")||this;return y.scrollLeft=0,y.height=v.$scrollbarWidth,y.inner.style.height=y.element.style.height=(y.height||15)+5+"px",y}return 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}(a);r.ScrollBar=c,r.ScrollBarV=c,r.ScrollBarH=u,r.VScrollBar=c,r.HScrollBar=u}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(n,r,i){var h=this&&this.__extends||function(){var u=function(l,d){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,v){m.__proto__=v}||function(m,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(m[y]=v[y])},u(l,d)};return function(l,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");u(l,d);function m(){this.constructor=l}l.prototype=d===null?Object.create(d):(m.prototype=d.prototype,new m)}}(),f=n("./lib/oop"),g=n("./lib/dom"),s=n("./lib/event"),p=n("./lib/event_emitter").EventEmitter;g.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{
843
+ position: absolute;
844
+ background: rgba(128, 128, 128, 0.6);
845
+ -moz-box-sizing: border-box;
846
+ box-sizing: border-box;
847
+ border: 1px solid #bbb;
848
+ border-radius: 2px;
849
+ z-index: 8;
850
+ }
851
+ .ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {
852
+ position: absolute;
853
+ z-index: 6;
854
+ background: none;
855
+ overflow: hidden!important;
856
+ }
857
+ .ace_editor>.ace_sb-v {
858
+ z-index: 6;
859
+ right: 0;
860
+ top: 0;
861
+ width: 12px;
862
+ }
863
+ .ace_editor>.ace_sb-v div {
864
+ z-index: 8;
865
+ right: 0;
866
+ width: 100%;
867
+ }
868
+ .ace_editor>.ace_sb-h {
869
+ bottom: 0;
870
+ left: 0;
871
+ height: 12px;
872
+ }
873
+ .ace_editor>.ace_sb-h div {
874
+ bottom: 0;
875
+ height: 100%;
876
+ }
877
+ .ace_editor>.ace_sb_grabbed {
878
+ z-index: 8;
879
+ background: #000;
880
+ }`,"ace_scrollbar.css",!1);var o=function(){function u(l,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,l.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,s.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return u.prototype.setVisible=function(l){this.element.style.display=l?"":"none",this.isVisible=l,this.coeff=1},u}();f.implement(o.prototype,p);var a=function(u){h(l,u);function l(d,m){var v=u.call(this,d,"-v")||this;return v.scrollTop=0,v.scrollHeight=0,v.parent=d,v.width=v.VScrollWidth,v.renderer=m,v.inner.style.width=v.element.style.width=(v.width||15)+"px",v.$minWidth=0,v}return l.prototype.onMouseDown=function(d,m){if(d==="mousedown"&&!(s.getButton(m)!==0||m.detail===2)){if(m.target===this.inner){var v=this,y=m.clientY,C=function(L){y=L.clientY},$=function(){clearInterval(R)},S=m.clientY,b=this.thumbTop,k=function(){if(y!==void 0){var L=v.scrollTopFromThumbTop(b+y-S);L!==v.scrollTop&&v._emit("scroll",{data:L})}};s.capture(this.inner,C,$);var R=setInterval(k,20);return s.preventDefault(m)}var E=m.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(E)}),s.preventDefault(m)}},l.prototype.getHeight=function(){return this.height},l.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},l.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},l.prototype.setHeight=function(d){this.height=Math.max(0,d),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},l.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})))},l.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"},l}(o);a.prototype.setInnerHeight=a.prototype.setScrollHeight;var c=function(u){h(l,u);function l(d,m){var v=u.call(this,d,"-h")||this;return v.scrollLeft=0,v.scrollWidth=0,v.height=v.HScrollHeight,v.inner.style.height=v.element.style.height=(v.height||12)+"px",v.renderer=m,v}return l.prototype.onMouseDown=function(d,m){if(d==="mousedown"&&!(s.getButton(m)!==0||m.detail===2)){if(m.target===this.inner){var v=this,y=m.clientX,C=function(L){y=L.clientX},$=function(){clearInterval(R)},S=m.clientX,b=this.thumbLeft,k=function(){if(y!==void 0){var L=v.scrollLeftFromThumbLeft(b+y-S);L!==v.scrollLeft&&v._emit("scroll",{data:L})}};s.capture(this.inner,C,$);var R=setInterval(k,20);return s.preventDefault(m)}var E=m.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(E)}),s.preventDefault(m)}},l.prototype.getHeight=function(){return this.isVisible?this.height:0},l.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},l.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)},l.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})))},l.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"},l}(o);c.prototype.setInnerWidth=c.prototype.setScrollWidth,r.ScrollBar=a,r.ScrollBarV=a,r.ScrollBarH=c,r.VScrollBar=a,r.HScrollBar=c}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(n,r,i){var h=n("./lib/event"),f=function(){function g(s,p){this.onRender=s,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=p||window;var o=this;this._flush=function(a){o.pending=!1;var c=o.changes;if(c&&(h.blockIdle(100),o.changes=0,o.onRender(c)),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&&(h.nextFrame(this._flush),this.pending=!0)},g.prototype.clear=function(s){var p=this.changes;return this.changes=0,p},g}();r.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,r,i){var h=n("../lib/oop"),f=n("../lib/dom"),g=n("../lib/lang"),s=n("../lib/event"),p=n("../lib/useragent"),o=n("../lib/event_emitter").EventEmitter,a=512,c=typeof ResizeObserver=="function",u=200,l=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",a),this.$characterSize={width:0,height:0},c?this.$addObserver():this.checkForSizeChanges()}return d.prototype.$setMeasureNodeStyles=function(m,v){m.width=m.height="auto",m.left=m.top="0px",m.visibility="hidden",m.position="absolute",m.whiteSpace="pre",p.isIE<8?m["font-family"]="inherit":m.font="inherit",m.overflow=v?"hidden":"visible"},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 v=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=m,this.charSizes=Object.create(null),this.allowBoldFonts=v&&v.width===m.width&&v.height===m.height,this._emit("changeCharacterSize",{data:m})}},d.prototype.$addObserver=function(){var m=this;this.$observer=new window.ResizeObserver(function(v){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 v(){m.checkForSizeChanges(),s.onIdle(v,500)},500)},d.prototype.setPolling=function(m){m?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},d.prototype.$measureSizes=function(m){var v={height:(m||this.$measureNode).clientHeight,width:(m||this.$measureNode).clientWidth/a};return v.width===0||v.height===0?null:v},d.prototype.$measureCharWidth=function(m){this.$main.textContent=g.stringRepeat(m,a);var v=this.$main.getBoundingClientRect();return v.width/a},d.prototype.getCharacterWidth=function(m){var v=this.charSizes[m];return v===void 0&&(v=this.charSizes[m]=this.$measureCharWidth(m)/this.$characterSize.width),v},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:(Number(window.getComputedStyle(m).zoom)||1)*this.$getZoom(m.parentElement)},d.prototype.$initTransformMeasureNodes=function(){var m=function(v,y){return["div",{style:"position: absolute;top:"+v+"px;left:"+y+"px;"}]};this.els=f.buildDom([m(0,0),m(u,0),m(0,u),m(u,u)],this.el)},d.prototype.transformCoordinates=function(m,v){if(m){var y=this.$getZoom(this.el);m=b(1/y,m)}function C(D,F,H){var W=D[1]*F[0]-D[0]*F[1];return[(-F[1]*H[0]+F[0]*H[1])/W,(+D[1]*H[0]-D[0]*H[1])/W]}function $(D,F){return[D[0]-F[0],D[1]-F[1]]}function S(D,F){return[D[0]+F[0],D[1]+F[1]]}function b(D,F){return[D*F[0],D*F[1]]}this.els||this.$initTransformMeasureNodes();function k(D){var F=D.getBoundingClientRect();return[F.left,F.top]}var R=k(this.els[0]),E=k(this.els[1]),L=k(this.els[2]),O=k(this.els[3]),M=C($(O,E),$(O,L),$(S(E,L),S(O,R))),x=b(1+M[0],$(E,R)),_=b(1+M[1],$(L,R));if(v){var w=v,A=M[0]*w[0]/u+M[1]*w[1]/u+1,T=S(b(w[0],x),b(w[1],_));return S(b(1/A/u,T),R)}var I=$(m,R),N=C($(x,b(M[0],I)),$(_,b(M[1],I)),I);return b(u,N)},d}();l.prototype.$characterSize={width:0,height:0},h.implement(l.prototype,o),r.FontMetrics=l}),ace.define("ace/css/editor-css",["require","exports","module"],function(n,r,i){i.exports=`
881
+ .ace_br1 {border-top-left-radius : 3px;}
882
+ .ace_br2 {border-top-right-radius : 3px;}
883
+ .ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}
884
+ .ace_br4 {border-bottom-right-radius: 3px;}
885
+ .ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}
886
+ .ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}
887
+ .ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}
888
+ .ace_br8 {border-bottom-left-radius : 3px;}
889
+ .ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}
890
+ .ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}
891
+ .ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}
892
+ .ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
893
+ .ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
894
+ .ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
895
+ .ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
896
+
897
+
898
+ .ace_editor {
899
+ position: relative;
900
+ overflow: hidden;
901
+ padding: 0;
902
+ font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace;
903
+ direction: ltr;
904
+ text-align: left;
905
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
906
+ forced-color-adjust: none;
907
+ }
908
+
909
+ .ace_scroller {
910
+ position: absolute;
911
+ overflow: hidden;
912
+ top: 0;
913
+ bottom: 0;
914
+ background-color: inherit;
915
+ -ms-user-select: none;
916
+ -moz-user-select: none;
917
+ -webkit-user-select: none;
918
+ user-select: none;
919
+ cursor: text;
920
+ }
921
+
922
+ .ace_content {
923
+ position: absolute;
924
+ box-sizing: border-box;
925
+ min-width: 100%;
926
+ contain: style size layout;
927
+ font-variant-ligatures: no-common-ligatures;
928
+ }
929
+ .ace_invisible {
930
+ font-variant-ligatures: none;
931
+ }
932
+
933
+ .ace_keyboard-focus:focus {
934
+ box-shadow: inset 0 0 0 2px #5E9ED6;
935
+ outline: none;
936
+ }
937
+
938
+ .ace_dragging .ace_scroller:before{
939
+ position: absolute;
940
+ top: 0;
941
+ left: 0;
942
+ right: 0;
943
+ bottom: 0;
944
+ content: '';
945
+ background: rgba(250, 250, 250, 0.01);
946
+ z-index: 1000;
947
+ }
948
+ .ace_dragging.ace_dark .ace_scroller:before{
949
+ background: rgba(0, 0, 0, 0.01);
950
+ }
951
+
952
+ .ace_gutter {
953
+ position: absolute;
954
+ overflow : hidden;
955
+ width: auto;
956
+ top: 0;
957
+ bottom: 0;
958
+ left: 0;
959
+ cursor: default;
960
+ z-index: 4;
961
+ -ms-user-select: none;
962
+ -moz-user-select: none;
963
+ -webkit-user-select: none;
964
+ user-select: none;
965
+ contain: style size layout;
966
+ }
967
+
968
+ .ace_gutter-active-line {
969
+ position: absolute;
970
+ left: 0;
971
+ right: 0;
972
+ }
973
+
974
+ .ace_scroller.ace_scroll-left:after {
975
+ content: "";
976
+ position: absolute;
977
+ top: 0;
978
+ right: 0;
979
+ bottom: 0;
980
+ left: 0;
981
+ box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
982
+ pointer-events: none;
983
+ }
984
+
985
+ .ace_gutter-cell, .ace_gutter-cell_svg-icons {
986
+ position: absolute;
987
+ top: 0;
988
+ left: 0;
989
+ right: 0;
990
+ padding-left: 19px;
991
+ padding-right: 6px;
992
+ background-repeat: no-repeat;
993
+ }
994
+
995
+ .ace_gutter-cell_svg-icons .ace_gutter_annotation {
996
+ margin-left: -14px;
997
+ float: left;
998
+ }
999
+
1000
+ .ace_gutter-cell .ace_gutter_annotation {
1001
+ margin-left: -19px;
1002
+ float: left;
1003
+ }
1004
+
1005
+ .ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold, .ace_gutter-cell.ace_security, .ace_icon.ace_security, .ace_icon.ace_security_fold {
1006
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");
1007
+ background-repeat: no-repeat;
1008
+ background-position: 2px center;
1009
+ }
1010
+
1011
+ .ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {
1012
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");
1013
+ background-repeat: no-repeat;
1014
+ background-position: 2px center;
1015
+ }
1016
+
1017
+ .ace_gutter-cell.ace_info, .ace_icon.ace_info, .ace_gutter-cell.ace_hint, .ace_icon.ace_hint {
1018
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");
1019
+ background-repeat: no-repeat;
1020
+ background-position: 2px center;
1021
+ }
1022
+
1023
+ .ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info, .ace_dark .ace_gutter-cell.ace_hint, .ace_dark .ace_icon.ace_hint {
1024
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");
1025
+ }
1026
+
1027
+ .ace_icon_svg.ace_error {
1028
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");
1029
+ background-color: crimson;
1030
+ }
1031
+ .ace_icon_svg.ace_security {
1032
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0iZGFya29yYW5nZSIgZmlsbD0ibm9uZSIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iPgogICAgICAgIDxwYXRoIGNsYXNzPSJzdHJva2UtbGluZWpvaW4tcm91bmQiIGQ9Ik04IDE0LjgzMDdDOCAxNC44MzA3IDIgMTIuOTA0NyAyIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOEM3Ljk4OTk5IDEuMzQ5MTggMTAuNjkgMy4yNjU0OCAxNCAzLjI2NTQ4VjguMDg5OTJDMTQgMTIuOTA0NyA4IDE0LjgzMDcgOCAxNC44MzA3WiIvPgogICAgICAgIDxwYXRoIGQ9Ik0yIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOCIvPgogICAgICAgIDxwYXRoIGQ9Ik0xMy45OSA4LjA4OTkyVjMuMjY1NDhDMTAuNjggMy4yNjU0OCA4IDEuMzQ5MTggOCAxLjM0OTE4Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggNFY5Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggMTBWMTIiLz4KICAgIDwvZz4KPC9zdmc+");
1033
+ background-color: crimson;
1034
+ }
1035
+ .ace_icon_svg.ace_warning {
1036
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");
1037
+ background-color: darkorange;
1038
+ }
1039
+ .ace_icon_svg.ace_info {
1040
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");
1041
+ background-color: royalblue;
1042
+ }
1043
+ .ace_icon_svg.ace_hint {
1044
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0ic2lsdmVyIiBmaWxsPSJub25lIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTYgMTRIMTAiLz4KICAgICAgICA8cGF0aCBkPSJNOCAxMUg5QzkgOS40NzAwMiAxMiA4LjU0MDAyIDEyIDUuNzYwMDJDMTIuMDIgNC40MDAwMiAxMS4zOSAzLjM2MDAyIDEwLjQzIDIuNjcwMDJDOSAxLjY0MDAyIDcuMDAwMDEgMS42NDAwMiA1LjU3MDAxIDIuNjcwMDJDNC42MTAwMSAzLjM2MDAyIDMuOTggNC40MDAwMiA0IDUuNzYwMDJDNCA4LjU0MDAyIDcuMDAwMDEgOS40NzAwMiA3LjAwMDAxIDExSDhaIi8+CiAgICA8L2c+Cjwvc3ZnPg==");
1045
+ background-color: silver;
1046
+ }
1047
+
1048
+ .ace_icon_svg.ace_error_fold {
1049
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
1050
+ background-color: crimson;
1051
+ }
1052
+ .ace_icon_svg.ace_security_fold {
1053
+ -webkit-mask-image: url("data:image/svg+xml;base64,CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTcgMTQiIGZpbGw9Im5vbmUiPgogICAgPHBhdGggZD0iTTEwLjAwMDEgMTMuNjk5MkMxMC4wMDAxIDEzLjY5OTIgMTEuOTI0MSAxMy40NzYzIDEzIDEyLjY5OTJDMTQuNDEzOSAxMS42NzgxIDE2IDEwLjUgMTYuMTI1MSA2LjgxMTI2VjIuNTg5ODdDMTYuMTI1MSAyLjU0NzY4IDE2LjEyMjEgMi41MDYxOSAxNi4xMTY0IDIuNDY1NTlWMS43MTQ4NUgxNS4yNDE0TDE1LjIzMDcgMS43MTQ4NEwxNC42MjUxIDEuNjk5MjJWNi44MTEyM0MxNC42MjUxIDguNTEwNjEgMTQuNjI1MSA5LjQ2NDYxIDEyLjc4MjQgMTEuNzIxQzEyLjE1ODYgMTIuNDg0OCAxMC4wMDAxIDEzLjY5OTIgMTAuMDAwMSAxMy42OTkyWiIgZmlsbD0iY3JpbXNvbiIgc3Ryb2tlLXdpZHRoPSIyIi8+CiAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTcuMzM2MDkgMC4zNjc0NzVDNy4wMzIxNCAwLjE1MjY1MiA2LjYyNTQ4IDAuMTUzNjE0IDYuMzIyNTMgMC4zNjk5OTdMNi4zMDg2OSAwLjM3OTU1NEM2LjI5NTUzIDAuMzg4NTg4IDYuMjczODggMC40MDMyNjYgNi4yNDQxNyAwLjQyMjc4OUM2LjE4NDcxIDAuNDYxODYgNi4wOTMyMSAwLjUyMDE3MSA1Ljk3MzEzIDAuNTkxMzczQzUuNzMyNTEgMC43MzQwNTkgNS4zNzk5IDAuOTI2ODY0IDQuOTQyNzkgMS4xMjAwOUM0LjA2MTQ0IDEuNTA5NyAyLjg3NTQxIDEuODgzNzcgMS41ODk4NCAxLjg4Mzc3SDAuNzE0ODQ0VjIuNzU4NzdWNi45ODAxNUMwLjcxNDg0NCA5LjQ5Mzc0IDIuMjg4NjYgMTEuMTk3MyAzLjcwMjU0IDEyLjIxODVDNC40MTg0NSAxMi43MzU1IDUuMTI4NzQgMTMuMTA1MyA1LjY1NzMzIDEzLjM0NTdDNS45MjI4NCAxMy40NjY0IDYuMTQ1NjYgMTMuNTU1OSA2LjMwNDY1IDEzLjYxNjFDNi4zODQyMyAxMy42NDYyIDYuNDQ4MDUgMTMuNjY5IDYuNDkzNDkgMTMuNjg0OEM2LjUxNjIyIDEzLjY5MjcgNi41MzQzOCAxMy42OTg5IDYuNTQ3NjQgMTMuNzAzM0w2LjU2MzgyIDEzLjcwODdMNi41NjkwOCAxMy43MTA0TDYuNTcwOTkgMTMuNzExTDYuODM5ODQgMTMuNzUzM0w2LjU3MjQyIDEzLjcxMTVDNi43NDYzMyAxMy43NjczIDYuOTMzMzUgMTMuNzY3MyA3LjEwNzI3IDEzLjcxMTVMNy4xMDg3IDEzLjcxMUw3LjExMDYxIDEzLjcxMDRMNy4xMTU4NyAxMy43MDg3TDcuMTMyMDUgMTMuNzAzM0M3LjE0NTMxIDEzLjY5ODkgNy4xNjM0NiAxMy42OTI3IDcuMTg2MTkgMTMuNjg0OEM3LjIzMTY0IDEzLjY2OSA3LjI5NTQ2IDEzLjY0NjIgNy4zNzUwMyAxMy42MTYxQzcuNTM0MDMgMTMuNTU1OSA3Ljc1Njg1IDEzLjQ2NjQgOC4wMjIzNiAxMy4zNDU3QzguNTUwOTUgMTMuMTA1MyA5LjI2MTIzIDEyLjczNTUgOS45NzcxNSAxMi4yMTg1QzExLjM5MSAxMS4xOTczIDEyLjk2NDggOS40OTM3NyAxMi45NjQ4IDYuOTgwMThWMi43NTg4QzEyLjk2NDggMi43MTY2IDEyLjk2MTkgMi42NzUxMSAxMi45NTYxIDIuNjM0NTFWMS44ODM3N0gxMi4wODExQzEyLjA3NzUgMS44ODM3NyAxMi4wNzQgMS44ODM3NyAxMi4wNzA0IDEuODgzNzdDMTAuNzk3OSAxLjg4MDA0IDkuNjE5NjIgMS41MTEwMiA4LjczODk0IDEuMTI0ODZDOC43MzUzNCAxLjEyMzI3IDguNzMxNzQgMS4xMjE2OCA4LjcyODE0IDEuMTIwMDlDOC4yOTEwMyAwLjkyNjg2NCA3LjkzODQyIDAuNzM0MDU5IDcuNjk3NzkgMC41OTEzNzNDNy41Nzc3MiAwLjUyMDE3MSA3LjQ4NjIyIDAuNDYxODYgNy40MjY3NiAwLjQyMjc4OUM3LjM5NzA1IDAuNDAzMjY2IDcuMzc1MzkgMC4zODg1ODggNy4zNjIyNCAwLjM3OTU1NEw3LjM0ODk2IDAuMzcwMzVDNy4zNDg5NiAwLjM3MDM1IDcuMzQ4NDcgMC4zNzAwMiA3LjM0NTYzIDAuMzc0MDU0TDcuMzM3NzkgMC4zNjg2NTlMNy4zMzYwOSAwLjM2NzQ3NVpNOC4wMzQ3MSAyLjcyNjkxQzguODYwNCAzLjA5MDYzIDkuOTYwNjYgMy40NjMwOSAxMS4yMDYxIDMuNTg5MDdWNi45ODAxNUgxMS4yMTQ4QzExLjIxNDggOC42Nzk1MyAxMC4xNjM3IDkuOTI1MDcgOC45NTI1NCAxMC43OTk4QzguMzU1OTUgMTEuMjMwNiA3Ljc1Mzc0IDExLjU0NTQgNy4yOTc5NiAxMS43NTI3QzcuMTE2NzEgMTEuODM1MSA2Ljk2MDYyIDExLjg5OTYgNi44Mzk4NCAxMS45NDY5QzYuNzE5MDYgMTEuODk5NiA2LjU2Mjk3IDExLjgzNTEgNi4zODE3MyAxMS43NTI3QzUuOTI1OTUgMTEuNTQ1NCA1LjMyMzczIDExLjIzMDYgNC43MjcxNSAxMC43OTk4QzMuNTE2MDMgOS45MjUwNyAyLjQ2NDg0IDguNjc5NTUgMi40NjQ4NCA2Ljk4MDE4VjMuNTg5MDlDMy43MTczOCAzLjQ2MjM5IDQuODIzMDggMy4wODYzOSA1LjY1MDMzIDIuNzIwNzFDNi4xNDIyOCAyLjUwMzI0IDYuNTQ0ODUgMi4yODUzNyA2LjgzMjU0IDIuMTE2MjRDNy4xMjE4MSAyLjI4NTM1IDcuNTI3IDIuNTAzNTIgOC4wMjE5NiAyLjcyMTMxQzguMDI2MiAyLjcyMzE3IDguMDMwNDUgMi43MjUwNCA4LjAzNDcxIDIuNzI2OTFaTTUuOTY0ODQgMy40MDE0N1Y3Ljc3NjQ3SDcuNzE0ODRWMy40MDE0N0g1Ljk2NDg0Wk01Ljk2NDg0IDEwLjQwMTVWOC42NTE0N0g3LjcxNDg0VjEwLjQwMTVINS45NjQ4NFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
1054
+ background-color: crimson;
1055
+ }
1056
+ .ace_icon_svg.ace_warning_fold {
1057
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");
1058
+ background-color: darkorange;
1059
+ }
1060
+
1061
+ .ace_scrollbar {
1062
+ contain: strict;
1063
+ position: absolute;
1064
+ right: 0;
1065
+ bottom: 0;
1066
+ z-index: 6;
1067
+ }
1068
+
1069
+ .ace_scrollbar-inner {
1070
+ position: absolute;
1071
+ cursor: text;
1072
+ left: 0;
1073
+ top: 0;
1074
+ }
1075
+
1076
+ .ace_scrollbar-v{
1077
+ overflow-x: hidden;
1078
+ overflow-y: scroll;
1079
+ top: 0;
1080
+ }
1081
+
1082
+ .ace_scrollbar-h {
1083
+ overflow-x: scroll;
1084
+ overflow-y: hidden;
1085
+ left: 0;
1086
+ }
1087
+
1088
+ .ace_print-margin {
1089
+ position: absolute;
1090
+ height: 100%;
1091
+ }
1092
+
1093
+ .ace_text-input {
1094
+ position: absolute;
1095
+ z-index: 0;
1096
+ width: 0.5em;
1097
+ height: 1em;
1098
+ opacity: 0;
1099
+ background: transparent;
1100
+ -moz-appearance: none;
1101
+ appearance: none;
1102
+ border: none;
1103
+ resize: none;
1104
+ outline: none;
1105
+ overflow: hidden;
1106
+ font: inherit;
1107
+ padding: 0 1px;
1108
+ margin: 0 -1px;
1109
+ contain: strict;
1110
+ -ms-user-select: text;
1111
+ -moz-user-select: text;
1112
+ -webkit-user-select: text;
1113
+ user-select: text;
1114
+ /*with \`pre-line\` chrome inserts &nbsp; instead of space*/
1115
+ white-space: pre!important;
1116
+ }
1117
+ .ace_text-input.ace_composition {
1118
+ background: transparent;
1119
+ color: inherit;
1120
+ z-index: 1000;
1121
+ opacity: 1;
1122
+ }
1123
+ .ace_composition_placeholder { color: transparent }
1124
+ .ace_composition_marker {
1125
+ border-bottom: 1px solid;
1126
+ position: absolute;
1127
+ border-radius: 0;
1128
+ margin-top: 1px;
1129
+ }
1130
+
1131
+ [ace_nocontext=true] {
1132
+ transform: none!important;
1133
+ filter: none!important;
1134
+ clip-path: none!important;
1135
+ mask : none!important;
1136
+ contain: none!important;
1137
+ perspective: none!important;
1138
+ mix-blend-mode: initial!important;
1139
+ z-index: auto;
1140
+ }
1141
+
1142
+ .ace_layer {
1143
+ z-index: 1;
1144
+ position: absolute;
1145
+ overflow: hidden;
1146
+ /* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/
1147
+ word-wrap: normal;
1148
+ white-space: pre;
1149
+ height: 100%;
1150
+ width: 100%;
1151
+ box-sizing: border-box;
1152
+ /* setting pointer-events: auto; on node under the mouse, which changes
1153
+ during scroll, will break mouse wheel scrolling in Safari */
1154
+ pointer-events: none;
1155
+ }
1156
+
1157
+ .ace_gutter-layer {
1158
+ position: relative;
1159
+ width: auto;
1160
+ text-align: right;
1161
+ pointer-events: auto;
1162
+ height: 1000000px;
1163
+ contain: style size layout;
1164
+ }
1165
+
1166
+ .ace_text-layer {
1167
+ font: inherit !important;
1168
+ position: absolute;
1169
+ height: 1000000px;
1170
+ width: 1000000px;
1171
+ contain: style size layout;
1172
+ }
1173
+
1174
+ .ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {
1175
+ contain: style size layout;
1176
+ position: absolute;
1177
+ top: 0;
1178
+ left: 0;
1179
+ right: 0;
1180
+ }
1181
+
1182
+ .ace_hidpi .ace_text-layer,
1183
+ .ace_hidpi .ace_gutter-layer,
1184
+ .ace_hidpi .ace_content,
1185
+ .ace_hidpi .ace_gutter {
1186
+ contain: strict;
1187
+ }
1188
+ .ace_hidpi .ace_text-layer > .ace_line,
1189
+ .ace_hidpi .ace_text-layer > .ace_line_group {
1190
+ contain: strict;
1191
+ }
1192
+
1193
+ .ace_cjk {
1194
+ display: inline-block;
1195
+ text-align: center;
1196
+ }
1197
+
1198
+ .ace_cursor-layer {
1199
+ z-index: 4;
1200
+ }
1201
+
1202
+ .ace_cursor {
1203
+ z-index: 4;
1204
+ position: absolute;
1205
+ box-sizing: border-box;
1206
+ border-left: 2px solid;
1207
+ /* workaround for smooth cursor repaintng whole screen in chrome */
1208
+ transform: translatez(0);
1209
+ }
1210
+
1211
+ .ace_multiselect .ace_cursor {
1212
+ border-left-width: 1px;
1213
+ }
1214
+
1215
+ .ace_slim-cursors .ace_cursor {
1216
+ border-left-width: 1px;
1217
+ }
1218
+
1219
+ .ace_overwrite-cursors .ace_cursor {
1220
+ border-left-width: 0;
1221
+ border-bottom: 1px solid;
1222
+ }
1223
+
1224
+ .ace_hidden-cursors .ace_cursor {
1225
+ opacity: 0.2;
1226
+ }
1227
+
1228
+ .ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {
1229
+ opacity: 0;
1230
+ }
1231
+
1232
+ .ace_smooth-blinking .ace_cursor {
1233
+ transition: opacity 0.18s;
1234
+ }
1235
+
1236
+ .ace_animate-blinking .ace_cursor {
1237
+ animation-duration: 1000ms;
1238
+ animation-timing-function: step-end;
1239
+ animation-name: blink-ace-animate;
1240
+ animation-iteration-count: infinite;
1241
+ }
1242
+
1243
+ .ace_animate-blinking.ace_smooth-blinking .ace_cursor {
1244
+ animation-duration: 1000ms;
1245
+ animation-timing-function: ease-in-out;
1246
+ animation-name: blink-ace-animate-smooth;
1247
+ }
1248
+
1249
+ @keyframes blink-ace-animate {
1250
+ from, to { opacity: 1; }
1251
+ 60% { opacity: 0; }
1252
+ }
1253
+
1254
+ @keyframes blink-ace-animate-smooth {
1255
+ from, to { opacity: 1; }
1256
+ 45% { opacity: 1; }
1257
+ 60% { opacity: 0; }
1258
+ 85% { opacity: 0; }
1259
+ }
1260
+
1261
+ .ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {
1262
+ position: absolute;
1263
+ z-index: 3;
1264
+ }
1265
+
1266
+ .ace_marker-layer .ace_selection {
1267
+ position: absolute;
1268
+ z-index: 5;
1269
+ }
1270
+
1271
+ .ace_marker-layer .ace_bracket {
1272
+ position: absolute;
1273
+ z-index: 6;
1274
+ }
1275
+
1276
+ .ace_marker-layer .ace_error_bracket {
1277
+ position: absolute;
1278
+ border-bottom: 1px solid #DE5555;
1279
+ border-radius: 0;
1280
+ }
1281
+
1282
+ .ace_marker-layer .ace_active-line {
1283
+ position: absolute;
1284
+ z-index: 2;
1285
+ }
1286
+
1287
+ .ace_marker-layer .ace_selected-word {
1288
+ position: absolute;
1289
+ z-index: 4;
1290
+ box-sizing: border-box;
1291
+ }
1292
+
1293
+ .ace_line .ace_fold {
1294
+ box-sizing: border-box;
1295
+
1296
+ display: inline-block;
1297
+ height: 11px;
1298
+ margin-top: -2px;
1299
+ vertical-align: middle;
1300
+
1301
+ background-image:
1302
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
1303
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");
1304
+ background-repeat: no-repeat, repeat-x;
1305
+ background-position: center center, top left;
1306
+ color: transparent;
1307
+
1308
+ border: 1px solid black;
1309
+ border-radius: 2px;
1310
+
1311
+ cursor: pointer;
1312
+ pointer-events: auto;
1313
+ }
1314
+
1315
+ .ace_dark .ace_fold {
1316
+ }
1317
+
1318
+ .ace_fold:hover{
1319
+ background-image:
1320
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
1321
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");
1322
+ }
1323
+
1324
+ .ace_tooltip {
1325
+ background-color: #f5f5f5;
1326
+ border: 1px solid gray;
1327
+ border-radius: 1px;
1328
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
1329
+ color: black;
1330
+ padding: 3px 4px;
1331
+ position: absolute;
1332
+ z-index: 999999;
1333
+ box-sizing: border-box;
1334
+ cursor: default;
1335
+ white-space: pre-wrap;
1336
+ word-wrap: break-word;
1337
+ line-height: normal;
1338
+ font-style: normal;
1339
+ font-weight: normal;
1340
+ letter-spacing: normal;
1341
+ pointer-events: none;
1342
+ overflow: auto;
1343
+ max-width: min(33em, 66vw);
1344
+ overscroll-behavior: contain;
1345
+ }
1346
+ .ace_tooltip pre {
1347
+ white-space: pre-wrap;
1348
+ }
1349
+
1350
+ .ace_tooltip.ace_dark {
1351
+ background-color: #636363;
1352
+ color: #fff;
1353
+ }
1354
+
1355
+ .ace_tooltip:focus {
1356
+ outline: 1px solid #5E9ED6;
1357
+ }
1358
+
1359
+ .ace_icon {
1360
+ display: inline-block;
1361
+ width: 18px;
1362
+ vertical-align: top;
1363
+ }
1364
+
1365
+ .ace_icon_svg {
1366
+ display: inline-block;
1367
+ width: 12px;
1368
+ vertical-align: top;
1369
+ -webkit-mask-repeat: no-repeat;
1370
+ -webkit-mask-size: 12px;
1371
+ -webkit-mask-position: center;
1372
+ }
1373
+
1374
+ .ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {
1375
+ padding-right: 13px;
1376
+ }
1377
+
1378
+ .ace_fold-widget, .ace_custom-widget {
1379
+ box-sizing: border-box;
1380
+
1381
+ margin: 0 -12px 0 1px;
1382
+ display: none;
1383
+ width: 11px;
1384
+ vertical-align: top;
1385
+
1386
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");
1387
+ background-repeat: no-repeat;
1388
+ background-position: center;
1389
+
1390
+ border-radius: 3px;
1391
+
1392
+ border: 1px solid transparent;
1393
+ cursor: pointer;
1394
+ pointer-events: auto;
1395
+ }
1396
+
1397
+ .ace_custom-widget {
1398
+ background: none;
1399
+ }
1400
+
1401
+ .ace_folding-enabled .ace_fold-widget {
1402
+ display: inline-block;
1403
+ }
1404
+
1405
+ .ace_fold-widget.ace_end {
1406
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");
1407
+ }
1408
+
1409
+ .ace_fold-widget.ace_closed {
1410
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");
1411
+ }
1412
+
1413
+ .ace_fold-widget:hover {
1414
+ border: 1px solid rgba(0, 0, 0, 0.3);
1415
+ background-color: rgba(255, 255, 255, 0.2);
1416
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
1417
+ }
1418
+
1419
+ .ace_fold-widget:active {
1420
+ border: 1px solid rgba(0, 0, 0, 0.4);
1421
+ background-color: rgba(0, 0, 0, 0.05);
1422
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
1423
+ }
1424
+ /**
1425
+ * Dark version for fold widgets
1426
+ */
1427
+ .ace_dark .ace_fold-widget {
1428
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");
1429
+ }
1430
+ .ace_dark .ace_fold-widget.ace_end {
1431
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");
1432
+ }
1433
+ .ace_dark .ace_fold-widget.ace_closed {
1434
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");
1435
+ }
1436
+ .ace_dark .ace_fold-widget:hover {
1437
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
1438
+ background-color: rgba(255, 255, 255, 0.1);
1439
+ }
1440
+ .ace_dark .ace_fold-widget:active {
1441
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
1442
+ }
1443
+
1444
+ .ace_inline_button {
1445
+ border: 1px solid lightgray;
1446
+ display: inline-block;
1447
+ margin: -1px 8px;
1448
+ padding: 0 5px;
1449
+ pointer-events: auto;
1450
+ cursor: pointer;
1451
+ }
1452
+ .ace_inline_button:hover {
1453
+ border-color: gray;
1454
+ background: rgba(200,200,200,0.2);
1455
+ display: inline-block;
1456
+ pointer-events: auto;
1457
+ }
1458
+
1459
+ .ace_fold-widget.ace_invalid {
1460
+ background-color: #FFB4B4;
1461
+ border-color: #DE5555;
1462
+ }
1463
+
1464
+ .ace_fade-fold-widgets .ace_fold-widget {
1465
+ transition: opacity 0.4s ease 0.05s;
1466
+ opacity: 0;
1467
+ }
1468
+
1469
+ .ace_fade-fold-widgets:hover .ace_fold-widget {
1470
+ transition: opacity 0.05s ease 0.05s;
1471
+ opacity:1;
1472
+ }
1473
+
1474
+ .ace_underline {
1475
+ text-decoration: underline;
1476
+ }
1477
+
1478
+ .ace_bold {
1479
+ font-weight: bold;
1480
+ }
1481
+
1482
+ .ace_nobold .ace_bold {
1483
+ font-weight: normal;
1484
+ }
1485
+
1486
+ .ace_italic {
1487
+ font-style: italic;
1488
+ }
1489
+
1490
+
1491
+ .ace_error-marker {
1492
+ background-color: rgba(255, 0, 0,0.2);
1493
+ position: absolute;
1494
+ z-index: 9;
1495
+ }
1496
+
1497
+ .ace_highlight-marker {
1498
+ background-color: rgba(255, 255, 0,0.2);
1499
+ position: absolute;
1500
+ z-index: 8;
1501
+ }
1502
+
1503
+ .ace_mobile-menu {
1504
+ position: absolute;
1505
+ line-height: 1.5;
1506
+ border-radius: 4px;
1507
+ -ms-user-select: none;
1508
+ -moz-user-select: none;
1509
+ -webkit-user-select: none;
1510
+ user-select: none;
1511
+ background: white;
1512
+ box-shadow: 1px 3px 2px grey;
1513
+ border: 1px solid #dcdcdc;
1514
+ color: black;
1515
+ }
1516
+ .ace_dark > .ace_mobile-menu {
1517
+ background: #333;
1518
+ color: #ccc;
1519
+ box-shadow: 1px 3px 2px grey;
1520
+ border: 1px solid #444;
1521
+
1522
+ }
1523
+ .ace_mobile-button {
1524
+ padding: 2px;
1525
+ cursor: pointer;
1526
+ overflow: hidden;
1527
+ }
1528
+ .ace_mobile-button:hover {
1529
+ background-color: #eee;
1530
+ opacity:1;
1531
+ }
1532
+ .ace_mobile-button:active {
1533
+ background-color: #ddd;
1534
+ }
1535
+
1536
+ .ace_placeholder {
1537
+ position: relative;
1538
+ font-family: arial;
1539
+ transform: scale(0.9);
1540
+ transform-origin: left;
1541
+ white-space: pre;
1542
+ opacity: 0.7;
1543
+ margin: 0 10px;
1544
+ z-index: 1;
1545
+ }
1546
+
1547
+ .ace_ghost_text {
1548
+ opacity: 0.5;
1549
+ font-style: italic;
1550
+ }
1551
+
1552
+ .ace_ghost_text_container > div {
1553
+ white-space: pre;
1554
+ }
1555
+
1556
+ .ghost_text_line_wrapped::after {
1557
+ content: "↩";
1558
+ position: absolute;
1559
+ }
1560
+
1561
+ .ace_lineWidgetContainer.ace_ghost_text {
1562
+ margin: 0px 4px
1563
+ }
1564
+
1565
+ .ace_screenreader-only {
1566
+ position:absolute;
1567
+ left:-10000px;
1568
+ top:auto;
1569
+ width:1px;
1570
+ height:1px;
1571
+ overflow:hidden;
1572
+ }
1573
+
1574
+ .ace_hidden_token {
1575
+ display: none;
1576
+ }`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(n,r,i){var h=n("../lib/dom"),f=n("../lib/oop"),g=n("../lib/event_emitter").EventEmitter,s=function(){function p(o,a){this.renderer=a,this.pixelRatio=1,this.maxHeight=a.layerConfig.maxHeight,this.lineHeight=a.layerConfig.lineHeight,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,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)"},this.setScrollBarV(o)}return p.prototype.$createCanvas=function(){this.canvas=h.createElement("canvas"),this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7",this.canvas.style.position="absolute"},p.prototype.setScrollBarV=function(o){this.$createCanvas(),this.scrollbarV=o,o.element.appendChild(this.canvas),this.setDimensions()},p.prototype.$updateDecorators=function(o){if(typeof this.canvas.getContext!="function")return;var a=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;this.setDimensions(o);var c=this.canvas.getContext("2d");function u(x,_){return x.priority<_.priority?-1:x.priority>_.priority?1:0}var l=this.renderer.session.$annotations;if(c.clearRect(0,0,this.canvas.width,this.canvas.height),l){var d={info:1,warning:2,error:3};l.forEach(function(x){x.priority=d[x.type]||null}),l=l.sort(u);for(var m=0;m<l.length;m++){var v=l[m].row,y=this.getVerticalOffsetForRow(v),C=y+this.lineHeight,$=Math.round(this.heightRatio*y),S=Math.round(this.heightRatio*C),b=Math.round(($+S)/2),k=S-b;k<this.halfMinDecorationHeight&&(k=this.halfMinDecorationHeight),b-k<0&&(b=k),b+k>this.canvasHeight&&(b=this.canvasHeight-k);var R=b-k,E=b+k,L=E-R;c.fillStyle=a[l[m].type]||null,c.fillRect(0,R,Math.round(this.oneZoneWidth-1),L)}}var O=this.renderer.session.selection.getCursor();if(O){var M=Math.round(this.getVerticalOffsetForRow(O.row)*this.heightRatio);c.fillStyle="rgba(0, 0, 0, 0.5)",c.fillRect(0,M,this.canvasWidth,2)}},p.prototype.getVerticalOffsetForRow=function(o){o=o|0;var a=this.renderer.session.documentToScreenRow(o,0)*this.lineHeight;return a},p.prototype.setDimensions=function(o){o=o||this.renderer.layerConfig,this.maxHeight=o.maxHeight,this.lineHeight=o.lineHeight,this.canvasHeight=o.height,this.canvasWidth=this.scrollbarV.width||this.canvasWidth,this.setZoneWidth(),this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.maxHeight<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight},p.prototype.setZoneWidth=function(){this.oneZoneWidth=this.canvasWidth},p.prototype.destroy=function(){this.canvas.parentNode.removeChild(this.canvas)},p}();f.implement(s.prototype,g),r.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","ace/layer/text_util"],function(n,r,i){var h=n("./lib/oop"),f=n("./lib/dom"),g=n("./lib/lang"),s=n("./config"),p=n("./layer/gutter").Gutter,o=n("./layer/marker").Marker,a=n("./layer/text").Text,c=n("./layer/cursor").Cursor,u=n("./scrollbar").HScrollBar,l=n("./scrollbar").VScrollBar,d=n("./scrollbar_custom").HScrollBar,m=n("./scrollbar_custom").VScrollBar,v=n("./renderloop").RenderLoop,y=n("./layer/font_metrics").FontMetrics,C=n("./lib/event_emitter").EventEmitter,$=n("./css/editor-css"),S=n("./layer/decorators").Decorator,b=n("./lib/useragent"),k=n("./layer/text_util").isTextToken;f.importCssString($,"ace_editor.css",!1);var R=function(){function E(L,O){var M=this;this.container=L||f.createElement("div"),f.addCssClass(this.container,"ace_editor"),f.HI_DPI&&f.addCssClass(this.container,"ace_hidpi"),this.setTheme(O),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","true"),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 p(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new o(this.content);var x=this.$textLayer=new a(this.content);this.canvas=x.element,this.$markerFront=new o(this.content),this.$cursorLayer=new c(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new l(this.container,this),this.scrollBarH=new u(this.container,this),this.scrollBarV.on("scroll",function(_){M.$scrollAnimation||M.session.setScrollTop(_.data-M.scrollMargin.top)}),this.scrollBarH.on("scroll",function(_){M.$scrollAnimation||M.session.setScrollLeft(_.data-M.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new y(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(_){M.updateCharacterSize(),M.onResize(!0,M.gutterWidth,M.$size.width,M.$size.height),M._signal("changeCharacterSize",_)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!b.isIOS,this.$loop=new v(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),s.resetOptions(this),s._signal("renderer",this)}return E.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")},E.prototype.setSession=function(L){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=L,L&&this.scrollMargin.top&&L.getScrollTop()<=0&&L.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(L),this.$markerBack.setSession(L),this.$markerFront.setSession(L),this.$gutterLayer.setSession(L),this.$textLayer.setSession(L),L&&(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))},E.prototype.updateLines=function(L,O,M){if(O===void 0&&(O=1/0),this.$changedLines?(this.$changedLines.firstRow>L&&(this.$changedLines.firstRow=L),this.$changedLines.lastRow<O&&(this.$changedLines.lastRow=O)):this.$changedLines={firstRow:L,lastRow:O},this.$changedLines.lastRow<this.layerConfig.firstRow)if(M)this.$changedLines.lastRow=this.layerConfig.lastRow;else return;this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},E.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},E.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},E.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},E.prototype.updateFull=function(L){L?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},E.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},E.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},E.prototype.onResize=function(L,O,M,x){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=L?1:0;var _=this.container;x||(x=_.clientHeight||_.scrollHeight),!x&&this.$maxLines&&this.lineHeight>1&&(!_.style.height||_.style.height=="0px")&&(_.style.height="1px",x=_.clientHeight||_.scrollHeight),M||(M=_.clientWidth||_.scrollWidth);var w=this.$updateCachedSize(L,O,M,x);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!M&&!x)return this.resizing=0;L&&(this.$gutterLayer.$padding=null),L?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)}},E.prototype.$updateCachedSize=function(L,O,M,x){x-=this.$extraHeight||0;var _=0,w=this.$size,A={width:w.width,height:w.height,scrollerHeight:w.scrollerHeight,scrollerWidth:w.scrollerWidth};if(x&&(L||w.height!=x)&&(w.height=x,_|=this.CHANGE_SIZE,w.scrollerHeight=w.height,this.$horizScroll&&(w.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(w.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",_=_|this.CHANGE_SCROLL),M&&(L||w.width!=M)){_|=this.CHANGE_SIZE,w.width=M,O==null&&(O=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=O,f.setStyle(this.scrollBarH.element.style,"left",O+"px"),f.setStyle(this.scroller.style,"left",O+this.margin.left+"px"),w.scrollerWidth=Math.max(0,M-O-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()||L)&&(_|=this.CHANGE_FULL)}return w.$dirty=!M||!x,_&&this._signal("resize",A),_},E.prototype.onGutterResize=function(L){var O=this.$showGutter?L:0;O!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,O,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()},E.prototype.adjustWrapLimit=function(){var L=this.$size.scrollerWidth-this.$padding*2,O=Math.floor(L/this.characterWidth);return this.session.adjustWrapLimit(O,this.$showPrintMargin&&this.$printMarginColumn)},E.prototype.setAnimatedScroll=function(L){this.setOption("animatedScroll",L)},E.prototype.getAnimatedScroll=function(){return this.$animatedScroll},E.prototype.setShowInvisibles=function(L){this.setOption("showInvisibles",L),this.session.$bidiHandler.setShowInvisibles(L)},E.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},E.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},E.prototype.setDisplayIndentGuides=function(L){this.setOption("displayIndentGuides",L)},E.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},E.prototype.setHighlightIndentGuides=function(L){this.setOption("highlightIndentGuides",L)},E.prototype.setShowPrintMargin=function(L){this.setOption("showPrintMargin",L)},E.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},E.prototype.setPrintMarginColumn=function(L){this.setOption("printMarginColumn",L)},E.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},E.prototype.getShowGutter=function(){return this.getOption("showGutter")},E.prototype.setShowGutter=function(L){return this.setOption("showGutter",L)},E.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},E.prototype.setFadeFoldWidgets=function(L){this.setOption("fadeFoldWidgets",L)},E.prototype.setHighlightGutterLine=function(L){this.setOption("highlightGutterLine",L)},E.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},E.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var L=f.createElement("div");L.className="ace_layer ace_print-margin-layer",this.$printMarginEl=f.createElement("div"),this.$printMarginEl.className="ace_print-margin",L.appendChild(this.$printMarginEl),this.content.insertBefore(L,this.content.firstChild)}var O=this.$printMarginEl.style;O.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",O.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},E.prototype.getContainerElement=function(){return this.container},E.prototype.getMouseEventTarget=function(){return this.scroller},E.prototype.getTextAreaContainer=function(){return this.container},E.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var L=this.textarea.style,O=this.$composition;if(!this.$keepTextAreaAtCursor&&!O){f.translate(this.textarea,-100,0);return}var M=this.$cursorLayer.$pixelPos;if(M){O&&O.markerRange&&(M=this.$cursorLayer.getPixelPosition(O.markerRange.start,!0));var x=this.layerConfig,_=M.top,w=M.left;_-=x.offset;var A=O&&O.useTextareaForIME||b.isMobile?this.lineHeight:1;if(_<0||_>x.height-A){f.translate(this.textarea,0,0);return}var T=1,I=this.$size.height-A;if(!O)_+=this.lineHeight;else if(O.useTextareaForIME){var N=this.textarea.value;T=this.characterWidth*this.session.$getStringScreenWidth(N)[0]}else _+=this.lineHeight+2;w-=this.scrollLeft,w>this.$size.scrollerWidth-T&&(w=this.$size.scrollerWidth-T),w+=this.gutterWidth+this.margin.left,f.setStyle(L,"height",A+"px"),f.setStyle(L,"width",T+"px"),f.translate(this.textarea,Math.min(w,this.$size.scrollerWidth-T),Math.min(_,I))}}},E.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},E.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},E.prototype.getLastFullyVisibleRow=function(){var L=this.layerConfig,O=L.lastRow,M=this.session.documentToScreenRow(O,0)*L.lineHeight;return M-this.session.getScrollTop()>L.height-L.lineHeight?O-1:O},E.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},E.prototype.setPadding=function(L){this.$padding=L,this.$textLayer.setPadding(L),this.$cursorLayer.setPadding(L),this.$markerFront.setPadding(L),this.$markerBack.setPadding(L),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},E.prototype.setScrollMargin=function(L,O,M,x){var _=this.scrollMargin;_.top=L|0,_.bottom=O|0,_.right=x|0,_.left=M|0,_.v=_.top+_.bottom,_.h=_.left+_.right,_.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-_.top),this.updateFull()},E.prototype.setMargin=function(L,O,M,x){var _=this.margin;_.top=L|0,_.bottom=O|0,_.right=x|0,_.left=M|0,_.v=_.top+_.bottom,_.h=_.left+_.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},E.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},E.prototype.setHScrollBarAlwaysVisible=function(L){this.setOption("hScrollBarAlwaysVisible",L)},E.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},E.prototype.setVScrollBarAlwaysVisible=function(L){this.setOption("vScrollBarAlwaysVisible",L)},E.prototype.$updateScrollBarV=function(){var L=this.layerConfig.maxHeight,O=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(L-=(O-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>L-O&&(L=this.scrollTop+O,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(L+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},E.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},E.prototype.freeze=function(){this.$frozen=!0},E.prototype.unfreeze=function(){this.$frozen=!1},E.prototype.$renderChanges=function(L,O){if(this.$changes&&(L|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!L&&!O){this.$changes|=L;return}if(this.$size.$dirty)return this.$changes|=L,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",L),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var M=this.layerConfig;if(L&this.CHANGE_FULL||L&this.CHANGE_SIZE||L&this.CHANGE_TEXT||L&this.CHANGE_LINES||L&this.CHANGE_SCROLL||L&this.CHANGE_H_SCROLL){if(L|=this.$computeLayerConfig()|this.$loop.clear(),M.firstRow!=this.layerConfig.firstRow&&M.firstRowScreen==this.layerConfig.firstRowScreen){var x=this.scrollTop+(M.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;x>0&&(this.scrollTop=x,L=L|this.CHANGE_SCROLL,L|=this.$computeLayerConfig()|this.$loop.clear())}M=this.layerConfig,this.$updateScrollBarV(),L&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),f.translate(this.content,-this.scrollLeft,-M.offset);var _=M.width+2*this.$padding+"px",w=M.minHeight+"px";f.setStyle(this.content.style,"width",_),f.setStyle(this.content.style,"height",w)}if(L&this.CHANGE_H_SCROLL&&(f.translate(this.content,-this.scrollLeft,-M.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),L&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(M),this.$showGutter&&this.$gutterLayer.update(M),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(M),this.$markerBack.update(M),this.$markerFront.update(M),this.$cursorLayer.update(M),this.$moveTextAreaToCursor(),this._signal("afterRender",L);return}if(L&this.CHANGE_SCROLL){this.$changedLines=null,L&this.CHANGE_TEXT||L&this.CHANGE_LINES?this.$textLayer.update(M):this.$textLayer.scrollLines(M),this.$showGutter&&(L&this.CHANGE_GUTTER||L&this.CHANGE_LINES?this.$gutterLayer.update(M):this.$gutterLayer.scrollLines(M)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(M),this.$markerBack.update(M),this.$markerFront.update(M),this.$cursorLayer.update(M),this.$moveTextAreaToCursor(),this._signal("afterRender",L);return}L&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(M),this.$showGutter&&this.$gutterLayer.update(M),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(M)):L&this.CHANGE_LINES?((this.$updateLines()||L&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(M),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(M)):L&this.CHANGE_TEXT||L&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(M),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(M)):L&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(M),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(M)),L&this.CHANGE_CURSOR&&(this.$cursorLayer.update(M),this.$moveTextAreaToCursor()),L&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(M),L&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(M),this._signal("afterRender",L)},E.prototype.$autosize=function(){var L=this.session.getScreenLength()*this.lineHeight,O=this.$maxLines*this.lineHeight,M=Math.min(O,Math.max((this.$minLines||1)*this.lineHeight,L))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(M+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&M>this.$maxPixelHeight&&(M=this.$maxPixelHeight);var x=M<=2*this.lineHeight,_=!x&&L>O;if(M!=this.desiredHeight||this.$size.height!=this.desiredHeight||_!=this.$vScroll){_!=this.$vScroll&&(this.$vScroll=_,this.scrollBarV.setVisible(_));var w=this.container.clientWidth;this.container.style.height=M+"px",this.$updateCachedSize(!0,this.$gutterWidth,w,M),this.desiredHeight=M,this._signal("autosize")}},E.prototype.$computeLayerConfig=function(){var L=this.session,O=this.$size,M=O.height<=2*this.lineHeight,x=this.session.getScreenLength(),_=x*this.lineHeight,w=this.$getLongestLine(),A=!M&&(this.$hScrollBarAlwaysVisible||O.scrollerWidth-w-2*this.$padding<0),T=this.$horizScroll!==A;T&&(this.$horizScroll=A,this.scrollBarH.setVisible(A));var I=this.$vScroll;this.$maxLines&&this.lineHeight>1&&(this.$autosize(),M=O.height<=2*this.lineHeight);var N=O.scrollerHeight+this.lineHeight,D=!this.$maxLines&&this.$scrollPastEnd?(O.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;_+=D;var F=this.scrollMargin;this.session.setScrollTop(Math.max(-F.top,Math.min(this.scrollTop,_-O.scrollerHeight+F.bottom))),this.session.setScrollLeft(Math.max(-F.left,Math.min(this.scrollLeft,w+2*this.$padding-O.scrollerWidth+F.right)));var H=!M&&(this.$vScrollBarAlwaysVisible||O.scrollerHeight-_+D<0||this.scrollTop>F.top),W=I!==H;W&&(this.$vScroll=H,this.scrollBarV.setVisible(H));var U=this.scrollTop%this.lineHeight,V=Math.ceil(N/this.lineHeight)-1,G=Math.max(0,Math.round((this.scrollTop-U)/this.lineHeight)),j=G+V,Z,X,Q=this.lineHeight;G=L.screenToDocumentRow(G,0);var le=L.getFoldLine(G);le&&(G=le.start.row),Z=L.documentToScreenRow(G,0),X=L.getRowLength(G)*Q,j=Math.min(L.screenToDocumentRow(j,0),L.getLength()-1),N=O.scrollerHeight+L.getRowLength(j)*Q+X,U=this.scrollTop-Z*Q,U<0&&Z>0&&(Z=Math.max(0,Z+Math.floor(U/Q)),U=this.scrollTop-Z*Q);var z=0;return(this.layerConfig.width!=w||T)&&(z=this.CHANGE_H_SCROLL),(T||W)&&(z|=this.$updateCachedSize(!0,this.gutterWidth,O.width,O.height),this._signal("scrollbarVisibilityChanged"),W&&(w=this.$getLongestLine())),this.layerConfig={width:w,padding:this.$padding,firstRow:G,firstRowScreen:Z,lastRow:j,lineHeight:Q,characterWidth:this.characterWidth,minHeight:N,maxHeight:_,offset:U,gutterOffset:Q?Math.max(0,Math.ceil((U+O.height-O.scrollerHeight)/Q)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(w-this.$padding),z},E.prototype.$updateLines=function(){if(this.$changedLines){var L=this.$changedLines.firstRow,O=this.$changedLines.lastRow;this.$changedLines=null;var M=this.layerConfig;if(!(L>M.lastRow+1)&&!(O<M.firstRow)){if(O===1/0){this.$showGutter&&this.$gutterLayer.update(M),this.$textLayer.update(M);return}return this.$textLayer.updateLines(M,L,O),!0}}},E.prototype.$getLongestLine=function(){var L=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(L+=1),this.$textLayer&&L>this.$textLayer.MAX_LINE_LENGTH&&(L=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(L*this.characterWidth))},E.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},E.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},E.prototype.addGutterDecoration=function(L,O){this.$gutterLayer.addGutterDecoration(L,O)},E.prototype.removeGutterDecoration=function(L,O){this.$gutterLayer.removeGutterDecoration(L,O)},E.prototype.updateBreakpoints=function(L){this._rows=L,this.$loop.schedule(this.CHANGE_GUTTER)},E.prototype.setAnnotations=function(L){this.$gutterLayer.setAnnotations(L),this.$loop.schedule(this.CHANGE_GUTTER)},E.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},E.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},E.prototype.showCursor=function(){this.$cursorLayer.showCursor()},E.prototype.scrollSelectionIntoView=function(L,O,M){this.scrollCursorIntoView(L,M),this.scrollCursorIntoView(O,M)},E.prototype.scrollCursorIntoView=function(L,O,M){if(this.$size.scrollerHeight!==0){var x=this.$cursorLayer.getPixelPosition(L),_=x.left,w=x.top,A=M&&M.top||0,T=M&&M.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var I=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;I+A>w?(O&&I+A>w+this.lineHeight&&(w-=O*this.$size.scrollerHeight),w===0&&(w=-this.scrollMargin.top),this.session.setScrollTop(w)):I+this.$size.scrollerHeight-T<w+this.lineHeight&&(O&&I+this.$size.scrollerHeight-T<w-this.lineHeight&&(w+=O*this.$size.scrollerHeight),this.session.setScrollTop(w+this.lineHeight+T-this.$size.scrollerHeight));var N=this.scrollLeft,D=2*this.layerConfig.characterWidth;_-D<N?(_-=D,_<this.$padding+D&&(_=-this.scrollMargin.left),this.session.setScrollLeft(_)):(_+=D,N+this.$size.scrollerWidth<_+this.characterWidth?this.session.setScrollLeft(Math.round(_+this.characterWidth-this.$size.scrollerWidth)):N<=this.$padding&&_-N<this.characterWidth&&this.session.setScrollLeft(0))}},E.prototype.getScrollTop=function(){return this.session.getScrollTop()},E.prototype.getScrollLeft=function(){return this.session.getScrollLeft()},E.prototype.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},E.prototype.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},E.prototype.scrollToRow=function(L){this.session.setScrollTop(L*this.lineHeight)},E.prototype.alignCursor=function(L,O){typeof L=="number"&&(L={row:L,column:0});var M=this.$cursorLayer.getPixelPosition(L),x=this.$size.scrollerHeight-this.lineHeight,_=M.top-x*(O||0);return this.session.setScrollTop(_),_},E.prototype.$calcSteps=function(L,O){var M=0,x=this.STEPS,_=[],w=function(A,T,I){return I*(Math.pow(A-1,3)+1)+T};for(M=0;M<x;++M)_.push(w(M/this.STEPS,L,O-L));return _},E.prototype.scrollToLine=function(L,O,M,x){var _=this.$cursorLayer.getPixelPosition({row:L,column:0}),w=_.top;O&&(w-=this.$size.scrollerHeight/2);var A=this.scrollTop;this.session.setScrollTop(w),M!==!1&&this.animateScrolling(A,x)},E.prototype.animateScrolling=function(L,O){var M=this.scrollTop;if(!this.$animatedScroll)return;var x=this;if(L==M)return;if(this.$scrollAnimation){var _=this.$scrollAnimation.steps;if(_.length&&(L=_[0],L==M))return}var w=x.$calcSteps(L,M);this.$scrollAnimation={from:L,to:M,steps:w},clearInterval(this.$timer),x.session.setScrollTop(w.shift()),x.session.$scrollTop=M;function A(){x.$timer=clearInterval(x.$timer),x.$scrollAnimation=null,x.$stopAnimation=!1,O&&O()}this.$timer=setInterval(function(){if(x.$stopAnimation){A();return}if(!x.session)return clearInterval(x.$timer);w.length?(x.session.setScrollTop(w.shift()),x.session.$scrollTop=M):M!=null?(x.session.$scrollTop=-1,x.session.setScrollTop(M),M=null):A()},10)},E.prototype.scrollToY=function(L){this.scrollTop!==L&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=L)},E.prototype.scrollToX=function(L){this.scrollLeft!==L&&(this.scrollLeft=L),this.$loop.schedule(this.CHANGE_H_SCROLL)},E.prototype.scrollTo=function(L,O){this.session.setScrollTop(O),this.session.setScrollLeft(L)},E.prototype.scrollBy=function(L,O){O&&this.session.setScrollTop(this.session.getScrollTop()+O),L&&this.session.setScrollLeft(this.session.getScrollLeft()+L)},E.prototype.isScrollableBy=function(L,O){if(O<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||O>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||L<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||L>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},E.prototype.pixelToScreenCoordinates=function(L,O){var M;if(this.$hasCssTransforms){M={top:0,left:0};var x=this.$fontMetrics.transformCoordinates([L,O]);L=x[1]-this.gutterWidth-this.margin.left,O=x[0]}else M=this.scroller.getBoundingClientRect();var _=L+this.scrollLeft-M.left-this.$padding,w=_/this.characterWidth,A=Math.floor((O+this.scrollTop-M.top)/this.lineHeight),T=this.$blockCursor?Math.floor(w):Math.round(w);return{row:A,column:T,side:w-T>0?1:-1,offsetX:_}},E.prototype.screenToTextCoordinates=function(L,O){var M;if(this.$hasCssTransforms){M={top:0,left:0};var x=this.$fontMetrics.transformCoordinates([L,O]);L=x[1]-this.gutterWidth-this.margin.left,O=x[0]}else M=this.scroller.getBoundingClientRect();var _=L+this.scrollLeft-M.left-this.$padding,w=_/this.characterWidth,A=this.$blockCursor?Math.floor(w):Math.round(w),T=Math.floor((O+this.scrollTop-M.top)/this.lineHeight);return this.session.screenToDocumentPosition(T,Math.max(A,0),_)},E.prototype.textToScreenCoordinates=function(L,O){var M=this.scroller.getBoundingClientRect(),x=this.session.documentToScreenPosition(L,O),_=this.$padding+(this.session.$bidiHandler.isBidiRow(x.row,L)?this.session.$bidiHandler.getPosLeft(x.column):Math.round(x.column*this.characterWidth)),w=x.row*this.lineHeight;return{pageX:M.left+_-this.scrollLeft,pageY:M.top+w-this.scrollTop}},E.prototype.visualizeFocus=function(){f.addCssClass(this.container,"ace_focus")},E.prototype.visualizeBlur=function(){f.removeCssClass(this.container,"ace_focus")},E.prototype.showComposition=function(L){this.$composition=L,L.cssText||(L.cssText=this.textarea.style.cssText),L.useTextareaForIME==null&&(L.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(f.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):L.markerId=this.session.addMarker(L.markerRange,"ace_composition_marker","text")},E.prototype.setCompositionText=function(L){var O=this.session.selection.cursor;this.addToken(L,"composition_placeholder",O.row,O.column),this.$moveTextAreaToCursor()},E.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 L=this.session.selection.cursor;this.removeExtraToken(L.row,L.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},E.prototype.setGhostText=function(L,O){var M=this.session.selection.cursor,x=O||{row:M.row,column:M.column};this.removeGhostText();var _=this.$calculateWrappedTextChunks(L,x);this.addToken(_[0].text,"ghost_text",x.row,x.column),this.$ghostText={text:L,position:{row:x.row,column:x.column}};var w=f.createElement("div");if(_.length>1){var A=this.hideTokensAfterPosition(x.row,x.column),T;_.slice(1).forEach(function(W){var U=f.createElement("div"),V=f.createElement("span");V.className="ace_ghost_text",W.wrapped&&(U.className="ghost_text_line_wrapped"),W.text.length===0&&(W.text=" "),V.appendChild(f.createTextNode(W.text)),U.appendChild(V),w.appendChild(U),T=U}),A.forEach(function(W){var U=f.createElement("span");k(W.type)||(U.className="ace_"+W.type.replace(/\./g," ace_")),U.appendChild(f.createTextNode(W.value)),T.appendChild(U)}),this.$ghostTextWidget={el:w,row:x.row,column:x.column,className:"ace_ghost_text_container"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var I=this.$cursorLayer.getPixelPosition(x,!0),N=this.container,D=N.getBoundingClientRect().height,F=_.length*this.lineHeight,H=F<D-I.top;if(H)return;F<D?this.scrollBy(0,(_.length-1)*this.lineHeight):this.scrollToRow(x.row)}},E.prototype.$calculateWrappedTextChunks=function(L,O){var M=this.$size.scrollerWidth-this.$padding*2,x=Math.floor(M/this.characterWidth)-2;x=x<=0?60:x;for(var _=L.split(/\r?\n/),w=[],A=0;A<_.length;A++){var T=this.session.$getDisplayTokens(_[A],O.column),I=this.session.$computeWrapSplits(T,x,this.session.$tabSize);if(I.length>0){var N=0;I.push(_[A].length);for(var D=0;D<I.length;D++){var F=_[A].slice(N,I[D]);w.push({text:F,wrapped:!0}),N=I[D]}}else w.push({text:_[A],wrapped:!1})}return w},E.prototype.removeGhostText=function(){if(this.$ghostText){var L=this.$ghostText.position;this.removeExtraToken(L.row,L.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},E.prototype.addToken=function(L,O,M,x){var _=this.session;_.bgTokenizer.lines[M]=null;var w={type:O,value:L},A=_.getTokens(M);if(x==null||!A.length)A.push(w);else for(var T=0,I=0;I<A.length;I++){var N=A[I];if(T+=N.value.length,x<=T){var D=N.value.length-(T-x),F=N.value.slice(0,D),H=N.value.slice(D);A.splice(I,1,{type:N.type,value:F},w,{type:N.type,value:H});break}}this.updateLines(M,M)},E.prototype.hideTokensAfterPosition=function(L,O){for(var M=this.session.getTokens(L),x=0,_=!1,w=[],A=0;A<M.length;A++){var T=M[A];if(x+=T.value.length,T.type!=="ghost_text"){if(_){w.push({type:T.type,value:T.value}),T.type="hidden_token";continue}x===O&&(_=!0)}}return this.updateLines(L,L),w},E.prototype.removeExtraToken=function(L,O){this.session.bgTokenizer.lines[L]=null,this.updateLines(L,L)},E.prototype.setTheme=function(L,O){var M=this;if(this.$themeId=L,M._dispatchEvent("themeChange",{theme:L}),!L||typeof L=="string"){var x=L||this.$options.theme.initialValue;s.loadModule(["theme",x],_)}else _(L);function _(w){if(M.$themeId!=L)return O&&O();if(!w||!w.cssClass)throw new Error("couldn't load module "+L+" or it didn't call define");w.$id&&(M.$themeId=w.$id),f.importCssString(w.cssText,w.cssClass,M.container),M.theme&&f.removeCssClass(M.container,M.theme.cssClass);var A="padding"in w?w.padding:"padding"in(M.theme||{})?4:M.$padding;M.$padding&&A!=M.$padding&&M.setPadding(A),M.$theme=w.cssClass,M.theme=w,f.addCssClass(M.container,w.cssClass),f.setCssClass(M.container,"ace_dark",w.isDark),M.$size&&(M.$size.width=0,M.$updateSizeAsync()),M._dispatchEvent("themeLoaded",{theme:w}),O&&O(),b.isSafari&&M.scroller&&(M.scroller.style.background="red",M.scroller.style.background="")}},E.prototype.getTheme=function(){return this.$themeId},E.prototype.setStyle=function(L,O){f.setCssClass(this.container,L,O!==!1)},E.prototype.unsetStyle=function(L){f.removeCssClass(this.container,L)},E.prototype.setCursorStyle=function(L){f.setStyle(this.scroller.style,"cursor",L)},E.prototype.setMouseCursor=function(L){f.setStyle(this.scroller.style,"cursor",L)},E.prototype.attachToShadowRoot=function(){f.importCssString($,"ace_editor.css",this.container)},E.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent="",this.setOption("useResizeObserver",!1)},E.prototype.$updateCustomScrollbar=function(L){var O=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),L===!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(M){O.$scrollAnimation||O.session.setScrollTop(M.data-O.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(M){O.$scrollAnimation||O.session.setScrollLeft(M.data-O.scrollMargin.left)}),this.$scrollDecorator?(this.$scrollDecorator.setScrollBarV(this.scrollBarV),this.$scrollDecorator.$updateDecorators()):(this.$scrollDecorator=new S(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators())):(this.scrollBarV=new l(this.container,this),this.scrollBarH=new u(this.container,this),this.scrollBarV.addEventListener("scroll",function(M){O.$scrollAnimation||O.session.setScrollTop(M.data-O.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(M){O.$scrollAnimation||O.session.setScrollLeft(M.data-O.scrollMargin.left)}))},E.prototype.$addResizeObserver=function(){if(!(!window.ResizeObserver||this.$resizeObserver)){var L=this;this.$resizeTimer=g.delayedCall(function(){L.destroyed||L.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(O){var M=O[0].contentRect.width,x=O[0].contentRect.height;Math.abs(L.$size.width-M)>1||Math.abs(L.$size.height-x)>1?L.$resizeTimer.delay():L.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},E}();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,h.implement(R.prototype,C),s.defineOptions(R.prototype,"renderer",{useResizeObserver:{set:function(E){!E&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):E&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(E){this.$textLayer.setShowInvisibles(E)&&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(E){typeof E=="number"&&(this.$printMarginColumn=E),this.$showPrintMargin=!!E,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(E){this.$gutter.style.display=E?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(E){this.$gutterLayer.$useSvgGutterIcons=E},initialValue:!1},showFoldedAnnotations:{set:function(E){this.$gutterLayer.$showFoldedAnnotations=E},initialValue:!1},fadeFoldWidgets:{set:function(E){f.setCssClass(this.$gutter,"ace_fade-fold-widgets",E)},initialValue:!1},showFoldWidgets:{set:function(E){this.$gutterLayer.setShowFoldWidgets(E),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(E){this.$textLayer.setDisplayIndentGuides(E)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(E){this.$textLayer.setHighlightIndentGuides(E)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(E){this.$gutterLayer.setHighlightGutterLine(E),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(E){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(E){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(E){typeof E=="number"&&(E=E+"px"),this.container.style.fontSize=E,this.updateFontSize()},initialValue:12},fontFamily:{set:function(E){this.container.style.fontFamily=E,this.updateFontSize()}},maxLines:{set:function(E){this.updateFull()}},minLines:{set:function(E){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(E){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(E){E=+E||0,this.$scrollPastEnd!=E&&(this.$scrollPastEnd=E,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(E){this.$gutterLayer.$fixedWidth=!!E,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(E){this.$updateCustomScrollbar(E)},initialValue:!1},theme:{set:function(E){this.setTheme(E)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!b.isMobile&&!b.isIE}}),r.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,r,i){var h=n("../lib/oop"),f=n("../lib/net"),g=n("../lib/event_emitter").EventEmitter,s=n("../config");function p(u){var l="importScripts('"+f.qualifyURL(u)+"');";try{return new Blob([l],{type:"application/javascript"})}catch{var d=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,m=new d;return m.append(l),m.getBlob("application/javascript")}}function o(u){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(s.get("loadWorkerFromBlob")){var l=p(u),d=window.URL||window.webkitURL,m=d.createObjectURL(l);return new Worker(m)}return new Worker(u)}var a=function(u){u.postMessage||(u=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=u,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){h.implement(this,g),this.$createWorkerFromOldConfig=function(u,l,d,m,v){if(n.nameToUrl&&!n.toUrl&&(n.toUrl=n.nameToUrl),s.get("packaged")||!n.toUrl)m=m||s.moduleUrl(l,"worker");else{var y=this.$normalizePath;m=m||y(n.toUrl("ace/worker/worker.js",null,"_"));var C={};u.forEach(function($){C[$]=y(n.toUrl($,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=o(m),v&&this.send("importScripts",v),this.$worker.postMessage({init:!0,tlns:C,module:l,classname:d}),this.$worker},this.onMessage=function(u){var l=u.data;switch(l.type){case"event":this._signal(l.name,{data:l.data});break;case"call":var d=this.callbacks[l.id];d&&(d(l.data),delete this.callbacks[l.id]);break;case"error":this.reportError(l.data);break;case"log":window.console&&console.log&&console.log.apply(console,l.data);break}},this.reportError=function(u){window.console&&console.error&&console.error(u)},this.$normalizePath=function(u){return f.qualifyURL(u)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(u){u.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(u,l){this.$worker.postMessage({command:u,args:l})},this.call=function(u,l,d){if(d){var m=this.callbackId++;this.callbacks[m]=d,l.push(m)}this.send(u,l)},this.emit=function(u,l){try{l.data&&l.data.err&&(l.data.err={message:l.data.err.message,stack:l.data.err.stack,code:l.data.err.code}),this.$worker&&this.$worker.postMessage({event:u,data:{data:l.data}})}catch(d){console.error(d.stack)}},this.attachToDocument=function(u){this.$doc&&this.terminate(),this.$doc=u,this.call("setValue",[u.getValue()]),u.on("change",this.changeListener,!0)},this.changeListener=function(u){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),u.action=="insert"?this.deltaQueue.push(u.start,u.lines):this.deltaQueue.push(u.start,u.end)},this.$sendDeltaQueue=function(){var u=this.deltaQueue;u&&(this.deltaQueue=null,u.length>50&&u.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:u}))}}).call(a.prototype);var c=function(u,l,d){var m=null,v=!1,y=Object.create(g),C=[],$=new a({messageBuffer:C,terminate:function(){},postMessage:function(b){C.push(b),m&&(v?setTimeout(S):S())}});$.setEmitSync=function(b){v=b};var S=function(){var b=C.shift();b.command?m[b.command].apply(m,b.args):b.event&&y._signal(b.event,b.data)};return y.postMessage=function(b){$.onMessage({data:b})},y.callback=function(b,k){this.postMessage({type:"call",id:k,data:b})},y.emit=function(b,k){this.postMessage({type:"event",name:b,data:k})},s.loadModule(["worker",l],function(b){for(m=new b[d](y);C.length;)S()}),$};r.UIWorkerClient=c,r.WorkerClient=a,r.createWorker=o}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(n,r,i){var h=n("./range").Range,f=n("./lib/event_emitter").EventEmitter,g=n("./lib/oop"),s=function(){function p(o,a,c,u,l,d){var m=this;this.length=a,this.session=o,this.doc=o.getDocument(),this.mainClass=l,this.othersClass=d,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=u,this.$onCursorChange=function(){setTimeout(function(){m.onCursorChange()})},this.$pos=c;var v=o.getUndoManager().$undoStack||o.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=v.length,this.setup(),o.selection.on("changeCursor",this.$onCursorChange)}return p.prototype.setup=function(){var o=this,a=this.doc,c=this.session;this.selectionBefore=c.selection.toJSON(),c.selection.inMultiSelectMode&&c.selection.toSingleRange(),this.pos=a.createAnchor(this.$pos.row,this.$pos.column);var u=this.pos;u.$insertRight=!0,u.detach(),u.markerId=c.addMarker(new h(u.row,u.column,u.row,u.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(l){var d=a.createAnchor(l.row,l.column);d.$insertRight=!0,d.detach(),o.others.push(d)}),c.setUndoSelect(!1)},p.prototype.showOtherMarkers=function(){if(!this.othersActive){var o=this.session,a=this;this.othersActive=!0,this.others.forEach(function(c){c.markerId=o.addMarker(new h(c.row,c.column,c.row,c.column+a.length),a.othersClass,null,!1)})}},p.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var o=0;o<this.others.length;o++)this.session.removeMarker(this.others[o].markerId)}},p.prototype.onUpdate=function(o){if(this.$updating)return this.updateAnchors(o);var a=o;if(a.start.row===a.end.row&&a.start.row===this.pos.row){this.$updating=!0;var c=o.action==="insert"?a.end.column-a.start.column:a.start.column-a.end.column,u=a.start.column>=this.pos.column&&a.start.column<=this.pos.column+this.length+1,l=a.start.column-this.pos.column;if(this.updateAnchors(o),u&&(this.length+=c),u&&!this.session.$fromUndo){if(o.action==="insert")for(var d=this.others.length-1;d>=0;d--){var m=this.others[d],v={row:m.row,column:m.column+l};this.doc.insertMergedLines(v,o.lines)}else if(o.action==="remove")for(var d=this.others.length-1;d>=0;d--){var m=this.others[d],v={row:m.row,column:m.column+l};this.doc.remove(new h(v.row,v.column,v.row,v.column-c))}}this.$updating=!1,this.updateMarkers()}},p.prototype.updateAnchors=function(o){this.pos.onChange(o);for(var a=this.others.length;a--;)this.others[a].onChange(o);this.updateMarkers()},p.prototype.updateMarkers=function(){if(!this.$updating){var o=this,a=this.session,c=function(l,d){a.removeMarker(l.markerId),l.markerId=a.addMarker(new h(l.row,l.column,l.row,l.column+o.length),d,null,!1)};c(this.pos,this.mainClass);for(var u=this.others.length;u--;)c(this.others[u],this.othersClass)}},p.prototype.onCursorChange=function(o){if(!(this.$updating||!this.session)){var a=this.session.selection.getCursor();a.row===this.pos.row&&a.column>=this.pos.column&&a.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",o)):(this.hideOtherMarkers(),this._emit("cursorLeave",o))}},p.prototype.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},p.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var o=this.session.getUndoManager(),a=(o.$undoStack||o.$undostack).length-this.$undoStackDepth,c=0;c<a;c++)o.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},p}();g.implement(s.prototype,f),r.PlaceHolder=s}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(n,r,i){var h=n("../lib/event"),f=n("../lib/useragent");function g(p,o){return p.row==o.row&&p.column==o.column}function s(p){var o=p.domEvent,a=o.altKey,c=o.shiftKey,u=o.ctrlKey,l=p.getAccelKey(),d=p.getButton();if(u&&f.isMac&&(d=o.button),p.editor.inMultiSelectMode&&d==2){p.editor.textInput.onContextMenu(p.domEvent);return}if(!u&&!a&&!l){d===0&&p.editor.inMultiSelectMode&&p.editor.exitMultiSelectMode();return}if(d===0){var m=p.editor,v=m.selection,y=m.inMultiSelectMode,C=p.getDocumentPosition(),$=v.getCursor(),S=p.inSelection()||v.isEmpty()&&g(C,$),b=p.x,k=p.y,R=function(F){b=F.clientX,k=F.clientY},E=m.session,L=m.renderer.pixelToScreenCoordinates(b,k),O=L,M;if(m.$mouseHandler.$enableJumpToDef)u&&a||l&&a?M=c?"block":"add":a&&m.$blockSelectEnabled&&(M="block");else if(l&&!a){if(M="add",!y&&c)return}else a&&m.$blockSelectEnabled&&(M="block");if(M&&f.isMac&&o.ctrlKey&&m.$mouseHandler.cancelContextMenu(),M=="add"){if(!y&&S)return;if(!y){var x=v.toOrientedRange();m.addSelectionMarker(x)}var _=v.rangeList.rangeAtPoint(C);m.inVirtualSelectionMode=!0,c&&(_=null,x=v.ranges[0]||x,m.removeSelectionMarker(x)),m.once("mouseup",function(){var F=v.toOrientedRange();_&&F.isEmpty()&&g(_.cursor,F.cursor)?v.substractPoint(F.cursor):(c?v.substractPoint(x.cursor):x&&(m.removeSelectionMarker(x),v.addRange(x)),v.addRange(F)),m.inVirtualSelectionMode=!1})}else if(M=="block"){p.stop(),m.inVirtualSelectionMode=!0;var w,A=[],T=function(){var F=m.renderer.pixelToScreenCoordinates(b,k),H=E.screenToDocumentPosition(F.row,F.column,F.offsetX);g(O,F)&&g(H,v.lead)||(O=F,m.selection.moveToPosition(H),m.renderer.scrollCursorIntoView(),m.removeSelectionMarkers(A),A=v.rectangularRangeBlock(O,L),m.$mouseHandler.$clickSelection&&A.length==1&&A[0].isEmpty()&&(A[0]=m.$mouseHandler.$clickSelection.clone()),A.forEach(m.addSelectionMarker,m),m.updateSelectionMarkers())};y&&!l?v.toSingleRange():!y&&l&&(w=v.toOrientedRange(),m.addSelectionMarker(w)),c?L=E.documentToScreenPosition(v.lead):v.moveToPosition(C),O={row:-1,column:-1};var I=function(F){T(),clearInterval(D),m.removeSelectionMarkers(A),A.length||(A=[v.toOrientedRange()]),w&&(m.removeSelectionMarker(w),v.toSingleRange(w));for(var H=0;H<A.length;H++)v.addRange(A[H]);m.inVirtualSelectionMode=!1,m.$mouseHandler.$clickSelection=null},N=T;h.capture(m.container,R,I);var D=setInterval(function(){N()},20);return p.preventDefault()}}}r.onMouseDown=s}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(n,r,i){r.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}],r.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 h=n("../keyboard/hash_handler").HashHandler;r.keyboardHandler=new h(r.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(n,r,i){var h=n("./range_list").RangeList,f=n("./range").Range,g=n("./selection").Selection,s=n("./mouse/multi_select_handler").onMouseDown,p=n("./lib/event"),o=n("./lib/lang"),a=n("./commands/multi_select_commands");r.commands=a.defaultCommands.concat(a.multiSelectCommands);var c=n("./search").Search,u=new c;function l($,S,b){return u.$options.wrap=!0,u.$options.needle=S,u.$options.backwards=b==-1,u.find($)}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){if($){if(!this.inMultiSelectMode&&this.rangeCount===0){var b=this.toOrientedRange();if(this.rangeList.add(b),this.rangeList.add($),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),S||this.fromOrientedRange($);this.rangeList.removeAll(),this.rangeList.add(b),this.$onAddRange(b)}$.cursor||($.cursor=$.end);var k=this.rangeList.add($);return this.$onAddRange($),k.length&&this.$onRemoveRange(k),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),S||this.fromOrientedRange($)}},this.toSingleRange=function($){$=$||this.ranges[0];var S=this.rangeList.removeAll();S.length&&this.$onRemoveRange(S),$&&this.fromOrientedRange($)},this.substractPoint=function($){var S=this.rangeList.substractPoint($);if(S)return this.$onRemoveRange(S),S[0]},this.mergeOverlappingRanges=function(){var $=this.rangeList.merge();$.length&&this.$onRemoveRange($)},this.$onAddRange=function($){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift($),this._signal("addRange",{range:$})},this.$onRemoveRange=function($){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var S=this.rangeList.ranges.pop();$.push(S),this.rangeCount=0}for(var b=$.length;b--;){var k=this.ranges.indexOf($[b]);this.ranges.splice(k,1)}this._signal("removeRange",{ranges:$}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),S=S||this.ranges[0],S&&!S.isEqual(this.getRange())&&this.fromOrientedRange(S)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new h,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var $=this.ranges.length?this.ranges:[this.getRange()],S=[],b=0;b<$.length;b++){var k=$[b],R=k.start.row,E=k.end.row;if(R===E)S.push(k.clone());else{for(S.push(new f(R,k.start.column,R,this.session.getLine(R).length));++R<E;)S.push(this.getLineRange(R,!0));S.push(new f(E,0,E,k.end.column))}b==0&&!this.isBackwards()&&(S=S.reverse())}this.toSingleRange();for(var b=S.length;b--;)this.addRange(S[b])},this.joinSelections=function(){var $=this.rangeList.ranges,S=$[$.length-1],b=f.fromPoints($[0].start,S.end);this.toSingleRange(),this.setSelectionRange(b,S.cursor==S.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var $=this.rangeList.ranges,S=$[$.length-1],b=f.fromPoints($[0].start,S.end);this.toSingleRange(),this.setSelectionRange(b,S.cursor==S.start)}else{var k=this.session.documentToScreenPosition(this.cursor),R=this.session.documentToScreenPosition(this.anchor),E=this.rectangularRangeBlock(k,R);E.forEach(this.addRange,this)}},this.rectangularRangeBlock=function($,S,b){var k=[],R=$.column<S.column;if(R)var E=$.column,L=S.column,O=$.offsetX,M=S.offsetX;else var E=S.column,L=$.column,O=S.offsetX,M=$.offsetX;var x=$.row<S.row;if(x)var _=$.row,w=S.row;else var _=S.row,w=$.row;E<0&&(E=0),_<0&&(_=0),_==w&&(b=!0);for(var A,T=_;T<=w;T++){var I=f.fromPoints(this.session.screenToDocumentPosition(T,E,O),this.session.screenToDocumentPosition(T,L,M));if(I.isEmpty()){if(A&&v(I.end,A))break;A=I.end}I.cursor=R?I.start:I.end,k.push(I)}if(x&&k.reverse(),!b){for(var N=k.length-1;k[N].isEmpty()&&N>0;)N--;if(N>0)for(var D=0;k[D].isEmpty();)D++;for(var F=N;F>=D;F--)k[F].isEmpty()&&k.splice(F,1)}return k}}).call(g.prototype);var m=n("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function($){$.cursor||($.cursor=$.end);var S=this.getSelectionStyle();return $.marker=this.session.addMarker($,"ace_selection",S),this.session.$selectionMarkers.push($),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,$},this.removeSelectionMarker=function($){if($.marker){this.session.removeMarker($.marker);var S=this.session.$selectionMarkers.indexOf($);S!=-1&&this.session.$selectionMarkers.splice(S,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function($){for(var S=this.session.$selectionMarkers,b=$.length;b--;){var k=$[b];if(k.marker){this.session.removeMarker(k.marker);var R=S.indexOf(k);R!=-1&&S.splice(R,1)}}this.session.selectionMarkerCount=S.length},this.$onAddRange=function($){this.addSelectionMarker($.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function($){this.removeSelectionMarkers($.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function($){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(a.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function($){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(a.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function($){var S=$.command,b=$.editor;if(b.multiSelect){if(S.multiSelectAction)S.multiSelectAction=="forEach"?k=b.forEachSelection(S,$.args):S.multiSelectAction=="forEachLine"?k=b.forEachSelection(S,$.args,!0):S.multiSelectAction=="single"?(b.exitMultiSelectMode(),k=S.exec(b,$.args||{})):k=S.multiSelectAction(b,$.args||{});else{var k=S.exec(b,$.args||{});b.multiSelect.addRange(b.multiSelect.toOrientedRange()),b.multiSelect.mergeOverlappingRanges()}return k}},this.forEachSelection=function($,S,b){if(!this.inVirtualSelectionMode){var k=b&&b.keepOrder,R=b==!0||b&&b.$byLines,E=this.session,L=this.selection,O=L.rangeList,M=(k?L:O).ranges,x;if(!M.length)return $.exec?$.exec(this,S||{}):$(this,S||{});var _=L._eventRegistry;L._eventRegistry={};var w=new g(E);this.inVirtualSelectionMode=!0;for(var A=M.length;A--;){if(R)for(;A>0&&M[A].start.row==M[A-1].end.row;)A--;w.fromOrientedRange(M[A]),w.index=A,this.selection=E.selection=w;var T=$.exec?$.exec(this,S||{}):$(this,S||{});!x&&T!==void 0&&(x=T),w.toOrientedRange(M[A])}w.detach(),this.selection=E.selection=L,this.inVirtualSelectionMode=!1,L._eventRegistry=_,L.mergeOverlappingRanges(),L.ranges[0]&&L.fromOrientedRange(L.ranges[0]);var I=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),I&&I.from==I.to&&this.renderer.animateScrolling(I.from),x}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var $="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var S=this.multiSelect.rangeList.ranges,b=[],k=0;k<S.length;k++)b.push(this.session.getTextRange(S[k]));var R=this.session.getDocument().getNewLineCharacter();$=b.join(R),$.length==(b.length-1)*R.length&&($="")}else this.selection.isEmpty()||($=this.session.getTextRange(this.getSelectionRange()));return $},this.$checkMultiselectChange=function($,S){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var b=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&S==this.multiSelect.anchor)return;var k=S==this.multiSelect.anchor?b.cursor==b.start?b.end:b.start:b.cursor;k.row!=S.row||this.session.$clipPositionToDocument(k.row,k.column).column!=S.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function($,S,b){if(S=S||{},S.needle=$||S.needle,S.needle==null){var k=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();S.needle=this.session.getTextRange(k)}this.$search.set(S);var R=this.$search.findAll(this.session);if(!R.length)return 0;var E=this.multiSelect;b||E.toSingleRange(R[0]);for(var L=R.length;L--;)E.addRange(R[L],!0);return k&&E.rangeList.rangeAtPoint(k.start)&&E.addRange(k,!0),R.length},this.selectMoreLines=function($,S){var b=this.selection.toOrientedRange(),k=b.cursor==b.end,R=this.session.documentToScreenPosition(b.cursor);this.selection.$desiredColumn&&(R.column=this.selection.$desiredColumn);var E=this.session.screenToDocumentPosition(R.row+$,R.column);if(b.isEmpty())var O=E;else var L=this.session.documentToScreenPosition(k?b.end:b.start),O=this.session.screenToDocumentPosition(L.row+$,L.column);if(k){var M=f.fromPoints(E,O);M.cursor=M.start}else{var M=f.fromPoints(O,E);M.cursor=M.end}if(M.desiredColumn=R.column,!this.selection.inMultiSelectMode)this.selection.addRange(b);else if(S)var x=b.cursor;this.selection.addRange(M),x&&this.selection.substractPoint(x)},this.transposeSelections=function($){for(var S=this.session,b=S.multiSelect,k=b.ranges,R=k.length;R--;){var E=k[R];if(E.isEmpty()){var L=S.getWordRange(E.start.row,E.start.column);E.start.row=L.start.row,E.start.column=L.start.column,E.end.row=L.end.row,E.end.column=L.end.column}}b.mergeOverlappingRanges();for(var O=[],R=k.length;R--;){var E=k[R];O.unshift(S.getTextRange(E))}$<0?O.unshift(O.pop()):O.push(O.shift());for(var R=k.length;R--;){var E=k[R],M=E.clone();S.replace(E,O[R]),E.start.row=M.start.row,E.start.column=M.start.column}b.fromOrientedRange(b.ranges[0])},this.selectMore=function($,S,b){var k=this.session,R=k.multiSelect,E=R.toOrientedRange();if(!(E.isEmpty()&&(E=k.getWordRange(E.start.row,E.start.column),E.cursor=$==-1?E.start:E.end,this.multiSelect.addRange(E),b))){var L=k.getTextRange(E),O=l(k,L,$);O&&(O.cursor=$==-1?O.start:O.end,this.session.unfold(O),this.multiSelect.addRange(O),this.renderer.scrollCursorIntoView(null,.5)),S&&this.multiSelect.substractPoint(E.cursor)}},this.alignCursors=function(){var $=this.session,S=$.multiSelect,b=S.ranges,k=-1,R=b.filter(function(N){if(N.cursor.row==k)return!0;k=N.cursor.row});if(!b.length||R.length==b.length-1){var E=this.selection.getRange(),L=E.start.row,O=E.end.row,M=L==O;if(M){var x=this.session.getLength(),_;do _=this.session.getLine(O);while(/[=:]/.test(_)&&++O<x);do _=this.session.getLine(L);while(/[=:]/.test(_)&&--L>0);L<0&&(L=0),O>=x&&(O=x-1)}var w=this.session.removeFullLines(L,O);w=this.$reAlignText(w,M),this.session.insert({row:L,column:0},w.join(`
1577
+ `)+`
1578
+ `),M||(E.start.column=0,E.end.column=w[w.length-1].length),this.selection.setRange(E)}else{R.forEach(function(N){S.substractPoint(N.cursor)});var A=0,T=1/0,I=b.map(function(N){var D=N.cursor,F=$.getLine(D.row),H=F.substr(D.column).search(/\S/g);return H==-1&&(H=0),D.column>A&&(A=D.column),H<T&&(T=H),H});b.forEach(function(N,D){var F=N.cursor,H=A-F.column,W=I[D]-T;H>W?$.insert(F,o.stringRepeat(" ",H-W)):$.remove(new f(F.row,F.column,F.row,F.column-H+W)),N.start.column=N.end.column=A,N.start.row=N.end.row=F.row,N.cursor=N.end}),S.fromOrientedRange(b[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function($,S){var b=!0,k=!0,R,E,L;return $.map(function(w){var A=w.match(/(\s*)(.*?)(\s*)([=:].*)/);return A?R==null?(R=A[1].length,E=A[2].length,L=A[3].length,A):(R+E+L!=A[1].length+A[2].length+A[3].length&&(k=!1),R!=A[1].length&&(b=!1),R>A[1].length&&(R=A[1].length),E<A[2].length&&(E=A[2].length),L>A[3].length&&(L=A[3].length),A):[w]}).map(S?M:b?k?x:M:_);function O(w){return o.stringRepeat(" ",w)}function M(w){return w[2]?O(R)+w[2]+O(E-w[2].length+L)+w[4].replace(/^([=:])\s+/,"$1 "):w[0]}function x(w){return w[2]?O(R+E-w[2].length)+w[2]+O(L)+w[4].replace(/^([=:])\s+/,"$1 "):w[0]}function _(w){return w[2]?O(R)+w[2]+O(L)+w[4].replace(/^([=:])\s+/,"$1 "):w[0]}}}).call(m.prototype);function v($,S){return $.row==S.row&&$.column==S.column}r.onSessionChange=function($){var S=$.session;S&&!S.multiSelect&&(S.$selectionMarkers=[],S.selection.$initRangeList(),S.multiSelect=S.selection),this.multiSelect=S&&S.multiSelect;var b=$.oldSession;b&&(b.multiSelect.off("addRange",this.$onAddRange),b.multiSelect.off("removeRange",this.$onRemoveRange),b.multiSelect.off("multiSelect",this.$onMultiSelect),b.multiSelect.off("singleSelect",this.$onSingleSelect),b.multiSelect.lead.off("change",this.$checkMultiselectChange),b.multiSelect.anchor.off("change",this.$checkMultiselectChange)),S&&(S.multiSelect.on("addRange",this.$onAddRange),S.multiSelect.on("removeRange",this.$onRemoveRange),S.multiSelect.on("multiSelect",this.$onMultiSelect),S.multiSelect.on("singleSelect",this.$onSingleSelect),S.multiSelect.lead.on("change",this.$checkMultiselectChange),S.multiSelect.anchor.on("change",this.$checkMultiselectChange)),S&&this.inMultiSelectMode!=S.selection.inMultiSelectMode&&(S.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function y($){$.$multiselectOnSessionChange||($.$onAddRange=$.$onAddRange.bind($),$.$onRemoveRange=$.$onRemoveRange.bind($),$.$onMultiSelect=$.$onMultiSelect.bind($),$.$onSingleSelect=$.$onSingleSelect.bind($),$.$multiselectOnSessionChange=r.onSessionChange.bind($),$.$checkMultiselectChange=$.$checkMultiselectChange.bind($),$.$multiselectOnSessionChange($),$.on("changeSession",$.$multiselectOnSessionChange),$.on("mousedown",s),$.commands.addCommands(a.defaultCommands),C($))}function C($){if(!$.textInput)return;var S=$.textInput.getElement(),b=!1;p.addListener(S,"keydown",function(R){var E=R.keyCode==18&&!(R.ctrlKey||R.shiftKey||R.metaKey);$.$blockSelectEnabled&&E?b||($.renderer.setMouseCursor("crosshair"),b=!0):b&&k()},$),p.addListener(S,"keyup",k,$),p.addListener(S,"blur",k,$);function k(R){b&&($.renderer.setMouseCursor(""),b=!1)}}r.MultiSelect=y,n("./config").defineOptions(m.prototype,"editor",{enableMultiselect:{set:function($){y(this),$?this.on("mousedown",s):this.off("mousedown",s)},value:!0},enableBlockSelect:{set:function($){this.$blockSelectEnabled=$},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(n,r,i){var h=n("../../range").Range,f=r.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(g,s,p){var o=g.getLine(p);return this.foldingStartMarker.test(o)?"start":s=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(o)?"end":""},this.getFoldWidgetRange=function(g,s,p){return null},this.indentationBlock=function(g,s,p){var o=/\S/,a=g.getLine(s),c=a.search(o);if(c!=-1){for(var u=p||a.length,l=g.getLength(),d=s,m=s;++s<l;){var v=g.getLine(s).search(o);if(v!=-1){if(v<=c){var y=g.getTokenAt(s,0);if(!y||y.type!=="string")break}m=s}}if(m>d){var C=g.getLine(m).length;return new h(d,u,m,C)}}},this.openingBracketBlock=function(g,s,p,o,a){var c={row:p,column:o+1},u=g.$findClosingBracket(s,c,a);if(u){var l=g.foldWidgets[u.row];return l==null&&(l=g.getFoldWidget(u.row)),l=="start"&&u.row>c.row&&(u.row--,u.column=g.getLine(u.row).length),h.fromPoints(c,u)}},this.closingBracketBlock=function(g,s,p,o,a){var c={row:p,column:o},u=g.$findOpeningBracket(s,c);if(u)return u.column++,c.column--,h.fromPoints(u,c)}}).call(f.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/lib/dom","ace/range","ace/config"],function(n,r,i){var h=n("../lib/dom"),f=n("../range").Range,g=n("../config").nls;function s(o,a,c){for(var u=0,l=o.length-1;u<=l;){var d=u+l>>1,m=c(a,o[d]);if(m>0)u=d+1;else if(m<0)l=d-1;else return d}return-(u+1)}function p(o,a,c){var u=o.getAnnotations().sort(f.comparePoints);if(u.length){var l=s(u,{row:a,column:-1},f.comparePoints);l<0&&(l=-l-1),l>=u.length?l=c>0?0:u.length-1:l===0&&c<0&&(l=u.length-1);var d=u[l];if(!(!d||!c)){if(d.row===a){do d=u[l+=c];while(d&&d.row===a);if(!d)return u.slice()}var m=[];a=d.row;do m[c<0?"unshift":"push"](d),d=u[l+=c];while(d&&d.row==a);return m.length&&m}}}r.showErrorMarker=function(o,a){var c=o.session,u=o.getCursorPosition(),l=u.row,d=c.widgetManager.getWidgetsAtRow(l).filter(function(R){return R.type=="errorMarker"})[0];d?d.destroy():l-=a;var m=p(c,l,a),v;if(m){var y=m[0];u.column=(y.pos&&typeof y.column!="number"?y.pos.sc:y.column)||0,u.row=y.row,v=o.renderer.$gutterLayer.$annotations[u.row]}else{if(d)return;v={displayText:[g("error-marker.good-state","Looks good!")],className:"ace_ok"}}o.session.unfold(u.row),o.selection.moveToPosition(u);var C={row:u.row,fixedWidth:!0,coverGutter:!0,el:h.createElement("div"),type:"errorMarker"},$=C.el.appendChild(h.createElement("div")),S=C.el.appendChild(h.createElement("div"));S.className="error_widget_arrow "+v.className;var b=o.renderer.$cursorLayer.getPixelPosition(u).left;S.style.left=b+o.renderer.gutterWidth-5+"px",C.el.className="error_widget_wrapper",$.className="error_widget "+v.className,v.displayText.forEach(function(R,E){$.appendChild(h.createTextNode(R)),E<v.displayText.length-1&&$.appendChild(h.createElement("br"))}),$.appendChild(h.createElement("div"));var k=function(R,E,L){if(E===0&&(L==="esc"||L==="return"))return C.destroy(),{command:"null"}};C.destroy=function(){o.$mouseHandler.isMousePressed||(o.keyBinding.removeKeyboardHandler(k),c.widgetManager.removeLineWidget(C),o.off("changeSelection",C.destroy),o.off("changeSession",C.destroy),o.off("mouseup",C.destroy),o.off("change",C.destroy))},o.keyBinding.addKeyboardHandler(k),o.on("changeSelection",C.destroy),o.on("changeSession",C.destroy),o.on("mouseup",C.destroy),o.on("change",C.destroy),o.session.widgetManager.addLineWidget(C),C.el.onmousedown=o.focus.bind(o),o.renderer.scrollCursorIntoView(null,.5,{bottom:C.el.offsetHeight})},h.importCssString(`
1579
+ .error_widget_wrapper {
1580
+ background: inherit;
1581
+ color: inherit;
1582
+ border:none
1583
+ }
1584
+ .error_widget {
1585
+ border-top: solid 2px;
1586
+ border-bottom: solid 2px;
1587
+ margin: 5px 0;
1588
+ padding: 10px 40px;
1589
+ white-space: pre-wrap;
1590
+ }
1591
+ .error_widget.ace_error, .error_widget_arrow.ace_error{
1592
+ border-color: #ff5a5a
1593
+ }
1594
+ .error_widget.ace_warning, .error_widget_arrow.ace_warning{
1595
+ border-color: #F1D817
1596
+ }
1597
+ .error_widget.ace_info, .error_widget_arrow.ace_info{
1598
+ border-color: #5a5a5a
1599
+ }
1600
+ .error_widget.ace_ok, .error_widget_arrow.ace_ok{
1601
+ border-color: #5aaa5a
1602
+ }
1603
+ .error_widget_arrow {
1604
+ position: absolute;
1605
+ border: solid 5px;
1606
+ border-top-color: transparent!important;
1607
+ border-right-color: transparent!important;
1608
+ border-left-color: transparent!important;
1609
+ top: -5px;
1610
+ }
1611
+ `,"error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],function(n,r,i){n("./loader_build")(r);var h=n("./lib/dom"),f=n("./range").Range,g=n("./editor").Editor,s=n("./edit_session").EditSession,p=n("./undomanager").UndoManager,o=n("./virtual_renderer").VirtualRenderer;n("./worker/worker_client"),n("./keyboard/hash_handler"),n("./placeholder"),n("./multi_select"),n("./mode/folding/fold_mode"),n("./theme/textmate"),n("./ext/error_marker"),r.config=n("./config"),r.edit=function(c,u){if(typeof c=="string"){var l=c;if(c=document.getElementById(l),!c)throw new Error("ace.edit can't find div #"+l)}if(c&&c.env&&c.env.editor instanceof g)return c.env.editor;var d="";if(c&&/input|textarea/i.test(c.tagName)){var m=c;d=m.value,c=h.createElement("pre"),m.parentNode.replaceChild(c,m)}else c&&(d=c.textContent,c.innerHTML="");var v=r.createEditSession(d),y=new g(new o(c),v,u),C={document:v,editor:y,onResize:y.resize.bind(y,null)};return m&&(C.textarea=m),y.on("destroy",function(){C.editor.container.env=null}),y.container.env=y.env=C,y},r.createEditSession=function(c,u){var l=new s(c,u);return l.setUndoManager(new p),l},r.Range=f,r.Editor=g,r.EditSession=s,r.UndoManager=p,r.VirtualRenderer=o;var a=r.config.version;r.version=a}),function(){ace.require(["ace/ace"],function(n){n&&(n.config.init(!0),n.define=ace.define);var r=function(){return this}();!r&&typeof window<"u"&&(r=window),!r&&typeof self<"u"&&(r=self),r.ace||(r.ace=n);for(var i in n)n.hasOwnProperty(i)&&(r.ace[i]=n[i]);r.ace.default=r.ace,e&&(e.exports=r.ace)})}()}(zs)),zs.exports}var QL=XL();const Nl=_r(QL),JL="/assets/mode-yaml-ELgwiJiP.js",qL="data:text/javascript;base64,YWNlLmRlZmluZSgiYWNlL3RoZW1lL21vbm9rYWktY3NzIixbInJlcXVpcmUiLCJleHBvcnRzIiwibW9kdWxlIl0sZnVuY3Rpb24oZSx0LG4pe24uZXhwb3J0cz0iLmFjZS1tb25va2FpIC5hY2VfZ3V0dGVyIHtcbiAgYmFja2dyb3VuZDogIzJGMzEyOTtcbiAgY29sb3I6ICM4RjkwOEFcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfcHJpbnQtbWFyZ2luIHtcbiAgd2lkdGg6IDFweDtcbiAgYmFja2dyb3VuZDogIzU1NTY1MVxufVxuXG4uYWNlLW1vbm9rYWkge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjcyODIyO1xuICBjb2xvcjogI0Y4RjhGMlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9jdXJzb3Ige1xuICBjb2xvcjogI0Y4RjhGMFxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9zZWxlY3Rpb24ge1xuICBiYWNrZ3JvdW5kOiAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaS5hY2VfbXVsdGlzZWxlY3QgLmFjZV9zZWxlY3Rpb24uYWNlX3N0YXJ0IHtcbiAgYm94LXNoYWRvdzogMCAwIDNweCAwcHggIzI3MjgyMjtcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfbWFya2VyLWxheWVyIC5hY2Vfc3RlcCB7XG4gIGJhY2tncm91bmQ6IHJnYigxMDIsIDgyLCAwKVxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9icmFja2V0IHtcbiAgbWFyZ2luOiAtMXB4IDAgMCAtMXB4O1xuICBib3JkZXI6IDFweCBzb2xpZCAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX21hcmtlci1sYXllciAuYWNlX2FjdGl2ZS1saW5lIHtcbiAgYmFja2dyb3VuZDogIzIwMjAyMFxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9ndXR0ZXItYWN0aXZlLWxpbmUge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjcyNzI3XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX21hcmtlci1sYXllciAuYWNlX3NlbGVjdGVkLXdvcmQge1xuICBib3JkZXI6IDFweCBzb2xpZCAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2ludmlzaWJsZSB7XG4gIGNvbG9yOiAjNTI1MjRkXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2VudGl0eS5hY2VfbmFtZS5hY2VfdGFnLFxuLmFjZS1tb25va2FpIC5hY2Vfa2V5d29yZCxcbi5hY2UtbW9ub2thaSAuYWNlX21ldGEuYWNlX3RhZyxcbi5hY2UtbW9ub2thaSAuYWNlX3N0b3JhZ2Uge1xuICBjb2xvcjogI0Y5MjY3MlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9wdW5jdHVhdGlvbixcbi5hY2UtbW9ub2thaSAuYWNlX3B1bmN0dWF0aW9uLmFjZV90YWcge1xuICBjb2xvcjogI2ZmZlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9jb25zdGFudC5hY2VfY2hhcmFjdGVyLFxuLmFjZS1tb25va2FpIC5hY2VfY29uc3RhbnQuYWNlX2xhbmd1YWdlLFxuLmFjZS1tb25va2FpIC5hY2VfY29uc3RhbnQuYWNlX251bWVyaWMsXG4uYWNlLW1vbm9rYWkgLmFjZV9jb25zdGFudC5hY2Vfb3RoZXIge1xuICBjb2xvcjogI0FFODFGRlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9pbnZhbGlkIHtcbiAgY29sb3I6ICNGOEY4RjA7XG4gIGJhY2tncm91bmQtY29sb3I6ICNGOTI2NzJcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfaW52YWxpZC5hY2VfZGVwcmVjYXRlZCB7XG4gIGNvbG9yOiAjRjhGOEYwO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjQUU4MUZGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N1cHBvcnQuYWNlX2NvbnN0YW50LFxuLmFjZS1tb25va2FpIC5hY2Vfc3VwcG9ydC5hY2VfZnVuY3Rpb24ge1xuICBjb2xvcjogIzY2RDlFRlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9mb2xkIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI0E2RTIyRTtcbiAgYm9yZGVyLWNvbG9yOiAjRjhGOEYyXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N0b3JhZ2UuYWNlX3R5cGUsXG4uYWNlLW1vbm9rYWkgLmFjZV9zdXBwb3J0LmFjZV9jbGFzcyxcbi5hY2UtbW9ub2thaSAuYWNlX3N1cHBvcnQuYWNlX3R5cGUge1xuICBmb250LXN0eWxlOiBpdGFsaWM7XG4gIGNvbG9yOiAjNjZEOUVGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2VudGl0eS5hY2VfbmFtZS5hY2VfZnVuY3Rpb24sXG4uYWNlLW1vbm9rYWkgLmFjZV9lbnRpdHkuYWNlX290aGVyLFxuLmFjZS1tb25va2FpIC5hY2VfZW50aXR5LmFjZV9vdGhlci5hY2VfYXR0cmlidXRlLW5hbWUsXG4uYWNlLW1vbm9rYWkgLmFjZV92YXJpYWJsZSB7XG4gIGNvbG9yOiAjQTZFMjJFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3ZhcmlhYmxlLmFjZV9wYXJhbWV0ZXIge1xuICBmb250LXN0eWxlOiBpdGFsaWM7XG4gIGNvbG9yOiAjRkQ5NzFGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N0cmluZyB7XG4gIGNvbG9yOiAjRTZEQjc0XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2NvbW1lbnQge1xuICBjb2xvcjogIzc1NzE1RVxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9pbmRlbnQtZ3VpZGUge1xuICBiYWNrZ3JvdW5kOiB1cmwoZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFBRUFBQUFDQ0FZQUFBQ1pnYlluQUFBQUVrbEVRVlFJbVdQUTBGRDBaWEJ6ZC93UEFBalZBb3hlU2dOZUFBQUFBRWxGVGtTdVFtQ0MpIHJpZ2h0IHJlcGVhdC15XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2luZGVudC1ndWlkZS1hY3RpdmUge1xuICBiYWNrZ3JvdW5kOiB1cmwoZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFBRUFBQUFDQ0FZQUFBQ1pnYlluQUFBQUVrbEVRVlFJVzJQUTFkWDl6ekJ6NXN6L0FCQ2NCRkZlbnRMbEFBQUFBRWxGVGtTdVFtQ0MpIHJpZ2h0IHJlcGVhdC15O1xufVxuIn0pLGFjZS5kZWZpbmUoImFjZS90aGVtZS9tb25va2FpIixbInJlcXVpcmUiLCJleHBvcnRzIiwibW9kdWxlIiwiYWNlL3RoZW1lL21vbm9rYWktY3NzIiwiYWNlL2xpYi9kb20iXSxmdW5jdGlvbihlLHQsbil7dC5pc0Rhcms9ITAsdC5jc3NDbGFzcz0iYWNlLW1vbm9rYWkiLHQuY3NzVGV4dD1lKCIuL21vbm9rYWktY3NzIik7dmFyIHI9ZSgiLi4vbGliL2RvbSIpO3IuaW1wb3J0Q3NzU3RyaW5nKHQuY3NzVGV4dCx0LmNzc0NsYXNzLCExKX0pOyAgICAgICAgICAgICAgICAoZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICAgICAgYWNlLnJlcXVpcmUoWyJhY2UvdGhlbWUvbW9ub2thaSJdLCBmdW5jdGlvbihtKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0eXBlb2YgbW9kdWxlID09ICJvYmplY3QiICYmIHR5cGVvZiBleHBvcnRzID09ICJvYmplY3QiICYmIG1vZHVsZSkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgbW9kdWxlLmV4cG9ydHMgPSBtOwogICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgICB9KSgpOwogICAgICAgICAgICA=";Nl.config.setModuleUrl("ace/mode/yaml",JL);Nl.config.setModuleUrl("ace/theme/monokai",qL);var $g=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(i,h){return i[0]===n?(r=h,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(n,r){var i=e(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,i=e(r,n);~i&&r.splice(i,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var i=0,h=this.__entries__;i<h.length;i++){var f=h[i];n.call(r,f[1],f[0])}},t}()}(),Ia=typeof window<"u"&&typeof document<"u"&&window.document===document,bo=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")()}(),eR=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(bo):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),tR=2;function nR(e,t){var n=!1,r=!1,i=0;function h(){n&&(n=!1,e()),r&&g()}function f(){eR(h)}function g(){var s=Date.now();if(n){if(s-i<tR)return;r=!0}else n=!0,r=!1,setTimeout(f,t);i=s}return g}var rR=20,iR=["top","right","bottom","left","width","height","size","weight"],oR=typeof MutationObserver<"u",sR=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=nR(this.refresh.bind(this),rR)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Ia||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),oR?(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(){!Ia||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,i=iR.some(function(h){return!!~r.indexOf(h)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),_g=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},mr=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||bo},Cg=os(0,0,0,0);function wo(e){return parseFloat(e)||0}function bh(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,i){var h=e["border-"+i+"-width"];return r+wo(h)},0)}function aR(e){for(var t=["top","right","bottom","left"],n={},r=0,i=t;r<i.length;r++){var h=i[r],f=e["padding-"+h];n[h]=wo(f)}return n}function lR(e){var t=e.getBBox();return os(0,0,t.width,t.height)}function cR(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Cg;var r=mr(e).getComputedStyle(e),i=aR(r),h=i.left+i.right,f=i.top+i.bottom,g=wo(r.width),s=wo(r.height);if(r.boxSizing==="border-box"&&(Math.round(g+h)!==t&&(g-=bh(r,"left","right")+h),Math.round(s+f)!==n&&(s-=bh(r,"top","bottom")+f)),!hR(e)){var p=Math.round(g+h)-t,o=Math.round(s+f)-n;Math.abs(p)!==1&&(g-=p),Math.abs(o)!==1&&(s-=o)}return os(i.left,i.top,g,s)}var uR=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof mr(e).SVGGraphicsElement}:function(e){return e instanceof mr(e).SVGElement&&typeof e.getBBox=="function"}}();function hR(e){return e===mr(e).document.documentElement}function fR(e){return Ia?uR(e)?lR(e):cR(e):Cg}function dR(e){var t=e.x,n=e.y,r=e.width,i=e.height,h=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,f=Object.create(h.prototype);return _g(f,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),f}function os(e,t,n,r){return{x:e,y:t,width:n,height:r}}var pR=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=os(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=fR(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}(),gR=function(){function e(t,n){var r=dR(n);_g(this,{target:t,contentRect:r})}return e}(),mR=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new $g,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof mr(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new pR(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 mr(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new gR(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),xg=typeof WeakMap<"u"?new WeakMap:new $g,Ag=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=sR.getInstance(),r=new mR(t,n,this);xg.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Ag.prototype[e]=function(){var t;return(t=xg.get(this))[e].apply(t,arguments)}});var vR=function(){return typeof bo.ResizeObserver<"u"?bo.ResizeObserver:Ag}();const wh=["blur","input","change","changeSelectionStyle","changeSession","copy","focus","paste"],kg=ve({name:"VAceEditor",props:{value:{type:String,required:!0},lang:{type:String,default:"text"},theme:{type:String,default:"chrome"},options:Object,placeholder:String,readonly:Boolean,wrap:Boolean,printMargin:{type:[Boolean,Number],default:!0},minLines:Number,maxLines:Number},emits:["update:value","init",...wh],render(){return Fo("div")},mounted(){const e=this._editor=Xf(Nl.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)}),wh.forEach(t=>{const n="on"+oi(t);typeof this.$.vnode.props[n]=="function"&&e.on(t,this.$emit.bind(this,t))}),this._ro=new vR(()=>e.resize()),this._ro.observe(this.$el),this.$emit("init",e)},beforeUnmount(){var e,t;(e=this._ro)===null||e===void 0||e.disconnect(),(t=this._editor)===null||t===void 0||t.destroy()},methods:{focus(){this._editor.focus()},blur(){this._editor.blur()},selectAll(){this._editor.selectAll()},getAceInstance(){return this._editor}},watch:{value(e){if(this._contentBackup!==e){try{this._isSettingContent=!0,this._editor.setValue(e,1)}finally{this._isSettingContent=!1}this._contentBackup=e}},theme(e){this._editor.setTheme("ace/theme/"+e)},options(e){this._editor.setOptions(e)},readonly(e){this._editor.setReadOnly(e)},placeholder(e){this._editor.setOption("placeholder",e)},wrap(e){this._editor.setWrapBehavioursEnabled(e)},printMargin(e){this._editor.setOption("printMargin",e)},lang(e){this._editor.setOption("mode","ace/mode/"+e)},minLines(e){this._editor.setOption("minLines",e)},maxLines(e){this._editor.setOption("maxLines",e)}}}),yR={class:"block"},Eg=ve({__name:"InputForm",props:{yaml:{type:String,required:!0}},emits:["update-yaml"],setup(e,{emit:t}){const n=e,r=t,i=rl(n,"yaml");return cl(()=>{r("update-yaml",i.value)}),(h,f)=>(K(),re("div",yR,[ie(oe(kg),{class:"vue-ace-editor",value:i.value,"onUpdate:value":f[0]||(f[0]=g=>i.value=g),lang:"yaml",theme:"monokai",options:{fontSize:16,minLines:6,maxLines:1e4}},null,8,["value"])]))}}),bR={class:"block"},wR={class:"is-size-2 block"},SR={class:"field is-grouped is-grouped-centered"},$R={class:"control"},_R={class:"icon is-small"},CR={key:0,class:"block"},xR=ve({__name:"EditRule",props:{rule:{type:Object,required:!0}},setup(e){const t=e,n=wr(),r=rl(t.rule.yaml),i=gk(),h=g=>{r.value=g},f=async()=>{const g=await i.perform({yaml:r.value});n.push({name:"Rule",params:{id:g.id}})};return(g,s)=>{const p=De("font-awesome-icon");return K(),re(Me,null,[P("div",bR,[P("h2",wR,"Edit rule: "+pe(e.rule.id),1),ie(Eg,{yaml:r.value,"onUpdate:yaml":s[0]||(s[0]=o=>r.value=o),onUpdateYaml:h},null,8,["yaml"]),P("div",SR,[P("p",$R,[P("a",{class:"button is-primary",onClick:f},[P("span",_R,[ie(p,{icon:"edit"})]),s[1]||(s[1]=P("span",null,"Edit",-1))])])])]),oe(i).last?.error?(K(),re("div",CR,[s[2]||(s[2]=P("hr",null,null,-1)),ie(at,{error:oe(i).last?.error},null,8,["error"])])):fe("",!0)],64)}}}),AR=ve({__name:"EditRuleWrapper",props:{id:{type:String,required:!0}},setup(e){const t=e,n=lg(),r=async()=>{await n.perform(t.id)};return qe(async()=>{await r()}),Fe(t,async()=>{await r()}),(i,h)=>(K(),re(Me,null,[oe(n).isRunning?(K(),me(pn,{key:0})):fe("",!0),oe(n).isError?(K(),me(at,{key:1,error:oe(n).last?.error},null,8,["error"])):fe("",!0),oe(n).last?.value?(K(),me(xR,{key:2,rule:oe(n).last.value},null,8,["rule"])):fe("",!0)],64))}}),kR=ve({__name:"EditRule",props:{id:{type:String,required:!0}},setup(e){const t=e,n=()=>{dn(`Edit rule:${t.id} - Mihari`)};return qe(()=>{n()}),Fe(()=>t.id,()=>{n()}),(r,i)=>(K(),me(AR,{id:e.id},null,8,["id"]))}});function ER(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Array.from(typeof e=="string"?[e]:e);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,"");var i=r.reduce(function(g,s){var p=s.match(/\n([\t ]+|(?!\s).)/g);return p?g.concat(p.map(function(o){var a,c;return(c=(a=o.match(/[\t ]/g))===null||a===void 0?void 0:a.length)!==null&&c!==void 0?c:0})):g},[]);if(i.length){var h=new RegExp(`
1612
+ [ ]{`+Math.min.apply(Math,i)+"}","g");r=r.map(function(g){return g.replace(h,`
1613
+ `)})}r[0]=r[0].replace(/^\r?\n/,"");var f=r[0];return t.forEach(function(g,s){var p=f.match(/(?:^|\n)( *)$/),o=p?p[1]:"",a=g;typeof g=="string"&&g.includes(`
1614
+ `)&&(a=String(g).split(`
1615
+ `).map(function(c,u){return u===0?c:""+o+c}).join(`
1616
+ `)),f+=a+r[s+1]}),f}var Ii,MR=new Uint8Array(16);function TR(){if(!Ii&&(Ii=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Ii))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ii(MR)}const LR=/^(?:[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 RR(e){return typeof e=="string"&&LR.test(e)}var rt=[];for(var Ws=0;Ws<256;++Ws)rt.push((Ws+256).toString(16).substr(1));function IR(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(!RR(n))throw TypeError("Stringified UUID is invalid");return n}function OR(e,t,n){e=e||{};var r=e.random||(e.rng||TR)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,IR(r)}function NR(){const e=OR(),t=is();return ER`---
1617
+ id: ${e}
1618
+ title: Title goes here
1619
+ description: Description goes here
1620
+ created_on: ${t.format("YYYY-MM-DD")}
1621
+ queries: []`}const DR={class:"block"},FR={class:"field is-grouped is-grouped-centered"},PR={class:"control"},zR={class:"icon is-small"},WR={key:0,class:"block"},jR=ve({__name:"NewRule",setup(e){const t=wr(),n=Ne(NR()),r=pk(),i=f=>{n.value=f},h=async()=>{const f=await r.perform({yaml:n.value});t.push({name:"Rule",params:{id:f.id}})};return(f,g)=>{const s=De("font-awesome-icon");return K(),re(Me,null,[P("div",DR,[g[2]||(g[2]=P("h2",{class:"is-size-2 block"},"New rule",-1)),ie(Eg,{yaml:n.value,"onUpdate:yaml":g[0]||(g[0]=p=>n.value=p),onUpdateYaml:i},null,8,["yaml"]),P("div",FR,[P("p",PR,[P("a",{class:"button is-primary",onClick:h},[P("span",zR,[ie(s,{icon:"plus"})]),g[1]||(g[1]=P("span",null,"Create",-1))])])])]),oe(r).last?.error?(K(),re("div",WR,[g[3]||(g[3]=P("hr",null,null,-1)),ie(at,{error:oe(r).last?.error},null,8,["error"])])):fe("",!0)],64)}}}),BR=ve({__name:"NewRule",setup(e){const t=()=>{dn("New rule - Mihari")};return qe(()=>{t()}),(n,r)=>(K(),me(jR))}}),HR={class:"buttons is-pulled-right"},UR=["href"],VR={class:"icon is-small"},GR={class:"icon is-small"},ZR={class:"icon is-small"},YR={class:"icon is-small"},Mg=ve({__name:"ActionButtons",props:{rule:{type:Object,required:!0}},emits:["delete","set-error","set-message"],setup(e,{emit:t}){const n=e,r=t,i=ye(()=>`/api/rules/${n.rule.id}`),h=ye(()=>`rule.id:"${n.rule.id}"`),f=fk(),g=dk(),s=ts(),p=Rl(),o=async()=>{if(window.confirm(`Are you sure you want to delete ${n.rule.id}?`))try{await f.perform(n.rule.id),r("delete")}catch(u){He.isAxiosError(u)&&r("set-error",u)}},a=async()=>{try{const c=await g.perform(n.rule.id);r("set-message",c)}catch(c){He.isAxiosError(c)&&r("set-error",c)}};return qe(()=>{s.perform({q:h.value,page:1,limit:0}),p.perform({q:h.value,page:1,limit:0})}),(c,u)=>{const l=De("router-link"),d=De("font-awesome-icon");return K(),re("span",HR,[ie(l,{class:"button is-warning is-small is-rounded",to:{name:"Alerts",query:{q:h.value}}},{default:Ge(()=>[u[0]||(u[0]=P("span",null,"Alerts:",-1)),P("span",null,pe(oe(s).last?.value?.total),1)]),_:1},8,["to"]),ie(l,{class:"button is-success is-small is-rounded",to:{name:"Artifacts",query:{q:h.value}}},{default:Ge(()=>[u[1]||(u[1]=P("span",null,"Artifacts:",-1)),P("span",null,pe(oe(p).last?.value?.total),1)]),_:1},8,["to"]),P("a",{class:"button is-link is-light is-small",href:i.value,target:"_blank"},[u[2]||(u[2]=P("span",null,"JSON",-1)),P("span",VR,[ie(d,{icon:"barcode"})])],8,UR),P("button",{class:"button is-primary is-light is-small",onClick:a},[u[3]||(u[3]=P("span",null,"Search",-1)),P("span",GR,[oe(g).isRunning?(K(),me(d,{key:0,icon:"spinner",spin:""})):(K(),me(d,{key:1,icon:"magnifying-glass"}))])]),ie(l,{class:"button is-info is-light is-small",to:{name:"EditRule",params:{id:e.rule.id}}},{default:Ge(()=>[u[4]||(u[4]=P("span",null,"Edit",-1)),P("span",ZR,[ie(d,{icon:"edit"})])]),_:1},8,["to"]),P("button",{class:"button is-light is-small",onClick:o},[u[5]||(u[5]=P("span",null,"Delete",-1)),P("span",YR,[ie(d,{icon:"times"})])])])}}}),KR={class:"box"},XR={class:"block"},QR={class:"table is-fullwidth is-completely-borderless"},JR={key:0},qR={class:"help"},e4=ve({__name:"RuleItem",props:{rule:{type:Object,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=t,r=Ne(),i=Ne(),h=o=>{r.value=o},f=()=>{r.value=void 0},g=o=>{i.value=o},s=()=>{i.value=void 0},p=()=>{n("delete")};return(o,a)=>{const c=De("router-link");return K(),re("div",KR,[r.value?(K(),me(at,{key:0,class:"block",error:r.value,disposable:!0,onDispose:f},null,8,["error"])):fe("",!0),i.value?(K(),me(ns,{key:1,class:"block",message:i.value,disposable:!0,onDispose:s},null,8,["message"])):fe("",!0),P("div",XR,[P("p",null,[ie(Mg,{rule:e.rule,onSetError:h,onDelete:p,onSetMessage:g},null,8,["rule"])]),ie(c,{class:"is-size-4",to:{name:"Rule",params:{id:e.rule.id}}},{default:Ge(()=>[Ze(pe(e.rule.id),1)]),_:1},8,["to"])]),P("table",QR,[P("tr",null,[a[0]||(a[0]=P("th",null,"Title",-1)),P("td",null,pe(e.rule.title),1)]),P("tr",null,[a[1]||(a[1]=P("th",null,"Description",-1)),P("td",null,pe(e.rule.description),1)]),e.rule.tags.length>0?(K(),re("tr",JR,[a[2]||(a[2]=P("th",null,"Tags",-1)),P("td",null,[ie(yi,{tags:e.rule.tags,"navigate-to":"Rules"},null,8,["tags"])])])):fe("",!0)]),a[3]||(a[3]=P("p",{class:"block is-clearfix"},null,-1)),P("p",qR,"Created at: "+pe(e.rule.createdAt),1)])}}}),t4={key:0,class:"block"},n4={class:"help"},r4={key:1,class:"block"},i4=ve({__name:"RulesItem",props:{rules:{type:Object,required:!0}},emits:["refresh","update-page"],setup(e,{emit:t}){const n=e,r=t,i=g=>{r("update-page",g)},h=()=>{r("refresh")},f=ye(()=>n.rules.results.length>0);return(g,s)=>f.value?(K(),re("div",t4,[(K(!0),re(Me,null,Tt(e.rules.results,p=>(K(),me(e4,{rule:p,key:p.id,onRefresh:h,onDelete:h},null,8,["rule"]))),128)),ie(Il,{currentPage:e.rules.currentPage,total:e.rules.total,pageSize:e.rules.pageSize,onUpdatePage:i},null,8,["currentPage","total","pageSize"]),P("p",n4,"("+pe(e.rules.total)+" results in total, "+pe(e.rules.results.length)+" shown)",1)])):(K(),re("div",r4,[...s[0]||(s[0]=[P("div",{class:"notification is-warning is-light"},"There is no alert to show",-1)])]))}}),o4={class:"block"},s4={class:"field has-addons"},a4={class:"control is-expanded"},l4={class:"control"},c4={class:"icon is-small"},u4={class:"control"},h4={class:"icon is-small"},f4={key:0,class:"content mt-3"},d4={key:0,class:"block"},p4=ve({__name:"RulesWrapper",setup(e){const t=dr("page","1"),n=dr("q",""),r=Ne(!1),i=ag(),h=async()=>{const o={q:n.value,page:parseInt(t.value)};return await i.perform(o)},f=o=>{t.value=o.toString()},g=async()=>{t.value="1",await h()},s=g,p=ui(r);return qe(async()=>{await h()}),Fe(t,async()=>{await h()}),Fe(n,async()=>{window.scrollTo({top:0,behavior:"smooth"})}),(o,a)=>{const c=De("font-awesome-icon"),u=De("router-link");return K(),re(Me,null,[P("div",o4,[P("div",s4,[P("p",a4,[ol(P("input",{class:"input",type:"text","onUpdate:modelValue":a[0]||(a[0]=l=>Je(n)?n.value=l:null)},null,512),[[dl,oe(n)]])]),P("p",l4,[P("a",{class:"button is-primary",onClick:g},[P("span",c4,[ie(c,{icon:"search"})]),a[2]||(a[2]=P("span",null,"Search",-1))])]),P("p",u4,[P("a",{class:"button is-info",onClick:a[1]||(a[1]=l=>oe(p)())},[P("span",h4,[ie(c,{icon:"question"})]),a[3]||(a[3]=P("span",null,"Help",-1))])])]),r.value?(K(),re("div",f4,[a[5]||(a[5]=hl('<h4 class="is-size-4">Help</h4><ul><li> Search query supports <code>AND</code>, <code>OR</code>, <code>:</code>, <code>=</code>, <code>!=</code>, <code>&lt;</code>, <code>&lt;=</code>, <code>&gt;</code>, <code>&gt;=</code>, <code>NOT</code> and <code>()</code>. </li><li> Searchable fields are <code>id</code>, <code>title</code>, <code>description</code>, <code>tag</code>, <code>created_at</code> and <code>updated_at</code>. </li></ul><h4 class="is-size-4">Examples</h4>',3)),P("ul",null,[P("li",null,[ie(u,{to:{name:"Rules",query:{q:"title:foo AND created_at >= 2020-01-01"}}},{default:Ge(()=>[...a[4]||(a[4]=[Ze("title:foo AND created_at >= 2020-01-01",-1)])]),_:1})])])])):fe("",!0)]),oe(i).performCount>0?(K(),re("div",d4,[oe(i).isRunning?(K(),me(pn,{key:0})):fe("",!0),oe(i).isError?(K(),me(at,{key:1,error:oe(i).last?.error},null,8,["error"])):fe("",!0),oe(i).last?.value?(K(),me(i4,{key:2,rules:oe(i).last.value,onUpdatePage:f,onRefresh:oe(s)},null,8,["rules","onRefresh"])):fe("",!0)])):fe("",!0)],64)}}}),g4=ve({__name:"RulesView",setup(e){return dn("Rules - Mihari"),(t,n)=>(K(),me(p4))}}),m4={class:"block"},v4=ve({__name:"YamlItem",props:{yaml:{type:String,required:!0}},setup(e){return(t,n)=>(K(),re("div",m4,[ie(oe(kg),{class:"vue-ace-editor",value:e.yaml,lang:"yaml",theme:"monokai",options:{readOnly:!0,fontSize:16,maxLines:1e4,minLines:6}},null,8,["value"])]))}}),y4={class:"block"},b4={class:"is-size-2 block"},w4={class:"block is-clearfix"},S4={class:"block"},$4=ve({__name:"RuleDetail",props:{rule:{type:Object,required:!0}},emits:["delete","refresh"],setup(e,{emit:t}){const n=t,r=Ne(),i=Ne(),h=()=>{n("delete")},f=o=>{r.value=o},g=()=>{r.value=void 0},s=o=>{o.queued?i.value=o:n("refresh")},p=()=>{i.value=void 0};return(o,a)=>(K(),re(Me,null,[P("div",y4,[P("h2",b4,pe(e.rule.id),1),r.value?(K(),me(at,{key:0,class:"mt-3 mb-3",error:r.value,disposable:!0,onDispose:g},null,8,["error"])):fe("",!0),i.value?(K(),me(ns,{key:1,class:"block",message:i.value,disposable:!0,onDispose:p},null,8,["message"])):fe("",!0),P("p",w4,[ie(Mg,{rule:e.rule,onSetMessage:s,onDelete:h,onSetError:f},null,8,["rule"])]),ie(v4,{yaml:e.rule.yaml},null,8,["yaml"])]),a[1]||(a[1]=P("hr",null,null,-1)),P("div",S4,[a[0]||(a[0]=P("h2",{class:"is-size-2 block"},"Alerts",-1)),ie(vg,{ruleId:e.rule.id},null,8,["ruleId"])])],64))}}),_4=ve({__name:"RuleDetailWrapper",props:{id:{type:String,required:!0}},setup(e){const t=e,n=lg(),r=wr(),i=async()=>{await n.perform(t.id)},h=async()=>{await i()},f=()=>{r.push("/")};return qe(async()=>{await i()}),Fe(t,async()=>{await i()}),(g,s)=>(K(),re(Me,null,[oe(n).isRunning?(K(),me(pn,{key:0})):fe("",!0),oe(n).isError?(K(),me(at,{key:1,error:oe(n).last?.error},null,8,["error"])):fe("",!0),oe(n).last?.value?(K(),me($4,{key:2,rule:oe(n).last.value,onRefresh:h,onDelete:f},null,8,["rule"])):fe("",!0)],64))}}),C4=ve({__name:"RuleView",props:{id:{type:String,required:!0}},setup(e){const t=e,n=()=>{dn(`Rule:${t.id} - Mihari`)};return qe(()=>{n()}),Fe(()=>t.id,()=>{n()}),(r,i)=>(K(),me(_4,{id:e.id},null,8,["id"]))}}),x4=[{path:"/",name:"Alerts",component:UE},{path:"/alerts/:id",name:"Alert",component:eM,props:!0},{path:"/config",name:"Config",component:KL},{path:"/artifacts/",name:"Artifacts",component:OM},{path:"/artifacts/:id",name:"Artifact",component:DL,props:!0},{path:"/rules",name:"Rules",component:g4},{path:"/rules/new",name:"NewRule",component:BR},{path:"/rules/:id",name:"Rule",component:C4,props:!0},{path:"/rules/:id/edit",name:"EditRule",component:kR,props:!0}],A4=MS({history:iS(),routes:x4});Vy.add(s0,o0,n0,Jy,Ky,d0,e0,h0,Xy,r0,l0,Zy,_f,t0,Yy,i0,u0,c0,qy);const Tg=L1(Aw);Tg.component("font-awesome-icon",V1);Tg.use(A4).mount("#app");